/* Almkasse: Oberfläche fürs Tablet im Querformat.
   Alle Maße hängen an der Schriftgröße des html-Elements, die mit dem Bildschirm mitwächst.
   Entworfen auf 1000 x 600: 1rem entspricht dort 16px. */

:root {
  --grund: #222427;
  --flaeche: #2d2f34;
  --flaeche-hell: #3a3d43;
  --linie: #40434a;
  --rand: #6f737b;
  --text: #f3ece0;
  --text-leise: #b1b5bc;
  --text-mittel: #d2d5d9;
  --gold: #f0c04f;
  --heiss: #9c2327;
  --kalt: #566170;
  --essen: #7a4a25;
  --verkauf: #5b3a52;
  --creme: #e9dfcb;
  --schatten: 0 0.5rem 1rem rgba(0, 0, 0, 0.55), 0 0.125rem 0.25rem rgba(0, 0, 0, 0.4);
  /* Liquid Glass: Glanz von oben links, helle Kante, Unschärfe dahinter */
  --glas-glanz: linear-gradient(155deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.12) 28%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, 0.06) 80%, rgba(255, 255, 255, 0.16) 100%);
  --glas-kante: inset 0 0.0625rem 0 rgba(255, 255, 255, 0.65), inset 0 -0.0625rem 0 rgba(255, 255, 255, 0.18), inset 0 0 0 0.0625rem rgba(255, 255, 255, 0.2), inset 0 0 1.5rem rgba(255, 255, 255, 0.08);
  --glas-filter: blur(0.875rem) saturate(180%);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  font-size: min(1.6vw, 2.6667vh);
  -webkit-text-size-adjust: 100%;
}

html { background: #141518; }
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: transparent;
  color: var(--text);
  font-family: 'Barlow Semi Condensed', 'Arial Narrow', sans-serif;
  font-variant-numeric: tabular-nums;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
  overscroll-behavior: none;
}

button, input { font-family: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; margin: 0; }
button:disabled { cursor: default; opacity: 0.35; }
button:focus-visible, input:focus-visible { outline: 0.1875rem solid var(--gold); outline-offset: 0.125rem; }
button:active:not(:disabled) { transform: translateY(0.0625rem); filter: brightness(1.12); }
input::placeholder { color: #9498a0; }

.num { font-family: 'Bebas Neue', 'Barlow Semi Condensed', 'Arial Narrow', sans-serif; font-weight: 400; letter-spacing: 0.03em; }
.label { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-leise); }
.gold { color: var(--gold); }

#app { height: 100%; display: flex; flex-direction: column; }

/* Kopfzeile */
.kopf { height: 3.5rem; flex: none; padding: 0 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--linie); }
.marke { width: auto; display: flex; align-items: baseline; gap: 0.5rem; border: 0; padding: 0; background: none; text-align: left; }
.marke b { font-size: 2.25rem; line-height: 1; text-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.6); }
.marke small { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-leise); }
.modus { display: flex; gap: 0.25rem; padding: 0.25rem; background: var(--flaeche); border-radius: 0.625rem; }
.modus button { height: 2.5rem; width: 5.875rem; border: 0; border-radius: 0.4375rem; font-size: 1.125rem; font-weight: 600; background: transparent; }
.modus button[aria-pressed="true"] { background: var(--text); color: var(--grund); }
.geraet { width: auto; display: flex; align-items: center; justify-content: flex-end; gap: 0.625rem; }
.geraet .uhr { margin: 0 0.25rem; }
.status { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; height: 1.5rem; line-height: 1; position: relative; top: -0.125rem; }
.status small { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-leise); margin-top: -0.0625rem; }
.status span { display: flex; align-items: center; gap: 0.3125rem; font-size: 0.75rem; font-weight: 500; margin-bottom: -0.125rem; }
.status .punkt { width: 0.5rem; height: 0.5rem; }
.uhr { font-size: 2.125rem; line-height: 1; padding-top: 0.125rem; }
.zahnrad { width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%; border: 0; padding: 0; background: none; display: flex; align-items: center; justify-content: center; color: var(--text-leise); }
.zahnrad svg { width: 1.5rem; height: 1.5rem; }
.zahnrad:active { color: var(--gold); }
.zahnrad.update { color: var(--gold); animation: puls 1.2s ease-in-out infinite; }
.punkt { width: 0.625rem; height: 0.625rem; border-radius: 50%; background: var(--gold); }
.punkt.fehlt { background: transparent; border: 0.125rem solid var(--heiss); }

