/* MKK Kasse · MKK Systems. Gestaltung „Laterne“ (Min 17.11.2026, Kasse Design-Regeln in Obsidian):
   nur Schwarz, Weiß und Gelb, dazu die Kategorie-Kacheln. Bestellnummern in Gelb. Nur Arial, Überschriften fett.
   Eckig (2 px), eng, getönte Flächen statt Linien, keine Bewegung. Hell/Dunkel folgt dem Gerät, Dunkel ist die Hauptansicht.
   Warn- und Statusfarben nur dort, wo sie etwas melden. Kontrast: jede Schrift mind. 4,5:1 in allen Zuständen,
   farbige Flächen mit weißer Schrift. Der Abschnitt „Laterne“ am Dateiende geht älteren Regeln weiter oben vor. */


:root {
  color-scheme: light;
  /* Laterne (Min 17.11.2026): nur Schwarz, Weiß und Gelb, dazu die Kategorie-Kacheln. Getönte Flächen statt Linien. */
  --bg: #FFFFFF;
  --card: #EEEEEE;            /* getönte Fläche: Zeilen, Kästen, PIN-Tasten */
  --text: #000000;
  --text-2: #555555;
  --text-glass-2: #555555;
  --icon-3: #8A8A8A;          /* nur Symbole und Ränder, keine Schrift */
  --rand: #8A8A8A;
  --sep: #D2D2D2;
  --fill: #E2E2E2;
  --fill-2: #D2D2D2;
  --plan: #FFFFFF;
  --dunkel: #2C2C2E;
  --accent: #000000;
  --accent-press: #2A2A2A;
  --accent-ink: #000000;
  --on-accent: #FFFFFF;
  --accent-tint: #E2E2E2;
  --green: #000000;
  --green-press: #2A2A2A;
  --nr: #6F5B14;              /* Bestellnummern: im Hellen dunkles Gelbbraun, Gelb auf Weiß ist nicht lesbar */
  --red: #DB2E2E;
  --red-press: #A82B2B;
  --red-ink: #B02A2A;
  --red-auf-weiss: #B02A2A;
  --orange: #A86200;          /* Warnton: wartet, Hinweis */
  --orange-press: #8A5000;
  --orange-ink: #7A4A00;
  --indigo: #0F7C8A;          /* in der Küche, Rechnung */
  --indigo-press: #0B6370;
  --deko: #FFFFFF;
  --senden: #167A46;
  --senden-press: #13693D;
  --gray-btn: #E2E2E2;
  --gray-btn-press: #D2D2D2;
  --glass: #FFFFFF;
  --glass-strong: #FFFFFF;
  --glass-edge: 0 0 0 1px #D2D2D2;
  --shadow-float: 0 0 0 1px #D2D2D2;
  --shadow-card: none;
  --r-klein: 2px;            /* eckig (Laterne). Ausnahmen: schwebende Leiste unten und runde PIN-Tasten */
  --r: 2px;
  --r-gross: 2px;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --font: Arial, 'Helvetica Neue', Helvetica, sans-serif; /* nur Arial, Überschriften Arial fett (Min 17.11.2026) */
  --font-gross: var(--font);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 72px;          /* schwebende Leiste: 56 px hoch, 8 px Luft darunter und darüber */
  --tabbar-space: calc(var(--tabbar-h) + var(--safe-b));
  --bar-h: 64px;
  --stage-h: 196px;
  --side-w: 232px;
}
/* Dunkelmodus. Hauptansicht der Kasse („Abendschicht“). Gesetzt wird data-theme am Wurzelelement (kern.js). */
:root[data-theme="dunkel"] {
  color-scheme: dark;
  --bg: #000000;
  --card: #18181A;
  --text: #FFFFFF;
  --text-2: #A8A8AC;
  --text-glass-2: #A8A8AC;
  --icon-3: #8C8C93;
  --rand: #76767C;
  --sep: #303034;
  --fill: #26262A;
  --fill-2: #303034;
  --plan: #000000;
  --dunkel: #515157;
  --accent: #FFFFFF;
  --accent-press: #D2D2D2;
  --accent-ink: #FFFFFF;
  --on-accent: #000000;
  --accent-tint: #303034;
  --green: #FFFFFF;
  --green-press: #D2D2D2;
  --nr: #FFD23F;              /* Bestellnummern in Gelb: die Signatur */
  --red: #DB2E2E;
  --red-press: #A82B2B;
  --red-ink: #FF9C9C;
  --orange: #A86200;
  --orange-press: #8A5000;
  --orange-ink: #F2B65C;
  --indigo: #0F7C8A;
  --indigo-press: #0B6370;
  --deko: #000000;
  --senden: #167A46;
  --senden-press: #13693D;
  --gray-btn: #26262A;
  --gray-btn-press: #303034;
  --glass: #000000;
  --glass-strong: #000000;
  --glass-edge: 0 0 0 1px #303034;
  --shadow-float: 0 0 0 1px #303034;
  --shadow-card: none;
}
/* Stationen: fester Ton in Küche und Pass, Weiß darauf ≥ 6:1 */
.tone-0 { --st: #00788C; }    /* 1. Station, Sushi-Theke: Petrol */
.tone-1 { --st: #93409C; }    /* 2. Station, Küche: Aubergine */
.tone-2 { --st: #9A6200; }    /* 3. Station, Bar: Bernstein */
.tone-3 { --st: #566B7D; }
.tone-4 { --st: #A23B70; }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
  background: var(--bg);
}
html, body { margin: 0; height: 100%; }
body {
  font: 400 17px/1.35 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  caret-color: var(--accent);
}
::selection { background: var(--accent); color: var(--on-accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
button:disabled { cursor: default; }
/* Ziehen an Blättern/Tischplan markiert sonst Überschriften blau; Eingaben, .selectable und Codes bleiben markierbar */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea, [contenteditable] { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
input, textarea, select { font-size: 17px; }
h1, h2, h3, p, ul, ol, dl, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* Felder: Rahmen nach innen, sonst schneidet ein scrollender Bereich ihn ab (iPhone-Test 17.11.2026, Telefonfeld Abholung). */
:is(input, textarea, select):focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.num, .tabular, .row-value, .line-price, .line-qty, .tile-price, .cart-sum, .cart-qty, .res-time, .pt-sum, .timer, .age, .tq, .code, .stepper-val { font-variant-numeric: tabular-nums; }
h1, h2, h3, .large-title, .sheet-title { text-wrap: balance; }
.muted { color: var(--text-2); }
.text-danger { color: var(--red-ink) !important; }
.text-ok { color: var(--accent-ink); font-weight: 600; }

/* ---------- Glas ---------- */
.glass {
  background: var(--glass);
  box-shadow: var(--glass-edge), var(--shadow-float);
}

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 18px; border-radius: var(--r);
  font-size: 17px; font-weight: 600; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 140ms ease;
}
.btn .ic { width: 20px; height: 20px; stroke-width: 2; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-lg { min-height: 52px; font-size: 17px; }
.btn-small { min-height: 44px; padding: 0 12px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-fill { background: var(--accent); color: var(--on-accent); }
.btn-fill:active:not(:disabled) { background: var(--accent-press); }
.btn-tinted, .btn-gray { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--rand); }
.btn-tinted:active:not(:disabled), .btn-gray:active:not(:disabled) { background: var(--gray-btn-press); }
.btn-plain { color: var(--accent-ink); background: transparent; }
.btn-plain:active:not(:disabled) { background: var(--fill); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:active:not(:disabled) { background: var(--red-press); }
.btn-plain-danger { color: var(--red-ink); }
.btn-plain-danger:active:not(:disabled) { background: var(--fill); }
.btn:disabled { background: var(--fill); color: var(--text-2); box-shadow: none; }
.btn-plain:disabled, .btn-plain-danger:disabled { background: transparent; color: var(--text-2); }
.link-btn { color: var(--accent-ink); font-size: 15px; font-weight: 600; min-height: 44px; padding: 0 6px; border-radius: var(--r); }
.link-btn:active { background: var(--fill); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); color: var(--accent-ink); transition: transform 140ms var(--ease-out), background-color 140ms ease; }
.icon-btn:active:not(:disabled) { background: var(--fill); transform: scale(.94); }
.icon-btn:disabled { color: var(--icon-3); }
.close-btn { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r); background: var(--fill); color: var(--text-2); flex: none; position: relative; }
.close-btn::after { content: ""; position: absolute; inset: -6px; }
.close-btn .ic { width: 15px; height: 15px; stroke-width: 2.4; }
.navbtn { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; min-width: 44px; padding: 0 10px 0 4px; color: var(--accent-ink); font-size: 17px; border-radius: var(--r); }
.navbtn .ic { width: 24px; height: 24px; stroke-width: 2.2; }
.navbtn:active { background: var(--fill); }
@media (hover: hover) and (pointer: fine) {
  .btn-fill:hover:not(:disabled) { background: var(--accent-press); }
  .btn-tinted:hover:not(:disabled), .btn-gray:hover:not(:disabled) { background: var(--fill); }
  .btn-plain:hover:not(:disabled), .link-btn:hover, .icon-btn:hover:not(:disabled), .navbtn:hover { background: var(--fill); }
  .btn-danger:hover:not(:disabled) { background: var(--red-press); }
}

/* ---------- Segmente ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 4px; border-radius: var(--r); background: var(--fill); }
.seg > button { min-height: 44px; padding: 0 12px; border-radius: var(--r); font-size: 15px; font-weight: 500; color: var(--text); display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: background-color 140ms ease, color 140ms ease; }
.seg > button[aria-checked="true"] { background: var(--st, var(--accent)); color: var(--st-ink, var(--on-accent)); font-weight: 600; }
.seg > button:active { transform: scale(.98); }
.seg-lg > button { min-height: 48px; font-size: 17px; }
.seg-sm { margin: 0 20px 8px; }
.seg-wrap { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
.seg-wrap > button { border-radius: var(--r); min-height: 44px; }

/* ---------- Listen (gruppiert wie in iOS) ---------- */
.group { background: var(--card); border-radius: var(--r-gross); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow-card); }
.group-title { font: 600 20px/1.2 var(--font-gross);; margin: 8px 4px 10px; }
.group-foot { font-size: 14px; color: var(--text-2); margin: -16px 16px 24px; }
.row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 10px 16px; background: var(--card); text-align: left; }
.row + .row::before, .frow + .frow::before, .frow + .form-error + .frow::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--sep); }
button.row { transition: background-color 120ms ease; }
button.row:active:not(:disabled) { background: var(--fill-2); }
.row-ic { display: grid; place-items: center; width: 28px; color: var(--accent-ink); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-title { font-size: 17px; }
.row-title.is-link { color: var(--accent-ink); }
.row-sub { font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.row-value { font-size: 17px; color: var(--text-2); white-space: nowrap; }
.row-value.is-text { white-space: normal; text-align: right; max-width: 60%; display: inline-flex; align-items: center; gap: 6px; }
.row-value.big { font: 600 24px/1.1 var(--font-gross); color: var(--text); }
.row.is-strong .row-title, .row.is-strong .row-value { font-weight: 600; color: var(--text); }
.row-time { font-size: 17px; font-weight: 600; width: 52px; }
.chev { width: 14px; height: 14px; color: var(--icon-3); stroke-width: 2.4; }
.avatar { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-gross); background: var(--accent); color: var(--on-accent); font: 600 24px/1 var(--font-gross); }
.avatar.sm { width: 32px; height: 32px; font-size: 15px; border-radius: var(--r); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--icon-3); }
.dot.is-ok { background: var(--green); }
.dot.is-bad { background: var(--red); }
@media (hover: hover) and (pointer: fine) { button.row:hover:not(:disabled) { background: var(--fill); } }

/* Eingabezeilen */
.frow { position: relative; display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 0 16px; background: var(--card); }
.frow-label { flex: none; width: 104px; font-size: 17px; color: var(--text); }
.frow-note { flex: 1; min-width: 0; font-size: 15px; }
.frow-input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 12px 0; font-size: 17px; color: var(--text); }
.frow-input.strong { font-weight: 600; }
.frow-input::placeholder, .textfield::placeholder { color: var(--text-2); opacity: 1; }
.frow-select { flex: 1; min-width: 0; border: 0; background: transparent; text-align: right; text-align-last: right; color: var(--accent-ink); font-size: 17px; padding: 12px 0; -webkit-appearance: none; appearance: none; cursor: pointer; }
.frow.has-error .frow-label { color: var(--red-ink); }
.form-error { color: var(--red-ink); font-size: 14px; min-height: 0; padding: 0 16px 8px; }
.form-error:empty { display: none; }
.textfield { width: 100%; border: 0; border-radius: var(--r); background: var(--card); padding: 12px 14px; font-size: 17px; line-height: 1.35; resize: none; box-shadow: inset 0 0 0 1px var(--rand); }
.textfield.num { text-align: right; max-width: 160px; }
.switch { position: relative; margin-left: auto; width: 51px; height: 31px; flex: none; }
.switch input { position: absolute; inset: -7px 0; width: 100%; height: 45px; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch-ui { position: absolute; inset: 0; border-radius: 999px; background: #B9BEBB; transition: background-color 180ms ease; }
.switch-ui::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(24, 32, 28, .14); transition: transform 180ms var(--ease-out); }
.switch input:checked + .switch-ui { background: var(--green); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Stepper */
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper > button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--fill); color: var(--text); transition: transform 120ms var(--ease-out), background-color 120ms ease; }
.stepper > button .ic { width: 18px; height: 18px; stroke-width: 2.2; }
.stepper > button:active:not(:disabled) { transform: scale(.92); background: var(--fill-2); }
.stepper > button:disabled { color: var(--icon-3); }
.stepper-lg > button { width: 48px; height: 48px; }
.stepper-val { min-width: 36px; text-align: center; font-size: 20px; font-weight: 600; }

/* ---------- Rahmen ---------- */
#app { height: 100%; }
.app { height: 100dvh; }
.main { position: relative; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transition: opacity 160ms ease, transform 200ms var(--ease-out); }
@starting-style { .main { opacity: 0; transform: translateY(6px); } }
.sidebar { display: none; }

/* Tab-Leiste (Handy): flach wie in der Zentrale, Strich oben zeigt die Seite */
.tabbar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0;
  height: var(--tabbar-space); padding: 0 0 var(--safe-b);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; /* so viele Knöpfe, wie da sind, über die ganze Breite (Min 03.11.2026) */
  background: var(--card); box-shadow: 0 -1px 0 var(--sep);
}
.tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--text-2); }
.tab-ic { position: relative; display: grid; place-items: center; }
.tab .ic { width: 27px; height: 27px; transition: transform 120ms var(--ease-out); }
.tab-label { font-size: 13px; font-weight: 600; }
.tab[aria-current="page"] { color: var(--accent); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 16%; right: 16%; height: 3px; background: var(--accent); border-radius: 0 0 3px 3px; }
.tab:active .ic { transform: scale(.9); }
.nav-badge { position: absolute; top: -5px; right: -11px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--red); color: #fff; font-size: 12px; font-weight: 600; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; }

/* Seiten */
.page { max-width: 980px; margin: 0 auto; padding: calc(var(--safe-t) + 18px) 16px calc(var(--tabbar-space) + 24px); }
.page-head { margin-bottom: 22px; }
.head-logo { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); }
.head-logo .ic { width: 22px; height: 22px; }
.large-title { font: 600 28px/1.1 var(--font-gross); letter-spacing: -.015em; }
.subhead { font-size: 17px; color: var(--text-2); margin-top: 4px; }
.page-head .navbtn { margin: -6px 0 6px -8px; }
.footnote { font-size: 13px; color: var(--text-2); text-align: center; margin: 28px 0 8px; }
.empty { text-align: center; color: var(--text-2); font-size: 17px; padding: 36px 20px; }
.empty.big { padding: 64px 20px; font-size: 20px; }
.status-line { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 15px; margin: 0 4px 14px; }
.status-line .ic { width: 18px; height: 18px; }
.offline { position: fixed; z-index: 60; top: calc(var(--safe-t) + 8px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--r); font-size: 15px; font-weight: 600; white-space: nowrap; }
.offline .ic { width: 18px; height: 18px; color: var(--red-ink); }
.offline.is-warn .ic { color: var(--orange-ink); }

/* Start */
.big-group .bigrow + .bigrow::before { content: ""; position: absolute; top: 0; left: 72px; right: 0; height: 1px; background: var(--sep); }
.bigrow { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 78px; padding: 14px 16px; background: var(--card); transition: background-color 120ms ease; }
.bigrow:active { background: var(--fill-2); }
.bigrow-ic { display: grid; place-items: center; width: 42px; height: 42px; color: var(--accent-ink); }
.bigrow-ic .ic { width: 32px; height: 32px; stroke-width: 1.6; }
.bigrow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bigrow-title { font: 600 20px/1.2 var(--font-gross);; }
.big-group .bigrow:first-child { background: var(--accent); color: var(--on-accent); }
.big-group .bigrow:first-child:active { background: var(--accent-press); }
.big-group .bigrow:first-child .bigrow-ic { color: var(--on-accent); }
.big-group .bigrow:first-child .bigrow-meta, .big-group .bigrow:first-child .chev { color: var(--on-accent); }
.big-group .bigrow:nth-child(2)::before { display: none; }
.bigrow-meta { font-size: 15px; color: var(--text-2); }
@media (hover: hover) and (pointer: fine) { .bigrow:hover { background: var(--fill); } .big-group .bigrow:first-child:hover { background: var(--accent-press); } }

