/* CFC Gaeste-Seite (2026-10): Bestellen am Tisch per QR-Code. Eine Handy-Spalte
   (max. 460 px), Speisekarte zuerst, der Bon unten. Gleiche Bausteine wie die
   Kellner-App (kellner/style.css), aber groessere Ziele und Gast-Sprache.
   Dunkel zuerst, hell nach Systemeinstellung. Schriften lokal aus kellner/fonts
   (Barlow, SIL OFL) — die CSP erlaubt nur 'self'. Farben, die vom Server
   kommen (Verein, Warengruppe), setzt app.js per CSSOM (--club, --g). */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("kellner/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("kellner/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("kellner/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("kellner/fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("kellner/fonts/barlow-semi-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Semi Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("kellner/fonts/barlow-semi-condensed-latin-700-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --outer: #080d0f;
  --bg: #0f1719;
  --surface: #172226;
  --surface-2: #1f2c30;
  --line: #2a3a3f;
  --ink: #eef2f1;
  --muted: #95a7a4;
  --club: #2a5db0;
  --club-ink: #ffffff;
  --open: #eda53e;
  --pending: #a993f5;
  --ready: #3fcf8c;
  --ready-ink: #04210f;
  --danger: #ff7668;
  --warn-bg: #3a2c0e;
  --warn-ink: #f2c063;
  --paper: #fbfaf6;
  --paper-ink: #1e1e1b;
  --paper-muted: #6e6c64;
  --note-ink: #8f5400;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --r: 12px;
  --r-lg: 16px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --f-display: "Barlow Semi Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --f-ui: "Barlow", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-bon: ui-monospace, "SF Mono", Menlo, "Roboto Mono", Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --outer: #d9e0de; --bg: #f2f4f3; --surface: #ffffff; --surface-2: #e9eeec;
    --line: #d2dbd9; --ink: #142124; --muted: #56696a;
    --open: #b9730a; --pending: #6a4ad8; --ready: #0e8f54; --ready-ink: #ffffff; --danger: #c3372a;
    --warn-bg: #fff2d6; --warn-ink: #8a5a00;
    --shadow: 0 10px 30px rgba(20, 45, 45, .16);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { background: var(--outer); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--safe-t) + 120px); }
body { background: var(--outer); color: var(--ink); font: 16px/1.4 var(--f-ui); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in oklab, var(--club) 70%, #fff); outline-offset: 2px; }
.gut { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#app { position: relative; max-width: 460px; margin: 0 auto; background: var(--bg); min-height: 100vh; padding-top: var(--safe-t); }
@media (min-width: 620px) { #app { box-shadow: 0 0 0 1px var(--line); } }

svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* ─── Knoepfe, Chips, Pillen ───────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--r); border: 1px solid transparent; font: 600 16px var(--f-ui); white-space: nowrap; }
.btn.primary { background: var(--club); color: var(--club-ink); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn.block { width: 100%; min-height: 54px; font-size: 17px; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn:disabled { opacity: .45; }
.btn:active:not(:disabled), .chip:active, .tile:active { transform: scale(.98); }
.icon-btn { position: relative; display: inline-grid; place-items: center; flex: 0 0 auto; width: 46px; height: 46px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.icon-btn svg.i { width: 22px; height: 22px; }
.icon-btn.sm { width: 40px; height: 40px; border-color: transparent; background: transparent; }
.icon-btn.on { border-color: var(--ready); color: var(--ready); }
.icon-btn .dot { position: absolute; top: 7px; right: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--ready); box-shadow: 0 0 0 2px var(--surface); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; padding-bottom: 0; }
.chip { flex: 0 0 auto; min-height: 44px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 15.5px var(--f-ui); white-space: nowrap; }
.chip.on { border-color: var(--g, var(--club)); background: color-mix(in oklab, var(--g, var(--club)) 22%, var(--surface)); }
.chip:disabled { opacity: .45; }
.pill { display: inline-flex; align-items: center; flex: 0 0 auto; min-height: 26px; padding: 0 10px; border-radius: 8px; font: 600 13px var(--f-ui); background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.p-pending { background: color-mix(in oklab, var(--pending) 18%, transparent); color: var(--pending); }
.pill.p-open { background: color-mix(in oklab, var(--open) 18%, transparent); color: var(--open); }
.pill.p-ready { background: color-mix(in oklab, var(--ready) 20%, transparent); color: var(--ready); }
.pill.p-ok { background: var(--surface-2); color: var(--ink); }
.pill.p-danger { background: color-mix(in oklab, var(--danger) 16%, transparent); color: var(--danger); }

/* ─── Wappen (Monogramm des Vereins) ───────────────── */
.crest { display: block; flex: 0 0 auto; width: 32px; height: 36px; }
.crest svg { display: block; width: 100%; height: 100%; }
.crest.big { width: 72px; height: 80px; }
.c-fill { fill: var(--club); }
.c-line { fill: none; stroke: var(--club-ink); stroke-opacity: .45; stroke-width: 1.6; }
.c-text { fill: var(--club-ink); font-family: var(--f-display); font-weight: 700; }

/* ─── Kopf ─────────────────────────────────────────── */
/* Der Kopf reicht selbst unter die Statusleiste (iPhone, viewport-fit=cover). Lag dort
   nur der Rand von #app, legte iOS 26 seinen weichen Blur bis etwa 30 px darunter –
   genau über den Vereinsnamen. Ein sticky Kopf mit deckendem Hintergrund an der
   Oberkante deckt die Statusleiste, und beim Scrollen rutscht nichts unter die Uhr. */
.topbar { position: sticky; top: 0; z-index: 30; margin-top: calc(-1 * var(--safe-t)); padding-top: var(--safe-t); background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar::before { content: ""; display: block; height: 4px; background: var(--club); }
.topbar-inner { display: flex; align-items: center; gap: 10px; min-height: 64px; padding-block: 8px; }
.tb-text { flex: 1; min-width: 0; }
.tb-title { font: 700 19px/1.1 var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-sub { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-sub b { color: var(--ink); font-weight: 600; }
.bon-chip { display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center; flex: 0 0 auto; min-height: 46px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); line-height: 1.1; }
.bon-chip small { font: 600 12px var(--f-ui); color: var(--muted); }
.bon-chip b { font: 700 17px var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bon-chip.live { border-color: color-mix(in oklab, var(--pending) 60%, var(--line)); }
.bon-chip.live small { color: var(--pending); }
.menu-top { display: flex; flex-direction: column; gap: 8px; padding-top: 2px; }
.netbar { padding: 8px max(16px, env(safe-area-inset-left, 0px)); font-size: 14px; font-weight: 600; text-align: center; text-wrap: balance; background: var(--warn-bg); color: var(--warn-ink); }
.content { padding-block: 14px 0; }
.content.with-cart { padding-bottom: calc(118px + var(--safe-b)); }

/* ─── Karte ────────────────────────────────────────── */
.welcome { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-size: 15px; color: var(--muted); }
.welcome svg.i { width: 20px; height: 20px; margin-top: 1px; color: var(--club); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; min-height: 120px; padding: 12px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-align: left; color: var(--ink);
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; touch-action: manipulation; transition: transform .1s, border-color .15s; }
.tile.has { border-color: var(--club); }
.tile.press { transform: scale(.97); }
.t-ico { display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 8px; color: var(--g, var(--muted)); }
.t-ico svg.i { width: 26px; height: 26px; }
.t-name { max-width: calc(100% - 34px); font: 600 17px/1.2 var(--f-ui); overflow-wrap: break-word; text-wrap: balance; }
.t-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 8px; }
.t-price { font: 600 18px var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-plus { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--ink); }
.t-plus svg.i { width: 18px; height: 18px; stroke-width: 2.4; }
.tile.has .t-plus { background: var(--club); color: var(--club-ink); }
.t-qty { position: absolute; top: 10px; right: 10px; min-width: 30px; height: 30px; padding: 0 9px; border-radius: 999px; background: var(--club); color: var(--club-ink); font: 700 17px/30px var(--f-display); text-align: center; }
.t-qty.bump { animation: qpop .25s; }
.tile.out { opacity: .55; }
.tile.out .t-price { color: var(--danger); font: 600 15px var(--f-ui); }
.tile.nope { animation: shake .4s; }
@keyframes qpop { 50% { transform: scale(1.25); } }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.hint { margin: 14px 2px 0; font-size: 14px; color: var(--muted); text-align: center; text-wrap: balance; }
.foot { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 22px 0 6px; font-size: 14px; color: var(--muted); text-align: center; }
.empty { grid-column: 1 / -1; margin: 18px 0; text-align: center; color: var(--muted); text-wrap: balance; }
.flyer { position: fixed; z-index: 80; width: 14px; height: 14px; border-radius: 50%; pointer-events: none; background: var(--club); }

/* ─── Warenkorb-Leiste ─────────────────────────────── */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; pointer-events: none; }
.dock-inner { max-width: 460px; margin: 0 auto; pointer-events: auto; padding-bottom: var(--safe-b); background: var(--bg); border-top: 1px solid var(--line); }
.cartbar { display: flex; gap: 10px; align-items: center; padding-block: 10px 12px; }
.cart-sum { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 14px 0 10px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); text-align: left; }
.bag { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px; background: var(--club); color: var(--club-ink); font: 700 18px/38px var(--f-display); text-align: center; }
.bag.zero { background: var(--surface-2); color: var(--muted); }
.cart-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cart-txt b { font: 700 19px/1.1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-txt small { color: var(--muted); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { flex: 0 0 auto; display: grid; color: var(--muted); }
.send { position: relative; flex: 0 0 132px; height: 58px; border: 0; border-radius: var(--r-lg); background: var(--club); color: var(--club-ink); font: 600 17px var(--f-ui); transition: flex-basis .3s ease, border-radius .3s, background-color .25s; overflow: hidden; white-space: nowrap; }
.send:disabled { opacity: .4; }
.send.big { flex: 1 1 auto; }
.send .send-label { transition: opacity .15s; }
.send-spin { position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; opacity: 0; }
.send-check { position: absolute; inset: 0; margin: auto; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.send-check svg.i { width: 28px; height: 28px; }
.send.is-sending, .send.is-done { flex: 0 0 58px; border-radius: 50%; }
.send.is-sending .send-label, .send.is-done .send-label { opacity: 0; }
.send.is-sending .send-spin { opacity: 1; animation: spin .7s linear infinite; }
.send.is-done { background: var(--ready); color: var(--ready-ink); }
.send.is-done .send-check { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Bon (Thermopapier) ───────────────────────────── */
.paper { position: relative; margin-top: 10px; padding: 22px 16px 16px; border-radius: 3px 3px 10px 10px; background: var(--paper); color: var(--paper-ink); font-family: var(--f-bon); box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.paper::before { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px; background: radial-gradient(circle at 7px 6px, var(--surface) 5px, transparent 5.6px) 0 0 / 14px 12px repeat-x; }
.bon-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--paper-muted); }
.bon-target { margin: 6px 0 0; font: 700 25px/1.1 var(--f-display); overflow-wrap: anywhere; }
.bon-meta { margin-top: 2px; font-size: 12.5px; color: var(--paper-muted); }
.bon-lines { margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed color-mix(in oklab, var(--paper-ink) 30%, transparent); display: flex; flex-direction: column; gap: 10px; }
.bon-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.bl-qty { display: flex; align-items: center; gap: 2px; }
.bl-qty button { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid color-mix(in oklab, var(--paper-ink) 22%, transparent); background: transparent; color: var(--paper-ink); font: 600 18px/1 var(--f-bon); }
.bl-qty b { min-width: 24px; text-align: center; font-size: 15px; }
.bl-main { display: flex; flex-direction: column; min-width: 0; font-size: 14px; overflow-wrap: anywhere; }
.bl-main em { font-style: normal; font-size: 12.5px; color: var(--note-ink); }
.bl-sum { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bon-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 10px; border-top: 1.5px dashed color-mix(in oklab, var(--paper-ink) 30%, transparent); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.bon-total b { font-size: 21px; letter-spacing: 0; white-space: nowrap; }
.bon-note { margin: 10px 0 0; font: 13px/1.4 var(--f-ui); color: var(--paper-muted); }
.name-field { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.name-field label { font: 600 14px var(--f-ui); color: var(--muted); }
.input { width: 100%; min-height: 50px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 500 16px var(--f-ui); }
.input:focus { outline: none; border-color: var(--club); }
.input::placeholder { color: var(--muted); }

/* ─── Mein Bon / Status ────────────────────────────── */
.sum-card { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.sum-card > span { font-size: 14.5px; color: var(--muted); }
.sum-card b { font: 700 42px/1.05 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-card p { margin: 0; font-size: 14.5px; color: var(--muted); text-wrap: balance; }
.sum-card .btn { margin-top: 8px; }
.sect { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 20px 2px 8px; }
.sect h2 { margin: 0; font: 700 20px var(--f-display); }
.sect span { font-size: 14px; color: var(--muted); }
.cards { display: flex; flex-direction: column; gap: 10px; }
.ocard { display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 12px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.ocard.st-ready { border-color: color-mix(in oklab, var(--ready) 60%, var(--line)); }
.ocard.st-rejected { border-color: color-mix(in oklab, var(--danger) 50%, var(--line)); }
.ocard.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { 0% { border-color: var(--club); background: color-mix(in oklab, var(--club) 14%, var(--surface)); } 100% { border-color: var(--line); } }
.oc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oc-head b { font: 700 19px var(--f-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.oc-items { margin: 0; font-size: 15.5px; overflow-wrap: anywhere; }
.oc-items em { font-style: normal; color: var(--muted); }
.oc-rej { display: flex; align-items: flex-start; gap: 6px; margin: -4px 0 0; font-size: 14px; color: var(--danger); }
.oc-rej svg.i { width: 15px; height: 15px; margin-top: 2px; }
.oc-wait { margin: -4px 0 0; padding: 9px 11px; border-radius: var(--r); background: var(--warn-bg); color: var(--warn-ink); font-size: 14px; font-weight: 600; }
.pickup { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r); background: color-mix(in oklab, var(--ready) 14%, var(--surface)); border: 1px solid color-mix(in oklab, var(--ready) 50%, transparent); }
.pickup b { font: 700 40px/1 var(--f-display); color: var(--ready); font-variant-numeric: tabular-nums; }
.pickup span { font-size: 15px; }
.pickup small { display: block; font: 600 13px var(--f-ui); color: var(--ready); }
/* Web Push (Relay-Schema 6): "Benachrichtigen, wenn es fertig ist" ueber den laufenden Bestellungen */
.push-box { display: flex; flex-direction: column; gap: 6px; margin: 0 0 10px; }
.push-box.on { flex-direction: row; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: var(--r); background: color-mix(in oklab, var(--ready) 12%, var(--surface)); font-size: 15px; }
.push-box.on svg.i { color: var(--ready); }
.push-box.on span { flex: 1 1 auto; }
.push-box.off { font-size: 13.5px; color: var(--muted); text-align: center; text-wrap: balance; }
.link { min-height: 40px; padding: 0 10px; border: 0; background: none; color: var(--muted); font: 600 15px var(--f-ui); text-decoration: underline; text-underline-offset: 3px; }
.tl { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tl li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 13px; color: var(--muted); text-align: center; white-space: nowrap; }
.tl li + li::before { content: ""; position: absolute; top: 8px; right: 50%; width: 100%; height: 2px; background: var(--line); }
.tl li.done::before, .tl li.now::before { background: var(--club); }
.tl .dot { position: relative; z-index: 1; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: var(--club-ink); }
.tl .dot svg.i { width: 11px; height: 11px; stroke-width: 3; }
.tl li.done .dot { border-color: var(--club); background: var(--club); }
.tl li.now .dot { border-color: var(--club); }
.tl li.now .dot::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--club); }
.tl li.now.ready .dot { border-color: var(--ready); background: var(--ready); animation: readyp 1.6s ease-out infinite; }
.tl li.now.ready .dot::after { background: var(--ready-ink); }
.tl li.done, .tl li.now { color: var(--ink); }
.tl time { font: 600 13px var(--f-display); color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes readyp { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--ready) 60%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
.lines { display: flex; flex-direction: column; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); }
.line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 11px 14px; border-top: 1px solid var(--line); }
.line:first-child { border-top: 0; }
.line > span { min-width: 0; overflow-wrap: anywhere; }
.line small { display: block; font-size: 13.5px; color: var(--muted); }
.line b { font: 600 16px var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.line.rej { color: var(--muted); }
.line.rej b { text-decoration: line-through; }

/* ─── Bedienung rufen ──────────────────────────────── */
.call-live { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; border-radius: var(--r-lg); background: color-mix(in oklab, var(--ready) 12%, var(--surface)); border: 1px solid color-mix(in oklab, var(--ready) 45%, transparent); text-align: center; }
.call-live.open { background: color-mix(in oklab, var(--pending) 12%, var(--surface)); border-color: color-mix(in oklab, var(--pending) 45%, transparent); }
.ring-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ready); color: var(--ready-ink); animation: readyp 1.8s ease-out infinite; }
.call-live.open .ring-ico { background: var(--pending); color: var(--bg); animation: none; }
.ring-ico svg.i { width: 28px; height: 28px; }
.call-live b, .call-live .sh-title { font: 700 24px/1.1 var(--f-display); }
.call-live p { margin: 0; color: var(--muted); font-size: 15px; text-wrap: balance; overflow-wrap: anywhere; }

/* ─── Zustaende (geschlossen / unbekannt / Laden) ──── */
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: calc(100vh - 40px); padding-block: 40px; text-align: center; }
.state h1 { margin: 6px 0 0; font: 700 28px/1.1 var(--f-display); text-wrap: balance; }
.state p { margin: 0; max-width: 32ch; color: var(--muted); font-size: 16px; text-wrap: balance; }
.state .club-name { font: 700 20px var(--f-display); color: var(--ink); overflow-wrap: anywhere; }
.state .spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--club); border-right-color: transparent; animation: spin .8s linear infinite; }

/* ─── Sheets, Banner, Toast ────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 55; background: rgba(0, 0, 0, .5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.scrim.show { opacity: 1; visibility: visible; transition: opacity .25s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; transform: translateY(105%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .9, .25, 1), visibility 0s .3s; }
.sheet.open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2, .9, .25, 1); }
.sheet.dragging { transition: none; }
.sheet-inner { max-width: 460px; margin: 0 auto; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain; padding-top: 4px; padding-bottom: calc(18px + var(--safe-b)); border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0; background: var(--surface); box-shadow: var(--shadow); }
.grab { display: block; width: 100%; height: 24px; border: 0; background: transparent; cursor: grab; touch-action: none; }
.grab::after { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto; border-radius: 2px; background: var(--line); }
.sh { display: flex; flex-direction: column; gap: 14px; }
.sh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sh-head > div { min-width: 0; }
.sh-kicker { margin: 0 0 2px; font: 600 14px var(--f-ui); color: var(--muted); }
.sh-title { margin: 0; font: 700 30px/1.05 var(--f-display); overflow-wrap: anywhere; }
.sh-sub { margin: 4px 0 0; font-size: 15px; color: var(--muted); text-wrap: balance; }
.sh-label { margin: 0 0 -6px; font: 600 14px var(--f-ui); color: var(--muted); }
.stepper { display: flex; align-items: center; justify-content: center; gap: 24px; }
.stepper button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); font: 600 26px/1 var(--f-ui); }
.stepper b { min-width: 48px; text-align: center; font: 700 40px var(--f-display); }
.t-ico.big { flex: 0 0 auto; width: 46px; height: 46px; margin: 0; padding: 10px; border-radius: var(--r); background: color-mix(in oklab, var(--g, var(--club)) 18%, var(--surface)); }
.sheet-actions { display: flex; gap: 10px; margin-top: 14px; }
.sheet-actions .btn { flex: 0 0 auto; min-height: 58px; border-radius: var(--r-lg); }
.opt { display: flex; flex-direction: column; gap: 8px; }
.opt .chip { text-align: left; white-space: normal; min-height: 52px; padding: 8px 14px; }
.opt .chip small { display: block; font-weight: 500; font-size: 13.5px; color: var(--muted); }
.fine { margin: 0; font-size: 13.5px; color: var(--muted); text-align: center; text-wrap: balance; }
.wishes { display: flex; flex-wrap: wrap; gap: 8px; }
.xor { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface-2); }
.xor .chip { min-height: 40px; }
.or { font-size: 13.5px; color: var(--muted); }

.banner-dock { position: fixed; left: 0; right: 0; top: 0; z-index: 70; pointer-events: none; padding-top: calc(var(--safe-t) + 8px); }
.banner-wrap { max-width: 460px; margin: 0 auto; }
.banner { pointer-events: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 4px 10px 10px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--ready); box-shadow: var(--shadow); transform: translateY(calc(-100% - 30px)); visibility: hidden; transition: transform .35s cubic-bezier(.2, 1, .3, 1), visibility 0s .35s; }
.banner.show { transform: none; visibility: visible; transition: transform .35s cubic-bezier(.2, 1, .3, 1); }
.bell { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--ready); color: var(--ready-ink); }
.bell svg.i { width: 20px; height: 20px; }
.bell.num { width: auto; min-width: 40px; padding: 0 8px; border-radius: 20px; font: 700 18px var(--f-display); }
.bn-text { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.bn-text small { font: 600 13px var(--f-ui); color: var(--ready); }
.bn-text b { font: 700 19px/1.15 var(--f-display); overflow-wrap: anywhere; }
.bn-text span { line-height: 1.3; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.toast-dock { position: fixed; left: 0; right: 0; bottom: calc(108px + var(--safe-b)); z-index: 75; display: flex; justify-content: center; pointer-events: none; }
.toast { max-width: min(420px, calc(100% - 32px)); width: max-content; padding: 11px 16px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-weight: 600; font-size: 15px; text-align: center; text-wrap: balance; box-shadow: var(--shadow); transform: translateY(16px); opacity: 0; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: none; }
.toast.err { background: var(--danger); color: #fff; }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Angaben zum Produkt: i neben der Kachel, im Blatt Beschreibung und Allergene */
.tile-wrap { position: relative; display: flex; min-width: 0; }
.tile-wrap > .tile { flex: 1 1 auto; min-width: 0; }
.tile-wrap .t-qty { right: 46px; }
/* Unten und links eckig: eine runde Ecke nimmt der Flaeche die Treffer, der Tipp ginge dann auf die Kachel und buchte. */
.t-info { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0 var(--r-lg) 0 0; background: transparent; color: var(--muted); cursor: pointer; }
.t-info svg.i { width: 20px; height: 20px; }
.t-info:active { color: var(--ink); }
.t-menge { max-width: 100%; margin-top: 2px; font-size: 14px; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
/* 2026-11-18 Happy Hour: Hinweis über dem Preis, Bernstein wie die übrigen Hinweise. */
.t-zeit { max-width: 100%; margin-top: 4px; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--warn-ink); overflow-wrap: anywhere; }
.angaben-wrap { display: flex; flex-direction: column; gap: 10px; }
.sh-text { margin: 0; font-size: 15px; line-height: 1.35; }
.angaben { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: var(--r); background: var(--surface-2); font-size: 15px; line-height: 1.35; }
.angaben p { margin: 0; overflow-wrap: anywhere; }
.angaben b { font-weight: 600; }
.angaben.offen { background: color-mix(in oklab, var(--pending) 16%, var(--surface)); }
/* Lizenz Phase 2 (2026-11-18): Hinweis oben, wenn der Relay die Online-Dienste pausiert. */
.lizenz-pause { position: sticky; top: 0; z-index: 60; padding: 12px 16px; background: var(--warn-bg); color: var(--warn-ink); font-weight: 600; line-height: 1.35; border-bottom: 1px solid currentColor; overflow-wrap: anywhere; }
