/* ==========================================================================
   Schlemmer Pizza – Stylesheet (neues Design)
   Aufbau wie die bekannten Liefer-Apps, Aussehen von Schlemmer Pizza:
   heller Grund, Logo-Rot für Handlung und Kategorie-Linien (wie auf der
   gedruckten Karte), Logo-Gelb für die Nummernschilder der Gerichte.
   Alle Design-Werte (Tokens) stehen zentral in :root.
   ========================================================================== */

/* ---------- Schriften (lokal, keine Anfrage an Google) ---------- */
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('/fonts/barlow-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/fonts/barlow-condensed-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Design-Tokens ---------- */
:root {
  /* Flächen */
  --paper: #ffffff;          /* Seitengrund, Karten, Fenster */
  --paper-2: #f7f5f2;        /* ruhige Bereiche (Info, Kasse) */
  --paper-3: #efebe6;        /* Umschalter-Mulde, leise Knöpfe, Hover */
  --line: #e6e0d9;           /* Haarlinien */
  --line-strong: #cbc2b8;    /* Rahmen von Feldern und Knöpfen */
  /* Schrift */
  --ink: #1f1a17;            /* Haupttext (warmes Fast-Schwarz) */
  --ink-2: #4a423d;          /* Nebentext */
  --ink-3: #6b625b;          /* Hinweise (≥ 4.5:1 auf Weiß und paper-2) */
  /* Marke */
  --red: #d0230e;            /* Handlung: gefüllte Knöpfe, Warenkorb-Leiste (Weiß darauf 5.3:1) */
  --red-hover: #b01d0b;
  --red-ink: #b8200d;        /* Rot als Schrift auf Weiß und Gelb */
  --red-logo: #fe2f17;       /* Logo-Rot: Linien, Rand der Nummernschilder (nie für Text) */
  --red-tint: #fdeeeb;
  --yellow: #fed838;         /* Logo-Gelb: Nummernschilder, Abhol-Stempel */
  --yellow-tint: #fff5d1;    /* Extras-Band wie auf der Karte */
  --yellow-rim: #ecc443;
  /* Zustände */
  --green: #1e7a3c;          /* „Geöffnet“ */
  --green-tint: #e7f4ea;
  --amber: #8f5300;          /* Pause, Vorbestellung, Hinweise */
  --amber-tint: #fff3dc;
  --amber-rim: #f0c47a;
  --focus: #1f1a17;
  --icon-cut: #ffffff;       /* Aussparungen in Symbolen (Blatt, Räder) */
  /* Rollen, die im dunklen Modus eigene Werte bekommen */
  --canvas: #ffffff;         /* Seitengrund (dunkel: tiefer als Karten und Fenster) */
  --paper-4: #e5dfd8;        /* Hover auf leisen Knöpfen */
  --raised: #ffffff;         /* gewähltes Segment im Umschalter */
  --red-deep: #b01d0b;       /* Hover auf roten Flächen */
  --red-mark: var(--red);    /* rote Symbole und Ränder auf Flächen */
  --red-rim: #f1b0a5;        /* Rand roter Hinweise */
  --yellow-tint-2: #ffeeb0;  /* Hover auf dem Extras-Band */
  --yellow-rim-2: #d9ad1e;
  --veg: #2a6b31;
  --glass: rgba(255, 255, 255, .97);
  --glass-blur: rgba(255, 255, 255, .9);
  --ring: rgba(31, 26, 23, .18);
  --backdrop: rgba(31, 26, 23, .48);
  --toast-bg: #1f1a17;
  --toast-ink: #ffffff;
  --footer-bg: #1f1a17;
  /* Erkennungszeichen: in beiden Modi gleich (dunkle Ziffern und Rot auf Gelb) */
  --brand-ink: #1f1a17;
  --brand-red: #b8200d;

  /* Schrift: eine Familie in zwei Breiten */
  --font-sign: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --font-text: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  /* feste Stufen: 12 · 13 · 15 · 16 · 18 · 20 · 24 · 30 · 40 */
  --t-12: .75rem; --t-13: .8125rem; --t-15: .9375rem; --t-16: 1rem; --t-18: 1.125rem;
  --t-20: 1.25rem; --t-24: 1.5rem; --t-30: 1.875rem; --t-40: 2.5rem;
  --fs-xs: var(--t-13); --fs-s: var(--t-15); --fs-m: var(--t-16); --fs-l: var(--t-20);

  /* Abstände (4er-Raster) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --gutter: 16px;

  /* Formen */
  --r-plate: 7px;
  --r-btn: 10px;
  --r-card: 14px;
  --r-panel: 14px;
  --r-dialog: 18px;
  --r-pill: 999px;

  /* Maße */
  --topbar-h: 64px;
  --menubar-h: 112px;        /* wird per Skript genau gemessen */
  --actionbar-h: 68px;
  --cart-w: 380px;

  /* Bewegung (aus dem animate-Skill) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --shadow-1: 0 1px 2px rgba(31, 26, 23, .08), 0 2px 8px -2px rgba(31, 26, 23, .10);
  --shadow-2: 0 24px 60px -20px rgba(31, 26, 23, .45);

  /* Alt-Namen: die QR-Druckseite (qr.css, unverändert) liest diese Werte */
  --board: var(--paper-2);
  --board-2: var(--paper);
  --board-3: var(--paper-3);
  --board-deep: var(--paper-3);
  --yellow-ink: var(--ink);
  --red-text: var(--red-ink);
  --amber-tint-ink: #5c3700;
  --r-tile: 4px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 24px; --topbar-h: 72px; } }
@media (min-width: 1200px) { :root { --gutter: 32px; } }

/* ---------- Dunkler Modus: folgt der Einstellung des Geräts ----------
   Warmes Dunkelbraun statt Schwarz. Karten, Fenster und Felder liegen heller als der Seitengrund,
   der Arbeitsbereich (Info, Kasse) tiefer. Rot als Schrift und Symbol wird heller, rote Flächen
   bleiben. Nummernschilder und Abhol-Stempel bleiben gelb mit dunklen Ziffern.
   Die Verwaltung bleibt hell (data-theme="light"), gedruckt wird immer hell (nur screen). */
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #171310;
    --paper: #1f1a16;
    --paper-2: #120f0c;
    --paper-3: #2c2520;
    --paper-4: #3a312b;
    --raised: #4a4039;
    --line: #342c26;
    --line-strong: #554a41;
    --ink: #efe8e0;
    --ink-2: #d2c8be;
    --ink-3: #a99e93;
    --red-hover: #ffa896;
    --red-ink: #ff8a73;
    --red-mark: #ff6b52;
    --red-tint: #3b1b15;
    --red-rim: #7d3326;
    --yellow-tint: #332a12;
    --yellow-tint-2: #43371a;
    --yellow-rim: #7d6522;
    --yellow-rim-2: #a6862a;
    --green: #6fcf8e;
    --green-tint: #16301f;
    --amber: #f2ad4e;
    --amber-tint: #33260f;
    --amber-rim: #6e4f1b;
    --amber-tint-ink: #f6d7a0;
    --veg: #7fd492;
    --focus: #efe8e0;
    --icon-cut: #1f1a16;
    --glass: rgba(23, 19, 16, .97);
    --glass-blur: rgba(23, 19, 16, .86);
    --ring: rgba(239, 232, 224, .22);
    --backdrop: rgba(0, 0, 0, .62);
    --toast-bg: #3a322c;
    --toast-ink: #f7f1ea;
    --footer-bg: #0e0b09;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 8px -2px rgba(0, 0, 0, .6);
    --shadow-2: 0 24px 60px -20px rgba(0, 0, 0, .85);
    color-scheme: dark;
  }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--menubar-h) + 12px); }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 var(--t-16)/1.5 var(--font-text); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: var(--red-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--yellow); color: var(--brand-ink); }