/* ---------- Anmeldung ---------- */
.login { min-height: 100dvh; display: flex; flex-direction: column; background: var(--card); }
.login-marke { flex: none; display: flex; align-items: center; gap: 10px; padding: calc(var(--safe-t) + 16px) 20px 16px; background: var(--accent); color: var(--on-accent); }
.login-marke .ic { width: 26px; height: 26px; }
.login-marke strong { font: 600 20px/1.1 var(--font-gross); letter-spacing: -.01em; }
.login-marke span { margin-left: auto; font-size: 14px; font-weight: 500; }
.login-box { flex: 1; width: 100%; max-width: 440px; margin: 0 auto; padding: 24px 20px 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.login-title { font: 600 28px/1.15 var(--font-gross); letter-spacing: -.015em; }
.login-sub { color: var(--text-2); margin-top: 6px; }
.login-foot { color: var(--text-2); font-size: 13px; text-align: center; padding: 0 20px calc(var(--safe-b) + 16px); }
@media (min-width: 900px) {
  .login { display: grid; grid-template-columns: minmax(340px, 42%) 1fr; grid-template-rows: 1fr auto; }
  .login-marke { grid-row: 1 / 3; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px; padding: 40px 44px; }
  .login-marke strong { font-size: 56px; margin-top: auto; }
  .login-marke span { margin: 0; font-size: 17px; }
}
.staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 18px 10px; width: 100%; margin-top: 28px; }
.staffbtn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0; border-radius: var(--r-gross); transition: transform 140ms var(--ease-out); }
.staffbtn:active { transform: scale(.95); }
.staffbtn:active .avatar { background: var(--accent-press); }
.staff-name { font-size: 15px; font-weight: 500; }
.staff-tag { font-size: 12px; font-weight: 600; color: var(--text-2); background: var(--fill); border-radius: var(--r); padding: 2px 6px; }
.staffbtn:disabled { cursor: default; }
.staffbtn:disabled .avatar { background: var(--fill-2); color: var(--text-2); }
.pindots { display: flex; gap: 18px; margin: 28px 0 8px; }
.pindots span { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--rand); transition: background-color 120ms ease, box-shadow 120ms ease; }
.pindots span.on { background: var(--accent); box-shadow: none; }
.pindots.is-error { animation: shake 360ms var(--ease-out); }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.login .form-error { min-height: 22px; display: block; padding: 0; }
.pinpad { display: grid; grid-template-columns: repeat(3, 78px); gap: 16px 24px; margin-top: 18px; }
.key { width: 78px; height: 78px; border-radius: var(--r-gross); background: var(--fill); font: 500 28px/1 var(--font-gross); display: grid; place-items: center; transition: background-color 100ms ease, transform 100ms var(--ease-out); }
.key:active:not(:disabled) { background: var(--fill-2); transform: scale(.96); }
.key-text { background: transparent; font: 600 17px/1 var(--font); }
.key-text .ic { width: 28px; height: 28px; }
.pin-ok { width: 282px; max-width: 100%; margin-top: 18px; }
.freigabe-pin { display: flex; flex-direction: column; align-items: center; padding: 4px 16px 16px; }
.field-solo { width: 100%; margin: 24px 0 8px; }
.field-solo input { width: 100%; height: 52px; border: 0; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--rand); padding: 0 16px; font-size: 17px; }
.login-box .btn-block { margin-top: 12px; }

/* ---------- Tische ---------- */
.view-tables { overflow: hidden; }
.tables-view { position: relative; height: 100dvh; }
.planpane { position: absolute; inset: 0; }
.tables-bar { position: absolute; z-index: 6; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; min-height: calc(var(--safe-t) + var(--bar-h)); padding: calc(var(--safe-t) + 6px) 8px 6px 16px; box-shadow: 0 1px 0 var(--sep); }
.bar-titles { flex: 1; min-width: 0; }
.bar-title { font: 600 20px/1.1 var(--font-gross); letter-spacing: -.01em; }
.bar-sub { font-size: 14px; color: var(--text-glass-2); }
.zoom { display: flex; gap: 2px; }
.planwrap { position: absolute; inset: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; padding: calc(var(--safe-t) + var(--bar-h) + 12px) 12px calc(var(--tabbar-space) + 140px); -webkit-overflow-scrolling: touch; background: var(--plan); }
.plan { position: relative; aspect-ratio: 1 / 1; min-width: 100%; container-type: inline-size; }
.pt {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3cqi;
  border-radius: max(6px, 1cqi); background: var(--card); color: var(--text); text-align: center;
  box-shadow: 0 0 0 1px var(--rand), 0 1px 2px rgba(24, 32, 28, .08);
  transition: transform 140ms var(--ease-out), background-color 180ms ease;
}
.pt::before { content: ""; position: absolute; inset: -4px; } /* Tippfläche mindestens 44 px, auch am kleinen Plan */
.pt.round { border-radius: 50%; }
.pt > span { max-width: 100%; overflow: hidden; }
.pt:active { transform: scale(.96); }
.pt-name { font: 600 clamp(14px, 3cqi, 30px)/1 var(--font-gross); letter-spacing: -.01em; }
.pt-sum { font-size: clamp(10px, 1.55cqi, 17px); font-weight: 600; line-height: 1.1; }
.pt-meta { display: none; font-size: clamp(10px, 1.3cqi, 14px); line-height: 1.1; padding: 0 4px; white-space: nowrap; }
.pt-res { font-size: clamp(9.5px, 1.4cqi, 15px); font-weight: 600; color: var(--accent-ink); line-height: 1.1; white-space: nowrap; }
/* Zustände in Farbe und Form: frei = weiß mit Linie, reserviert = hell mit gestricheltem Rand, besetzt = Grün voll,
   Gang wartet = Warnton mit weißem Innenring, Rechnung = Indigo mit weißem Strich unten. */
.pt.is-open { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(24, 32, 28, .14); }
.pt.is-wartet { background: var(--orange); box-shadow: 0 0 0 2px var(--plan), 0 0 0 4px var(--orange); }
.pt.is-rechnung { background: var(--indigo); }
/* Rechnung: Abrisskante wie am Bon, unter dem Tisch, damit sie nichts verdeckt */
.pt.is-rechnung::after { content: ""; position: absolute; top: calc(100% - 1px); left: 18%; right: 18%; height: 6px; background: var(--indigo); clip-path: polygon(0 0, 100% 0, 100% 100%, 87.5% 0, 75% 100%, 62.5% 0, 50% 100%, 37.5% 0, 25% 100%, 12.5% 0, 0 100%); }
/* Am Handy: flache Tische einzeilig, schmale Tische nur mit Uhrzeit */
@container (max-width: 440px) {
  .pt.is-flach.is-open { flex-direction: row; gap: 4px; }
  .pt.is-flach.is-open .pt-st { display: none; }
  .pt.is-schmal .pt-res-p { display: none; }
  /* Kleine besetzte Tische: nur Name und Betrag, der Punkt zeigt den Zustand. Die Minuten liefen über den Rand und sprangen jede Minute. */
  .pt.is-open:not(.is-flach) .pt-st-s { display: none; }
  .pt.is-open:not(.is-flach) .pt-st { position: absolute; top: 4px; right: 4px; }
}
.pt.is-res { background: var(--accent-tint); color: var(--accent-ink); box-shadow: 0 1px 2px rgba(24, 32, 28, .08); outline: 2px dashed var(--accent); outline-offset: -2px; }
.pt.is-focus { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--accent); z-index: 2; }
.pt.deko { background: var(--deko); box-shadow: none; color: var(--text); }
.pt.deko span { font-size: clamp(9px, 1.4cqi, 15px); font-weight: 600; }
@container (min-width: 540px) { .pt-meta { display: block; } }

/* Reservierungen: am Handy ziehbares Blatt, ab 1000 px eigene Spalte */
.respanel {
  --peek: 116px;
  position: absolute; z-index: 8; left: 0; right: 0; bottom: var(--tabbar-space);
  height: calc(100% - var(--safe-t) - var(--bar-h) - 8px - var(--tabbar-space));
  display: flex; flex-direction: column;
  background: var(--bg);
  border-radius: var(--r-gross) var(--r-gross) 0 0;
  box-shadow: 0 -1px 0 var(--sep), 0 -6px 24px rgba(24, 32, 28, .12);
  transition: transform 300ms var(--ease-drawer);
  will-change: transform;
}
.respanel[data-detent="peek"] { transform: translateY(calc(100% - var(--peek))); }
.respanel[data-detent="peek"] .res-scroll { visibility: hidden; }
.respanel[data-detent="half"] { transform: translateY(45%); }
.respanel[data-detent="full"] { transform: translateY(0); }
.res-grab { display: grid; place-items: center; height: 20px; flex: none; touch-action: none; cursor: grab; }
.res-grab span, .grab span { width: 38px; height: 5px; border-radius: 3px; background: var(--rand); }
.res-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 12px; padding: 0 20px 10px; flex: none; touch-action: none; }
.res-title { font: 600 20px/1.2 var(--font-gross); letter-spacing: -.01em; }
.res-sum { font-size: 14px; color: var(--text-2); min-height: 44px; white-space: nowrap; }
.res-scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 16px; }
.respanel[data-detent="half"] .res-scroll { padding-bottom: calc(45% + 16px); }
.res-group + .res-group { margin-top: 14px; }
.res-gtitle { font-size: 15px; font-weight: 600; color: var(--text-glass-2); margin: 4px 8px 8px; }
.res-row { background: var(--card); border-radius: var(--r-gross); margin-bottom: 8px; box-shadow: var(--shadow-card); transition: box-shadow 180ms ease; }
.res-row.is-focus { box-shadow: 0 0 0 2px var(--accent), var(--shadow-card); }
.res-main { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 10px 14px; border-radius: var(--r-gross); }
.res-main:active { background: var(--fill); }
.res-time { font: 600 20px/1.1 var(--font-gross); width: 58px; flex: none; color: var(--accent-press); }
.res-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.res-name { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.res-sub { font-size: 14px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-sub.allergy-text, .res-sub.res-extra { white-space: normal; overflow-wrap: anywhere; }
.res-sub.res-extra { color: var(--text); font-weight: 600; } /* Allergie nie abschneiden */
.banner-text .banner-allergy { color: var(--red-ink); font-weight: 600; }
.res-flag { font-size: 14px; font-weight: 600; color: var(--orange-ink); white-space: nowrap; }
.res-flag.is-late { color: var(--red-ink); }
.res-new { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.res-actions { display: flex; gap: 8px; padding: 0 12px 12px; }
.res-actions .btn { flex: 1; min-width: 0; padding: 0 12px; }

/* ---------- Bestellung ---------- */
.app-order { position: fixed; inset: 0; transition: opacity 160ms ease, transform 220ms var(--ease-out); }
@starting-style { .app-order { opacity: 0; transform: translateX(28px); } }
.order { --seat-h: 0px; position: absolute; inset: 0; display: grid; grid-template-columns: 1fr; background: var(--bg); }
.order.has-seats.stage-open { --seat-h: var(--stage-h); }
.order.has-seats.stage-closed { --seat-h: 60px; }
.order.is-split { grid-template-columns: 1fr minmax(360px, 30%); }
.opane { position: relative; height: 100dvh; overflow: hidden; }
.ohead { position: absolute; z-index: 6; top: 0; left: 0; right: 0; padding-top: var(--safe-t); box-shadow: 0 1px 0 var(--sep), 0 4px 12px rgba(24, 32, 28, .06); }
.otop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px; height: 52px; padding: 0 6px; }
.otitle { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 44px; padding: 2px 8px; border-radius: var(--r); }
.otitle:active { background: var(--fill); }
.otitle strong { font: 600 20px/1.05 var(--font-gross); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.otitle span { font-size: 13px; color: var(--text-glass-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.navbtn-r { justify-self: end; }
.no-seats .otitle strong { font-size: 20px; line-height: 1.15; }
.navbtn-r[aria-pressed="true"] { background: var(--gray-btn); }

.seatpanel { position: relative; height: var(--seat-h); overflow: hidden; transition: height 280ms var(--ease-drawer); touch-action: pan-x; background: var(--plan); }
.stage, .seatbar { position: absolute; left: 0; right: 0; top: 0; transition: opacity 180ms ease, transform 280ms var(--ease-drawer), filter 180ms ease; }
.stage { height: var(--stage-h); padding: 6px 16px 10px; display: grid; place-items: center; }
.seatbar { height: 60px; display: flex; align-items: center; gap: 4px; padding: 0 8px 0 6px; }
.stage-open .seatbar, .stage-closed .stage { opacity: 0; pointer-events: none; }
.stage-closed .stage { transform: translateY(-24px) scale(.96); filter: blur(4px); }
.stage-open .seatbar { transform: translateY(10px); }
.stage-box { position: relative; width: min(100%, 400px); height: calc(var(--stage-h) - 22px); }
.stage-box.is-portrait { width: min(100%, 280px); }
.stage-box.is-round { width: calc(var(--stage-h) - 22px); }
.stage-table { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: var(--r-gross); background: var(--card); box-shadow: 0 0 0 1px var(--rand), 0 1px 3px rgba(24, 32, 28, .1); color: var(--text); transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out); }
.is-round .stage-table { border-radius: 50%; }
.stage-table:active { transform: scale(.98); }
.stage-name { font: 600 17px/1.1 var(--font-gross); }
.stage-for { font-size: 13px; color: var(--text-2); }
.stage-table.is-active { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 3px rgba(24, 32, 28, .16); }
.stage-table.is-active .stage-for { color: var(--on-accent); }
.seatdot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 1px var(--rand), 0 1px 3px rgba(24, 32, 28, .12); font: 600 17px/1 var(--font-gross); display: grid; place-items: center; color: var(--text); transition: background-color 160ms ease, color 160ms ease, transform 160ms var(--ease-out); }
.seatdot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; }
.seatdot:active { transform: scale(.92); }
.is-dense .seatdot { width: 38px; height: 38px; margin: -20px 0 0 -20px; font-size: 15px; }
.seatdot.is-active { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 3px rgba(24, 32, 28, .16); transform: scale(1.06); }
.cnt { position: absolute; top: -6px; right: -8px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--dunkel); color: #fff; font: 600 12px/22px var(--font); text-align: center; box-shadow: 0 0 0 2px #fff; font-variant-numeric: tabular-nums; }
.stage-fold { position: absolute; top: 2px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text-glass-2); }
.stage-fold .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.stage-fold:active { background: var(--fill); }
.seatbar-tbl { flex: none; }
.chips { flex: 1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 8px 8px 8px 2px; scroll-padding: 0 12px; }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; flex: none; min-width: 46px; height: 44px; padding: 0 12px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--rand); color: var(--text); font: 600 17px/1 var(--font-gross); display: grid; place-items: center; transition: background-color 140ms ease, color 140ms ease, transform 140ms var(--ease-out); }
.chip-wide { font: 600 15px/1 var(--font); }
.chip:active { transform: scale(.94); }
.chip.is-active { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.chip .cnt { top: -5px; right: -6px; box-shadow: 0 0 0 2px #fff; }
/* Zähler darf die Schrift nicht verdecken (iPhone-Test 17.11.2026: „Tisch“ verlor das h). */
.chip:has(.cnt) { padding-right: 20px; }

.catbar { display: flex; flex-direction: column; background: var(--card); }
.cats { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 12px; height: 50px; align-items: center; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; height: 44px; padding: 0 14px; border-radius: var(--r); font-size: 15px; font-weight: 500; color: var(--text); white-space: nowrap; transition: background-color 140ms ease, color 140ms ease; }
.cat[aria-selected="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.cat:active { background: var(--fill-2); }
.cat[aria-selected="true"]:active { background: var(--accent-press); color: var(--on-accent); }
.searchfield { display: flex; align-items: center; gap: 8px; padding: 8px 12px 2px; position: relative; }
.search-ic { position: absolute; left: 26px; width: 22px; height: 22px; color: var(--text-glass-2); pointer-events: none; }
.searchfield input { flex: 1; min-width: 0; height: 56px; border: 0; border-radius: var(--r); background: var(--fill); padding: 0 14px 0 46px; font-size: 20px; font-weight: 500; -webkit-appearance: none; appearance: none; }
.searchfield input::placeholder { color: var(--text-glass-2); opacity: 1; }
.searchfield input::-webkit-search-cancel-button { display: none; }

.oscroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; overflow-anchor: none; -webkit-overflow-scrolling: touch; }
.ospacer { height: calc(var(--safe-t) + 104px + var(--seat-h) + var(--strip-h, 0px) + var(--gang-h, 0px)); transition: height 280ms var(--ease-drawer); }
.order.has-gangs { --gang-h: 52px; }
/* Gang-Leiste: wie die Kategorien, aber mit festem Rand zum Grund, damit beide Reihen nicht ineinanderlaufen */
.gangbar { height: 52px; display: flex; align-items: center; gap: 2px; padding-right: 6px; background: var(--fill); box-shadow: inset 0 -1px 0 var(--sep); }
.gangs { flex: 1; min-width: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 0 12px; height: 100%; align-items: center; }
.gangs::-webkit-scrollbar { display: none; }
.gang { flex: none; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; max-width: 200px; padding: 0 12px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--sep); font-size: 15px; font-weight: 600; color: var(--text); white-space: nowrap; transition: background-color 140ms ease, color 140ms ease, transform 120ms var(--ease-out); }
.gang:active { transform: scale(.97); background: var(--fill-2); }
.gang[aria-checked="true"] { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.gang[aria-checked="true"]:active { background: var(--accent-press); }
.gang-name { overflow: hidden; text-overflow: ellipsis; }
.gang-nr { flex: none; display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: var(--r); background: var(--fill); color: var(--text-2); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gang[aria-checked="true"] .gang-nr { background: rgba(255, 255, 255, .12); color: #fff; }
.gang-neu { flex: none; min-width: 20px; height: 20px; padding: 0 4px; border-radius: var(--r); background: var(--dunkel); color: #fff; font-size: 13px; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.gang[aria-checked="true"] .gang-neu { background: var(--on-accent); color: var(--accent); }
.gang-st { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--text-2); }
.gang-st.is-wait { background: transparent; box-shadow: inset 0 0 0 1.5px var(--orange); }
.gang-st.is-kitchen { background: linear-gradient(90deg, var(--indigo) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--indigo); }
.gang-st.is-ready { background: var(--accent); }
.gang[aria-checked="true"] .gang-st { background: #fff; box-shadow: none; }
.gang[aria-checked="true"] .gang-st.is-wait { background: transparent; box-shadow: inset 0 0 0 1.5px #fff; }
.gang[aria-checked="true"] .gang-st.is-kitchen { background: linear-gradient(90deg, #fff 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px #fff; }
.gang-plus { width: 44px; padding: 0; justify-content: center; color: var(--accent-ink); }
.gang-edit { flex: none; }
.gang-list { margin: 0 20px 8px; }
.gang-row { gap: 4px; padding: 4px 8px 4px 12px; }
.gang-row .gang-nr { margin-right: 6px; }
.gang-row-name { flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; justify-content: center; text-align: left; }
.gang-row-name .row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gang-row-name:disabled { opacity: 1; }
.gang-row .icon-btn:disabled { opacity: .35; }
.send-choice { margin: 0 20px 20px; }
.send-choice .row { min-height: 72px; }
.send-choice .row-title { font-weight: 600; }
.send-choice .row-sub { white-space: normal; }
.formblock .sheet-hint-eng { padding: 8px 0 0; }
.order.strips-1 { --strip-h: 48px; }
.order.strips-2 { --strip-h: 96px; }
.menu { padding: 4px 16px calc(var(--safe-b) + 120px); }
.order.is-split .menu { padding-bottom: 40px; }
.msec { scroll-margin-top: 0; }
.msec-title { font: 600 20px/1.15 var(--font-gross); letter-spacing: -.01em; margin: 18px 2px 12px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 0 16px; background: var(--card); border-radius: var(--r-gross); box-shadow: var(--shadow-card); overflow: hidden; }
.tile { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 60px; padding: 8px 8px 8px 14px; text-align: left; background: var(--card); box-shadow: inset 0 -1px 0 var(--sep); transition: background-color 120ms ease; }
.tile.has-count { background: var(--fill-2); }
.tile:active:not(:disabled) { background: var(--fill); }
.tile-nr { flex: none; min-width: 44px; font-size: 15px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tile-name { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-price { flex: none; font-size: 15px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.tile-plus { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); }
.tile-plus .ic { width: 20px; height: 20px; stroke-width: 2.4; }
.tile-count { flex: none; min-width: 30px; height: 30px; padding: 0 8px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font: 600 17px/30px var(--font-gross); text-align: center; }
@starting-style { .tile-count { transform: scale(.6); opacity: 0; } }
.tile-count { transition: transform 220ms var(--ease-out), opacity 160ms ease; }
.tile-count.bump { animation: bump 260ms var(--ease-out); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
.tile:disabled .tile-price, .tile:disabled .tile-name, .tile.is-aus .tile-name, .tile.is-aus .tile-price { color: var(--text-2); }
@media (hover: hover) and (pointer: fine) { .tile:hover:not(:disabled) { background: var(--fill); } }

/* Warenkorb-Knopf: Summe groß rechts, schwebt über dem Inhalt */
.cartbar { position: absolute; z-index: 7; left: 0; right: 0; bottom: 0; padding: 10px 16px max(12px, var(--safe-b)); pointer-events: none; }
.cartbtn { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; margin: 0 auto; height: 60px; padding: 0 18px 0 10px; border-radius: var(--r-gross); background: var(--green); color: var(--on-accent); box-shadow: var(--shadow-float); transition: transform 140ms var(--ease-out), background-color 140ms ease; }
.cartbtn:active:not(:disabled) { transform: scale(.98); background: var(--green-press); }
.cart-qty { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--r); background: #fff; color: var(--accent-press); font: 600 20px/1 var(--font-gross); }
.cart-label { flex: 1; font-size: 17px; font-weight: 600; text-align: left; }
.cart-new { font-weight: 500; }
.cart-sum { font: 600 20px/1 var(--font-gross); letter-spacing: -.01em; }
.cartbtn:disabled { background: var(--glass); color: var(--text-glass-2); box-shadow: var(--glass-edge), var(--shadow-float); }
.cartbtn:disabled .cart-qty { background: var(--fill); color: var(--text-2); }

/* Bestellung als Liste (Blatt oder Spalte) */
.cart { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.cartpane { height: 100dvh; background: var(--card); box-shadow: -1px 0 0 var(--sep); padding-top: calc(var(--safe-t) + 8px); min-width: 0; }
.cart-pane .sheet-head { padding-top: 6px; }
.cart-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 20px 12px; }
.cgroup + .cgroup { margin-top: 14px; }
.cgroup-head { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 4px 0; border-bottom: 1px solid var(--sep); }
.cgroup-head h3 { font: 600 13px/1.2 var(--font); color: var(--text-2); }
.cgroup-val { font-size: 15px; color: var(--text-2); }
.state { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-wait { color: var(--orange-ink); }
.st-wait::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.st-kitchen { color: var(--indigo); }
.st-kitchen::before { background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px currentColor; }
.st-ready { color: var(--accent-ink); }
.st-done { color: var(--text-2); }
.line { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--sep); }
.line-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 0; text-align: left; border-radius: var(--r); }
.line-main:active:not(:disabled) { background: var(--fill); }
.line-qty { width: 34px; flex: none; font-size: 17px; font-weight: 600; }
.line-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.line-name { font-size: 17px; }
.line-sub { font-size: 14px; color: var(--text-2); }
.line-price { font-size: 17px; font-weight: 600; white-space: nowrap; }
.line.is-new .line-qty { color: var(--accent-ink); }
.line.is-void .line-name, .line.is-void .line-price { text-decoration: line-through; color: var(--text-2); }
.cart-foot { flex: none; padding: 12px 20px max(16px, var(--safe-b)); border-top: 1px solid var(--sep); background: inherit; }
.sheet .cart-foot { padding-bottom: 18px; }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cart-total span { font-size: 15px; color: var(--text-2); }
.cart-total strong { font: 600 28px/1.05 var(--font-gross); letter-spacing: -.01em; }
.cart-preview { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.cart-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.online-row { display: flex; align-items: center; gap: 10px; margin: 0 20px 10px; padding: 10px 12px 10px 14px; min-height: 48px; border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow-card); color: var(--text); font-size: 15px; font-weight: 600; text-align: left; flex: none; }
.online-row > .ic:first-child { color: var(--accent-ink); }
.online-row .ic { width: 20px; height: 20px; }
.online-row .chev { color: var(--icon-3); margin-left: 4px; }
.online-row.is-paid { color: var(--green); }
.online-row.is-paid > .ic:first-child { color: var(--green); }
.online-amt { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------- Blätter ---------- */
#sheets .layer { position: fixed; inset: 0; z-index: 50; pointer-events: none; }
#sheets .layer.is-open { pointer-events: auto; }
.scrim { position: absolute; inset: 0; background: rgba(20, 28, 24, .44); opacity: 0; transition: opacity 220ms ease; }
.layer.is-open .scrim { opacity: 1; }
.layer.is-under .scrim { opacity: 0; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: calc(100dvh - var(--safe-t) - 16px);
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: var(--safe-b);
  background: var(--bg);
  border-radius: var(--r-gross) var(--r-gross) 0 0;
  box-shadow: 0 -8px 40px rgba(24, 32, 28, .22);
  transform: translateY(100%);
  transition: transform 300ms var(--ease-drawer);
  will-change: transform;
}
.layer.is-open .sheet { transform: none; }
.layer.is-leaving .sheet { transition-duration: 200ms; }
.layer.is-under .sheet { transform: scale(.94) translateY(-14px); filter: brightness(.96); }
.sheet-tall { min-height: min(72dvh, 640px); }
.sheet-cart, .sheet-pay { overflow: hidden; }
.sheet-cart .cart { flex: 1; min-height: 0; }
.grab { position: sticky; top: 0; z-index: 2; display: grid; place-items: center; height: 22px; flex: none; touch-action: none; cursor: grab; }
.sheet-head { display: flex; align-items: flex-start; gap: 12px; padding: 2px 20px 14px; flex: none; touch-action: none; }
.sheet-titles { flex: 1; min-width: 0; }
.sheet-title { font: 600 20px/1.2 var(--font-gross); letter-spacing: -.01em; }
.sheet-sub { font-size: 15px; color: var(--text-2); margin-top: 2px; }
.sheet-hint { font-size: 15px; color: var(--text-2); padding: 0 20px 12px; }
.sheet-actions { display: flex; gap: 10px; padding: 8px 20px 20px; flex: none; }
.sheet-actions .btn { flex: 1; }
.sheet .group { margin: 0 20px 16px; }
.sheet-form .formblock { padding-top: 0; }
.formrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 20px 12px; }
.formrow-label { font-size: 15px; font-weight: 600; color: var(--text-2); display: block; margin-bottom: 8px; }
.formrow .formrow-label { margin: 0; }
.formblock { padding: 4px 20px 16px; }
.formblock .textfield[type="time"] { margin-top: 10px; max-width: 180px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick-btn { min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--rand); font-size: 15px; font-weight: 500; transition: transform 120ms var(--ease-out); }
.quick-btn:active { transform: scale(.96); background: var(--fill); }
.quick-btn:disabled { background: var(--fill); color: var(--text-2); box-shadow: none; transform: none; cursor: default; }
.notice-row { display: flex; align-items: center; gap: 10px; margin: 0 20px 14px; padding: 10px 10px 10px 14px; border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow-card); font-size: 15px; }
.notice-row > .ic { color: var(--accent-ink); }
.notice-row > span { flex: 1; }
.radio-row { cursor: pointer; }
.radio-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-mark { color: var(--accent-ink); opacity: 0; }
.radio-row input:checked ~ .radio-mark { opacity: 1; }
.radio-row:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: -3px; }

/* Personen */
.numgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 0 20px; }
.numkey { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 68px; border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow-card); font: 600 28px/1.1 var(--font-gross); transition: transform 120ms var(--ease-out), background-color 140ms ease; }
.numkey small { font: 600 12px/1.2 var(--font); color: var(--accent-ink); margin-top: 1px; }
.numkey:active { transform: scale(.95); background: var(--fill); }
.numkey.is-suggest { box-shadow: 0 0 0 2px var(--accent); }
.numkey.is-cur { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.numkey.is-cur small { color: var(--on-accent); }
.morerow { display: flex; align-items: center; gap: 12px; padding: 18px 20px 20px; }
.morerow-label { font-size: 17px; font-weight: 600; flex: 1; }

/* Tisch wählen (Reservierung) */
.tablegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 8px; }
.tablekey { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow-card); font: 600 20px/1.1 var(--font-gross); transition: transform 120ms var(--ease-out); }
.tablekey small { font: 600 12px/1.2 var(--font); color: var(--text-2); }
.tablekey.is-res { background: var(--accent-tint); box-shadow: none; outline: 2px dashed var(--accent); outline-offset: -2px; }
.tablekey.is-res small { color: var(--accent-press); }
.tablekey.is-on { background: var(--accent); color: var(--on-accent); box-shadow: none; outline: 0; }
.tablekey.is-on small { color: var(--on-accent); }
.tablekey:active:not(:disabled) { transform: scale(.95); }
.tablekey:disabled { background: transparent; box-shadow: inset 0 0 0 1px var(--sep); outline: 0; color: var(--text-2); }

/* Bezahlen */
.pay-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }
.pay-scroll > .seg { margin: 0 20px; }
.pay-scroll > .group { margin-bottom: 0; }
.seat-pay .row-sub { white-space: nowrap; }
.check-row.is-on { background: var(--accent-tint); }
.check-mark { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--rand); color: transparent; flex: none; transition: background-color 140ms ease; }
.check-mark .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.check-row.is-on .check-mark { background: var(--accent); box-shadow: none; color: var(--on-accent); }
.pay-amount { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 20px; }
.pay-amount span { font-size: 17px; color: var(--text-2); }
.pay-amount strong { font: 600 40px/1.05 var(--font-gross); letter-spacing: -.015em; }
.cashrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 20px; }
.cashbtn { min-height: 52px; padding: 0 4px; border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow-card); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; transition: transform 120ms var(--ease-out), background-color 140ms ease; }
.cashbtn:active:not(:disabled) { transform: scale(.96); }
.cashbtn.is-on { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.pay-scroll > .formrow { padding-top: 0; padding-bottom: 0; }
.change { display: flex; align-items: baseline; justify-content: space-between; padding: 0 20px; }
.change span { color: var(--text-2); }
.change strong { font: 600 28px/1.05 var(--font-gross); }
.change.is-short strong, .change.is-short span { color: var(--red-ink); }
.row-btn { display: flex; align-items: center; gap: 12px; margin: 2px 20px 0; padding: 10px 14px; min-height: 60px; border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow-card); text-align: left; transition: transform 120ms var(--ease-out); }
.row-btn:active { transform: scale(.985); background: var(--fill); }

/* Beleg und Zahlcode */
.receipt-hero, .code-hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 6px 20px 20px; gap: 4px; }
.done-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-gross); background: var(--green); color: var(--on-accent); margin-bottom: 10px; }
.done-mark .ic { width: 32px; height: 32px; stroke-width: 2.6; }
@starting-style { .done-mark { transform: scale(.7); opacity: 0; } }
.done-mark { transition: transform 240ms var(--ease-out), opacity 200ms ease; }
.code-label { font-size: 15px; font-weight: 600; color: var(--text-2); }
.code { font: 600 clamp(56px, 18vw, 76px)/1.05 var(--font-gross); letter-spacing: .05em; margin: 2px 0 8px; color: var(--accent-press); -webkit-user-select: all; user-select: all; }
.code-how { font-size: 17px; max-width: 30ch; }
.code-amt { font-size: 15px; color: var(--text-2); margin-top: 4px; }
.code-wait { font-size: 17px; color: var(--text-2); padding: 40px 0; }
.code-hero.is-expired .code { color: var(--text-2); text-decoration: line-through; text-decoration-thickness: 3px; }
.code-url { word-break: break-all; -webkit-user-select: text; user-select: text; font-size: 13px; }
.code-hero .btn { margin-top: 12px; }

