/* SHIO Kasse (Demo) im SHIO-Design wie Tablet, Kueche und Service: schwarz, gold, hell. Vorlage ist der Kassenbildschirm
   aus der Praesentation (_kasse-baukasten-bilder/_arbeit/shio-screen.html): Kopf mit Goldlinie, Reiter als Pillen, dunkle
   Kacheln ohne Farbstreifen, Rechnung rechts, Fusszeile. Schrift Poppins. Variablennamen wie in der R&B-Pay-Kasse
   (--lila = Akzent des Themes, hier Gold). Setzt tokens.css und ui.css voraus (beide dunkel) und gleicht deren Bausteine an.
   Ansichten: Tischplan, Verkauf (Kacheln links, Rechnung rechts), Belege, Abschluss.
   Groessen: 1366 x 768 und 1920 x 1080 direkt, eingebettet in /pult/ (?eingebettet=1) ca. 820 x 560 bis 1150 x 900. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/kasse/fonts/poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/kasse/fonts/poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/kasse/fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/kasse/fonts/poppins-700.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("/kasse/fonts/poppins-800.woff2") format("woff2"); }

:root {
  /* SHIO dunkel, Werte aus der Vorlage (Praesentation) */
  --lila: #c9a45c; --lila-dunkel: #b48f48; --btn-text: #141417;
  --bg: #0d0d0f; --panel: #141417; --karte: #1b1b20; --soft: #1d1d22; --soft2: #2a2a31; --hover: #34343c; --druck: #3d3d46;
  --line: #26262c; --kante: #2c2c33;
  --text: #f4efe6; --text-soft: #bdb6a8; --text-mute: #8f887b; --text-fuss: #6f695f;
  --ok: #4fcf8d; --ok-bg: rgba(79, 207, 141, .13);
  --err: #f0706a; --err-bg: rgba(238, 90, 82, .14);
  --warn: #f0b545; --warn-bg: rgba(240, 181, 69, .13);
  --shadow: 0 8px 24px rgba(0, 0, 0, .28);
  --shadow-big: 0 18px 50px rgba(0, 0, 0, .6);
  --r: 14px; --r-big: 22px;
  --rb: #6027A6;
  --gold: #c9a45c; --gold-dunkel: #a8843f; --gold-bg: rgba(201, 164, 92, .14); --gold-text: #e3c58a; --gold-flaeche: #211d14;
  --frei: #3a3a42;
  --topbar: 72px; --fussleiste: 30px;

  /* ui.css / tokens.css (von Haus aus dunkel) auf die Werte der Vorlage */
  --font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --schwarz: var(--bg); --tiefe: #0b0b0d; --flaeche: var(--panel); --flaeche-2: var(--karte); --flaeche-3: var(--soft2);
  --linie: var(--line); --linie-stark: var(--druck);
  --weiss: var(--text); --text-2: var(--text-soft); --text-3: var(--text-mute);
  --gold-hell: var(--gold-text); --gold-glanz: rgba(201, 164, 92, .16); --gold-tief: var(--gold-dunkel);
  --warn-ton: var(--warn); --alarm: #ee5a52;
  --schatten: var(--shadow-big); --schatten-weich: var(--shadow);
  --ui-fokus: var(--gold);
  color-scheme: dark;
}