input, textarea { caret-color: var(--red-mark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
abbr[title] { text-decoration: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 1.2em; height: 1.2em; flex: none; display: inline-block; vertical-align: -.22em; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s2); top: -100px; z-index: 100; padding: var(--s2) var(--s4); background: var(--ink); color: var(--paper); border-radius: var(--r-btn); font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--s2); color: var(--paper); }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.mt-2 { margin-top: var(--s2); }
.mt-4 { margin-top: var(--s4); }
.print-only { display: none; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.placeholder { background: #fff0a6; box-shadow: 0 0 0 2px #fff0a6; border-radius: 3px; color: #4d3b00; }

/* ---------- Nummernschild (Erkennungszeichen) ----------
   Flaches Logo-Gelb, roter Rand, schwarze Ziffern – wie die Buchstaben im Logo. */
.plate {
  display: inline-grid; place-items: center; flex: none;
  min-width: 44px; height: 34px; padding: 0 7px;
  border-radius: var(--r-plate);
  background: var(--yellow); color: var(--brand-ink);
  font: 700 var(--t-20)/1 var(--font-sign); letter-spacing: .01em; font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 2px var(--red-logo), 0 1px 3px rgba(31, 26, 23, .18);
}
.plate--sm { min-width: 34px; height: 26px; padding: 0 5px; font-size: var(--t-16); border-radius: 6px; }
.plate--lg { min-width: 64px; height: 48px; padding: 0 12px; font-size: var(--t-30); border-radius: 9px; box-shadow: inset 0 0 0 3px var(--red-logo), 0 2px 5px rgba(31, 26, 23, .18); }
.plate--xl { min-width: 120px; height: 84px; padding: 0 22px; font-size: 3.25rem; border-radius: 14px; box-shadow: inset 0 0 0 4px var(--red-logo), 0 3px 10px rgba(31, 26, 23, .18); }
/* Wer nach einer Nummer sucht („19“), bekommt das Schild des Treffers größer */
.dish.is-exact .dish__plate { min-width: 60px; height: 46px; font-size: var(--t-30); border-radius: 9px; box-shadow: inset 0 0 0 3px var(--red-logo), 0 2px 5px rgba(31, 26, 23, .18); }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 18px; border: 1.5px solid transparent; border-radius: var(--r-btn);
  font: 600 var(--t-16)/1.15 var(--font-text); text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--paper-3); color: var(--ink);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out);
}
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-deep); color: #fff; }
.btn--quiet { background: var(--paper-3); color: var(--ink); }
.btn--quiet:hover { background: var(--paper-4); color: var(--ink); }
.btn--ghost { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-3); background: var(--paper-2); color: var(--ink); }
.btn--danger { background: var(--paper); border-color: var(--red-rim); color: var(--red-ink); }
.btn--danger:hover { background: var(--red-tint); color: var(--red-hover); }
.btn--call { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.btn--call .i { color: var(--red-mark); }
.btn--call:hover { background: var(--paper-2); color: var(--ink); }
.btn--link { background: none; border: 0; padding: 0 2px; min-height: 44px; color: var(--red-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn--link:hover { color: var(--red-hover); background: none; }
.btn--lg { min-height: 52px; padding: 0 22px; font-size: var(--t-18); border-radius: 12px; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: var(--t-15); }
.btn--block { display: flex; width: 100%; }
.btn--wrap { white-space: normal; text-align: left; }
.btn__sub { display: block; font-weight: 400; font-size: var(--t-13); color: var(--ink-3); }
.iconbtn { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--ink); transition: background-color 150ms ease; }
.iconbtn:hover { background: var(--paper-3); }
.iconbtn .i { width: 22px; height: 22px; }
.linkbtn { background: none; border: 0; padding: 0 4px; min-height: 44px; color: var(--ink-2); font-weight: 600; font-size: var(--t-15); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--red-ink); }

/* Chips (Filter) */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); color: var(--ink);
  font: 600 var(--t-15)/1 var(--font-text); white-space: nowrap; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.chip .i { width: 18px; height: 18px; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); --icon-cut: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font: 700 var(--t-13)/1 var(--font-text); }

/* ---------- Formularfelder ---------- */
.field { display: grid; gap: 6px; margin-bottom: var(--s4); }
.field > label, .field__label { font-weight: 600; font-size: var(--t-15); }
.opt-label { font-weight: 400; color: var(--ink-3); }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-btn);
  background: var(--paper); color: var(--ink); font-size: var(--t-16); line-height: 1.3;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
textarea { min-height: 96px; resize: vertical; }
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
input:not([type="checkbox"]):not([type="radio"]):focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ring); }
::placeholder { color: var(--ink-3); opacity: 1; }
.field__hint { margin: 0; font-size: var(--t-13); color: var(--ink-3); }
.field__err { margin: 0; font-size: var(--t-13); font-weight: 600; color: var(--red-ink); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red-ink); }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem; gap: 0 var(--s3); }
/* PLZ vorne, Ortsteil-Liste daneben */
.row2--plz { grid-template-columns: 6.5rem minmax(0, 1fr); }
.ortwahl__msg { margin: 0; font-size: var(--t-13); line-height: 1.4; color: var(--ink-2); }
.ortwahl__msg:not(:empty) { margin: calc(-1 * var(--s2)) 0 var(--s4); }
.ortwahl__msg.is-warn { color: var(--red-ink); font-weight: 600; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 0; cursor: pointer; font-size: var(--t-15); line-height: 1.4; }
.check input, .opt input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--red); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 var(--s4); }
.errorbox { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: 12px; background: var(--red-tint); color: var(--red-ink); font-size: var(--t-15); }
.errorbox ul { margin: var(--s1) 0 0; padding-left: 1.2em; }
.errorbox a { color: inherit; font-weight: 600; }

/* Auswahl als Zeilen (Größe, Extras, Zahlungsart, Zeitpunkt) */
.opts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--paper); }
.opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border-top: 1px solid var(--line); cursor: pointer; transition: background-color 150ms ease; }
.opt:first-child { border-top: 0; }
.opt:hover { background: var(--paper-2); }
.opt > span { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); min-width: 0; }
.opt b { font-weight: 600; }
.opt small { color: var(--ink-3); font-size: var(--t-13); margin-left: 6px; }
.opt em { font-style: normal; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-size: var(--t-15); }
/* Kasse: lange Zusätze („gerade geschlossen“, „Tag und Uhrzeit wählen“) rutschen auf schmalen Handys in die nächste Zeile */
.checkout .opt > span { flex-wrap: wrap; row-gap: 2px; }
.checkout .opt em { margin-left: auto; }
.opt:has(input:checked) { background: var(--red-tint); }
.opt:has(input:checked) b, .opt:has(input:checked) > span { color: var(--ink); }
.opt:has(input:disabled) { cursor: not-allowed; opacity: .5; }
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }
.opt input:focus-visible { outline: none; }
.opts--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.opts--grid .opt { border-top: 1px solid var(--line); }
.opts--row { display: flex; flex-wrap: wrap; gap: var(--s2); border: 0; background: none; overflow: visible; }
.opts--row .opt { border: 1px solid var(--line); border-radius: 12px; }

/* Mengen-Stepper */
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); }
.stepper button { display: grid; place-items: center; width: 44px; height: 42px; border: 0; background: none; color: var(--ink); border-radius: var(--r-pill); transition: background-color 150ms ease; }
.stepper button:hover { background: var(--paper-3); }
.stepper button .i { width: 18px; height: 18px; }
.stepper > span, .stepper output { min-width: 2ch; text-align: center; font: 700 var(--t-18)/1 var(--font-sign); }

/* Summen */
.sumrow { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); padding: 4px 0; font-size: var(--t-15); }
.sumrow > span:last-child { white-space: nowrap; font-weight: 600; }
.sumrow--discount { color: var(--green); }
.sumrow--total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font: 700 var(--t-20)/1.2 var(--font-sign); }
.sumrow--total > span:last-child { font-weight: 700; }

/* Etiketten an Gerichten */
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: var(--t-13); font-weight: 600; white-space: nowrap; }
.tag .i { width: 15px; height: 15px; }
.tag--veg { color: var(--veg); }
.tag--hot { color: var(--red-ink); }
.tag--hot .i + .i { margin-left: -5px; }
.tag--age { color: var(--amber); }
.tag--out { color: var(--red-ink); }
.tag--phone { color: var(--red-ink); }