/* ---------- Pass ---------- */
.page-pass, .page-kitchen { max-width: 1600px; }
.pass-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 276px), 1fr)); gap: 16px; align-items: start; }
.pcard { background: var(--card); border-radius: var(--r-gross); padding: 14px 16px 6px; box-shadow: var(--shadow-card); }
.pcard-head { display: flex; align-items: flex-start; gap: 12px; }
.pcard-title { flex: 1; min-width: 0; text-align: left; border-radius: var(--r); padding: 2px 0; }
.pcard-title h2 { font: 600 24px/1.1 var(--font-gross); letter-spacing: -.01em; }
.pcard-title p { font-size: 15px; color: var(--text-2); }
.age { font: 600 20px/1.1 var(--font-gross); color: var(--text-2); }
.age.is-late { color: var(--red-ink); }
.pcourse { border-top: 1px solid var(--sep); margin-top: 10px; padding-top: 8px; }
.pcourse-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 40px; }
.pcourse-head h3 { font: 600 17px/1.2 var(--font-gross); flex: 1 1 auto; max-width: 100%; } /* langer Gangname: Knöpfe rutschen in die nächste Zeile statt den Titel zu quetschen */
.pcourse-head > .btn:last-child { margin-left: auto; } /* umbrochene Knöpfe bleiben rechts */
.pcourse-fold { flex-wrap: nowrap; }
.pcourse-fold h3 { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnote { font-size: 14px; color: var(--text-2); margin: -2px 0 6px; display: flex; align-items: center; gap: 6px; }
.pnote.is-auto { color: var(--accent-ink); font-weight: 600; }
.pnote .ic { width: 16px; height: 16px; }
.pcheck { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 6px 4px; border-radius: var(--r); text-align: left; transition: background-color 120ms ease; }
.pcheck:active:not(:disabled) { background: var(--fill); }
.pbox { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--rand); color: transparent; transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms var(--ease-out); }
.pbox .ic { width: 20px; height: 20px; stroke-width: 2.8; }
.pcheck.is-on .pbox { background: var(--green); box-shadow: none; color: var(--on-accent); }
.pcheck:active:not(:disabled) .pbox { transform: scale(.9); }
.ptext { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pname { font-size: 17px; font-weight: 500; }
.psub { font-size: 14px; color: var(--orange-ink); font-weight: 600; }
.pcheck.is-on .pname { color: var(--text-2); text-decoration: line-through; }
.pcheck:disabled .pname { color: var(--text-2); }
.pcheck:disabled .pbox { box-shadow: inset 0 0 0 2px var(--sep); }
.ptag { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.pstn { flex: none; font-size: 12px; font-weight: 600; line-height: 1.2; color: #fff; background: var(--st); border-radius: var(--r-klein); padding: 4px 6px; }
.pseat, .tseat { flex: none; font-size: 14px; font-weight: 600; color: var(--text); background: var(--fill); border-radius: var(--r-klein); padding: 4px 8px; font-variant-numeric: tabular-nums; }
.pcourse.is-waiting .pcourse-head h3 { color: var(--text-2); }
.pcourse-fold { width: 100%; min-height: 44px; text-align: left; border-radius: var(--r); padding-bottom: 4px; }
.pcourse-fold h3 { color: var(--text-2); }
.pcourse-fold:active { background: var(--fill); }

/* ---------- Küche ---------- */
.kbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.kbar .seg { flex: 1 1 360px; max-width: 560px; }
.kgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; align-items: start; }
.ticket { background: var(--card); border-radius: var(--r-gross); padding: 0 16px 12px; box-shadow: var(--shadow-card); overflow: hidden; }
.ticket-head { display: flex; align-items: center; gap: 12px; margin: 0 -16px; padding: 12px 16px 10px; background: var(--st, var(--dunkel)); color: #fff; }
.ticket-head > div { flex: 1; min-width: 0; }
.ticket-head h2 { font: 600 24px/1.12 var(--font-gross); letter-spacing: -.01em; }
.ticket-head p { font-size: 14px; font-weight: 500; color: #fff; }
.timer { flex: none; font: 600 24px/1 var(--font-gross); color: #fff; padding: 6px 8px; border-radius: var(--r); }
.timer.is-warn { background: var(--orange); box-shadow: 0 0 0 2px #fff; }
.timer.is-late { background: var(--red); box-shadow: 0 0 0 2px #fff; }
.storno-tag { display: inline-block; font: 600 13px/1.3 var(--font); color: var(--red-auf-weiss); background: #fff; border-radius: var(--r-klein); padding: 2px 6px; vertical-align: 3px; }
.ticket.is-storno .ticket-head { background: var(--red); }
.ticket.is-storno .tlines .tn { text-decoration: line-through; }
.tinfo { margin: 10px 0 4px; display: grid; gap: 4px; font-size: 15px; }
.tinfo li { display: flex; align-items: flex-start; gap: 8px; }
.tinfo .ic { width: 18px; height: 18px; color: var(--text-2); margin-top: 1px; }
.tlines { margin-top: 8px; }
.tlines li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--sep); }
.tlines li:first-child { border-top: 0; }
.tq { width: 32px; flex: none; font: 600 20px/1.1 var(--font-gross); }
.tn { flex: 1; min-width: 0; font-size: 20px; font-weight: 500; line-height: 1.25; }
.tn small { display: block; font-size: 14px; color: var(--orange-ink); font-weight: 600; }
.tnr { color: var(--text-2); font-weight: 600; }
.ticket-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--sep); }
.pstate { flex: 1; min-width: 0; font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pstate.is-error { color: var(--red-ink); font-weight: 600; }
.ticket-foot .link-btn { font-size: 15px; }
.ticket.is-done { background: var(--card); }
.ticket.is-done .ticket-head { background: var(--fill); color: var(--text); }
.ticket.is-done .ticket-head p { color: var(--text-2); }
.ticket.is-done .timer, .ticket.is-done .timer.is-warn, .ticket.is-done .timer.is-late { background: transparent; box-shadow: none; color: var(--text-2); }

/* Abschluss */
.daypick { display: flex; align-items: center; gap: 2px; margin: 4px 0 0 -12px; }
.daypick .subhead { margin: 0; color: var(--text); font-weight: 500; }
.page-report > .seg { margin-bottom: 18px; max-width: 520px; }

/* ---------- Hinweise und Meldungen ---------- */
#banners { position: fixed; z-index: 70; top: calc(var(--safe-t) + 8px); left: 50%; transform: translateX(-50%); width: min(560px, calc(100% - 24px)); display: grid; gap: 8px; pointer-events: none; }
.banner { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 8px 8px 8px 14px; border-radius: var(--r-gross); transition: transform 280ms var(--ease-drawer), opacity 200ms ease, filter 200ms ease; }
@starting-style { .banner { transform: translateY(-22px) scale(.97); opacity: 0; filter: blur(6px); } }
.banner-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; min-height: 48px; border-radius: var(--r); }
.banner-ic { width: 26px; height: 26px; color: var(--red-ink); }
.banner-ic.is-accent { color: var(--accent-ink); }
.banner-ok { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r); background: var(--green); color: var(--on-accent); flex: none; }
.banner-ok .ic { width: 18px; height: 18px; stroke-width: 2.6; }
.banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.banner-text strong { font-size: 15px; font-weight: 600; }
.banner-text span { font-size: 14px; color: var(--text-glass-2); }
.banner-btn { min-height: 44px; padding: 0 14px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 600; flex: none; }
.banner-btn:active { background: var(--accent-press); }
.banner-ic.is-warn { color: var(--orange-ink); }
/* Störung (Speicher, Brücke, Sicherung): volle rote Fläche, weiße Schrift (5,4:1) */
.banner.is-critical { background: var(--red); color: #fff; box-shadow: 0 10px 30px rgba(120, 20, 20, .28), 0 1px 3px rgba(24, 32, 28, .18); }
.banner.is-critical .banner-ic, .banner.is-critical .banner-text span, .banner.is-critical .banner-x { color: #fff; }
.banner.is-critical .banner-btn { background: #fff; color: var(--red-auf-weiss); }
.banner.is-critical .banner-x:active { background: rgba(255, 255, 255, .18); }
.banner-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); color: var(--text-2); flex: none; }
.banner-x .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.banner-x:active { background: var(--fill); }
#toasts { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--tabbar-space) + 14px); transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.app-order ~ #toasts, html:has(.app-order) #toasts { bottom: calc(max(12px, var(--safe-b)) + 84px); }
.toast { padding: 12px 18px; border-radius: var(--r); font-size: 15px; font-weight: 600; text-align: center; background: var(--dunkel); color: #fff; box-shadow: 0 8px 24px rgba(24, 32, 28, .14); transition: transform 220ms var(--ease-out), opacity 180ms ease, filter 180ms ease; }
.toast.is-error { background: var(--red); color: #fff; }
@starting-style { .toast { transform: translateY(12px) scale(.96); opacity: 0; filter: blur(4px); } }
.toast.out { opacity: 0; transform: translateY(6px) scale(.98); }

/* ---------- iPad und Mac ---------- */
@media (min-width: 700px) {
  :root { --tabbar-space: 0px; --stage-h: 210px; }
  .app { display: grid; grid-template-columns: var(--side-w) 1fr; }
  .tabbar { display: none; }
  .sidebar {
    display: flex; flex-direction: column; height: 100dvh; padding: calc(var(--safe-t) + 16px) 12px max(16px, var(--safe-b));
    background: var(--card);
    box-shadow: inset -1px 0 0 var(--sep); overflow-y: auto;
  }
  .brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 18px; font: 600 17px/1.15 var(--font-gross); letter-spacing: -.01em; }
  .brand-fels { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); flex: none; }
  .brand-fels .ic { width: 20px; height: 20px; }
  .side-list { display: grid; gap: 2px; margin-bottom: 18px; }
  .side-item { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--r); font-size: 17px; font-weight: 500; color: var(--text); }
  .side-item .ic { color: var(--text-2); }
  .side-item:active { background: var(--fill-2); }
  .side-item[aria-current="page"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
  .side-item[aria-current="page"] .ic { color: var(--on-accent); }
  .side-item .nav-badge { position: static; margin-left: auto; box-shadow: none; }
  .side-item[aria-current="page"] .nav-badge { background: #fff; color: var(--red-auf-weiss); }
  .side-foot { margin-top: auto; display: grid; gap: 8px; padding: 8px 4px 0; }
  .side-user { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; padding-left: 6px; }
  .side-user span:nth-child(2) { flex: 1; }
  .side-user small { display: block; font-size: 13px; font-weight: 400; color: var(--text-2); }
  .side-note { font-size: 13px; color: var(--text-2); padding-left: 8px; }
  .page { padding: calc(var(--safe-t) + 34px) 32px 40px; }
  .large-title { font-size: 36px; }
  .page-start .head-logo { display: none; }
  .page-start { max-width: 720px; }
  .page-settings, .page-report, .page-more { max-width: 720px; }
  .planwrap { padding: calc(var(--safe-t) + var(--bar-h) + 12px) 16px 140px; }
  #toasts { bottom: 28px; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(580px, calc(100% - 48px)); max-height: min(86dvh, 860px); padding-bottom: 0; border-radius: var(--r-gross); box-shadow: 0 12px 32px rgba(24, 32, 28, .16); transform: translate(-50%, calc(50vh + 50%)); }
  .layer.is-open .sheet { transform: translate(-50%, -50%); }
  .layer.is-under .sheet { transform: translate(-50%, -50%) scale(.95); }
  .sheet .grab { display: none; }
  .sheet-head { padding-top: 22px; }
  .respanel { left: auto; right: 16px; bottom: 16px; height: calc(100% - var(--safe-t) - var(--bar-h) - 28px); width: min(420px, calc(100% - 32px)); border-radius: var(--r-gross); }
  .pcheck { min-height: 58px; }
}
@media (min-width: 1000px) {
  .tables-view { display: grid; grid-template-columns: 1fr minmax(340px, 30%); }
  .planpane { position: relative; inset: auto; height: 100dvh; min-width: 0; }
  .respanel { position: relative; inset: auto; width: auto; height: 100dvh; border-radius: 0; transform: none !important; padding-top: calc(var(--safe-t) + 14px); box-shadow: inset 1px 0 0 var(--sep); background: var(--bg); }
  .res-grab { display: none; }
  .res-sum { pointer-events: none; min-height: 0; }
  .res-scroll { padding-bottom: 24px; }
  .order.is-split .cartbar { display: none; }
}
@media (min-width: 1000px) and (max-width: 1199px) {
  :root { --side-w: 210px; }
}

/* ---------- Barrierefreiheit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .sheet, .respanel, .seatpanel, .ospacer, .stage, .seatbar, .banner, .toast, .main, .app-order { transition-property: opacity !important; transition-duration: 160ms !important; }
  .sheet { transform: none !important; opacity: 0; }
  .layer.is-open .sheet { opacity: 1; }
  @media (min-width: 700px) { .sheet { transform: translate(-50%, -50%) !important; } }
  .stage-closed .stage { transform: none; filter: none; }
}
@media (prefers-contrast: more) {
  :root { --sep: #868C88; --text-2: #3E4642; --text-glass-2: #3E4642; }
  .glass, .sheet { box-shadow: 0 0 0 1px var(--rand) !important; }
}
@media (hover: hover) and (pointer: fine) {
  .side-item:hover:not([aria-current="page"]) { background: var(--fill); }
  .tab:hover:not([aria-current="page"]) { background: var(--fill); }
  .cat:hover:not([aria-selected="true"]) { background: var(--fill); }
  .gang:hover:not([aria-checked="true"]) { background: var(--fill); }
  .gang[aria-checked="true"]:hover { background: var(--accent-press); }
  .chip:hover:not(.is-active), .seatdot:hover:not(.is-active) { background: var(--fill); }
  .res-main:hover, .line-main:hover:not(:disabled), .pcheck:hover:not(:disabled) { background: var(--fill); }
  .numkey:hover:not(.is-cur), .cashbtn:hover:not(.is-on):not(:disabled), .tablekey:hover:not(.is-on):not(:disabled), .quick-btn:hover:not(:disabled) { background: var(--fill); }
  .cat[aria-selected="true"]:hover { background: var(--accent-press); }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-thumb { background: var(--rand); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
  ::-webkit-scrollbar-track { background: transparent; }
}

/* =====================================================================
   Welle 2: Extras, Allergien, Schnellerfassung, Bezahlen, Küche, Tische
   ===================================================================== */
.strong { font-weight: 600; }
.text-warn { color: var(--orange-ink) !important; }
.allergy-text { color: var(--red-ink) !important; font-weight: 600; }
.icon-btn.icon-sm { width: 44px; height: 44px; }
.icon-btn.icon-sm .ic { width: 19px; height: 19px; }
.icon-btn.is-danger { color: var(--red-ink); }

/* Kopf der Bestellung: Werkzeuge, Hinweis-Streifen */
.otools { display: flex; justify-self: end; }
.allergy-strip { display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); min-height: 44px; margin: 0 12px 8px; padding: 6px 12px; border-radius: var(--r); background: var(--red); color: #fff; text-align: left; font-size: 15px; line-height: 1.25; transition: background-color 120ms ease; }
.allergy-strip.is-mismatch { background: var(--orange); }
.allergy-strip strong { font-weight: 600; margin-right: 4px; }
.allergy-strip .ic { width: 22px; height: 22px; color: #fff; stroke-width: 2.1; }
.allergy-strip span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 600; }
.allergy-strip:active { background: var(--red-press); }
.allergy-strip.is-mismatch:active { background: var(--orange-press); }
.cart-allergy .allergy-strip { width: calc(100% - 40px); margin: 0 20px 10px; }
.allergy-line { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: var(--r); background: var(--red); color: #fff; font-weight: 600; font-size: 15px; }
.allergy-line .ic { width: 19px; height: 19px; color: #fff; margin-top: 1px; }

/* Platz merken, Allergie-Markierung an Plätzen */
.keep-btn { position: absolute; top: 4px; left: 8px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); color: var(--text-2); transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out); }
.keep-btn .ic, .keep-ic .ic { width: 18px; height: 18px; }
.keep-ic { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px 0 8px; border-radius: var(--r); font-size: 14px; font-weight: 600; transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out); }
.keep-btn[aria-pressed="true"], .keep-ic[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.keep-btn:active, .keep-ic:active { transform: scale(.95); }
.keep-ic { flex: none; color: var(--text-glass-2); }
.seatpanel.is-big { height: 60px; }
.amark { position: absolute; bottom: -3px; right: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px #fff; }
.pt-al { position: absolute; top: -8px; right: -8px; z-index: 1; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--red); color: #fff; font: 600 12px/1 var(--font); font-style: normal; box-shadow: 0 0 0 1.5px #fff; }
.pt.round .pt-al { top: 4%; right: 4%; }
.seatdot.has-allergy, .chip.has-allergy { box-shadow: 0 0 0 3px var(--red), 0 1px 3px rgba(24, 32, 28, .12); }
.chip.has-allergy.is-active, .seatdot.has-allergy.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--red); }
.seg-wrap > button { position: relative; }
.seg-wrap .amark { bottom: auto; top: 3px; right: 5px; width: 8px; height: 8px; box-shadow: none; }

/* Häufig (Top 20) und Schnellerfassung */
.qkeys { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.qkey { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 64px; padding: 8px 10px; border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow-card);
  text-align: left; transition: transform 140ms var(--ease-out), background-color 140ms ease; }
.qkey:active, .qkey.is-holding { transform: scale(.96); background: var(--fill); }
.qkey-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.qkey-nr { font-size: 15px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.qkey-price { font-size: 13px; color: var(--text-2); margin-left: auto; font-variant-numeric: tabular-nums; }
.qkey-name { font-size: 14px; line-height: 1.2; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qkey-count { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; padding: 0 8px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; line-height: 24px; text-align: center; box-shadow: 0 0 0 2px #fff; font-variant-numeric: tabular-nums; }
.qkey-count.bump { animation: bump 260ms var(--ease-out); }
.tile.is-holding { transform: scale(.95); transition-duration: 400ms; }
.tile-demo { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--orange-ink); }
.quickhit { display: flex; align-items: center; gap: 14px; padding: 10px; margin-bottom: 12px; border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow-card); max-width: 560px; }
.qh-img { width: 72px; height: 72px; flex: none; border-radius: var(--r); overflow: hidden; display: grid; place-items: center; background: #fff; }
.qh-img img { width: 100%; height: 100%; object-fit: contain; }
.qh-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qh-text strong { font-size: 17px; font-weight: 600; }
.qh-text span { font-size: 15px; color: var(--text-2); }
.msec[data-key="quick"] .btn { max-width: 560px; }
.quick-hint { font-size: 14px; color: var(--text-2); margin-top: 8px; text-align: center; max-width: 560px; }

/* Bestellung: Positionen */
.line-mods { font-size: 14px; color: var(--text); font-weight: 500; }
.line-more { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: var(--r); color: var(--text-2); }
.line-more .ic { width: 22px; height: 22px; }
.line-more:active { background: var(--fill); }
.line .stepper > button { width: 44px; height: 44px; }
.cgroup-allergy { font-size: 15px; font-weight: 600; color: var(--red-ink); padding: 6px 0 2px; }
.cart-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 15px; }
.cart-link .ic { width: 18px; height: 18px; }
.cart-tools { display: flex; justify-content: flex-end; padding: 2px 0 8px; }
.cgroup-head .btn-small .ic { width: 16px; height: 16px; }
.toggle-line { display: flex; align-items: center; gap: 12px; padding: 10px 0 0; cursor: pointer; }
.toggle-line > span:first-child { flex: 1; display: flex; flex-direction: column; font-size: 15px; font-weight: 600; }
.toggle-line small { font-size: 13px; font-weight: 400; color: var(--text-2); }
.toggle-line.in-sheet { padding: 4px 20px 14px; }
.toggle-row { cursor: pointer; }
.sheet-head .more-btn { margin-right: -2px; }
.sheet-head .more-btn .ic { width: 20px; height: 20px; stroke-width: 2; }
.close-btn.more-btn { color: var(--text); }

/* Hinweise in Blättern */
.notice-row.is-warn > .ic { color: var(--orange-ink); }
.notice-row.is-error > .ic { color: var(--red); }
.notice-row.is-error strong { color: var(--red-ink); }
.notice-row strong { font-weight: 600; }
.sheet-under { display: flex; justify-content: center; padding: 0 20px 16px; margin-top: -8px; }
.sheet-under .link-btn { font-size: 15px; }
.sheet-links { margin-top: 2px; }
.quick-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.quick-btn[aria-pressed="true"] .qb-price { color: var(--on-accent); }
.qb-price { color: var(--text-2); font-variant-numeric: tabular-nums; }
.stepper-val.sm { min-width: 26px; font-size: 17px; }
.stepper-val.wide { min-width: 70px; font-size: 17px; }
.frow-step .stepper { gap: 4px; }
.frow-step .stepper-val.wide { min-width: 62px; font-size: 15px; }
.stepper-input { width: 64px; height: 44px; border: 0; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--rand); text-align: center; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Personen: „Mehr als 8“ passt auch bei 375 px */
.morerow { display: block; padding: 18px 20px 20px; }
.morerow-ctl { display: flex; align-items: center; gap: 12px; }
.morerow-ctl .stepper { flex: none; }
.morerow-ctl .btn { flex: 1; min-width: 0; }

/* Bezahlen */
.seg-tight { grid-auto-columns: minmax(max-content, 1fr); }
.seg-tight > button { padding: 0 6px; font-size: 15px; }
.pay-amount { flex-wrap: wrap; }
.pay-amount small { flex-basis: 100%; text-align: right; font-size: 14px; color: var(--text-2); margin-top: -4px; }
.pay-amount.is-card strong { font-size: 48px; }
.pay-amount.is-card > span { color: var(--text); font-weight: 600; }
.tipblock { padding: 0 20px; }
.tipblock .formrow-label { margin-bottom: 6px; }
.tip-free { padding: 10px 0 0; }
.methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 20px; }
@media (min-width: 420px) { .methods { grid-template-columns: repeat(4, 1fr); } }
.method { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 64px; border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow-card);
  font-size: 15px; font-weight: 600; color: var(--text); transition: transform 120ms var(--ease-out), background-color 140ms ease; }
.method .ic { width: 24px; height: 24px; color: var(--accent-ink); }
.method:active { transform: scale(.97); }
.method[aria-checked="true"] { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(24, 32, 28, .12); }
.method[aria-checked="true"] .ic { color: var(--on-accent); }
.pay-line { gap: 8px; padding: 6px 12px 6px 6px; }
.pay-line-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 6px; border-radius: var(--r); text-align: left; }
.pay-line.is-on { background: var(--accent-tint); }
.pay-line.is-on .check-mark { background: var(--accent); box-shadow: none; color: var(--on-accent); }
.pay-line .stepper > button { width: 44px; height: 44px; background: var(--card); box-shadow: inset 0 0 0 1px var(--rand); }
.split-list .is-done .row-title, .split-list .is-done .row-value { color: var(--text-2); }
.split-list .is-now { background: var(--accent-tint); }
.split-list .is-now .row-title, .split-list .is-now .row-value { font-weight: 600; color: var(--text); }
.split-list .is-now .row-sub { color: var(--accent-press); font-weight: 600; }

/* Zwischenrechnung: groß zum Zeigen */
.bill { margin: 0 20px 14px; padding: 16px 18px; border-radius: var(--r-gross); background: var(--card); box-shadow: var(--shadow-card); }
.bill-lines li { display: flex; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--sep); font-size: 17px; }
.bq { width: 34px; flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.bn { flex: 1; min-width: 0; }
.bn small { display: block; font-size: 14px; color: var(--text-2); }
.bp { font-variant-numeric: tabular-nums; }
.bill-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 12px; }
.bill-total span { font-size: 17px; color: var(--text-2); }
.bill-total strong { font: 600 40px/1 var(--font-gross); letter-spacing: -.015em; }
.bill-paid { font-size: 15px; color: var(--text-2); text-align: right; }
.bill-note { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--text-2); text-align: center; }
.bill-seats { margin: 0 20px 12px; }