[hidden] { display: none !important; }
html, body { height: 100%; }
body { overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 15px; }
::selection { background: rgba(201, 164, 92, .32); color: var(--text); }
* { scrollbar-color: var(--druck) transparent; }
:focus-visible { outline: 2.5px solid var(--lila); outline-offset: 2px; border-radius: 10px; }
button { font-family: inherit; }
.t-zahl { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------------------------------- */
/* Bausteine aus ui.css, dunkel                                                                      */

.t-h3 { color: var(--text); }
.t-label { color: var(--text-mute); letter-spacing: .1em; font-weight: 600; }
.t-klein { color: var(--text-soft); }
.t-mini { color: var(--text-mute); }

.knopf {
  min-height: 48px; padding: 10px 20px; border: 0; border-radius: 14px;
  background: var(--soft2); color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: 0;
  box-shadow: none; text-shadow: none;
}
@media (hover: hover) and (pointer: fine) { .knopf:hover { background: var(--hover); border-color: transparent; } }
.knopf:focus-visible { outline: 2.5px solid var(--lila); outline-offset: 2px; border-radius: 14px; }
.knopf[disabled], .knopf[aria-disabled="true"] { opacity: .45; filter: none; }
.knopf--gold { background: var(--lila); color: var(--btn-text); border: 0; box-shadow: none; text-shadow: none; }
@media (hover: hover) and (pointer: fine) { .knopf--gold:hover { background: var(--lila-dunkel); filter: none; } }
.knopf--leise { background: transparent; border: 1.5px solid var(--kante); color: var(--text); }
@media (hover: hover) and (pointer: fine) { .knopf--leise:hover { background: var(--soft2); border-color: var(--line); color: var(--text); } }
.knopf--linie-gold { background: var(--soft2); border: 1.5px solid rgba(201, 164, 92, .55); color: var(--gold-text); }
.knopf--gefahr { background: var(--err-bg); border: 0; color: var(--err); }
@media (hover: hover) and (pointer: fine) { .knopf--gefahr:hover { background: rgba(238, 90, 82, .24); color: var(--err); } }
.knopf--ok { background: var(--ok-bg); border: 0; color: var(--ok); }
.knopf--gross { min-height: 58px; padding: 0 1.4em; font-size: 17px; border-radius: 16px; }
.knopf--rund { padding: 0; width: 48px; border-radius: 50%; }
.knopf--rund:focus-visible { border-radius: 50%; }
.knopf .lade-punkt { width: 16px; height: 16px; }

.pille { border: 0; background: var(--soft2); color: var(--text-soft); letter-spacing: .06em; min-height: 24px; font-weight: 700; }
.pille--gold { background: var(--gold-bg); color: var(--gold-text); }
.pille--ok { background: var(--ok-bg); color: var(--ok); }
.pille--warn { background: var(--warn-bg); color: var(--warn); }
.pille--alarm { background: var(--err-bg); color: var(--err); }
.pille--beispiel { border: 1px solid rgba(201, 164, 92, .6); background: transparent; color: var(--gold-text); min-height: 20px; }

.leer-hinweis { color: var(--text-soft); border: 1.5px dashed var(--druck); border-radius: var(--r); background: transparent; }
.leer-hinweis b { color: var(--text); font-weight: 600; font-size: 16px; }
.leer-hinweis .icon { width: 28px; height: 28px; color: var(--lila); opacity: 1; }
.lade-punkt { border-color: rgba(201, 164, 92, .2); border-top-color: var(--lila); }

.fortschritt { background: var(--soft2); }
.fortschritt::after { background: var(--lila); }
.fortschritt--ok::after { background: var(--ok); }

/* Abdunklung, Blaetter als Fenster in der Mitte (wie die Dialoge der Kasse), Dialoge */
.ui-grund { background: rgba(0, 0, 0, .62); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.blatt { background: var(--panel); color: var(--text); border: 1px solid var(--kante); box-shadow: var(--shadow-big); }
.blatt::before { display: none; }
.blatt--rechts {
  top: 50%; left: 50%; right: auto; bottom: auto;
  width: min(var(--blatt-breite, 480px), calc(100vw - 24px));
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  border-radius: var(--r-big); border: 1px solid var(--kante);
  transform: translate(-50%, -47%) scale(.985); opacity: 0;
}
.blatt--rechts.ist-offen { transform: translate(-50%, -50%); opacity: 1; }
.blatt__kopf { padding: 16px 16px 8px 26px; }
.blatt__titel { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.blatt__kopf .knopf--rund { background: var(--soft2); border: 0; }
.blatt__inhalt { padding: 6px 26px 22px; }
.blatt__fuss { background: var(--panel); border-top: 1.5px solid var(--line); padding: 14px 22px 16px; }

.dialog { background: var(--panel); border: 1px solid var(--kante); border-radius: var(--r-big); box-shadow: var(--shadow-big); color: var(--text); }
.dialog__marke { color: var(--gold); border: 0; background: var(--gold-bg); width: 48px; height: 48px; }
.dialog--gefahr .dialog__marke { color: var(--err); background: var(--err-bg); border: 0; }
.dialog__titel { color: var(--text); font-weight: 700; font-size: 21px; }
.dialog__text { color: var(--text-soft); font-size: 15px; }

/* PIN-Feld wie das Ziffernfeld der Kasse */
.pinfeld__punkt { border: 2px solid rgba(201, 164, 92, .45); }
.pinfeld__punkt.ist-voll { background: var(--lila); border-color: var(--lila); }
.pinfeld__tasten { grid-template-columns: repeat(3, 84px); gap: 10px; }
.pinfeld__taste { width: 84px; height: 62px; border-radius: var(--r); border: 0; background: var(--soft2); color: var(--text); font-size: 22px; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .pinfeld__taste:hover { background: var(--hover); border-color: transparent; } }
.pinfeld__taste:active, .pinfeld__taste.ist-gedrueckt { background: var(--druck); border-color: transparent; }
.pinfeld__taste--leise { background: transparent; color: var(--text-soft); }
.pinfeld__taste--ok { background: var(--lila); color: var(--btn-text); }
.pinfeld__meldung { color: var(--err); font-weight: 600; }
.pinfeld.ist-falsch .pinfeld__punkt { border-color: var(--err); }

/* Zaehlwerk (Erwachsene/Kinder) */
.zaehlwerk { background: var(--soft); border: 1px solid var(--kante); }
.zaehlwerk__knopf { background: var(--soft2); color: var(--text); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .zaehlwerk__knopf:hover { background: var(--hover); } }
.zaehlwerk__knopf--plus { background: var(--lila); color: var(--btn-text); }
@media (hover: hover) and (pointer: fine) { .zaehlwerk__knopf--plus:hover { background: var(--lila-dunkel); filter: none; } }
.zaehlwerk__zahl { color: var(--text); font-weight: 700; }

/* Hinweise oben unter dem Kopf statt unten mittig: unten laegen sie ueber Bar/Karte und den Knoepfen der Blaetter
   (LESSONS 2026-09-27 Kuechenmonitor). Nie Klicks abfangen (LESSONS 2026-10-13), sie verschwinden von selbst. */
/* wie die Kasse: oben mittig ueber dem Kopf */
.toast-leiste { top: 12px; bottom: auto; width: min(560px, calc(100vw - 32px)); }
.toast {
  pointer-events: none; min-height: 48px; padding: 10px 20px 10px 12px; border: 0; border-radius: 999px;
  background: var(--karte); color: var(--text); font-weight: 600; font-size: 15px; box-shadow: var(--shadow-big);
  border: 1px solid var(--kante); -webkit-backdrop-filter: none; backdrop-filter: none;
}
.toast__icon { background: var(--soft2); color: var(--text); }
.toast--ok { border-color: rgba(79, 207, 141, .55); }
.toast--ok .toast__icon { background: var(--ok-bg); color: var(--ok); }
.toast--warn { border-color: var(--gold); }
.toast--warn .toast__icon { background: var(--gold-bg); color: var(--gold); }
.toast--fehler { border: 1px solid rgba(238, 90, 82, .6); }
.toast--fehler .toast__icon { background: var(--err-bg); color: var(--err); }
.netz-banner:not([hidden]) ~ .toast-leiste { top: calc(var(--topbar) + 96px); }

/* ---------------------------------------------------------------------------------------------- */
/* Logo, Absender                                                                                   */

/* wie die Vorlage: "SHIO" gold gesperrt, daneben "Sushi · Grill" leise */
.logo { display: flex; align-items: center; gap: 14px; white-space: nowrap; flex: none; }
.logo__kachel { width: 52px; height: 52px; border-radius: 14px; background: var(--karte); border: 1px solid var(--kante); display: grid; place-items: center; flex: none; }
.logo__kachel img { width: 38px; height: 38px; }
.logo__wort { font-weight: 700; font-size: 30px; letter-spacing: .18em; margin-right: -.18em; color: var(--gold); line-height: 1; }
.logo__zusatz { font-weight: 400; font-size: 17px; color: var(--text-soft); margin: 0; line-height: 1; padding-top: .3em; }
.rb-text { font-size: 13px; color: var(--text-fuss); }

/* ---------------------------------------------------------------------------------------------- */
/* Start und Anmeldung                                                                              */

.start { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: 32px 20px 24px; background: var(--bg); }
.start__karte {
  width: min(520px, 100%); display: grid; justify-items: center; gap: 12px; text-align: center;
  padding: 36px 32px 28px; background: var(--panel); border-radius: var(--r-big); box-shadow: var(--shadow); border: 1px solid var(--kante); border-top: 1.5px solid var(--gold);
}
.logo--gross .logo__kachel { width: 64px; height: 64px; border-radius: 18px; }
.logo--gross .logo__kachel img { width: 46px; height: 46px; }
.logo--gross .logo__wort { font-size: 34px; }
.logo--gross .logo__zusatz { font-size: 20px; }
.start__titel { margin-top: 10px; font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.start__text { color: var(--text-soft); max-width: 40ch; font-size: 15px; }
.start__aktion { min-height: 64px; display: grid; place-items: center; margin-top: 6px; }
.start__demo { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--text-mute); }
.start__fuss { padding-top: 22px; }

/* ---------------------------------------------------------------------------------------------- */
/* Rahmen und Kopf                                                                                  */

.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  height: var(--topbar); flex: none; position: relative; z-index: 30;
  display: flex; align-items: center; gap: 22px; padding: 0 24px; min-width: 0;
  background: var(--panel); border-bottom: 1.5px solid var(--gold);
}
/* Reiter als Pillen wie die Kategorien der Vorlage: dunkel, aktiv gold */
.nav { display: flex; gap: 8px; margin-left: 8px; min-width: 0; }
.nav__k {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px;
  border: 0; border-radius: 999px; background: var(--soft); color: var(--text-soft); font-size: 16px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
@media (hover: hover) and (pointer: fine) { .nav__k:hover { color: var(--text); background: var(--line); } .nav__k[aria-selected="true"]:hover { background: var(--gold); color: var(--btn-text); } }
.nav__k[aria-selected="true"] { background: var(--gold); color: var(--btn-text); font-weight: 600; }
.nav__zahl { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--gold); color: var(--btn-text); font-size: 12px; font-weight: 700; }
.nav__k[aria-selected="true"] .nav__zahl { background: var(--btn-text); color: var(--gold); }
.top-status { margin-left: auto; display: flex; align-items: center; gap: 18px; flex: none; }
/* Status dezent: dunkler Chip, nur der Punkt farbig */
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; font-size: 14px; font-weight: 500; background: var(--soft); border: 1px solid var(--kante); color: var(--text-soft); white-space: nowrap; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(79, 207, 141, .16); flex: none; }
.chip--warn { background: var(--warn-bg); border-color: rgba(240, 181, 69, .35); color: var(--warn); }
.chip--alarm { background: var(--err-bg); border-color: rgba(238, 90, 82, .4); color: var(--err); }
.chip--warn i, .chip--alarm i { background: currentColor; box-shadow: none; }
.kopf-info { font-size: 15px; color: var(--text-soft); white-space: nowrap; }
.kopf-info b { color: var(--text); font-weight: 600; }

.main { flex: 1; min-height: 0; display: flex; }
/* Fusszeile wie die Vorlage */
.fuss {
  height: var(--fussleiste); flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 24px; background: #0b0b0d; color: var(--text-fuss); font-size: 12.5px; white-space: nowrap; overflow: hidden;
}
.ansicht { flex: 1; min-width: 0; min-height: 0; display: flex; }

/* Pillen (Kategorien, Bereiche) */
.tabs { flex: none; display: flex; gap: 10px; padding: 18px 22px 6px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; min-height: 48px; padding: 10px 20px; border-radius: 999px; cursor: pointer;
  font-size: 18px; font-weight: 500; white-space: nowrap; line-height: 1.2;
  background: var(--soft); border: 0; color: var(--text-soft);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
@media (hover: hover) and (pointer: fine) { .tab:hover { color: var(--text); background: var(--line); } .tab[aria-pressed="true"]:hover { background: var(--gold); color: var(--btn-text); } }
.tab[aria-pressed="true"] { background: var(--gold); color: var(--btn-text); font-weight: 600; }
.tab:active { transform: scale(.97); }

/* ---------------------------------------------------------------------------------------------- */
/* Tischplan                                                                                        */

.ansicht--plan { flex-direction: column; }
.plan-kopf { flex: none; display: flex; align-items: center; gap: 12px 18px; padding: 18px 22px 6px; min-width: 0; }
.plan-kopf .tabs { flex: 1 1 auto; min-width: 0; padding: 0; }
.zaehler { flex: none; display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 16px; font-weight: 500; white-space: nowrap; min-height: 48px; }
.zaehler b { color: var(--text); font-weight: 700; font-size: 18px; margin-right: 2px; }
.zaehler__punkt { color: var(--text-mute); }
.zaehler__zahlen {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 11px; margin-left: 6px; border-radius: 999px;
  border: 0; background: var(--gold); color: var(--btn-text); font-size: 15px; font-weight: 700; cursor: pointer;
  animation: zahlen-atmen 2.6s ease-in-out infinite;
}
.zaehler__zahlen .icon { width: 18px; height: 18px; --icon-strich: 2.2; }

.plan-koerper { flex: 1; min-height: 0; display: flex; gap: 14px; padding: 12px 22px 22px; }
.plan-rahmen {
  flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--kante); border-radius: var(--r); box-shadow: none; overflow: hidden;
}
.plan-flaeche { position: relative; flex: 1; min-height: 0; margin: 12px 12px 0; }
.plan-flaeche.ist-neu { animation: plan-ein .22s ease-out; }
@keyframes plan-ein { from { opacity: .35; } to { opacity: 1; } }
/* DEMO-Hinweis steht jetzt in der Fusszeile */
.plan-fuss { display: none; flex: none; margin: 0; padding: 6px 16px 8px; font-size: 11.5px; font-weight: 500; color: var(--text-mute); letter-spacing: .02em; }

/* Grundriss (SVG, dunkle Fassung: Waende #2c2c33 auf #141417) */
.plan-grund { position: absolute; inset: 0; width: 100%; height: 100%; font-family: var(--font-sans); -webkit-user-select: none; user-select: none; }
.plan-grund .boden { fill: #141417; }
.plan-grund .raum { fill: #18181c; }
.plan-grund .bereich { fill: rgba(255, 255, 255, .012); stroke: #3a3a42; stroke-width: 1px; vector-effect: non-scaling-stroke; stroke-dasharray: 5 6; }
.plan-grund .bereich__name { fill: var(--text-mute); font-weight: 600; }
.plan-grund .beschriftung { fill: var(--text-mute); font-weight: 500; letter-spacing: .03em; }
.plan-grund .wand { fill: none; stroke: #33333b; stroke-linecap: square; stroke-linejoin: miter; }
.plan-grund .wand--innen { stroke: #2c2c33; }
.plan-grund .teiler { fill: none; stroke: #2c2c33; stroke-width: 6; stroke-linecap: round; }
.plan-grund .fenster { stroke: rgba(201, 164, 92, .32); }
.plan-grund .fenster-pfosten { fill: #33333b; }
.plan-grund .tuer-luecke { stroke: #141417; }
.plan-grund .tuer-blatt { stroke: rgba(244, 239, 230, .3); stroke-width: 1.2px; vector-effect: non-scaling-stroke; }
.plan-grund .tuer-bogen { fill: none; stroke: rgba(244, 239, 230, .16); stroke-width: 1px; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.plan-grund .moebel { fill: #1d1d22; stroke: #2c2c33; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.plan-grund .moebel--bank { fill: #202026; }

/* Tischkarten: Groesse aus dem Plan (plan.js), Inhalt je nach Groesse per Container-Abfrage */
.plan-tische { position: absolute; inset: 0; }
.tk {
  position: absolute; display: block; padding: 0; margin: 0; container-type: size;
  border: 1.5px solid var(--kante); border-radius: 12px; background: var(--karte); color: var(--text);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25); cursor: pointer; font: inherit; text-align: center;
  transition: box-shadow .15s ease, border-color .15s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
/* kein Farbstreifen mehr (Vorlage); Zustand ueber Rand und Flaeche */
.tk::before { display: none; }
.tk:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .tk:hover { box-shadow: 0 6px 16px rgba(0, 0, 0, .4); border-color: var(--druck); } }
.tk:focus-visible { outline: 2.5px solid var(--lila); outline-offset: 2px; border-radius: 12px; }
.tk__innen { position: absolute; inset: 0 2px 0 3px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 2px 3px; overflow: hidden; }
.tk__nr { font-weight: 700; font-size: clamp(14px, 30cqmin, 24px); line-height: 1.05; color: #ddd6c9; }
.tk__info { max-width: 100%; font-size: 11px; font-weight: 500; line-height: 1.25; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Die Container-Abfragen waehlen die Textstufe nach der Kartenbreite (nutzbar: Breite minus 11 px, im Kreis 72 Prozent).
   Passt der tatsaechliche Text trotzdem nicht (z. B. "4 Pers. · 1:12 Std" braucht bei 12 px Schrift 90 px), stuft
   kasse.js einpassen() die Karte zurueck: stufe-kurz, stufe-min, stufe-ohne; die Summe erst kleiner, dann ohne.
   Nie Text mit Auslassung oder seitlich beschnitten (LESSONS 2026-10-13). */
.tk__lang, .tk__kurz, .tk__min { display: none; }
@container (min-width: 92px) { .tk__lang { display: inline; } }
@container (min-width: 54px) and (max-width: 91.9px) { .tk__kurz { display: inline; } }
@container (max-width: 53.9px) { .tk__min { display: inline; } }
@container (max-height: 36px) { .tk__info { display: none; } }
@container (max-width: 41.9px) { .tk--frei .tk__info { display: none; } }
@container (max-width: 33.9px) { .tk__info { display: none; } }
/* Runde Karten: nutzbare Breite im Kreis nur ca. 72 Prozent */
@container (min-width: 92px) and (max-width: 127.9px) { .tk--rund .tk__lang { display: none; } .tk--rund .tk__kurz { display: inline; } }
@container (min-width: 54px) and (max-width: 74.9px) { .tk--rund .tk__kurz { display: none; } .tk--rund .tk__min { display: inline; } }
.tk__summe { display: none; margin-top: 1px; font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--text); white-space: nowrap; }
@container (min-width: 60px) and (min-height: 62px) { .tk__summe { display: block; } }
@container (max-width: 79.9px) { .tk--rund .tk__summe { display: none; } }
@container (min-width: 84px) and (min-height: 80px) { .tk__summe { font-size: 13.5px; } .tk__info { font-size: 12px; } }
/* Rueckstufung aus kasse.js einpassen() (nach den Container-Abfragen, deshalb !important) */
.tk.stufe-kurz .tk__lang { display: none !important; }
.tk.stufe-kurz .tk__kurz { display: inline !important; }
.tk.stufe-min .tk__lang, .tk.stufe-min .tk__kurz { display: none !important; }
.tk.stufe-min .tk__min { display: inline !important; }
.tk.stufe-ohne .tk__info { display: none !important; }
.tk.summe-eng .tk__summe { font-size: 10.5px !important; letter-spacing: -.01em; }
.tk.summe-ohne .tk__summe { display: none !important; }

.tk--frei { border-style: solid; }
.tk--besetzt { border: 2px solid var(--gold); background: var(--gold-flaeche); }
.tk--besetzt .tk__nr { color: var(--text); }
.tk--besetzt .tk__info { color: var(--gold-text); }
.tk--zahlen { z-index: 2; border: 2px solid var(--gold); background: var(--gold); color: var(--btn-text); animation: zahlen-atmen 2.6s ease-in-out infinite; }
.tk--zahlen .tk__nr, .tk--zahlen .tk__summe { color: var(--btn-text); }
.tk--zahlen .tk__info { color: rgba(20, 20, 23, .82); }
.tk__zahlen {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -58%); z-index: 3;
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px 2px 6px; border-radius: 999px;
  background: var(--panel); color: var(--gold-text); border: 1.5px solid var(--gold); box-shadow: 0 4px 10px rgba(0, 0, 0, .45);
  font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; line-height: 1.3;
}
.tk__zahlen .icon { width: 13px; height: 13px; --icon-strich: 2.3; }
.tk.ist-gewaehlt { box-shadow: 0 0 0 3px rgba(201, 164, 92, .38), 0 6px 16px rgba(0, 0, 0, .4); }
.tk--zahlen.ist-gewaehlt { box-shadow: 0 0 0 3px rgba(244, 239, 230, .45), 0 6px 16px rgba(0, 0, 0, .4); }
.tk.ist-laden { opacity: .55; }
/* Runde Tische als Kreis, Zustand am Rand */
.tk--rund { border-radius: 50%; border-width: 3px; border-color: var(--kante); }
.tk--rund::before { display: none; }
.tk--rund .tk__innen { inset: 0; padding: 14%; border-radius: 50%; }
.tk--rund.tk--besetzt { border: 3px solid var(--gold); }
.tk--rund.tk--zahlen { border: 3px solid var(--gold); }
.tk--rund:focus-visible { border-radius: 50%; }
@keyframes zahlen-atmen { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 164, 92, .5); } 50% { box-shadow: 0 0 0 8px rgba(201, 164, 92, 0); } }

/* Ohne Grundriss: Karten im Raster je Bereich */
.plan-raster { position: absolute; inset: 0; overflow-y: auto; padding: 4px 4px 12px; }
.plan-raster__liste { padding-top: 10px; } /* Platz fuer die Pille Zahlen ueber der ersten Reihe */
.plan-raster__gruppe + .plan-raster__gruppe { margin-top: 16px; }
.plan-raster__name { margin: 0 0 8px 2px; font-size: 12px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--text-mute); }
.plan-raster__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.plan-raster .tk { position: relative; height: 92px; }

/* Liste "Offene Tische" neben dem Plan */
.offen { display: none; width: 340px; flex: none; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--kante); border-radius: var(--r); box-shadow: none; overflow: hidden; }
.plan-koerper[data-liste="rechts"] .offen { display: flex; }
/* Liste unter dem Plan (Plan durch die Breite begrenzt, unten ist Platz frei): Eintraege nebeneinander */
.plan-koerper[data-liste="unten"] { flex-direction: column; }
.plan-koerper[data-liste="unten"] .plan-rahmen { flex: 0 0 var(--plan-hoehe, auto); }
.plan-koerper[data-liste="unten"] .offen { display: flex; width: auto; flex: 1 1 auto; }
.plan-koerper[data-liste="unten"] .offen__kopf { padding: 10px 16px 8px; }
/* 300 px je Spalte: bei 250 px blieben fuer "4 Pers. · 1 Std 46 Min" (ca. 140 px) nur rund 100 px, der Text endete in "…" */
.plan-koerper[data-liste="unten"] .offen__liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); align-content: start; gap: 4px 8px; }
.plan-koerper[data-liste="unten"] .offen__leer { grid-column: 1 / -1; padding: 12px; }
.offen__kopf { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 10px; border-bottom: 1.5px solid var(--line); }
.offen__kopf h2 { font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.offen__zahl { min-width: 28px; height: 28px; padding: 0 9px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--soft); color: var(--gold); font-weight: 700; font-size: 14px; }
.offen__zahl:empty { display: none; }
.offen__liste { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.offen__liste > * { flex: none; }
.offen__leer { margin: 8px; padding: 28px 16px; }
.ot {
  display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 64px;
  padding: 9px 10px; border: 0; border-radius: 14px; background: none; color: var(--text); text-align: left; cursor: pointer;
  transition: background-color .15s ease;
}
@media (hover: hover) and (pointer: fine) { .ot:hover { background: var(--soft); } }
.ot.ist-gewaehlt { background: var(--soft); box-shadow: inset 0 0 0 1px var(--kante); }
.ot:active { transform: scale(.985); }
.ot__nr { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--karte); border: 1px solid var(--kante); color: var(--gold); font-size: 18px; font-weight: 700; }
.ot.ist-gewaehlt .ot__nr { background: var(--panel); }
/* auch gewaehlt gold: sonst gewaenne .ot.ist-gewaehlt .ot__nr (weiss) und die weisse Zahl waere unsichtbar */
.ot--zahlen .ot__nr, .ot--zahlen.ist-gewaehlt .ot__nr { background: var(--gold); border-color: var(--gold); color: var(--btn-text); }
.ot__text { display: grid; min-width: 0; line-height: 1.3; }
.ot__text b { font-size: 16px; font-weight: 600; }
.ot__text span { font-size: 13px; color: var(--text-soft); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ot__rechts { display: grid; justify-items: end; gap: 3px; }
.ot__summe { font-size: 17px; font-weight: 700; white-space: nowrap; }
.ot__zahlen { padding: 2px 9px; border-radius: 999px; background: var(--gold-bg); color: var(--gold-text); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* ---------------------------------------------------------------------------------------------- */
/* Verkauf                                                                                          */

/* Rechnung steht rechts wie in der Vorlage (order), Breite ca. 31 Prozent */
.cart { order: 2; width: clamp(360px, 31vw, 600px); flex: none; display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-left: 1.5px solid var(--kante); }
.cart-head { height: 70px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid var(--line); min-width: 0; }
.seg { display: flex; align-items: center; gap: 10px; flex: none; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; font: inherit; color: var(--text); }
.seg > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.seg .aktiv { font-weight: 700; font-size: 25px; color: var(--text); letter-spacing: -.005em; }
.seg .aktiv b { color: var(--gold); font-weight: 700; }
.seg__zweit { padding: 6px 12px; border-radius: 999px; background: var(--soft); color: var(--text-soft); font-weight: 500; font-size: 14px; }
.seg__zweit .icon { width: 18px; height: 18px; }
.seg:focus-visible { outline: 2.5px solid var(--lila); outline-offset: 2px; border-radius: 14px; }
.muted { margin-left: auto; color: var(--text-soft); font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cart-info { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 10px 24px 0; font-size: 13.5px; font-weight: 500; color: var(--text-soft); }
.cart-info__zahlen { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--gold-bg); color: var(--gold-text); font-weight: 700; }
.cart-info__zahlen .icon { width: 15px; height: 15px; }

.lines { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 8px; display: flex; flex-direction: column; }
.lines > * { flex: none; }
/* Positionen wie die Vorlage: "2× Name", graue Unterzeile, Preis rechts, Linien dazwischen */
.line { display: flex; align-items: flex-start; gap: 10px; padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
.line.ist-neu { animation: zeile-neu 1.4s ease-out; }
@keyframes zeile-neu { 0% { background: rgba(201, 164, 92, .16); } 100% { background: transparent; } }
.qty { min-width: 34px; flex: none; display: flex; align-items: center; justify-content: flex-start; font-weight: 500; font-size: 20px; line-height: 1.25; color: var(--text-soft); }
.lname { flex: 1; min-width: 0; }
.lname b { display: block; font-weight: 500; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.lname small { display: block; font-size: 14px; color: var(--text-mute); font-weight: 400; margin-top: 2px; }
.price { font-weight: 500; font-size: 20px; line-height: 1.25; white-space: nowrap; }
.lines__teile { margin: 6px 4px 0; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--text-mute); font-weight: 500; }
.cart-leer { margin: auto 8px; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 24px 12px; color: var(--text-soft); font-size: 15px; }
.cart-leer b { color: var(--text); font-size: 18px; font-weight: 700; }
.cart-leer__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--kante); color: var(--gold); }
.cart-leer__icon .icon { width: 28px; height: 28px; }
.cart-leer .knopf { margin-top: 8px; }
.zuletzt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; width: 100%; margin-top: 8px; padding: 10px 12px 10px 14px; border-radius: 14px; background: var(--soft); color: var(--text-soft); font-size: 14px; text-align: left; }
.zuletzt b { color: var(--text); }

.foot { flex: none; display: flex; flex-direction: column; gap: 12px; padding: 14px 24px 20px; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.total span { font-weight: 700; font-size: 32px; color: var(--text); }
.total b { font-weight: 700; font-size: 40px; letter-spacing: -.01em; line-height: 1.1; white-space: nowrap; color: var(--gold); }
.total b.ist-leer { color: #55534e; }
/* Spalten nach Inhalt, Rest gleich verteilt: "Zwischenbon" bleibt auch im schmalen Warenkorb ganz */
.acts { display: grid; grid-template-columns: auto auto auto; gap: 8px; }
.act {
  min-height: 46px; padding: 0 8px; border: 1px solid var(--kante); border-radius: 13px; background: var(--soft); color: var(--text-soft);
  font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background-color .15s ease, transform .1s ease;
}
@media (hover: hover) and (pointer: fine) { .act:hover:not([disabled]) { background: var(--line); color: var(--text); } }
.act:active { transform: scale(.97); }
.act[disabled] { opacity: .45; cursor: not-allowed; }
.pay { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pay__k {
  height: 80px; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 12px;
  font-weight: 700; font-size: 27px; cursor: pointer; transition: transform .1s ease, background-color .15s ease, opacity .15s ease;
}
/* wie die Vorlage nur Text, ohne Symbol */
.pay__k svg { display: none; }
.pay__k--bar { background: var(--soft2); color: var(--text); border: 0; }
.pay__k--karte { background: var(--gold); color: var(--btn-text); border: 0; }
@media (hover: hover) and (pointer: fine) { .pay__k--karte:hover:not([disabled]) { background: var(--lila-dunkel); } .pay__k--bar:hover:not([disabled]) { background: var(--hover); } }
.pay__k:active { transform: scale(.98); }
.pay__k[disabled] { opacity: .4; cursor: not-allowed; transform: none; }
.pay__k:focus-visible { outline: 2.5px solid var(--text); outline-offset: 3px; border-radius: 15px; }
.cart-demo__zusatz { white-space: nowrap; }
/* DEMO-Hinweis steht jetzt in der Fusszeile */
.cart-demo { display: none; margin: -2px 0 0; font-size: 11.5px; font-weight: 500; color: var(--text-mute); text-align: center; letter-spacing: .02em; }

/* Kacheln */
.grid-side { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; container-type: inline-size; container-name: kacheln; }
.grid {
  --spalten: 4;
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: repeat(var(--spalten), minmax(0, 1fr)); grid-auto-rows: minmax(112px, 200px); align-content: start;
  gap: 14px; padding: 12px 24px 24px;
}
@container kacheln (max-width: 559px) { .grid { --spalten: 2; } }
@container kacheln (min-width: 560px) and (max-width: 819px) { .grid { --spalten: 3; } }
.tile {
  position: relative; overflow: hidden; min-height: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  padding: 16px 16px 14px 18px; border-radius: var(--r); background: var(--karte); border: 1px solid var(--kante); box-shadow: none;
  color: var(--text); font: inherit; text-align: left; cursor: pointer;
  transition: transform .1s ease, box-shadow .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation; -webkit-user-select: none; user-select: none;
}
/* kein farbiger Seitenstreifen (Vorlage) */
.tile { container-type: inline-size; --rand: 36px; --max: 22px; }
.tile__kopf { display: grid; gap: 2px; min-width: 0; }
/* Schrift so gross, dass das laengste Wort (--wb: Breite in em, misst kasse.js) in die Kachel passt: nie mitten im Wort trennen */
.tile__name { font-weight: 600; font-size: min(var(--max), calc((100cqi - var(--rand)) / var(--wb, 6))); line-height: 1.2; overflow-wrap: break-word; }
.tile__menge { font-size: 14px; font-weight: 400; color: var(--text-mute); }
.tile__preis { font-weight: 700; font-size: 23px; color: var(--gold); line-height: 1.1; }
.tile__zahl { position: absolute; bottom: 12px; right: 12px; min-width: 32px; height: 28px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--lila); color: var(--btn-text); font-size: 13px; font-weight: 700; }
/* schon auf der Rechnung: wie die goldenen Kacheln der Vorlage */
.tile.im { background: var(--gold-flaeche); border-color: var(--gold); box-shadow: none; }
.tile:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .tile:hover { border-color: var(--druck); } .tile.im:hover { border-color: var(--gold-text); } }
.tile:focus-visible { outline: 2.5px solid var(--lila); outline-offset: 2px; border-radius: var(--r); }
.tile.ist-gebucht::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--lila); opacity: 0; animation: kachel-gebucht .45s ease-out; pointer-events: none; }
@keyframes kachel-gebucht { 0% { opacity: .18; } 100% { opacity: 0; } }
.grid > .leer-hinweis { grid-column: 1 / -1; }

/* ---------------------------------------------------------------------------------------------- */
/* Belege und Abschluss                                                                             */

.seite { overflow-y: auto; overscroll-behavior: contain; }
.seite__innen { width: min(980px, 100%); margin: 0 auto; padding: 24px 22px 28px; display: flex; flex-direction: column; gap: 14px; }
.seite__kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.seite__titel { font-size: 26px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.seite__muted { color: var(--text-soft); font-size: 16px; font-weight: 500; }
.seite__hinweis { color: var(--text-mute); font-size: 13px; font-weight: 500; }
.seite__unter { margin-top: 10px; font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.seite__fuss { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--text-mute); font-size: 13px; font-weight: 500; }

.belege { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.belege__leer { padding: 40px 20px; }
.beleg {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto 20px; align-items: center; gap: 14px; width: 100%; min-height: 68px;
  padding: 10px 16px; border: 1px solid var(--kante); border-radius: var(--r); background: var(--karte); box-shadow: none;
  color: var(--text); text-align: left; cursor: pointer; font: inherit;
}
@media (hover: hover) and (pointer: fine) { .beleg:hover { border-color: rgba(201, 164, 92, .35); } }
.beleg:active { transform: scale(.99); }
.beleg__zeit { font-size: 18px; font-weight: 700; }
.beleg__tisch { display: grid; line-height: 1.3; min-width: 0; }
.beleg__tisch b { font-size: 17px; font-weight: 600; }
.beleg__tisch span { font-size: 13px; color: var(--text-soft); }
.beleg__art { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--soft2); color: var(--text-soft); }
.beleg__art--karte { background: var(--gold); color: var(--btn-text); }
.beleg__betrag { font-size: 19px; font-weight: 700; white-space: nowrap; color: var(--gold); }
.beleg__pfeil { color: var(--text-mute); display: grid; }
.beleg__pfeil .icon { width: 18px; height: 18px; }

.summen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.summe { display: grid; gap: 2px; padding: 18px 20px; border-radius: var(--r); background: var(--karte); border: 1px solid var(--kante); box-shadow: none; min-width: 0; }
.summe__titel { font-size: 15px; font-weight: 600; color: var(--text-soft); }
.summe b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.summe__zusatz { font-size: 13px; color: var(--text-mute); font-weight: 500; }
.summe--gesamt { background: var(--gold); border-color: var(--gold); color: var(--btn-text); }
.summe--gesamt .summe__titel, .summe--gesamt .summe__zusatz { color: rgba(20, 20, 23, .74); }

.einst-liste { display: grid; gap: 8px; }
.einst {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 72px; padding: 12px 16px;
  border: 1px solid var(--kante); border-radius: var(--r); background: var(--karte); box-shadow: none;
  color: var(--text); text-align: left; cursor: pointer; font: inherit;
}
@media (hover: hover) and (pointer: fine) { .einst:hover { border-color: rgba(201, 164, 92, .35); } }
.einst[disabled] { opacity: .55; cursor: progress; }
.einst__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--soft); color: var(--gold); }
.einst__icon .icon { width: 22px; height: 22px; }
.einst__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.einst__text b { font-size: 16px; font-weight: 600; }
.einst__text span { font-size: 13px; color: var(--text-soft); line-height: 1.35; }
.einst--gefahr b { color: var(--err); }
.einst--gefahr .einst__icon { background: var(--err-bg); color: var(--err); }
.schalter__bahn { position: relative; flex: none; width: 52px; height: 30px; border-radius: 999px; background: var(--druck); transition: background-color .18s ease; }
.schalter__knopf { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .45); transition: transform .18s ease; }
[aria-checked="true"] > .schalter__bahn { background: var(--lila); }
[aria-checked="true"] > .schalter__bahn .schalter__knopf { transform: translateX(22px); }

/* ---------------------------------------------------------------------------------------------- */
/* Blaetter: Tisch oeffnen, Runden, Bezahlen, Bon                                                   */

.zahl-blatt .blatt__inhalt { padding-top: 4px; }
.zahl-fuss { display: flex; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; flex-wrap: wrap; }
.zahl-fuss .knopf { flex: 1 1 0; min-width: 140px; padding: 0 1em; }
.zahl-fuss .knopf[hidden] { display: none !important; }
.zahl-fuss .knopf.ist-gesperrt { pointer-events: none; }
.zahl-meldung { flex: 1 1 100%; margin: 0; color: var(--err); font-size: 14px; font-weight: 600; }
.zahl-meldung:empty { display: none; }
.zahl-info { margin: 0 0 12px; padding: 10px 14px; border-radius: 14px; background: var(--gold-bg); color: var(--gold-text); font-size: 14px; font-weight: 600; }
.zahl-schon-frei { margin-top: 16px; }

/* Tisch oeffnen */
.oeffnen { display: grid; gap: 12px; }
.oeffnen__ort { color: var(--text-soft); font-weight: 500; }
.oeffnen__zeile { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--soft); }
.oeffnen__text { display: grid; min-width: 0; }
.oeffnen__text b { font-size: 17px; font-weight: 600; }
.oeffnen__text span { font-size: 13px; color: var(--text-soft); font-weight: 500; }
.oeffnen__tarif { display: flex; align-items: center; gap: 8px; color: var(--text-soft); font-size: 14px; font-weight: 500; }
.oeffnen__warn { padding: 8px 12px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 14px; font-weight: 600; }
.oeffnen .zuletzt { margin-top: 0; }