/* ---------- Kopfzeile ---------- */
.topbar { background: var(--paper); border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; align-items: center; gap: var(--s3); max-width: 1440px; min-height: var(--topbar-h); margin: 0 auto; padding: 8px var(--gutter); }
.topbar__logo { flex: none; display: block; border-radius: 6px; }
.topbar__logo img { width: 58px; height: auto; }
.topbar__phone { display: none; align-items: center; gap: 6px; margin-left: auto; color: var(--ink); text-decoration: none; font: 700 var(--t-20)/1 var(--font-sign); letter-spacing: .01em; white-space: nowrap; min-height: 44px; }
.topbar__phone .i { color: var(--red-mark); }
.topbar__phone:hover { color: var(--red-ink); }
.topbar__cart { position: relative; display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--paper); color: var(--ink); }
.topbar__cart .i { width: 22px; height: 22px; }
.topbar__count { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--ink-3); color: var(--paper); font: 700 var(--t-13)/1 var(--font-text); }
.topbar__cart.has-items { border-color: var(--red-mark); color: var(--red-mark); }
.topbar__cart.has-items .topbar__count { background: var(--red); color: #fff; }
.modeswitch + .topbar__cart { margin-left: auto; }
@media (min-width: 720px) {
  .topbar__logo img { width: 72px; }
  .topbar__phone { display: inline-flex; }
  .topbar__phone + .topbar__cart { margin-left: var(--s2); }
}
@media (min-width: 1024px) { .page-home .topbar__cart { display: none; } }
.topbar--sub .topbar__phone--always { display: inline-flex; font-size: var(--t-18); }
.topbar--sub .btn { margin-left: var(--s2); }
/* Schmal nur das Symbol – die Nummer bleibt für Bildschirmleser lesbar, die Tippfläche 44 px breit */
@media (max-width: 479px) {
  .topbar--sub .topbar__phone { position: relative; min-width: 44px; justify-content: center; }
  .topbar--sub .topbar__phone span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Umschalter Lieferung / Abholung: Mulde mit zwei Segmenten */
.modeswitch { display: inline-grid; grid-template-columns: 1fr 1fr; flex: none; margin: 0; padding: 3px; border: 0; border-radius: var(--r-pill); background: var(--paper-3); min-width: 0; }
.modeswitch__opt { position: relative; display: block; }
.modeswitch__opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.modeswitch__opt span { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 12px; border-radius: var(--r-pill); font: 600 var(--t-15)/1 var(--font-text); color: var(--ink-2); white-space: nowrap; transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease; }
.modeswitch__opt span .i { width: 18px; height: 18px; }
.modeswitch__opt input:checked + span { background: var(--raised); color: var(--ink); box-shadow: 0 1px 3px rgba(31, 26, 23, .18); }
.modeswitch__opt input:checked + span .i { color: var(--red-mark); }
.modeswitch__opt input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 1px; }
@media (hover: hover) and (pointer: fine) { .modeswitch__opt:hover input:not(:checked) + span { color: var(--ink); } }
@media (max-width: 399px) { .topbar .modeswitch__opt span .i { display: none; } .topbar .modeswitch__opt span { padding: 0 10px; } }

/* Hinweisband (Pause, eigener Hinweis, letzte Bestellung) */
.notice { padding: 10px var(--gutter); background: var(--amber-tint); color: var(--amber-tint-ink); border-bottom: 1px solid var(--amber-rim); text-align: center; font-size: var(--t-15); font-weight: 500; }
.notice a { color: inherit; font-weight: 700; }
.notice.is-alert { background: var(--red-tint); color: var(--red-ink); border-color: var(--red-rim); }
.notice--inline { margin: var(--s4) 0; border: 1px solid var(--amber-rim); border-radius: 12px; text-align: left; }

/* ---------- Seitenraster: Speisekarte + Warenkorb-Spalte ---------- */
.layout { max-width: 1440px; margin: 0 auto; }
.layout__main { min-width: 0; padding: 0 var(--gutter); }
.cart-host { display: none; }
@media (min-width: 1024px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) var(--cart-w); align-items: start; }
  .layout__main { padding: 0 var(--s6) 0 var(--gutter); }
  .cart-host { display: block; position: sticky; top: 0; height: 100vh; height: 100dvh; border-left: 1px solid var(--line); background: var(--paper); }
}

/* ---------- Restaurant-Kopf ---------- */
.store { position: relative; padding-bottom: var(--s5); }
/* Banner: nur das Holz der gedruckten Karte (Wood062 von ambientCG, CC0, auf das Holz der Karte gefärbt,
   Vorlage Werbung/Banner/fotos/holz-karte.jpg), das Logo in der Mitte, rechts der runde Abhol-Aufkleber.
   Schatten warm und hell, keine schwarzen Stellen (Wunsch des Inhabers). */
.store__banner { position: relative; display: grid; place-items: center; height: 150px; margin: 0 calc(-1 * var(--gutter)); overflow: hidden; background: #6f593e url(/img/holz-karte-1200.jpg) 50% 50% / cover no-repeat; }
.store__logo { width: 136px; height: auto; filter: drop-shadow(0 3px 6px rgba(60, 34, 12, .45)); }
/* Abhol-Aufkleber: Schrift im SVG (viewBox 120), wächst mit dem Aufkleber mit und hält überall
   Abstand zum gestrichelten Ring; „ca. −20 %“ steht mittig auf einer Linie (08.11.2026). */
.stamp {
  position: absolute; right: 16px; top: 50%; z-index: 1;
  width: 92px; height: 92px; margin: 0; transform: translateY(-50%) rotate(-12deg);
  filter: drop-shadow(0 6px 10px rgba(70, 42, 16, .4));
}
.stamp__bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.stamp__text { font-family: var(--font-sign); font-weight: 700; }
/* Sehr schmale Handys: Logo etwas nach links, damit der Aufkleber es nicht verdeckt */
@media (max-width: 379px) { .store__logo { width: 126px; margin-right: 84px; } }
.store__body { margin-top: var(--s4); display: grid; gap: var(--s2); }
.store__name { font: 700 var(--t-30)/1.05 var(--font-sign); letter-spacing: .005em; }
.store__kitchen { color: var(--ink-2); font-size: var(--t-15); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 0; padding: 0; list-style: none; font-size: var(--t-15); color: var(--ink-2); }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts .i { width: 17px; height: 17px; color: var(--ink-3); }
.facts__state { font-weight: 600; color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); flex: none; }
.facts__state.is-open { color: var(--green); }
.facts__state.is-open .dot { background: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.facts__state.is-closed { color: var(--red-ink); }
.facts__state.is-closed .dot { background: var(--red-ink); }
.facts__state.is-paused { color: var(--amber); }
.facts__state.is-paused .dot { background: var(--amber); }
.store__actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.store__actions .btn { min-height: 44px; }
.store__actions .btn--call { font: 700 var(--t-18)/1 var(--font-sign); letter-spacing: .01em; }
.store__note { font-size: var(--t-15); color: var(--ink-2); }
@media (min-width: 720px) {
  .store { padding-top: var(--s4); }
  .store__banner { height: 240px; margin: 0; border-radius: 18px; background-image: url(/img/holz-karte-2000.jpg); }
  .store__logo { width: 290px; }
  .stamp { right: 48px; width: 136px; height: 136px; }
  .store__body { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--s2) var(--s5); margin-top: var(--s4); }
  .store__name { font-size: var(--t-40); grid-column: 1; }
  .store__kitchen, .facts, .store__note { grid-column: 1; }
  .store__actions { grid-column: 2; grid-row: 1 / span 3; align-self: start; margin-top: 0; }
}

/* ---------- Leiste mit Suche und Kategorien (bleibt oben stehen) ---------- */
.menubar { position: sticky; top: 0; z-index: 20; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 0; background: var(--glass); border-bottom: 1px solid var(--line); }
.menubar.is-stuck { box-shadow: 0 10px 18px -16px rgba(31, 26, 23, .55); }
@supports (backdrop-filter: blur(8px)) { .menubar { background: var(--glass-blur); backdrop-filter: saturate(1.4) blur(10px); } }
.menubar__row { display: flex; align-items: center; gap: var(--s2); }
.menubar__quick { display: none; gap: var(--s2); }
.search { position: relative; flex: 1; min-width: 0; }
.search input[type="search"] { min-height: 44px; padding: 0 44px 0 42px; border-radius: var(--r-pill); background: var(--paper-2); border-color: var(--line); -webkit-appearance: none; appearance: none; }
.search input[type="search"]::-webkit-search-cancel-button { display: none; }
.search__icon { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--ink-3); pointer-events: none; }
.search__clear { position: absolute; right: 0; top: 0; width: 44px; height: 44px; border: 0; background: none; color: var(--ink-2); display: grid; place-items: center; border-radius: 50%; }
.search__clear .i { width: 18px; height: 18px; }
.filterbtn { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); background: var(--paper); font: 600 var(--t-15)/1 var(--font-text); }
.filterbtn .i { width: 19px; height: 19px; }
.filterbtn.is-active { border-color: var(--ink); }
@media (max-width: 379px) { .filterbtn__text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .filterbtn { padding: 0 11px; } }
@media (min-width: 900px) { .menubar__quick { display: flex; } }