/* Einstellungen: Gänge */
.frow-step { min-height: 64px; }
.frow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 8px 0; }
.frow-title { font-size: 17px; }
.frow-sub { font-size: 14px; color: var(--text-2); }
.frow.is-allergy .frow-label { color: var(--red-ink); font-weight: 600; }
.seg-portal { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.seg-portal > button { padding: 0 8px; }
.seg-door { grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); }
.seg-door > button:last-child { grid-column: span 2; }
.rep-gap { margin-top: 28px; }
.rep-note { margin: 0 4px 24px; }

/* Start: Abholnummer */
.row-no { display: grid; place-items: center; min-width: 40px; height: 32px; padding: 0 8px; border-radius: var(--r); background: var(--accent); color: var(--on-accent); font: 600 17px/1 var(--font-gross); flex: none; }

/* Tischplan: Status mit Minuten, zusammengelegte Tische, Platzlicht-Störung */
.pt-st { display: inline-flex; align-items: center; gap: .5cqi; font-size: clamp(9.5px, 1.35cqi, 14px); font-weight: 600; line-height: 1.1; white-space: nowrap; max-width: 100%; padding: 0 2px; }
.pt-dot { width: clamp(5px, .9cqi, 8px); height: clamp(5px, .9cqi, 8px); border-radius: 50%; background: rgba(255, 255, 255, .92); flex: none; }
.pt-st.st-wartet .pt-dot { background: transparent; box-shadow: inset 0 0 0 1.5px #fff; }
.pt-st.st-rechnung .pt-dot { border-radius: 1.5px; }
.pt-st-l { display: none; }
@container (min-width: 540px) { .pt-st-s { display: none; } .pt-st-l { display: inline; overflow: hidden; text-overflow: ellipsis; } }
.pt-meta.is-on { display: block; font-weight: 600; }
.pt.is-joined { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(24, 32, 28, .14); outline: 1.5px dashed #fff; outline-offset: -5px; }
.bar-warn, .res-warn { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--orange-ink); }
.bar-warn .ic, .res-warn .ic { width: 15px; height: 15px; flex: none; }
.bar-warn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-warn { margin: -4px 20px 10px; padding: 8px 12px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-card); }