/* Runden */
.runden { display: flex; flex-direction: column; gap: 12px; }
.runden > * { flex: none; }
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px 18px; margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--soft); }
.fakt { min-width: 0; }
.fakt dt { font-size: 12px; font-weight: 600; color: var(--text-mute); }
.fakt dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--text); }
.fakt__tarif { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.runden__leer { color: var(--text-soft); padding: 4px 4px 8px; }
.runde { padding: 12px 14px 14px; border: 1px solid var(--kante); border-radius: 16px; background: var(--karte); }
.runde__kopf { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.runde__kopf b { font-size: 16px; font-weight: 700; }
.runde__zeit { font-size: 13px; color: var(--text-soft); font-weight: 500; }
.runde__kopf .pille { margin-left: auto; }
.runde__liste { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.pos { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; font-size: 14.5px; color: var(--text); }
.pos__menge { color: var(--text-soft); font-weight: 600; }
.pos__name small { display: block; color: var(--text-soft); font-style: italic; font-size: 12.5px; }
.pos__preis { white-space: nowrap; font-weight: 600; }
.pos--storniert { opacity: .5; }
.pos--storniert .pos__name { text-decoration: line-through; }
.pos--storniert .pos__preis { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }

/* Bar */
.bar { container-type: inline-size; }
.bar__raster { display: grid; gap: 14px; }
@container (min-width: 600px) { .bar__raster { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; } }
.bar__links, .bar__rechts { display: grid; gap: 12px; align-content: start; min-width: 0; }
.bar__zeile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; background: var(--soft); }
.bar__summe { font-size: 26px; font-weight: 800; color: var(--text); }
.bar__gegeben {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label loeschen" "wert wert"; align-items: center; gap: 2px 10px;
  padding: 10px 12px 10px 16px; border-radius: 16px; border: 2px solid var(--lila); background: var(--panel);
}
.bar__gegeben .t-label { grid-area: label; }
.bar__loeschen { grid-area: loeschen; min-height: 40px; padding: 0 1em; font-size: 14px; }
.bar__gegeben-wert { grid-area: wert; font-size: 38px; font-weight: 800; color: var(--text); text-align: right; line-height: 1.15; letter-spacing: -.02em; }
.bar__gegeben-wert.ist-leer { color: #55534e; }
.bar__rueck { display: grid; gap: 2px; align-content: center; min-height: 100px; padding: 12px 16px; border-radius: 16px; border: 1.5px dashed var(--druck); }
.bar__rueck.ist-genug { border: 0; background: var(--ok-bg); }
.bar__rueck-wert { font-size: 42px; font-weight: 800; line-height: 1.1; color: var(--ok); letter-spacing: -.02em; }
.bar__fehlt { font-size: 26px; font-weight: 800; color: var(--warn); }
.bar__hinweis { color: var(--text-soft); font-size: 14px; }
.bar__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-betrag {
  flex: 1 1 auto; min-height: 48px; padding: 0 14px; border-radius: 13px; cursor: pointer;
  border: 0; background: var(--soft2); color: var(--text); font-size: 16px; font-weight: 700;
  transition: background-color .15s ease, transform .1s ease;
}
.chip-betrag--passend { background: var(--gold); color: var(--btn-text); }
@media (hover: hover) and (pointer: fine) { .chip-betrag:hover { background: var(--hover); } .chip-betrag--passend:hover { background: var(--lila-dunkel); } }
.chip-betrag:active { transform: scale(.96); }
.chip-betrag[disabled] { opacity: .4; cursor: not-allowed; }
.ziffern { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ziffer {
  min-height: 58px; border-radius: var(--r); border: 0; background: var(--soft2); color: var(--text);
  font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; display: grid; place-items: center;
  transition: transform .1s ease, background-color .1s ease;
}
@media (hover: hover) and (pointer: fine) { .ziffer:hover { background: var(--hover); } }
.ziffer:active, .ziffer.ist-gedrueckt { transform: scale(.95); background: var(--druck); }
.ziffer--leise { background: transparent; color: var(--text-soft); }
.ziffer .icon { width: 24px; height: 24px; }
.ziffer[disabled] { opacity: .35; cursor: not-allowed; }

/* Karte (Simulation) */
.kz { display: grid; gap: 14px; justify-items: center; text-align: center; padding-top: 4px; }
.kz__betrag { display: grid; gap: 2px; }
.kz__betrag b { font-size: 40px; font-weight: 800; color: var(--text); line-height: 1.15; letter-spacing: -.03em; }
.kz__hinweis { max-width: 42ch; }
.terminal { position: relative; width: 230px; height: 236px; display: grid; justify-items: center; }
.terminal__geraet {
  position: relative; width: 148px; height: 232px; display: grid; grid-template-rows: auto auto 1fr; gap: 10px; padding: 11px 12px 14px; overflow: hidden;
  border-radius: 24px; border: 1px solid rgba(0, 0, 0, .2);
  background: linear-gradient(165deg, #2b3038 0%, #181b21 55%, #121418 100%);
  box-shadow: 0 22px 36px -18px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.terminal__kopf { display: flex; align-items: center; justify-content: space-between; font-size: .56rem; font-weight: 600; letter-spacing: .16em; color: #8a929c; }
.terminal__led { width: 8px; height: 8px; border-radius: 50%; background: #3a3f47; }
.terminal__schirm {
  position: relative; height: 104px; border-radius: 10px; display: grid; align-content: center; justify-items: center; gap: 3px; padding: 8px;
  background: linear-gradient(180deg, #0e1216, #090b0e); border: 1px solid rgba(255, 255, 255, .08); overflow: hidden;
}
.terminal__betrag { color: #fff; font-size: 1.05rem; }
.terminal__text { color: #b9c0c9; font-size: .66rem; letter-spacing: .06em; }
.terminal__wellen { position: absolute; top: 8px; right: 10px; width: 18px; height: 18px; opacity: 0; }
.terminal__wellen i { position: absolute; right: 0; top: 50%; border: 1.5px solid #9fd3f2; border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: translateY(-50%) rotate(45deg); opacity: .25; }
.terminal__wellen i:nth-child(1) { width: 6px; height: 6px; right: 6px; }
.terminal__wellen i:nth-child(2) { width: 12px; height: 12px; right: 3px; }
.terminal__wellen i:nth-child(3) { width: 18px; height: 18px; right: 0; }
.terminal__tasten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; align-content: center; }
.terminal__tasten i { height: 13px; border-radius: 5px; background: rgba(255, 255, 255, .08); }
.terminal__karte {
  position: absolute; left: 50%; top: 18px; width: 92px; height: 58px; border-radius: 8px; opacity: 0; pointer-events: none;
  background: linear-gradient(135deg, #e3c58a 0%, #c9a45c 55%, #a8843f 100%); box-shadow: 0 14px 24px -10px rgba(0, 0, 0, .7);
  transform: translate(46px, -18px) rotate(18deg);
}
.terminal__karte::before { content: ""; position: absolute; left: 12px; top: 18px; width: 16px; height: 12px; border-radius: 3px; background: #8e6f3f; }
.terminal__karte::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 11px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.terminal[data-phase="senden"] .terminal__led { background: #9fd3f2; }
.terminal[data-phase="vorhalten"] .terminal__led { background: #9fd3f2; animation: led-blinken .8s steps(2, jump-none) infinite; }
.terminal[data-phase="vorhalten"] .terminal__wellen { opacity: 1; }
.terminal[data-phase="vorhalten"] .terminal__wellen i { animation: welle 1.2s ease infinite; }
.terminal[data-phase="vorhalten"] .terminal__wellen i:nth-child(2) { animation-delay: .15s; }
.terminal[data-phase="vorhalten"] .terminal__wellen i:nth-child(3) { animation-delay: .3s; }
.terminal[data-phase="vorhalten"] .terminal__karte { animation: karte-hin 2.5s ease forwards; }
.terminal[data-phase="vorhalten"] .terminal__text { color: #cfe9f9; font-weight: 600; }
.terminal[data-phase="genehmigt"] .terminal__led { background: #4fcf8d; }
.terminal[data-phase="genehmigt"] .terminal__text { color: #a8f0c9; font-weight: 600; }
.terminal[data-phase="genehmigt"] .terminal__schirm { border-color: rgba(79, 207, 141, .45); }
@keyframes led-blinken { 0% { opacity: 1; } 100% { opacity: .25; } }
@keyframes welle { 0%, 100% { opacity: .2; } 40% { opacity: 1; } }
@keyframes karte-hin {
  0% { opacity: 0; transform: translate(70px, -26px) rotate(12deg); }
  18% { opacity: 1; }
  45%, 85% { opacity: 1; transform: translate(30px, -16px) rotate(-10deg); }
  100% { opacity: .95; transform: translate(30px, -14px) rotate(-10deg); }
}
.karte-status { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 1.6em; margin: 0; font-size: 19px; font-weight: 700; color: var(--text); }
.terminal[data-phase="genehmigt"] ~ .karte-status { color: var(--ok); }
.terminal ~ .karte-status.ist-fehler { color: var(--warn); font-size: 16px; }
.karte-fortschritt { width: min(360px, 100%); }
.karte-fortschritt--zeit::after { width: 100%; transform-origin: left center; animation: karte-zeit var(--dauer, 2500ms) linear forwards; }
@keyframes karte-zeit { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; width: min(360px, 100%); text-align: left; }
.schritte li { display: flex; align-items: center; gap: 12px; color: var(--text-mute); font-size: 15px; font-weight: 500; }
.schritte__punkt { position: relative; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--druck); flex: none; }
.schritte li.ist-aktiv { color: var(--text); font-weight: 600; }
.schritte li.ist-aktiv .schritte__punkt { border-color: var(--lila); box-shadow: 0 0 0 4px rgba(201, 164, 92, .12); }
.schritte li.ist-aktiv .schritte__punkt::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--lila); animation: led-blinken 1s ease-in-out infinite alternate; }
.schritte li.ist-fertig { color: var(--text); }
.schritte li.ist-fertig .schritte__punkt { background: var(--ok); border-color: var(--ok); }
.schritte li.ist-fertig .schritte__punkt::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Bon (80-mm-Papier) */
.bon-blatt .blatt__inhalt { background: var(--bg); padding-top: 14px; }
.bon-ansicht { display: grid; gap: 14px; justify-items: center; padding-bottom: 14px; }
.bon-ansicht__ok, .bon-ansicht__zwischen { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0; padding: 10px 14px; border-radius: 14px; font-weight: 600; font-size: 14.5px; }
.bon-ansicht__ok { background: var(--ok-bg); color: var(--ok); }
.bon-ansicht__zwischen { background: var(--gold-bg); color: var(--gold-text); }
.bon-ansicht__ok .icon, .bon-ansicht__zwischen .icon { width: 22px; height: 22px; flex: none; }
.bon-ansicht__warn { width: 100%; margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--warn-bg); color: var(--warn); font-size: 14px; font-weight: 600; }
.bon { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); max-width: 100%; }
.bon__papier {
  position: relative; width: 80mm; max-width: 100%; padding: 18px 16px 30px;
  background: #fffdf8; color: #17140f;
  font-family: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.45;
  -webkit-user-select: text; user-select: text;
}
.bon__papier::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 12px; border-top: 1.5px dashed rgba(23, 20, 15, .35); }
.bon__abriss { position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: conic-gradient(from -45deg at 50% 100%, #fffdf8 90deg, transparent 0) 0 0 / 14px 100% repeat-x; }
.bon__kopf { display: grid; gap: 1px; text-align: center; }
.bon__name { font-size: 15px; font-weight: 700; letter-spacing: .03em; }
.bon__zwischen { margin-top: 8px; padding: 3px 0; border-top: 1.5px solid #17140f; border-bottom: 1.5px solid #17140f; text-align: center; font-weight: 700; letter-spacing: .12em; }
.bon__linie { border: 0; border-top: 1px dashed rgba(23, 20, 15, .5); margin: 8px 0; }
.bon__linie--doppelt { border-top: 3px double rgba(23, 20, 15, .7); }
.bon__zeile { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bon__zeile > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.bon__betrag { white-space: nowrap; text-align: right; }
.bon__posten + .bon__posten { margin-top: 3px; }
.bon__je { padding-left: 2ch; font-size: 11.5px; color: rgba(23, 20, 15, .62); }
.bon__summe { font-size: 15px; font-weight: 700; }
.bon__rueck { font-weight: 700; }
.bon__klein { font-size: 11.5px; color: rgba(23, 20, 15, .66); }
.bon__mitte { text-align: center; }
.bon__demo { margin: 4px 0 6px; padding: 6px 4px; border: 1.5px solid #17140f; text-align: center; font-weight: 700; font-size: 13px; line-height: 1.35; letter-spacing: .02em; }
.bon__dank { margin-top: 10px; text-align: center; font-weight: 600; }

/* Druck: nur der Bon, 80 mm breit (Seitenhoehe setzt kasse.js passend) */
.druck { display: none; }
.druck.ist-messen { display: block; position: absolute; left: -10000px; top: 0; width: 80mm; }
@media print {
  html, body { height: auto !important; overflow: visible !important; background: #fff !important; }
  body > *:not(.druck) { display: none !important; }
  .druck { display: block !important; position: static !important; }
  .bon--druck { filter: none; }
  .bon--druck .bon__papier { width: 80mm; max-width: none; padding: 4mm 4mm 6mm; background: #fff; color: #000; box-shadow: none; }
  .bon--druck .bon__papier::after, .bon--druck .bon__abriss { display: none; }
}

/* ---------------------------------------------------------------------------------------------- */
/* Verbindungshinweis                                                                               */

.netz-banner {
  position: fixed; z-index: 800; top: calc(var(--topbar) + 12px); left: 50%; transform: translateX(-50%); width: min(720px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: var(--r);
  background: var(--panel); border: 1.5px solid rgba(238, 90, 82, .5); box-shadow: var(--shadow-big); color: var(--text);
}
.netz-banner--lokal { border-color: rgba(240, 181, 69, .5); }
.netz-banner__icon { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--err-bg); color: var(--err); flex: none; }
.netz-banner--lokal .netz-banner__icon { background: var(--warn-bg); color: var(--warn); }
.netz-banner__text { flex: 1; font-size: 14px; color: var(--text-soft); }
.netz-banner__text b { color: var(--text); }
.noscript { padding: 24px; color: var(--text); font-family: sans-serif; }

/* ---------------------------------------------------------------------------------------------- */
/* Breiten und Hoehen                                                                               */

/* Schmalere Fenster (auch /pult/ bei 1920 px): Warenkorb und Kopf etwas kleiner */
/* Gross (1920 x 1080): Masse der Vorlage halbiert */
@media (min-width: 1600px) and (min-height: 900px) {
  :root { --topbar: 85px; --fussleiste: 35px; }
  .topbar { padding: 0 35px; gap: 26px; }
  .logo__wort { font-size: 42px; }
  .logo__zusatz { font-size: 20px; }
  .nav { gap: 12px; margin-left: 14px; }
  .nav__k { font-size: 19px; padding: 9px 22px; min-height: 48px; }
  .chip { font-size: 15px; padding: 7px 15px; }
  .kopf-info { font-size: 20px; }
  .fuss { padding: 0 35px; font-size: 15px; }
  .tabs { gap: 12px; padding: 25px 30px 8px; }
  .tab { font-size: 21px; padding: 9px 22px; }
  .grid { gap: 15px; padding: 14px 30px 30px; grid-auto-rows: minmax(140px, 150px); }
  .cart-head { height: 80px; padding: 0 28px; }
  .seg .aktiv { font-size: 27px; }
  .cart-info { padding: 12px 28px 0; }
  .lines { padding: 4px 24px 8px; }
  .lname b, .price, .qty { font-size: 22px; }
  .lname small { font-size: 16px; }
  .foot { padding: 16px 28px 26px; gap: 14px; }
  .total span { font-size: 36px; }
  .total b { font-size: 44px; }
  .pay__k { height: 90px; font-size: 26px; }
  .plan-kopf { padding: 22px 30px 6px; }
  .plan-koerper { padding: 14px 30px 26px; }
}
@media (max-width: 1240px) {
  .topbar { gap: 14px; padding: 0 16px; }
  .nav { margin-left: 0; gap: 6px; }
  .nav__k { padding: 8px 14px; font-size: 15px; }
  .kopf-info__kasse { display: none; }
  .cart { width: clamp(340px, 31vw, 400px); }
  .lname b { font-size: 18px; }
  .price { font-size: 19px; }
  .qty { width: 46px; height: 46px; font-size: 17px; }
  .total b { font-size: 40px; }
  .pay__k { height: 68px; font-size: 24px; }
  .tab { font-size: 16px; padding: 8px 16px; min-height: 44px; }
  .tile { --max: 19px; }
  .tile__preis { font-size: 21px; }
  .grid { gap: 12px; padding: 10px 16px 16px; }
  .cart-head { padding: 0 18px; }
  .cart-info { padding: 8px 18px 0; }
  .lines { padding: 4px 14px 8px; }
  .foot { padding: 12px 18px 16px; }
  .total span { font-size: 26px; }
  .fuss { padding: 0 16px; }
  .tabs { padding: 14px 16px 6px; }
  .plan-kopf { padding: 14px 16px 4px; }
  .plan-koerper { padding: 10px 16px 16px; gap: 12px; }
  .offen { width: 300px; }
}
@media (max-width: 1100px) {
  .kopf-info__datum { display: none; }
  .logo__wort { font-size: 26px; }
  .logo__zusatz { font-size: 15px; }
  .chip { font-size: 13.5px; padding: 6px 12px; }
  .fuss__zusatz { display: none; }
}
@media (max-width: 920px) {
  .logo__zusatz { display: none; }
  .logo__wort { font-size: 22px; }
  .nav__k { padding: 8px 12px; font-size: 14.5px; }
  .cart { width: 320px; }
  .cart-head { height: 60px; padding: 0 14px; }
  .seg > span { padding: 7px 12px; font-size: 15px; }
  .seg__zweit span { display: none; }
  .muted { font-size: 14px; }
  .cart-info { padding: 8px 14px 0; font-size: 12.5px; gap: 2px 10px; }
  .foot { padding: 12px 14px; gap: 10px; }
  .lines { padding: 8px 8px 6px; }
  .line { padding: 8px; gap: 10px; }
  .lname b { font-size: 16px; }
  .lname small { font-size: 13px; }
  .price { font-size: 17px; }
  .qty { min-width: 28px; font-size: 16px; }
  .total span { font-size: 22px; }
  .total b { font-size: 34px; }
  .act { min-height: 42px; font-size: 14.5px; }
  .pay__k { height: 60px; font-size: 21px; gap: 10px; }
  .pay__k svg { width: 26px; height: 26px; }
  .zaehler { font-size: 14px; }
  .zaehler b { font-size: 16px; }
}
@media (max-width: 760px) {
  .kopf-info { display: none; }
  .zaehler > span:not(.zaehler__punkt) { white-space: nowrap; }
}

/* Niedrige Fenster (Laptop 1366 x 768 mit Browserleisten) */
@media (max-height: 800px) {
  .plan-kopf { padding-top: 12px; padding-bottom: 2px; }
  .plan-koerper { padding-top: 8px; padding-bottom: 14px; }
  .plan-flaeche { margin-top: 8px; }
  .plan-fuss { padding-top: 4px; padding-bottom: 6px; }
  .total b { font-size: 40px; }
  .pay__k { height: 68px; font-size: 24px; }
  .foot { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .cart-head { height: 62px; }
  .line { padding: 10px 4px; }
  .ziffer { min-height: 50px; font-size: 20px; }
  .bar__gegeben-wert { font-size: 32px; }
  .bar__rueck { min-height: 86px; }
  .bar__rueck-wert { font-size: 36px; }
  .terminal { height: 200px; }
  .terminal__geraet { height: 196px; gap: 8px; }
  .terminal__schirm { height: 88px; }
  .terminal__tasten { gap: 5px; }
  .terminal__tasten i { height: 10px; }
  .kz { gap: 10px; }
  .kz__betrag b { font-size: 34px; }
}
@media (max-height: 690px) {
  .tabs { padding-top: 12px; }
  .plan-kopf { padding-top: 12px; }
  .total b { font-size: 34px; }
  .pay__k { height: 60px; font-size: 22px; }
  .act { min-height: 42px; }
  .cart-demo { display: none; }
  .terminal { height: 178px; }
  .terminal__geraet { height: 174px; gap: 7px; padding-bottom: 10px; }
  .terminal__schirm { height: 80px; }
  .terminal__tasten i { height: 8px; }
  .blatt__kopf { padding-top: 12px; padding-bottom: 4px; }
  .blatt__fuss { padding-top: 10px; padding-bottom: 12px; }
  .knopf--gross { min-height: 52px; }
}
@media (max-height: 640px) {
  .kz__hinweis { display: none; }
  .terminal { height: 160px; }
  .terminal__geraet { height: 156px; }
  .terminal__tasten { display: none; }
  .bar__rueck { min-height: 72px; }
  .ziffer { min-height: 46px; }
  .bar__raster { gap: 10px; }
  .bar__links, .bar__rechts { gap: 9px; }
}
/* /pult/ auf dem 1366-x-768-Laptop: iframe nur ca. 560 px hoch (LESSONS 2026-10-13) */
@media (max-height: 600px) {
  .kz { gap: 7px; padding-top: 0; }
  .kz__betrag b { font-size: 28px; }
  .terminal { height: 136px; }
  .terminal__geraet { height: 132px; gap: 6px; padding: 9px 11px 10px; }
  .terminal__schirm { height: 78px; }
  .terminal__karte { top: 8px; }
  .karte-status { font-size: 16px; }
  .schritte { gap: 5px; }
  .schritte li { font-size: 13.5px; }
  .ziffer { min-height: 42px; font-size: 18px; }
  .bar__zeile { padding: 8px 14px; }
  .bar__summe { font-size: 22px; }
  .bar__gegeben-wert { font-size: 28px; }
  .bar__rueck { min-height: 62px; padding: 8px 14px; }
  .bar__rueck-wert { font-size: 30px; }
  .chip-betrag { min-height: 42px; }
  .blatt__inhalt { padding-left: 20px; padding-right: 20px; }
  .tile { padding: 12px 12px 10px 14px; }
}

/* PIN-Abfrage in niedrigen Fenstern: alles ohne Scrollen sichtbar */
@media (max-height: 740px) {
  .dialog--pin { padding: 18px 24px 16px; }
  .dialog--pin .dialog__marke { width: 38px; height: 38px; margin-bottom: 8px; }
  .dialog--pin .dialog__marke .icon { width: 18px; height: 18px; }
  .dialog--pin .dialog__text { margin-top: 4px; }
  .dialog--pin .dialog__inhalt { margin-top: 12px; }
  .dialog--pin .pinfeld { gap: 12px; }
  .dialog--pin .pinfeld__tasten { grid-template-columns: repeat(3, 76px); gap: 9px; }
  .dialog--pin .pinfeld__taste { width: 76px; height: 54px; font-size: 20px; }
  .dialog--pin .dialog__knoepfe { margin-top: 12px; }
}
@media (max-height: 600px) {
  .dialog--pin .dialog__marke { display: none; }
  .dialog--pin .pinfeld__tasten { grid-template-columns: repeat(3, 70px); gap: 8px; }
  .dialog--pin .pinfeld__taste { width: 70px; height: 48px; font-size: 19px; }
}

/* Eingebettet in /pult/ (?eingebettet=1): kompakter Kopf, Warenkorb 320 bis 360 px */
.ist-eingebettet { --topbar: 58px; --fussleiste: 24px; }
.ist-eingebettet .fuss { padding: 0 12px; font-size: 11px; }
.ist-eingebettet .kopf-info { font-size: 13.5px; }
.ist-eingebettet .kopf-info__kasse, .ist-eingebettet .kopf-info__datum { display: none; }
.ist-eingebettet .topbar { gap: 12px; padding: 0 12px; }
.ist-eingebettet .logo { gap: 8px; }
.ist-eingebettet .logo__kachel { width: 40px; height: 40px; border-radius: 11px; }
.ist-eingebettet .logo__kachel img { width: 29px; height: 29px; }
.ist-eingebettet .logo__wort { font-size: 22px; }
.ist-eingebettet .logo__zusatz { font-size: 14px; }
.ist-eingebettet .nav { gap: 5px; margin-left: 0; }
.ist-eingebettet .nav__k { min-height: 40px; padding: 7px 12px; font-size: 14.5px; }
.ist-eingebettet .chip { font-size: 12.5px; padding: 5px 10px; gap: 6px; }
.ist-eingebettet .chip i { width: 8px; height: 8px; }
.ist-eingebettet .rb { padding-left: 12px; gap: 6px; }
.ist-eingebettet .rb small { display: none; }
.ist-eingebettet .rb img { height: 24px; }
.ist-eingebettet .cart { width: clamp(310px, 30vw, 340px); }
.ist-eingebettet .cart-head { height: 54px; padding: 0 14px; gap: 10px; }
.ist-eingebettet .seg { gap: 8px; }
.ist-eingebettet .seg .aktiv { font-size: 19px; }
.ist-eingebettet .seg__zweit { padding: 5px 9px; font-size: 13px; }
.ist-eingebettet .seg__zweit span { display: none; }
/* schmale Rechnung: Bereich darf umbrechen statt mit Auslassung zu enden */
.ist-eingebettet .muted { font-size: 12.5px; line-height: 1.25; white-space: normal; overflow: visible; text-overflow: clip; text-align: right; }
.ist-eingebettet .cart-info { padding: 6px 14px 0; font-size: 12.5px; gap: 2px 10px; }
.ist-eingebettet .lines { padding: 2px 10px 4px; }
.ist-eingebettet .line { padding: 7px 2px; gap: 8px; }
.ist-eingebettet .qty { min-width: 26px; font-size: 15.5px; }
.ist-eingebettet .lname b { font-size: 15.5px; }
.ist-eingebettet .lname small { font-size: 12px; }
.ist-eingebettet .price { font-size: 15.5px; }
.ist-eingebettet .foot { padding: 10px 14px 12px; gap: 8px; }
.ist-eingebettet .total span { font-size: 21px; }
.ist-eingebettet .total b { font-size: 28px; }
.ist-eingebettet .act { min-height: 40px; padding: 0 4px; font-size: 13.5px; border-radius: 11px; }
.ist-eingebettet .pay { gap: 8px; }
.ist-eingebettet .pay__k { height: 56px; font-size: 20px; gap: 8px; border-radius: 13px; }
.ist-eingebettet .tabs { gap: 8px; padding: 12px 12px 4px; }
.ist-eingebettet .tab { min-height: 40px; padding: 7px 14px; font-size: 14.5px; }
.ist-eingebettet .grid { gap: 10px; padding: 8px 12px 12px; grid-auto-rows: minmax(96px, 150px); }
.ist-eingebettet .tile { padding: 11px 12px 10px 14px; --max: 16px; --rand: 30px; }
.ist-eingebettet .tile__menge { font-size: 12.5px; }
.ist-eingebettet .tile__preis { font-size: 19px; }
.ist-eingebettet .tile__zahl { bottom: 9px; right: 9px; height: 24px; min-width: 28px; font-size: 12px; }
.ist-eingebettet .plan-kopf { padding: 10px 12px 2px; gap: 8px 12px; }
.ist-eingebettet .plan-kopf .tabs { padding: 0; }
.ist-eingebettet .zaehler { font-size: 13.5px; min-height: 40px; gap: 6px; }
.ist-eingebettet .zaehler b { font-size: 15px; }
.ist-eingebettet .zaehler__zahlen { min-height: 34px; font-size: 13px; padding: 0 11px 0 9px; }
.ist-eingebettet .plan-koerper { padding: 8px 12px 12px; gap: 10px; }
.ist-eingebettet .plan-flaeche { margin: 8px 8px 0; }
.ist-eingebettet .offen { width: 290px; }
.ist-eingebettet .seite__innen { padding: 16px 14px 20px; gap: 12px; }
.ist-eingebettet .seite__titel { font-size: 21px; }
.ist-eingebettet .summe { padding: 14px 16px; }
.ist-eingebettet .summe b { font-size: 26px; }
.ist-eingebettet .beleg { min-height: 58px; grid-template-columns: 54px minmax(0, 1fr) auto auto 18px; gap: 10px; padding: 8px 12px; }
.ist-eingebettet .beleg__zeit { font-size: 16px; }
.ist-eingebettet .beleg__betrag { font-size: 17px; }
.ist-eingebettet .einst { min-height: 62px; padding: 10px 14px; }
.ist-eingebettet .start { padding: 16px 14px 14px; }
.ist-eingebettet .start__karte { padding: 24px 22px 20px; gap: 8px; }
.ist-eingebettet .start__titel { font-size: 21px; margin-top: 4px; }
/* Eingebettet und schmal: Zaehler unter die Bereichs-Pillen */
@media (max-width: 1000px) {
  .ist-eingebettet .plan-kopf { flex-wrap: wrap; }
  .ist-eingebettet .plan-kopf .tabs { flex-basis: 100%; }
  .ist-eingebettet .zaehler { min-height: 30px; }
}
@media (max-width: 1000px) {
  .ist-eingebettet .logo__zusatz { display: none; }
}
@media (max-width: 860px) {
  .ist-eingebettet .chip { padding: 5px 9px; }
  .ist-eingebettet .kopf-info { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .tk--zahlen, .zaehler__zahlen { animation: none !important; }
  .terminal[data-phase="vorhalten"] .terminal__karte { animation: none !important; opacity: 1; transform: translate(30px, -16px) rotate(-10deg); }
}