.catnav { position: relative; margin: 0 calc(-1 * var(--gutter)); }
.catnav__list { display: flex; gap: 4px; margin: 0; padding: 8px var(--gutter) 9px; list-style: none; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 40px), transparent); }
.catnav__list::-webkit-scrollbar { display: none; }
.catnav__list li.is-empty { display: none; }
.catnav__list a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); color: var(--ink-2); text-decoration: none; white-space: nowrap; font: 600 var(--t-15)/1 var(--font-text); transition: background-color 150ms ease, color 150ms ease; }
.catnav__list a:hover { background: var(--paper-3); color: var(--ink); }
.catnav__list a[aria-current="true"] { background: var(--ink); color: var(--paper); }
.cn__n { font-size: var(--t-12); font-weight: 500; opacity: .75; }

/* ---------- Speisekarte ---------- */
.menu__head { display: grid; gap: 4px; margin: var(--s4) 0 0; }
.menu__result { font-weight: 600; font-size: var(--t-15); }
.menu__result:empty { display: none; }
.menu__print { justify-content: flex-start; min-height: 40px; padding: 0; gap: var(--s2); white-space: normal; text-align: left; line-height: 1.25; font-size: var(--t-15); }
.menu__print .i { color: var(--red-mark); }
.menu__printsize { font-size: var(--t-13); font-weight: 500; color: var(--ink-3); white-space: nowrap; }

.kat, .beliebt { margin-top: var(--s6); }
.kat.is-empty, .beliebt.is-hidden { display: none; }
.kat__head { padding-top: var(--s3); border-top: 3px solid var(--red-logo); margin-bottom: var(--s2); }
.kat__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.kat__title { font: 700 var(--t-24)/1.1 var(--font-sign); text-transform: uppercase; letter-spacing: .015em; color: var(--red-ink); }
.kat__count { font: 500 var(--t-15)/1 var(--font-text); color: var(--ink-3); text-transform: none; letter-spacing: 0; vertical-align: 2px; }
.kat__sub { margin-top: 2px; color: var(--ink-2); font-size: var(--t-15); }
.kat__sizes { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; font-size: var(--t-13); color: var(--ink-3); }
.kat__sizes b { color: var(--ink-2); font-weight: 600; }
.kat__notes { margin: 6px 0 0; padding-left: 1.1em; font-size: var(--t-13); color: var(--ink-3); }
/* „LP / AP“ wie auf der Karte: zeigt, welche Preise gerade gelten */
.kat__mode { flex: none; display: inline-flex; align-items: center; gap: 6px; font: 600 var(--t-13)/1 var(--font-text); color: var(--red-ink); white-space: nowrap; }
.kat__mode abbr { display: inline-grid; place-items: center; height: 22px; padding: 0 6px; border: 1.5px solid var(--red-ink); border-radius: 5px; font: 700 var(--t-13)/1 var(--font-sign); letter-spacing: .04em; }
@media (min-width: 720px) { .kat__title { font-size: var(--t-30); } }

/* Gericht: Zeile am Handy, Karte ab 720 px */
.kat__list { display: grid; grid-template-columns: minmax(0, 1fr); }
.dish {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) 44px; column-gap: var(--s3); row-gap: 10px; align-items: start;
  padding: var(--s4) 0; border-bottom: 1px solid var(--line);
}
.dish__plate { grid-column: 1; grid-row: 1; margin-top: 1px; }
.dish__main { grid-column: 2; grid-row: 1; min-width: 0; }
.dish__plus { grid-column: 3; grid-row: 1; }
.dish__sizes, .dish__extras { grid-column: 1 / -1; position: relative; z-index: 1; }
.dish__name { font: 700 var(--t-18)/1.2 var(--font-sign); letter-spacing: .005em; }
.dish__open { all: unset; cursor: pointer; }
.dish__open::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.dish__open:focus-visible { outline: none; }
.dish:has(.dish__open:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-card); }
@media (hover: hover) and (pointer: fine) { .dish:hover .dish__name { text-decoration: underline; text-decoration-color: var(--red-logo); text-decoration-thickness: 2px; text-underline-offset: 3px; } }
.dish__price { margin-top: 2px; font: 600 var(--t-15)/1.3 var(--font-text); color: var(--ink); }
.dish__ab { font-weight: 400; color: var(--ink-3); }
.dish__desc { margin-top: 4px; font-size: var(--t-15); line-height: 1.4; color: var(--ink-2); }
.dish__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 6px; font-size: var(--t-13); color: var(--ink-3); }
.dish__meta:empty { display: none; }
.dish__plus {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--paper); color: var(--red-mark);
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out);
}
.dish__plus .i { width: 22px; height: 22px; }
.dish__plus:hover { background: var(--red); border-color: var(--red); color: #fff; }
.dish__plus:active:not(:disabled) { transform: scale(.94); }
.dish__plus:disabled { opacity: .4; cursor: not-allowed; }

/* Größen wie die Preisspalten der gedruckten Karte – ein Tipp legt in den Warenkorb */
.dish__sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.dish__sizes--free { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.price {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 50px; padding: 5px 2px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); background: var(--paper); color: var(--ink); cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms var(--ease-out);
}
/* Lange Größen („Doppel (2 × Käse, 2 × Fleisch)“ bei den Burgern) brechen um statt abgeschnitten zu werden */
.price__size { font: 600 var(--t-13)/1.1 var(--font-sign); letter-spacing: .02em; color: var(--ink-3); max-width: 100%; padding: 0 2px; text-align: center; text-wrap: balance; }
.price__val { font: 700 var(--t-18)/1.05 var(--font-sign); font-variant-numeric: tabular-nums; display: inline-block; }
.price:hover:not(:disabled) { border-color: var(--red); background: var(--red-tint); }
.price:hover:not(:disabled) .price__val { color: var(--red-ink); }
.price:active:not(:disabled) { transform: scale(.96); }
.price:disabled { opacity: .45; cursor: not-allowed; }
.price--none { border-style: dashed; border-color: var(--line); color: var(--ink-3); cursor: default; }
.amount { display: inline-block; }

/* „+ Extras & Zutaten“: gelbes Band wie die Extras 45–48 auf der Karte */
.dish__extras {
  justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px 0 10px;
  border: 1.5px solid var(--yellow-rim); border-radius: var(--r-pill); background: var(--yellow-tint); color: var(--ink);
  font: 600 var(--t-15)/1 var(--font-text); cursor: pointer; transition: background-color 150ms ease, border-color 150ms ease;
}
.dish__extras .i { width: 18px; height: 18px; color: var(--red-mark); }
.dish__extras:hover { background: var(--yellow-tint-2); border-color: var(--yellow-rim-2); }
.dish.is-soldout .dish__main, .dish.is-soldout .dish__plate { opacity: .55; }
.dish[hidden] { display: none; }

@media (min-width: 720px) {
  .kat__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); margin-top: var(--s3); }
  .dish { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); transition: border-color 150ms ease, box-shadow 200ms ease; }
  .dish:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
  .dish__name { font-size: var(--t-20); }
}

/* Bereich „Beliebt“: waagerecht wischbar */
.pop { display: flex; gap: var(--s3); margin: var(--s3) calc(-1 * var(--gutter)) 0; padding: 2px var(--gutter) 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); }
.pop li { flex: 0 0 min(76%, 280px); scroll-snap-align: start; }
.pop__card { position: relative; /* hält unsichtbare Vorlese-Texte in der wischbaren Reihe */ display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s3); align-items: start; width: 100%; height: 100%; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); text-align: left; transition: border-color 150ms ease, box-shadow 200ms ease; }
.pop__card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.pop__text { display: grid; gap: 2px; min-width: 0; }
.pop__name { font: 700 var(--t-18)/1.15 var(--font-sign); }
.pop__cat { font-size: var(--t-13); color: var(--ink-3); }
.pop__price { font-weight: 600; font-size: var(--t-15); }
.pop__plus { width: 22px; height: 22px; color: var(--red-mark); }
/* Computer: kein seitliches Wischen mit der Maus – „Beliebt“ als Raster */
@media (min-width: 720px) {
  .pop { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin: var(--s3) 0 0; padding: 0; overflow: visible; scroll-snap-type: none; }
}