/* Hauptbereich */
.bereich { flex: 1; min-height: 0; display: flex; gap: 1rem; padding: 1rem; }
.links { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.75rem; }

.reiter { display: flex; gap: 0.5rem; flex: none; position: relative; z-index: 2; }
.reiter button { flex: 1; height: 3rem; border-radius: 0.5625rem; font-size: 1.25rem; font-weight: 600; background-color: transparent; border: 0.125rem solid var(--kat); box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.45); }
.reiter button[aria-pressed="true"] { background-color: var(--kat); }

.kat-heiss { --kat: var(--heiss-kachel, var(--heiss)); --kat-text: var(--heiss-text, #fff); }
.kat-kalt { --kat: var(--kalt-kachel, var(--kalt)); --kat-text: var(--kalt-text, #fff); }
.kat-essen { --kat: var(--essen-kachel, var(--essen)); --kat-text: var(--essen-text, #fff); }
.kat-verkauf { --kat: var(--verkauf-kachel, var(--verkauf)); --kat-text: var(--verkauf-text, #fff); }
.reiter button[aria-pressed="true"] { color: var(--kat-text, inherit); }
.rot { background-image: url(rot.jpg); background-size: 260% auto; }

.kacheln { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(var(--spalten, 4), minmax(0, 1fr)); grid-auto-rows: var(--hoehe, 7rem); gap: 0.625rem; align-content: start; padding: 1rem; margin: -1rem; }
.kachel { position: relative; }
.kachel > .haupt-knopf { width: 100%; height: 100%; padding: 0.75rem 0.875rem; border: 0; border-radius: 0.75rem; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; background-color: var(--kat); color: var(--kat-text, #fff); box-shadow: var(--schatten); }
/* Gebucht: leuchtet statt Rahmen (Farbe, Stärke, Puls unter Optik → Leuchten); liegt über den Nachbarn, damit das Leuchten rundum gleich ist.
   Größe wächst bis Stärke 62 %, darüber wird es nur noch kräftiger, damit am Rand nichts abgeschnitten wird. */
@property --gp { syntax: '<number>'; inherits: false; initial-value: 1; }
.kachel > .haupt-knopf {
  --gc: var(--gebucht-farbe, var(--gold));
  --gs: min(1.25, var(--gebucht-f, 1) * var(--gp));
  --gebucht: 0 0 calc(0.25rem * var(--gs)) calc(0.0625rem * var(--gs)) var(--gc),
             0 0 calc(0.75rem * var(--gs)) calc(0.1875rem * var(--gs)) color-mix(in srgb, var(--gc) min(100%, calc(85% * var(--gebucht-f, 1))), transparent),
             0 0 calc(1.5rem * var(--gs)) calc(0.375rem * var(--gs)) color-mix(in srgb, var(--gc) min(100%, calc(50% * var(--gebucht-f, 1))), transparent);
}
.kachel.hat { z-index: 1; }
.puls-gebucht .kachel.hat > .haupt-knopf { animation: gebucht-puls 1.8s ease-in-out infinite; }
@keyframes gebucht-puls { 50% { --gp: 0.4; } }
@media (prefers-reduced-motion: reduce) { .puls-gebucht .kachel.hat > .haupt-knopf { animation: none; } }
.kachel.hat > .haupt-knopf, .pfand .kachel.hat > .haupt-knopf { box-shadow: var(--gebucht), var(--schatten); }
.kachel .name { font-weight: 600; line-height: 1.1; max-width: 100%; white-space: pre-line; overflow-wrap: anywhere; font-size: var(--name, 1.125rem); }
.kacheln.slide-links { animation: von-rechts 0.16s ease-out; }
.kacheln.slide-rechts { animation: von-links 0.16s ease-out; }
.kachel .preis { font-size: 1.75rem; line-height: 1; }
.kachel .preis.klein { font-size: 1.1875rem; }
.menge { position: absolute; top: -0.625rem; right: -0.5rem; border: 0; min-width: 3rem; height: 3rem; padding: 0.125rem 0.5rem 0; border-radius: 1.5rem; background: var(--text); color: var(--grund); font-size: 1.875rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 0.1875rem 0.5rem rgba(0, 0, 0, 0.5); }

.pfand { flex: none; display: flex; flex-direction: column; gap: 0.375rem; }
.pfand-reihe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.625rem; }
.pfand .kachel { height: 3.75rem; }
.pfand .kachel > .haupt-knopf { padding: 0 0.75rem; justify-content: center; border: 0.125rem solid var(--creme); background-color: var(--creme); color: var(--grund); box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.5); }
.pfand .kachel.zurueck > .haupt-knopf { background-color: transparent; color: var(--text); }
.pfand .kachel .name { font-size: 1rem; }
.pfand .kachel .preis { font-size: 1.3125rem; }
.pfand .menge { min-width: 2.75rem; height: 2.75rem; border-radius: 1.375rem; font-size: 1.375rem; background: var(--gold); }

/* Ziffernblock */
.ziffern { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 0.625rem; }
.ziffern button { border: 0; border-radius: 0.75rem; background: var(--flaeche-hell); box-shadow: var(--schatten); font-size: 3.25rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.ziffern svg { width: 2.5rem; height: 2.5rem; }

/* Tische */
.tische { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 7rem; gap: 0.625rem; align-content: start; padding: 0.1875rem; }
.tisch { padding: 0.75rem 0.875rem; border: 0; border-radius: 0.75rem; display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; text-align: left; background: var(--flaeche-hell); box-shadow: var(--schatten); }
.tisch[aria-pressed="true"] { box-shadow: inset 0 0 0 0.1875rem var(--gold), var(--schatten); }
.tisch .name { font-size: 1.375rem; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.tisch .unten { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.tisch .anzahl { font-size: 1rem; font-weight: 500; color: var(--text-leise); }
.tisch .summe { font-size: 1.875rem; line-height: 1; }
.tisch-neu { border: 0.125rem dashed var(--text-leise); border-radius: 0.75rem; background: transparent; font-size: 1.25rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.tisch-neu svg { width: 1.5rem; height: 1.5rem; }

/* Rechte Spalte */
.spalte { width: 18.5rem; flex: none; padding: 1rem; border-radius: 0.875rem; background: var(--flaeche); box-shadow: 0 0.625rem 1.5rem rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; gap: 0.75rem; }
.spalte-kopf { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.spalte-kopf .tischname { font-size: 1.5rem; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.rund { width: 2.875rem; height: 2.875rem; flex: none; border-radius: 50%; border: 0.125rem solid var(--rand); background: transparent; display: flex; align-items: center; justify-content: center; padding: 0; }
.rund svg { width: 1.375rem; height: 1.375rem; }
.zeilen { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 0.5rem; }
.zeile { display: flex; align-items: baseline; gap: 0.5rem; font-size: 1.125rem; line-height: 1.2; background: none; border: 0; padding: 0; text-align: left; width: 100%; }
.zeile .q { width: 2.125rem; flex: none; font-weight: 700; color: var(--gold); }
.zeile .n { flex: 1; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.zeile .s { flex: none; font-weight: 500; }
.zeile.gebucht { color: var(--text-mittel); min-height: 1.75rem; }
.zeile.gebucht .q { color: inherit; }
.hinweis { font-size: 1.125rem; line-height: 1.35; color: var(--text-leise); }
.summenblock { border-top: 1px solid var(--linie); padding-top: 0.625rem; }
.summenblock .reihe { display: flex; align-items: baseline; justify-content: space-between; }
.summenblock .wort { font-size: 1.125rem; font-weight: 600; color: var(--text-leise); }
.summenblock .betrag { font-size: 3.875rem; line-height: 0.95; color: var(--gold); white-space: nowrap; }
.summenblock .minus { font-size: 0.9375rem; font-weight: 500; color: var(--gold); text-align: right; }
.knoepfe { display: flex; gap: 0.5rem; flex: none; }
.knopf { height: 4.5rem; border-radius: 0.75rem; border: 0.125rem solid var(--rand); background: transparent; font-size: 1.125rem; font-weight: 600; padding: 0 0.5rem; }
.knopf.schmal small { display: block; margin-top: 0.125rem; font-size: 0.875rem; font-weight: 500; color: var(--text-leise); }
.knopf.schmal { width: 6.25rem; }
.knopf.tischknopf { width: 4.375rem; border-color: var(--gold); color: var(--gold); font-weight: 700; }
.knopf.rechnung { width: 7.25rem; border-color: var(--gold); color: var(--gold); font-size: 1.25rem; font-weight: 700; }
.knopf.haupt { flex: 1; border: 0; background: var(--gold-flaeche, var(--gold)); color: var(--grund); font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.knopf.haupt svg { width: 1.625rem; height: 1.625rem; }
.knopf.haupt.text { font-size: 1.375rem; }

/* Dialoge */
.dunkel { position: fixed; inset: 0; background: rgba(12, 12, 14, 0.88); display: flex; align-items: center; justify-content: center; z-index: 10; }
.karte { box-sizing: border-box; padding: 1.5rem; border-radius: 1.125rem; background: var(--flaeche); border: 1px solid var(--linie); display: flex; flex-direction: column; gap: 0.875rem; width: 32.5rem; max-height: 34rem; }
.karte.mitte { width: 28.75rem; padding: 2rem; align-items: center; text-align: center; }
.karte.preis { width: 25rem; padding: 1.25rem; gap: 0.75rem; }
.karte h2 { margin: 0; font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.karte .zweispaltig { display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; }
.karte .gross { font-size: 3.5rem; line-height: 1; color: var(--gold); }
.karte .riesig { font-size: 6.5rem; line-height: 1; color: var(--gold); }
.karte .unter { font-size: 1.375rem; font-weight: 600; color: var(--text-leise); }
.karte .text { font-size: 1rem; line-height: 1.35; color: var(--text-leise); }
.liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; overflow-y: auto; min-height: 0; padding: 0.1875rem; }
.liste button { height: 4rem; padding: 0 0.875rem; border: 0; border-radius: 0.75rem; background: var(--flaeche-hell); display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; text-align: left; }
.liste .name { font-size: 1.25rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.liste .summe { font-size: 1.125rem; font-weight: 500; color: var(--text-leise); flex: none; }
.feld { display: flex; flex-direction: column; gap: 0.375rem; }
.feld input { height: 3.5rem; padding: 0 0.875rem; border-radius: 0.75rem; border: 0.125rem solid var(--rand); background: var(--grund); font-size: 1.25rem; font-weight: 500; min-width: 0; width: 100%; -webkit-user-select: text; user-select: text; }
.feld .zeile-mit-knopf { display: flex; gap: 0.625rem; }
.dlg-knoepfe { display: flex; gap: 0.625rem; }
.dlg-knopf { height: 3.75rem; min-width: 9.375rem; border-radius: 0.75rem; border: 0.125rem solid var(--rand); background: transparent; font-size: 1.125rem; font-weight: 600; padding: 0 1rem; }
.dlg-knopf.haupt { flex: 1; border: 0; background: var(--gold-flaeche, var(--gold)); color: var(--grund); font-size: 1.25rem; font-weight: 700; }
.karte.preis .ziffern { flex: none; grid-template-rows: none; grid-auto-rows: 3.875rem; gap: 0.5rem; }
.karte.preis .ziffern button { font-size: 2.375rem; box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.45); }
.karte.preis .ziffern svg { width: 1.875rem; height: 1.875rem; }
.wartet { display: flex; align-items: center; gap: 0.625rem; font-size: 1.25rem; font-weight: 500; }
.wartet i { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--gold); animation: puls 1.2s ease-in-out infinite; }
.haken { width: 5.25rem; height: 5.25rem; border-radius: 50%; background: var(--gold-flaeche, var(--gold)); color: var(--grund); display: flex; align-items: center; justify-content: center; }
.haken.fehler { background: var(--heiss); color: #fff; }
.haken svg { width: 3rem; height: 3rem; }
.fertig { font-size: 2.5rem; font-weight: 700; line-height: 1.1; }

.start { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 2rem; text-align: center; }
.start b { font-size: 4rem; line-height: 1; }
.start p { margin: 0; font-size: 1.375rem; line-height: 1.4; color: var(--text-leise); max-width: 34rem; }

.extras-hinweis { font-size: 0.9375rem; font-weight: 500; line-height: 1.15; opacity: 0.85; }
.zeile .extra { display: block; font-size: 0.875rem; color: var(--text-leise); margin-top: 0.125rem; }
.optionen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
.optionen button { min-height: 4rem; border-radius: 0.75rem; border: 0.125rem solid var(--rand); background: transparent; font-size: 1.25rem; font-weight: 600; padding: 0.5rem; }
.optionen button[aria-pressed="true"] { background: var(--gold-flaeche, var(--gold)); border-color: var(--gold); color: var(--grund); }
.karte.mitte .dlg-knopf.haupt { flex: 1; }

.karte.pagerwahl { width: 36rem; }
.karte.kuechefrage { width: 38rem; max-height: calc(100vh - 2rem); }
.kf-liste { display: flex; flex-direction: column; gap: 0.375rem; overflow-y: auto; min-height: 0; flex-shrink: 1; }
.kf-zeile { display: flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; padding: 0.25rem 0; border-bottom: 1px solid var(--linie); }
.kf-zeile .n { flex: 1; min-width: 0; font-size: 1.25rem; font-weight: 600; }
.kf-zeile button { height: 2.5rem; padding: 0 0.75rem; border-radius: 0.5rem; border: 0.125rem solid var(--rand); background: transparent; font-size: 1rem; font-weight: 600; }
.kf-zeile button[aria-pressed="true"] { background: var(--gold-flaeche, var(--gold)); border-color: var(--gold); color: var(--grund); }
.kuechefrage .pager-knoepfe { flex: none; }
.kuechefrage .pager-knoepfe button { height: 3.75rem; font-size: 2.25rem; }
.pager-knoepfe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.625rem; }
.pager-knoepfe button { position: relative; height: 5rem; border: 0; border-radius: 0.75rem; background: var(--flaeche-hell); box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.45); font-size: 2.75rem; line-height: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pager-knoepfe button[aria-pressed="true"] { background: var(--gold-flaeche, var(--gold)); color: var(--grund); }
.pager-knoepfe button.belegt { box-shadow: inset 0 0 0 0.125rem var(--rand); background: transparent; }
.pager-knoepfe button.belegt:disabled { opacity: 0.4; cursor: not-allowed; }
.pager-knoepfe small { font-family: 'Barlow Semi Condensed', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; margin-top: 0.125rem; color: var(--text-leise); }
.pager-knoepfe button[aria-pressed="true"] small { color: var(--grund); }

.karte.neuigkeiten { width: 40rem; }
.verlauf { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; gap: 1rem; padding-right: 0.5rem; -webkit-user-select: text; user-select: text; }
.verlauf h3 { margin: 0; display: flex; align-items: baseline; gap: 0.75rem; }
.verlauf h3 .num { font-size: 1.75rem; color: var(--gold); line-height: 1; }
.verlauf h3 small { font-size: 0.9375rem; font-weight: 600; color: var(--text-leise); }
.verlauf ul { margin: 0.375rem 0 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.25rem; font-size: 1.0625rem; line-height: 1.35; }
.verlauf section + section { border-top: 1px solid var(--linie); padding-top: 1rem; }

.karte.trinkgeld { width: 38rem; max-height: none; }
.tip-knoepfe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.625rem; }
.tip-knoepfe button { height: 6rem; border: 0; border-radius: 0.75rem; background: var(--flaeche-hell); box-shadow: 0 0.375rem 0.75rem rgba(0, 0, 0, 0.45); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; padding: 0.5rem; }
.tip-knoepfe b { font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.tip-knoepfe b.num { font-size: 2.5rem; font-weight: 400; line-height: 1; }
.tip-knoepfe small { font-size: 0.875rem; font-weight: 500; color: var(--text-leise); }
.ohne-tip { height: 5rem; border: 0; border-radius: 0.75rem; background: var(--gold-flaeche, var(--gold)); color: var(--grund); font-size: 1.75rem; font-weight: 700; box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.5); }

/* Hochkant: Kopfzeile zweizeilig, Kacheln oben, Summe und Knöpfe unten.
   Entworfen auf 600 x 1000, dort entspricht 1rem wieder 16px. */
html.hoch { font-size: min(2.6667vw, 1.6vh); }
.hoch .kopf { height: auto; flex-wrap: wrap; row-gap: 0.5rem; padding: 0.625rem 1rem; }
.hoch .marke { width: auto; }
.hoch .geraet { width: auto; }
.hoch .modus { order: 3; width: 100%; }
.hoch .modus button { flex: 1; width: auto; }
.hoch .bereich { flex-direction: column; }
.hoch .spalte { width: auto; height: 17.5rem; display: grid; grid-template-columns: minmax(0, 1fr) 17rem; grid-template-rows: auto minmax(0, 1fr) auto; column-gap: 1rem; row-gap: 0.75rem; }
.hoch .spalte > :first-child { grid-column: 1; grid-row: 1; }
.hoch .spalte .zeilen { grid-column: 1; grid-row: 2 / 4; }
.hoch .spalte .summenblock { grid-column: 2; grid-row: 1 / 3; align-self: end; border-top: 0; padding-top: 0; }
.hoch .spalte .knoepfe { grid-column: 2; grid-row: 3; }
.hoch .summenblock .reihe { flex-direction: column; align-items: flex-end; gap: 0.25rem; }
.hoch .summenblock .betrag { font-size: 4.5rem; }
.hoch .tische { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.karte { max-width: calc(100vw - 2rem); }
.hoch .tip-knoepfe { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hoch .karte.neuigkeiten { max-height: 50rem; }

.testband { flex: none; height: 1.75rem; display: flex; align-items: center; justify-content: center; gap: 0.625rem; font-size: 0.9375rem; font-weight: 600; color: var(--grund); background: repeating-linear-gradient(-45deg, var(--gold) 0 1.25rem, #e2b13f 1.25rem 2.5rem); }
.testband b { text-transform: uppercase; letter-spacing: 0.08em; }

#ruhe { position: fixed; inset: 0; z-index: 30; background: #000; display: flex; align-items: center; justify-content: center; text-align: center; }
#ruhe > div { display: flex; flex-direction: column; align-items: center; gap: 1rem; color: #6f737b; }
#ruhe b { font-size: 3.5rem; line-height: 1; color: #8d9199; }
#ruhe p { margin: 0; font-size: 1.25rem; }
#ruhe .dlg-knopf { color: #b1b5bc; border-color: #40434a; }

#toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 20; max-width: 80vw; padding: 0.875rem 1.25rem; border-radius: 0.75rem; background: var(--heiss); color: #fff; font-size: 1.25rem; font-weight: 600; box-shadow: var(--schatten); }
#toast[hidden] { display: none; }

@keyframes von-rechts { from { transform: translateX(2.5rem); opacity: 0.3; } }
@keyframes von-links { from { transform: translateX(-2.5rem); opacity: 0.3; } }
@keyframes puls { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .wartet i, .kacheln { animation: none !important; } }

/* Ausverkauft und Küche offline */
.kachel.ausverkauft > .haupt-knopf { background-image: repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.35) 0 0.75rem, rgba(0, 0, 0, 0.15) 0.75rem 1.5rem) !important; filter: saturate(0.35); color: rgba(255, 255, 255, 0.75); }
.kachel.ausverkauft .aus-stempel { color: #fff; background: var(--heiss); padding: 0.125rem 0.5rem; border-radius: 0.375rem; letter-spacing: 0.04em; }
.modus button { position: relative; }
.kueche-punkt { position: absolute; top: 0.375rem; right: 0.375rem; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: #e0353b; box-shadow: 0 0 0.5rem #e0353b; }
.kueche-weg { padding: 0.625rem 0.875rem; border-radius: 0.625rem; background: var(--heiss); color: #fff; font-size: 1.0625rem; font-weight: 600; }

/* Eigene Farbe für Heiß: ohne rote Wolken */
.ohne-wolken .rot { background-image: none !important; }

/* ---------- Hintergrund in Schichten: Farbverlauf (Almlicht) unten, Hintergrundfarbe darüber ----------
   Ist die Hintergrundfarbe deckend, sieht man das Almlicht nicht. Mit Transparenz scheint es durch,
   mit Liquid fließt es langsam und die Hintergrundfarbe wird zu Milchglas. */
body::before { content: ''; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background: radial-gradient(38% 46% at 20% 24%, var(--heiss) 0, transparent 70%),
              radial-gradient(34% 42% at 80% 20%, var(--gold) 0, transparent 70%),
              radial-gradient(42% 50% at 74% 80%, var(--kalt) 0, transparent 70%),
              radial-gradient(38% 46% at 24% 82%, var(--essen) 0, transparent 70%),
              radial-gradient(28% 34% at 50% 50%, var(--verkauf) 0, transparent 70%); }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--grund-flaeche, var(--grund)); }
.glas-grund body::before { animation: fliessen 36s ease-in-out infinite alternate; }
.glas-grund body::after { -webkit-backdrop-filter: blur(2.5rem) saturate(170%); backdrop-filter: blur(2.5rem) saturate(170%); }
@keyframes fliessen {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  33% { transform: translate(6%, -4%) rotate(9deg) scale(1.08); }
  66% { transform: translate(-5%, 5%) rotate(-7deg) scale(0.96); }
  100% { transform: translate(3%, 2%) rotate(4deg) scale(1.04); }
}

/* ---------- Liquid Glass je Element ---------- */
.glas-akzent :is(.knopf.haupt, .dlg-knopf.haupt, .ohne-tip, .haken:not(.fehler), .optionen button[aria-pressed="true"], .kf-zeile button[aria-pressed="true"], .pager-knoepfe button[aria-pressed="true"]),
.glas-flaeche :is(.spalte, .karte, .modus, .ziffern button, .tisch, .liste button, .pager-knoepfe button:not([aria-pressed="true"]), .tip-knoepfe button),
.glas-heiss :is(.kacheln.kat-heiss .haupt-knopf, .reiter button.kat-heiss[aria-pressed="true"]),
.glas-kalt :is(.kacheln.kat-kalt .haupt-knopf, .reiter button.kat-kalt[aria-pressed="true"]),
.glas-essen :is(.kacheln.kat-essen .haupt-knopf, .reiter button.kat-essen[aria-pressed="true"]),
.glas-verkauf :is(.kacheln.kat-verkauf .haupt-knopf, .reiter button.kat-verkauf[aria-pressed="true"]),
.glas-pfand .pfand .kachel:not(.zurueck) > .haupt-knopf {
  -webkit-backdrop-filter: var(--glas-filter); backdrop-filter: var(--glas-filter);
  background-image: var(--glas-glanz) !important; background-size: 100% 100% !important;
  box-shadow: var(--glas-kante), 0 0.5rem 1.25rem rgba(0, 0, 0, 0.4);
}
.glas-flaeche .spalte, .glas-flaeche .karte { border-color: rgba(255, 255, 255, 0.14); }
/* Markierungen bleiben auch auf Glas sichtbar */
.glas-heiss .kat-heiss .kachel.hat > .haupt-knopf, .glas-kalt .kat-kalt .kachel.hat > .haupt-knopf, .glas-essen .kat-essen .kachel.hat > .haupt-knopf, .glas-verkauf .kat-verkauf .kachel.hat > .haupt-knopf { box-shadow: var(--glas-kante), var(--gebucht), 0 0.5rem 1.25rem rgba(0, 0, 0, 0.4); }
.glas-flaeche .tisch[aria-pressed="true"] { box-shadow: inset 0 0 0 0.1875rem var(--gold), var(--glas-kante), 0 0.5rem 1.25rem rgba(0, 0, 0, 0.4); }
@media (prefers-reduced-motion: reduce) { .glas-grund body::before { animation: none; } }

/* Pager des Essens in der Auswahl */
.pager-chip { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin: 0 0 0.5rem; padding: 0.375rem 0.75rem; border-radius: 0.5rem; border: 0.125rem solid var(--gold); color: var(--gold); }
.pager-chip .num { font-size: 1.5rem; line-height: 1; }
.pager-chip small { font-size: 0.875rem; font-weight: 600; color: var(--text-leise); }