/* Pass */
.psub.is-allergy { color: var(--red-ink); font-weight: 600; }
.eilt-tag { display: inline-block; font: 600 12px/1.3 var(--font); color: #fff; background: var(--red); border-radius: var(--r-klein); padding: 2px 6px; vertical-align: 3px; }
.ticket-head .eilt-tag { background: #fff; color: var(--red-auf-weiss); }
.pcourse-head .eilt-tag { vertical-align: 0; }
/* Portale: kleines Etikett, Markenfarbe abgedunkelt, Weiß 5,6:1 und 6,6:1. Auf dem Stationskopf weiß mit Farbschrift. */
.portal-tag { display: inline-block; font: 600 12px/1.3 var(--font); color: #fff; border-radius: var(--r-klein); padding: 2px 6px; vertical-align: 2px; white-space: nowrap; }
.otitle .portal-tag { color: #fff; padding: 0 4px; vertical-align: 0; font-size: 12px; line-height: 1.4; }
.portal-tag.is-lieferando { background: #A84E00; }
.portal-tag.is-ubereats { background: #0B6B3A; }
.nach-tag { display: inline-block; font: 600 12px/1.3 var(--font); color: #fff; background: var(--dunkel); border-radius: var(--r-klein); padding: 2px 6px; vertical-align: 3px; }
.ticket-head .nach-tag { background: #fff; color: #18201C; }

/* Küche: Eilt, Nachrichten, Allergie, Vorschau */
.ticket.is-urgent { box-shadow: 0 0 0 3px var(--red), 0 6px 18px rgba(196, 52, 52, .22); }
.ticket.is-msg .msg-text { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 2px; font-size: 20px; font-weight: 600; line-height: 1.3; }
.ticket.is-msg .msg-text .ic { width: 22px; height: 22px; color: var(--accent-ink); margin-top: 2px; }
.ticket.is-msg.is-urgent .msg-text .ic { color: var(--red-ink); }
.t-allergybox { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 10px 0 4px; padding: 8px 12px; border-radius: var(--r); background: var(--red); color: #fff; font-size: 17px; font-weight: 600; }
.t-allergybox strong { font-weight: 600; }
.tn small.t-allergy { color: var(--red-ink); font-weight: 600; }
.tn small.t-void { color: var(--text-2); font-weight: 600; }
.tlines li.is-void .tn, .tlines li.is-void .tq { text-decoration: line-through; color: var(--text-2); }
.preview { margin-top: 32px; }
.preview .group-title { margin-bottom: 2px; }
.preview-sub { font-size: 15px; color: var(--text-2); margin: 0 4px 14px; }
.ticket.is-preview { background: var(--card); box-shadow: inset 0 0 0 1px var(--rand); }
.ticket.is-preview .ticket-head { background: transparent; color: var(--text); }
.ticket.is-preview .ticket-head p { color: var(--text-2); }
.ticket.is-preview .ticket-head h2 { font-size: 20px; }
.pv-tag { flex: none; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 4px 8px; border-radius: var(--r-klein); box-shadow: inset 0 0 0 1px var(--rand); }

@media (hover: hover) and (pointer: fine) {
  .qkey:hover { background: var(--fill); }
  .method:hover:not([aria-checked="true"]) { background: var(--fill); }
  .line-more:hover { background: var(--fill); }
  .keep-btn:hover:not([aria-pressed="true"]), .keep-ic:hover:not([aria-pressed="true"]) { background: var(--fill); }
  .quick-btn[aria-pressed="true"]:hover { background: var(--accent-press); }
  .method[aria-checked="true"]:hover, .keep-btn[aria-pressed="true"]:hover, .keep-ic[aria-pressed="true"]:hover, .banner-btn:hover { background: var(--accent-press); }
  .allergy-strip:hover { background: var(--red-press); }
  .allergy-strip.is-mismatch:hover { background: var(--orange-press); }
}
@media (prefers-reduced-motion: reduce) {
  .tile.is-holding, .qkey.is-holding { transform: none; }
}

/* ---------- Fahrer-App (Lieferstatus, Liefernummer, QR am Bildschirm) ---------- */
.text-accent { color: var(--accent-ink); font-weight: 600; }
.group-title.sm { font-size: 17px; margin: 4px 24px 8px; }
.sheet .group-title.sm { margin: 4px 24px 8px; }
.selectable { -webkit-user-select: text; user-select: text; overflow-wrap: anywhere; }
.deliv-qr { display: grid; justify-items: center; gap: 6px; padding: 6px 16px 16px; background: var(--card); }
.deliv-qr svg { width: 188px; height: 188px; display: block; }
.tqr { margin: 8px 0 2px; }
.tqr svg { width: 112px; height: 112px; display: block; background: #fff; border-radius: var(--r); }
.sheet-info > * { flex-shrink: 0; } /* langer Inhalt (Fahrer-Block) scrollt statt gequetscht zu werden */
.mm-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 20px 14px; }
.banner.is-critical.is-mini { min-height: 40px; padding: 0 6px 0 4px; justify-self: center; border-radius: var(--r); }
.banner.is-critical.is-mini .banner-main { min-height: 40px; gap: 8px; padding: 0 8px; color: #fff; }
.banner.is-critical.is-mini .banner-ic { width: 20px; height: 20px; }
.banner.is-critical.is-mini .banner-text strong { font-size: 15px; white-space: nowrap; }
.banner-chev { width: 16px; height: 16px; color: #fff; stroke-width: 2.4; flex: none; }
/* Störungs-Banner: Druck- und Hover-Zustand der hellen Knöpfe auf Rot (Rot auf Hellrot 4,8:1) */
.banner.is-critical .banner-btn:active { background: #F2D6D6; color: var(--red-auf-weiss); }
.banner.is-critical .banner-main:active { background: rgba(255, 255, 255, .14); }
@media (hover: hover) {
  .banner.is-critical .banner-btn:hover { background: #F2D6D6; color: var(--red-auf-weiss); }
  .banner.is-critical .banner-x:hover, .banner.is-critical .banner-main:hover { background: rgba(255, 255, 255, .14); }
}
.banner.is-critical :focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Steuerliche Pflichten: TSE-Ausfall, Tagesabschluss, Kassenbuch, Prüfer-Ansicht */
.offline.tse-bar { background: var(--red); color: #fff; width: calc(100% - 32px); max-width: 560px; white-space: normal; border-radius: var(--r-gross); align-items: flex-start; line-height: 1.3; }
.offline + .offline.tse-bar { top: calc(var(--safe-t) + 56px); }
.offline.tse-bar .ic { color: #fff; flex: none; }
.z-title { font-size: 17px; font-weight: 600; margin: 18px 24px 8px; }
.z-label { display: block; font-size: 15px; font-weight: 600; color: var(--text-2); margin: 12px 4px 6px; }
.z-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 0 20px 12px; }
.z-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding-left: 6px; font-variant-numeric: tabular-nums; font-size: 15px; }
.z-row span { white-space: nowrap; }
.z-row .textfield { width: 76px; min-width: 0; flex: none; text-align: right; padding-left: 8px; padding-right: 10px; }
.z-sum { margin-top: 4px; }
select.textfield { appearance: auto; background: var(--card); color: var(--text); }
.pr-klein { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pr-klein .btn, a.btn { text-decoration: none; }
.pr-datum { width: 170px; max-width: 55%; flex: none; }
.pr-hinweis { color: var(--text); font-weight: 600; display: block; }
.page-pruefer .row-sub { overflow-wrap: anywhere; }
.fi-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.fi-scroll .sheet-hint { padding-top: 2px; }
.page-pruefer .group-foot { margin-top: 12px; }

/* Geräte und Zugangscode (SPEC-GERAETE.md) */
.login-wege { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: 14px; }
.login-wege .link-btn { font-size: 15px; }
.login-box .field-solo input.is-code { text-align: center; font-size: 28px; font-weight: 600; letter-spacing: .18em; font-variant-numeric: tabular-nums; }
.login-box .field-solo input.is-code::placeholder { font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--text-2); opacity: 1; }
.login-box .login-sub.is-hinweis { color: var(--text); }
.login-code { width: 100%; margin-top: 16px; }
.code-zeige { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 20px 20px; }
.code-zeige .qr { width: min(64vw, 240px); height: auto; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--sep); }
.code-zahl { font: 600 40px/1.1 var(--font-gross); font-variant-numeric: tabular-nums; letter-spacing: .08em; margin-top: 8px; user-select: all; -webkit-user-select: all; }
.code-zeit { font-size: 15px; color: var(--text-2); text-align: center; }
.code-zeit.is-weg { color: var(--red-ink); font-weight: 600; }

/* Reservierung anlegen und ändern */
.res-tools { display: flex; gap: 8px; width: 100%; padding-bottom: 2px; }
.res-tool { flex: 1; min-width: 0; min-height: 44px; padding: 0 10px; gap: 6px; font-size: 15px; }
.res-tool .ic { width: 18px; height: 18px; flex: none; }
.res-sim { margin-left: 6px; padding: 1px 6px; border-radius: var(--r); background: var(--orange); color: #fff; font-size: 12px; font-weight: 600; }
.frow-input[type="date"], .frow-input[type="time"] { text-align: right; -webkit-appearance: none; appearance: none; min-height: 24px; }
.res-tag-kopf { display: flex; padding: 0 20px 12px; }
.res-tag-kopf input { flex: 1; min-width: 0; }
.res-tag-liste { padding: 0 0 16px; }
.res-tag-liste .row-sub.allergy-text { color: var(--red-ink); }

/* Belege (SPEC-BELEGE.md): Bon am Bildschirm wie auf Papier, Formulare wie Abholung und Lieferung */
.bon-ansicht { margin: 0 20px 14px; padding: 14px 12px; background: #fff; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--linie, #E0E1E0); color: #18201C; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: min(12.5px, calc((100vw - 66px) / 28.8)); line-height: 1.45; overflow: auto; flex: 0 1 auto; min-height: 0; }
.bon-logo { display: block; width: min(100%, 300px); height: auto; margin: 0 auto 8px; }
.bon-ansicht .bz { white-space: pre-wrap; word-break: break-all; }
.bon-ansicht .mitte { text-align: center; }
.bon-ansicht .rechts { text-align: right; }
.bon-ansicht .fett { font-weight: 600; }
.bon-ansicht .gross { font-size: 2em; line-height: 1.25; }
.bon-ansicht .inv { background: #18201C; color: #fff; width: max-content; max-width: 100%; padding: 0 .4em; }
.bon-ansicht .mitte.inv { margin: 2px auto; }
.bon-qr { width: 168px; margin: 10px auto; }
.bon-qr svg, .digital-qr svg { display: block; width: 100%; height: auto; }
.digital-qr { width: min(240px, 70vw); margin: 4px auto 16px; }
.beleg-form { overflow-y: auto; flex: 0 1 auto; min-height: 0; }
.beleg-form .group { flex: none; }
.beleg-form .formrow-label { margin-top: 12px; }
.beleg-form .formblock > .formrow-label:first-child { margin-top: 0; }
.bf-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bf-plz { grid-template-columns: 112px 1fr; }
.bf-zwei > span { min-width: 0; }
.sheet .form-error { margin: 0 20px 10px; }

/* Ansicht Belege */
.beleg-werkzeug { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0 0 8px; }
.beleg-werkzeug .daypick { margin: 0; display: flex; align-items: center; gap: 4px; }
.beleg-datum { height: 44px; min-width: 150px; border: 0; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--rand); padding: 0 10px; font-size: 15px; color: var(--text); }
.beleg-datum:disabled, .beleg-suche input:disabled { background: var(--fill); color: var(--text-2); }
.beleg-suche { position: relative; flex: 1 1 200px; min-width: 0; }
.beleg-suche .ic { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; color: var(--text-2); }
.beleg-suche input { width: 100%; height: 44px; border: 0; border-radius: var(--r); background: var(--card); box-shadow: inset 0 0 0 1px var(--rand); padding: 0 12px 0 38px; font-size: 15px; -webkit-appearance: none; appearance: none; }
.beleg-suche input::placeholder { color: var(--text-2); opacity: 1; }
.beleg-suche input::-webkit-search-cancel-button { display: none; }
.beleg-wann { margin: 0 0 8px; }
.beleg-tag { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: var(--r); background: var(--fill); color: var(--text); font-size: 12px; font-weight: 600; vertical-align: 1px; }
.beleg-tag.is-storno { background: var(--red); color: #fff; }
.beleg-hinweis { margin: 12px 0; }

/* Startseite: Kacheln, gleich an Hauptkasse und Handy */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kachel { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 148px; padding: 16px; border-radius: var(--r-gross); background: var(--card); text-align: left; transition: transform 140ms var(--ease-out), background-color 120ms ease; }
.kachel .ic { width: 34px; height: 34px; stroke-width: 1.6; color: var(--accent-ink); margin-bottom: auto; }
.kachel-titel { font: 600 20px/1.15 var(--font-gross);; }
.kachel-meta { font-size: 15px; color: var(--text-2); }
.kachel:active { transform: scale(.97); background: var(--fill-2); }
.kachel:first-child { background: var(--accent); color: var(--on-accent); }
.kachel:first-child .ic, .kachel:first-child .kachel-meta { color: var(--on-accent); }
.kachel:first-child:active { background: var(--accent-press); }
@media (hover: hover) and (pointer: fine) { .kachel:hover { background: var(--fill); } .kachel:first-child:hover { background: var(--accent-press); } }
@media (min-width: 760px) { .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kachel { min-height: 176px; } }

/* Zugang generieren: Personalnummer und QR-Code nebeneinander, am Handy untereinander */
.zugang-wege { display: grid; gap: 8px; }
.zugang-nr { min-height: 42px; font: 600 36px/1.2 var(--font-gross); font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.zugang-qr { align-self: center; }
.zugang-qr .code-zeit { max-width: 260px; text-align: center; }
@media (min-width: 760px) { .sheet:has(.zugang-wege) { max-width: min(760px, 100%); width: 100%; } .zugang-wege { grid-template-columns: 1fr 1fr; align-items: center; } }

/* Bezahlen: Rest als Trinkgeld, PayPal */
.pay-rest { width: calc(100% - 40px); margin: 0 20px; background: var(--gray-btn); color: var(--accent-ink); }
.pay-rest.is-on { background: var(--accent); color: var(--on-accent); }
.pay-rest .ic { width: 20px; height: 20px; }
.pay-rest:active { transform: scale(.98); }
.paypal-qr .qr { width: min(60vw, 220px); }
.sheet-pay .notice-row { margin: 0 20px; }

/* Karte: erst Kategorien, dann die Artikel darin */
.kats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); gap: 10px; padding-top: 12px; }
.kats .kat { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-height: 92px; padding: 12px 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-card); color: var(--text); text-align: left; transition: transform 140ms var(--ease-out), background-color 120ms ease; }
.kats .kat:active { transform: scale(.97); background: var(--fill); }
.kat-name { font: 600 20px/1.2 var(--font-gross);; }
.kat-meta { font-size: 14px; color: var(--text-2); }
.kats .tile-count { position: absolute; top: 10px; right: 10px; }
.kat-zurueck { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 6px; padding-right: 10px; color: var(--accent-ink); font-size: 17px; font-weight: 600; }
.kat-zurueck .ic { width: 18px; height: 18px; }
.kat-zurueck + .msec-title { margin-top: 2px; }
@media (hover: hover) and (pointer: fine) { .kats .kat:hover { background: var(--fill); } }

/* Bestellung: Liste nach Gängen, Summe und vier Knöpfe unten */
.cart-scroll { padding: 0 12px 12px; }
.cgroup { background: var(--card); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-card); }
.cgroup + .cgroup, .gang-neu-zeile { margin-top: 10px; }
.cgroup-head { min-height: 48px; padding: 2px 6px 2px 14px; border-bottom: 0; background: var(--accent); color: var(--on-accent); }
.cgroup-head .state { background: none; color: var(--on-accent); padding: 0; }
.cgroup-head .cgroup-val { color: var(--on-accent); }
.cgroup-head .icon-btn { color: var(--on-accent); }
.cgroup-head .icon-btn:active:not(:disabled) { background: var(--accent-press); }
.cgroup-allergy { padding: 8px 14px 0; }
.line { gap: 0; padding-right: 4px; }
.line:last-child { border-bottom: 0; }
.line-main { padding: 8px 6px 8px 14px; }
.line-qty { width: 24px; }
.line-platz { flex: none; display: inline-flex; align-items: center; gap: 4px; min-width: 40px; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.line-platz .ic { width: 17px; height: 17px; }
.line-price { min-width: 54px; text-align: right; }
.gang-neu-zeile { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; padding: 0 14px; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow-card); color: var(--text-2); font-size: 17px; }
.gang-neu-zeile span:last-child { color: var(--accent-ink); font-weight: 600; }
.gang-neu-zeile:active { background: var(--fill); }
.cart-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 12px 10px; flex: none; }
.cart-chips::-webkit-scrollbar { display: none; }
.cart-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: var(--r); background: var(--fill); color: var(--text); font-size: 15px; font-weight: 500; }
.cart-chip .ic { width: 18px; height: 18px; }
.cart-chip:active { background: var(--fill-2); }
.cart-total span { font-size: 17px; color: var(--text); font-weight: 600; }
.cart-total strong { font: 600 20px/1.1 var(--font-gross); }
.cart-mwst { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cart-btns .btn { min-height: 56px; }
.cart-weiter { color: var(--accent-ink); }
.cart-btns .cart-weiter:only-of-type { grid-column: 1 / -1; }
.btn-senden { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--text); } /* Senden mit Rahmen, Zahlen gefüllt (Min 02.11.2026) */
.btn-senden:active:not(:disabled) { background: var(--fill); }
.btn-senden:disabled { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 2px var(--sep); }
.tile-bild { flex: none; width: 48px; height: 48px; object-fit: contain; border-radius: var(--r); background: #fff; }
@media (max-width: 699px) { .sheet-cart { height: calc(100dvh - var(--safe-t) - 16px); } }
@media (hover: hover) and (pointer: fine) { .gang-neu-zeile:hover, .cart-chip:hover { background: var(--fill-2); } .btn-senden:hover:not(:disabled) { background: var(--fill); } .cgroup-head .icon-btn:hover:not(:disabled) { background: var(--accent-press); } }

/* Belegliste: Lupe, Drucker, Stift. Zeile und Drucken-Blatt nutzen dieselben Knöpfe. */
.beleg-zeile { align-items: stretch; gap: 0; padding: 0 6px 0 0; }
.beleg-haupt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 16px; text-align: left; transition: background-color 120ms ease; }
.beleg-haupt:active { background: var(--fill-2); }
.beleg-knoepfe { display: inline-flex; align-items: center; flex: none; }
.beleg-knoepfe .icon-btn .ic { width: 20px; height: 20px; }
.icon-btn.is-aus { color: var(--text-2); }
.druck-zeile { padding-right: 6px; }
.druck-zeile .row-ic { color: var(--text-2); }
.druck-unter { min-height: 44px; padding-left: 56px; }
.btn-a4 { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); color: var(--accent-ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; transition: transform 140ms var(--ease-out), background-color 140ms ease; }
.btn-a4:active { background: var(--fill); transform: scale(.94); }
.sheet.sheet-pdf { max-width: min(760px, 100%); width: 100%; }
.pdf-rahmen { display: block; flex: 1 1 auto; width: calc(100% - 40px); min-height: 56dvh; margin: 0 20px 14px; border: 0; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--rand); background: #fff; }
@media (hover: hover) and (pointer: fine) {
  .beleg-haupt:hover, .btn-a4:hover { background: var(--fill); }
}
@media (max-width: 560px) {
  .beleg-haupt { flex-direction: column; align-items: flex-start; gap: 2px; padding-right: 4px; }
  .beleg-haupt .row-main { flex: none; width: 100%; }
  .beleg-haupt .row-value { font-size: 15px; }
  .beleg-haupt .row-title { font-size: 15px; }
}

/* Allergene im Artikelblatt */
.allergen-zeile { margin: 0 20px 12px; font-size: 15px; line-height: 1.35; color: var(--text); }
.allergen-zeile strong { font-weight: 600; margin-right: 4px; }
.allergen-zeile.is-offen { color: var(--orange-ink); }
.frow-label.frei { flex: 1; width: auto; min-width: 0; }
.frow-sub { display: block; font-size: 13px; font-weight: 400; color: var(--text-2); margin-top: 2px; }

/* Ausverkauft */
.tile.is-aus .tile-price { color: var(--red-ink); font-weight: 600; }

/* Verspätung in der Liste Abholung, Lieferung */
.row-time.is-spaet { color: var(--red-ink); font-weight: 600; }
.row-time small { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; }

/* Liste Geplant */
.plan-zeile { gap: 10px; }
.plan-haupt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; min-height: 44px; }

/* Liefergebiet */
.gebiet-info { margin: 8px 0 0; font-size: 15px; color: var(--text); font-weight: 500; }
.quick-btn[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* Meine Tische */
.tisch-meine { display: flex; gap: 6px; align-items: center; }
.pt.is-open.is-fremd { background: var(--fill); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--rand); }
.pt.is-open.is-fremd.is-wartet, .pt.is-open.is-fremd.is-rechnung { background: var(--fill); }
.pt.is-open.is-fremd.is-rechnung::after { display: none; }
.gebiet-wahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.gebiet-wahl .quick-btn { font-size: 14px; padding-inline: 8px; }

/* Kartenzahlung: Trinkgeld-Frage wie bei SIDES */
.cardpay-tip { gap: 10px; }
.cardpay-tip .textfield { flex: none; width: 7.5em; text-align: right; }
.cardpay-plus { flex: none; width: 48px; height: 48px; min-height: 48px; padding: 0; }
.cardpay-bw { margin-top: 12px; }

/* Bestellung kompakter wie in der Lightspeed-App (Min-Wunsch 02.11.2026): kleinere Schrift, Artikelnummer vor dem Namen,
   keine Stand-Zeile unter dem Artikel (steht im Gang-Kopf), keine MwSt-Zeile. */
.line-main { min-height: 44px; padding-top: 6px; padding-bottom: 6px; gap: 8px; }
.line-qty, .line-name, .line-price { font-size: 15px; }
.line-name { line-height: 1.25; }
.line-nr { margin-right: 6px; color: var(--text-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.line-sub, .line-mods { font-size: 13px; }
.line-platz { font-size: 13px; min-width: 34px; }
.line-platz .ic { width: 14px; height: 14px; }
.line-price { min-width: 48px; }
.line-more { width: 40px; height: 40px; }
.line-more .ic { width: 20px; height: 20px; }
.cgroup-head { min-height: 40px; }
.cgroup-head h3 { font: 600 13px/1.2 var(--font); color: var(--text-2); }
.cgroup-head .btn-small { min-height: 30px; padding: 0 10px; font-size: 13px; }
.cgroup + .cgroup, .gang-neu-zeile { margin-top: 8px; }
.chip { height: 38px; font-size: 15px; }
.chip-wide { font-size: 14px; }
.cart-foot { padding-top: 10px; }
.cart-total span { font-size: 15px; }
.cart-total strong { font-size: 24px; }
.toggle-line { padding-top: 6px; }
.toggle-line > span:first-child { font-size: 15px; }
.cart-btns .btn-lg { min-height: 48px; font-size: 15px; }

/* Kategorien in eigener Farbe, Minus an der Kachel (Min-Wunsch 02.11.2026) */
.kats .kat.is-farbig { background: var(--kf); color: #fff; box-shadow: none; }
.kats .kat.is-farbig .kat-meta { color: #fff; font-weight: 500; }
.kats .kat.is-farbig .tile-count { background: #fff; color: var(--kf); }
.kats .kat.is-farbig:active { background: var(--kf); filter: brightness(.88); }
@media (hover: hover) and (pointer: fine) { .kats .kat.is-farbig:hover { background: var(--kf); filter: brightness(.92); } }
.kat-punkt { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 1px; background: var(--kf); vertical-align: 1px; }
.msec.has-kf .tile::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 0 3px 3px 0; background: var(--kf); }
.tile-row { position: relative; min-width: 0; }
.tile-row > .tile { width: 100%; }
.tile-count { width: 32px; min-width: 32px; padding: 0; }
.tile-minus-platz { flex: none; width: 40px; }
.tile-minus { position: absolute; top: 50%; right: 104px; transform: translateY(-50%); display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r); background: var(--gray-btn); color: var(--text); }
.tile-minus .ic { width: 18px; height: 18px; stroke-width: 2.4; }
.tile-minus:active { background: var(--gray-btn-press); transform: translateY(-50%) scale(.94); }

/* Tischplan nur mit Tischnummer, in Medium (Min-Wunsch 02.11.2026). Besetzt, Rechnung, Warten und Reservierung zeigt die Farbe. */
.plan .pt-sum, .plan .pt-st, .plan .pt-res, .plan .pt-meta { display: none !important; }
.pt-name { font-weight: 500; }
.pt.deko span { font-weight: 500; }

/* Bar: Felder und eigener Ziffernblock statt iPhone-Tastatur (Min-Wunsch 02.11.2026) */
.pay-felder { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 20px; }
.pay-feld { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 60px; padding: 8px 12px; border-radius: var(--r); background: var(--card); box-shadow: 0 0 0 1px var(--rand); text-align: left; }
.pay-feld span { font-size: 14px; color: var(--text-2); }
.pay-feld strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pay-feld.is-aktiv { box-shadow: 0 0 0 2px var(--accent); }
.zahlpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 0 20px; }
.zp-key { display: grid; place-items: center; height: 48px; border-radius: var(--r); background: var(--gray-btn); color: var(--text); font-size: 20px; font-weight: 500; font-variant-numeric: tabular-nums; }
.zp-key .ic { width: 22px; height: 22px; }
.zp-key:active { background: var(--gray-btn-press); transform: scale(.96); }
/* Rückgeld als drittes Feld: nur Anzeige, kein Knopf */
.pay-felder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pay-feld { min-width: 0; }
.pay-feld strong { white-space: nowrap; }
.pay-rueck { background: none; box-shadow: none; align-items: flex-end; text-align: right; }
.pay-rueck strong { font-size: 22px; }
.pay-rueck.is-short span, .pay-rueck.is-short strong { color: var(--red-ink); }
/* Handy: Bezahlen mit Bar passt ohne Scrollen bis zur 0 (iPhone-Test 17.11.2026) */
@media (max-width: 759px) {
  .pay-scroll { gap: 10px; }
  .pay-amount strong { font-size: 32px; }
  .methods { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .method { min-height: 60px; padding: 0 2px; gap: 3px; font-size: 14px; }
  .method .ic { width: 22px; height: 22px; }
  .cashbtn { min-height: 48px; }
  .pay-feld { min-height: 56px; padding: 6px 10px; }
  .pay-feld strong { font-size: 18px; }
  .pay-rueck strong { font-size: 20px; }
  .zp-key { height: 44px; }
}
/* Lesbarer: Unterzeilen in Bestellung und Bezahlen 14 bis 15 px */
.line-sub, .line-mods, .line-platz { font-size: 14px; }
.sheet-pay .row-title { font-size: 15px; }
.sheet-pay .row-sub, .sheet-pay .row-value { font-size: 14px; }

/* ---------- Bestellung: Position direkt in der Zeile bearbeiten, Mehrfachauswahl (Min 02.11.2026) ---------- */
.line.is-open { border-bottom-color: transparent; }
.line.is-open .line-main { background: var(--accent-tint); }
.line.is-open .line-more { color: var(--accent-ink); }
.line-edit { list-style: none; padding: 4px 0 10px; border-bottom: 1px solid var(--sep); background: var(--accent-tint); border-radius: 0 0 var(--r) var(--r); }
.line-edit .formblock, .line-edit .formrow, .line-edit .sheet-actions, .line-edit .sheet-hint, .line-edit .group, .line-edit .radio-group { padding-left: 12px; padding-right: 12px; }
.line-edit .sheet-actions { padding-top: 4px; padding-bottom: 6px; }
.line-edit .sheet-actions .btn { min-height: 48px; }
.line-edit .formblock { padding-bottom: 10px; }
.pos-edit-title { padding: 8px 12px 2px; font-weight: 600; }
.line-check { display: grid; place-items: center; width: 26px; height: 26px; flex: none; margin-left: 4px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--rand); color: var(--on-accent); }
.line-check.is-on { background: var(--accent); box-shadow: none; }
.line-check .ic { width: 16px; height: 16px; }
.line.is-picked .line-main { background: var(--accent-tint); }
.multi-title { font-weight: 600; font-size: 15px; }
.multi-reasons { margin-top: 10px; }
.multi-reasons .quick-btn[aria-checked="true"] { background: var(--accent); color: var(--on-accent); box-shadow: none; }

/* Drucken-Blatt: Kundenbelege oben, interne Küchenbons zugeklappt (Min-Wunsch 02.11.2026) */
.intern-kopf { margin-top: 14px; border-radius: var(--r); background: var(--card); }
.druck-zeile.is-intern .row-title { font-size: 17px; font-weight: 600; }
.druck-zeile.is-intern .row-sub { font-size: 13px; }


/* Hauptfarbe Schwarz (Min-Wahl 02.11.2026). Stationsfarben behalten weiße Schrift. */
.tone-0, .tone-1, .tone-2, .tone-3, .tone-4 { --st-ink: #fff; }

.pay-bw { width: calc(100% - 40px); margin: 4px 20px 0; border-radius: var(--r); background: var(--card); }

/* Person hinzufügen: Plus am Ende der Platz-Leiste, wie beim Gang (Min-Wunsch 02.11.2026). */
.chip-plus { padding: 0; color: var(--accent-ink); }

/* ===== Kasse Design-Regeln (Min 02.11.2026): Tischplan ist die Startseite ===== */
.tables-bar .bar-title { font-size: 20px; }
.bar-sub { display: flex; align-items: center; gap: 4px 10px; flex-wrap: nowrap; min-width: 0; white-space: nowrap; }
.bar-sub > span { flex: none; }
.bar-wz { display: inline-flex; align-items: center; gap: 4px; min-width: 0; min-height: 28px; padding: 0 6px; margin-left: -6px; border-radius: var(--r); color: var(--text-2); font-size: 14px; }
.bar-wz span { overflow: hidden; text-overflow: ellipsis; }
.bar-wz .ic { width: 15px; height: 15px; flex: none; }
.bar-wz.is-aus { color: var(--red-ink); font-weight: 600; }
.neu-leiste { display: flex; gap: 6px; flex: none; }
.neu-btn { display: inline-flex; align-items: center; gap: 6px; }
.tables-bar .bar-titles { flex: 1 1 auto; min-width: 150px; }
.tables-bar .bar-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.neu-btn .ic { width: 20px; height: 20px; }
/* Beschriftung nur, wenn der Plan breit genug ist; sonst eigene Symbole (Tüte, Roller, Kasse) mit Namen beim Vorlesen */
@media (max-width: 1279px) { .neu-l { display: none; } .neu-btn { width: 44px; padding: 0; justify-content: center; } }
@media (max-width: 759px) { .zoom { display: none; } .tables-bar .bar-titles { min-width: 0; } }
@media (hover: hover) and (pointer: fine) { .bar-wz:hover { background: var(--fill); } }
.res-weitere { padding-top: 8px; }
.res-weitere .group-title { font-size: 17px; margin: 14px 8px 8px; }
.res-weitere .group { margin-bottom: 12px; }
.frow-seg { flex-wrap: wrap; gap: 8px 12px; padding-block: 8px; }
.frow-seg .seg { margin-left: auto; }
/* Warenkorb als klare Liste: Gang als kleine Zwischenüberschrift statt schwarzem Balken (Kasse Design-Regeln 02.11.2026) */
.cgroup-head { min-height: 40px; padding: 2px 4px 2px 14px; background: transparent; color: var(--text-2); border-bottom: 1px solid var(--sep); }
.cgroup-head h3 { font: 600 13px/1.2 var(--font); color: var(--text-2); }
.cgroup-head .state, .cgroup-head .cgroup-val, .cgroup-head .icon-btn { color: var(--text-2); }
.cgroup-head .icon-btn:active:not(:disabled) { background: var(--fill); }
@media (hover: hover) and (pointer: fine) { .cgroup-head .icon-btn:hover:not(:disabled) { background: var(--fill); } }
/* Handy: im Kopf Wartezeit statt Uhrzeit, die Uhr zeigt das Handy selbst */
@media (max-width: 759px) { .bar-sub > span:first-child { display: none; } .bar-wz { margin-left: -6px; } }
.frow-seg .frow-label { white-space: nowrap; }
/* Mehr Platz für den Tischplan (Min 03.11.2026): Spalte rechts schmaler */
@media (min-width: 1000px) { .tables-view { grid-template-columns: 1fr minmax(300px, 26%); } }

/* unslop 16.11.2026: Handy-Kopf im Tischplan ohne Abschneiden, Reservierungen füllen den Platz unter dem Plan. */
.bt-kurz, .wz-lang { display: none; }
.wz-kurz { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-wz:has(.wz-kurz) > .ic:first-child { display: none; }
.wz-kurz .ic { width: 14px; height: 14px; }
.wz-trenn { width: 4px; }
@media (max-width: 759px) {
  .bt-lang { display: none; }
  .bt-kurz { display: inline; }
  .respanel { --peek: max(116px, calc(100dvh - var(--tabbar-space) - var(--safe-t) - var(--bar-h) - 100vw - 16px)); }
  .respanel[data-detent="peek"] .res-scroll { visibility: visible; }
  .tables-bar { gap: 4px; padding-left: 12px; padding-right: 8px; }
  .tables-bar .neu-leiste { gap: 4px; }
}

/* Min 16.11.2026: Startseite kompakt. Tischplan passt ohne Scrollen in die Fläche (Zoom 1 = ganz sichtbar),
   „Meine/Übergeben“ ist weg, Abholung · Lieferung · Theke als große Knöpfe mit Namen. */
.planwrap { container-type: size; }
.plan { min-width: 0; width: calc(min(100cqw, 100cqh) * var(--z, 1)); margin-inline: auto; }
@media (min-width: 760px) { .planwrap { padding-bottom: 16px; } }
.tables-bar { gap: 12px; }
.neu-leiste { gap: 8px; }
.neu-btn { min-height: 52px; min-width: 132px; padding: 0 20px; gap: 10px; justify-content: center; font-size: 17px; font-weight: 600; }
.neu-btn .ic { width: 22px; height: 22px; }
@media (max-width: 1279px) { .neu-l { display: inline; } .neu-btn { width: auto; min-width: 112px; padding: 0 14px; } }
@media (max-width: 1099px) { .zoom { display: none; } }
/* Handy: Knöpfe als eigene Zeile unter Datum, gleich breit über die ganze Breite */
@media (max-width: 759px) {
  .tables-bar { flex-wrap: wrap; row-gap: 8px; padding-bottom: 10px; }
  .tables-bar .bar-titles { flex: 1 1 100%; }
  .tables-bar .neu-leiste { flex: 1 1 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .neu-btn { min-width: 0; min-height: 52px; padding: 0 8px; font-size: 16px; gap: 6px; }
  /* Hinweise (Webshop aus, Platzlicht) machen den Kopf höher: --tb-h misst ihn (kern.js), damit kein Tisch darunter verschwindet. */
  .planwrap { padding-top: max(calc(var(--safe-t) + var(--bar-h) + 72px), calc(var(--tb-h, 0px) + 12px)); }
  .respanel { --peek: max(116px, calc(100dvh - var(--tabbar-space) - max(calc(var(--safe-t) + var(--bar-h) + 72px), var(--tb-h, 0px)) - 100vw)); }
}

/* Kartenzahlung: Trinkgeld mit Karte oder bar (Min 16.11.2026) */
.cardpay-art { flex-wrap: wrap; gap: 8px 12px; }
.cardpay-art .seg { margin-left: auto; min-width: 200px; }

/* Kunden (Min 16.11.2026) */
.kunden-suche { margin: 0 0 16px; }
.kunde-zeile .row-sub + .row-sub { margin-top: 2px; }
/* Telefon als Tippfläche mit mindestens 44 px (Prüfrunde 16.11.2026, Befund 18). Der negative Rand hält die Zeile so hoch wie vorher. */
.kunde-tel { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-block: -12px; padding-inline: 2px; color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.gs-einloesen-btn:disabled { opacity: 1; color: var(--text-2); }
.gs-einloesen-btn:disabled .row-title { color: var(--text-2); }
.kunde-wert { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; font-size: 15px; }
.kunde-wert small { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
@media (max-width: 759px) {
  .kunde-zeile { flex-wrap: wrap; row-gap: 4px; }
  .kunde-zeile .row-ic { display: none; }
  .kunde-zeile .row-main { flex: 1 1 100%; }
  .kunde-wert { flex: 1 1 100%; flex-direction: row; justify-content: flex-start; align-items: baseline; gap: 8px; font-size: 14px; color: var(--text-2); }
}

/* Gutscheine (Min 16.11.2026): verkaufen, einlösen, Admin-Seite */
.cashrow.gs-werte { grid-template-columns: repeat(5, 1fr); margin-bottom: 14px; }
.gs-werte .cashbtn { display: flex; align-items: center; justify-content: center; text-align: center; }
.gs-frei { margin-top: 12px; }
.gs-code { font-size: 20px; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.gs-code::placeholder { text-transform: none; letter-spacing: 0; color: var(--text-2); opacity: 1; }
.gs-kamera { padding: 0 20px 16px; }
.gs-kamera[hidden] { display: none; }
.gs-kamera video { display: block; width: 100%; max-height: 280px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-gross); background: #000; }
/* Welle 3: Codefeld mit Umschalter 123/ABC, neuer Code groß, Erstatten */
.gs-code-zeile { display: flex; gap: 8px; align-items: stretch; }
.gs-code-zeile .gs-code { flex: 1 1 auto; min-width: 0; }
.gs-abc { min-width: 56px; min-height: 44px; padding-inline: 12px; }
.gs-neu-code { margin: 8px 20px 4px; font-size: 26px; font-weight: 600; letter-spacing: .04em; text-align: center; font-variant-numeric: tabular-nums; }
.erstatten-knoepfe { padding-top: 0; }
.erst-zeile .stepper-n { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.gs-fehler { margin: 0 20px 12px; }
.gs-bereich { margin: 0 0 16px; }
.gs-suche { margin: 16px 0; }
.gs-code-text { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.gs-wert { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; font-size: 15px; }
.gs-wert small { font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
/* Rabattcodes (Webshop) */
.rc-hinweis { font-size: 15px; color: var(--text-2); margin: 0 4px 16px; }
.rc-neu { margin: 0 0 20px; }
.rc-foot { font-size: 14px; color: var(--text-2); margin: -8px 20px 16px; }
.beleg-tag.is-aktiv { background: var(--accent); color: var(--on-accent); }

/* Artikelsuche: Umschalter Ziffernfeld / Tastatur (Min 16.11.2026). Nur auf Touch-Geräten. */
.tast-btn { flex: none; min-width: 56px; height: 56px; padding: 0 12px; border-radius: var(--r); background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--rand); font: 600 16px/1 var(--font); letter-spacing: .02em; }
.tast-btn:active { background: var(--fill); }
@media (hover: hover) and (pointer: fine) { .tast-btn { display: none; } }

/* Min 16.11.2026: PIN ohne Knopf „Anmelden“, Tasten rund statt eckig, richtige PIN = Punkte grün. */
:root { --pin-ok: #1E7F3A; }
:root[data-theme="dunkel"] { --pin-ok: #34C759; }
.key { border-radius: 50%; }
.key.key-text { border-radius: 50%; }
.pindots.is-ok span.on { background: var(--pin-ok); box-shadow: none; transform: scale(1.15); transition: background-color 120ms ease, transform 160ms var(--ease-out); }
.pindots.is-error span { box-shadow: inset 0 0 0 2px var(--red, #D70015); }
@media (prefers-reduced-motion: reduce) { .pindots.is-ok span.on { transform: none; } }

.key.key-text:disabled { opacity: .35; }

/* ==================== Laterne (Min 17.11.2026) ==================== */
/* Keine Bewegung: nichts gleitet, nichts federt. Zustände wechseln sofort. */
*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
.btn:active:not(:disabled), .key:active:not(:disabled), .kats .kat:active, .pt:active, .chip:active, .seg > button:active, .cartbtn:active:not(:disabled),
.quick-btn:active, .numkey:active, .tablekey:active:not(:disabled), .cashbtn:active:not(:disabled), .icon-btn:active:not(:disabled), .stepper > button:active:not(:disabled),
.staffbtn:active, .row-btn:active, .zp-key:active, .seatdot:active, .stage-table:active, .gang:active, .btn-a4:active, .tab:active .ic { transform: none; }
.seatdot.is-active { transform: none; }
.ic-voll { fill: currentColor; stroke: none; }

/* Getönte Flächen statt Linien */
.btn-tinted, .btn-gray { background: var(--fill); box-shadow: none; }
.btn-tinted:active:not(:disabled), .btn-gray:active:not(:disabled) { background: var(--fill-2); }
.btn:disabled { background: var(--card); }
.btn-senden:disabled, .btn-plain:disabled, .btn-plain-danger:disabled { background: transparent; }
.textfield, .field-solo input, .quick-btn, .pay-feld, .zp-key, .tile-minus { box-shadow: none; }
.textfield, .field-solo input { background: var(--fill); }
.quick-btn { background: var(--fill); }
.quick-btn:active { background: var(--fill-2); }
.row + .row::before, .frow + .frow::before, .frow + .form-error + .frow::before, .big-group .bigrow + .bigrow::before { left: 0; height: 2px; background: var(--bg); }
.seg { background: var(--card); }
.close-btn, .stepper > button { background: var(--fill); }
.switch-ui { background: var(--rand); }
.switch input:checked + .switch-ui::after { background: var(--on-accent); }
.sheet { box-shadow: 0 0 0 1px var(--sep); }
.respanel { box-shadow: 0 -1px 0 var(--sep); }
.banner.glass, .offline.glass { background: var(--card); }
.catbar, .seatpanel, .gangbar { background: var(--bg); }
.gangbar { box-shadow: inset 0 -1px 0 var(--sep); }
.gang { background: var(--card); box-shadow: none; }
.searchfield input { background: var(--card); height: 48px; font-size: 17px; }
.chip, .seatdot, .stage-table { background: var(--card); box-shadow: none; }
.chip.is-active, .seatdot.is-active, .stage-table.is-active { background: var(--accent); box-shadow: none; }
.cnt, .chip .cnt { box-shadow: 0 0 0 2px var(--bg); }
.nav-badge { box-shadow: 0 0 0 2px var(--card); }
.ohead { box-shadow: 0 1px 0 var(--sep); }

/* Anmeldung: runde PIN-Tasten auf getönter Fläche */
.login { background: var(--bg); }
.key { background: var(--card); font-weight: 700; }
.key.key-text { background: transparent; }

/* Tischplan: nur die Nummer. Frei = getönt, besetzt = gefüllt in Textfarbe, reserviert = gestrichelt. */
.pt { background: var(--card); box-shadow: none; border-radius: 2px; }
.pt.round { border-radius: 50%; }
.pt.is-open { box-shadow: none; }
.pt.is-res { background: transparent; color: var(--text); box-shadow: none; outline: 2px dashed var(--text); outline-offset: -2px; }
.tablekey.is-res { background: transparent; }
.pt.deko { background: transparent; box-shadow: inset 0 0 0 1px var(--sep); color: var(--text-2); }
.pt-name { font-weight: 700; }
.pt.is-focus { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }

/* Karte: drei Kacheln pro Reihe am Handy, mit Nummernbereich. Artikel als enge Zeilen, Nummer in Gelb. */
.menu { padding: 2px 10px calc(var(--safe-b) + 120px); }
.kats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding-top: 8px; }
.kats .kat { min-height: 78px; padding: 8px 10px; }
.kat-name { font: 700 15px/1.15 var(--font); overflow-wrap: anywhere; hyphens: auto; }
.kat-meta { font-size: 13px; font-variant-numeric: tabular-nums; }
.kats .tile-count { top: 6px; right: 6px; }
@media (min-width: 700px) {
  .kats { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .kats .kat { min-height: 92px; padding: 10px 12px; }
  .kat-name { font-size: 18px; }
  .kat-meta { font-size: 14px; }
}
.msec-title { margin: 10px 2px 8px; font-weight: 700; }
.kat-zurueck { margin-top: 2px; }
.tiles { gap: 2px 8px; background: transparent; box-shadow: none; border-radius: 0; overflow: visible; }
.tile { min-height: 50px; padding: 3px 4px 3px 12px; border-radius: var(--r); box-shadow: none; }
.tile.has-count { background: var(--card); box-shadow: inset 0 0 0 2px var(--text); }
.tile:active:not(:disabled) { background: var(--fill); }
.msec.has-kf .tile::before { display: none; }
.tile-nr, .line-nr, .tnr { color: var(--nr); font-weight: 700; }
.tile-nr { min-width: 40px; font-size: 16px; }
.tile-nr:empty { display: none; }
.tile-name { font-size: 16px; font-weight: 400; }
.tile-plus { width: 40px; background: transparent; color: var(--text-2); }
.tile-minus { background: var(--fill); }
.tile-minus:active { background: var(--fill-2); }
.tile:disabled .tile-nr, .tile.is-aus .tile-nr { color: var(--text-2); }

/* Warenkorb: jeder Gang ein eigener Kasten mit Kopfzeile */
.cartpane { background: var(--bg); }
.cart-scroll { padding: 0 10px 10px; }
.cgroup { background: var(--card); box-shadow: none; }
.cgroup + .cgroup, .gang-neu-zeile { margin-top: 6px; }
.cgroup-head { min-height: 40px; padding: 2px 4px 2px 12px; background: transparent; border-bottom: 2px solid var(--bg); color: var(--text); }
.cgroup-head h3 { font: 700 14px/1.2 var(--font); color: var(--text); }
.cgroup-head .cgroup-val { color: var(--text); font-weight: 700; }
.line { border-bottom: 1px solid var(--bg); }
.line-main { min-height: 48px; padding: 6px 6px 6px 12px; }
.line-nr { margin-right: 6px; }
.gang-neu-zeile { min-height: 44px; background: transparent; box-shadow: inset 0 0 0 1px var(--sep); font-size: 15px; }
.cart-chip { background: var(--card); box-shadow: none; }
.cart-chip:active { background: var(--fill-2); }
/* Senden mit Rahmen (ein Drittel), Zahlen gefüllt mit der Summe im Knopf (zwei Drittel), „Tisch ändern“ als Textlink darunter */
.cart-foot { border-top: 0; padding-top: 8px; }
.cart-btns { grid-template-columns: 1fr 2fr; gap: 6px; margin-top: 8px; }
.cart-btns .btn-lg { min-height: 52px; font-size: 17px; }
.btn-zahlen { justify-content: space-between; padding: 0 16px; }
.btn-zahlen strong { font-weight: 700; font-variant-numeric: tabular-nums; }
.btn-zahlen:only-child, .cart-btns .btn:only-child { grid-column: 1 / -1; }
.cart-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 2px; }
.cart-links:empty { display: none; }
.cart-links .link-btn { padding: 0 2px; font-weight: 400; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* Leiste unten am Handy: schwebend, gefüllte Symbole, aktiver Punkt mit Wort */
.tabbar { left: 10px; right: 10px; bottom: calc(var(--safe-b) + 8px); height: 56px; padding: 4px; display: flex; gap: 2px; border-radius: 999px; background: var(--card); box-shadow: 0 0 0 1px var(--sep); }
.tab { flex: 1 1 0; flex-direction: row; gap: 6px; min-width: 44px; border-radius: 999px; color: var(--text-2); }
.tab .ic { width: 24px; height: 24px; }
.tab-label { display: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.tab[aria-current="page"] { flex: 0 1 auto; padding: 0 16px; background: var(--accent); color: var(--on-accent); }
.tab[aria-current="page"] .tab-label { display: inline; }
.tab[aria-current="page"]::before { display: none; }
/* Die Reservierungen enden über der schwebenden Leiste, nichts läuft darunter durch. */
@media (max-width: 699px) { .tables-view { clip-path: inset(0 0 var(--tabbar-space) 0); } }
@media (min-width: 700px) { .tabbar { display: none; } }
.kat-name { font-size: 14px; hyphens: manual; }
@media (min-width: 700px) { .kat-name { font-size: 18px; } }
.cart-qty { background: var(--on-accent); color: var(--accent); }

/* ---------- Startseite mit Kacheln (Min 17.11.2026) ---------- */
.page-dash, .page-ausser { max-width: 720px; }
.dash-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.dk { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; min-width: 0; min-height: 132px; padding: 12px; border-radius: var(--r); background: var(--card); color: var(--text); text-align: left; }
.dk .ic { position: absolute; top: 12px; left: 12px; width: 28px; height: 28px; }
.dk-t { font: 700 20px/1.15 var(--font); }
.dk-m { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dk:active { background: var(--fill-2); }
.dk-haupt { background: var(--accent); color: var(--on-accent); }
.dk-haupt .dk-m { color: var(--on-accent); }
.dk-haupt:active { background: var(--accent-press); }
.dk-breit { grid-column: 1 / -1; min-height: 72px; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
.dk-breit .ic { position: static; }
.dk-breit .dk-m { margin-left: auto; }
.dash-extra { margin: 6px 0 0; }
.dash-wisch { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.dash-wisch .link-btn { display: inline-flex; align-items: center; gap: 4px; font-weight: 400; color: var(--text-2); }
.dash-wisch .ic { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .dk:hover { background: var(--fill); } .dk-haupt:hover { background: var(--accent-press); } }
@media (min-width: 700px) { .dk { min-height: 168px; padding: 16px; } .dk .ic { top: 16px; left: 16px; } .dk-breit { min-height: 84px; } }
.ausser-neu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 18px; }
.ausser-neu .neu-btn { min-width: 0; min-height: 56px; padding: 0 8px; gap: 6px; font-size: 16px; }
/* Tischplan: Feld „Abholung“ führt zu Abholung und Lieferung */
.pt.deko-link { color: var(--text); cursor: pointer; }
.pt.deko-link span { text-decoration: underline; text-underline-offset: 2px; }
.pt.deko-link:active { background: var(--fill); }
/* Tischplan am Handy ohne die Knopfzeile: der Plan rückt nach oben */
@media (max-width: 759px) {
  .planwrap { padding-top: max(calc(var(--safe-t) + var(--bar-h) + 12px), calc(var(--tb-h, 0px) + 12px)); }
  .respanel { --peek: max(116px, calc(100dvh - var(--tabbar-space) - max(calc(var(--safe-t) + var(--bar-h) + 12px), var(--tb-h, 0px)) - 100vw)); }
}

/* ---------- Tischplan nur Tischplan, Tische in Farbe (Min 17.11.2026) ----------
   Blau = frei, Rot = besetzt, Orange = reserviert (kommt mit der Platzlicht-Anbindung zurück). Weiße Schrift, mind. 4,5:1.
   Diese drei Farben sind eine bewusste Ausnahme von „nur Schwarz, Weiß, Gelb“. */
:root { --tisch-frei: #0A67E0; --tisch-besetzt: #D12B2B; --tisch-reserviert: #B85700; }
.tables-view.nur-plan { display: block; clip-path: none; }
.nur-plan .planpane { position: absolute; inset: 0; height: auto; }
.nur-plan .planwrap { padding-bottom: calc(var(--tabbar-space) + 16px); }
@media (min-width: 700px) { .nur-plan .planwrap { padding-bottom: 16px; } }
.pt:not(.deko) { background: var(--tisch-frei); color: #fff; }
.pt.is-res { background: var(--tisch-reserviert); color: #fff; outline: 0; }
.pt.is-open, .pt.is-wartet, .pt.is-rechnung { background: var(--tisch-besetzt); color: #fff; }
.pt.is-wartet { box-shadow: 0 0 0 2px var(--plan), 0 0 0 4px var(--tisch-besetzt); }
.pt.is-rechnung::after { background: var(--tisch-besetzt); }
.pt:not(.deko):active { filter: brightness(.88); }
@media (hover: hover) and (pointer: fine) { .pt:not(.deko):hover { filter: brightness(.92); } }
.plan-legende { display: flex; gap: 14px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.plan-legende span { display: inline-flex; align-items: center; gap: 6px; }
.plan-legende i { width: 12px; height: 12px; border-radius: 1px; background: var(--tisch-frei); }
.plan-legende i.b { background: var(--tisch-besetzt); }
/* Handy: der Plan nutzt die ganze Höhe, die Tische werden dadurch höher und lassen sich besser treffen. */
@media (max-width: 699px) {
  .nur-plan .plan { aspect-ratio: auto; width: calc(100cqw * var(--z, 1)); height: calc(min(100cqh, 160cqw) * var(--z, 1)); }
  .nur-plan .pt-name { font-size: 18px; }
}

/* ==================== Bedienung am Handy (Min 17.11.2026, nach Prüfung) ====================
   „Keine Bewegung“ bleibt für alles Zierende. Was erklärt, wo etwas herkommt oder hingeht, bewegt sich kurz:
   Blätter gleiten, die Seite schiebt sich beim Wischen herein, Flächen zeigen den Druck sofort. */
:root { --press: #CACACA; }
:root[data-theme="dunkel"] { --press: #3C3C42; }

/* Blätter und Abdunkelung gleiten kurz. Beim Ziehen setzt das Skript transition: none, das bleibt unberührt. */
.sheet { transition-duration: 220ms !important; transition-timing-function: cubic-bezier(.32, .72, 0, 1) !important; }
.layer.is-leaving .sheet { transition-duration: 160ms !important; }
.scrim { transition-duration: 160ms !important; }
.toast, .banner { transition-duration: 140ms !important; }
/* Seitenwechsel nur beim Wischen: kurzer Einschub aus der Wischrichtung. Tippen in der Leiste wechselt sofort. */
@keyframes rein-links { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes rein-rechts { from { transform: translateX(100%); } to { transform: none; } }
.main.von-links { animation: rein-links 240ms cubic-bezier(.32, .72, 0, 1) !important; animation-duration: 240ms !important; }
.main.von-rechts { animation: rein-rechts 240ms cubic-bezier(.32, .72, 0, 1) !important; animation-duration: 240ms !important; }
@media (prefers-reduced-motion: reduce) { .main.von-links, .main.von-rechts { animation: none !important; } }

/* Druck: Die Fläche wird sofort deutlich dunkler bzw. heller und geht beim Loslassen kurz zurück. */
button, .pt, .line-main { transition-property: background-color, filter; transition-duration: 120ms !important; transition-timing-function: ease-out; }
button:active, .pt:active, .line-main:active { transition-duration: 0ms !important; }
.btn-tinted:active:not(:disabled), .btn-gray:active:not(:disabled), .btn-plain:active:not(:disabled), .btn-senden:active:not(:disabled),
.tile:active:not(:disabled), .line-main:active:not(:disabled), button.row:active:not(:disabled), .bigrow:active, .dk:active, .key:active:not(:disabled),
.chip:active, .gang:active, .cart-chip:active, .quick-btn:active, .numkey:active, .tablekey:active:not(:disabled), .cashbtn:active:not(:disabled), .zp-key:active,
.stepper > button:active:not(:disabled), .close-btn:active, .icon-btn:active:not(:disabled), .link-btn:active, .navbtn:active, .seg > button:active,
.seatdot:active, .stage-table:active, .tile-minus:active, .line-more:active, .tab:active, .method:active, .row-btn:active, .res-main:active,
.side-item:active, .kat-zurueck:active, .gang-neu-zeile:active, .pay-feld:active, .otitle:active, .staffbtn:active, .pcheck:active:not(:disabled), .beleg-haupt:active { background: var(--press); }
.tile:active .tile-nr { color: var(--text); }
.btn-fill:active:not(:disabled), .cartbtn:active:not(:disabled), .chip.is-active:active, .seg > button[aria-checked="true"]:active, .tab[aria-current="page"]:active,
.dk-haupt:active, .gang[aria-checked="true"]:active, .seatdot.is-active:active, .stage-table.is-active:active, .numkey.is-cur:active, .tablekey.is-on:active,
.cashbtn.is-on:active, .side-item[aria-current="page"]:active, .cat[aria-selected="true"]:active { background: var(--accent-press); }
.btn-danger:active:not(:disabled) { background: var(--red-press); }
.key.key-text:active:not(:disabled) { background: var(--press); }
/* Lange gedrückt: nichts schrumpft mehr (sprang beim Scrollen der Artikelliste), die Fläche zeigt den Druck. */
.tile.is-holding, .qkey.is-holding { transform: none; background: var(--press); }

/* Mehrfachauswahl: Der Kreis liegt im Knopf, die ganze Zeile wählt. Gewählte Zeile deutlich markiert. */
.line-check { width: 28px; height: 28px; margin-left: 0; margin-right: 2px; }
.line.is-picked .line-main { background: var(--accent-tint); box-shadow: inset 4px 0 0 var(--accent); }
.line.is-picked .line-main:active { background: var(--press); }

/* Minus an der Artikelzeile: Puffer rundum, damit ein Tipp knapp daneben nicht stattdessen einen Artikel bucht. */
.tile-minus::before { content: ""; position: absolute; inset: -3px -12px; }
/* Tipp neben ein Blatt schließt es auch in Safari am iPhone. Griff am Blatt höher. */
.scrim { cursor: pointer; }
.grab { height: 30px; }
/* Tippflächen mindestens 44 px */
.line-more { width: 44px; height: 44px; }
.tile-minus { width: 44px; height: 44px; }
.tile-minus-platz { width: 44px; }
.chip { min-height: 44px; }
.cgroup-head { min-height: 48px; }
.cgroup-head .btn-small { min-height: 44px; }
.bar-wz { min-height: 44px; }
.beleg-suche input { font-size: 17px; }

/* Scrollen: Listen laufen nur senkrecht, waagerechte Leisten ziehen die Seite nicht mit. */
.oscroll, .cart-scroll { touch-action: pan-y; }
.chips, .cats, .cart-chips, .gangs { overscroll-behavior-x: contain; }
.seatbar { touch-action: pan-y; }

/* Korrekturen nach Kontrolle 2 (17.11.2026) */
/* K4: Gewählte Knöpfe bleiben beim Drücken gefüllt und lesbar */
.quick-btn[aria-pressed="true"]:active, .quick-btn[aria-checked="true"]:active, .method[aria-checked="true"]:active { background: var(--accent-press); }
.seg > button[aria-checked="true"]:active { background: var(--st, var(--accent-press)); }
/* K7: Schrift auf der gedrückten Fläche */
.line-main:active .line-nr, .tile.is-aus:active .tile-price, .tile.is-holding .tile-nr { color: var(--text); }
/* K8: wirklich nichts schrumpft mehr */
.method:active, .kachel:active, .keep-btn:active, .pay-rest:active, .qkey:active { transform: none; }
.tile-minus:active { transform: translateY(-50%); }
/* K9: Meldungen blenden nur ein, kein Verschieben, Skalieren oder Unschärfe */
.toast, .banner { transition-property: opacity !important; }
/* Druck für Finger: Klasse „druck“ aus aktionen.js, gleiche Farben wie :active. Farbige Tische und Kategorien dunkeln nur ab. */
.druck:not(.pt):not(.is-farbig) { background: var(--press) !important; }
.druck.btn-fill, .druck.cartbtn, .druck.chip.is-active, .druck.tab[aria-current="page"], .druck.dk-haupt, .druck.gang[aria-checked="true"], .druck.seatdot.is-active,
.druck.stage-table.is-active, .druck.numkey.is-cur, .druck.tablekey.is-on, .druck.cashbtn.is-on, .druck.side-item[aria-current="page"], .druck.cat[aria-selected="true"],
.druck.quick-btn[aria-pressed="true"], .druck.quick-btn[aria-checked="true"], .druck.method[aria-checked="true"] { background: var(--accent-press) !important; }
.seg > button.druck[aria-checked="true"] { background: var(--st, var(--accent-press)) !important; }
.druck.btn-danger { background: var(--red-press) !important; }
.pt.druck:not(.deko), .kats .kat.is-farbig.druck { filter: brightness(.88); }
.druck .line-nr, .druck .tile-nr, .druck.is-aus .tile-price { color: var(--text); }
/* Die Artikelzeile zeigt den Druck über „druck“, nicht mehr schon beim Aufsetzen (blitzte beim Scrollen auf). */
.tile.is-holding { background: var(--card); }
.tile.is-holding.druck { background: var(--press); }
/* weitere kleine Flächen mit Druck-Rückmeldung */
.bar-wz:active, .btn-plain-danger:active:not(:disabled), .qkey:active { background: var(--press); }

/* ---------- Gleiten statt Springen (Min 17.11.2026: „nicht direkt weg, sondern smoother“) ---------- */
/* Die Bestellung gleitet beim Öffnen von rechts herein (Startzustand steht weiter oben bei .app-order). */
.app-order { transition-duration: 220ms !important; transition-timing-function: cubic-bezier(.32, .72, 0, 1) !important; }
/* Kategorien und Artikel: hinein von rechts, zurück von links */
@keyframes kat-rein-r { from { transform: translateX(48px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes kat-rein-l { from { transform: translateX(-48px); opacity: 0; } to { transform: none; opacity: 1; } }
.msec.rein-r { animation: kat-rein-r 200ms cubic-bezier(.23, 1, .32, 1) !important; animation-duration: 200ms !important; }
.msec.rein-l { animation: kat-rein-l 200ms cubic-bezier(.23, 1, .32, 1) !important; animation-duration: 200ms !important; }
/* Aufgeklappte Zeile im Warenkorb und Meldungen blenden weich ein */
@keyframes weich-rein { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.line-edit { animation: weich-rein 160ms ease-out !important; animation-duration: 160ms !important; }
/* Schalter gleitet */
.switch-ui, .switch-ui::after { transition-duration: 160ms !important; }
@media (prefers-reduced-motion: reduce) {
  .msec.rein-r, .msec.rein-l, .line-edit { animation: none !important; }
  .app-order { transition-duration: .01ms !important; }
}
/* Während eine Seite gleitet, darf nichts seitlich überstehen */
.app { overflow-x: clip; }

/* ---------- Eigener Ziffernblock der Artikelsuche am Handy (Min 17.11.2026) ----------
   Ohne iPhone-Tastatur gibt es auch keine Vorschläge darüber (Telefonnummer). */
.zahlpad.suchpad { pointer-events: auto; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 6px; max-width: 560px; margin: 0 auto 8px; background: var(--bg); border-radius: var(--r); box-shadow: 0 0 0 1px var(--sep); }
.suchpad .zp-key { height: 50px; background: var(--card); font-size: 22px; font-weight: 700; }
.suchpad .zp-key:active, .suchpad .zp-key.druck { background: var(--press); transform: none; }
.suchpad .sp-text { font-size: 16px; }
.suchpad .sp-breit { grid-column: span 2; }
.suchpad .sp-ok, .suchpad .sp-ok:active { background: var(--accent); color: var(--on-accent); }
.suchpad .sp-ok.druck { background: var(--accent-press) !important; }
.opane:has(.suchpad) .menu { padding-bottom: calc(var(--safe-b) + 370px); }

/* Minus auch bei gesendeten Artikeln (Min 17.11.2026): Zahl im Rahmen = schon gesendet, das Minus führt zum Storno. */
.tile-count.is-gesendet { background: transparent; color: var(--text-2); box-shadow: inset 0 0 0 2px var(--rand); }
.tile-minus.is-storno { color: var(--red-ink); }

/* ---------- Packstation (Min 17.11.2026): Zettel nebeneinander, Bilder, abhaken, raus ---------- */
.view-pack { overflow: hidden; }
.pack { display: flex; flex-direction: column; height: 100dvh; padding: calc(var(--safe-t) + 14px) 0 var(--tabbar-space); }
.pack-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 0 16px 10px; flex: none; }
.pack-kopf .btn { min-height: 44px; padding: 0 12px; font-size: 15px; }
.pack-filter { margin: 0 16px 10px; flex: none; }
.pack-filter > button { font-size: 14px; padding: 0 6px; min-width: 0; }
.pack-leiste { flex: 1; min-height: 0; display: flex; gap: 10px; padding: 0 16px 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pack-leiste::-webkit-scrollbar { display: none; }
.zettel { flex: none; width: min(86vw, 360px); display: flex; flex-direction: column; min-height: 0; background: var(--card); border-radius: var(--r); scroll-snap-align: start; overflow: hidden; }
.zettel-kopf { flex: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; background: var(--accent); color: var(--on-accent); }
.zettel-titel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 8px; border-radius: var(--r); color: inherit; text-align: left; }
.zettel-titel .ic { width: 26px; height: 26px; }
.zettel-titel strong { display: block; font: 700 24px/1.1 var(--font); }
.zettel-titel small { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zettel-titel span { min-width: 0; }
.zettel-alter { flex: none; font: 700 20px/1 var(--font); font-variant-numeric: tabular-nums; }
.zettel-alter.is-spaet { background: var(--red); color: #fff; padding: 6px 8px; border-radius: var(--r); }
.zettel .allergy-line { margin: 8px 12px 0; }
.zettel-inhalt { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; padding: 4px 8px 12px; } /* kein touch-action: quer wischen blättert zum nächsten Zettel */
.pk-gang { padding-top: 8px; }
.pk-gang + .pk-gang { margin-top: 8px; border-top: 2px solid var(--bg); }
.pk-gang-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 0 4px; }
.pk-gang-kopf h3 { font: 700 15px/1.2 var(--font); }
.pk-gang.is-wartet .pk-liste { opacity: .55; }
.pk-zeile { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 68px; padding: 6px; border-radius: var(--r); text-align: left; }
.pk-bild { flex: none; width: 56px; height: 56px; border-radius: var(--r); object-fit: cover; background: #fff; }
.pk-ohne { display: grid; place-items: center; background: var(--fill); color: var(--nr); font: 700 15px/1 var(--font); }
.pk-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-name { font-size: 17px; font-weight: 700; line-height: 1.25; }
.pk-menge { font-variant-numeric: tabular-nums; }
.pk-platz { font-size: 14px; color: var(--text-2); }
.pk-haken { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); box-shadow: inset 0 0 0 2px var(--rand); color: transparent; }
.pk-haken .ic { width: 22px; height: 22px; stroke-width: 2.8; }
.pk-zeile.is-on .pk-haken { background: var(--accent); box-shadow: none; color: var(--on-accent); }
.pk-zeile.is-on .pk-name { color: var(--text-2); text-decoration: line-through; }
.pk-zeile.is-on .pk-bild { opacity: .45; }
.pk-zeile:active:not(:disabled), .pk-zeile.druck { background: var(--press); }
.pk-raus { margin-top: 8px; min-height: 56px; }
.pk-hinweis { font-size: 14px; color: var(--text-2); padding: 4px; }
.pk-frage { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; padding: 12px; border-radius: var(--r); background: var(--bg); box-shadow: inset 0 0 0 2px var(--nr); }
.pk-frage strong { font: 700 17px/1.2 var(--font); }
.pk-frage span { font-size: 14px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pk-frage-knoepfe { display: grid; grid-template-columns: 1fr 2fr; gap: 6px; margin-top: 8px; }
.pk-frage.is-spaeter { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; box-shadow: inset 0 0 0 1px var(--sep); }
@media (min-width: 700px) { .pack { padding-top: calc(var(--safe-t) + 24px); } .pack-kopf, .pack-filter { margin-left: 16px; margin-right: 16px; padding-left: 0; padding-right: 0; } .pack-filter { max-width: 560px; } .pack-leiste { padding: 0 32px 24px; scroll-padding: 0 32px; } .pack-kopf { padding: 0 16px 10px; } }

/* „in Küche“ lesbar auf getönter Fläche (gemessen 3,6:1 im Dunkeln, 4,2:1 im Hellen) */
:root { --indigo-ink: #0B6370; }
:root[data-theme="dunkel"] { --indigo-ink: #5CC6D4; }
.st-kitchen { color: var(--indigo-ink); }

/* Zahl an der Leiste unten verdeckt das Wort nicht */
.tab[aria-current="page"] .tab-ic:has(.nav-badge) { margin-right: 10px; }

/* ---------- Packstation auf dem iPad (Min 17.11.2026) ----------
   Mehrere Zettel nebeneinander, größere Bilder, Haken und Knöpfe für den Finger, auf Wunsch ohne Seitenleiste. */
.pack-knoepfe { display: flex; gap: 6px; flex: none; }
.pack-voll { display: none; }
@media (min-width: 700px) {
  .pack-voll { display: inline-flex; }
  .app.is-voll { grid-template-columns: 1fr; }
  .app.is-voll .sidebar { display: none; }
  .pack { padding-top: calc(var(--safe-t) + 20px); padding-bottom: 0; }
  .pack-kopf { padding: 0 24px 12px; margin: 0; }
  .pack-kopf .btn { min-height: 52px; padding: 0 16px; font-size: 17px; }
  .pack-filter { margin: 0 24px 12px; max-width: 520px; }
  .pack-filter > button { min-height: 52px; font-size: 16px; }
  .pack-leiste { gap: 12px; padding: 0 24px 20px; scroll-padding: 0 24px; }
  /* Zwei Zettel im Hochformat, drei im Querformat, vier ohne Seitenleiste: die Breite teilt sich sauber auf */
  .zettel { width: max(264px, calc((100% - 12px) / 2)); } /* Hochformat mit Seitenleiste: zwei ganze Zettel */
  .zettel-titel strong { font-size: 30px; }
  .zettel-titel small { font-size: 16px; }
  .zettel-titel .ic { width: 32px; height: 32px; }
  .zettel-alter { font-size: 24px; }
  .zettel-inhalt { padding: 6px 12px 16px; }
  .pk-gang-kopf h3 { font-size: 17px; }
  .pk-zeile { min-height: 88px; gap: 14px; padding: 8px; }
  .pk-bild { width: 72px; height: 72px; }
  .pk-ohne { font-size: 18px; }
  .pk-name { font-size: 20px; }
  .pk-platz { font-size: 15px; }
  .pk-haken { width: 48px; height: 48px; }
  .pk-haken .ic { width: 28px; height: 28px; }
  .pk-raus { min-height: 68px; font-size: 20px; }
  .pk-frage strong { font-size: 20px; }
  .pk-frage span { font-size: 16px; }
  .pk-frage-knoepfe .btn { min-height: 60px; font-size: 18px; }
}
@media (min-width: 960px) { .zettel { width: max(300px, calc((100% - 24px) / 3)); } }
@media (min-width: 960px) { .app.is-voll .zettel { width: max(300px, calc((100% - 36px) / 4)); } }
@media (min-width: 700px) and (max-width: 959px) { .app.is-voll .zettel { width: max(300px, calc((100% - 24px) / 3)); } }

/* ---------- Schrift ruhiger (Min 17.11.2026): „nicht so dick“ ----------
   Normale Texte in normaler Stärke. Fett bleiben nur Überschriften, Nummern (Artikel, Tisch, Menge, Summe),
   Hauptknöpfe und das, was gerade gewählt ist. Die Artikelnummer ist fett in Textfarbe, nicht mehr gelb. */
:root { --nr: var(--text); }
:root[data-theme="dunkel"] { --nr: var(--text); }
.tile-name, .line-name, .pk-name, .pname, .row-title, .res-name, .tile-price, .cart-label, .gang, .cat, .staff-name, .side-item,
.tab-label, .neu-btn, .btn-gray, .btn-tinted, .btn-plain, .btn-plain-danger, .link-btn, .cart-chip, .quick-btn, .state, .seg > button,
.kat-zurueck, .morerow-label, .multi-title, .formrow-label, .res-gtitle, .bigrow-meta, .gang-neu-zeile span:last-child, .dash-wisch .link-btn { font-weight: 400; }
.tile-nr, .line-nr, .tnr, .pk-menge, .line-qty, .pk-name .line-nr { font-weight: 700; }
.gang[aria-checked="true"], .cat[aria-selected="true"], .side-item[aria-current="page"], .tab[aria-current="page"] .tab-label,
.seg > button[aria-checked="true"], .row.is-strong .row-title { font-weight: 700; }

/* Packstation als eigene Seite: Storno am Zettel, kein Menü */
.pk-liste li { display: flex; align-items: center; gap: 4px; }
.pk-zeile { flex: 1; min-width: 0; }
.pk-storno { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); color: var(--red-ink); }
.pk-storno .ic { width: 22px; height: 22px; }
.pk-storno:active, .pk-storno.druck { background: var(--press); }
.zettel-titel:disabled { opacity: 1; cursor: default; }
.app.is-pack .pack { padding-bottom: 0; }
@media (min-width: 700px) { .pk-storno { width: 52px; height: 52px; } .pk-storno .ic { width: 26px; height: 26px; } }

/* Einzelnen wartenden Artikel vorziehen */
.pk-einzeln { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r); background: var(--fill); color: var(--text); }
.pk-einzeln .ic { width: 22px; height: 22px; }
.pk-einzeln:active, .pk-einzeln.druck { background: var(--press); }
.pk-gang.is-wartet .pk-liste { opacity: 1; }
.pk-gang.is-wartet .pk-zeile { opacity: .55; }
@media (min-width: 700px) { .pk-einzeln { width: 52px; height: 52px; } .pk-einzeln .ic { width: 26px; height: 26px; } }

/* Packstation: Haken ist nur Checkliste, „Raus“ schickt raus, „Zurückholen“ nimmt es zurück */
.pk-zeile.is-on:not(.is-raus) .pk-name { text-decoration: none; color: var(--text); }
.pk-zeile.is-on:not(.is-raus) .pk-bild { opacity: 1; }
.pk-zeile:disabled.is-raus { opacity: 1; }
.pk-raus.btn-senden { background: transparent; }
.pk-zurueck { margin-top: 8px; min-height: 48px; font-size: 15px; }
.pack-filter > button { padding: 0 4px; }

/* ---------- Artikel als Kacheln mit Bild und Beschreibung (Min 17.11.2026, persönliche Einstellung) ---------- */
.tiles.is-kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 700px) { .tiles.is-kacheln { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; } }
.is-kacheln .tile-row { display: flex; }
.is-kacheln .tile { flex-direction: column; align-items: stretch; gap: 2px; min-height: 0; height: 100%; padding: 0 0 10px; text-align: left; }
.is-kacheln .tile-bild { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--r) var(--r) 0 0; background: #fff; margin-bottom: 6px; }
.is-kacheln .tile-ohne { display: grid; place-items: center; background: var(--fill); color: var(--text-2); font: 700 22px/1 var(--font); }
.is-kacheln .tile-nr, .is-kacheln .tile-name, .is-kacheln .tile-desc, .is-kacheln .tile-price { padding: 0 10px; min-width: 0; }
.is-kacheln .tile-nr { font-size: 15px; }
.is-kacheln .tile-name { flex: none; font-size: 16px; line-height: 1.25; }
.tile-desc { font-size: 13px; line-height: 1.3; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.is-kacheln .tile-price { margin-top: auto; padding-top: 4px; font-size: 16px; font-weight: 700; }
.is-kacheln .tile-plus, .is-kacheln .tile-minus-platz { display: none; }
.is-kacheln .tile-count, .is-kacheln .tile-count.is-gesendet { position: absolute; top: 6px; right: 6px; min-width: 32px; height: 32px; padding: 0 8px; display: grid; place-items: center; border-radius: 6px; background: #000; color: #fff; }
.is-kacheln .tile-minus, .is-kacheln .tile-minus:active { top: 6px; left: 6px; right: auto; transform: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--sep); }
.is-kacheln .tile.has-count { box-shadow: inset 0 0 0 2px var(--text); }