.menu__empty { margin: var(--s6) 0; padding: var(--s7) var(--s4); border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); text-align: center; color: var(--ink-2); display: grid; gap: var(--s2); justify-items: center; }
.menu__emptytitle { font: 700 var(--t-20)/1.2 var(--font-sign); color: var(--ink); }

/* ---------- Info-Bereich (auch im Info-Fenster) ---------- */
.info { display: grid; gap: var(--s5); margin: var(--s7) calc(-1 * var(--gutter)) 0; padding: var(--s6) var(--gutter) var(--s7); background: var(--paper-2); border-top: 1px solid var(--line); }
.info__block { min-width: 0; }
.info__title { font: 700 var(--t-24)/1.1 var(--font-sign); margin-bottom: var(--s3); }
.info__intro { margin-bottom: var(--s3); color: var(--ink-2); font-size: var(--t-15); max-width: 70ch; }
.info__legal { font-size: var(--t-15); }
@media (min-width: 900px) { .info { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); } .info__block--wide, .info__legal { grid-column: 1 / -1; } }
[data-info-slot] .info { margin: 0; padding: 0; background: none; border: 0; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
[data-info-slot] .info__block--wide { grid-column: auto; }

.openline { display: flex; align-items: center; gap: 8px; margin-bottom: var(--s3); font-weight: 600; }
.openline::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink-3); }
.openline.is-open { color: var(--green); }
.openline.is-open::before { background: var(--green); }
.openline.is-closed { color: var(--red-ink); }
.openline.is-closed::before { background: var(--red-ink); }
.openline:empty { display: none; }
.hours { width: 100%; border-collapse: collapse; font-size: var(--t-15); background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.hours th, .hours td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.hours td { text-align: right; font-weight: 600; }
.hours th { white-space: nowrap; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today { background: var(--yellow-tint); }
.hours tr.is-today th { font-weight: 600; }
.hours + .muted, .info__block > .muted { margin-top: var(--s3); font-size: var(--t-15); }
.specialdays { margin: var(--s3) 0 0; padding: var(--s3) var(--s4) var(--s3) 2em; border-radius: 12px; background: var(--amber-tint); color: var(--amber-tint-ink); font-size: var(--t-15); }
.contact { font-style: normal; line-height: 1.5; margin-bottom: var(--s3); }
.contact__list { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: 6px; }
.contact__list li { display: flex; align-items: center; gap: 8px; }
.contact__list .i { color: var(--ink-3); width: 18px; height: 18px; }
.contact__complaint { font-size: var(--t-15); margin-bottom: var(--s4); }
.mapbox { padding: var(--s4); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.mapbox__text { display: flex; gap: 10px; align-items: flex-start; font-size: var(--t-15); color: var(--ink-2); }
.mapbox__text .i { color: var(--ink-3); width: 22px; height: 22px; margin-top: 1px; }
.mapbox__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s3); }
.mapbox iframe { display: block; width: 100%; height: 320px; border: 0; border-radius: 10px; }
.zones { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin-bottom: var(--s3); }
.zone { padding: var(--s4); border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.zone__head { display: grid; gap: 2px; margin-bottom: var(--s2); }
.zone__title { font: 700 var(--t-24)/1.1 var(--font-sign); }
.zone__title .muted { font: 400 var(--t-13)/1.2 var(--font-text); display: block; }
.zone__fee { font-weight: 600; font-size: var(--t-15); color: var(--red-ink); }
.zone__places { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: var(--t-15); color: var(--ink-2); }
.zone__plz { display: inline-block; min-width: 3.4em; font-weight: 600; color: var(--ink); }
.legend__grid { display: grid; gap: var(--s5); }
.legend__grid h3 { font: 700 var(--t-20)/1.2 var(--font-sign); margin-bottom: var(--s2); }
.legend__list { margin: 0; display: grid; gap: 4px; font-size: var(--t-15); }
.legend__list > div { display: grid; grid-template-columns: 2.4em minmax(0, 1fr); gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.legend__list dt { font: 700 var(--t-16)/1.4 var(--font-sign); color: var(--red-ink); }
.legend__list dd { margin: 0; }
.legend__notes { margin-top: var(--s4); display: grid; gap: var(--s2); font-size: var(--t-13); color: var(--ink-2); max-width: 80ch; }
@media (min-width: 720px) { .legend__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Warenkorb ---------- */
.cart { display: flex; flex-direction: column; height: 100%; min-height: 0; background: var(--paper); }
.cart__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4) var(--s5) var(--s2); }
.cart__title { font: 700 var(--t-30)/1 var(--font-sign); }
.cart-host .cart__close { display: none; }
.cart__mode { padding: 0 var(--s5) var(--s3); display: grid; gap: var(--s3); border-bottom: 1px solid var(--line); }
.cart__mode .modeswitch { width: 100%; }
.cart__zone { margin: 0; }
.cart__zone .field { margin-bottom: 0; }
.cart__zone .ortwahl__msg:not(:empty) { margin: var(--s2) 0 0; }
.cart__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s2) var(--s5) var(--s4); }
.cart__empty { padding: var(--s5) 0 var(--s3); color: var(--ink-3); font-size: var(--t-15); }
.cart__voucher { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 var(--s3); padding: var(--s3); border-radius: 12px; background: var(--green-tint); color: var(--green); font-size: var(--t-15); }
.cart__lines { list-style: none; margin: 0; padding: 0; }
.cart__line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.cart__name { display: flex; align-items: flex-start; gap: 8px; font-weight: 600; font-size: var(--t-15); line-height: 1.3; }
.cart__name .plate { margin-top: -1px; }
.cart__price { font-weight: 600; white-space: nowrap; font-size: var(--t-15); }
.cart__details { grid-column: 1 / -1; font-size: var(--t-13); color: var(--ink-3); padding-left: 42px; }
.cart__ctrls { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s2); padding-left: 42px; flex-wrap: wrap; }
.cart__ctrls .stepper button { width: 40px; height: 38px; }
.cart__msg { grid-column: 1 / -1; margin: 0 0 var(--s2); font-size: var(--t-13); color: var(--ink-2); }
.cart__msg.is-error { color: var(--red-ink); font-weight: 600; }
.cart__foot { padding: var(--s3) var(--s5) calc(var(--s4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.cart__foot .btn--primary { margin-top: var(--s3); justify-content: space-between; }
/* Fortschritt bis zum Mindestbestellwert */
.minorder { margin-bottom: var(--s3); font-size: var(--t-15); }
.minorder__text { display: block; margin-bottom: 6px; }
.minorder__bar { position: relative; height: 8px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.minorder__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--red); transform-origin: left center; transform: scaleX(0); transition: transform 240ms var(--ease-out), background-color 200ms ease; }
.minorder.is-ok .minorder__fill { background: var(--green); }
.minorder__ok { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 600; }
.minorder__ok .i { width: 18px; height: 18px; }

/* Warenkorb als Vollbild-Fenster (Handy) bzw. Seitenblatt (Tablet) */
.sheet { padding: 0; border: 0; margin: 0; width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh; background: var(--paper); color: var(--ink); }
.sheet[open] { display: flex; flex-direction: column; }
.sheet .cart { flex: 1; }
.sheet::backdrop { background: var(--backdrop); }
@media (min-width: 720px) { .sheet { margin: 0 0 0 auto; width: min(440px, 100%); box-shadow: var(--shadow-2); } }
/* Handy quer (wenig Höhe): Kopf, Inhalt und Fuß zusammen hätten keinen Platz, der Inhalt schrumpfte auf einen
   schmalen Streifen. Hier scrollt das ganze Fenster am Stück, der Knopf unten bleibt stehen. */
@media (max-height: 500px) {
  .dlg[open], .sheet[open] { overflow-y: auto; overscroll-behavior: contain; }
  .dlg > form, .dish-form, .sheet .cart { flex: none; height: auto; min-height: auto; }
  .dlg__body, .co-body, .cart__body { flex: none; min-height: auto; overflow: visible; }
  .dlg__foot, .co-foot { position: sticky; bottom: 0; z-index: 2; }
}
@media (max-height: 500px) and (min-width: 720px) { .dlg[open]:not(.dlg--checkout) { max-height: calc(100dvh - 16px); } }

/* Feste Leiste unten am Handy: Anrufen + Warenkorb */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: flex; gap: var(--s2); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgba(31, 26, 23, .4); }
.actionbar__call { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--ink); border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.actionbar__call .i { color: var(--red-mark); width: 20px; height: 20px; }
.actionbar__call:hover { color: var(--ink); background: var(--paper-2); }
.actionbar__cart { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border: 0; border-radius: 12px; background: var(--paper-3); color: var(--ink-3); text-align: left; font-weight: 600; transition: background-color 200ms ease, color 200ms ease; }
.actionbar__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actionbar__count { font-weight: 400; font-size: var(--t-15); white-space: nowrap; }
/* Schmale Handys: Die Artikelzahl steht schon am Warenkorb oben rechts – hier zählt der Platz für Wort und Betrag */
@media (max-width: 429px) { .actionbar__count { display: none; } }
.actionbar__count:not(:empty)::before { content: '· '; }
.actionbar__sum { margin-left: auto; font: 700 var(--t-20)/1 var(--font-sign); white-space: nowrap; display: inline-block; }
.actionbar__cart.has-items { background: var(--red); color: #fff; }
.page-home { padding-bottom: calc(var(--actionbar-h) + env(safe-area-inset-bottom)); }
@media (max-width: 359px) { .actionbar__calltext { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
@media (min-width: 1024px) { .actionbar { display: none; } .page-home { padding-bottom: 0; } }

/* ---------- Fenster (Gericht, Filter, Info, Kasse) ---------- */
.dlg { padding: 0; border: 0; margin: 0; width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh; background: var(--paper); color: var(--ink); overscroll-behavior: contain; }
.dlg[open] { display: flex; flex-direction: column; }
.dlg::backdrop { background: var(--backdrop); }
.dlg > form, .dish-form { display: flex; flex-direction: column; flex: 1; min-height: 0; margin: 0; }
.dlg__head { flex: none; display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3) var(--s3) var(--s3) var(--s5); border-bottom: 1px solid var(--line); }
.dlg__head > div { flex: 1; min-width: 0; padding-top: 8px; }
.dlg__head .iconbtn { margin-left: auto; }
.dlg__title { font: 700 var(--t-24)/1.15 var(--font-sign); }
.dlg__sub { margin-top: 4px; color: var(--ink-2); font-size: var(--t-15); }
.dlg__body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--s4) var(--s5) var(--s5); }
.dlg__foot { flex: none; padding: var(--s3) var(--s5) calc(var(--s3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--paper); }
.dlg__foot .btn { width: 100%; }
.dlg__foot--split { display: flex; gap: var(--s2); }
.dlg__foot--split .btn { width: auto; white-space: normal; text-align: center; }
.dlg__foot--split .btn--primary { flex: 1; }
@media (min-width: 720px) {
  .dlg { width: min(560px, calc(100% - 48px)); height: auto; max-height: min(880px, calc(100dvh - 64px)); margin: auto; border-radius: var(--r-dialog); box-shadow: var(--shadow-2); }
  .dlg--info { width: min(760px, calc(100% - 48px)); }
}

/* Kalender an der Kasse: am Handy ein Blatt von unten, ab 720 px ein kleines Fenster in der Mitte */
.dlg--kalender { height: fit-content; margin-top: auto; border-radius: var(--r-dialog) var(--r-dialog) 0 0; }
/* Ohne Flex: Auf dem iPhone rechnete Safari die Höhe sonst viel zu klein, und nur eine Woche war zu sehen */
.dlg--kalender[open] { display: block; overflow-y: auto; }
.dlg--kalender .dlg__body { overflow-y: visible; }
@media (min-width: 720px) { .dlg--kalender { width: min(400px, calc(100% - 48px)); margin: auto; border-radius: var(--r-dialog); } }
.dlg--kalender .dlg__head { align-items: center; }
.dlg--kalender .dlg__head > div { padding-top: 0; }
.dlg--kalender .dlg__body { padding: var(--s3) var(--s3) calc(var(--s4) + env(safe-area-inset-bottom)); }
.kal__leiste { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s2); }
.kal__monat { margin: 0; font: 700 var(--t-20)/1.2 var(--font-sign); }
.kal__zurueck .i { transform: rotate(90deg); }
.kal__weiter .i { transform: rotate(-90deg); }
.kal__leiste .iconbtn:disabled { opacity: .45; cursor: not-allowed; background: transparent; }
.kal__tabelle { width: 100%; border-collapse: collapse; table-layout: fixed; }
.kal__tabelle th { padding: 0 0 var(--s1); font: 600 var(--t-13)/1.2 var(--font-text); color: var(--ink-3); text-align: center; }
.kal__tabelle td { padding: 1px; }
.kal__tag { display: block; width: 100%; min-height: 44px; padding: 0; border: 1.5px solid transparent; border-radius: var(--r-btn); background: transparent; color: var(--ink); font: 700 var(--t-18)/1 var(--font-sign); transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease; }
.kal__tag:focus-visible { position: relative; }
.kal__tag.is-heute { background: var(--yellow-tint); border-color: var(--yellow-rim); }
@media (hover: hover) and (pointer: fine) {
  .kal__tag:not([aria-disabled="true"]):hover { background: var(--red-tint); border-color: var(--red-ink); color: var(--red-ink); }
}
.kal__tag[aria-pressed="true"], .kal__tag[aria-pressed="true"]:hover { background: var(--red); border-color: var(--red); color: #fff; }
.kal__tag[aria-disabled="true"] { background: transparent; border-color: transparent; color: var(--ink-3); opacity: .45; cursor: not-allowed; }
.kal__tag.is-heute[aria-disabled="true"] { border-color: var(--line-strong); }
.kal__hinweis { margin: var(--s3) var(--s2) 0; font-size: var(--t-13); line-height: 1.4; color: var(--ink-3); }

/* Gericht-Fenster */
.dish-dlg__head { align-items: center; }
.dish-dlg__head > div { padding-top: 0; }
.optgroup { margin: 0 0 var(--s5); padding: 0; border: 0; min-width: 0; }
.optgroup > legend { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; width: 100%; padding: 0; margin-bottom: var(--s2); font: 700 var(--t-20)/1.2 var(--font-sign); }
.optgroup__nr { font: 600 var(--t-13)/1 var(--font-text); color: var(--ink-3); }
.req { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-pill); font: 600 var(--t-13)/1 var(--font-text); white-space: nowrap; }
.req--must { background: var(--red-tint); color: var(--red-ink); box-shadow: inset 0 0 0 1.5px var(--red-rim); }
.req--opt { background: var(--paper-3); color: var(--ink-2); }
.req--ok { background: var(--green-tint); color: var(--green); box-shadow: none; }
.optgroup__hint { margin: -2px 0 var(--s2); font-size: var(--t-13); color: var(--ink-3); }
/* Hälfte-Hälfte: Überschrift je Hälfte, mit Haarlinie davor, damit die Extras klar zu einer Hälfte gehören */
.dish-half__title { margin: 0 0 var(--s3); padding-top: var(--s4); border-top: 1px solid var(--line); font: 700 var(--t-24)/1.15 var(--font-sign); }
/* Hälfte-Hälfte: Extras je Hälfte im Klappmenü (ohne Hälfte-Hälfte flach und offen, Kopf versteckt) */
.fold { margin: 0 0 var(--s5); border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--paper-2); }
.fold > summary { display: flex; align-items: center; gap: var(--s2); min-height: 52px; padding: 8px 14px; cursor: pointer; list-style: none; border-radius: var(--r-card); }
.fold > summary::-webkit-details-marker { display: none; }
.fold__title { display: flex; align-items: baseline; gap: var(--s2); flex-wrap: wrap; flex: 1; font: 700 var(--t-20)/1.2 var(--font-sign); }
.fold__count { padding: 3px 9px; border-radius: var(--r-pill); background: var(--green-tint); color: var(--green); font: 600 var(--t-13)/1.3 var(--font-text); white-space: nowrap; }
.fold__count:empty { display: none; }
.fold > summary .i { flex: none; width: 18px; height: 18px; color: var(--ink-3); transition: transform 200ms var(--ease-out); }
.fold[open] > summary .i { transform: rotate(180deg); }
.fold__body { padding: var(--s2) 14px var(--s1); border-top: 1px solid var(--line); }
.fold__body > .optgroup:last-child { margin-bottom: var(--s3); }
.fold--flat { margin: 0; border: 0; border-radius: 0; background: none; }
.fold--flat > summary { display: none; }
.fold--flat > .fold__body { padding: 0; border: 0; }
.fold--flat > .fold__body > .optgroup:last-child { margin-bottom: var(--s5); }
@media (hover: hover) and (pointer: fine) { .fold:not(.fold--flat) > summary:hover { background: var(--paper-3); } }
.optgroup.is-invalid .opts { box-shadow: 0 0 0 2px var(--red-ink); }
.optgroup .field__err { margin-top: 6px; }
.qtyrow { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin: var(--s2) 0 var(--s4); }
.qtyrow .label { font: 700 var(--t-20)/1.2 var(--font-sign); }
.codes { margin-top: var(--s2); border-top: 1px solid var(--line); }
.codes summary { display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; font-weight: 600; font-size: var(--t-15); list-style: none; }
.codes summary::-webkit-details-marker { display: none; }
.codes summary .i { width: 18px; height: 18px; color: var(--ink-3); transition: transform 200ms var(--ease-out); }
.codes[open] summary .i:last-child { transform: rotate(180deg); }
.codes-full { font-size: var(--t-15); color: var(--ink-2); line-height: 1.5; }
.codes__link { display: inline-block; margin-top: var(--s2); font-size: var(--t-15); font-weight: 600; }
.dish-dlg__submit { justify-content: space-between; }

