/* ==========================================================================
   Tischfunk-Design: zwei Stile, pro Gerät wählbar (Startseite oder 🌓 beim Kellner)
   „Frisch“ = hell (Standard)  ·  „Edel“ = dunkel  ·  „Automatisch“ folgt dem Handy
   Schriften liegen in vendor/fonts (SIL Open Font License).
   ========================================================================== */
@font-face { font-family: "Figtree"; src: url("vendor/fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("vendor/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("vendor/fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Sora"; src: url("vendor/fonts/sora-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

/* ---------- Stil „Frisch“ (hell) ---------- */
:root {
  --bg: #f4f6f9;
  --karte: #ffffff;
  --text: #151922;
  --leise: #687183;
  --kopf: #1b1d23;          /* dunkle Flächen: Durchsagen, Hinweise */
  --kopf-bg: rgba(255, 255, 255, .9);
  --kopf-text: #151922;
  --kopf-knopf: #eef1f5;
  --gold: #ea580c;          /* Tischfunk-Orange (Akzent) */
  --gold-text: #c2410c;
  --gold-hell: #fff1e8;
  --primaer: #ea580c;
  --primaer-dunkel: #c2410c;
  --primaer-text: #ffffff;
  --gruen: #0f9f6e;
  --gruen-dunkel: #0b7d57;
  --rot: #dc2626;
  --gelb: #fff6d6;
  --gelb-rand: #e8a10c;
  --orange: #e8a10c;
  --blau: #2563eb;
  --rand: #e3e7ed;
  --linie: #edf0f4;
  --tint-gruen: #e9f8f1;
  --tint-rot: #fdecec;
  --tint-lila: #efeafe;
  --lila-text: #5b21b6;
  --orange-text: #b45309;
  --rot-text: #991b1b;
  --radius: 18px;
  --schatten: 0 1px 2px rgba(16, 24, 40, .05), 0 6px 18px rgba(16, 24, 40, .06);
  --schatten-gross: 0 18px 40px -12px rgba(16, 24, 40, .28);
  --schrift: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titel-schrift: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  /* Kategorie-Farben (Kellner-Kacheln, Küche, Auswertung) */
  --k-bier: #d97706; --k-wein: #be123c; --k-alkfrei: #0d9488; --k-essen: #15803d; --k-snack: #7c3aed; --k-kaffee: #92400e;
}

/* ---------- Stil „Edel“ (dunkel) ---------- */
:root[data-theme="dunkel"] {
  color-scheme: dark;
  --bg: #0e1014;
  --karte: #171a21;
  --text: #f1f2f5;
  --leise: #969dac;
  --kopf: #0a0b0e;
  --kopf-bg: rgba(14, 16, 20, .88);
  --kopf-text: #f1f2f5;
  --kopf-knopf: rgba(255, 255, 255, .07);
  --gold: #fb923c;
  --gold-text: #fdba74;
  --gold-hell: rgba(251, 146, 60, .14);
  --primaer: #fb923c;
  --primaer-dunkel: #f97316;
  --primaer-text: #1a0d03;
  --gruen: #34d399;
  --gruen-dunkel: #10b981;
  --rot: #f87171;
  --gelb: rgba(251, 191, 36, .14);
  --gelb-rand: #fbbf24;
  --orange: #fbbf24;
  --blau: #60a5fa;
  --rand: rgba(255, 255, 255, .1);
  --linie: rgba(255, 255, 255, .06);
  --tint-gruen: rgba(52, 211, 153, .12);
  --tint-rot: rgba(248, 113, 113, .14);
  --tint-lila: rgba(167, 139, 250, .16);
  --lila-text: #c9b8ff;
  --orange-text: #fbbf24;
  --rot-text: #fca5a5;
  --schatten: 0 0 0 1px rgba(255, 255, 255, .06), 0 10px 30px rgba(0, 0, 0, .35);
  --schatten-gross: 0 20px 50px -10px rgba(0, 0, 0, .6);
  --schrift: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titel-schrift: "Sora", "Manrope", system-ui, sans-serif;
  --k-bier: #fbbf24; --k-wein: #fb7185; --k-alkfrei: #2dd4bf; --k-essen: #4ade80; --k-snack: #a78bfa; --k-kaffee: #d6a26c;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 18px;
  line-height: 1.35;
}
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: .5; cursor: default; }
[hidden] { display: none !important; }
h2 { font-size: 1.15rem; margin: 0 0 .6rem; }
h2 small { font-weight: normal; color: var(--leise); }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--kopf); color: #fff; border-bottom: 3px solid var(--gold);
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
}
.kopf-titel { font-size: 1.05rem; }
.gross-titel { font-size: 1.6rem; font-weight: 700; }
.kopf .link { color: #fdba74; padding: 0; }
.home-knopf {
  flex: none; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(255,255,255,.15); color: #fff; text-decoration: none; font-size: 1.6rem; line-height: 1;
}
.home-knopf:active { background: rgba(255,255,255,.3); }
.kellner .kopf > div, .station .kopf-titel, .auswertung .kopf-titel { margin-right: auto; }
.kellner .kopf > div { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.zaehler { font-size: 1.4rem; font-weight: 700; }
.verbindung { font-size: .8rem; padding: 4px 10px; border-radius: 99px; white-space: nowrap; font-weight: 600; }
.verbindung.gruen { background: #1a7f37; }
.verbindung.gelb { background: #8a6d00; }
.verbindung.rot { background: var(--rot); animation: puls 1s infinite; }
@keyframes puls { 50% { opacity: .55; } }

.demo { background: #ffe0b2; color: #6b3d00; margin: 0; padding: 8px 16px; font-size: .9rem; text-align: center; }

/* ---------- Knöpfe ---------- */
.gross {
  display: block; width: 100%;
  min-height: 56px; padding: 12px 18px;
  border: 2px solid var(--rand); border-radius: var(--radius);
  background: var(--karte); font-size: 1.15rem; font-weight: 700;
  text-align: center; text-decoration: none; color: var(--text);
}
.gross.primaer { background: var(--primaer); border-color: var(--primaer); color: #fff; }
.gross.primaer:active { background: var(--primaer-dunkel); }
.link { background: none; border: 0; text-decoration: underline; padding: 6px 0; }
.link.warnung { color: var(--rot); }

/* ---------- Startseite ---------- */
.startseite { max-width: 460px; margin: 0 auto; padding: 32px 16px; display: grid; gap: 14px; }
.startseite h1 { margin: 0; }
.startseite p { margin: 0 0 8px; color: var(--leise); }
.startseite .gross { font-size: 1.4rem; min-height: 72px; display: flex; align-items: center; justify-content: center; }

/* ---------- Kellner ---------- */
.reiter { display: flex; position: sticky; top: 56px; z-index: 15; background: var(--bg); border-bottom: 2px solid var(--rand); }
.reiter button { flex: 1; padding: 14px 8px; border: 0; background: none; font-weight: 600; color: var(--leise); border-bottom: 4px solid transparent; }
.reiter button.aktiv { color: var(--text); border-bottom-color: var(--gold); }
.kellner main { padding: 12px 12px 130px; max-width: 720px; margin: 0 auto; }
.block { background: var(--karte); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }

.tisch-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.tisch-knopf {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 78px; padding: 6px; border: 2px solid var(--rand); border-radius: 12px; background: var(--karte);
}
.tisch-knopf b { font-size: 1.5rem; }
.tisch-knopf span { font-size: .72rem; color: var(--leise); text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.tisch-knopf.aktiv { border-color: var(--gold); background: var(--gold-hell); }
.tisch-gewaehlt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--gold-hell); border: 2px solid var(--gold); border-radius: 12px; padding: 12px 14px;
  font-size: 1.2rem; font-weight: 700;
}
.tisch-gewaehlt button { border: 0; background: var(--karte); border-radius: 10px; padding: 10px 14px; font-size: .95rem; font-weight: 600; }

.wiederholen {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  margin-top: 10px; padding: 12px 14px; text-align: left;
  border: 2px dashed var(--gold); border-radius: 12px; background: var(--gold-hell); color: var(--gold-text); font-size: 1.05rem;
}
.wiederholen span { color: var(--text); font-size: .9rem; }

.kategorie h3 { margin: 14px 0 6px; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--leise); }
.kategorie:first-child h3 { margin-top: 0; }
.artikel { display: flex; align-items: stretch; gap: 8px; border-top: 1px solid var(--linie); padding: 6px 0; }
.artikel.gewaehlt .artikel-name { font-weight: 700; }
.artikel.gewaehlt { background: var(--tint-gruen); margin: 0 -8px; padding: 6px 8px; border-radius: 10px; }
.artikel-name {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  text-align: left; border: 0; background: none; padding: 4px 0; min-height: 52px;
}
.artikel-name small { color: var(--leise); font-weight: normal; }
.artikel-name .preis { font-size: .85rem; }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button {
  width: 52px; height: 52px; border-radius: 12px; border: 2px solid var(--rand); background: var(--karte);
  font-size: 1.7rem; font-weight: 700; line-height: 1;
}
.stepper .plus { background: var(--primaer); border-color: var(--primaer); color: #fff; }
.stepper .anzahl { min-width: 34px; text-align: center; font-size: 1.4rem; font-weight: 800; }

textarea {
  width: 100%; font: inherit; font-size: 1.1rem; padding: 12px;
  border: 2px solid var(--rand); border-radius: 12px; resize: vertical;
}

.fusszeile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  background: var(--karte); border-top: 2px solid var(--rand);
  padding: 10px 16px; padding-bottom: max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.fusszeile #summe { flex: 1; font-weight: 600; }
.fusszeile .gross { width: auto; min-width: 150px; }

.ziel-etikett { margin-left: auto; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; color: #fff; }
.ziel-kueche { color: #9a3412; }
.ziel-theke { color: #1d4ed8; }
.ziel-erfassen { color: var(--leise); }
.ziel-etikett.ziel-kueche { background: #c2410c; color: #fff; }
.ziel-etikett.ziel-theke { background: #1d4ed8; color: #fff; }

/* ---------- Karten (Küche / Theke / offene Bestellungen) ---------- */
.liste {
  display: grid; gap: 12px; padding: 12px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-items: start;
}
.liste.einspaltig { grid-template-columns: 1fr; padding: 0; }
.karte {
  background: var(--karte); border-radius: var(--radius); padding: 14px;
  border: 3px solid transparent; box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.karte header { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.karte .tisch { font-size: 1.8rem; font-weight: 800; }
.karte .team { font-size: 1.15rem; font-weight: 600; color: var(--leise); }
.karte .meta { color: var(--leise); font-size: .95rem; margin: 2px 0 8px; }
.karte .positionen { list-style: none; padding: 0; margin: 0 0 10px; font-size: 1.4rem; }
.karte .positionen li { padding: 4px 0; border-bottom: 1px dashed var(--linie); }
.karte .positionen li:last-child { border-bottom: 0; }
.karte .positionen small { color: var(--leise); font-size: .8em; }
.kommentar {
  background: var(--gelb); border: 3px solid var(--gelb-rand); border-radius: 10px;
  padding: 10px 12px; margin: 0 0 12px; font-size: 1.35rem; font-weight: 800;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.karte.alt { border-color: var(--orange); }
.karte.alt .alter { color: var(--orange); font-weight: 700; }
.karte.sehr-alt { border-color: var(--rot); }
.karte.sehr-alt .alter { color: var(--rot); font-weight: 800; }
.karte.neu { border-color: var(--gold); animation: neu 1s ease-in-out 3; }
@keyframes neu { 50% { background: #f7e6bd; } }
.erledigt-knopf {
  width: 100%; min-height: 64px; border: 0; border-radius: 12px;
  background: var(--gruen); color: #fff; font-size: 1.4rem; font-weight: 800;
}
.erledigt-knopf:active { background: var(--gruen-dunkel); }
.karte.klein .tisch { font-size: 1.3rem; }
.karte.klein .positionen { font-size: 1.1rem; }
.karte.klein .kommentar { font-size: 1.05rem; }
.storno-knopf {
  width: 100%; min-height: 48px; border: 2px solid var(--rot); border-radius: 12px;
  background: var(--karte); color: var(--rot); font-weight: 700;
}
.leer { grid-column: 1 / -1; text-align: center; color: var(--leise); font-size: 1.3rem; padding: 40px 0; }

/* ---------- Overlays / Dialoge ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(15, 20, 35, .7);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.dialog {
  background: var(--karte); border-radius: 18px; padding: 20px; width: 100%; max-width: 440px;
  max-height: 90vh; overflow: auto; display: grid; gap: 10px;
}
.dialog h2 { margin: 0; font-size: 1.4rem; }
.dialog h4 { margin: 6px 0 0; font-size: 1.1rem; }
.dialog ul { margin: 0; padding-left: 20px; font-size: 1.15rem; }
.dialog p { margin: 0; }
.dialog .auswahl { margin: 0; }
.knopf-reihe { display: flex; gap: 10px; }
.summe-dialog { color: var(--leise); }
.klein-hinweis { color: var(--leise); font-size: .95rem; }
.pin-eingabe { font-size: 2rem; text-align: center; padding: 10px; border: 2px solid var(--rand); border-radius: 12px; letter-spacing: .3em; }
.fehler { color: var(--rot); font-weight: 700; }

/* ---------- Toasts ---------- */
#toasts {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 200;
  bottom: 96px; width: min(560px, calc(100% - 24px)); display: grid; gap: 8px;
}
.station #toasts { bottom: 16px; }
.toast {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: #222; color: #fff; padding: 14px 16px; border-radius: 12px;
  font-size: 1.05rem; font-weight: 600; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.toast button { background: var(--karte); color: #111; border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 700; white-space: nowrap; }
.toast.ok { background: var(--gruen); }
.toast.neu { background: var(--kopf); border: 3px solid var(--gold); font-size: 1.3rem; }
.toast.fehler { background: var(--rot); }
.toast.storno { background: var(--rot); font-size: 1.4rem; padding: 18px; border: 4px solid #fff; }
.toast.fertig { background: #0f766e; font-size: 1.2rem; padding: 18px; border: 4px solid #fff; }
.toast.fertig::after,
.toast.storno::after { content: "✕"; margin-left: 8px; }

/* ---------- Aufblinken ---------- */
.blitz {
  position: fixed; inset: 0; z-index: 150; pointer-events: none;
  background: #ffd400; animation: blitz .4s ease-in-out 4 alternate;
  opacity: 0;
}
.blitz.rot { background: #ff3b3b; }
@keyframes blitz { from { opacity: 0; } to { opacity: .85; } }

body.offline .kopf { background: var(--rot); }

@media (min-width: 900px) {
  body.station { font-size: 20px; }
}

/* ---------- Auswertung ---------- */
.auswertung-inhalt { max-width: 1200px; margin: 0 auto; padding: 12px; }
.kopf-knopf { background: rgba(255,255,255,.15); border: 0; color: #fff; border-radius: 10px; font-size: 1.4rem; padding: 6px 14px; }
.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.kachel { background: var(--karte); border-radius: var(--radius); padding: 12px 14px; }
.kachel-titel { color: var(--leise); font-size: .85rem; }
.kachel-wert { font-size: 1.5rem; font-weight: 800; }
.kachel-wert small { font-size: .8rem; font-weight: 600; color: var(--orange); }
.auswertung-reiter { position: static; margin-bottom: 4px; }
.auswertung .liste { padding: 12px 0; }
.tabelle { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tabelle th { text-align: left; color: var(--leise); font-size: .85rem; font-weight: 600; padding: 6px 4px; border-bottom: 2px solid var(--rand); }
.tabelle td { padding: 6px 4px; border-bottom: 1px solid var(--linie); }
.tabelle .zahl { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tabelle td.zahl:first-child { width: 3.5em; }
.summe-zeile td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--rand); }
.tisch-summe { margin-left: auto; font-size: 1.3rem; font-weight: 800; }
.karte.leer-karte { opacity: .55; }
.fuss-hinweis { text-align: center; margin: 16px 0 32px; }

/* ---------- Kasse ---------- */
.kassenstand { background: #0f766e; color: #fff; border-radius: var(--radius); padding: 12px 14px; margin: 0 0 12px; font-size: 1.05rem; }
.kassenstand b { font-size: 1.3rem; }
.tisch-knopf em { font-style: normal; font-size: .8rem; font-weight: 700; margin-top: 2px; color: var(--leise); }
.tisch-knopf.schuldet { border-color: var(--orange); }
.tisch-knopf.schuldet em { color: var(--orange-text); }
.tisch-knopf.bezahlt { background: var(--tint-gruen); border-color: #9fd8ae; }
.tisch-knopf.bezahlt em { color: var(--primaer); }
.tisch-knopf.zuviel em { color: var(--rot); }
.kasse-karte { display: grid; gap: 10px; }
.kasse-karte h4 { margin: 6px 0 0; }
.kasse-summen td { font-size: 1.1rem; }
.gross-zahl { font-size: 1.6rem !important; }
.teilbetrag { display: grid; gap: 8px; }
.teilbetrag label { display: grid; gap: 4px; color: var(--leise); font-size: .95rem; }
.teilbetrag input { font: inherit; font-size: 1.3rem; padding: 10px 12px; border: 2px solid var(--rand); border-radius: 12px; }
.rueckgeld { margin: 0; font-size: 1.4rem; font-weight: 800; }
.zahlungen { list-style: none; margin: 0; padding: 0; }
.zahlungen li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.zahlungen li span { flex: 1; color: var(--leise); }
.zahl-status { margin: 6px 0 0; font-weight: 700; }
.zahl-status.ok { color: var(--primaer); }
.zahl-status.offen { color: var(--orange-text); }
.zahl-status.zuviel { color: var(--rot); }
.gross-status { font-size: 1.3rem; text-align: center; background: var(--tint-gruen); border-radius: 12px; padding: 12px; margin: 0; }

/* ---------- Ausverkauft ---------- */
.artikel.ausverkauft .artikel-name > span, .artikel.ausverkauft .artikel-name > .preis { opacity: .45; text-decoration: line-through; }
.artikel.ausverkauft .artikel-name::after { content: "AUSVERKAUFT"; display: inline-block;
  font-size: .72rem; font-weight: 800; color: #fff; background: var(--rot); border-radius: 6px; padding: 1px 6px; margin-top: 2px; }
.artikel.ausverkauft.gewaehlt { background: var(--tint-rot); }
.ausverkauft-knopf { background: rgba(255,255,255,.15); border: 0; color: #fff; border-radius: 10px; padding: 8px 12px; font-weight: 700; white-space: nowrap; }
.ausverkauft-knopf.hat { background: var(--rot); }
.aus-liste { display: grid; gap: 8px; }
.aus-artikel { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 56px; padding: 10px 14px;
  border: 2px solid var(--rand); border-radius: 12px; background: var(--karte); font-size: 1.1rem; text-align: left; }
.aus-artikel em { font-style: normal; font-size: .85rem; font-weight: 800; padding: 4px 10px; border-radius: 99px; background: var(--tint-gruen); color: var(--primaer); white-space: nowrap; }
.aus-artikel.aus { border-color: var(--rot); background: var(--tint-rot); }
.aus-artikel.aus em { background: var(--rot); color: #fff; }

/* ---------- Kasse pro Artikel ---------- */
.kasse-artikel { display: grid; }
.kasse-zeile { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--linie); }
.kasse-zeile.gewaehlt { background: var(--tint-gruen); margin: 0 -8px; padding: 8px; border-radius: 10px; }
.kasse-zeile.fertig { opacity: .6; }
.kasse-name { flex: 1; display: grid; }
.kasse-name small { color: var(--leise); }
.kasse-name .rot { color: var(--rot); }
.auswahl-box { display: grid; gap: 8px; background: var(--tint-gruen); border: 2px solid #9fd8ae; border-radius: 12px; padding: 12px; }
.auswahl-summe { font-size: 1.2rem; }
.zahlungen li > div { flex: 1; display: grid; }
.zahlungen li small { color: var(--leise); }
.excel-knopf { font-size: 1rem !important; font-weight: 700; }
@media (max-width: 420px) {
  .station .gross-titel { font-size: 1.15rem; }
  .station .gross-titel, .station .zaehler { white-space: nowrap; }
  .station .verbindung { padding: 4px 8px; white-space: normal; text-align: center; }
  .station .home-knopf { width: 40px; height: 40px; }
  .ausverkauft-knopf { padding: 8px 10px; font-size: 1rem; }
  .aus-text { display: none; }
  .station .kopf { gap: 8px; }
  .station .zaehler { font-size: 1rem; }
}

/* ---------- Logo / Vereinsdesign ---------- */
.logo-knopf { width: auto; height: 46px; padding: 3px 5px; background: var(--karte); border-radius: 10px; }
.logo-knopf img { display: block; height: 40px; width: auto; }
.logo-knopf:active { background: var(--gold-hell); }
@media (max-width: 420px) { .station .logo-knopf { height: 42px; } .station .logo-knopf img { height: 36px; } }

body.start { background: var(--kopf); color: #fff; min-height: 100vh; }
.startseite { padding-top: max(24px, env(safe-area-inset-top)); }
.start-logo { display: block; width: min(120px, 40vw); height: auto; margin: 8px auto 4px; border-radius: 26px;
  border: 3px solid var(--gold); box-shadow: 0 10px 30px rgba(0,0,0,.35); background: var(--karte); }
.startseite h1 { text-align: center; font-size: 1.6rem; color: #fff; }
.startseite .untertitel { text-align: center; color: #fdba74; margin: 0 0 12px; }
.startseite .gross { border-color: rgba(255,255,255,.15); background: #3a3a3a; color: #fff; justify-content: flex-start; gap: 14px; padding-left: 22px; }
.startseite .gross.primaer { background: var(--primaer); border-color: var(--primaer); }
.startseite .gross:active { background: #444; }
.startseite .gross .pfeil { margin-left: auto; color: var(--gold); font-size: 1.6rem; }
.startseite .gross.primaer .pfeil { color: #fff; }
.startseite .demo { border-radius: 10px; color: #6b3d00; }
.start-fuss { text-align: center; color: #9a9a9a; font-size: .85rem; margin-top: 12px; }

/* ---------- Kellner: Suche, Favoriten, Notiz, Revier ---------- */
.suche-box { position: relative; margin-bottom: 8px; }
#suche { width: 100%; font: inherit; font-size: 1.1rem; padding: 12px 44px 12px 14px; border: 2px solid var(--rand); border-radius: 12px; background: var(--karte); -webkit-appearance: none; }
#suche:focus { outline: none; border-color: var(--gold); }
.suche-leeren { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--linie); font-size: 1rem; }
.favoriten { background: var(--gold-hell); margin: 0 -14px 6px; padding: 8px 14px 4px; border-radius: 12px; }
.favoriten h3 { color: var(--gold-text) !important; }
.artikel { flex-wrap: wrap; }
.notiz-zeile { display: none; flex-basis: 100%; align-items: center; gap: 8px; padding: 2px 0 4px; }
.artikel.gewaehlt .notiz-zeile { display: flex; }
.notiz-knopf { border: 1px dashed var(--gold); background: var(--karte); color: var(--gold-text); border-radius: 8px; padding: 6px 10px; font-size: .9rem; font-weight: 600; }
.notiz-text { font-weight: 700; color: var(--gold-text); overflow-wrap: anywhere; }
.artikel.hat-notiz .notiz-zeile { background: var(--gold-hell); border-radius: 8px; padding: 4px 6px; }
.pos-notiz { font-size: .85em; font-weight: 800; background: var(--gelb); border-left: 5px solid var(--gelb-rand); border-radius: 6px; padding: 2px 8px; margin: 4px 0 2px; }
.revier-titel { font-size: .85rem; font-weight: 700; color: var(--gold-text); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.revier-umschalter { width: 100%; margin-top: 10px; padding: 10px; border: 2px dashed var(--rand); border-radius: 12px; background: var(--karte); font-weight: 600; color: var(--leise); }
.andere-tische { margin-top: 10px; }

/* ---------- Admin ---------- */
.admin-inhalt { max-width: 900px; margin: 0 auto; padding: 12px 12px 120px; }
.admin-reiter { position: static; }
.quelle { margin: 4px 0 10px; }
.admin-fehler { background: var(--tint-rot); border: 2px solid var(--rot); color: var(--rot-text); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.admin-fehler ul { margin: 6px 0 0; padding-left: 20px; }
.admin-liste { display: grid; gap: 8px; margin-bottom: 12px; }
.admin-kat { margin: 14px 0 0; font-size: .9rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-text); }
.admin-zeile { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; background: var(--karte); border-radius: 12px; padding: 10px 12px; border: 1px solid var(--rand); }
.admin-zeile label, .admin-feld { display: grid; gap: 2px; font-size: .78rem; color: var(--leise); flex: 1 1 90px; min-width: 0; }
.admin-zeile label.breit { flex: 3 1 180px; }
.admin-zeile label.schmal { flex: 0 0 70px; }
.admin-zeile input, .admin-zeile select, .admin-feld input {
  font: inherit; font-size: 1rem; color: var(--text); padding: 8px 10px; border: 2px solid var(--rand); border-radius: 10px; background: var(--karte); width: 100%; min-width: 0; }
.admin-zeile input:focus, .admin-zeile select:focus, .admin-feld input:focus { outline: none; border-color: var(--gold); }
.admin-zeile .ungueltig { border-color: var(--rot); background: var(--tint-rot); }
.zeilen-knoepfe { display: flex; gap: 4px; }
.zeilen-knoepfe button { width: 42px; height: 42px; border: 2px solid var(--rand); border-radius: 10px; background: var(--karte); font-size: 1.1rem; }
.zeilen-knoepfe .loeschen { border-color: #f3c0c0; }
.admin-werkzeuge { display: grid; gap: 10px; }
.admin-werkzeuge h2 { margin: 0; }
.datei-knopf { cursor: pointer; }
.warnung-knopf { color: var(--rot); border-color: #f3c0c0; }
.admin-fuss #status { flex: 1; font-weight: 600; color: var(--leise); }
.admin-fuss #status.dirty { color: var(--gold-text); }
.admin-fuss .gross { width: auto; min-width: 0; }
@media (max-width: 420px) { .admin-fuss .gross { padding: 10px 12px; font-size: 1rem; } .admin-fuss #status { font-size: .85rem; } }
.start-admin { text-align: center; margin-top: 4px; }
.start-admin a { color: #9a9a9a; font-size: .9rem; }

.snack-box { background: var(--gold-hell); border: 2px dashed var(--gold); border-radius: 12px; padding: 8px 12px; display: grid; gap: 4px; }
.snack-box h4 { margin: 2px 0; font-size: .95rem; color: var(--gold-text); }
.snack-box .kasse-zeile:first-of-type { border-top: 0; }
.snack-box .gross { margin-top: 6px; border-color: var(--gold); color: var(--gold-text); }

/* ---------- Eigenverzehr ---------- */
.eigen-titel { margin-top: 14px; color: var(--lila-text); }
.tisch-knopf.eigen { border-color: #c4b5fd; background: var(--tint-lila); }
.tisch-knopf.eigen.aktiv { border-color: #6d28d9; background: var(--tint-lila); }
.tisch-knopf.eigen b { font-size: 1.2rem; }
.tisch-gewaehlt.eigen { background: var(--tint-lila); border-color: #6d28d9; }
.eigen-hinweis { margin: 0; background: var(--tint-lila); color: var(--lila-text); border-radius: 10px; padding: 8px 12px; font-weight: 800; }
.eigen-band { margin: -14px -14px 10px; padding: 6px 14px; background: #6d28d9; color: #fff; font-weight: 800; letter-spacing: .05em; border-radius: var(--radius) var(--radius) 0 0; }
.eigen-ueberschrift { grid-column: 1 / -1; margin: 14px 0 0; color: var(--lila-text); }
.eigen-karte { border: 2px dashed #c4b5fd; }
.eigen-wert { color: var(--lila-text); }
.eigen-klein { color: var(--lila-text) !important; }
.admin-zeile label.haken { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--text); padding-bottom: 10px; }
.admin-zeile label.haken input { width: 22px; height: 22px; }

#seite-artikel .block { overflow-x: auto; }
@media (max-width: 480px) {
  .auswertung .gross-titel { font-size: 1.25rem; white-space: nowrap; }
  .auswertung .kopf { gap: 8px; }
  .auswertung .kopf-knopf { padding: 6px 10px; }
  #artikel-tabelle { font-size: .9rem; }
  #artikel-tabelle th, #artikel-tabelle td { padding: 6px 3px; }
}

/* Dunkelmodus: Feinheiten */
:root[data-theme="dunkel"] .kommentar, :root[data-theme="dunkel"] .pos-notiz { color: #111; }
:root[data-theme="dunkel"] .ziel-theke { color: #8ab4ff; }
:root[data-theme="dunkel"] .ziel-kueche { color: #fdba74; }
:root[data-theme="dunkel"] .overlay { background: rgba(0,0,0,.8); }
:root[data-theme="dunkel"] .favoriten { background: var(--gold-hell); }
:root[data-theme="dunkel"] .karte { box-shadow: none; border-color: var(--linie); }
:root[data-theme="dunkel"] .karte.alt { border-color: var(--orange); }
:root[data-theme="dunkel"] .karte.sehr-alt { border-color: var(--rot); }
:root[data-theme="dunkel"] .karte.neu { border-color: var(--gold); }
:root[data-theme="dunkel"] .stepper .plus { color: #fff; }
:root[data-theme="dunkel"] .demo { background: #4a3410; color: #ffd89a; }
:root[data-theme="dunkel"] .startseite .demo { color: #ffd89a; }
:root[data-theme="dunkel"] input, :root[data-theme="dunkel"] select, :root[data-theme="dunkel"] textarea { color: var(--text); background: var(--karte); }
:root[data-theme="dunkel"] .logo-knopf { background: #fff; }
@keyframes neu-dunkel { 50% { background: #3a2f12; } }
:root[data-theme="dunkel"] .karte.neu { animation-name: neu-dunkel; }

/* Design-Umschalter */
.design-wahl { display: flex; gap: 6px; justify-content: center; }
.design-wahl button { flex: 1; max-width: 120px; padding: 10px 8px; border-radius: 10px; border: 2px solid var(--rand); background: var(--karte); color: var(--text); font-weight: 600; }
.design-wahl button.aktiv { border-color: var(--gold); background: var(--gold-hell); }
.startseite .design-wahl button { background: #3a3a3a; color: #fff; border-color: rgba(255,255,255,.15); }
.startseite .design-wahl button.aktiv { border-color: var(--gold); background: #4a2a16; }
.kopf .design-knopf { background: none; border: 0; color: #e9d29b; font-size: 1.2rem; padding: 0 4px; }

/* ---------- Durchsagen ---------- */
.durchsage-overlay { z-index: 300; background: rgba(0,0,0,.85); }
.durchsage { width: 100%; max-width: 620px; background: var(--kopf); color: #fff; border: 4px solid var(--gold); border-radius: 22px;
  padding: 22px; display: grid; gap: 14px; text-align: center; animation: durchsage-rein .35s ease-out; }
.durchsage-kopf { color: var(--gold); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.durchsage-text { font-size: clamp(1.6rem, 6vw, 2.8rem); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.durchsage-von { color: #bbb; }
@keyframes durchsage-rein { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.vorlagen { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vorlagen button { padding: 10px 8px; border: 2px solid var(--rand); border-radius: 10px; background: var(--karte); text-align: left; font-size: .9rem; }
.dialog textarea { font-size: 1.1rem; }
#design-platz { margin-top: 4px; }
.station #design-platz { margin: 4px 0; }

/* ---------- Trinkgeld ---------- */
.trinkgeld-box { background: var(--gold-hell); border-radius: 12px; padding: 10px 12px; }
.trinkgeld-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.trinkgeld-knoepfe button { flex: 1 1 auto; padding: 10px 8px; border: 2px solid var(--gold); border-radius: 10px; background: var(--karte); color: var(--gold-text); font-weight: 700; font-size: .9rem; }
.tg-klein { color: var(--gold-text); font-weight: 600; }
.rueckgeld:empty { display: none; }
.teilbetrag input { width: 100%; min-width: 0; }
.kasse-karte, .kasse-karte > * { min-width: 0; }

/* ---------- Pause ---------- */
.pause-wahl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pause-eigen { display: flex; gap: 8px; }
.pause-eigen input { flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; padding: 10px 12px; border: 2px solid var(--rand); border-radius: 12px; background: var(--karte); color: var(--text); }
.pause-eigen .gross { width: auto; }
.pause-laeuft { margin: 0; font-size: 1.2rem; background: var(--gold-hell); border-radius: 10px; padding: 8px 12px; }

/* ---------- Werkzeugleiste Auswertung ---------- */
.werkzeugleiste { display: flex; flex-wrap: wrap; gap: 8px; max-width: 1200px; margin: 0 auto; padding: 10px 12px 0; }
.werkzeugleiste button { flex: 1 1 auto; min-height: 46px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--rand);
  background: var(--karte); color: var(--text); font-weight: 700; font-size: 1rem; white-space: nowrap; }
.werkzeugleiste #aktualisieren { flex: 0 0 auto; min-width: 52px; }
.werkzeugleiste #pause-knopf.pause-aktiv { background: var(--gold); border-color: var(--gold); color: #111; font-variant-numeric: tabular-nums; }

.admin-zeile label.ganz { flex: 1 1 100%; }
.admin-zeile textarea { font: inherit; font-size: 1rem; color: var(--text); padding: 8px 10px; border: 2px solid var(--rand); border-radius: 10px; background: var(--karte); width: 100%; resize: vertical; }
.admin-zeile textarea:focus { outline: none; border-color: var(--gold); }
.admin-zeile textarea.ungueltig { border-color: var(--rot); }
.admin-reiter { overflow-x: auto; scrollbar-width: none; }
.admin-reiter button { flex: 1 0 auto; padding: 14px 10px; font-size: .95rem; }
@media (max-width: 420px) { .admin-reiter button { padding: 12px 7px; font-size: .88rem; } }
.admin-feld { margin-bottom: 10px; }
.admin-feld input.ungueltig { border-color: var(--rot); }

/* ---------- Startgeld ---------- */
.start-zeile { flex-wrap: wrap; background: var(--gold-hell); margin: 0 -8px; padding: 8px !important; border-radius: 10px; }
.start-zeile .kasse-name > span small { color: var(--leise); font-weight: 400; }
.personen-wahl { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .9rem; color: var(--text); }
.personen-wahl button { width: 34px; height: 34px; border-radius: 8px; border: 2px solid var(--gold); background: var(--karte); color: var(--gold-text); font-weight: 800; font-size: 1.1rem; line-height: 1; }
.personen-wahl b { min-width: 1.4em; text-align: center; font-size: 1.1rem; }
.anteil-wahl { flex-basis: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; font-weight: 600; }

/* ---------- Anleitung ---------- */
.hilfe .zurueck-knopf { margin-left: auto; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 700; white-space: nowrap; }
.hilfe-reiter { position: sticky; top: 0; z-index: 15; overflow-x: auto; scrollbar-width: none; }
.hilfe-reiter button { flex: 1 0 auto; padding: 13px 10px; font-size: .95rem; white-space: nowrap; }
.hilfe-inhalt { max-width: 760px; margin: 0 auto; padding: 14px 16px 60px; line-height: 1.5; }
.hilfe-inhalt h2 { font-size: 1.35rem; margin: 6px 0 12px; }
.hilfe-inhalt h3 { font-size: 1.05rem; margin: 22px 0 8px; color: var(--gold-text); text-transform: uppercase; letter-spacing: .04em; }
.schritte { counter-reset: schritt; list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.schritte li { counter-increment: schritt; position: relative; background: var(--karte); border-radius: 12px; padding: 12px 14px 12px 54px; border: 1px solid var(--linie); }
.schritte li::before { content: counter(schritt); position: absolute; left: 12px; top: 11px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--gold); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.punkte { padding-left: 20px; margin: 0; display: grid; gap: 8px; }
.tipp { display: block; margin-top: 6px; font-size: .92rem; background: var(--gold-hell); border-radius: 8px; padding: 6px 10px; }
.hinweis-box { background: var(--tint-gruen); border-left: 5px solid var(--primaer); border-radius: 10px; padding: 10px 14px; }
.hilfe details { background: var(--karte); border: 1px solid var(--linie); border-radius: 12px; margin-bottom: 8px; }
.hilfe summary { padding: 14px 16px; font-weight: 700; cursor: pointer; list-style: none; }
.hilfe summary::-webkit-details-marker { display: none; }
.hilfe summary::before { content: "▸ "; color: var(--gold); }
.hilfe details[open] summary::before { content: "▾ "; }
.hilfe details p { margin: 0; padding: 0 16px 14px; }
.hilfe-fuss { text-align: center; margin-top: 30px; }
.hilfe-link { display: inline-block; margin: 0 0 10px; color: var(--gold-text); font-weight: 700; text-decoration: none; }
.kopf .hilfe-knopf { color: #e9d29b; text-decoration: none; font-size: 1.15rem; padding: 0 4px; }

/* ---------- Kurz-Tour ---------- */
.tour { max-width: 400px; text-align: center; }
.tour-symbol { font-size: 3.2rem; line-height: 1; }
.tour h2 { margin: 6px 0 0; }
.tour p { margin: 0; color: var(--leise); font-size: 1.05rem; }
.tour-punkte { display: flex; justify-content: center; gap: 6px; }
.tour-punkte i { width: 9px; height: 9px; border-radius: 50%; background: var(--rand); }
.tour-punkte i.an { background: var(--gold); }

/* ---------- Übungsmodus ---------- */
.uebung-band { position: relative; z-index: 90; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  padding: 8px 12px; background: repeating-linear-gradient(45deg, #6d28d9 0 14px, #5b21b6 14px 28px); color: #fff; font-size: .9rem; }
.uebung-band span { flex: 1 1 220px; }
.uebung-band button { border: 0; border-radius: 8px; padding: 7px 10px; font-weight: 700; background: rgba(255,255,255,.95); color: #4c1d95; white-space: nowrap; }
.startseite .demo-start { background: #4c1d95 !important; border-color: #6d28d9 !important; }
body.beamer .uebung-band { font-size: 14px; }
body.uebung #demo-hinweis { display: none !important; }

/* ---------- Abend zurücksetzen ---------- */
.abend-reset { border: 2px solid #f3c0c0; }
.loesch-knopf { background: var(--rot) !important; border-color: var(--rot) !important; color: #fff !important; }

/* ---------- Ausgaben / Gesamtübersicht ---------- */
.ausgabe-felder { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.ausgabe-felder label { display: grid; gap: 2px; flex: 1 1 130px; font-size: .8rem; color: var(--leise); min-width: 0; }
.ausgabe-felder label.breit { flex: 2 1 220px; }
.ausgabe-felder input, .ausgabe-felder select { font: inherit; font-size: 1rem; padding: 9px 10px; border: 2px solid var(--rand); border-radius: 10px;
  background: var(--karte); color: var(--text); width: 100%; min-width: 0; }
.ausgabe-felder input:focus, .ausgabe-felder select:focus { outline: none; border-color: var(--gold); }
.ausgabe-form h2, .abschluss h2 { margin-top: 0; }
.ausgaben-tabelle td small { color: var(--leise); }
.ausgaben-tabelle .aktionen { white-space: nowrap; width: 1%; }
.ausgaben-tabelle .aktionen button { border: 1px solid var(--rand); background: var(--karte); border-radius: 8px; padding: 6px 8px; margin-left: 4px; }
.abschluss-tabelle .abschnitt td { padding-top: 14px; font-weight: 800; color: var(--gold-text); text-transform: uppercase; font-size: .8rem; letter-spacing: .05em; border-bottom: 0; }
.abschluss-tabelle .ergebnis td { font-size: 1.25rem; border-top: 3px double var(--rand); }
.abschluss-tabelle .ergebnis.plus td { color: var(--primaer); }
.abschluss-tabelle .ergebnis.minus td { color: var(--rot); }
.abschluss h3 { margin: 16px 0 6px; font-size: 1rem; }
.auswertung-reiter { overflow-x: auto; scrollbar-width: none; }
.auswertung-reiter button { flex: 1 0 auto; white-space: nowrap; }

/* ---------- Bestellverlauf in der Kasse ---------- */
.verlauf { border-top: 1px solid var(--linie); padding-top: 8px; }
.verlauf summary { cursor: pointer; font-weight: 700; padding: 8px 0; list-style: none; }
.verlauf summary::-webkit-details-marker { display: none; }
.verlauf summary::before { content: "▸ "; color: var(--gold); }
.verlauf[open] summary::before { content: "▾ "; }
.verlauf-liste { list-style: none; margin: 0; padding: 0; }
.verlauf-liste li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.verlauf-liste li > div { flex: 1; display: grid; min-width: 0; }
.verlauf-liste li span { font-size: .85rem; color: var(--leise); }
.verlauf-liste li small { font-size: .95rem; color: var(--text); overflow-wrap: anywhere; }
.raus-knopf { flex: none; border: 2px solid #f3c0c0; background: var(--karte); color: var(--rot); border-radius: 10px; padding: 8px 10px; font-weight: 700; white-space: nowrap; }

/* ---------- Tischfunk: Anmelden, Team, Einladungen ---------- */
.startseite .untertitel.klein { font-size: .95rem; margin-top: -8px; }
.start-logo { border: none !important; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.logo-knopf { background: transparent; padding: 0; }
.logo-knopf img { height: 44px; border-radius: 10px; }
:root[data-theme="dunkel"] .logo-knopf { background: transparent; }
.anmelde-block { background: var(--karte); color: var(--text); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.anmelde-block h2 { margin: 0; }
.anmelde-block p { color: var(--leise); margin: 0; }
.anmelde-block .admin-feld input { font-size: 1.05rem; }
.admin-feld input, .admin-feld select { width: 100%; padding: 12px; border: 1px solid var(--rand); border-radius: 10px; background: var(--karte); color: var(--text); font: inherit; }
.startseite .admin-fehler, .anmelde-seite .admin-fehler { background: var(--tint-rot); color: var(--rot-text); border-radius: 10px; padding: 10px 12px; }
.start-admin a { color: #fdba74; }
.einladen-knoepfe { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.einladungen { display: grid; gap: 10px; }
.einladung { border: 1px solid var(--rand); border-radius: 12px; padding: 10px 12px; background: var(--karte); }
.einladung-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.einladung-kopf small { color: var(--leise); }
.einladung-kopf .link { background: none; border: none; color: var(--gold-text); text-decoration: underline; padding: 4px 0; }
.einladung-kopf .link.warnung { color: var(--rot); }
.qr-gross { display: grid; justify-items: center; gap: 6px; margin-top: 10px; }
.qr-gross svg { width: min(320px, 80vw); height: auto; background: #fff; border-radius: 12px; }
.qr-link { overflow-wrap: anywhere; text-align: center; }
.team-zeile { align-items: center; }
.team-name { flex: 1 1 140px; min-width: 0; }
.abend-aktuell { font-size: 1.2rem; margin: 0; }
.admin-werkzeuge .haken { display: flex; gap: 8px; align-items: center; font-size: .95rem; }
.admin-werkzeuge .haken input { width: 22px; height: 22px; }
.warteschlange { margin: 10px 12px 0; padding: 12px 14px; border-radius: 12px; background: var(--gelb); border: 2px solid var(--gelb-rand); color: #4a3a00; display: grid; gap: 8px; }
.warteschlange .gross { justify-self: start; min-height: 44px; padding: 6px 16px; }
.logo-vorschau { display: flex; justify-content: center; padding: 8px; }
.logo-vorschau img { width: 120px; height: 120px; object-fit: contain; border-radius: 18px; background: #fff; border: 1px solid var(--rand); }
.logo-knopf img, .b-logo { object-fit: contain; }
.logo-knopf img { width: 44px; background: #fff; }
.start-logo { aspect-ratio: 1; object-fit: contain; background: #fff; }
.erste-schritte { border: 2px solid var(--gold); background: var(--gold-hell); }
.erste-schritte h2 small { font-weight: normal; color: var(--leise); margin-left: 6px; }
.schritt-liste { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 8px; }
.schritt-liste li.fertig { color: var(--leise); }
.schritt-liste a { color: var(--gold-text); font-weight: 600; }
.erste-schritte .link { background: none; border: none; color: var(--leise); text-decoration: underline; padding: 4px 0; }
#vorlage-laden { margin-bottom: 10px; }
.start-fuss a { color: #fdba74; }
.rueck-arten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rueck-arten label { display: flex; align-items: center; gap: 8px; border: 1px solid var(--rand); border-radius: 10px; padding: 10px; font-size: .95rem; }
.rueck-arten input { width: 20px; height: 20px; }
.rueckmeldung textarea { width: 100%; font: inherit; padding: 10px; border: 1px solid var(--rand); border-radius: 10px; background: var(--karte); color: var(--text); }
.dialog { color: var(--text); }
.dialog h2 { color: var(--text); }
.haken.zustimmung { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.4; color: var(--text); }
.haken.zustimmung input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.haken.zustimmung a { color: var(--gold-text); }
.zustimmung-block { border: 2px solid var(--gold); background: var(--gold-hell); margin: 12px 12px 0; }

/* ---------- Kellner: schneller bedienen ---------- */
.kat-leiste {
  position: sticky; top: 110px; z-index: 12; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: -4px -14px 8px; padding: 6px 14px; background: var(--karte); border-bottom: 1px solid var(--linie);
}
.kat-leiste::-webkit-scrollbar { display: none; }
.kat-leiste button {
  flex: none; padding: 8px 12px; border: 1px solid var(--rand); border-radius: 999px; background: var(--bg);
  color: var(--text); font-size: .9rem; font-weight: 600; white-space: nowrap;
}
.stepper .anzahl { width: auto; min-width: 34px; border: 0; background: none; padding: 0; color: var(--text); }
.zuletzt-tische { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.zuletzt-tische span { font-size: .85rem; font-weight: 700; color: var(--leise); }
.zuletzt-knopf {
  padding: 10px 14px; border: 2px solid var(--gold); border-radius: 999px; background: var(--gold-hell);
  color: var(--gold-text); font-weight: 700; font-size: 1rem;
}
.menge-raster { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 10px 0 12px; }
.menge-raster .gross { min-height: 56px; padding: 8px; font-size: 1.3rem; font-weight: 800; }
.notiz-vorschlaege { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.notiz-vorschlaege button {
  padding: 8px 12px; border: 1px dashed var(--gold); border-radius: 999px; background: var(--karte);
  color: var(--gold-text); font-weight: 600;
}

/* ---------- Küche/Theke: Summenleiste, abhaken, Schriftgröße ---------- */
.summen-leiste {
  position: sticky; z-index: 15; display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  background: var(--karte); border-bottom: 2px solid var(--rand);
}
.summen-inhalt { flex: 1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.summen-inhalt::-webkit-scrollbar { display: none; }
.summen-titel { flex: none; font-size: .85rem; font-weight: 700; color: var(--leise); text-transform: uppercase; letter-spacing: .04em; }
.summe-chip {
  flex: none; padding: 6px 10px; border-radius: 999px; background: var(--gold-hell); color: var(--text);
  font-size: 1rem; white-space: nowrap;
}
.summe-chip b { color: var(--gold-text); }
.schrift-knopf {
  flex: none; width: 46px; height: 40px; border: 1px solid var(--rand); border-radius: 10px; background: var(--bg);
  color: var(--text); font-weight: 800; font-size: 1.15rem; line-height: 1;
}
.schrift-knopf small { font-size: .7em; }
.station .karte .positionen li { cursor: pointer; }
.station .karte .positionen li.abgehakt { opacity: .45; text-decoration: line-through; }
.station .karte .positionen li.abgehakt b::before { content: "✓ "; color: var(--gruen); }
body.station.schrift-1 .liste { zoom: 1.2; }
body.station.schrift-2 .liste { zoom: 1.45; }

/* ---------- Admin: Kategorien, Vorschau ---------- */
.admin-kat { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kat-knoepfe { display: flex; gap: 4px; text-transform: none; letter-spacing: 0; }
.kat-knoepfe button { width: 36px; height: 34px; border: 1px solid var(--rand); border-radius: 8px; background: var(--karte); color: var(--text); font-size: 1rem; }
.kat-knoepfe button:disabled, .zeilen-knoepfe button:disabled { opacity: .35; }
.vorschau h3 { margin: 10px 0 2px; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--leise); }
.vorschau ul { list-style: none; margin: 0; padding: 0; }
.vorschau li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--linie); }
.vorschau li small { color: var(--leise); }

/* ---------- Einrichtungs-Assistent ---------- */
.assistent .tour-punkte { justify-content: center; }
.assistent .auswahl.gewaehlt { border-color: var(--gold); background: var(--gold-hell); }
.anzahl-wahl { display: flex; gap: 8px; align-items: center; }
.anzahl-wahl .gross { width: 64px; flex: none; font-size: 1.6rem; padding: 0; }
.anzahl-wahl input { flex: 1; min-width: 0; text-align: center; font: inherit; font-size: 1.8rem; font-weight: 800; padding: 8px;
  border: 2px solid var(--rand); border-radius: 12px; background: var(--karte); color: var(--text); }
.assi-artikel { display: grid; gap: 2px; max-height: 46vh; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.assi-zeile { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--linie); }
.assi-zeile input[type="checkbox"] { width: 22px; height: 22px; flex: none; }
.assi-zeile span { flex: 1; }
.assi-zeile small { color: var(--leise); }
.assi-zeile.aus span { opacity: .45; text-decoration: line-through; }
.assi-preis { width: 72px; flex: none; font: inherit; text-align: right; padding: 8px; border: 2px solid var(--rand); border-radius: 10px;
  background: var(--karte); color: var(--text); }

/* ==========================================================================
   Design 2026 – Frisch / Edel. Steht bewusst am Ende und überschreibt Älteres.
   ========================================================================== */
body { font-family: var(--schrift); font-size: 17px; line-height: 1.4; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .gross-titel, .dialog h2, .tour h2 { font-family: var(--titel-schrift); letter-spacing: -.01em; }
h2 { font-weight: 700; }
input, select, textarea { font-family: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--gold) 55%, transparent); outline-offset: 2px; }

/* ---------- Kopfzeile: hell und ruhig (Frisch) bzw. dunkel (Edel) ---------- */
.kopf {
  background: var(--kopf-bg); color: var(--kopf-text); border-bottom: 1px solid var(--linie);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--linie);
}
.kopf .link { color: var(--gold-text); font-weight: 600; text-decoration: none; }
.home-knopf, .kopf-knopf, .ausverkauft-knopf, .hilfe .zurueck-knopf {
  background: var(--kopf-knopf); color: var(--kopf-text); border-radius: 12px;
}
.home-knopf:active, .kopf-knopf:active, .ausverkauft-knopf:active { background: var(--gold-hell); }
.kopf .design-knopf { color: var(--kopf-text); }
.ausverkauft-knopf.hat { background: var(--tint-rot); color: var(--rot-text); }
body.offline .kopf { background: var(--rot); color: #fff; }
.logo-knopf { height: 44px; padding: 0; background: transparent; }
.logo-knopf img { height: 44px; width: 44px; border-radius: 12px; box-shadow: var(--schatten); }
.zaehler { font-family: var(--titel-schrift); }

/* Live-Anzeige als Pille mit pulsierendem Punkt */
.verbindung { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; }
.verbindung::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.verbindung.gruen { background: var(--tint-gruen); color: var(--gruen); }
.verbindung.gruen::before { animation: live-puls 1.8s ease-out infinite; }
.verbindung.gelb { background: var(--gelb); color: var(--orange-text); }
.verbindung.rot { background: #fff; color: #b91c1c; animation: none; }
@keyframes live-puls { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 60%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }

/* ---------- Knöpfe, Blöcke, Karten ---------- */
.gross { border: 1px solid var(--rand); border-radius: 16px; box-shadow: var(--schatten); transition: transform .12s ease, box-shadow .2s, background .2s; }
.gross:active:not(:disabled) { transform: scale(.98); }
.gross.primaer { background: var(--primaer); border-color: var(--primaer); color: var(--primaer-text);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--primaer) 80%, transparent); }
.gross.primaer:active { background: var(--primaer-dunkel); }
.block { border-radius: var(--radius); box-shadow: var(--schatten); }
.karte { border-radius: var(--radius); box-shadow: var(--schatten); border-width: 2px; }
:root[data-theme="dunkel"] .karte { box-shadow: var(--schatten); border-color: transparent; }
.reiter { background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.reiter button { font-weight: 700; border-bottom-width: 3px; transition: color .2s, border-color .2s; }
.admin-feld input, .admin-feld select, #suche, textarea { border-radius: 14px; border: 1px solid var(--rand); background: var(--karte); color: var(--text); box-shadow: inset 0 1px 2px rgba(16, 24, 40, .04); }
#suche:focus, textarea:focus, .admin-feld input:focus, .admin-feld select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-hell); }
.kommentar { border-radius: 12px; }
:root[data-theme="dunkel"] .kommentar, :root[data-theme="dunkel"] .pos-notiz { color: #fde68a; }
.demo { border-radius: 0; }

/* ---------- Dialoge: am Handy als Blatt von unten ---------- */
.overlay { background: rgba(10, 12, 18, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: schleier-rein .2s ease-out; }
:root[data-theme="dunkel"] .overlay { background: rgba(0, 0, 0, .6); }
.dialog { border-radius: 26px; box-shadow: var(--schatten-gross); animation: dialog-rein .28s cubic-bezier(.2, 1, .3, 1); }
@keyframes schleier-rein { from { opacity: 0; } }
@keyframes dialog-rein { from { transform: translateY(24px) scale(.98); opacity: 0; } }
@media (max-width: 600px) {
  .overlay:not(.durchsage-overlay) { align-items: flex-end; padding: 0; }
  .overlay:not(.durchsage-overlay) > .dialog { max-width: none; border-radius: 26px 26px 0 0; padding-bottom: max(20px, env(safe-area-inset-bottom)); max-height: 88vh;
    animation: blatt-rein .32s cubic-bezier(.2, 1, .3, 1); }
  .overlay:not(.durchsage-overlay) > .dialog::before { content: ""; width: 42px; height: 5px; border-radius: 3px; background: var(--rand); justify-self: center; margin: -8px 0 2px; }
}
@keyframes blatt-rein { from { transform: translateY(100%); } }

/* ---------- Hinweise (Toasts) ---------- */
.toast { border-radius: 18px; box-shadow: var(--schatten-gross); animation: toast-rein .32s cubic-bezier(.2, 1.2, .4, 1); }
@keyframes toast-rein { from { transform: translateY(20px) scale(.97); opacity: 0; } }
.toast.ok { background: var(--gruen-dunkel); color: #fff; }
.toast.fertig { background: #0b7d57; border: 0; box-shadow: 0 0 0 4px #fff, var(--schatten-gross); }
.toast.storno { border: 0; box-shadow: 0 0 0 4px #fff, var(--schatten-gross); background: #dc2626; }
:root[data-theme="dunkel"] .toast.fertig { box-shadow: 0 0 0 3px #34d399, var(--schatten-gross); }
:root[data-theme="dunkel"] .toast.storno { box-shadow: 0 0 0 3px #f87171, var(--schatten-gross); }
.toast.neu { background: var(--kopf); color: #fff; border: 0; box-shadow: 0 0 0 3px var(--gold), var(--schatten-gross); }
.toast button { border-radius: 12px; }

/* ---------- Design-Wahl (Frisch / Edel / Automatisch) ---------- */
.design-wahl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.design-wahl button { max-width: none; display: grid; justify-items: center; gap: 6px; padding: 10px 6px; border-radius: 16px; border: 1px solid var(--rand);
  background: var(--karte); color: var(--text); font-weight: 700; font-size: .9rem; box-shadow: var(--schatten); }
.design-wahl button.aktiv { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); background: var(--karte); }
.design-wahl .muster { width: 44px; height: 30px; border-radius: 9px; display: flex; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); }
.design-wahl .muster i { flex: 1; }
.design-wahl small { font-weight: 500; color: var(--leise); font-size: .72rem; margin-top: -4px; }
.startseite .design-wahl button { background: var(--karte); color: var(--text); border-color: var(--rand); }
.startseite .design-wahl button.aktiv { border-color: var(--gold); background: var(--karte); }

/* Symbole (Linien-Icons) */
.sym { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.22em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Kellner: Tische ---------- */
.tisch-raster { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 10px; }
.tisch-knopf { position: relative; min-height: 70px; border: 0; border-radius: 18px; background: var(--karte); box-shadow: var(--schatten); transition: transform .15s, background .2s, color .2s; }
.tisch-knopf b { font-family: var(--titel-schrift); font-size: 1.45rem; }
.tisch-knopf:active { transform: scale(.96); }
.tisch-knopf.aktiv { background: var(--primaer); color: var(--primaer-text); }
.tisch-knopf.aktiv span { color: inherit; opacity: .85; }
.tisch-knopf.hat-offen::after { content: ""; position: absolute; top: 8px; right: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--karte); }
.tisch-gewaehlt { border: 0; border-radius: 18px; background: var(--primaer); color: var(--primaer-text); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--primaer) 80%, transparent); font-family: var(--titel-schrift); }
.tisch-gewaehlt button { background: rgba(255, 255, 255, .22); color: inherit; border-radius: 12px; }
:root[data-theme="dunkel"] .tisch-gewaehlt button { background: rgba(0, 0, 0, .14); }
.zuletzt-knopf { border: 0; background: var(--gold-hell); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent); }
.wiederholen { border-radius: 16px; border-width: 1px; }
.kellner .block { background: transparent; box-shadow: none; padding: 6px 2px; }
.kellner .block h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .07em; color: var(--leise); font-family: var(--schrift); font-weight: 800; }

/* ---------- Kellner: Artikel als Kacheln ---------- */
.kat-leiste { background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 0; margin: -4px -4px 8px; padding: 8px 4px; }
.kat-leiste button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: var(--karte); box-shadow: var(--schatten); color: var(--leise); }
.kat-leiste button i { width: 8px; height: 8px; border-radius: 50%; background: var(--farbe, var(--gold)); }
.kat-leiste button:active { color: var(--text); box-shadow: inset 0 0 0 2px var(--farbe, var(--gold)); }
#artikel .kategorie { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 6px; }
#artikel .kategorie h3 { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 14px 2px 0; font-family: var(--schrift); font-weight: 800; font-size: .74rem; }
#artikel .kategorie h3::after { content: ""; flex: 1; height: 1px; background: var(--linie); }
#artikel .kategorie:first-child h3 { margin-top: 4px; }
#artikel .favoriten { background: none; margin: 0; padding: 0; }
.artikel { position: relative; display: block; border: 0; padding: 0; margin: 0; border-radius: 20px; background: var(--karte); box-shadow: var(--schatten); transition: transform .12s ease, box-shadow .2s; }
.artikel:active { transform: scale(.97); }
.artikel.gewaehlt { margin: 0; padding: 0; background: var(--karte); box-shadow: inset 0 0 0 2px var(--farbe), var(--schatten); }
.artikel-name { width: 100%; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-content: start; justify-items: start; padding: 12px 12px 12px; border: 0; background: none; text-align: left; color: var(--text); }
.kachel-symbol { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: var(--farbe); background: color-mix(in srgb, var(--farbe) 15%, transparent); }
.kachel-symbol .sym { width: 24px; height: 24px; }
.kachel-name { font-family: var(--titel-schrift); font-weight: 700; font-size: 1.02rem; line-height: 1.2; overflow-wrap: anywhere; padding-right: 4px; }
.artikel.gewaehlt .artikel-name { font-weight: inherit; }
.kachel-meta { width: 100%; display: flex; justify-content: space-between; gap: 8px; font-variant-numeric: tabular-nums; }
.kachel-meta small { color: var(--leise); font-size: .8rem; }
.kachel-meta .preis { color: var(--text); font-weight: 700; font-size: .85rem; }
.artikel .anzahl { position: absolute; top: 10px; right: 10px; min-width: 32px; height: 32px; padding: 0 9px; border: 0; border-radius: 999px; background: var(--farbe); color: #fff;
  font: 800 1rem/32px var(--schrift); text-align: center; transform: scale(0); transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
:root[data-theme="dunkel"] .artikel .anzahl { color: #111; }
.artikel.gewaehlt .anzahl { transform: scale(1); }
.artikel .anzahl.pop { animation: zahl-pop .32s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes zahl-pop { 40% { transform: scale(1.35); } }
.artikel .minus { position: absolute; top: 12px; right: 52px; width: 30px; height: 30px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--bg); color: var(--text); opacity: 0; pointer-events: none; transition: opacity .2s; }
.artikel .minus .sym { width: 16px; height: 16px; }
.artikel.gewaehlt .minus { opacity: 1; pointer-events: auto; }
.artikel .notiz-zeile { padding: 0 12px 12px; gap: 6px; flex-wrap: wrap; }
.artikel .notiz-knopf { border-radius: 10px; padding: 5px 9px; font-size: .82rem; }
.artikel .notiz-text { font-size: .85rem; }
.artikel.ausverkauft { opacity: .55; }
.artikel.ausverkauft .kachel-name { text-decoration: line-through; }
.artikel.ausverkauft::after { content: "AUSVERKAUFT"; position: absolute; top: 12px; right: 12px; font-size: .62rem; font-weight: 800; letter-spacing: .06em; color: #fff; background: var(--rot); border-radius: 6px; padding: 2px 6px; }

/* ---------- Kellner: Warenkorb-Leiste unten ---------- */
.kellner .fusszeile { left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); max-width: 700px; margin: 0 auto; border: 0; border-radius: 22px;
  padding: 10px 10px 10px 12px; background: var(--primaer); color: var(--primaer-text); box-shadow: 0 16px 34px -12px color-mix(in srgb, var(--primaer) 75%, transparent);
  transition: transform .35s cubic-bezier(.2, 1.2, .4, 1), opacity .25s; }
.kellner .fusszeile.leer { transform: translateY(150%); opacity: 0; pointer-events: none; }
.kellner .fusszeile #summe { display: flex; align-items: center; gap: 12px; min-width: 0; }
.korb-zahl { flex: none; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, .22); }
:root[data-theme="dunkel"] .korb-zahl { background: rgba(0, 0, 0, .14); }
.korb-text { display: grid; line-height: 1.2; min-width: 0; }
.korb-text b { font-family: var(--titel-schrift); font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.korb-text small { opacity: .9; font-size: .8rem; font-variant-numeric: tabular-nums; }
.kellner .fusszeile #absenden { min-width: 0; min-height: 48px; padding: 8px 18px; border: 0; border-radius: 16px; background: var(--karte); color: var(--gold-text); box-shadow: none; font-size: 1.02rem; }
.kellner .fusszeile #absenden:disabled { opacity: .85; }

/* Kontrollansicht vor dem Senden */
.dialog .ziel-kueche, .dialog .ziel-theke, .dialog .ziel-erfassen { font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--leise); }
.dialog .summe-dialog { font-family: var(--titel-schrift); font-size: 1.25rem; font-weight: 700; color: var(--text); }

/* Erfolgs-Häkchen nach dem Senden */
.erfolg-anzeige { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; align-content: center; gap: 12px; text-align: center; pointer-events: none;
  background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: schleier-rein .2s ease-out; transition: opacity .35s; }
.erfolg-anzeige.weg { opacity: 0; }
.erfolg-anzeige svg { width: 104px; height: 104px; }
.erfolg-anzeige circle { fill: color-mix(in srgb, var(--gruen) 14%, transparent); stroke: var(--gruen); stroke-width: 3; }
.erfolg-anzeige path { fill: none; stroke: var(--gruen); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: haken-zeichnen .45s .12s ease-out forwards; }
@keyframes haken-zeichnen { to { stroke-dashoffset: 0; } }
.erfolg-anzeige b { font-family: var(--titel-schrift); font-size: 1.5rem; }
.erfolg-anzeige small { color: var(--leise); font-size: 1rem; }

/* ---------- Küche & Theke: Tickets ---------- */
.station .liste { gap: 14px; }
.karte-huelle { position: relative; border-radius: var(--radius); min-width: 0; }
.wisch-grund { position: absolute; inset: 0; border-radius: var(--radius); background: var(--gruen); color: #fff; display: flex; align-items: center; gap: 8px;
  padding-left: 22px; font-family: var(--titel-schrift); font-weight: 700; font-size: 1.1rem; }
:root[data-theme="dunkel"] .wisch-grund { color: #04261b; }
.station .karte { position: relative; touch-action: pan-y; transition: transform .25s ease, opacity .25s ease; border: 0; display: grid; gap: 8px; }
.station .karte.raus { opacity: 0; }
.station .karte header { gap: 4px 10px; }
.station .karte .tisch { font-family: var(--titel-schrift); font-size: 1.7rem; letter-spacing: -.01em; }
.station .karte .meta { margin: 0; font-size: .9rem; }
.station .karte .alter { font-weight: 700; color: var(--gruen); font-variant-numeric: tabular-nums; }
.wartebalken { height: 7px; border-radius: 4px; background: var(--linie); overflow: hidden; }
.wartebalken i { display: block; height: 100%; border-radius: 4px; background: var(--gruen); transition: width 1s linear, background .4s; }
.karte.alt .wartebalken i { background: var(--orange); }
.karte.sehr-alt .wartebalken i { background: var(--rot); }
.karte.alt, .karte.sehr-alt { border: 0; }
.karte.alt .alter { color: var(--orange-text); }
.karte.sehr-alt .alter { color: var(--rot); }
.karte.sehr-alt { box-shadow: 0 0 0 2px color-mix(in srgb, var(--rot) 60%, transparent), var(--schatten); }
.station .karte .positionen { margin: 0; font-size: 1.3rem; }
.station .karte .positionen li { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; padding: 8px 4px; border-bottom: 1px solid var(--linie); border-radius: 8px; }
.station .karte .positionen li b { min-width: 2ch; font-family: var(--titel-schrift); color: var(--gold-text); font-variant-numeric: tabular-nums; }
.station .karte .positionen li .pos-notiz { flex-basis: 100%; order: 3; }
.haken-box { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--rand); display: grid; place-items: center; color: transparent; flex: none; transition: background .2s, border-color .2s; }
.haken-box .sym { width: 16px; height: 16px; stroke-width: 3; }
.station .karte .positionen li.abgehakt { text-decoration: none; opacity: 1; }
.station .karte .positionen li.abgehakt > :not(.haken-box) { opacity: .4; text-decoration: line-through; }
.station .karte .positionen li.abgehakt b::before { content: none; }
.station .karte .positionen li.abgehakt .haken-box { background: var(--gruen); border-color: var(--gruen); color: #fff; }
.karte-fuss { display: flex; align-items: center; gap: 10px; }
.wisch-tipp { color: var(--leise); font-size: .8rem; display: inline-flex; align-items: center; gap: 4px; }
.station .erledigt-knopf { width: auto; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 12px 20px; font-size: 1.1rem;
  background: color-mix(in srgb, var(--gruen) 15%, var(--karte)); color: var(--gruen-dunkel); border: 0; box-shadow: none; }
:root[data-theme="dunkel"] .station .erledigt-knopf { color: var(--gruen); }
.station .erledigt-knopf:active { background: var(--gruen); color: #fff; }
.karte.neu { animation: ticket-rein .5s cubic-bezier(.2, 1.2, .4, 1), ticket-leuchten 2.6s ease-out; border: 0; }
@keyframes ticket-rein { from { transform: translateY(-14px) scale(.97); opacity: 0; } }
@keyframes ticket-leuchten { 0%, 45% { box-shadow: 0 0 0 3px var(--gold), var(--schatten); } }
:root[data-theme="dunkel"] .karte.neu { animation-name: ticket-rein, ticket-leuchten; }
.eigen-band { border-radius: var(--radius) var(--radius) 0 0; margin: -14px -14px 0; }
.summen-leiste { background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linie); }
.summe-chip { background: var(--karte); box-shadow: var(--schatten); border-radius: 12px; }
.summe-chip b { color: var(--gold-text); font-family: var(--titel-schrift); }
.schrift-knopf { border: 0; background: var(--karte); box-shadow: var(--schatten); }
/* Offene Bestellungen beim Kellner bleiben ohne Wischen */
.kellner .karte-huelle .wisch-grund { display: none; }
.toast.fehler { background: #b91c1c; color: #fff; }

/* ---------- App-Startseite ---------- */
body.start { background: var(--bg); color: var(--text); }
.startseite { max-width: 520px; gap: 12px; padding-top: max(18px, env(safe-area-inset-top)); }
.start-held { border-radius: 26px; padding: 20px 18px 18px; display: grid; gap: 16px; color: #fff;
  background: linear-gradient(155deg, #ff7a2f 0%, #ea580c 55%, #c2410c 100%); box-shadow: 0 18px 40px -18px rgba(194, 65, 12, .7); }
:root[data-theme="dunkel"] .start-held { color: var(--text); background: radial-gradient(120% 90% at 10% 0%, rgba(251, 146, 60, .32), transparent 60%), #15171d;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), var(--schatten); }
.start-verein { display: flex; align-items: center; gap: 14px; }
.start-held .start-logo { width: 60px; height: 60px; margin: 0; border-radius: 18px; flex: none; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); }
.startseite .start-held h1 { text-align: left; color: inherit; font-size: 1.5rem; line-height: 1.1; margin: 0; }
.startseite .start-held .untertitel { text-align: left; color: inherit; opacity: .9; margin: 2px 0 0; font-size: .95rem; }
.kennzahlen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kennzahl { border-radius: 16px; padding: 10px; display: grid; gap: 2px; background: rgba(255, 255, 255, .16); }
:root[data-theme="dunkel"] .kennzahl { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.kennzahl b { font-family: var(--titel-schrift); font-size: 1.2rem; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kennzahl span { font-size: .72rem; line-height: 1.2; opacity: .9; }
.abschnitt-titel { margin: 10px 4px 0; font-family: var(--schrift); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--leise); }
.rollen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rolle { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 20px; background: var(--karte); color: var(--text); text-decoration: none;
  box-shadow: var(--schatten); transition: transform .15s ease; min-width: 0; }
.rolle:active { transform: scale(.97); }
.rolle.gross-kachel { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.rolle-symbol { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--farbe); background: color-mix(in srgb, var(--farbe) 14%, transparent); }
.rolle-symbol .sym { width: 24px; height: 24px; }
.rolle-text { display: grid; gap: 2px; min-width: 0; }
.rolle-text b { font-family: var(--titel-schrift); font-size: 1.08rem; }
.rolle-info { color: var(--leise); font-size: .8rem; line-height: 1.25; }
.rolle-info em { font-style: normal; font-weight: 800; color: var(--farbe); }
.rolle-pfeil { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--primaer); color: var(--primaer-text); }
.start-links { display: grid; border-radius: 20px; background: var(--karte); box-shadow: var(--schatten); overflow: hidden; }
.start-link { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 0; background: none; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1rem; text-align: left; }
.start-link + .start-link { border-top: 1px solid var(--linie); }
.start-link .pfeil { margin-left: auto; color: var(--leise); font-size: 1.4rem; }
.start-link-symbol { width: 30px; text-align: center; }
.start-admin { color: var(--leise); font-size: .9rem; }
.start-admin a, .start-fuss a { color: var(--gold-text); }
.start-fuss { color: var(--leise); }

/* ---------- Hinweis „Zum Startbildschirm hinzufügen“ ---------- */
.startbildschirm-hinweis { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 20px; background: var(--karte);
  box-shadow: var(--schatten); animation: dialog-rein .3s cubic-bezier(.2, 1, .3, 1); }
.sb-symbol { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.sb-text { display: grid; gap: 2px; flex: 1; min-width: 0; font-size: .85rem; line-height: 1.3; color: var(--leise); }
.sb-text b { color: var(--text); font-family: var(--titel-schrift); font-size: 1rem; }
.sb-text span b { font-family: inherit; font-size: inherit; }
.sb-teilen { color: var(--blau); }
.sb-knopf { flex: none; border: 0; border-radius: 12px; padding: 10px 14px; background: var(--primaer); color: var(--primaer-text); font-weight: 700; font-size: .9rem; }
.sb-zu { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--bg); color: var(--leise); font-size: .9rem; }

/* ---------- Pakete (Abrechnung) ---------- */
.paket-status { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.paket-status.ok { background: var(--tint-gruen); }
.paket-status.offen { background: var(--gold-hell); }
.paket-karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.paket-karte { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 18px; border: 1px solid var(--rand); background: var(--karte); }
.paket-karte.empfohlen { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.paket-karte b { font-family: var(--titel-schrift); font-size: 1.05rem; }
.paket-preis { font-family: var(--titel-schrift); font-size: 1.7rem; font-weight: 800; color: var(--gold-text); }
.paket-karte small { color: var(--leise); font-size: .82rem; line-height: 1.3; }
.paket-karte .gross { margin-top: 8px; min-height: 46px; font-size: 1rem; }
.paket-anfrage textarea { min-height: 80px; }
.paket-block a { color: var(--gold-text); }

/* ---------- Abholung mit Nummern ---------- */
.modus-wahl { display: grid; gap: 8px; margin-bottom: 8px; }
.modus-wahl label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--rand); background: var(--karte); cursor: pointer; }
.modus-wahl label:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); background: var(--gold-hell); }
.modus-wahl input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--primaer); }
.modus-wahl span { display: grid; gap: 2px; }
.modus-wahl small { color: var(--leise); font-size: .88rem; line-height: 1.3; }
.abhol-naechste { display: grid; justify-items: center; gap: 2px; padding: 16px; border-radius: 20px; background: var(--karte); box-shadow: var(--schatten); text-align: center; }
.abhol-naechste span { font-size: .8rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--leise); }
.abhol-naechste b { font-family: var(--titel-schrift); font-size: 3.4rem; line-height: 1.05; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.abhol-naechste small { color: var(--leise); font-size: .85rem; }
.abhol-naechste .link { color: var(--gold-text); font-weight: 700; text-decoration: none; padding: 0; }
.abhol-naechste + .eigen-titel { margin-top: 14px; }
.erfolg-anzeige.mit-nummer { pointer-events: auto; }
.abhol-nummer-gross { font-family: var(--titel-schrift); font-weight: 800; font-size: clamp(5rem, 30vw, 9rem); line-height: 1; color: var(--gold-text); font-variant-numeric: tabular-nums; }
.erfolg-anzeige.mit-nummer svg { display: none; }
.erfolg-anzeige .gross { width: auto; min-width: 180px; margin-top: 8px; }

/* Abhol-Bildschirm (Fernseher/Tablet) */
body.abholung { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.abhol-kopf { display: flex; align-items: center; gap: 14px; padding: 12px 20px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--kopf-bg); border-bottom: 1px solid var(--linie); }
.abhol-titel { margin-right: auto; display: grid; line-height: 1.15; }
.abhol-titel b { font-family: var(--titel-schrift); font-size: 1.4rem; }
.abhol-titel span { color: var(--leise); font-size: .95rem; }
.abhol-knopf { border: 0; border-radius: 12px; padding: 8px 12px; background: var(--kopf-knopf); color: var(--kopf-text); font-size: 1.2rem; }
.abhol-spalten { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px; padding: 16px 20px 24px; }
.abhol-spalte { border-radius: 26px; padding: 18px 20px; background: var(--karte); box-shadow: var(--schatten); display: flex; flex-direction: column; min-width: 0; }
.abhol-spalte h2 { margin: 0 0 14px; font-size: clamp(1.2rem, 2.6vw, 2rem); }
.abhol-spalte.bereit { background: color-mix(in srgb, var(--gruen) 10%, var(--karte)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gruen) 45%, transparent), var(--schatten); }
.abhol-spalte.bereit h2 { color: var(--gruen-dunkel); }
:root[data-theme="dunkel"] .abhol-spalte.bereit h2 { color: var(--gruen); }
.abhol-nummern { display: flex; flex-wrap: wrap; gap: 12px; align-content: flex-start; }
.abhol-nr { min-width: 2.6em; padding: .15em .35em; border-radius: 16px; text-align: center; font-family: var(--titel-schrift); font-weight: 800;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem); line-height: 1.15; font-variant-numeric: tabular-nums; background: var(--bg); color: var(--leise); border: 0; }
.abhol-nr.fertig { font-size: clamp(2.6rem, 7vw, 5.6rem); background: var(--gruen); color: #fff; cursor: pointer; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--gruen) 80%, transparent); }
:root[data-theme="dunkel"] .abhol-nr.fertig { color: #04261b; }
.abhol-nr.neu { animation: nummer-neu 1s ease-in-out 4; }
@keyframes nummer-neu { 50% { transform: scale(1.1); box-shadow: 0 0 0 8px color-mix(in srgb, var(--gruen) 35%, transparent); } }
.abhol-leer { color: var(--leise); font-size: 1.4rem; margin: 0; }
.abhol-tipp { margin: auto 0 0; padding-top: 14px; color: var(--leise); font-size: .9rem; }
@media (max-width: 700px) { .abhol-spalten { grid-template-columns: 1fr; } }

/* ---------- Selbstbestellung: Gast-Seite ---------- */
.gast-kopf { gap: 12px; }
.gast-logo { width: 42px; height: 42px; border-radius: 12px; object-fit: contain; background: #fff; box-shadow: var(--schatten); flex: none; }
.gast-titel { margin-right: auto; display: grid; line-height: 1.15; min-width: 0; }
.gast-titel b { font-family: var(--titel-schrift); font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gast-titel span { color: var(--leise); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gast-seite main { padding-top: 14px; }
.gast-lade { text-align: center; color: var(--leise); padding: 40px 0; }
.gast-willkommen { margin-bottom: 12px; }
.gast-willkommen h1, .gast-hinweis h1 { font-size: 1.45rem; margin: 4px 0 6px; }
.gast-willkommen p { margin: 0; color: var(--leise); font-size: .95rem; }
.gast-hinweis { text-align: center; padding: 40px 12px; display: grid; gap: 12px; justify-items: center; }
.gast-hinweis p { color: var(--leise); margin: 0; }
.gast-meine { background: var(--karte); border-radius: 20px; box-shadow: var(--schatten); padding: 14px; margin-bottom: 14px; display: grid; gap: 8px; }
.gast-meine h2 { margin: 0; font-size: 1rem; }
.gast-stand { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: var(--bg); }
.gast-stand small { color: var(--leise); }
.gast-stand.fertig, .gast-stand.unterwegs { background: var(--tint-gruen); }
.gast-stand.storno { background: var(--tint-rot); }
.gast-seite .artikel .anzahl { pointer-events: auto; }
/* Kennzeichen „vom Gast bestellt“ in Küche/Theke und beim Kellner */
.gast-band { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--tint-lila); color: var(--lila-text); font-size: .78rem; font-weight: 800; }

/* Admin: Selbstbestellung und Druckansicht der QR-Codes */
.selbst-warnung { margin: 0 0 8px; padding: 8px 12px; border-radius: 12px; background: var(--gelb); color: var(--orange-text); font-size: .9rem; }
.selbst-warnung .link { color: var(--gold-text); font-weight: 700; padding: 0; }
.selbst-zeile { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.selbst-zeile .gross { width: auto; margin-left: auto; min-height: 48px; }
.selbst-status { font-weight: 800; }
.selbst-status.an { color: var(--gruen); }
.selbst-status.aus { color: var(--leise); }
.druck-overlay { align-items: flex-start !important; overflow: auto; padding: 16px !important; }
.druck-blatt { background: var(--karte); color: var(--text); border-radius: 20px; padding: 16px; width: 100%; max-width: 900px; }
.druck-leiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.druck-leiste b { margin-right: auto; }
.druck-leiste .gross { width: auto; min-height: 44px; }
.druck-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.druck-karte { border: 2px dashed #c9ced8; border-radius: 16px; padding: 14px; text-align: center; display: grid; gap: 4px; background: #fff; color: #151922; break-inside: avoid; }
.druck-verein { font-size: .85rem; color: #687183; }
.druck-tisch { font-family: var(--titel-schrift); font-weight: 800; font-size: 1.8rem; }
.druck-team { font-size: .9rem; color: #687183; }
.druck-qr svg { width: 100%; max-width: 180px; height: auto; margin: 4px auto; display: block; }
.druck-text { font-weight: 800; font-size: 1.05rem; }
.druck-klein { font-size: .75rem; color: #687183; }
@media print {
  body > *:not(.druck-overlay) { display: none !important; }
  .druck-overlay { position: static !important; background: none !important; padding: 0 !important; display: block !important; backdrop-filter: none !important; }
  .druck-blatt { box-shadow: none; padding: 0; max-width: none; }
  .druck-leiste, .druck-tipp { display: none !important; }
  .druck-karten { grid-template-columns: repeat(3, 1fr); gap: 8mm; }
  .druck-karte { border-color: #999; }
}

/* Kellner: fertige Gast-Bestellungen zum Raustragen */
.raustragen { margin: 10px 12px 0; padding: 12px; border-radius: 20px; background: var(--tint-lila); display: grid; gap: 10px; max-width: 720px; }
@media (min-width: 744px) { .raustragen { margin-left: auto; margin-right: auto; } }
.raustragen h2 { margin: 0; font-size: 1rem; color: var(--lila-text); }
.raus-karte { background: var(--karte); border-radius: 16px; padding: 12px; box-shadow: var(--schatten); display: grid; gap: 6px; }
.raus-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.raus-kopf b { font-family: var(--titel-schrift); font-size: 1.3rem; }
.raus-kopf span { color: var(--leise); }
.raus-kopf small { margin-left: auto; color: var(--lila-text); font-weight: 700; }
.raus-teil { font-size: 1rem; }
.raus-karte .gross { min-height: 48px; }
.abhol-spalte.arbeit .abhol-nr { cursor: pointer; }
@media (max-width: 700px) {
  .abhol-spalte.bereit { order: -1; }   /* am Handy: „Bitte abholen“ zuerst */
  .abhol-spalten { align-content: start; }
}
.selbst-block .selbst-pdf { width: 100%; margin: 4px 0 8px; }

/* Station: Gast-Bestellungen (Kennzeichen und Storno-Knopf) */
.eigen-band.gast-karte-band { background: var(--lila-text); }
:root[data-theme="dunkel"] .eigen-band.gast-karte-band { background: #6d28d9; color: #fff; }
.gast-storno-knopf { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--rot, #dc2626); color: var(--rot, #dc2626);
  background: transparent; border-radius: 14px; padding: 10px 14px; font-weight: 800; font-size: .95rem; min-height: 48px; cursor: pointer; }
.gast-storno-knopf svg { width: 18px; height: 18px; }
.gast-stand .gast-storno-teil { color: var(--rot); font-weight: 700; }