/* Filter-Fenster */
.fgroup { margin: 0 0 var(--s5); padding: 0; border: 0; min-width: 0; }
.fgroup__label { padding: 0; margin-bottom: var(--s2); font: 700 var(--t-20)/1.2 var(--font-sign); }
.fgroup__hint { margin-top: var(--s2); font-size: var(--t-13); color: var(--ink-3); }
.fgroup .fgroup__hint:first-of-type { margin-top: 0; margin-bottom: var(--s2); }
.chips + .fgroup__hint { margin-top: var(--s2); }

/* ---------- Kasse: eine Seite mit nummerierten Abschnitten ---------- */
.dlg--checkout { width: 100%; max-width: 100%; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; background: var(--paper-2); box-shadow: none; }
.co-top { flex: none; background: var(--paper); border-bottom: 1px solid var(--line); }
.co-top__inner { display: flex; align-items: center; gap: var(--s3); max-width: 1120px; margin: 0 auto; padding: 8px var(--s3) 8px var(--gutter); min-height: 64px; }
.co-top__logo { width: 52px; height: auto; flex: none; }
.co-top__title { flex: 1; min-width: 0; font: 700 var(--t-24)/1.1 var(--font-sign); }
/* position: relative hält die unsichtbaren Hilfstexte (.vh) im scrollenden Teil. Ohne das wurde der ganze Dialog
   scrollbar, und ein Wisch auf Kopf oder Fuß schob die Kasse weg – zurück blieb eine leere Fläche. */
.co-body { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.co-grid { display: grid; gap: var(--s4); max-width: 1120px; margin: 0 auto; padding: var(--s4) var(--gutter) var(--s6); }
.co-main { display: grid; gap: var(--s4); min-width: 0; }
.costep { margin: 0; padding: var(--s4) var(--s4) var(--s2); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); min-width: 0; }
.costep > legend, .costep__title { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin: 0 0 var(--s4); font: 700 var(--t-24)/1.1 var(--font-sign); }
.costep > legend + * { clear: both; }
.costep__no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 var(--t-16)/1 var(--font-sign); flex: none; }
.costep .modeswitch { width: 100%; margin-bottom: var(--s4); }
.co-pickup { margin-bottom: var(--s4); color: var(--ink-2); }
.row2--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* Straßenvorschläge: über den Feldern darunter, 5,5 Zeilen hoch. Die halbe Zeile zeigt, dass beim Rollen noch mehr kommt. */
.row2--strasse { position: relative; }
.strassen { position: absolute; z-index: 5; left: 0; right: 0; max-height: calc(5.5 * 44px + 8px); margin: 0; padding: 4px; overflow-y: auto; overscroll-behavior: contain; list-style: none; background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: var(--r-btn); box-shadow: var(--shadow-1); }
.strassen li { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border-radius: 7px; font-size: var(--t-15); color: var(--ink-2); cursor: pointer; }
.strassen b { font-weight: 700; color: var(--ink); }
.strassen li[aria-selected="true"] { background: var(--red-tint); }
@media (hover: hover) and (pointer: fine) { .strassen li:hover { background: var(--red-tint); } }
.costep .opts { margin-bottom: var(--s4); }
.co-side { min-width: 0; }
.co-summary { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.co-summary__title { font: 700 var(--t-24)/1.1 var(--font-sign); margin-bottom: var(--s3); }
.co-lines { list-style: none; margin: 0 0 var(--s3); padding: 0 0 var(--s2); border-bottom: 1px solid var(--line); display: grid; gap: var(--s2); font-size: var(--t-15); }
.co-lines li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: start; }
.co-lines small { display: block; color: var(--ink-3); font-size: var(--t-13); }
.co-lines .qty { font-weight: 600; color: var(--ink-2); }
.co-foot { flex: none; background: var(--paper); border-top: 1px solid var(--line); }
.is-tippen .co-foot { display: none; }   /* Handy-Tastatur offen (checkout.js) */
.co-foot__inner { display: flex; align-items: center; gap: var(--s3); max-width: 1120px; margin: 0 auto; padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom)); }
.co-foot__total { display: none; }
/* Wie „Zur Kasse“ und „In den Warenkorb“: Text links, Betrag rechts. Reicht der Platz nicht, rutscht der Betrag in die zweite Zeile. */
.co-foot .btn { flex: 1; justify-content: space-between; flex-wrap: wrap; gap: 0 var(--s3); white-space: normal; text-align: left; }
.co-submit__sum { white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Der Knopftext wird beim Verlassen eines Feldes neu geschrieben (Betrag). Ein Tipp muss deshalb immer beim Knopf
   selbst ankommen, nicht beim ersetzten Text darin – sonst ginge der erste Tipp auf „bestellen“ verloren. */
[data-co-submit] > * { pointer-events: none; }
@media (max-width: 389px) { .co-foot .btn { padding: 4px 14px; font-size: var(--t-16); } }
.legal-hint { margin-top: var(--s3); font-size: var(--t-13); color: var(--ink-3); line-height: 1.45; }
.stampcard { margin-bottom: var(--s3); }
.stampcard .cart__msg { margin: 0; }
.voucher { margin: 0; }
.voucher__tipp { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s2); margin: 0 0 var(--s2); padding: var(--s2) var(--s3); border: 1px solid var(--amber-rim); border-radius: 12px; background: var(--amber-tint); color: var(--amber-tint-ink); font-size: var(--t-15); }
.voucher__tipp b { letter-spacing: .04em; }
.voucher__tipp .btn { margin-left: auto; }
.voucher__add summary { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }
.voucher__row { display: flex; gap: var(--s2); margin: var(--s2) 0; }
.voucher__row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.voucher__on { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--s3); padding: var(--s3); border-radius: 12px; background: var(--green-tint); color: var(--green); }
.voucher__code { display: inline-flex; align-items: center; gap: 6px; font: 700 var(--t-20)/1 var(--font-sign); letter-spacing: .04em; }
.voucher__text { flex: 1; min-width: 10em; font-size: var(--t-15); color: var(--ink-2); }
.ordertext { white-space: pre-wrap; font: 400 var(--t-15)/1.5 var(--font-text); padding: var(--s4); background: var(--paper-2); border-radius: 12px; }
@media (min-width: 1024px) {
  .co-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s5); padding-top: var(--s5); align-items: start; }
  .co-side { position: sticky; top: var(--s5); }
  .costep { padding: var(--s5) var(--s5) var(--s3); }
  .co-foot__inner { justify-content: flex-end; }
  .co-foot__total { display: block; margin-left: auto; font: 700 var(--t-24)/1 var(--font-sign); }
  .co-foot .btn { flex: 0 0 380px; }
}

/* ---------- Hinweis (Toast) – liegt über offenen Fenstern ---------- */
.toast {
  position: fixed; inset: auto auto calc(var(--actionbar-h) + 16px + env(safe-area-inset-bottom)) 50%; z-index: 60; margin: 0;
  display: flex; align-items: center; gap: var(--s3); width: max-content; max-width: min(520px, calc(100% - 24px)); padding: 12px 12px 12px 16px;
  border: 0; border-radius: 12px; background: var(--toast-bg); color: var(--toast-ink); font-size: var(--t-15); box-shadow: var(--shadow-2);
  opacity: 0; transform: translate(-50%, 12px); visibility: hidden;
  transition: opacity 220ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); visibility: visible; transition-delay: 0s; }
.toast:not([popover])[hidden] { display: none; }
.toast:not([popover]):not([hidden]) { opacity: 1; transform: translate(-50%, 0); visibility: visible; }
.toast button { flex: none; min-height: 36px; padding: 0 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; background: none; color: var(--yellow); font-weight: 600; }
.toast button:hover { background: rgba(255, 255, 255, .1); }
@media (min-width: 1024px) { .toast { bottom: 24px; } }

/* ---------- Unterseiten ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: var(--s6) var(--gutter) var(--s7); }
.prose h1 { font: 700 var(--t-40)/1.05 var(--font-sign); margin-bottom: var(--s4); }
.prose h2 { font: 700 var(--t-24)/1.15 var(--font-sign); margin: var(--s6) 0 var(--s2); }
.prose p, .prose ul { margin: 0 0 var(--s3); max-width: 70ch; }
.prose ul { padding-left: 1.2em; }
.section-title { font: 700 var(--t-30)/1.05 var(--font-sign); }

/* Statusseite */
.status-page { max-width: 720px; margin: 0 auto; padding: var(--s5) var(--gutter) var(--s7); display: grid; gap: var(--s4); }
.status-card { padding: var(--s5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); box-shadow: var(--shadow-1); }
.status-card__top { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.status-card__label { margin-top: 4px; font-size: var(--t-15); color: var(--ink-3); }
.status-card__state { font: 700 var(--t-30)/1.05 var(--font-sign); }
.status-card__state.is-cancel { color: var(--red-ink); }
.status-card__eta { margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: 12px; background: var(--yellow-tint); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); flex-wrap: wrap; }
.status-card__eta b { font: 700 var(--t-24)/1 var(--font-sign); }
/* Geld zurück bei stornierter Online-Zahlung: steht anstelle der Zeit-Box, grün sobald die Rückzahlung veranlasst ist */
.refund { margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: 12px; background: var(--green-tint); color: var(--ink); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px var(--s3); align-items: center; }
.refund__icon { width: 24px; height: 24px; color: var(--green); }
.refund__title, .refund__sum { font: 700 var(--t-24)/1.1 var(--font-sign); color: var(--green); }
.refund__sum { font-variant-numeric: tabular-nums; white-space: nowrap; }
.refund__text { grid-column: 2 / -1; font-size: var(--t-15); line-height: 1.4; }
.refund-note { margin-top: var(--s2); font-size: var(--t-15); font-weight: 600; line-height: 1.4; color: var(--green); }
.refund-note.is-pending { color: var(--amber); }
.refund.is-pending { background: var(--amber-tint); color: var(--amber-tint-ink); }
.refund.is-pending .refund__icon, .refund.is-pending .refund__title, .refund.is-pending .refund__sum { color: var(--amber); }
.steps { list-style: none; margin: var(--s5) 0 0; padding: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: var(--s3); align-items: start; padding-bottom: var(--s4); color: var(--ink-3); }
.steps li::before { content: ''; grid-column: 1; width: 18px; height: 18px; margin: 3px 0 0 5px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--paper); box-sizing: border-box; position: relative; z-index: 1; }
.steps li::after { content: ''; position: absolute; left: 13px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li > span:not(.vh) { font-weight: 600; }
.steps time { font: 700 var(--t-18)/1.4 var(--font-sign); color: var(--ink-2); }
.steps li.is-done { color: var(--ink); }
.steps li.is-done::before { background: var(--ink); border-color: var(--ink); }
.steps li.is-done::after { background: var(--ink); }
.steps li.is-current { color: var(--ink); }
.steps li.is-current::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 5px var(--red-tint); }
.steps li.is-cancel::before { background: var(--red-ink); border-color: var(--red-ink); }
.status-items { padding: var(--s4) var(--s5); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.status-items h2 { font: 700 var(--t-24)/1.1 var(--font-sign); margin-bottom: var(--s3); }
.status-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.status-refresh { font-size: var(--t-13); color: var(--ink-3); }
.status-page .summary small { color: var(--ink-3); }

/* Fußzeile */
.footer { background: var(--footer-bg); color: #e9e3dc; }
.footer__inner { max-width: 1440px; margin: 0 auto; padding: var(--s6) var(--gutter) var(--s6); display: grid; gap: var(--s5); }
.footer__brand { display: flex; gap: var(--s4); align-items: center; }
.footer__brand img { width: 96px; height: auto; background: var(--paper); border-radius: 12px; padding: 6px 8px; }
.footer__brand p { font-size: var(--t-15); line-height: 1.5; }
.footer a { color: #fff; }
.footer a:hover { color: var(--yellow); }
.footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px var(--s5); }
.footer__nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.footer__small { font-size: var(--t-13); color: #bfb6ad; }
.footer :focus-visible { outline-color: var(--yellow); }
@media (min-width: 900px) { .footer__inner { grid-template-columns: auto 1fr; align-items: center; } .footer__nav ul { justify-content: flex-end; } .footer__small { grid-column: 1 / -1; } }

/* ---------- Bewegung ----------
   Fenster kommen am Handy von unten und gehen denselben Weg zurück (motion.js setzt .is-closing).
   Desktop: mittig mit leichter Vergrößerung. „Bewegung reduzieren“: nur kurzes Überblenden. */
@keyframes sheet-in { from { transform: translateY(100%); } }
@keyframes sheet-out { to { transform: translateY(100%); } }
@keyframes side-in { from { transform: translateX(100%); } }
@keyframes side-out { to { transform: translateX(100%); } }
@keyframes pop-in { from { opacity: 0; transform: scale(.96); } }
@keyframes pop-out { to { opacity: 0; transform: scale(.96); } }
@keyframes page-in { from { opacity: 0; transform: translateY(16px); } }
@keyframes page-out { to { opacity: 0; transform: translateY(16px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) {
  .dlg[open], .sheet[open] { animation: sheet-in 320ms var(--ease-drawer); }
  .dlg.is-closing, .sheet.is-closing { animation: sheet-out 220ms var(--ease-out) forwards; }
  .dlg--checkout[open] { animation: page-in 260ms var(--ease-out); }
  .dlg--checkout.is-closing { animation: page-out 180ms var(--ease-out) forwards; }
  .dlg[open]::backdrop, .sheet[open]::backdrop { animation: fade-in 260ms var(--ease-out); }
  .dlg.is-closing::backdrop, .sheet.is-closing::backdrop { animation: fade-out 200ms ease forwards; }
  @media (min-width: 720px) {
    .dlg[open] { animation: pop-in 220ms var(--ease-out); }
    .dlg.is-closing { animation: pop-out 160ms var(--ease-out) forwards; }
    .dlg--checkout[open] { animation: page-in 260ms var(--ease-out); }
    .dlg--checkout.is-closing { animation: page-out 180ms var(--ease-out) forwards; }
    .sheet[open] { animation: side-in 300ms var(--ease-drawer); }
    .sheet.is-closing { animation: side-out 200ms var(--ease-out) forwards; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .dlg[open], .sheet[open], .dlg[open]::backdrop, .sheet[open]::backdrop { animation: fade-in 150ms ease; }
  .dlg.is-closing, .sheet.is-closing, .dlg.is-closing::backdrop, .sheet.is-closing::backdrop { animation: fade-out 150ms ease forwards; }
  .toast { transform: translate(-50%, 0); transition: opacity 150ms ease, visibility 0s linear 150ms; }
  .minorder__fill { transition: background-color 150ms ease; }
  .btn:active:not(:disabled), .price:active:not(:disabled), .dish__plus:active:not(:disabled) { transform: none; }
}

/* ---------- Druck: Speisekarte ohne Bedienelemente ---------- */
@media print {
  .topbar, .menubar, .cart-host, .actionbar, .store__banner, .store__actions, .info, .footer, .toast, .dish__plus, .dish__extras, .menu__print, .notice, dialog { display: none !important; }
  body { padding: 0 !important; }
  .layout { display: block; }
  .print-only { display: block !important; font-weight: 600; margin-bottom: var(--s3); }
  .dish { break-inside: avoid; border: 0; border-bottom: 1px solid #ccc; border-radius: 0; padding: 6px 0; }
  .kat__list { grid-template-columns: 1fr 1fr; gap: 0 24px; }
  .price { border: 0; min-height: 0; }
}
