@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap");
/* ============================================================================
   portal.css — Design-System des GastroManager Web-Portals
   Quelle: hosting/DESIGN_SYSTEM.md (Abschnitt 2), Etappe E1.
   Ausgelagert aus dem Inline-<style> von mitarbeiter/index.html.
   Gilt fuer mitarbeiter/index.html, index.html und datenschutz.html.
   ============================================================================ */

/* --- ANFANG: Tokens --- */
/* ============================================================================
   Ab 2026-08-28 kommen ALLE Werte aus dem Design-System 2.0
   (Quelle: "GastroManager Design.dc.html", Claude Design).

   Die Namen unten bleiben unveraendert. Das ist Absicht und der ganze Trick:
   die 1953 Zeilen darunter und die 929 Inline-Stile in index.html greifen
   weiter auf dieselben Namen zu. Geaendert hat sich nur, WOHER der Wert
   kommt — aus dem --t-*-Satz der gewaehlten Design-Variante.

   Wer hier einen festen Farbwert eintraegt, haengt ihn von der Variante ab
   und bricht damit Nacht und Kueche XL, ohne dass es in Modernist auffaellt.
   ============================================================================ */

/* --- ANFANG: Design-Varianten (--t-*) --- */
/* Ein Satz Werte je Variante, umgeschaltet ueber <html data-design="…">.
   Werte zeichengleich mit dem THEMES-Feld des Design-Dokuments.

   ⚠️ --t-accent-tief steht NICHT im Design und ist trotzdem Pflicht: der
   Bestand braucht fuer :hover und :active eine zweite Akzentstufe. Sie wird
   je Variante VON HAND gesetzt, nicht gerechnet — eine gerechnete Abdunklung
   waere bei Nacht (heller Akzent auf dunklem Grund) genau falsch herum und
   liesse den Knopf beim Druecken im Hintergrund verschwinden. */

:root,
html[data-design="modernist"] {
  --t-bg:#f3f2f2;      --t-surface:#ffffff;  --t-surface2:#e9e7e6;
  --t-ink:#201e1d;     --t-ink2:#6b6866;
  --t-line:#201e1d;    --t-lw:2px;
  /* ⚠️ EINZIGE Abweichung vom Design-Dokument, und sie ist gerechnet:
     Das Design nennt #ec3013. Weisse Schrift darauf ergibt gemessen 4,20 —
     unter den 4,5, die WCAG fuer normalen Text verlangt. Betroffen waren 5
     Stellen, darunter der Einstempeln-Knopf. #e32e12 ist um 4 % abgedunkelt
     und erreicht exakt 4,50; mit dem Auge ist der Unterschied nicht zu sehen.
     Die uebrigen vier Varianten brauchten das nicht (5,15 bis 11,00).
     Sevkets Entscheidung 2026-08-28: "mache das was leserlich und einfach geht". */
  --t-accent:#e32e12;  --t-accent-tief:#b3230e; --t-accent-ink:#ffffff; --t-signal-ink:#ffffff;
  --t-ok:#1f7a3d;      --t-warn:#b26a00;     --t-err:#c02614;
  --t-r:0px;           --t-r2:0px;
  --t-scale:1;         --t-shadow:none;
}

html[data-design="klassik"] {
  --t-bg:#f8f5fa;      --t-surface:#ffffff;  --t-surface2:#f1ecf4;
  --t-ink:#1f1f1f;     --t-ink2:#666666;
  --t-line:#e2dce7;    --t-lw:1px;
  --t-accent:#7a0f18;  --t-accent-tief:#5c0b12; --t-accent-ink:#ffffff; --t-signal-ink:#ffffff;
  --t-ok:#2e7d32;      --t-warn:#e68c3a;     --t-err:#d32f2f;
  --t-r:20px;          --t-r2:12px;
  --t-scale:1;         --t-shadow:0 2px 8px rgba(31,31,46,.10);
}

html[data-design="nacht"] {
  /* Heller Pfeil: als einzige Variante steht das Feld hier auf dunklem Grund. */
  --feld-pfeil: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZD0iTTUgOGw1IDUgNS01IiBmaWxsPSJub25lIiBzdHJva2U9IiNBNkEzQjUiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+);
  --t-bg:#14141c;      --t-surface:#1f1f2e;  --t-surface2:#2a2a3c;
  --t-ink:#f4f2f0;     --t-ink2:#a6a3b5;
  --t-line:#33334a;    --t-lw:1px;
  --t-accent:#ff5a3c;  --t-accent-tief:#ff7a63; --t-accent-ink:#14141c; --t-signal-ink:#14141c;
  --t-ok:#4caf6e;      --t-warn:#e9a13b;     --t-err:#ff6b5e;
  --t-r:14px;          --t-r2:10px;
  --t-scale:1;         --t-shadow:0 2px 10px rgba(0,0,0,.40);
}

html[data-design="kueche"] {
  --t-bg:#ffffff;      --t-surface:#ffffff;  --t-surface2:#efeeee;
  --t-ink:#000000;     --t-ink2:#3a3a3a;
  --t-line:#000000;    --t-lw:2px;
  --t-accent:#d81b00;  --t-accent-tief:#a31400; --t-accent-ink:#ffffff; --t-signal-ink:#ffffff;
  --t-ok:#0f6b2e;      --t-warn:#8a5300;     --t-err:#b00000;
  --t-r:0px;           --t-r2:0px;
  --t-scale:1.15;      --t-shadow:none;
}

html[data-design="service"] {
  --t-bg:#f4f6f8;      --t-surface:#ffffff;  --t-surface2:#e8edf2;
  --t-ink:#12212e;     --t-ink2:#5b6c7a;
  --t-line:#d3dce4;    --t-lw:1px;
  --t-accent:#1565c0;  --t-accent-tief:#0d47a1; --t-accent-ink:#ffffff; --t-signal-ink:#ffffff;
  --t-ok:#2e7d32;      --t-warn:#b26a00;     --t-err:#c62828;
  --t-r:10px;          --t-r2:8px;
  --t-scale:1;         --t-shadow:0 1px 4px rgba(18,33,46,.10);
}
/* --- ENDE: Design-Varianten (--t-*) --- */


/* --- ANFANG: Bruecke auf die Bestandsnamen --- */
/* Jeder Name links wird im Portal bereits benutzt. Rechts steht ab jetzt
   ausschliesslich ein --t-*-Wert. Diese Datei ist damit die EINZIGE Stelle,
   an der eine Farbe wirklich entschieden wird. */
:root {
  /* Marke */
  --marke-akzent:      var(--t-accent);
  --marke-akzent-tief: var(--t-accent-tief);
  --auf-akzent:        var(--t-accent-ink);   /* Kontrast-Waechter */

  /* ⚠️ Der Akzent als SCHRIFT auf hellem Grund, nicht als Flaeche.
     Gemessener Anlass: der reine Akzent liegt in Modernist bei 13,6 px auf
     4,03 gegen den Seitengrund und auf 3,65 gegen die getoente Flaeche —
     unter der 4,5-Grenze. Betroffen war die ganze "leise"-Knopfvariante,
     also jeder Textknopf im Portal, darunter der "Zurueck"-Weg aus allen
     zwoelf Unteransichten.
     Der Anteil ist GEMESSEN: bei 88 % faellt Modernist auf getoenter Flaeche
     auf 4,34, bei 82 % liegt das Minimum ueber alle 15 Kombinationen bei 4,74.
     ⚠️ Nur fuer SCHRIFT. Flaechen und Rahmen behalten den reinen Akzent —
     sonst waere die Marke der Variante verwaschen. Deshalb wird hier gezielt
     "color:" ersetzt und nie "border-color:" oder "accent-color:". */
  --akzent-text:       color-mix(in srgb, var(--t-accent) 82%, var(--t-ink));

  /* Gold ist entfallen (Sevkets Entscheidung 2026-08-28). Das Design kennt pro
     Bildschirm genau EINE gefuellte Aktion, und die traegt die Akzentfarbe.
     Die beiden Namen bleiben nur stehen, weil der Bestand sie an 8 Stellen
     anspricht — sie zeigen jetzt auf denselben Wert wie jede andere Hauptaktion. */
  --marke-gold:        var(--t-accent);
  --marke-gold-hell:   var(--t-accent);

  /* Buehne — im neuen Design gibt es keinen Farbverlauf mehr, sondern eine
     flache Flaeche. Die vier Namen bleiben, damit die Bestandsregeln greifen. */
  --buehne-hell:  var(--t-bg);
  --buehne-mitte: var(--t-bg);
  --buehne-tief:  var(--t-bg);
  --marke-buehne: var(--t-bg);
  --buehne-text:       var(--t-ink);
  --buehne-text-leise: var(--t-ink2);
  --buehne-flaeche:    var(--t-surface);
  --buehne-rand:       var(--t-line);

  /* Flaechen */
  --papier:            var(--t-surface);
  --papier-feld:       var(--t-surface);
  --papier-rand:       var(--t-line);
  --papier-getoent:    var(--t-surface2);
  --papier-text:       var(--t-ink);
  --papier-text-leise: var(--t-ink2);

  /* Signale — Textfarbe direkt aus der Variante, Flaeche als leichte
     Beimischung UEBER der Kartenflaeche. color-mix statt fester rgba-Werte:
     ein fester rgba-Wert waere in Nacht auf dunklem Grund unsichtbar. */
  --signal-ok:            var(--t-ok);
  --signal-ok-flaeche:    color-mix(in srgb, var(--t-ok)   8%, var(--t-surface));
  --signal-warn:          var(--t-warn);
  --signal-warn-flaeche:  color-mix(in srgb, var(--t-warn) 10%, var(--t-surface));
  --signal-fehler:        var(--t-err);
  --signal-fehler-flaeche: color-mix(in srgb, var(--t-err) 10%, var(--t-surface));
  --signal-ki:            #5C3FAE;   /* Gemini/KI — eigene Bedeutung, bleibt lila */

  /* Schrift — das Design kennt genau eine Familie. Die frueheren
     Georgia-Kursiv-Ueberschriften entfallen damit bewusst (Sevkets
     Entscheidung 2026-08-28: "Auf das neue Design umstellen"). */
  --schrift: Archivo, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --schrift-titel: var(--schrift);

  /* Abstaende — 4er-Raster, keine Zwischenwerte (unveraendert) */
  --ab-1: 4px;  --ab-2: 8px;  --ab-3: 12px; --ab-4: 16px;
  --ab-5: 20px; --ab-6: 24px; --ab-8: 32px; --ab-10: 40px;

  /* Form */
  --rund-feld:   var(--t-r2);
  --rund-knopf:  var(--t-r);
  --rund-karte:  var(--t-r2);
  --rund-dialog: var(--t-r2);
  --schatten-karte:  var(--t-shadow);
  --schatten-dialog: var(--t-shadow);

  /* Pfeil im Auswahlfeld - siehe Warnung an der select-Regel weiter unten.
     Dunkel fuer die vier hellen Varianten, Nacht setzt seinen eigenen. */
  --feld-pfeil: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyMCAyMCI+PHBhdGggZD0iTTUgOGw1IDUgNS01IiBmaWxsPSJub25lIiBzdHJva2U9IiM2QjY4NjYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIi8+PC9zdmc+);

  /* Ziele */
  --ziel: 44px;          /* Mindest-Touchflaeche, auch am Rechner */
  --feld-hoehe: 56px;    /* Design: "Hoehe nie unter 56 dp" */
  /* Maße des Bestell-Wächters — aus tokens.json des Design-Systems (18.09.),
     Werte am Portal gemessen, nicht geschätzt. Die Regeln weiter unten
     nennen ab jetzt die Variable statt der Zahl; die Zahl bleibt gleich. */
  --knopf-hoehe: 56px;   /* Grundhöhe jedes Knopfes */
  --knopf-klein: 36px;   /* Knopf in einer Listenzeile */
  --knopf-symbol: 36px;  /* Symbolknopf in einer Zeile */
  --knopf-pc: 52px;      /* Bestellkarte in der PC-App */
  --knopf-kassa: 46px;   /* Karte in einer Kassa-Spalte */
  --alarm-knopf: 64px;   /* Wächter-Alarm am Handy/Browser */
  --alarm-knopf-pc: 84px;/* Wächter-Alarm in der PC-App */
  --karte-pc: 460px;     /* kleinste Spalte im PC-Kartenraster */
  --kachel-min: 140px;   /* kleinste Kassa-Kachel */
  --seitenspalte: 420px; /* Kassa-Seitenspalte ab 1800 px */
  --navi-spalte: 240px;  /* feste Navigationsleiste ab 1000 px */
  --inhalt-max: 1440px;  /* größte Inhaltsbreite */
  --r-pille: 999px;      /* Pille: Reservierung, Spaltenzahl, Ampel */
  --schatten-snackbar: 0 8px 24px rgba(20,13,8,.28);
  /* Signal als SCHRIFT: nie rein, sondern 60 % mit t-ink gemischt — die reine
     Signalfarbe auf der eigenen Tönung lag in 11 von 20 Fällen unter 4,5:1
     (Küche XL 2,83). Der Punkt/Rand behält die volle Farbe. */
  --warn-text:   color-mix(in srgb, var(--t-warn) 60%, var(--t-ink));
  --ok-text:     color-mix(in srgb, var(--t-ok)   60%, var(--t-ink));
  --fehler-text: color-mix(in srgb, var(--t-err)  60%, var(--t-ink));
}
/* --- ENDE: Bruecke auf die Bestandsnamen --- */
/* --- ENDE: Tokens --- */


/* --- ANFANG: Alias auf Alt-Namen (nach E4 entfernen) --- */
:root {
  --accent: var(--marke-akzent);
  --accent-dunkel: var(--marke-akzent-tief);
  --text: var(--papier-text);
  --text-secondary: var(--papier-text-leise);
  --warm-text: var(--buehne-text);
  --gold: var(--marke-gold);
  --gold-hell: var(--marke-gold-hell);
  --success: var(--signal-ok);
  --error: var(--signal-fehler);
  --error-warm: var(--signal-fehler);
  --warning: var(--signal-warn);

  /* Nicht in Abschnitt 2 aufgefuehrt, aber im Bestand IN VERWENDUNG —
     am Code nachgemessen (Regel 2). Ohne diese vier bricht der
     Koerper-Verlauf und jede Georgia-Ueberschrift. */
  --warm-hell: var(--buehne-hell);      /*  1 Verwendung */
  --warm-mitte: var(--buehne-mitte);    /*  2 Verwendungen */
  --warm-dunkel: var(--buehne-tief);    /*  2 Verwendungen */
  --font-serif: var(--schrift-titel);   /*  5 Verwendungen */
  /* --overlay entfaellt: 0 Verwendungen im gesamten Portal. */
}
/* --- ENDE: Alias auf Alt-Namen --- */

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--schrift);
  background: var(--t-bg);
  color: var(--t-ink);
  /* Kueche XL skaliert die GANZE Seite. Der Bestand rechnet in px, nicht in
     rem — eine Aenderung der Wurzel-Schriftgroesse wuerde davon nichts
     erreichen. zoom ist hier der einzige Weg, der auch die 929 Inline-Stile
     mitnimmt. Bei allen anderen Varianten ist --t-scale 1, also wirkungslos. */
  zoom: var(--t-scale);
  /* ⚠️ WEIL DAS HIER STEHT, DARF KEINE EINZELNE REGEL NOCHMAL
     "calc(... * var(--t-scale))" RECHNEN. Genau das stand bis zum 2026-08-29
     an drei Stellen (h1, .drawer-eintrag, .btn-primary) und hat sie in
     Kueche XL um den Faktor 1,322 statt 1,150 wachsen lassen — am laufenden
     Portal ueber die Textbreite gemessen, nicht geschaetzt. Der Schaden ist
     nicht die Groesse an sich, sondern dass DREI Stellen anders wachsen als
     der Rest der Seite: die Verhaeltnisse verrutschen nur in dieser einen
     Variante, und genau dort sitzt der Mensch, der am schlechtesten sieht.
     Das Design-Dokument benutzt calc(), weil es KEIN zoom hat. Wir haben es. */
  padding: 16px;
}
.box {
  width: 100%;
  max-width: 400px;
  background: var(--t-surface);
  border: var(--t-lw) solid var(--t-line);
  border-radius: var(--t-r2);
  padding: 32px 24px;
  box-shadow: var(--t-shadow);
}
/* Haupt-Screen (nach Login) trägt KEINE eigene Karte — der warme Gradient
   der body scheint direkt durch, wie in EmployeeScreen.kt (Brush.verticalGradient
   über den ganzen Screen, Glass-Cards direkt darauf). */
#screenHaupt.box {
  background: transparent;
  box-shadow: none;
  /* ⚠️ Die Polsterung steht als Variable, weil die KLEBENDE Titelzeile sie
     als Gegenwert braucht (negativer Rand, damit sie ueber die volle Breite
     laeuft). Am 2026-08-29 gemessen: mit fest eingetragenen -24px stand die
     Zeile am Handy 10 px links UND rechts ueber, weil dort in Wahrheit 12 px
     gepolstert wird. Wer die Polsterung aendert, aendert ab jetzt nur noch
     die Variable — die Kopfzeile zieht von selbst mit. */
  --pad-x: 18px;
  --pad-y: 20px;
  padding: var(--pad-y) var(--pad-x) 32px;
}
/* --- ANFANG: Firmenlogo ---
   Sevkets Vorgabe 2026-08-28: kein Rahmen, kein Kreis. Das Logo steht frei.
   WARNUNG object-fit: contain statt cover - cover SCHNEIDET zu. Solange ein
   Rahmen drumherum war, fiel das nicht auf; frei stehend waere ein breites
   Logo an beiden Seiten abgeschnitten. Deshalb feste Hoehe, freie Breite. */
.login-logo {
  display: block;
  height: 76px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  margin: 0 auto 14px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
/* --- ENDE: Firmenlogo --- */
h1 {
  font-size: 1.45rem; text-align: center; margin: 0 0 6px;
  font-family: var(--schrift); font-weight: 800; letter-spacing: -.01em; color: var(--t-ink);
}
#mitarbeiterName {
  font-family: var(--schrift);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--t-ink);
}
.sub { text-align: center; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 24px; }
#screenHaupt .sub { color: var(--buehne-text-leise); }
/* --- ANFANG: Anmelde-Felder (Firmen-Code und PIN) --- */
/* Mittig, gesperrt, gross — das ist RICHTIG fuer eine Ziffernfolge, die man
   blind eintippt. Bis E4 galt genau diese Regel fuer JEDES input[type=text]
   im Portal: alle 79 Textfelder standen mittig mit 2 px Sperrsatz in 19,2 px,
   auch Name, Adresse und Suche. Deshalb jetzt auf die zwei Anmeldefelder
   begrenzt (Abschnitt 5). */
#firmaCodeInput, #pinInput {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--feld-hoehe);
  padding: 16px 14px;
  font-size: 1.2rem;
  text-align: center;
  letter-spacing: 2px;
  border: var(--t-lw) solid var(--papier-rand);
  border-radius: var(--rund-feld);
  margin-bottom: 12px;
  background: var(--papier-feld);
  color: var(--papier-text);
}
/* --- ENDE: Anmelde-Felder --- */
button {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  margin-bottom: 8px;
  font-family: inherit;
}
.btn-primary { background: var(--t-accent); color: var(--t-accent-ink); }
.btn-accent { background: var(--gold); color: #3A2914; }
.btn-secondary { background: var(--t-surface2); color: var(--text); }
/* WARNUNG Hier stand bis E3 eine Sonderregel aus der Verlaufs-Aera:
   background: var(--t-line) mit color: var(--warm-text). Beide loesen in
   Modernist auf #201e1d auf und in Kueche XL auf #000000 - der Knopf war
   damit SCHWARZ AUF SCHWARZ, also unsichtbar. Ersatzlos entfernt; es gilt
   jetzt die normale .btn-secondary-Form darueber. */
.link {
  display: block;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 16px;
  cursor: pointer;
  text-decoration: underline;
}
#screenHaupt .link { color: var(--t-ink2); }
/* --- ANFANG: Meldungen (Etappe E3) ---
   Die drei Kaesten sind der einzige Weg, auf dem das Portal einem Menschen
   sagt, dass etwas schiefging - allein zeigeFehler() wird an 284 Stellen
   gerufen. Deshalb laufen sie ab jetzt auf den Signalfarben der Variante.

   WARNUNG Die zwei frueheren #screenHaupt-Sonderfarben (#F5CFC7 hellrosa,
   #C9EBD4 hellgruen) sind ERSATZLOS entfallen. Sie waren fuer den dunklen
   Farbverlauf gedacht; auf der jetzt hellen Flaeche stand jede Fehlermeldung
   des Hauptbildschirms hellrosa auf fast weiss - gemessen unlesbar. Wer sie
   wieder einfuehrt, macht 284 Fehlermeldungen erneut unsichtbar. */
.fehler, .erfolg, .hinweis {
  border-radius: var(--t-r2);
  padding: 12px 14px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 12px;
  background: var(--t-surface);
}

/* WARNUNG Der Kasten steht bewusst auf der NORMALEN Flaeche, nicht auf einer
   eingefaerbten. Mit einer 10-Prozent-Tuschung derselben Farbe darunter fiel
   der Kontrast gemessen auf 4,28 (Klassik) - unter den 4,5, die 14-px-Text
   braucht. Das Signal traegt der Rahmen, nicht der Untergrund. */
.fehler {
  color: var(--signal-fehler);
  border: var(--t-lw) solid var(--signal-fehler);
}
.erfolg {
  color: var(--signal-ok);
  border: var(--t-lw) solid var(--signal-ok);
}

/* WARNUNG Der Hinweis ist der EINZIGE der drei, dessen Text NICHT in seiner
   Signalfarbe steht. Grund gemessen: --t-warn ist in Klassik #e68c3a und
   erreicht selbst auf reinem Weiss nur 2,53. Das Design setzt Warn deshalb
   ausschliesslich als FLAECHE ein (der 10-px-Balken im Status-Abschnitt),
   nie als Schrift. Hier traegt darum der linke Balken das Signal und der
   Text steht lesbar in der Textfarbe. Wer den Text auf var(--t-warn)
   umstellt, macht jeden Hinweis in drei von fuenf Varianten unlesbar. */
.hinweis {
  color: var(--papier-text);
  border: var(--t-lw) solid var(--signal-warn);
  border-left: 6px solid var(--signal-warn);
}
/* --- ENDE: Meldungen --- */
/* WARNUNG Sonderregel entfernt (E3): sie faerbte den Hinweistext in die
   Textfarbe statt in die Warnfarbe - der Kasten sah dann aus wie normaler
   Text und nicht wie ein Hinweis. */
.status-card {
  text-align: center;
  padding: 20px;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1.5px solid transparent;
}
.status-eingestempelt { background: rgba(95,174,120,0.22); border-color: rgba(95,174,120,0.45); }
.status-pause { background: rgba(217,161,92,0.22); border-color: rgba(217,161,92,0.45); }
.status-nicht { background: var(--t-surface); border-color: var(--t-line); }
.status-card .zeit { font-size: 1.6rem; font-weight: 700; margin: 4px 0; color: var(--warm-text); }
.status-card .label { color: var(--buehne-text-leise); font-size: 0.85rem; }
.hidden { display: none !important; }
#gpsStatus { font-size: 0.8125rem; color: var(--buehne-text-leise); text-align: center; margin-bottom: 8px; }
.stunden-section { margin-top: 20px; border-top: 1.5px solid var(--t-line); padding-top: 16px; }
.stunden-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.stunden-nav span { font-size: 0.9rem; font-weight: 600; color: var(--warm-text); }
.nav-btn { width: auto; padding: 6px 14px; margin: 0; background: var(--t-surface2); color: var(--papier-text); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); font-size: 0.9rem; }
.stunden-summe { text-align: center; font-size: 1.6rem; font-weight: 700; color: var(--gold-hell); }
.stunden-summe-label { text-align: center; font-size: 0.8125rem; color: var(--t-ink2); margin-bottom: 12px; }
.stunden-liste { max-height: 320px; overflow-y: auto; }
.eintrag-zeile { padding: 10px 0; border-bottom: 1px solid var(--t-line); font-size: 0.85rem; color: var(--warm-text); }
.eintrag-zeile:last-child { border-bottom: none; }
.eintrag-datum-row { display: flex; justify-content: space-between; font-weight: 600; }
.eintrag-detail { color: var(--t-ink2); font-size: 0.8125rem; margin-top: 2px; }
.eintrag-aktionen { display: flex; gap: 6px; margin-top: 6px; }
/* ⚠️ NUR für die Reservierungsliste, bewusst nicht für .eintrag-aktionen allgemein
   (die Klasse wird an fünf weiteren Stellen verwendet, die hier niemand mitgetestet hat).
   Grund: Eine Reservierungszeile trägt bis zu DREI Knöpfe. Ohne Umbruch ergibt sich
   aus den drei nicht umbrechenden Knöpfen eine Mindestbreite von 294px für die linke
   Spalte — die .liste-zeile ist aber ein Flex-Behälter mit space-between, und die
   Statusspalte daneben wird dadurch aus der Karte gedrückt. Am 375px-Schirm im
   Emulator nachgemessen: Seite 419px breit statt 375, Status ragte 78px heraus.
   Mit Umbruch: Überlauf 0, "Bestätigen"+"Ablehnen" nebeneinander, "Notiz" darunter. */
#reservierungenListe .eintrag-aktionen { flex-wrap: wrap; }
.stunden-leer { text-align: center; color: var(--t-ink2); font-size: 0.85rem; padding: 12px 0; }

/* --- ANFANG: Tab-Navigation --- */
/* --- ANFANG: Kopfzeile + Drawer --- */
/* Ersetzt die frühere Reiterleiste (.tab-bar/.tab-btn, mit dieser Änderung
   entfallen). Bei sechs Bereichen blieben auf einem 375-px-Handy je ~57 px —
   "Dienstplan" passte einzeilig nicht mehr hinein. */
.kopf-leiste { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
/* --- ANFANG: Titelzeile bleibt oben stehen --- */
/* Im Design ist die Titelzeile Teil des Rahmens und immer sichtbar. In einer
   scrollenden Seite ist das genau "sticky". Nebenwirkung, die den Ausschlag
   gab: der Menueknopf am Handy ist damit auf JEDER Scrollhoehe erreichbar —
   vorher musste man erst ganz nach oben, um das Menue zu oeffnen. */
.kopf-leiste {
  position: sticky;
  top: 0;
  z-index: 30;                    /* unter Drawer (41) und Schatten (40) */
  background: var(--t-surface);
  /* Gegenstueck zur Polsterung des Inhalts — aus DERSELBEN Variable, damit
     beide nicht auseinanderlaufen koennen. Rueckfallwerte fuer den Fall,
     dass die Zeile je ausserhalb von #screenHaupt.box landet. */
  margin: calc(-1 * var(--pad-y, 20px)) calc(-1 * var(--pad-x, 18px)) 10px;
  padding: 14px var(--pad-x, 18px);
  border-bottom: var(--t-lw) solid var(--t-line);
}
/* --- ENDE: Titelzeile bleibt oben stehen --- */
.menue-knopf { width: 40px; height: 40px; flex-shrink: 0; padding: 0; margin: 0; background: var(--t-surface2); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); color: var(--papier-text); font-size: 1.15rem; line-height: 1; }
.kopf-titel { font-size: 0.95rem; font-weight: 700; color: var(--warm-text); }

/* ⚠️ NICHT über das hidden-Attribut aus- und einblenden: ".drawer" setzt
   display:flex, und eine Autoren-Regel schlägt die Browser-Regel
   "[hidden]{display:none}" — der Drawer blieb dadurch dauerhaft offen,
   obwohl das Attribut korrekt gesetzt war (Şevkets Meldung 2026-08-13).
   Stattdessen aus dem Bild geschoben; das ergibt nebenbei die Bewegung,
   die ein Drawer ohnehin haben soll. visibility hält ihn zusätzlich aus
   der Tabulator-Reihenfolge, solange er zu ist. */
.drawer-schatten {
  position: fixed; inset: 0; background: rgba(20,13,8,0.55); z-index: 40;
  opacity: 0; pointer-events: none; transition: opacity 220ms ease;
}
.drawer-schatten.offen { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 41;
  width: 82vw; max-width: 300px;
  background: var(--t-surface);
  border-right: 1.5px solid var(--t-line);
  box-shadow: 4px 0 24px rgba(20,13,8,0.4);
  padding: 20px 14px 28px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateX(-100%); visibility: hidden;
  transition: transform 240ms ease, visibility 240ms ease;
}
.drawer.offen { transform: translateX(0); visibility: visible; }
@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-schatten { transition: none; }
}

.drawer-kopf { display: flex; align-items: flex-start; gap: 8px; padding: 0 8px 14px; border-bottom: 1.5px solid var(--t-line); margin-bottom: 10px; }
.drawer-kopf-text { flex: 1; min-width: 0; }
.drawer-zu { width: 32px; height: 32px; flex-shrink: 0; padding: 0; margin: 0; background: var(--t-surface2); border: none; border-radius: 50%; color: var(--papier-text); font-size: 0.95rem; line-height: 1; }
.drawer-name { font-size: 1rem; font-weight: 700; color: var(--warm-text); }
.drawer-standort { font-size: 0.8125rem; color: var(--buehne-text-leise); margin-top: 2px; }
.drawer-gruppe { display: flex; flex-direction: column; gap: 4px; }
.drawer-trenner { font-size:0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--buehne-text-leise); padding: 14px 8px 6px; }
/* Navigation nach dem Design ("Screen · Web-App"): randlose Liste ueber die
   volle Breite, 52 px hoch, mit einer duennen Trennlinie zwischen den
   Eintraegen. Der Radius von 10 px war das letzte Stueck der alten Form —
   in Modernist und Kueche XL soll dort keine Rundung sein. */
.drawer-eintrag {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 52px; padding: 12px 18px; margin: 0;
  background: transparent; border: none; border-radius: 0;
  border-bottom: 1px solid var(--t-surface2);
  color: var(--t-ink);
  font-size: 0.9375rem;
  font-weight: 600; text-align: left;
}
.drawer-eintrag span { width: 1.4rem; flex-shrink: 0; font-size: 1rem; }
.drawer-eintrag:hover { background: var(--t-surface2); }
.drawer-eintrag.aktiv { background: var(--t-accent); color: var(--t-accent-ink); font-weight: 800; }
.drawer-abmelden { color: var(--t-ink); }
/* --- ENDE: Kopfzeile + Drawer --- */

/* --- ANFANG: Start- und Info-Bereich (Zwillinge zu EmployeeDashboardTab.kt
   und EmployeeInfoTab.kt) --- */
.ma-gruss { padding: 2px 2px 10px; }
.ma-gruss-titel { font-size: 1.15rem; font-weight: 700; color: var(--warm-text); }
.ma-gruss-sub { font-size: 0.8125rem; color: var(--buehne-text-leise); margin-top: 2px; }

.ma-uhr { border-radius: 16px; background: var(--t-surface); border: 1.5px solid var(--t-line); padding: 14px; text-align: center; margin-bottom: 12px; }
.ma-uhr-label { font-size: 0.8125rem; color: var(--buehne-text-leise); }
/* Ziffern in fester Breite — sonst zappelt die laufende Uhr bei jeder Sekunde. */
.ma-uhr-zeit { font-size: 1.7rem; font-weight: 700; color: var(--gold-hell); margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.ma-uhr-pause { font-size: 0.8125rem; color: var(--t-ink2); }

/* Drei Karten nebeneinander wie in der App (Row mit weight(1f)). */
.ma-karten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.ma-karte { border-radius: 14px; background: var(--t-surface); border: 1.5px solid var(--t-line); padding: 12px 8px; text-align: center; color: var(--warm-text); }
.ma-karte-knopf { cursor: pointer; }
.ma-karte-knopf:hover { background: var(--t-surface2); }
.ma-karte-zeichen { font-size: 1.25rem; }
.ma-karte-titel { font-size: 0.8125rem; font-weight: 700; margin-top: 4px; hyphens: auto; overflow-wrap: anywhere; }
.ma-karte-sub { font-size:0.8125rem; color: var(--t-ink2); margin-top: 2px; }

.ma-infokopf { border-radius: 16px; background: var(--t-surface); border: 1.5px solid var(--t-line); padding: 16px; margin-bottom: 12px; }
.ma-infokopf-name { font-size: 1.05rem; font-weight: 700; color: var(--warm-text); }
.ma-infokopf-zeile { font-size: 0.8125rem; color: var(--buehne-text-leise); margin-top: 3px; }

.ma-infozeile { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 0.8125rem; color: var(--buehne-text-leise); }
.ma-infozeile b { color: var(--warm-text); }
/* --- ENDE: Start- und Info-Bereich --- */

.tab-panel { display: none; margin-top: 14px; }
.tab-panel.aktiv { display: block; }
/* --- ENDE: Tab-Navigation --- */

/* --- ANFANG: Dienstplan-Tab --- */
.kw-header { background: var(--t-accent); color: var(--t-accent-ink); border-radius: 18px; padding: 16px; margin-bottom: 12px; box-shadow: var(--t-shadow); }
.kw-nav { display: flex; align-items: center; justify-content: space-between; }
.kw-nav-btn { width: auto; padding: 4px 12px; margin: 0; background: var(--t-surface2); color: var(--papier-text); border-radius: var(--t-r2); }
.kw-titel { text-align: center; }
.kw-titel .kw-nummer { font-weight: 700; font-size: 0.95rem; }
.kw-titel .kw-range { font-size: 0.8125rem; opacity: 0.85; }
.kw-geplant { text-align: center; font-weight: 700; margin-top: 10px; font-size: 0.95rem; }
.btn-urlaub { width: 100%; margin-top: 10px; background: var(--t-surface2); color: var(--papier-text); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); padding: 8px; font-size: 0.8125rem; }

.tag-card { border-radius: 16px; padding: 14px; margin-bottom: 8px; background: var(--t-surface); border: 1.5px solid var(--t-line); color: var(--warm-text); }
.tag-card.heute { background: var(--t-accent); border-color: var(--t-line); color: var(--auf-akzent); }
/* WARNUNG Auf einer Akzentflaeche MUSS jede Schrift --auf-akzent tragen.
   Ohne diese zwei Regeln standen "HEUTE", "Kein Dienst" und die zwei Knoepfe
   in der normalen Schriftfarbe — in Nacht hell auf hellem Orange (2,77). */
.tag-card.heute *,
.kw-header * { color: var(--auf-akzent); }
.tag-card.heute .btn-urlaub,
.tag-card.heute .btn-pdf,
.kw-header .btn-urlaub,
.kw-header .btn-pdf,
.kw-header .kw-nav-btn {
  background: transparent;
  color: var(--auf-akzent);
  border-color: var(--auf-akzent);
}
.tag-card-head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.85rem; }
.tag-badge { font-size:0.8125rem; font-weight: 700; padding: 2px 6px; border-radius: var(--t-r2); background: var(--t-surface2); color: var(--papier-text); margin-left: 6px; }
.tag-card.heute .tag-badge { background: var(--auf-akzent); color: var(--akzent-text); }
.tag-shift { font-size: 0.8125rem; margin-top: 6px; display: flex; justify-content: space-between; font-weight: 600; }
.tag-leer { font-size: 0.8125rem; opacity: 0.75; margin-top: 6px; }
.tag-card.heute .tag-leer { opacity: 0.9; }
.tag-verf { font-size: 0.8125rem; margin-top: 4px; opacity: 0.85; }
/* --- ENDE: Dienstplan-Tab --- */

/* --- ANFANG: Listen (Anträge / Nicht verfügbar) --- */
.liste-card { border-radius: 16px; background: var(--t-surface); border: 1.5px solid var(--t-line); padding: 4px 14px; margin-top: 12px; max-height: 320px; overflow-y: auto; }
.liste-titel { font-size: 0.85rem; font-weight: 700; margin: 12px 0 4px; display: flex; justify-content: space-between; align-items: center; color: var(--warm-text); }
.liste-zeile { padding: 10px 0; border-bottom: 1px solid var(--t-line); display: flex; justify-content: space-between; align-items: flex-start; font-size: 0.82rem; gap: 8px; color: var(--warm-text); }
.liste-zeile:last-child { border-bottom: none; }
.liste-status { font-size:0.8125rem; font-weight: 700; white-space: nowrap; }
.liste-loeschen { font-size:0.8125rem; color: var(--gold-hell); text-decoration: underline; cursor: pointer; white-space: nowrap; margin-top: 4px; display: block; text-align: right; }
.liste-leer { text-align: center; color: var(--t-ink2); font-size: 0.85rem; padding: 12px 0; }
.icon-btn { width: 26px; height: 26px; padding: 0; margin: 0; background: var(--t-surface2); color: var(--papier-text); border-radius: var(--t-r2); font-size: 0.85rem; line-height: 1; }
.liste-card-formular {
  /* ⚠️ .liste-card hat max-height:320px + overflow-y:auto — richtig fuer kurze
     LISTEN, falsch fuer ein FORMULAR. Am 2026-08-29 am Bildschirmfoto gesehen:
     Die Zielkarte braucht 437px, es fehlten 117px. Abgeschnitten waren genau die
     Warnung "N fruehere Fahrten werden umgestellt" und der Knopf darunter — also
     die Angabe, wegen der man vor dem Tippen innehalten soll.
     ⚠️ Keine Messung hat das gefunden: der Inhalt war nicht weg, sondern nur in
     einem Scrollbereich INNERHALB der Karte. Erst das Bildschirmfoto zeigte es.
     ⚠️ Bewusst eine Zusatzklasse statt einer Aenderung an .liste-card: die hat 47
     Verwendungen, und bei einer echten Liste ist die Begrenzung richtig. */
  max-height: none;
  overflow-y: visible;
}
/* --- ENDE: Listen --- */

/* --- ANFANG: Mehr-Tab --- */
.btn-nachtragen { background: var(--t-accent); color: var(--t-accent-ink); }
.mehr-links { margin-top: 16px; border-top: 1.5px solid var(--t-line); padding-top: 12px; }
.mehr-link-btn { display: block; width: 100%; text-align: left; background: var(--t-surface); border: 1.5px solid var(--t-line); color: var(--warm-text); margin-bottom: 8px; padding: 12px 14px; border-radius: 14px; font-size: 0.88rem; font-weight: 600; }
.zurueck-link { display: inline-block; color: var(--buehne-text-leise); font-size: 0.85rem; cursor: pointer; margin-bottom: 8px; }
.sub-titel { font-size: 1.05rem; margin: 0 0 12px; font-family: var(--schrift); font-weight: 800; letter-spacing: -.01em; color: var(--warm-text); }
/* --- ENDE: Mehr-Tab --- */

/* --- ANFANG: Material melden --- */
.material-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chip { background: var(--t-accent); color: var(--t-accent-ink); border-radius: 14px; padding: 5px 10px; font-size: 0.8125rem; display: flex; align-items: center; gap: 6px; }
.chip .chip-x { cursor: pointer; font-weight: 700; }
.material-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.material-tile { border: 1.5px solid var(--t-line); border-radius: 14px; padding: 10px; background: var(--t-surface2); color: var(--warm-text); }
.material-tile.aktiv { border-color: var(--gold); background: rgba(217,161,92,0.22); }
.material-tile .mt-name { font-size: 0.82rem; font-weight: 600; min-height: 34px; }
.material-tile .mt-row { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
/* Der Plus-Knopf trug Gold auf einer Schleier-Flaeche. Beides gab es nur fuer
   den alten Farbverlauf: gemessen 1,91 (Klassik) bis 3,92 (Modernist) — unter
   den 4,5, die er als Textzeichen braucht. Jetzt Akzentflaeche mit der
   Akzentschrift der Variante, wie jede andere gefuellte Aktion im Design. */
.mt-btn { width: 30px; height: 30px; padding: 0; margin: 0; background: var(--t-accent); color: var(--t-accent-ink); border-radius: var(--t-r2); font-size: 1rem; font-weight: 800; line-height: 1; }
.mt-menge { font-size: 0.85rem; font-weight: 700; color: var(--gold-hell); }
/* --- ENDE: Material melden --- */

/* --- ANFANG: Admin-Dashboard --- */
.dash-begruessung { margin-bottom: 12px; }
.dash-begruessung-titel { font-size: 1.15rem; color: var(--warm-text); font-family: var(--schrift); font-weight: 800; letter-spacing: -.01em; }
.dash-begruessung-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; font-size: 0.82rem; color: var(--buehne-text-leise); }
.dash-begruessung-standort { background: var(--t-surface2); border-radius: 20px; padding: 3px 10px; font-size:0.8125rem; font-weight: 600; color: var(--papier-text); }
.dash-einaus-pille { flex: 1; text-align: center; border-radius: var(--t-r2); padding: 5px 6px; font-size:0.8125rem; font-weight: 700; background: var(--t-surface2); }
/* WARNUNG Die reine Signalfarbe erreicht auf --t-surface2 nur 4,28 bis 4,41
   (Klassik, Modernist, Service) — knapp unter 4,5 bei 13-px-Fettschrift. Die
   Beimischung dunkelt sie zur Schriftfarbe hin ab, ohne den Farbton zu
   verlieren. In Nacht ist --t-ink HELL, dort hellt dieselbe Zeile korrekt auf. */
.dash-einaus-gruen { color: color-mix(in srgb, var(--t-ok) 82%, var(--t-ink)); }
.dash-einaus-rot   { color: color-mix(in srgb, var(--t-err) 82%, var(--t-ink)); }
.dash-hero { border-radius: 18px; padding: 16px 18px; margin-bottom: 12px; background: var(--t-accent); box-shadow: var(--t-shadow); }
.dash-hero-gold { background: var(--t-accent); }
.dash-hero-label { color: var(--t-accent-ink); opacity: .85; font-size: 0.8125rem; font-weight: 600; }
.dash-hero-wert { color: var(--t-accent-ink); font-size: 1.7rem; font-weight: 700; margin: 4px 0; }
.dash-hero-vergleich { color: var(--t-accent-ink); opacity: .85; font-size: 0.8125rem; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
/* --- ANFANG: Kennzahl-Karte (Etappe E12, Design-Abschnitt 3C) ---
   Design: kleine Grossbuchstaben-Beschriftung OBEN, darunter die Zahl gross.
   Umgesetzt ueber flex-order statt ueber zwoelf umgebaute HTML-Bloecke — im
   Quelltext bleibt die Reihenfolge Zeichen / Zahl / Wort, angezeigt wird
   Zeichen / Wort / Zahl.
   ⚠️ Das Emoji steht NICHT im Design und bleibt bewusst: es ist fuer die zwei
   Kollegen, die nicht lesen koennen, der einzige Anker auf der Karte
   (Projektregel "Symbol traegt die Bedeutung, Text erklaert nur").
   ⚠️ Die Zahl laeuft auf der normalen Schriftfarbe, nicht auf einer Signalfarbe.
   Eine Kennzahl ist eine Tatsache, keine Warnung — und der frueher hier
   verwendete Akzent faellt in Modernist auf 4,2 gegen die Kartenflaeche. */
.dash-stat {
  border-radius: var(--t-r2);
  background: var(--t-surface);
  border: var(--t-lw) solid var(--t-line);
  padding: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-stat-emoji { font-size: 1.2rem; }
/* Reihenfolge der Anzeige: Emoji (0) · Beschriftung (1) · Zahl (2). */
.dash-stat-label { order: 1; font-size: 0.8125rem; color: var(--t-ink2); }
.dash-stat-wert  { order: 2; font-size: 1.5rem; font-weight: 800; color: var(--papier-text); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
/* Grossbuchstaben nur, wo wirklich eine Kennzahl darunter steht. Die
   Kassenbuch-Karte traegt dieselbe Klasse, hat aber keine Zahl — ihr langer
   Beschriftungstext waere in Versalien nur noch schwer zu lesen. */
.dash-stat:has(.dash-stat-wert) .dash-stat-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
/* --- ENDE: Kennzahl-Karte (Etappe E12) --- */
.btn-mini { width: auto; margin: 0; padding: 8px 14px; background: var(--t-accent); color: var(--t-accent-ink); font-size: 0.8125rem; border-radius: 10px; white-space: nowrap; }
.btn-mini-secondary { width: auto; margin: 0; padding: 8px 14px; background: var(--t-accent); color: var(--t-accent-ink); font-size: 0.8125rem; border-radius: 10px; white-space: nowrap; }
.btn-pdf-export { width: 100%; margin-top: 8px; padding: 14px 16px; background: var(--t-surface); color: var(--akzent-text); border: 2px solid var(--accent); border-radius: 14px; font-size: 0.95rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-pdf-export:active { background: color-mix(in srgb, var(--t-accent) 8%, var(--t-surface)); }
.kb-standort-signal { display: flex; align-items: center; gap: 8px; padding: 10px 14px; margin-bottom: 10px; border-radius: 12px; background: color-mix(in srgb, var(--t-accent) 8%, var(--t-surface)); border: 1px solid color-mix(in srgb, var(--t-accent) 30%, var(--t-surface)); }
.kb-standort-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; animation: kbStandortPuls 1.4s ease-in-out infinite; }
@keyframes kbStandortPuls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.75); } }
.kb-standort-label { font-weight: 700; font-size: 0.85rem; color: var(--text); white-space: nowrap; }
.kb-standort-select { flex: 1; border: none; background: transparent; font-weight: 700; font-size: 0.9rem; color: var(--akzent-text); padding: 4px; }
.dp-wochentag-header { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--accent-dunkel); border-radius: 10px 10px 0 0; overflow: hidden; }
.dp-wochentag-header span { text-align: center; padding: 6px 0; color: var(--t-accent-ink); font-size:0.8125rem; font-weight: 700; }
/* ⚠️ minmax(0, 1fr) statt 1fr — NICHT kosmetisch: Eine Grid-Spalte waechst sonst
   ueber die min-content-Breite ihrer Zellen hinaus, und die Schicht-Chips tragen
   Mitarbeiternamen mit white-space: nowrap. Gemessen am 375-px-Schirm mit echten
   Daten: Inhalt 534 px in einem 349-px-Kasten mit overflow: hidden — die letzten
   rund zweieinhalb Spalten (Fr-So) waren abgeschnitten UND nicht scrollbar.
   Ohne Schichten faellt es nicht auf, deshalb blieb es unbemerkt.
   Die Namen werden jetzt mit Auslassungspunkten gekuerzt (der Chip hat dafuer
   bereits text-overflow: ellipsis) — drei sichtbare statt drei fehlender Tage. */
.dp-monat-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid #e8ddd2; border-top: none; border-radius: 0 0 10px 10px; overflow: hidden; }
.dp-tag-zelle { min-height: 64px; border: 0.5px solid #e8ddd2; padding: 3px; background: #fff; cursor: pointer; display: flex; flex-direction: column; }
.dp-tag-zelle.leer { background: #faf8f5; cursor: default; }
.dp-tag-zelle.gesperrt { background: #f0f0f0; }
.dp-tag-nummer { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size:0.8125rem; font-weight: 600; color: var(--text); }
.dp-tag-zelle.heute .dp-tag-nummer { background: var(--accent); color: var(--t-accent-ink); }
.dp-schicht-chip { font-size:0.8125rem; font-weight: 700; border-radius: 3px; padding: 1px 3px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dp-mehr-label { font-size:0.8125rem; color: var(--text-secondary); }
.dp-ampel-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; font-size:0.8125rem; }
.dp-woche-liste { display: flex; flex-direction: column; gap: 8px; }
.dp-woche-tag-card { border-radius: 12px; border: 1px solid #e8ddd2; background: #fff; padding: 10px 12px; cursor: pointer; }
.dp-woche-tag-card.heute { border-color: var(--accent); background: color-mix(in srgb, var(--t-accent) 6%, var(--t-surface)); }
.dp-woche-tag-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.85rem; color: var(--text); }
.dp-schicht-zeile { display: flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 8px; border-radius: 6px; font-size: 0.8125rem; }
.dp-kosten-box { background: #1a1a2e; border-radius: 12px; padding: 10px 12px; color: var(--t-accent-ink); }
.dp-kosten-titel { font-weight: 700; font-size: 0.8125rem; margin-bottom: 8px; }
.dp-kosten-zeile { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 4px; font-size: 0.8125rem; padding: 4px 0; }
/* ⚠️ AUSNAHME MIT ZAHLEN: 0,5 Deckkraft, obwohl Abschnitt 17 keine Textfarbe
   unter 0,85 erlaubt. Die Regel ist ein Stellvertreter fuer Lesbarkeit, und die
   ist hier gemessen erfuellt: Der Kasten hat einen EIGENEN, sehr dunklen Grund
   (#1a1a2e, kein warmer Verlauf), darauf ergibt Weiss bei 0,5 einen Kontrast
   von 5,19:1. Auf 0,88 angehoben waeren es 12,05:1 — die Kopfzeile saehe dann
   aus wie die Werte darunter, und die Spaltenhierarchie des Kastens waere weg.
   ⚠️ Nicht auf hellere Gruende uebertragen: dort faellt 0,5 sofort durch. */
.dp-kosten-header { color: var(--t-line); font-size:0.75rem; text-transform: uppercase; border-bottom: 1px solid var(--t-line); padding-bottom: 5px; }
.dp-kosten-gesamt { font-weight: 700; border-top: 1px solid var(--t-line); margin-top: 4px; padding-top: 6px; }
.dp-bedarf-slot-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: #faf8f5; border: 1px solid #e8ddd2; }
.dp-bedarf-slot-row input[type="time"] { flex: 1; min-width: 0; }
.dp-bedarf-slot-row input[type="number"] { width: 56px; text-align: center; }
.dp-vorschlag-zeile { border-radius: 10px; border: 1px solid #e8ddd2; background: #fff; padding: 10px 12px; margin-top: 8px; }
.dp-vorschlag-zeile.konflikt { border-color: #C62828; background: #FFEBEE; }
.dp-vorschlag-kopf { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dp-vorschlag-zeit { display: flex; gap: 8px; margin-top: 8px; }
.dp-vorschlag-warnung { margin-top: 6px; font-size: 0.8125rem; color: #856404; }
.dp-vorschlag-fehler { margin-top: 6px; font-size: 0.8125rem; color: #C62828; font-weight: 600; }
.btn-pdf-export svg { flex-shrink: 0; }
.tilgung-progress-track { height: 8px; border-radius: 4px; background: var(--t-surface2); overflow: hidden; margin: 6px 0; }
.tilgung-progress-fill { height: 100%; background: var(--gold-hell); border-radius: 4px; }
.dash-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--t-accent-ink); font-size:0.8125rem; font-weight: 700; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.dash-avatar-mehr { background: var(--t-surface2); color: var(--papier-text); cursor: default; }
/* --- ENDE: Admin-Dashboard --- */

/* --- ANFANG: Gemini-KI-Buttons (Farbe = DonCamilloColors.AccentPurple, "KI-Vorschlag"-Farbe) --- */
.btn-ki { background: linear-gradient(135deg, #7C5DDA, #5c3fae); color: var(--t-accent-ink); }
.ki-status { text-align: center; font-size: 0.8125rem; color: #5c3fae; font-weight: 600; margin-top: 6px; }
/* --- ENDE: Gemini-KI-Buttons --- */

/* --- ANFANG: Rechnung-Datei-Link (Beleg ansehen, sowohl Liste als auch Bezahlen-Modal) --- */
.datei-link-btn { display: inline-block; padding: 10px 16px; margin: 0 4px 8px; background: var(--t-surface2); color: var(--accent-dunkel); border-radius: 14px; font-size: 0.82rem; font-weight: 600; text-decoration: none; text-align: center; }
/* --- ENDE: Rechnung-Datei-Link --- */

/* --- ANFANG: PDF-Export (window.print()-basiert, keine Library nötig) --- */
.btn-pdf { background: var(--t-surface2); color: var(--papier-text); margin-top: 14px; border: var(--t-lw) solid var(--t-line); }
.druck-titel { display: none; }
@media print {
  body * { visibility: hidden; }
  .druck-aktiv, .druck-aktiv * { visibility: visible; }
  .druck-aktiv { position: absolute; left: 0; top: 0; width: 100%; padding: 0; }
  .geheim-beim-drucken { display: none !important; }
  .druck-titel { display: block; font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
}
/* Kontoauszug-PDF-Exporte (mirror KontoauszugPdfHelper.kt): eigenständige HTML/CSS-Dokumente,
   werden nur zum Druckzeitpunkt via .druck-aktiv sichtbar (sonst immer display:none) — jede
   Export-Funktion liefert ihr eigenes <style>, alle Selektoren darin sind auf #koDruckBereich
   gescoped, damit nichts in den Rest der App ausstrahlt. */
#koDruckBereich { display: none; }
@media print {
  #koDruckBereich.druck-aktiv { display: block !important; }
}
/* Dienstplan-PDF-Export: gleiche Konvention wie #koDruckBereich (eigenständiges Grid-Dokument,
   nur beim Drucken sichtbar, Selektoren gescoped auf #dpDruckBereich). */
#dpDruckBereich { display: none; }
@media print {
  #dpDruckBereich.druck-aktiv { display: block !important; }
}
/* Bugfix (2026-08-03, Şevket: "5 Seiten, danach 5 leere Seiten"): #koDruckBereich liegt als
   Geschwister-Element AUSSERHALB von #screenHaupt. body*{visibility:hidden} macht die App-Box
   beim Drucken zwar unsichtbar, nimmt aber weiter ihre reale Bildschirmhöhe ein (z.B. eine lange
   Kontoauszug-Buchungsliste) — Chrome zählt Druckseiten nach der Gesamt-Dokumenthöhe, nicht nach
   sichtbarem Inhalt, und hängt dadurch leere Zusatzseiten an. Fix: App-Box beim Kontoauszug-Druck
   komplett aus dem Fluss nehmen (siehe druckeBereich() — nur für den koDruckBereich-Fall aktiv). */
@media print {
  .druck-isoliert { display: none !important; }
}
/* --- ENDE: PDF-Export --- */

/* --- ANFANG: Modal/Dialog --- */
/* Dialoge bleiben bewusst helle Karten (wie native AlertDialog/WarmesDialog-
   Formulare) — Lesbarkeit von Formularfeldern geht hier vor Ambiente-Look. */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.55); align-items: center; justify-content: center; padding: 16px; z-index: 100; }
.modal-overlay.aktiv { display: flex; }
.modal-box { background: var(--t-surface); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); padding: 22px 20px; max-width: 380px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--t-shadow); }
/* WARNUNG Hier stand bis E3 die Serif-Kursiv-Ueberschrift der alten
   Gestaltung. Sevkets Entscheidung 2026-08-28 war, auf das neue Design
   umzustellen - das kennt genau eine Schriftfamilie. Betraf alle 47 Dialoge. */
.modal-box h2 {
  font-size: 1.1rem;
  margin: 0 0 12px;
  font-family: var(--schrift);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--papier-text);
}
/* Neue-Rechnung-Dialog: Formular + Beleg-Vorschau — mobile gestapelt (Standard), Desktop siehe unten */
.rn-modal-layout { display: flex; flex-direction: column; }
.rn-modal-vorschau { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.1); }
.rn-modal-vorschau img, .rn-modal-vorschau canvas { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.18); }
/* Reihenfolge-Dialog: 1. Fix ("nur einen Scroll-Bereich") reichte laut Şevket nicht (2026-08-05).
   Statt weiter am Scroll-Verhalten zu tunen: Kopf/Suche/Buttons FEST anzeigen, NUR die Liste
   selbst scrollt in ihrem eigenen begrenzten Bereich — "PDF erstellen" ist dadurch IMMER
   sichtbar, ganz ohne dass User dorthin scrollen muss. */
#modalReihenfolge .modal-box { display: flex; flex-direction: column; overflow-y: hidden; }
#modalReihenfolge #rfListe { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
/* Vollbild (2026-09-15, Şevket: "auf vollbild umstellen somit ist es viel leichter rechnungen
   zu ordnen und ausdrucken"): Ein Monat hat rund 100 Belege (August 2026 gemessen: 52 Rechnungen,
   30 Kartenabrechnungen, 11 Lohnzettel, 6 Einzahlungen, 3 Tilgungen) — in der 380-px-Karte waren
   davon vier auf einmal zu sehen. Gilt auf JEDER Breite; dvh mit vh-Rückfall, damit auf dem
   Handy die Adressleiste nicht die Knopfzeile abschneidet. */
#modalReihenfolge.modal-overlay { padding: 0; }
#modalReihenfolge .modal-box { width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; border-radius: 0; border: none; }
.feld-label { font-size: 0.8125rem; font-weight: 700; color: var(--text-secondary); margin: 10px 0 4px; }
/* --- ANFANG: Feldbeschriftung auf der Buehne --- */
/* 12 Beschriftungen liegen direkt auf dem Verlauf (Material, Besondere Tage,
   Gefahrstoffe) — am laufenden Portal gemessen. Der dunkle Papier-Wert waere
   dort unlesbar. Faellt weg, sobald E4 diese Formulare auf Papier legt.
   Die uebrigen 190 Beschriftungen stehen in Dialogen und bleiben dunkel. */
#screenHaupt .feld-label { color: var(--buehne-text-leise); }
/* --- ENDE: Feldbeschriftung auf der Buehne --- */
/* --- ANFANG: Felder — eine Regel fuer alle Eingaben (Etappe E4, Abschnitt 5) --- */
/* Ein Portal, ein Feld-Aussehen. Vorher gab es drei Sorten nebeneinander:
   Text/Passwort 19,2 px mittig gesperrt · Datum/Zeit/Zahl/Textfeld 14,4 px ·
   <select> voellig ungestylt in der Vorgabe des jeweiligen Browsers.
   16 px ist KEINE Geschmacksfrage: unter 16 px zoomt iOS beim Antippen in das
   Feld hinein, und die Seite steht danach verschoben. Betraf 159 Felder.
   48 px Mindesthoehe, damit jedes Feld auch ein Ziel fuer den Finger ist. */
input[type=text], input[type=password], input[type=email], input[type=tel],
input[type=search], input[type=url], input[type=number], input[type=date],
input[type=time], input[type=month], input[type=datetime-local],
textarea, select {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--feld-hoehe);
  margin-bottom: 8px;
  padding: 16px 14px;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.35;
  color: var(--papier-text);
  background: var(--papier-feld);
  border: var(--t-lw) solid var(--papier-rand);
  border-radius: var(--rund-feld);
}
input:disabled, textarea:disabled, select:disabled {
  background: var(--papier-getoent);
  color: var(--papier-text-leise);
  cursor: not-allowed;
}
::placeholder { color: var(--papier-text-leise); opacity: 1; }

/* Fokus: farbiger Rand PLUS Ring. Der Ring allein reicht nicht — sitzt das Feld
   dicht am Rand eines Dialogs, wird er abgeschnitten. */
/* WARNUNG Der Ring hing bis E3 an einem festen Weinrot (139,30,47) aus der
   Verlaufs-Aera. In Service (blauer Akzent) war er dadurch rot, in Nacht auf
   dunklem Grund praktisch unsichtbar. Er folgt jetzt dem Akzent der Variante. */
input:focus, textarea:focus, select:focus {
  outline: 3px solid color-mix(in srgb, var(--t-accent) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--marke-akzent);
}

textarea { min-height: 80px; resize: vertical; }

/* <select>: Vorgabe des Browsers abschalten und einen eigenen Pfeil setzen,
   sonst sieht dasselbe Formular auf jedem Geraet anders aus. 40 px Platz
   rechts, damit der Pfeil nie im Text steht. */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  /* WARNUNG Der Pfeil steckt in einem Datei-Verweis, und dort greift KEINE
     CSS-Variable und auch nicht currentColor - ein Hintergrundbild ist ein
     eigenes Dokument. Deshalb zwei feste Fassungen ueber --feld-pfeil: dunkel
     fuer die vier hellen Varianten, hell fuer Nacht. Bis E3 stand hier ein
     festes Braun, das in Nacht auf dunklem Feld kaum zu sehen war. */
  background-image: var(--feld-pfeil);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px 20px;
}

/* Kaestchen und Schalter sind keine Schreibfelder: kein volle-Breite, keine
   48 px. Im Bestand steht deshalb an fuenf Stellen style="width:auto" —
   diese Regel macht das ueberfluessig. */
input[type=checkbox], input[type=radio] {
  width: 20px;
  height: 20px;
  min-height: 0;
  margin: 0;
  accent-color: var(--marke-akzent);
  flex-shrink: 0;
}

/* Datei-Auswahl traegt ihren eigenen Knopf mit — 48 px wuerden ihn strecken. */
input[type=file] { width: 100%; box-sizing: border-box; font-size: 1rem; }
/* --- ENDE: Felder --- */

/* --- ANFANG: Felder mit Sondermass --- */
/* Drei Felder passen bewusst nicht ins 48-px-Raster. Bis E4 trugen sie ihre
   Masse als style="…" im Markup und waren dadurch nirgends auffindbar. */

/* Reihenfolge-Dialog: die Positionsnummer steht in einer engen Zeile neben dem
   Artikelnamen. Volle Breite wuerde die Zeile sprengen. 16 px trotzdem, sonst
   zoomt iOS beim Antippen hinein.
   ⚠️ Selektor MIT Element und Attribut (2026-09-15): Die Basisregel
   input[type=number] { width: 100% } weiter oben ist spezifischer als eine
   blosse Klasse — .rf-pos allein verlor, das Feld war 945 px breit (im
   Emulator gemessen), und jede Belegzeile brach in drei Zeilen um. Genau
   das machte das Ordnen so muehsam. */
input[type=number].rf-pos {
  width: 56px;
  flex: 0 0 56px;
  min-height: 40px;
  margin-bottom: 0;
  padding: 6px;
  text-align: center;
  border-radius: 8px;
}

/* Standort-Umschalter in der Kopfzeile: sieht wie Text aus, ist aber ein
   select. Auch hier 16 px gegen den iOS-Zoom.
   Der Pfeil muss hier NOCHMAL gesetzt werden: die Bestandsregel schreibt
   `background: transparent` als Kurzform und loescht das Pfeil-Bild damit mit.
   Ohne diesen Ersatz haette der Umschalter nach E4 gar kein Zeichen mehr, dass
   man ihn antippen kann — appearance:none nimmt auch den Pfeil des Browsers. */
.kb-standort-select {
  font-size: 1rem;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%238B1E2F' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 18px 18px;
}
/* --- ENDE: Felder mit Sondermass --- */
/* --- ANFANG: Zweispaltige Feldreihe (Etappe E4, Abschnitt 5) --- */
/* 56 Reihen im Portal. `min-width: 0` ist Pflicht, nicht Feinschliff: ein
   Flex-Kind darf sonst nie schmaler werden als sein Inhalt, und ein
   input[type=date] bringt mit 16 px Schrift rund 168 px Eigenbreite mit.
   Zwei davon plus Abstand sind 344 px — mehr als die 303 px, die in einem
   Dialog auf einem 375-px-Bildschirm zur Verfuegung stehen. Genau daran liefen
   nach E4 fuenf Dialoge seitlich ueber (Sperre, Urlaub, Verfuegbarkeit,
   Rechnung bearbeiten, Ausgangsrechnung).
   Unter 480 px deshalb untereinander — so steht es in Abschnitt 5. */
.row-2 { display: flex; gap: 8px; }
.row-2 > * { flex: 1; min-width: 0; }
@media (max-width: 479px) {
  .row-2 { flex-direction: column; gap: 0; }
}
/* --- ENDE: Zweispaltige Feldreihe --- */
/* --- ANFANG: Reiter-Leiste umbricht --- */
/* Ohne flex-wrap schiebt eine zu lange Leiste die GANZE Seite seitlich weg:
   im Admin-Bereich am laufenden Portal gemessen 1125px Seitenbreite bei 982px
   Fenster. Der Ueberlauf bestand schon vorher (1029px), die 13px-Schrift aus E1
   verstaerkt ihn. Umbruch statt Seitwaerts-Rollen, damit kein Reiter unsichtbar
   wird — im Bestand ist genau das an #kbFirmenkarteKategoriePillen bereits von
   Hand nachgepatcht; hier wird es zur Grundregel (Abschnitt 9). */
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
/* --- ANFANG: Admin-Reiterleiste ist verborgen (Etappe 5, 2026-09-30) ---
   🔴 Sevkets Befund: "wechsel zu admin bereich gleich wie app machen ...
      alles oben zu viel durcheinander". Nachgemessen im 375-px-Rahmen:
      17 Knoepfe, 6 Reihen, 336 px = 41 % eines 812-px-Schirms, dazu 86 px
      Kopfleiste — 422 px, bevor der erste Inhalt kommt. Die Breiten laufen
      von 51 bis 96 px, der letzte Knopf ist 284 px breit, weil flex:1 ihn
      seine Reihe allein fuellen laesst.
   Die Ziele stehen jetzt im Drawer, wie in der App (AdminScreenHeaderNeu
   hat keine Reiterleiste, AdminScreen.selectedTab kommt als initialTab von
   aussen).
   ⚠️ Die Knoepfe bleiben im Markup und werden nur unsichtbar: sechs Stellen
      im Modul druecken sie per .click(), und der Drawer tut dasselbe.
      Wer sie entfernt, muss alle sieben Stellen mitnehmen.
   ⚠️ display:none und nicht visibility/height: ein unsichtbarer, aber
      erreichbarer Knopf waere fuer die Tastatur eine Falle. .click() aus
      dem Skript wirkt auf display:none-Knoepfe unveraendert (gemessen). */
#adminSubPillen { display: none; }
/* --- ENDE: Admin-Reiterleiste ist verborgen --- */
/* --- ENDE: Reiter-Leiste umbricht --- */
.pill-btn { flex: 1; padding: 8px 2px; margin: 0; background: var(--t-surface2); color: var(--text); border-radius: 10px; font-size:0.8125rem; }
.pill-btn.aktiv { background: var(--t-accent); color: var(--t-accent-ink); }

/* --- ANFANG: Admin-Angebote am Handy als Vollbild (Şevket 22.09.: „Fenster zu klein, ruhig Vollbild") ---
   Auf dem Handy legt sich der Angebote-Bereich über die ganze Seite; ✕ oben führt zurück.
   Am PC bleibt er, wo er ist (der Knopf ist dort unsichtbar). */
.ag-schliessen { display: none; }

/* --- ANFANG: Angebote — groessere Felder + Meldungs-Vorschau (Şevket 22.09.) ---
   🔴 URSACHE der zu kleinen Flaeche: .liste-card ist global auf max-height 320 px
   mit Innen-Scroll gedeckelt (fuer LISTEN gedacht). Das Angebote-FORMULAR steckt
   in derselben Klasse und wurde dadurch gequetscht. Hier aufgehoben. */
#adminAngebote .liste-card { max-height: none; overflow: visible; padding: 14px 16px 18px; }
#adminAngebote .liste-titel { font-size: 1rem; }
#adminAngebote input[type=text], #adminAngebote input[type=number], #adminAngebote textarea, #adminAngebote select {
  font-size: 1.05rem; min-height: 52px; padding: 14px 14px; margin-bottom: 10px;
}
#adminAngebote textarea { min-height: 120px; line-height: 1.5; }
#adminAngebote label.eintrag-detail { font-size: 0.9rem; margin-top: 12px; }
#adminAngebote .btn-nachtragen { min-height: 48px; font-size: 1rem; }
#adminAngebote #agJeWoche { max-width: 110px; }

/* Vorschau: Nachbau der Benachrichtigung, wie der Browser sie zeigt. */
.ag-vorschau { margin-top: 12px; }
.ag-vorschau-hinweis { font-size: 0.8125rem; color: var(--t-ink2); margin: 6px 0; }
.ag-meldung { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px;
  border-radius: 14px; background: var(--t-surface2); border: 1.5px solid var(--t-line);
  box-shadow: 0 2px 8px rgba(0,0,0,.08); max-width: 420px; }
.ag-meldung-icon { width: 40px; height: 40px; border-radius: 10px; object-fit: contain;
  background: var(--t-surface); flex: 0 0 auto; }
.ag-meldung-text { min-width: 0; }
.ag-meldung-titel { font-weight: 700; font-size: 0.95rem; line-height: 1.3; overflow-wrap: anywhere; }
.ag-meldung-body { font-size: 0.875rem; line-height: 1.4; margin-top: 2px; overflow-wrap: anywhere; }
.ag-meldung-quelle { font-size: 0.75rem; color: var(--t-ink2); margin-top: 6px; }
/* --- ENDE: Angebote — groessere Felder + Meldungs-Vorschau --- */
/* Gaestekonten (Sevket 23.09.): dieselbe Behandlung wie Angebote — die
   Liste steht in .liste-card und waere sonst auf 320 px gedeckelt. */
#adminGastKonten .liste-card { max-height: none; overflow: visible; padding: 14px 16px 18px; }
#adminGastKonten input[type=search] { font-size: 1.05rem; min-height: 52px; padding: 12px 14px; }
#adminGastKonten .btn-nachtragen { min-height: 48px; font-size: 1rem; }

@media (max-width: 719px) {
  #adminAngebote:not(.hidden) { position: fixed; inset: 0; z-index: 70; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: var(--t-bg); padding: 12px 14px 48px; }
  #adminAngebote .ag-schliessen { display: inline-flex; width: auto; min-width: 44px; padding: 8px 12px; }
  #adminGastKonten:not(.hidden) { position: fixed; inset: 0; z-index: 70; overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: var(--t-bg); padding: 12px 14px 48px; }
  #adminGastKonten .ag-schliessen { display: inline-flex; width: auto; min-width: 44px; padding: 8px 12px; }
}
/* --- ENDE: Admin-Angebote am Handy als Vollbild --- */
.steuer-chip-row { display: flex; gap: 6px; margin-top: 6px; }
.steuer-chip { padding: 4px 12px; border-radius: 10px; background: var(--t-surface2); color: var(--text); font-size:0.8125rem; }
.steuer-chip:hover { background: var(--t-surface2); }
/* WARNUNG Der feste Goldton (#7a5a00 auf einer gold gewaschenen Flaeche) kam
   aus der Verlaufs-Aera. In Nacht steht der Dialog auf dunklem Grund - dort
   waere dunkelbraun auf dunkel unlesbar gewesen. Gleiche Bauform wie .hinweis:
   das Signal traegt der linke Balken, der Text bleibt lesbar. */
.modal-hinweis {
  background: var(--t-surface);
  color: var(--papier-text);
  border: var(--t-lw) solid var(--signal-warn);
  border-left: 6px solid var(--signal-warn);
  border-radius: var(--t-r2);
  padding: 10px 12px;
  font-size: 0.8125rem;
  margin-bottom: 10px;
}
/* WARNUNG flex-wrap ist Pflicht, sobald DREI Knoepfe in der Zeile stehen.
   Gemessen im Kopier-Dialog des Dienstplans unter Kueche XL: 288 px innen,
   zwei Zweitknoepfe zu je 81 px und ein Hauptknopf zu 108 px — die
   Beschriftungen liefen 30 px ueber die Kante. Mit Umbruch rutscht der
   Hauptknopf in die zweite Zeile statt den Text zu quetschen.
   min-width sorgt dafuer, dass der Umbruch erst dann kommt, wenn es eng wird —
   bei zwei Knoepfen bleibt alles wie bisher in EINER Zeile. */
.modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* WARNUNG min-width: 0 ist hier PFLICHT, nicht Feinschliff. Ein Flex-Kind
   steht in der Vorgabe auf min-width: auto und schrumpft deshalb NIE unter
   seine Textbreite. In Kueche XL (Seite auf 115 Prozent) misst der Dialog
   innen nur noch 288 px, die zwei Knoepfe zusammen aber 337 - gemessen lief
   "Rechnung speichern" 7 px ueber den Bildschirmrand hinaus, in jedem Dialog.
   Mit min-width: 0 bricht die Beschriftung stattdessen um; abgeschnitten wird
   sie nie (fuer die zwei Kollegen, die nicht lesen, waere "Rechnung spei..."
   schlimmer als zwei Zeilen).
   Das Verhaeltnis 1 zu 2 steht so im Design: die Hauptaktion ist breiter. */
.modal-actions button { margin: 0; min-width: 96px; flex: 1 1 0; }
.modal-actions .btn-primary { flex: 2 1 0; }
/* .liste-zeile/.eintrag-detail/.liste-leer sind fürs dunkle #screenHaupt gestylt (heller
   Text) — in Modalen (helle Karte) sonst kaum lesbar. Hier auf dunklen Text umgestellt. */
/* Trennlinie ueber das Token statt festem Schwarz - in Nacht war sie unsichtbar. */
.modal-box .liste-zeile { color: var(--text); border-bottom-color: var(--t-line); }
.modal-box .eintrag-detail { color: var(--text-secondary); }
.modal-box .liste-leer { color: var(--text-secondary); }

/* --- ANFANG: Monats-Karten + Posten-Dialog (Zwilling zu MonatsPostenDialog.kt) --- */
.mp-karten { display: flex; gap: 6px; margin-top: 10px; }
.mp-karte {
  flex: 1; background: var(--t-surface); border-radius: 10px; padding: 8px 6px;
  text-align: center; cursor: pointer; border: var(--t-lw) solid var(--t-line);
  box-shadow: var(--t-shadow); transition: transform 0.12s, box-shadow 0.12s;
}
/* ⚠️ Der Hover setzt BEWUSST keinen eigenen Schatten. Hier stand
   "box-shadow: 0 3px 8px var(--t-surface2)" — ein fester Schatten, den
   Modernist und Kueche XL mit --t-shadow:none ausdruecklich nicht wollen.
   Die Rueckmeldung traegt jetzt das Anheben plus die getoente Flaeche;
   beides wirkt in allen fuenf Varianten. */
.mp-karte:hover { transform: translateY(-1px); background: var(--t-surface2); }
.mp-karte .mp-titel { font-size:0.75rem; letter-spacing: 0.4px; color: var(--text-secondary); }
.mp-karte .mp-wert { font-size: 0.86rem; font-weight: 700; margin-top: 2px; }
.mp-karte .mp-lupe { font-size:0.8125rem; color: var(--text-secondary); margin-top: 1px; }
/* Auf Papier kann man nichts antippen — die Summen selbst bleiben aber stehen. */
@media print { .mp-karte .mp-lupe { display: none; } .mp-karte { cursor: default; } }
.mp-wert-ein { color: var(--success); }
.mp-wert-aus { color: var(--error); }
.mp-wert-netto { color: var(--text); }
#modalMonatsPosten .modal-box { max-width: 560px; }
.mp-zeile {
  display: flex; align-items: flex-start; gap: 8px; padding: 7px 8px;
  background: var(--t-surface2); border-radius: 8px; margin-bottom: 4px;
}
.mp-zeile-datum { font-size:0.8125rem; color: var(--text-secondary); min-width: 42px; }
.mp-zeile-mitte { flex: 1; min-width: 0; }
.mp-zeile-typ { font-size:0.8125rem; color: var(--text-secondary); }
.mp-zeile-text { font-size: 0.8125rem; font-weight: 600; word-break: break-word; }
.mp-zeile-rechts { text-align: right; white-space: nowrap; }
.mp-zeile-betrag { font-size: 0.84rem; font-weight: 700; }
.mp-beleg-btn {
  background: none; border: none; cursor: pointer; font-size: 0.95rem;
  padding: 2px 4px; line-height: 1;
}
.mp-summe {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px; margin-top: 8px; border-top: var(--t-lw) solid var(--t-line);
  font-weight: 700;
}
.mp-satz-box { background: var(--t-surface2); border-radius: 8px; padding: 8px; }
.mp-satz-zeile { display: flex; justify-content: space-between; font-size: 0.8125rem; padding: 1px 0; }
.mp-hinweis { font-size:0.8125rem; color: var(--warning); margin-top: 6px; }
.mp-abschnitt-titel { font-weight: 700; font-size: 0.82rem; margin-bottom: 4px; }
/* --- ENDE: Monats-Karten + Posten-Dialog --- */

/* --- ANFANG: Rechnungsschirm-Neuentwurf (rs-*, Etappe 1) --- */
/* Aufbau und Aufteilung stammen aus dem Claude-Design-Entwurf
   "Web - dieselbe Logik, drei Spalten". Uebernommen wurden Reihenfolge,
   Gruppierung und Abstaende.

   WARNUNG: KEINE Farbe aus dem Entwurf ist eingeflossen - Sevkets Vorgabe
   2026-09-03: "farben verwendest du unsere eigene farben nur die darstellung
   und aufteilung". Jeder Wert unten kommt aus --t-*. Wer hier einen festen
   Farbwert eintraegt, haengt ihn von der Variante ab und bricht Nacht und
   Kueche XL, ohne dass es in Modernist auffaellt.

   WARNUNG: Auch die Schrift bleibt unsere. Der Entwurf nutzt Caprasimo und
   Figtree; --schrift ist Archivo. Zwei Titelschriften nebeneinander waeren
   genau der Bruch, den das Design-System 2.0 beseitigt hat. */

/* --- Kopfzeile --- */
.rs-kopf {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--ab-3);
  padding-bottom: var(--ab-3); margin-bottom: var(--ab-3);
  border-bottom: var(--t-lw) solid var(--t-line);
}
.rs-kopf-text { flex: 1 1 auto; min-width: 0; }
/* min-width:0 ist Pflicht, sonst waechst der Titel im Flex ueber den Rand
   (dieselbe Falle wie .row-2 und .dp-monat-grid). */
.rs-titel { margin: 0; font-size: 1.35rem; line-height: 1.1; color: var(--t-ink); }
.rs-unterzeile { font-size: 0.8125rem; color: var(--t-ink2); margin-top: 2px; }
.rs-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ab-2); }

/* --- Suchfeld --- */
.rs-suche {
  display: flex; align-items: center; gap: var(--ab-2);
  height: var(--ziel); padding: 0 14px; border-radius: var(--rund-knopf);
  background: var(--t-surface); border: var(--t-lw) solid var(--t-line);
  color: var(--t-ink2); flex: 1 1 200px; min-width: 0; max-width: 320px;
}
.rs-suche svg { flex: none; }
.rs-suche input {
  border: 0; background: transparent; outline: none; width: 100%; min-width: 0;
  font-family: inherit; font-size: 0.85rem; color: var(--t-ink);
  height: auto; margin: 0; padding: 0;
}
/* height/margin/padding zuruecksetzen: die Bestandsregel fuer input setzt
   --feld-hoehe und eigene Raender, die das Feld hier sprengen wuerden. */

/* --- Monatswechsel --- */
.rs-monat {
  display: flex; align-items: center; gap: 2px; flex: none;
  height: var(--ziel); padding: 0 4px; border-radius: var(--rund-knopf);
  background: var(--t-surface); border: var(--t-lw) solid var(--t-line);
}
.rs-monat > span { font-size: 0.8125rem; font-weight: 700; min-width: 92px; text-align: center; color: var(--t-ink); }
.rs-monat-btn {
  width: 36px; height: 36px; min-height: 36px; padding: 0; margin: 0;
  border: 0; background: transparent; color: var(--t-ink);
  border-radius: 999px; font-size: 0.8rem; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
}
.rs-monat-btn:hover { background: var(--t-surface2); }

/* --- Kopf-Knoepfe --- */
/* WARNUNG: Eigene Knopfklasse statt .knopf, weil .knopf im Portal
   width:100% und eine eigene Hoehe mitbringt - in einer Werkzeugleiste
   wuerde jeder Knopf eine eigene Zeile beanspruchen. */
.rs-knopf {
  height: var(--ziel); min-height: var(--ziel); width: auto;
  padding: 0 16px; margin: 0; flex: none;
  border-radius: var(--rund-knopf); cursor: pointer;
  font-family: inherit; font-size: 0.8125rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
/* ⚠️ Ohne diese Zeile ueberschreibt display:inline-flex das hidden-Attribut,
   und der Sammel-QR-Knopf stuende auch dann da, wenn die Auswahl an mehrere
   Empfaenger geht — er wuerde dann einen QR mit der IBAN des erstbesten
   Lieferanten erzeugen, also eine Ueberweisung an den Falschen. Im Browser
   gemessen, bevor es ausgeliefert wurde. Dieselbe Falle wie bei .rs-detail. */
.rs-knopf[hidden] { display: none; }
.rs-knopf-zweit { background: transparent; color: var(--t-ink); border: var(--t-lw) solid var(--t-line); }
.rs-knopf-zweit:hover { background: var(--t-surface2); }
.rs-knopf-haupt { background: var(--t-accent); color: var(--t-accent-ink); border: var(--t-lw) solid var(--t-accent); }
.rs-knopf-haupt:hover { background: var(--t-accent-tief); border-color: var(--t-accent-tief); }

/* --- Kennzahl-Karten --- */
/* WARNUNG: auto-fit statt der festen vier Spalten des Entwurfs. Der Entwurf
   ist auf 1320 px gezeichnet, das Portal laeuft ab 375 px. Feste vier Spalten
   ergaeben am Handy 5 Karten zu je rund 66 px - dort passt kein Betrag hinein.
   So stehen sie am Rechner nebeneinander und am Handy zu zweit. */
.rs-kennzahlen {
  display: grid; gap: 6px; margin-top: var(--ab-3);
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}
/* Die gefuellte Karte traegt die dringendste Zahl. Genau EINE ist gefuellt -
   sind es mehrere, hebt sich keine mehr ab. */
.mp-karte.rs-karte-signal { background: var(--t-accent); border-color: var(--t-accent); }
.mp-karte.rs-karte-signal .mp-titel,
/* ⚠️ KEINE Deckkraft: mit 0.85 lag der Text bei 3.59 statt der noetigen 4.5
   (im Browser gemessen 2026-09-03). Ausgerechnet in der Karte, die die
   ueberfaelligen Posten meldet. */
.mp-karte.rs-karte-signal .mp-lupe { color: var(--t-accent-ink); }
.mp-karte.rs-karte-signal .mp-wert { color: var(--t-accent-ink); }
.mp-karte.rs-karte-signal:hover { background: var(--t-accent-tief); }
/* Nichts ueberfaellig ist der Normalfall und kein Alarm: dann ist die Karte
   ruhig wie die anderen. Eine dauerhaft rote 0 nutzt sich ab und wird
   uebersehen, wenn sie einmal wirklich etwas meldet. */
.mp-karte.rs-karte-signal.rs-ruhig { background: var(--t-surface); border-color: var(--t-line); }
.mp-karte.rs-karte-signal.rs-ruhig .mp-titel,
.mp-karte.rs-karte-signal.rs-ruhig .mp-lupe { color: var(--t-ink2); opacity: 1; }
.mp-karte.rs-karte-signal.rs-ruhig .mp-wert { color: var(--t-ink); }
.mp-karte.rs-karte-signal.rs-ruhig:hover { background: var(--t-surface2); }
/* Ausgewaehlte Karte: sie steuert den Filter, das muss man sehen. */
.mp-karte.rs-gewaehlt { outline: var(--t-lw) solid var(--t-accent); outline-offset: 2px; }

/* --- Filterzeile --- */
.rs-filter {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: var(--ab-3);
}
.rs-filter-luecke { flex: 1 1 auto; }
.rs-treffer { font-size: 0.75rem; color: var(--t-ink2); white-space: nowrap; }
.rs-pille {
  height: 34px; min-height: 34px; width: auto; padding: 0 13px; margin: 0;
  border-radius: 999px; cursor: pointer; flex: none;
  font-family: inherit; font-size: 0.75rem; font-weight: 600;
  background: transparent; color: var(--t-ink);
  border: 1px solid var(--t-line);
}
.rs-pille:hover { background: var(--t-surface2); }
.rs-pille.aktiv { background: var(--t-accent); color: var(--t-accent-ink); border-color: var(--t-accent); }
/* WARNUNG: 34 px liegen unter der 44-px-Regel fuer Trefferflaechen. Das ist
   hier hingenommen wie bei den Bestands-Pillen (.pill-btn), damit die Zeile
   nicht zur zweiten Werkzeugleiste wird - sie sitzt weit weg von jeder
   gefaehrlichen Handlung, ein Fehlgriff kostet nur einen zweiten Tipp. */

@media (max-width: 719px) {
  /* Am Handy tragen die Werkzeuge eine eigene Zeile unter dem Titel. */
  .rs-kopf { align-items: stretch; }
  .rs-werkzeuge { width: 100%; }
  .rs-suche { max-width: none; }
  .rs-knopf { flex: 1 1 auto; justify-content: center; }
}
/* --- ENDE: Rechnungsschirm-Neuentwurf --- */
/* --- ANFANG: Listenzeilen zum Aufklappen (Etappe 2) --- */
/* Aufbau aus dem Entwurf: Ampelbalken | Art | Name+Nummer | Faelligkeit |
   Betrag | Pfeil. Aufgeklappt kommen Beleg, Detailfelder und Knoepfe dazu.
   Farben durchgehend aus --t-*. */
.rs-zeile {
  border: var(--t-lw) solid var(--t-line);
  border-radius: var(--rund-karte);
  background: var(--t-surface);
  overflow: hidden;
  margin-top: 8px;
}
.rs-zeile-kopf {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 0;
  cursor: pointer;
  min-height: var(--ziel);
}
.rs-zeile-kopf:hover { background: var(--t-surface2); }
.rs-zeile-kopf:focus-visible { outline: var(--t-lw) solid var(--t-accent); outline-offset: -2px; }

/* Der Balken sagt dasselbe wie die Ampel-Pille daneben. Zwei Darstellungen
   derselben Sache sind Absicht: Farbe allein traegt keine Aussage. */
.rs-balken { width: 6px; align-self: stretch; flex: none; background: var(--t-ink2); }
.rs-balken[data-ton="ok"]      { background: var(--t-ok); }
.rs-balken[data-ton="warn"]    { background: var(--t-warn); }
.rs-balken[data-ton="fehler"]  { background: var(--t-err); }
.rs-balken[data-ton="neutral"] { background: var(--t-ink2); }

.rs-art {
  flex: none; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 999px; white-space: nowrap;
  background: var(--t-surface2); color: var(--t-ink2);
}
/* flex-basis 150px statt auto: sonst schrumpft der Name als einziges
   dehnbares Element bis auf Null, waehrend Betrag und Faelligkeit ihre volle
   Breite behalten. min-width:0 muss trotzdem bleiben, damit ellipsis greift. */
.rs-mitte { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; }
/* min-width:0 ist Pflicht — ohne das waechst ein langer Lieferantenname im
   Flex ueber den Rand, statt gekuerzt zu werden (dieselbe Falle wie .row-2). */
.rs-name {
  font-weight: 700; font-size: 0.9rem; color: var(--t-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rs-sub {
  font-size: 0.75rem; color: var(--t-ink2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rs-faellig { flex: none; }
.rs-betrag { flex: none; text-align: right; display: flex; flex-direction: column; }
.rs-betrag-brutto { font-weight: 700; font-size: 0.95rem; color: var(--t-ink); font-variant-numeric: tabular-nums; }
.rs-betrag-netto { font-size: 0.75rem; color: var(--t-ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Der Pfeil ist seit Sevkets Wunsch vom 2026-09-03 ein echter <button>: der
   Kopf daneben loest das Bezahlen aus, das Aufklappen haengt allein hier.
   WARNUNG: Eine grosse Treffflaeche ist hier Pflicht, nicht Bequemlichkeit.
   Ein 22 px breites Zeichen trifft im Betrieb niemand mit nassen Haenden, und
   der Pfeil ist ab jetzt der EINZIGE Weg zu den Details — daneben getippt
   oeffnet den Zahlungs-QR.
   min-height 44 statt der Portal-Knopfhoehe 56: mit 56 wuchs die Zeile von 54
   auf 76 px und es passten nur noch halb so viele Rechnungen auf den Schirm
   (im Browser nachgemessen 2026-09-03). 44 ist die Mindestforderung --ziel und
   damit weiterhin gut zu treffen. Die Angabe MUSS min-height sein, nicht
   height: die Portal-Regel setzt selbst min-height, und height verliert. */
.rs-pfeil {
  /* align-self CENTER, nicht der Flex-Standard stretch: gestreckt wuerde der
     Knopf die ganze Zeilenhoehe einnehmen und der Pfeil saesse nicht mittig. */
  flex: none; width: 44px; min-height: 44px; padding: 0; margin: 0; align-self: center;
  border: 0; background: none; cursor: pointer;
  text-align: center; color: var(--t-ink2);
  font-size: 1rem; line-height: 1;
  transition: transform 160ms ease;
}
.rs-pfeil:hover { color: var(--t-ink); }
.rs-pfeil:focus-visible { outline: var(--t-lw) solid var(--t-accent); outline-offset: -2px; border-radius: 8px; }
.rs-zeile-offen .rs-pfeil { transform: rotate(180deg); }

/* --- aufgeklappter Teil --- */
/* ⚠️ Das hidden-Attribut allein genuegt NICHT: jede eigene display-Angabe
   ueberschreibt es, und dann steht der aufgeklappte Teil immer offen — im
   Browser gemessen, bevor es ausgeliefert wurde. portal.css hat (anders als
   manche Vorlagen) keine allgemeine [hidden]-Regel, die das abfaengt. */
.rs-detail[hidden] { display: none; }
.rs-detail {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 4px 14px 14px 18px;
  border-top: 1px solid var(--t-line);
}
.rs-beleg {
  width: 76px; height: 92px; flex: none;
  border-radius: var(--rund-feld);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  background: var(--t-surface2); border: 1px solid var(--t-line);
  color: var(--t-ink2); text-decoration: none; font-size: 0.75rem;
}
.rs-beleg-zeichen { font-size: 1.3rem; line-height: 1; }
/* Gestrichelt heisst: hier fehlt etwas, im Gegensatz zu einem vorhandenen Beleg.
   Der Unterschied darf nicht nur in der Farbe liegen. */
.rs-beleg-leer { border-style: dashed; }
.rs-detail-rechts { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.rs-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px 14px; }
.rs-feld { min-width: 0; }
.rs-feld-l { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--t-ink2); }
.rs-feld-w { font-size: 0.8125rem; font-weight: 600; color: var(--t-ink); margin-top: 1px; word-break: break-word; font-variant-numeric: tabular-nums; }
.rs-notiz { font-size: 0.75rem; color: var(--t-ink2); word-break: break-word; }
.rs-aktionen { display: flex; gap: 8px; flex-wrap: wrap; }
/* Der Beleg-Knopf ist ein <a> und braucht die Knopf-Ausrichtung von Hand. */
.rs-aktionen a.rs-knopf { text-decoration: none; }

@media (max-width: 719px) {
  /* Am Handy passen sechs Spalten nicht nebeneinander. Der Kopf bricht um,
     Betrag und Faelligkeit ruecken unter den Namen. */
  .rs-zeile-kopf { flex-wrap: wrap; padding-right: 10px; row-gap: 6px; }
  .rs-balken { width: 100%; height: 4px; align-self: auto; order: -1; }
  .rs-mitte { flex-basis: 100%; order: 1; }
  .rs-art { order: 2; }
  .rs-faellig { order: 3; }
  .rs-betrag { order: 4; margin-left: auto; }
  .rs-pfeil { order: 5; }
  .rs-detail { flex-direction: column; padding-left: 14px; }
  .rs-beleg { width: 100%; height: 64px; flex-direction: row; gap: 8px; }
}
/* --- ENDE: Listenzeilen zum Aufklappen --- */
/* --- ANFANG: Zweispaltiger Rahmen + Kontextspalte (Etappe 3) --- */
/* Mobile-first: untereinander. Erst ab 1000 px stehen Liste und Kontext
   nebeneinander — derselbe Umbruchpunkt, den das Portal schon fuer den
   Rechner-Ausbau benutzt (@media min-width 1000px weiter oben). */
.rs-body { display: flex; flex-direction: column; gap: 14px; margin-top: 12px; }
.rs-haupt { min-width: 0; }
/* min-width:0 ist Pflicht, sonst schiebt eine breite Zeile die ganze Spalte
   ueber den Rand statt zu kuerzen. */

.rs-kontext {
  display: flex; flex-direction: column; gap: 14px;
  padding: 14px;
  border: var(--t-lw) solid var(--t-line);
  border-radius: var(--rund-karte);
  background: var(--t-surface2);
}
.rs-kontext-block { display: flex; flex-direction: column; gap: 6px; }
.rs-kontext-titel {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--t-ink2);
}
.rs-kontext-gross { font-size: 1rem; font-weight: 700; color: var(--t-ink); line-height: 1.1; }
.rs-kontext-summe { font-size: 1.15rem; font-weight: 700; color: var(--t-ink); font-variant-numeric: tabular-nums; }
.rs-kontext-leer { font-size: 0.75rem; color: var(--t-ink2); padding: 4px 0; }
.rs-kontext-fussnote { font-size: 0.75rem; color: var(--t-ink2); margin-top: 2px; line-height: 1.35; }

/* Der farbige Balken links wiederholt die Ampel der Zeile. Er steht nie allein:
   daneben steht immer "in N Tagen" bzw. "N Tage ueberfaellig" im Klartext. */
.rs-plan-zeile {
  background: var(--t-surface); border-radius: var(--rund-feld);
  padding: 8px 10px; margin-top: 6px;
  border-left: 5px solid var(--t-ink2);
}
.rs-plan-zeile[data-ton="ok"]     { border-left-color: var(--t-ok); }
.rs-plan-zeile[data-ton="warn"]   { border-left-color: var(--t-warn); }
.rs-plan-zeile[data-ton="fehler"] { border-left-color: var(--t-err); }
.rs-plan-kopf { display: flex; align-items: baseline; gap: 8px; }
.rs-plan-name {
  flex: 1 1 auto; min-width: 0; font-size: 0.78rem; font-weight: 700; color: var(--t-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rs-plan-betrag { flex: none; font-size: 0.8rem; font-weight: 800; color: var(--t-ink); font-variant-numeric: tabular-nums; }
.rs-plan-wann { font-size: 0.75rem; color: var(--t-ink2); margin-top: 1px; }

.rs-monatzeile { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8rem; color: var(--t-ink2); }
.rs-monatzeile b { color: var(--t-ink); font-variant-numeric: tabular-nums; }
.rs-monatzeile-summe {
  border-top: 1px solid var(--t-line); padding-top: 6px; margin-top: 4px;
  font-size: 0.9rem; color: var(--t-ink);
}

/* Gestrichelt heisst: hier fehlt etwas. Der Unterschied zu einer normalen
   Karte darf nicht allein in der Farbe liegen. */
.rs-hinweis {
  border: 1px dashed var(--t-warn); border-radius: var(--rund-karte);
  background: color-mix(in srgb, var(--t-warn) 10%, var(--t-surface));
  padding: 10px 12px;
}
.rs-hinweis[hidden] { display: none; }
.rs-hinweis-kopf { font-size: 0.82rem; font-weight: 700; color: var(--t-ink); }
.rs-hinweis-text { font-size: 0.75rem; color: var(--t-ink2); margin-top: 4px; line-height: 1.4; }

/* ⚠️ 1200 statt 1000: Bei 1280 px teilen sich Portal-Leiste (248) und
   Kontextspalte (288) bereits 536 px. Bei 1000 px blieben der Liste 176 px —
   am laufenden Portal gemessen war die Namensspalte dann 42 px breit bei
   232 px Bedarf, der Lieferantenname also zu 82 % abgeschnitten. */
@media (min-width: 1200px) {
  .rs-body { flex-direction: row; align-items: flex-start; }
  .rs-haupt { flex: 1 1 auto; }
  /* 288 px wie im Entwurf. flex:none, damit die Spalte nicht schrumpft,
     sobald eine Rechnungszeile breit wird. */
  .rs-kontext { flex: none; width: 288px; position: sticky; top: 12px; }
}
/* --- ENDE: Zweispaltiger Rahmen + Kontextspalte --- */
/* --- ANFANG: Geldbereich-Spalte am Rechner (Etappe 4) --- */
/* Der Entwurf stellt die Bereiche als Spalte links neben den Inhalt.
   Umgesetzt mit Grid und OHNE Umbau am HTML: die Reiterleiste bekommt Spalte 1,
   alle Bereichs-Ansichten Spalte 2. Die Klick-Logik bleibt unberuehrt.

   ⚠️ Erst ab 1000 px — derselbe Punkt, ab dem auch die Portal-Seitenleiste
      fest steht. Darunter bleiben es Pillen: 13 Reiter untereinander waeren am
      Handy eine ganze Bildschirmlaenge Navigation vor dem ersten Inhalt
      (gemessen 2026-08-26: 13 Reiter, 4 Zeilen, 210 px = 26 % von 375 px).
   ⚠️ minmax(0,1fr) statt 1fr: "1fr" ist minmax(auto,1fr), und auto heisst
      min-content — eine breite Tabelle wuerde die Spalte sonst aufblaehen,
      statt zu kuerzen (dieselbe Falle wie .dp-monat-grid am 2026-08-26). */
/* ⚠️ 1600 statt 1000, und das ist gemessen: Der Entwurf hat DREI Spalten
   (Navigation, Inhalt, Kontext). Das Portal hat seine Navigation bereits als
   feste Leiste — die Reiter-Spalte ist also eine VIERTE. Bei 1280 px blieben
   der Liste dadurch 399 px statt der noetigen ~740. Erst ab 1600 px ist Platz
   fuer alle vier; darunter bleiben die Reiter eine Pillenreihe wie bisher. */
@media (min-width: 1600px) {
  /* ⚠️ ".aktiv" IST PFLICHT, NICHT SCHOENHEIT — dieselbe Falle wie bei
     #tabDashboard oben (E6, 2026-08-29). Ohne die Klasse steht die Regel bei
     (1,0,0) und schlaegt ".tab-panel { display:none }" (0,1,0): der
     Admin-Bereich hing dann ab 1600 px unter JEDEM geoeffneten Bildschirm.
     Am 2026-09-03 im Browser gemessen: tabDashboard UND tabAdmin gleichzeitig
     sichtbar. Am Telefon unsichtbar, weil die Regel erst ab 1600 px greift. */
  #tabAdmin.aktiv {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    column-gap: 20px;
    align-items: start;
  }
  /* Die Reiterspalte ist seit 2026-09-30 leer — die Ziele stehen im Drawer.
     Der Block bleibt stehen, damit die Bereichs-Ansichten weiter in Spalte 2
     liegen und die Bankkarte ihren Platz behaelt; nur die Spaltenbreite
     faellt auf 0, sonst klaffte links ein 232-px-Loch. */
  #tabAdmin.aktiv { grid-template-columns: 0 minmax(0, 1fr); column-gap: 0; }
  /* Alle Bereichs-Ansichten in Spalte 2. Versteckte Kinder stehen auf
     display:none und belegen dabei keine Zelle. */
  #tabAdmin.aktiv > *:not(#adminSubPillen):not(.rs-bankkarte) { grid-column: 2; grid-row: 1; }
  .rs-bankkarte { grid-column: 1; grid-row: 2; }
}

.rs-bankkarte {
  border: var(--t-lw) solid var(--t-line);
  border-radius: var(--rund-karte);
  background: var(--t-surface);
  padding: 10px 12px;
  margin-top: 10px;
}
/* Ohne diese Zeile ueberschreibt die eigene display-Angabe das hidden-Attribut
   — genau der Fehler, der in Etappe 2 alle Detailbereiche offenstehen liess. */
.rs-bankkarte[hidden] { display: none; }
.rs-bankkarte-titel {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--t-ink2);
}
.rs-bankkarte-wert { font-size: 1.05rem; font-weight: 700; color: var(--t-ink); margin-top: 2px; font-variant-numeric: tabular-nums; }
.rs-bankkarte-sub { font-size: 0.75rem; color: var(--t-ink2); margin-top: 1px; }

/* Am Handy hat die Karte in der Pillenreihe keinen Platz und keinen Zweck —
   dort steht der Kontostand auf der Uebersicht. */
/* Die Karte gehoert an den Fuss der Reiter-Spalte — ohne die Spalte hat sie
   keinen Ort. Sie erscheint deshalb am selben Punkt wie diese. */
/* 08.10.: IMMER aus. Die Reiter-Spalte hat seit 30.09. Breite 0 — die Karte klebte als schmaler Streifen (Zeilenumbruch je Zeichen)
   unter JEDEM Admin-Bildschirm. Das Bankguthaben steht auf der Uebersicht (dash-hero). */
.rs-bankkarte, .rs-bankkarte[hidden] { display: none; }
/* --- ENDE: Geldbereich-Spalte am Rechner --- */
/* --- ANFANG: Mehrfachauswahl (Etappe 5) --- */
.rs-filter-trenner { width: 1px; height: 20px; background: var(--t-line); margin: 0 4px; flex: none; }

.rs-haken {
  width: 22px; height: 22px; flex: none; border-radius: 6px;
  border: 2px solid var(--t-line); background: var(--t-surface);
  display: grid; place-items: center; cursor: pointer;
  font-size: 0.8rem; font-weight: 800; color: var(--t-accent-ink);
}
.rs-haken-an { background: var(--t-accent); border-color: var(--t-accent); }
.rs-haken:focus-visible { outline: var(--t-lw) solid var(--t-accent); outline-offset: 2px; }
/* Im Auswahl-Betrieb ist die ganze Zeile ein Ziel — deshalb bekommt der Kopf
   einen sichtbaren Hinweis, dass gerade ausgewaehlt und nicht aufgeklappt wird. */
.rs-auswahl-an .rs-zeile-kopf { cursor: pointer; }

.rs-auswahlleiste {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 12px; margin-bottom: 10px;
  border-radius: var(--rund-karte);
  background: var(--t-accent); color: var(--t-accent-ink);
}
.rs-auswahlleiste[hidden] { display: none; }
.rs-auswahl-titel { font-weight: 700; font-size: 0.9rem; }
.rs-auswahl-summe { font-weight: 800; font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.rs-auswahl-luecke { flex: 1 1 auto; }
/* Die Knoepfe stehen auf der Akzentflaeche und brauchen deshalb deren
   Gegenfarbe — der normale Zweitknopf waere hier unsichtbar. */
.rs-auswahlleiste .rs-knopf-zweit { color: var(--t-accent-ink); border-color: var(--t-accent-ink); background: transparent; }
/* ⚠️ --t-accent-tief statt eines weissen Schleiers. Gemessen: ein Schleier aus
   16 % Weiss hellt die Akzentflaeche auf und drueckt den Textkontrast auf
   3,77 (Modernist), 4,19 (Service), 4,33 (Kueche) — alle unter 4,5. Die zweite
   Akzentstufe ist genau fuer :hover und :active da und liegt in allen fuenf
   Varianten zwischen 6,64 und 13,89. */
.rs-auswahlleiste .rs-knopf-zweit:hover { background: var(--t-accent-tief); }
.rs-auswahlleiste .rs-knopf-haupt { background: var(--t-accent-ink); color: var(--t-accent); border-color: var(--t-accent-ink); }
.rs-auswahlleiste .rs-knopf-haupt:hover { background: var(--t-accent-ink); }
.rs-auswahl-zu {
  width: 32px; height: 32px; min-height: 32px; padding: 0; margin: 0; flex: none;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--t-accent-tief); color: var(--t-accent-ink);
  display: grid; place-items: center; font-size: 0.8rem; line-height: 1;
}
/* Der Grund steht auf voller Breite unter den Knoepfen — er erklaert, warum
   der Sammel-QR fehlt, und darf nicht neben ihm abgeschnitten werden. */
/* ⚠️ KEINE Deckkraft: mit 0.92 waren es 4.00 statt 4.5. Der Satz erklaert,
   warum der Sammel-QR fehlt — er muss lesbar sein, sonst wirkt der fehlende
   Knopf wie ein Fehler. */
.rs-auswahl-grund { flex-basis: 100%; font-size: 0.75rem; line-height: 1.35; }
.rs-auswahl-grund[hidden] { display: none; }

.rs-bestaetigung {
  border: var(--t-lw) solid var(--t-warn); border-radius: var(--rund-karte);
  background: color-mix(in srgb, var(--t-warn) 10%, var(--t-surface));
  padding: 12px; margin-bottom: 10px;
}
.rs-bestaetigung[hidden] { display: none; }
.rs-bestaetigung-text { font-size: 0.85rem; color: var(--t-ink); line-height: 1.4; }
.rs-bestaetigung-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

.rs-qrfenster {
  border: var(--t-lw) solid var(--t-line); border-radius: var(--rund-karte);
  background: var(--t-surface); padding: 14px; margin-bottom: 10px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.rs-qrfenster[hidden] { display: none; }
/* ⚠️ Weisser Grund unabhaengig vom Design: billige Scanner lesen einen
   QR-Code auf dunklem Grund nicht (gleiche Entscheidung wie im Lieferdialog
   der App). Deshalb steht hier bewusst ein fester Wert. */
.rs-qrfenster img { width: 220px; max-width: 100%; background: #FFFFFF; padding: 8px; border-radius: 8px; }
.rs-qr-text { font-size: 0.8rem; color: var(--t-ink2); text-align: center; }
/* --- ENDE: Mehrfachauswahl --- */




.modal-x-btn { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; border: none; background: rgba(0,0,0,0.06); color: var(--text-secondary); font-size: 1rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; }
.modal-x-btn:hover { background: rgba(0,0,0,0.12); }
/* --- ENDE: Modal/Dialog --- */

/* --- ANFANG: Desktop-Layout --- */
/* Mobile-first oben — ab hier nur Anpassungen für breite Bildschirme, damit
   der Screen auf einem Desktop-PC nicht als schmale Karte in der Mitte
   "verloren" wirkt (Şevkets Feedback). */
/* --- ANFANG: Nach dem Anmelden den Bildschirm ausnutzen --- */
/* Şevkets Befund 2026-08-13: "mobile web portal kleiner füllte den bildschirm
   nicht komplett". Nachgemessen auf einem 375-px-Handy: von 375 px blieben
   307 px für den Inhalt (82 %) — 32 px Rand der Seite plus 36 px Rand der
   Karte. Dazu stand der Inhalt vertikal zentriert und schwebte in der Mitte,
   und zwischen 400 und 720 px Breite blieb er als 400-px-Säule stehen.

   ⚠️ Nur NACH dem Anmelden. Die Anmeldekarte bleibt schmal und mittig — das
   ist für ein Anmeldefeld die richtige Form, und Şevkets Beschwerde betraf
   sie nicht. Die Klasse setzt das Skript an den drei Stellen, die zwischen
   Anmeldung und Hauptbildschirm umschalten.

   ⚠️ Bewusst in einer max-width-Abfrage statt als Grundregel mit Gegenregeln
   weiter unten: "body.angemeldet #screenHaupt.box" hat eine HÖHERE
   Spezifität als das "#screenHaupt.box" der Breitbild-Regeln und würde sie
   schlagen, egal in welcher Reihenfolge sie stehen — der Rechner wäre damit
   auf 720 px geschrumpft, obwohl dort 880 bzw. 1300 px eingestellt sind. So
   greift die Regel gar nicht erst oberhalb von 719 px. */
@media (max-width: 719px) {
  body.angemeldet {
    align-items: stretch;
    padding: 0;
  }

  body.angemeldet #screenHaupt.box {
    max-width: none;
    --pad-x: 12px;
    --pad-y: 14px;
    padding: var(--pad-y) var(--pad-x) 32px;
  }
}
/* --- ENDE: Nach dem Anmelden den Bildschirm ausnutzen --- */

/* --- ANFANG: Zuordnen-Dialog Kontoauszug — die Trefferliste bekommt die Höhe ---
   Şevket 05.10.: „Bildschirm zu klein, nach dem Suchen nur einen Eintrag lesbar."
   Gemessen bei 1366×700: Liste 160 px hoch = 2½ Zeilen. Drei Ursachen:
   (1) max-height:50vh im style-Attribut schlug die Vollbild-Regel (Inline gewinnt
       immer) — entfernt; (2) das ✕ stand durch die globale Knopf-Grundform
       (position: relative) in einer EIGENEN 44-px-Zeile über dem Titel;
   (3) Umfang- und Typ-Knöpfe in zwei vollen Reihen à 44 px.
   Gilt jetzt auf ALLEN Breiten (vorher erst ab 720 px): Kopf und Fusszeile fest,
   nur die Liste scrollt. Notnetz: wird die Liste unter 300 px gedrückt (sehr
   niedriges Fenster, Handy-Tastatur), scrollt stattdessen der ganze Dialog. */
#modalKoZuordnen .modal-box {
  width: 96vw; max-width: 96vw;
  height: 92vh; height: 92dvh;
  max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column;
  overflow-y: auto;
  padding: 14px 14px 0;
}
#modalKoZuordnen .modal-x-btn { position: absolute; top: 8px; right: 8px; }
#modalKoZuordnen .modal-box h2 { margin: 6px 56px 4px 0; }
#modalKoZuordnen .feld-label { margin-top: 6px; }
#modalKoZuordnen .kz-filterzeile { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; flex-shrink: 0; }
#modalKoZuordnen .kz-filterzeile .pill-row { margin: 0; flex: 1 1 auto; }
#modalKoZuordnen .kz-filterzeile .pill-btn { min-height: 38px; padding: 6px 10px; }
#modalKoZuordnen #kzSuche { margin: 8px 0 0; padding: 10px 12px; flex-shrink: 0; }
/* 300 px = mindestens 5½ Treffer (Zeile 54 px) — Şevkets Vorgabe „mindestens 5 oder 6". */
#modalKoZuordnen #kzErgebnisse { flex: 1 0 300px; min-height: 300px; max-height: none; margin-top: 8px; overflow-y: auto; }
#modalKoZuordnen .modal-box > .modal-actions { position: static; margin-top: 8px; padding: 8px 0 12px; flex-shrink: 0; }
/* --- ENDE: Zuordnen-Dialog Kontoauszug --- */

@media (min-width: 720px) {
  .box { max-width: 640px; }
  #screenHaupt.box { max-width: 720px; --pad-x: 32px; --pad-y: 28px; padding: var(--pad-y) var(--pad-x) 40px; }
  .dash-grid { grid-template-columns: repeat(4, 1fr); }
  .material-grid { grid-template-columns: repeat(3, 1fr); }
  #adminMitarbeiterListe { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  #adminMitarbeiterListe .liste-zeile { margin-bottom: 0; }
  .tag-card-head, .tag-shift { font-size: 0.9rem; }
  /* Kontoauszug-Zuordnen-Dialog: Vollbild-Regeln stehen jetzt im eigenen Block
     „Zuordnen-Dialog Kontoauszug" VOR den Media-Queries — sie gelten auch am Handy. */
  /* Neue-Rechnung-Dialog: Beleg-Vorschau neben dem Formular statt darunter (Şevkets Wunsch —
     Gegenkontrolle der automatisch ausgefüllten Felder gegen das Original). Erster Anlauf
     (nur breiterer modal-box) machte den Beleg laut Şevket immer noch zu klein — jetzt
     Vollbild-Dialog (wie #modalReihenfolge: Kopf/Fehler/Aktionen fest, nur die Layout-Zeile
     scrollt intern), X-Button zum Schließen jederzeit sichtbar. */
  #modalRechnungNeu .modal-box { width: 96vw; max-width: 96vw; height: 92vh; max-height: 92vh; display: flex; flex-direction: column; overflow-y: hidden; }
  #modalRechnungNeu .rn-modal-layout { flex: 1; min-height: 0; flex-direction: row; align-items: stretch; gap: 28px; }
  #modalRechnungNeu .rn-modal-form { flex: 1; min-width: 0; overflow-y: auto; padding-right: 6px; }
  #modalRechnungNeu .rn-modal-vorschau { flex: 1.4; min-width: 0; margin-top: 0; padding-top: 0; padding-left: 28px; border-top: none; border-left: 1px solid rgba(0,0,0,0.1); max-height: none; overflow-y: auto; }
  #modalRechnungNeu .rn-modal-vorschau img, #modalRechnungNeu .rn-modal-vorschau canvas { max-width: 640px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 1000px) {
  .box { max-width: 760px; }
  #screenHaupt.box { max-width: 880px; }
  .dash-grid { grid-template-columns: repeat(4, 1fr); }
  .dash-hero-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
  .dash-hero-row .dash-hero { margin-bottom: 0; }
  #adminMitarbeiterListe { grid-template-columns: 1fr 1fr 1fr; }
  /* Şevket: Zuordnen-Dialog auf Desktop/Tablet nochmal größer + größere Schrift für bessere Lesbarkeit */
  /* Innenabstand oben/seitlich bewusst klein (vorher 30 px rundum) — jede Zeile Kopf
     fehlt der Trefferliste. Unten 0: die Fusszeile bringt ihren Abstand selbst mit.
     KEIN max-height auf #kzErgebnisse mehr: die Liste nimmt per flex den ganzen Rest. */
  #modalKoZuordnen .modal-box { max-width: 920px; padding: 18px 28px 0; font-size: 1.05rem; }
  #modalKoZuordnen .modal-box h2 { font-size: 1.35rem; }
  #modalKoZuordnen #kzErgebnisse { font-size: 1rem; }
  #modalKoZuordnen .liste-zeile { padding: 10px 2px; }
  #modalKoZuordnen .eintrag-detail { font-size: 0.9rem; }
  #modalKoZuordnen input[type=text] { font-size: 1rem; padding: 12px; }
}
/* Große Desktop-Monitore (1400px+): Şevkets Feedback — App soll den Bildschirm füllen statt
   als schmale Karte in der Mitte zu bleiben, besonders am Admin-Dashboard. */
@media (min-width: 1400px) {
  #screenHaupt.box { max-width: 1300px; }
  #adminMitarbeiterListe { grid-template-columns: 1fr 1fr 1fr 1fr; }
  #modalKoZuordnen .modal-box { max-width: 1080px; font-size: 1.1rem; }
}
/* --- ENDE: Desktop-Layout --- */
/* --- ANFANG: Knopf-System (Etappe E2, Abschnitt 4) --- */
/* Vier Varianten: primaer · zweit · leise · gefahr, dazu die Zusaetze
   [data-ton=gold] und .ki sowie die Groessen .gross / .klein / .symbol.

   ⚠️ WARUM DIE ALT-KLASSEN HIER STEHENBLEIBEN STATT IM HTML UMBENANNT ZU
   WERDEN: .pill-btn wird an ueber 30 Stellen per querySelectorAll/closest
   angesprochen, .steuer-chip, .mt-btn und .chip-x ebenso (am Code
   nachgemessen). Ein Umbenennen im Markup wuerde die Reiter-Umschaltung,
   die Steuersatz-Auswahl und die Material-Mengenknoepfe zerlegen. Die
   Alt-Klassen sind deshalb Alias auf die Varianten — genau wie die Tokens
   in E1. Das Markup wird in E4 angefasst, dort faellt beides zusammen weg.

   ⚠️ BUEHNE ODER PAPIER entscheidet #screenHaupt. Am laufenden Portal an
   ueber 900 Knoepfen gemessen: die Zuordnung stimmt in 100 % der Faelle
   (Dialoge liegen ausserhalb von #screenHaupt, 0 .modal-box darin). Das
   Muster gibt es im Bestand bereits (#screenHaupt .btn-secondary). */

/* --- ANFANG: Knopf-Grundform --- */
.knopf,
button {
  /* Design: "Label immer linksbuendig, Hoehe nie unter 56 dp, pro Screen
     genau eine gefuellte Aktion." Die ersten beiden stehen hier, die dritte
     ist eine Frage des Markups und faellt in eine spaetere Etappe. */
  min-height: 56px;
  padding: 0 20px;
  text-align: left;
  font-family: var(--schrift);
  font-size: 1.0625rem;   /* 17 px */
  font-weight: 700;
  line-height: 1.2;
  border-radius: var(--t-r);
  transition: filter .12s ease, transform .06s ease, border-color .12s ease;
}
/* Symbolknoepfe tragen ein Zeichen, kein Label — sie bleiben mittig.
   Ohne diese Zeile stuende jedes X, +, ‹ und › am linken Rand seines Kreises. */
.knopf.symbol,
.icon-btn,
.mt-btn,
.drawer-zu,
.modal-x-btn,
.chip-x,
.menue-knopf,
.kw-nav-btn,
.nav-btn { text-align: center; }
/* --- ENDE: Knopf-Grundform --- */

/* --- ANFANG: Knopf-Zustaende (Pflicht fuer jede Variante) --- */
.knopf:hover,
button:hover:not(:disabled)          { filter: brightness(1.08); }
.knopf:active,
button:active:not(:disabled)         { transform: translateY(1px); filter: brightness(.92); }
.knopf:focus-visible,
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible             { outline: 3px solid var(--marke-akzent); outline-offset: 2px; }
/* ⚠️ Hier stand ein WEISSER Fokusring "fuer die Buehne". Den dunklen
   Farbverlauf gibt es seit dem Design-System 2.0 nicht mehr — auf der jetzt
   hellen Flaeche waere ein weisser Ring unsichtbar, und damit die ganze
   Tastaturbedienung. Der Ring folgt jetzt ueberall dem Akzent der Variante. */
.knopf:disabled,
button:disabled {
  background: var(--t-surface2) !important;
  background-image: none !important;
  color: var(--t-ink2) !important;
  border-color: var(--t-surface2) !important;
  opacity: .55;
  cursor: not-allowed;
  filter: none;
  transform: none;
}
/* Arbeits-Zustand: waehrend des Speicherns. Klicks prallen ab, der Knopf
   bleibt aber sichtbar (nicht ausgegraut) — er arbeitet ja. */
.knopf[aria-busy="true"],
button[aria-busy="true"] { pointer-events: none; opacity: .85; }
@media (prefers-reduced-motion: reduce) {
  .knopf, button { transition: none; }
  .knopf:active, button:active { transform: none; }
}
/* --- ENDE: Knopf-Zustaende --- */

/* --- ANFANG: Variante primaer --- */
/* Verlauf Akzent -> Akzent-tief, Weiss darauf = 9,0:1. Hoechstens einer je
   Ansicht sichtbar (Abschnitt 4) — das durchzusetzen ist Sache von E4/E7. */
.knopf.primaer,
.btn-primary,
.btn-nachtragen,
.btn-mini {
  background: var(--t-accent);
  color: var(--t-accent-ink);
  border: none;
  font-weight: 800;
}
/* --- ENDE: Variante primaer --- */

/* --- ANFANG: Zusatz gold (nur Geld- und Lohn-Aktionen) --- */
/* ⚠️ HIER SASS EIN GEMESSENER LESBARKEITSFEHLER: .btn-mini-secondary hatte
   weisse Schrift auf dem Gold-Verlauf #D9A15C -> #A87C3F. Gemessen 1,7:1 —
   praktisch unlesbar. Keine helle Textfarbe rettet das: auf Gold kommt
   nichts Helles ueber 2,8:1.
   Die Loesung ist dunkler Text UND ein helleres Gold. #2B2118 auf #D9A15C
   ergibt 6,8:1, auf dem hellen Ende #F0C68A noch mehr. Der Verlauf laeuft
   deshalb hell -> mittel statt mittel -> dunkel; das dunkle #A87C3F waere
   mit 4,3:1 knapp unter der 4,5:1-Grenze. */
.knopf.primaer[data-ton="gold"],
.btn-accent,
.btn-mini-secondary {
  background: var(--t-accent);
  color: var(--t-accent-ink);
  border: none;
  font-weight: 800;
}
/* --- ENDE: Zusatz gold --- */

/* --- ANFANG: Zusatz ki (Gemini) --- */
.knopf.ki,
.btn-ki {
  background: linear-gradient(135deg, #7C5DDA, var(--signal-ki));
  color: var(--auf-akzent);
  border: none;
}
/* --- ENDE: Zusatz ki --- */

/* --- ANFANG: Variante zweit --- */
/* Das ist Şevkets Beschwerde Nr. 2: der Zweitknopf war eine Flaeche mit 8 %
   Deckkraft OHNE Rand — auf Papier praktisch unsichtbar. Jetzt weiss mit
   2-px-Rand in Akzentfarbe, Text in Akzentfarbe: 9,0:1. */
.knopf.zweit,
.btn-secondary,
.btn-pdf,
.btn-pdf-export,
.btn-urlaub,
.datei-link-btn {
  background: transparent;
  color: var(--t-ink);
  border: var(--t-lw) solid var(--t-line);
  font-weight: 700;
}
/* ⚠️ Hier standen Sonderregeln "auf der Buehne": durchscheinende Knoepfe mit
   hellem Rand fuer den dunklen Farbverlauf. Den gibt es seit dem
   Design-System 2.0 nicht mehr — Buehne und Papier sind dieselbe Flaeche.
   Stehen geblieben haetten sie den Knopf in der LINIENFARBE gefuellt, also
   in Modernist schwarz auf weiss mit schwarzem Text. Ersatzlos entfallen. */
/* Die Ausnahme fuer .btn-pdf-export hing an derselben Buehne und faellt mit
   ihr weg — der Knopf ist jetzt ein Zweitknopf wie jeder andere. */
/* --- ENDE: Variante zweit --- */

/* --- ANFANG: Variante leise --- */
.knopf.leise,
.link,
.zurueck-link,
.liste-loeschen {
  background: none;
  border: none;
  color: var(--akzent-text);
  text-decoration: none;
  font-weight: 700;
  padding: 0 4px;
}
/* Buehnen-Sonderfall entfallen — der Textknopf traegt ueberall den Akzent. */
.knopf.leise:hover,
.link:hover,
.zurueck-link:hover,
.liste-loeschen:hover { filter: none; text-decoration: underline; text-decoration-thickness: 2px; }
/* 44-px-Trefferflaeche auch fuer Textknoepfe (Abschnitt 17). Gemessen: die
   139 "Details ansehen" im Automation-Reiter sind nur 18 px hoch, stehen
   aber 182 px auseinander — es ist also reichlich Platz, sie zu vergroessern,
   ohne dass sich zwei Trefferflaechen beruehren.
   ⚠️ .liste-loeschen ist BEWUSST ausgenommen: der Loeschen-Text sitzt direkt
   in der Listenzeile, dort waeren 44 px hoeher als der Zeilenabstand und die
   Trefferflaeche griffe in die Nachbarzeile. Bei einem Loeschen-Knopf waere
   das der schlimmste denkbare Fehlgriff. Er wandert in E7 in die Aktionsreihe
   und wird dort .knopf.gefahr. */
.knopf.leise { min-height: 44px; display: inline-flex; align-items: center; }
.link        { min-height: 44px; display: flex; align-items: center; justify-content: center; }
.zurueck-link{ min-height: 44px; display: inline-flex; align-items: center; }
/* --- ENDE: Variante leise --- */

/* --- ANFANG: Variante gefahr --- */
/* Noch ohne Alt-Klasse: die Loesch-Bestaetigungen laufen heute ueber
   confirm(), das E7 durch Dialoge ersetzt. Die Variante steht hier bereit,
   damit E7 sie nicht neu erfinden muss. */
.knopf.gefahr {
  background: var(--papier-feld);
  color: var(--signal-fehler);
  border: 2px solid var(--signal-fehler);
}
/* --- ENDE: Variante gefahr --- */

/* --- ANFANG: Groessen --- */
.knopf.gross  { min-height: 52px; width: 100%; font-size: 1.0625rem; }
.knopf.klein,
.btn-mini,
.btn-mini-secondary {
  min-height: 36px;
  width: auto;
  padding: 8px 14px;
  font-size: 0.8125rem;            /* 13 px — Untergrenze aus Abschnitt 3 */
  border-radius: 10px;
  white-space: nowrap;
}
/* --- ENDE: Groessen --- */

/* --- ANFANG: Groesse symbol (44-px-Ziel ohne Layout-Bruch) --- */
/* ⚠️ Abschnitt 17 verlangt 44 x 44 px fuer alles Antippbare. Die 340
   sichtbaren .icon-btn sind heute 26 x 26 px mit 6 px Abstand und sitzen
   alle in .eintrag-aktionen, also in Listenzeilen. Sie einfach auf 44 px zu
   setzen wuerde jede dieser Zeilen um 18 px hoeher machen.
   Loesung: 36 px statt 26 px, plus 8 statt 6 px Abstand. Das ist der
   Gewinn, der ohne Nebenwirkung zu haben ist — siehe die Begruendung weiter
   unten, warum die vollen 44 px hier NICHT gehen. */
.knopf.symbol,
.icon-btn,
.mt-btn,
.drawer-zu,
.modal-x-btn {
  position: relative;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  font-size: 0.9375rem;            /* 15 px — Symbole bleiben erkennbar */
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* ⚠️ HIER STAND EINE UNSICHTBARE 44-PX-TREFFERFLAECHE (::after) — sie ist
   wieder raus, und zwar aus einem gemessenen Grund: ein 44 px breites
   Pseudo-Element auf einem 36-px-Knopf vergroessert die scrollWidth jedes
   Elternkastens. Am 375-px-Handy ragten dadurch Karten bis 545 px hinaus.
   Eine Trefferflaeche, die das Layout bricht, ist schlechter als ein
   kleinerer Knopf.
   Abschnitt 4 erlaubt fuer Listenzeilen ausdruecklich 36 px (".klein 36 px
   — NUR in Listenzeilen"), und genau dort sitzen alle 340 .icon-btn. Von 26
   auf 36 px ist der Gewinn, der ohne Nebenwirkung zu haben ist.
   Die freistehenden Symbolknoepfe bekommen dagegen die vollen 44 px. */
.eintrag-aktionen { gap: 8px; }

/* Freistehende Symbolknoepfe stehen NICHT in einer Listenzeile und haben
   Platz — sie bekommen die vollen 44 px aus Abschnitt 17. Betrifft den
   Menue-Schliesser, das X im Dialog und die Mengenknoepfe beim Material
   melden. Gerade die Mengenknoepfe sind wichtig: sie werden von den zwei
   Kollegen bedient, die nicht lesen koennen — dort ist die Groesse des
   Ziels die ganze Bedienung. */
.knopf.symbol.frei,
.drawer-zu,
.modal-x-btn,
.mt-btn { width: 44px; height: 44px; min-height: 44px; }
/* Text-Symbolknoepfe (Pfeile in der Monatsnavigation) behalten ihre Breite,
   bekommen aber die volle Hoehe. */
.knopf.symbol.breit,
.nav-btn,
.kw-nav-btn {
  position: relative;
  min-height: var(--ziel);
  width: auto;
  padding: 8px 14px;
  margin: 0;
  font-size: 0.875rem;
}
/* ⚠️ .modal-x-btn ist absolut in der Dialog-Ecke platziert — die
   Grundregel oben setzt position:relative und wuerde ihn in den Textfluss
   zurueckholen. Hier wieder festnageln. */
/* Freistehende Symbolknoepfe haben Platz und bekommen die vollen 44 px
/* --- ANFANG: Aktionsreihen umbrechen (Abschnitt 9, Grundregel) --- */
/* ⚠️ GEMESSEN, NICHT VERMUTET: Ich hatte diesen Ueberlauf zuerst fuer eine
   Folge von E2 gehalten. Der Gegentest mit dem CSS-Stand VOR E2 zeigt das
   Gegenteil — am 375-px-Handy ragten Elemente der Automation-Karten schon
   vorher bis 522 px hinaus (4 Stueck). Mit dieser Regel sind es 393 px und
   3 Stueck. E2 verkleinert den Ueberlauf also, beseitigt ihn aber nicht:
   der Rest haengt an der Kartenbreite und gehoert zu E4/E8.
   Die Reihen tragen KEINE Klasse, sie werden im Skript mit einem
   style="display:flex" erzeugt (eine der 912 Inline-Stellen, die E4 abbaut).
   Deshalb ueber :has() nach ihrem Inhalt gegriffen statt nach einem Namen.
   ⚠️ Kennt ein Browser :has() nicht, wird die Regel schlicht ignoriert und es
   bleibt beim heutigen Verhalten (seitlich scrollbarer Kasten) — kein Bruch. */
div:has(> .btn-mini),
div:has(> .btn-mini-secondary),
div:has(> .icon-btn) { flex-wrap: wrap; }
/* --- ENDE: Aktionsreihen umbrechen --- */

/* --- ENDE: Groesse symbol --- */

/* --- ANFANG: Umschalter (Reiter-Leiste) --- */
/* .pill-btn wird von 30+ Skriptstellen ueber die Klasse gefunden und
   behaelt deshalb ihren Namen. Neu: sichtbarer Rand — der inaktive Reiter
   war wie .btn-secondary eine 8-%-Flaeche ohne Kontur, man sah nicht, dass
   es ueberhaupt ein Knopf ist. */
.umschalter > button,
.pill-btn {
  min-height: 44px;
  border: 1.5px solid var(--papier-rand);
  background: var(--papier-getoent);
  color: var(--papier-text);
}
.umschalter > button.aktiv,
.pill-btn.aktiv {
  background: var(--t-accent);
  color: var(--auf-akzent);
  border-color: var(--marke-akzent-tief);
}
/* WARNUNG Zwei Sonderregeln aus der Verlaufs-Aera entfernt (E3). Die erste
   setzte background: var(--t-line) auf color: var(--buehne-text) - in
   Modernist und Kueche XL beides derselbe Wert, die nicht gewaehlten
   Umschalter und Filter waren also UNSICHTBAR. Beide trugen ausserdem einen
   festen weissen Rand, der nur vor dem dunklen Verlauf sichtbar war.
   Es gilt jetzt die normale Form aus dem Umschalter-Block darueber. */
/* --- ENDE: Umschalter --- */

/* --- ANFANG: Chips --- */
.chip,
.wahlchip,
.steuer-chip { min-height: 36px; }
.steuer-chip {
  border: 1.5px solid var(--papier-rand);
  background: var(--papier-getoent);
  color: var(--papier-text);
}
.steuer-chip:hover { background: var(--papier-rand); }
.steuer-chip.aktiv {
  background: var(--t-accent);
  color: var(--auf-akzent);
  border-color: var(--marke-akzent-tief);
}
/* --- ENDE: Chips --- */

/* --- ANFANG: Navigations-Kachel --- */
/* .mehr-link-btn ist Navigation, kein Knopf (Abschnitt 4) — Aussehen bleibt
   also die Kachel, sie bekommt nur Hoehe und Zustaende. */
.navi-kachel,
.mehr-link-btn { min-height: 48px; }
/* --- ENDE: Navigations-Kachel --- */
/* --- ENDE: Knopf-System (Etappe E2) --- */

/* --- ANFANG: Rueckmeldung / Snackbar (Etappe E3, Abschnitt 8) --- */

/* --- ANFANG: Stapel-Bereich --- */
/* Wird von zeigeFeedback() bei Bedarf selbst angelegt und an <body> gehaengt.
   z-index 200, weil .modal-overlay auf 100 sitzt — eine Meldung ueber einem
   offenen Dialog ist genau der Fall, um den es hier geht (Speichern im Dialog).
   pointer-events:none am Bereich, auto an der einzelnen Meldung: der leere
   Streifen darf keine Kloepfe darunter blockieren. */
.snackbar-bereich {
  position: fixed;
  left: 8px;
  right: 8px;
  bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
@media (min-width: 900px) {
  .snackbar-bereich { right: auto; max-width: 440px; left: 16px; bottom: 16px; }
}
/* --- ENDE: Stapel-Bereich --- */

/* --- ANFANG: Einzelne Meldung --- */
/* Abschnitt 6 des Designs: EIN dunkler Balken fuer alle vier Typen, die
   Bedeutung traegt ein 6 px breiter Farbstreifen links.

   Der Wechsel ist kein Geschmack, er ist gemessen. Vorher lag die Signalfarbe
   als FLAECHE unter weisser Schrift — in Nacht ergab das 2,74 (Erfolg), 2,18
   (Warnung) und 2,79 (Fehler), in Klassik 2,57 bei Warnung. 7 von 15
   Kombinationen lagen unter 4,5; die Meldung, die sagt ob die Arbeitszeit
   gespeichert wurde, war teils nicht lesbar. Jetzt 14,65 bis 18,79.

   WARNUNG In Nacht ist --t-ink HELL. Der Balken ist dort also hell mit dunkler
   Schrift — das ist Absicht (Umkehrung der Seite), aber jede feste Farbe
   (weisse Schrift, weisser Schleier) bricht genau dort. */
.snackbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 12px 12px 12px 18px;
  border-radius: var(--t-r2);
  box-shadow: 0 8px 24px rgba(20, 13, 8, 0.28);
  background: var(--t-ink);
  color: var(--t-bg);
  animation: snackbarKommt .18s ease-out;
}
/* Der Farbstreifen. Als ::before, damit KEINE Zeile Markup und kein Skript
   angefasst werden muss — die Meldungen entstehen an 284 Stellen. */
.snackbar::before {
  content: "";
  flex: 0 0 6px;
  align-self: center;
  width: 6px;
  height: 34px;
  border-radius: 2px;
  background: var(--snack-signal, var(--t-accent));
}
.snackbar.geht { animation: snackbarGeht .18s ease-in forwards; }

.snackbar-text {
  flex: 1 1 auto;
  font-size: 1rem;      /* Abschnitt 8: 16 px, 700 */
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

/* Vier Typen — sie faerben ab jetzt NUR den Streifen, nicht die Flaeche.
   Der frueher feste Wert #3A3129 fuer "Hinweis" ist damit entfallen; er kam
   aus der Verlaufs-Zeit und war in Nacht ein brauner Fremdkoerper. */
.snackbar-erfolg  { --snack-signal: var(--t-ok); }
.snackbar-hinweis { --snack-signal: var(--t-ink2); }
.snackbar-warnung { --snack-signal: var(--t-warn); }
.snackbar-fehler  { --snack-signal: var(--t-err); }
/* --- ENDE: Einzelne Meldung --- */

/* --- ANFANG: Knoepfe in der Meldung --- */
/* ABWEICHUNG von Abschnitt 8 ("Schliessknopf 32 x 32"): 44 x 44, wie in E2 fuer
   jeden freistehenden Symbolknopf festgelegt. Kleiner waere ein Rueckschritt
   hinter die eigene Regel, und ausgerechnet der Fehler-Streifen laesst sich nur
   ueber diesen Knopf schliessen. */
.snackbar-zu,
.snackbar-aktion {
  flex: 0 0 auto;
  /* Die Alt-Regel `button` setzt width:100% und margin-bottom:8px. Ohne diese
     zwei Zeilen frisst der Aktionsknopf die ganze Zeile: gemessen 414 px breit,
     der Text daneben 15 px schmal und dadurch 907 px hoch. */
  width: auto;
  margin: 0;
  /* WARNUNG currentColor statt Weiss: in Nacht ist der Balken hell und die
     Schrift dunkel — weisse Knoepfe waeren dort unsichtbar. */
  background: color-mix(in srgb, currentColor 16%, transparent);
  color: var(--t-bg);
  border: var(--t-lw) solid color-mix(in srgb, currentColor 50%, transparent);
  border-radius: var(--t-r2);
  font-weight: 700;
  cursor: pointer;
}
.snackbar-zu {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.snackbar-aktion {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  white-space: nowrap;
}
/* WARNUNG Kein fester weisser Schleier: in Nacht ist der Balken hell, ein
   weisser Schleier waere dort unsichtbar. currentColor folgt der Schrift. */
.snackbar-zu:hover,
.snackbar-aktion:hover { background: color-mix(in srgb, currentColor 22%, transparent); filter: none; }
.snackbar-zu:focus-visible,
.snackbar-aktion:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
/* --- ENDE: Knoepfe in der Meldung --- */

/* --- ANFANG: Bewegung --- */
@keyframes snackbarKommt {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes snackbarGeht {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(8px); }
}
/* Abschnitt 8: kein Einfahren, nur Erscheinen. */
@media (prefers-reduced-motion: reduce) {
  .snackbar { animation: none; }
  .snackbar.geht { animation: none; opacity: 0; }
}
/* --- ENDE: Bewegung --- */

/* --- ANFANG: Druck --- */
/* Eine Bildschirmmeldung gehoert auf kein Papier und in kein PDF. */
@media print { .snackbar-bereich { display: none !important; } }
/* --- ENDE: Druck --- */

/* --- ENDE: Rueckmeldung / Snackbar (Etappe E3) --- */

/* --- ANFANG: Uhrzeit-Waehler (Etappe E5, Abschnitt 6) --- */

/* --- ANFANG: Das Feld selbst --- */
/* Das native Feld BLEIBT im Markup und behaelt seinen Wert — es
   wird nur versteckt. Kein Skript und kein Firestore-Feld aendert sich; wer
   `.value` liest oder schreibt, merkt von diesem Bauteil nichts.
   `visibility: hidden` statt `display: none`, damit ein `required` weiterhin
   greift und der Browser nicht ueber ein unsichtbares Pflichtfeld stolpert. */
/* `input.feld-versteckt` statt `.feld-versteckt`: die Element-Regel aus E4
   (`input[type=date]`, ein Typ plus ein Attribut) ist genauso spezifisch wie eine
   Klasse und gewinnt sonst mit ihrem `width: 100%`. Das versteckte Feld war
   dadurch 343 px breit und stand als unsichtbarer Block ueber den Dialogrand
   hinaus — im Rechnungs-Dialog als Querlauf messbar. */
input.feld-versteckt {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Der sichtbare Ersatz. Sieht aus wie ein Feld, ist aber ein Knopf — deshalb
   werden hier die Feld-Masse aus E4 wiederholt statt geerbt. */
.zeit-knopf {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--feld-hoehe);
  margin-bottom: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--papier-text);
  background: var(--papier-feld);
  border: 2px solid var(--papier-rand);
  border-radius: var(--rund-feld);
  cursor: pointer;
}
.zeit-knopf::before { content: "🕒"; font-size: 1rem; opacity: .75; }
.zeit-knopf.leer { color: var(--papier-text-leise); font-weight: 400; }
.zeit-knopf:hover { border-color: var(--marke-akzent); filter: none; }
.zeit-knopf:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--t-accent) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--marke-akzent);
}
/* In engen Zeilen (Bedarf je Wochentag, KI-Vorschlag) ist kein Platz fuer
   Aussenabstand — dort stehen zwei Zeitfelder neben einer Zahl. */
.dp-bedarf-slot-row .zeit-knopf,
.dp-vorschlag-zeile .zeit-knopf { margin-bottom: 0; }
/* --- ENDE: Das Feld selbst --- */

/* --- ANFANG: Blatt / Klappfeld (gemeinsam fuer Zeit- und Datums-Waehler) --- */
.waehler {
  position: fixed;
  inset: 0;
  z-index: 300;              /* ueber .modal-overlay (100) und .snackbar (200) */
  display: none;
  background: rgba(30, 20, 12, .45);
}
.waehler.auf { display: flex; align-items: flex-end; justify-content: center; }

.waehler-blatt {
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--papier);
  border-radius: var(--rund-dialog) var(--rund-dialog) 0 0;
  box-shadow: 0 -8px 32px rgba(20, 13, 8, .32);
  animation: zeitBlattKommt .18s ease-out;
}
/* Am Rechner mittig statt von unten — ein Blatt am unteren Rand eines
   1280-px-Fensters waere weit weg von dem Feld, das man gerade angetippt hat. */
@media (min-width: 900px) {
  .waehler.auf { align-items: center; }
  .waehler-blatt { border-radius: var(--rund-dialog); animation: none; }
}
@keyframes zeitBlattKommt { from { transform: translateY(24px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .waehler-blatt { animation: none; } }
/* --- ENDE: Blatt / Klappfeld --- */

/* --- ANFANG: Kopf mit Von / Bis und Dauer --- */
.zeit-kopf { display: flex; align-items: stretch; gap: 8px; margin-bottom: 4px; }
.zeit-seite {
  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;
  margin: 0;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  background: var(--papier-getoent);
  color: var(--papier-text);
  border: 2px solid var(--papier-rand);
  border-radius: var(--rund-feld);
  cursor: pointer;
}
.zeit-seite .marke {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--papier-text-leise);
}
.zeit-seite .wert { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.zeit-seite.aktiv {
  background: var(--papier-feld);
  border-color: var(--marke-akzent);
  outline: 3px solid color-mix(in srgb, var(--t-accent) 35%, transparent);
  outline-offset: -1px;
}
.zeit-seite.aktiv .marke { color: var(--akzent-text); }

.zeit-dauer {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--papier-text-leise);
}
.zeit-dauer b { color: var(--papier-text); font-size: 1.0625rem; }
.zeit-nacht {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--signal-warn);
  background: var(--signal-warn-flaeche);
}
/* --- ENDE: Kopf mit Von / Bis und Dauer --- */

/* --- ANFANG: Raster --- */
.zeit-marke {
  margin: 10px 0 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--papier-text-leise);
}
.zeit-raster { display: grid; gap: 6px; }
.zeit-raster.stunden { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.zeit-raster.minuten { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 420px) { .zeit-raster.stunden { grid-template-columns: repeat(8, minmax(0, 1fr)); } }

.zeit-zelle {
  width: auto;
  min-height: 52px;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--papier-text);
  background: var(--papier-feld);
  border: var(--t-lw) solid var(--papier-rand);
  border-radius: var(--t-r2);
  cursor: pointer;
}
.zeit-zelle:hover { border-color: var(--marke-akzent); filter: none; }
.zeit-zelle.gewaehlt {
  color: var(--auf-akzent);
  background: var(--marke-akzent);
  border-color: var(--marke-akzent);
}
.zeit-zelle:focus-visible { outline: 3px solid color-mix(in srgb, var(--t-accent) 45%, transparent); outline-offset: 2px; }
/* --- ENDE: Raster --- */

/* --- ANFANG: Fuss --- */
.zeit-schritt { display: flex; gap: 6px; margin-top: 12px; }
.zeit-schritt > button {
  flex: 1 1 0;
  width: auto;
  min-height: 44px;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--akzent-text);
  background: var(--papier-feld);
  border: 2px solid var(--papier-rand);
  border-radius: var(--rund-knopf);
  cursor: pointer;
}
.zeit-schritt > button:hover { border-color: var(--marke-akzent); filter: none; }

.zeit-fuss { display: flex; gap: 8px; margin-top: 12px; }
.zeit-fuss > button { flex: 1 1 0; width: auto; margin: 0; min-height: var(--feld-hoehe); }
/* --- ENDE: Fuss --- */

/* --- ANFANG: Druck --- */
/* Beim Drucken zaehlt der Wert, nicht das Bedienelement. */
@media print {
  .waehler { display: none !important; }
  .zeit-knopf { border: none; padding: 0; min-height: 0; background: none; }
  .zeit-knopf::before { content: ""; }
}
/* --- ENDE: Druck --- */

/* --- ENDE: Uhrzeit-Waehler (Etappe E5) --- */

/* --- ANFANG: Datums-Waehler (Etappe E6, Abschnitt 7) --- */

/* --- ANFANG: Das Feld selbst --- */
.datum-knopf {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--feld-hoehe);
  margin-bottom: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  color: var(--papier-text);
  background: var(--papier-feld);
  border: 2px solid var(--papier-rand);
  border-radius: var(--rund-feld);
  cursor: pointer;
}
.datum-knopf::before { content: "📅"; font-size: 1rem; opacity: .75; }
.datum-knopf.leer { color: var(--papier-text-leise); font-weight: 400; }
.datum-knopf:hover { border-color: var(--marke-akzent); filter: none; }
.datum-knopf:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--t-accent) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--marke-akzent);
}
/* --- ENDE: Das Feld selbst --- */

/* --- ANFANG: Monatskopf --- */
.datum-kopf {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.datum-kopf .titel {
  flex: 1 1 auto;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--papier-text);
}
.datum-blaettern {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--akzent-text);
  background: var(--papier-feld);
  border: var(--t-lw) solid var(--papier-rand);
  border-radius: var(--t-r2);
  cursor: pointer;
}
.datum-blaettern:hover { border-color: var(--marke-akzent); filter: none; }

/* Bei einer Spanne steht ueber dem Kalender, was gerade gewaehlt wird —
   ohne das raet man beim zweiten Klick, welche Seite man gerade setzt. */
.datum-spanne { display: flex; gap: 8px; margin-bottom: 10px; }
.datum-spanne > div {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 10px;
  border: 2px solid var(--papier-rand);
  border-radius: var(--rund-feld);
  background: var(--papier-getoent);
}
.datum-spanne > div.aktiv {
  background: var(--papier-feld);
  border-color: var(--marke-akzent);
}
.datum-spanne .marke {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--papier-text-leise);
}
.datum-spanne > div.aktiv .marke { color: var(--akzent-text); }
.datum-spanne .wert { font-size: 1.0625rem; font-weight: 700; }
/* --- ENDE: Monatskopf --- */

/* --- ANFANG: Raster --- */
.datum-wochentage,
.datum-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.datum-wochentage {
  margin-bottom: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  color: var(--papier-text-leise);
}
.datum-wochentage span { padding: 4px 0; }

.datum-zelle {
  width: auto;
  min-height: 52px;
  margin: 0;
  padding: 0;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--papier-text);
  background: var(--papier-feld);
  border: var(--t-lw) solid transparent;
  border-radius: var(--t-r2);
  cursor: pointer;
}
.datum-zelle:hover { border-color: var(--marke-akzent); filter: none; }
.datum-zelle.leer { visibility: hidden; cursor: default; }
/* Sonn- und Feiertag rot — die Ziffer, nicht die Flaeche. */
.datum-zelle.frei { color: var(--akzent-text); }
/* Heute traegt einen RING, keine gefuellte Flaeche: eine Fuellung macht die
   Ziffer schlechter lesbar und ist von "ausgewaehlt" nicht zu unterscheiden. */
.datum-zelle.heute { border-color: var(--marke-akzent); border-width: 2px; }
.datum-zelle.dazwischen { background: var(--signal-warn-flaeche); }
.datum-zelle.gewaehlt {
  color: var(--auf-akzent);
  background: var(--marke-akzent);
  border-color: var(--marke-akzent);
}
.datum-zelle.gewaehlt.frei { color: var(--auf-akzent); }
.datum-zelle:disabled { color: var(--papier-text-leise); opacity: .45; cursor: not-allowed; background: none; }
.datum-zelle:disabled:hover { border-color: transparent; }
.datum-zelle:focus-visible { outline: 3px solid color-mix(in srgb, var(--t-accent) 45%, transparent); outline-offset: 2px; }
/* --- ENDE: Raster --- */

/* --- ANFANG: Schnellwahl und Fuss --- */
.datum-schnell { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.datum-schnell > button {
  flex: 1 1 auto;
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--akzent-text);
  background: var(--papier-feld);
  border: 2px solid var(--papier-rand);
  border-radius: var(--rund-knopf);
  cursor: pointer;
}
.datum-schnell > button:hover { border-color: var(--marke-akzent); filter: none; }

.datum-fuss { display: flex; gap: 8px; margin-top: 12px; }
.datum-fuss > button { flex: 1 1 0; width: auto; margin: 0; min-height: var(--feld-hoehe); }
/* --- ENDE: Schnellwahl und Fuss --- */

/* --- ANFANG: Druck --- */
@media print {
  .datum-knopf { border: none; padding: 0; min-height: 0; background: none; }
  .datum-knopf::before { content: ""; }
}
/* --- ENDE: Druck --- */

/* --- ENDE: Datums-Waehler (Etappe E6) --- */

/* --- ANFANG: Dialoge (Etappe E7, Abschnitt 10) --- */

/* --- ANFANG: Fusszeile bleibt stehen --- */
/* Abschnitt 10: "Titel oben fest, Aktionen unten fest, nur der Inhalt scrollt."
   Im Bestand war das an zwei Dialogen von Hand nachgebaut (#modalReihenfolge,
   #modalKoZuordnen). `position: sticky` erledigt es fuer alle uebrigen OHNE
   Umbau auf Flex und ohne eine Zeile Markup.
   `:last-child` ist Absicht: an zwei Dialogen steht noch etwas HINTER der
   Fusszeile (modalAutomationDetails, modalRechnungBearbeiten). Dort bliebe der
   nachfolgende Inhalt hinter dem Streifen haengen — die zwei bleiben deshalb
   wie sie sind. Gemessen: 44 von 47 Dialogen haben die Fusszeile als letztes
   Kind, einer hat gar keine. */
.modal-box > .modal-actions:last-child {
  position: sticky;
  /* Die Box hat 22 px Innenabstand unten. Ohne den negativen Wert schwebt der
     Streifen 22 px ueber der Kante und man sieht Inhalt darunter durchlaufen. */
  bottom: -22px;
  margin-top: 16px;
  padding: 12px 0 22px;
  background: var(--papier);
  box-shadow: 0 -10px 14px -10px rgba(20, 13, 8, .22);
}
/* --- ENDE: Fusszeile bleibt stehen --- */

/* --- ANFANG: Breiten --- */
/* Abschnitt 10 nennt 420 / 560 / 96vw. Der Bestand stand fuer JEDEN Dialog auf
   380 px — am Telefon egal (dort greift width: 100%), am Rechner unnoetig eng:
   ein Formular mit zwei Spalten hatte 166 px je Spalte.
   Die zwei Dialoge mit eigener Breite (#modalMonatsPosten 560,
   #modalKoZuordnen 96vw) stehen weiter unten und behalten ihre Regel. */
@media (min-width: 620px) {
  .modal-box { max-width: 560px; }
}
/* --- ENDE: Breiten --- */

/* --- ANFANG: Bestaetigungs-Dialog (ersetzt confirm) --- */
/* Ueber allem, auch ueber einem offenen Dialog — genau dort wird gefragt. */
.frage-overlay { z-index: 250; }
.frage-overlay .modal-box { max-width: 420px; }
.frage-text {
  margin: 0 0 4px;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--papier-text);
  /* Die Bestandstexte tragen ihre Absaetze als \n — ohne pre-line stuende
     alles in einer Wurst. */
  white-space: pre-line;
}
/* --- ENDE: Bestaetigungs-Dialog --- */

/* --- ENDE: Dialoge (Etappe E7) --- */

/* --- ANFANG: Rechner-Layout (Etappe E8, Abschnitt 11) --- */

/* --- ANFANG: Feste Navigationsleiste ab 1000 px --- */
/* Die Antwort auf "am PC ist der Screen gross, aber der Bildschirm trotzdem
   klein": Gemessen war #screenHaupt auf einem 1280-px-Fenster **880 px** breit
   und mittig — 400 px blieben ungenutzt, und die Navigation lag hinter einem
   Menueknopf, obwohl Platz fuer sie da war.
   Ab 1000 px steht der Drawer deshalb dauerhaft offen, 240 px breit, und der
   Inhalt beginnt daneben. Es waechst nicht nur der Rahmen, sondern auch die
   Schrift (17 px Basis) — genau das verlangt Abschnitt 11.
   ⚠️ Der Drawer wird weiterhin NICHT ueber das hidden-Attribut geschaltet
   (Stolperfalle 2026-08-13); hier wird nur die Verschiebung zurueckgenommen. */
@media (min-width: 1000px) {
  html { font-size: 17px; }

  .drawer {
    transform: none;
    visibility: visible;
    transition: none;
    width: 248px;
    max-width: 248px;
    box-shadow: none;
  }
  /* Der Verdunkler und die zwei Knoepfe zum Auf- und Zuklappen haben hier
     keinen Sinn mehr — die Leiste ist ja immer da. */
  .drawer-schatten,
  .drawer-zu,
  .menue-knopf { display: none; }

  /* Kein Polster am Rand und kein Rahmen um den Inhalt: im Design stossen
     Leiste und Inhalt direkt aneinander, getrennt nur durch die eine Linie
     rechts an der Leiste. Ohne diese zwei Zeilen bleibt eine Luecke von
     18 px (16 px Body-Polster + 2 px Rahmen der .box) — am laufenden Portal
     gemessen.
     ⚠️ "align-items: flex-start" ist kein Schoenheitsfehler-Fix: body ist ein
     Flex-Kasten mit "center", und ein zentrierter Inhalt, der hoeher als das
     Fenster wird, laesst sich oben NICHT mehr hochscrollen. */
  body.angemeldet {
    padding: 0;
    align-items: flex-start;
  }
  #screenHaupt.box {
    max-width: none;
    margin-left: 248px;
    --pad-x: 32px;
    --pad-y: 28px;
    padding: var(--pad-y) var(--pad-x) 48px;
    border: none;
  }
  /* Der Inhalt fuellt die zweite Spalte, so wie das Design es zeichnet:
     "grid-template-columns: 248px 1fr". Kein Deckel mehr.

     ⚠️ HIER STAND EIN DECKEL VON 1312 px, UND ER WAR DER FEHLER, den Sevket
     am 2026-08-29 gemeldet hat ("man muss es selber zoomen damit der
     bildschirm gefuellt wird"). Gemessen am laufenden Portal:
       1920 px Fenster → 249 px ungenutzt
       2560 px Fenster → 950 px ungenutzt, also 37 % des Schirms
     Wer hineinzoomt, verkleinert den Anzeigebereich — und 1312 px fuellen ihn
     dann. Das war kein Zufall, sondern genau dieser Deckel.

     ⚠️ Die Sorge, die den Deckel erzeugt hat, ist trotzdem echt: eine
     Textzeile ueber 2200 px ist nicht mehr lesbar. Sie wird jetzt dort
     geloest, wo sie entsteht — am FLIESSTEXT — statt am ganzen Kasten.
     Wer den Deckel wieder an die Kinder haengt, nimmt Sevket den halben
     Bildschirm zurueck.

     ⚠️ Der Deckel ist ERSATZLOS WEG — nicht mit "max-width: none"
     ueberschrieben. Das war mein erster Anlauf und er hat den Textdeckel
     unten totgeschlagen: ":not(.drawer):not(.drawer-schatten)" zaehlt seine
     zwei Argumente MIT, die Regel steht damit bei (1,3,0) und schlaegt jede
     vernuenftige Textregel. Am laufenden Portal gemessen, nicht vermutet:
     der Fliesstext war 2197 px breit statt 78ch. Wer den Deckel je wieder
     braucht, loescht die Regel — er ueberschreibt sie nicht. */

  /* Zeilenlaenge nur fuer echten Fliesstext. Listen, Tabellen, Kacheln und
     Kalender duerfen die volle Breite nehmen — dort ist Breite ein Gewinn. */
  #screenHaupt.box p,
  #screenHaupt.box .sub,
  #screenHaupt.box .hinweis { max-width: 78ch; }

  /* --- Kopfzeile des Inhalts (Design "Screen · Web-App") ---
     Das Design gibt dem Inhalt eine eigene Kopfflaeche: Titel gross, darunter
     eine Linie, die ganze Breite. Am Telefon bleibt es die schmale Zeile mit
     dem Menueknopf — dort ist der Platz dafuer nicht da.

     ⚠️ Die negativen Raender sind kein Trick, sondern Pflicht: sie heben
     genau das Polster von "#screenHaupt.box" auf. Sie stehen NICHT mehr als
     feste Zahl da, sondern kommen aus derselben Variable — am 2026-08-29
     stand die Zeile am Handy sonst 10 px ueber, weil dort in Wahrheit 12 px
     gepolstert wird und hier 24 px eingetragen waren. */
  .kopf-leiste {
    margin: calc(-1 * var(--pad-y)) calc(-1 * var(--pad-x)) 24px;
    padding: 22px 26px;
    background: var(--t-surface);
    border-bottom: var(--t-lw) solid var(--t-line);
  }
  /* 30 px steht so im Design. Bewusst OHNE "* var(--t-scale)" — das macht
     schon "body { zoom }" (siehe Warnung dort). */
  .kopf-titel {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.01em;
    color: var(--t-ink);
  }
}
/* --- ENDE: Feste Navigationsleiste ab 1000 px --- */

/* --- ANFANG: Inhalt nutzt die Breite (Etappe E6) ---
   Sevkets Meldung 2026-08-28: "der bildschirm ist auch bei einer desktop pc
   klein". Der RAHMEN war schon breit (Leiste 248 px, Inhalt bis 1312 px) —
   der INHALT stand darin aber weiter in einer schmalen Saeule untereinander.

   Das Design loest das mit zwei Spalten (1.4fr / 1fr). Hier bewusst etwas
   anders: Gruss, Uhr und Kacheln laufen ueber die volle Breite, die vier
   Listen stehen zu zweit nebeneinander. Grund: die Listen werden per Skript
   ueber ihre id befuellt: eine echte 1.4/1-Teilung braeuchte zwei neue
   Behaelter im Markup, und jede Umhaengung ist ein Risiko an Code, den
   niemand mitgetestet hat. Die Dichte ist dieselbe.

   WARNUNG minmax(0, …) ist Pflicht (Falle vom 2026-08-26): mit 1fr waechst
   eine Spalte ueber den Kasten hinaus, sobald eine Zelle nicht umbrechenden
   Text traegt — der Dienstplan-Kalender war dadurch abgeschnitten. */
@media (min-width: 1000px) {
  /* ⚠️ ".aktiv" IST HIER PFLICHT, NICHT SCHOENHEIT. Ohne die Klasse steht die
     Regel bei (1,0,0) und schlaegt damit ".tab-panel { display:none }" (0,1,0):
     das Dashboard blieb am Rechner auf JEDEM Reiter sichtbar, dauerhaft.
     Gemessen am 2026-08-29: 951 px Dashboard ueber jedem geoeffneten
     Bildschirm — genau Sevkets Meldung "öffnet sich dieser screen gleich
     unterhalb". Der Fehler stammt aus Etappe E6 und war am Telefon
     unsichtbar, weil die Regel erst ab 1000 px greift. */
  /* Die Aufteilung des Designs 3B: "grid-template-columns: 1.4fr 1fr".
     LINKS die eigene Lage (Schicht, Kennzahlen, Woche), RECHTS die Listen
     (Zu tun, Naechste Schichten, Bedarf). Genau die Reihenfolge, die das
     Design als Frage formuliert: "Bin ich eingestempelt? Wann arbeite ich?
     Was bekomme ich? Was muss ich noch tun."
     ⚠️ Die Spalte wird an jedem Kind EXPLIZIT gesetzt statt sich auf die
     Reihenfolge zu verlassen. Sonst landet der naechste Block, den jemand
     hinzufuegt, irgendwo — und das faellt erst am Rechner auf. */
  #tabDashboard.aktiv {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 0 20px;
    align-items: start;
  }
  /* Ueber beide Spalten: die Begruessung. */
  #tabDashboard.aktiv > .ma-gruss,
  #tabDashboard.aktiv > .ma-uhr { grid-column: 1 / -1; }
  /* Feste Spurbreite statt fester Spaltenzahl. Die zwei Kachelreihen haben
     2 bzw. 3 Eintraege — bei "repeat(4, 1fr)" waere die obere Reihe halb so
     breit wie die untere. auto-fill legt gleich breite Spuren an, beide Reihen
     stehen dadurch buendig, und bei 1312 px ist keine Kachel 430 px breit. */
  #tabDashboard.aktiv > .ma-karten { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  /* Am Telefon deckelt 320 px die Listen, damit die Seite nicht endlos wird.
     Am Rechner steht daneben ohnehin Platz — ein Deckel erzeugt hier nur
     einen zweiten Rollbalken in einer Liste, die ganz sichtbar waere. */
  #tabDashboard.aktiv > .liste-card { max-height: 520px; }
}
/* --- ENDE: Inhalt nutzt die Breite (Etappe E6) --- */


/* --- ANFANG: Listenzeilen brechen um (Abschnitt 9) --- */
/* Bis E8 galt der Umbruch NUR fuer #reservierungenListe, mit dem ausdruecklichen
   Hinweis, dass die uebrigen fuenf Verwendungen niemand mitgetestet hat.
   Getestet sind sie jetzt: 47 Dialoge und 13 Admin-Reiter bei 375 px, 0 Ueberlauf.
   `flex-wrap` kann eine Zeile nur schmaler machen, nie breiter — das Risiko ist
   allein die Optik, der Gewinn war ein gemessener Ueberlauf von 419 px auf einem
   375-px-Schirm. Abschnitt 9 macht es deshalb zur Grundregel.
   ⚠️ `width: 100%` aus Abschnitt 9 ist bewusst NICHT mitgenommen: es zwingt die
   Knoepfe in eine eigene Zeile und muesste an jeder der sechs Verwendungen
   einzeln angeschaut werden. */
.eintrag-aktionen { flex-wrap: wrap; }
/* --- ENDE: Listenzeilen brechen um --- */

/* --- ANFANG: Leere Listen (Abschnitt 12) --- */
/* Eine leere Liste war eine graue 13,6-px-Zeile und sah aus wie ein Rest, nicht
   wie eine Aussage. Abschnitt 12 verlangt einen Satz mit Ausweg; den Ausweg
   kann nur die jeweilige Liste liefern, die Form kommt von hier. */
.liste-leer,
.stunden-leer {
  font-size: 0.9375rem;
  line-height: 1.5;
  padding: 22px 12px;
}
/* --- ENDE: Leere Listen --- */

/* --- ENDE: Rechner-Layout (Etappe E8) --- */

/* --- ANFANG: Ampeln und Ladezustaende (Etappe E9, Abschnitt 9 + 12) --- */

/* --- ANFANG: Ampel — Punkt UND Wort --- */
/* Abschnitt 9: "Punkt UND Wort, nie Farbe allein."
   Gemessener Anlass: In BEIDEN Rechnungslisten (Mitarbeiter und Admin) war
   "ueberfaellig" ausschliesslich an der FARBE des Faelligkeitsdatums erkennbar
   — rot/orange/gruen, sonst nichts. Wer Rot und Gruen nicht unterscheidet
   (rund 8 % der Maenner), sieht dort ein Datum und sonst keine Aussage.
   Der Punkt allein reicht ebenfalls nicht: ein roter und ein gruener Kreis
   haben dieselbe FORM. Deshalb traegt die Ampel immer ein Wort.
   ⚠️ Der Punkt kommt aus currentColor — dadurch koennen Punkt und Schrift
   gar nicht auseinanderlaufen, wenn spaeter jemand nur eine der beiden
   Farben aendert. */
.ampel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px 2px 7px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  vertical-align: middle;
}
.ampel::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
/* ⚠️ Die Abstufung laeuft ueber data-ton, NICHT ueber Klassen .ok/.warn/.fehler.
   Grund ist gemessen, nicht vorsorglich: portal.css:183 hat ein bestehendes
   #screenHaupt .fehler fuer die Meldungs-Kaesten (seit E3 entfallen). Dessen
   Spezifitaet (1,1,0) schlaegt .ampel.fehler (0,2,0) — die Fehler-Ampel waere
   im GANZEN angemeldeten Bereich hellrosa auf hellem Grund gewesen, also
   praktisch unsichtbar. Ein Attribut kann mit dieser Klasse gar nicht kollidieren.
   data-ton ist ausserdem die im Projekt schon vorhandene Schreibweise
   (.knopf.primaer[data-ton="gold"]). */
/* ⚠️ Die SCHRIFT laeuft nicht auf der reinen Signalfarbe, sondern auf 60 %
   Signalfarbe plus 40 % Schriftfarbe. Gemessener Anlass: die reine Signalfarbe
   auf der eigenen Toenung ergab bei 13 px in 11 von 20 Faellen weniger als 4,5 —
   Kueche XL, ausgerechnet die Variante fuer die Kueche, lag bei "ueberfaellig"
   auf 2,83, bei "offen" auf 3,14. Der Anteil ist GEMESSEN, nicht geschaetzt:
   bei 65 % faellt Klassik/Warnung auf 4,37, bei 60 % liegt das Minimum ueber
   alle 15 Kombinationen bei 4,81.
   ⚠️ color-mix gegen --t-ink wirkt in BEIDE Richtungen: in Nacht ist die
   Schriftfarbe hell, dort wird die Ampel also heller statt dunkler. Ein fester
   Schwarzanteil waere dort genau falsch herum.
   ⚠️ Der PUNKT behaelt die volle Signalfarbe und ist deshalb von currentColor
   abgekoppelt. Er ist keine Schrift, die 4,5-Grenze gilt fuer ihn nicht, und
   eine gedaempfte Ampel waere auf einen Blick keine Ampel mehr. Beide Werte
   kommen aus demselben Token und koennen darum nicht auseinanderlaufen. */
.ampel[data-ton="ok"]      { color: color-mix(in srgb, var(--t-ok)   60%, var(--t-ink)); background: var(--signal-ok-flaeche); }
.ampel[data-ton="warn"]    { color: color-mix(in srgb, var(--t-warn) 60%, var(--t-ink)); background: var(--signal-warn-flaeche); }
.ampel[data-ton="fehler"]  { color: color-mix(in srgb, var(--t-err)  60%, var(--t-ink)); background: var(--signal-fehler-flaeche); }
.ampel[data-ton="neutral"] { color: color-mix(in srgb, var(--t-ink2) 60%, var(--t-ink)); background: var(--t-surface2); }
.ampel[data-ton="ok"]::before      { background: var(--t-ok); }
.ampel[data-ton="warn"]::before    { background: var(--t-warn); }
.ampel[data-ton="fehler"]::before  { background: var(--t-err); }
.ampel[data-ton="neutral"]::before { background: var(--t-ink2); }

/* Auf der Buehne traegt die Flaeche nicht — dort ist der Grund dunkel.
   Abschnitt 9 verlangt hellen Text auf rgba(255,255,255,.16). */
.buehne .ampel,
.status-card .ampel,
.drawer .ampel {
  color: var(--buehne-text);
  background: rgba(255, 255, 255, .16);
}
.buehne .ampel::before,
.status-card .ampel::before,
.drawer .ampel::before { background: currentColor; }
.buehne .ampel[data-ton="ok"]::before     { background: #7CC77C; }
.buehne .ampel[data-ton="warn"]::before   { background: #E9B45F; }
.buehne .ampel[data-ton="fehler"]::before { background: #EF6C6C; }
/* --- ENDE: Ampel --- */

/* --- ANFANG: Skelett-Ladezeilen (Abschnitt 12) --- */
/* Abschnitt 12: "Laedt" ist eine Platzhalterzeile in ZEILENFORM, nicht der Text
   "Laedt...". Grund: Ein Wort sagt nicht, wieviel kommt; drei Zeilen in der Form
   der spaeteren Liste schon — und der Sprung beim Eintreffen faellt kleiner aus.
   Gemessener Anlass: an 46 Stellen im Portal stand woertlich
   <div class="liste-leer">Laedt...</div>.

   ⚠️ Das Markup ist an allen 46 Stellen ZEICHENGLEICH wiederholt statt aus einer
   Funktion zu kommen. Absicht: 25 davon sind statisches HTML, das VOR dem ersten
   Skriptlauf sichtbar ist — dort gibt es keine Funktion, die etwas erzeugen
   koennte. Eine einheitliche Zeile fuer alle 46 ist ein einziger Durchgang;
   zwei Fassungen waeren zwei, die auseinanderlaufen koennen.

   ⚠️ role="status" bleibt am Element: Wer die Seite vorlesen laesst, hoert
   weiterhin "Laedt". Ein rein bildlicher Zustand waere fuer diese Menschen ein
   Rueckschritt gegenueber dem Wort, das vorher dastand.

   ⚠️ Das wandernde Licht laeuft NUR ohne prefers-reduced-motion. Eine
   Dauerbewegung ist fuer manche Menschen nicht bloss unschoen, sondern macht
   koerperlich unwohl. */
.skelett > span {
  display: block;
  min-height: 56px;
  padding: 15px 12px;
  border-bottom: 1px solid var(--papier-rand);
}
.skelett > span:last-child { border-bottom: none; }

.skelett > span::before,
.skelett > span::after {
  content: "";
  display: block;
  height: 12px;
  border-radius: 6px;
  background-color: var(--t-surface2);
}
.skelett > span::before { width: 58%; margin-bottom: 9px; }
.skelett > span::after  { width: 34%; }
/* Leicht verschiedene Breiten je Zeile — drei gleich lange Balken sehen aus wie
   eine Tabelle, nicht wie Text, der gleich kommt. */
.skelett > span:nth-child(2)::before { width: 72%; }
.skelett > span:nth-child(2)::after  { width: 28%; }
.skelett > span:nth-child(3)::before { width: 47%; }
.skelett > span:nth-child(3)::after  { width: 40%; }

@media (prefers-reduced-motion: no-preference) {
  .skelett > span::before,
  .skelett > span::after {
    background-image: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, .7) 50%,
      rgba(255, 255, 255, 0) 100%);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: skelett-licht 1.3s linear infinite;
  }
}
@keyframes skelett-licht {
  from { background-position: -200px 0; }
  to   { background-position: calc(100% + 200px) 0; }
}
/* --- ENDE: Skelett-Ladezeilen --- */

/* --- ANFANG: Fehlerzustand einer Liste (Abschnitt 12) --- */
/* Abschnitt 12: Rand in --signal-fehler, Ursache im Klartext, Knopf
   "Nochmal versuchen". Ohne den Knopf bleibt dem Nutzer nur, die ganze Seite
   neu zu laden — und dabei verliert er jede offene Eingabe. */
.liste-fehler {
  border: 1px solid var(--signal-fehler);
  border-left-width: 4px;
  border-radius: var(--rund-karte, 12px);
  background: var(--signal-fehler-flaeche);
  padding: 14px 16px;
  margin: 8px 0;
}
.liste-fehler .lf-titel {
  font-weight: 700;
  color: var(--signal-fehler);
  margin-bottom: 4px;
}
.liste-fehler .lf-grund {
  font-size: 0.875rem;
  color: var(--papier-text);
  /* Fehlertexte aus Firestore tragen ihre eigenen Umbrueche. */
  white-space: pre-line;
  margin-bottom: 10px;
  /* Ein technischer Grund kann sehr lang sein und ohne Umbruch die Karte
     sprengen — genau die min-content-Falle aus dem Monatskalender. */
  overflow-wrap: anywhere;
}
/* --- ENDE: Fehlerzustand einer Liste --- */

/* --- ENDE: Ampeln und Ladezustaende (Etappe E9) --- */

/* --- ANFANG: Hintergrund-Sperre bei offenem Dialog (Etappe E9, Abschnitt 10) --- */
/* Abschnitt 10: "Hintergrund-Scroll gesperrt". Etappe E7 hatte das bewusst
   ausgelassen, mit der Begruendung: ein Beobachter ueber 47 Dialoge, und bleibt
   er einmal haengen, ist die GANZE Seite gesperrt.
   Der Einwand war richtig — er trifft nur diese Loesung nicht: :has() haelt
   keinen Zustand. Schliesst der Dialog, passt der Waehler nicht mehr, und die
   Sperre ist im selben Augenblick weg. Haengenbleiben ist unmoeglich.
   Am 2026-08-26 im Browser geprueft: :has() wird unterstuetzt. Wo nicht,
   passiert schlicht nichts — der Hintergrund scrollt wie bisher. */

/* ⚠️ overflow-y: scroll ist DAUERHAFT gesetzt, damit der Rollbalken immer
   dieselbe Breite belegt. Ohne das springt der Inhalt beim Oeffnen jedes
   Dialogs zur Seite, weil der Balken mit overflow:hidden verschwindet — am
   2026-08-26 am Rechner gemessene 15 px, sichtbar an jedem Dialog.
   ⚠️ scrollbar-gutter: stable loest das NICHT. Ebenfalls gemessen: unter
   overflow:hidden reserviert es in Chrome keinen Platz (967 -> 982 px trotz
   gesetzter Eigenschaft). Der Weg ueber overflow-y: scroll ist der einzige,
   der in der Messung gehalten hat.
   Preis: auf einer kurzen Seite steht am Rechner eine leere Balken-Spur. Das
   ist ein ruhender Anblick; ein Sprung bei jedem Dialog waere Bewegung, und
   Bewegung faellt staerker auf. Am Telefon liegt der Balken ueber dem Inhalt
   und ist 0 px breit — dort aendert die Zeile nichts. */
html { overflow-y: scroll; }

html:has(.modal-overlay.aktiv) {
  overflow-y: hidden;
  /* Gleicht genau die Breite aus, die der verschwundene Balken frei macht.
     --rollbalken wird EINMAL beim Start gemessen (index.html) und ist am
     Telefon 0px, weil dort der Balken ueber dem Inhalt liegt. */
  padding-right: var(--rollbalken, 0px);
}
/* --- ENDE: Hintergrund-Sperre bei offenem Dialog --- */

/* --- ANFANG: Dateifelder (Etappe E10) ---
   "Datei waehlen" war 24 px hoch — gemessen an 10 Stellen, darunter jeder
   Beleg-Upload (Kassenbuch, Lohnzettel, Lohnabgaben, Ausgangsrechnung).
   Die Feldregel aus E3 fasst nur input[type=text] und Verwandte; type=file
   faellt durch. Am Telefon ist das ein 24-px-Ziel fuer den Vorgang, den zwei
   Kollegen im Betrieb ohnehin nicht lesen koennen.

   WARNUNG ::file-selector-button ist der EINZIGE Weg, den Knopf im Feld zu
   gestalten; sein Aussehen kommt sonst vom Betriebssystem und ignoriert
   jede Variante. Er braucht eine eigene Hoehe, das Feld allein genuegt nicht. */
input[type=file] {
  width: 100%;
  box-sizing: border-box;
  min-height: var(--feld-hoehe);
  margin-bottom: 8px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--papier-text);
  background: var(--papier-feld);
  border: var(--t-lw) solid var(--papier-rand);
  border-radius: var(--rund-feld);
  cursor: pointer;
}
input[type=file]::file-selector-button {
  min-height: 36px;
  margin-right: 12px;
  padding: 0 14px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--papier-text);
  background: var(--t-surface2);
  border: var(--t-lw) solid var(--t-line);
  border-radius: var(--t-r2);
  cursor: pointer;
}
input[type=file]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--t-accent) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--marke-akzent);
}
/* Loeschen ist eine harte Handlung — 36 px sind dafuer zu klein. */
.btn-mini { min-height: var(--ziel); }
/* --- ENDE: Dateifelder (Etappe E10) --- */

/* --- ANFANG: Lieferantenvergleich, Abhaken (2026-08-30) --- */
/* .btn-mini-secondary ist 36 px hoch — unter der 44-px-Trefflaeche aus
   --ziel. Fuer .btn-mini wurde das schon einmal korrigiert ("Loeschen ist
   eine harte Handlung"); hier gilt dasselbe Argument aus dem Betrieb:
   angetippt wird im Lager, oft mit nassen Haenden. Bewusst NUR diese zwei
   Knoepfe statt aller 37 .btn-mini-secondary — eine Bestandsklasse fuer
   einen neuen Bildschirm umzubauen waere eine Aenderung an 37 Stellen,
   die niemand beauftragt hat. */
.lvg-ignorieren-btn,
.lvg-zurueck-btn { min-height: var(--ziel); }
/* --- ENDE: Lieferantenvergleich, Abhaken --- */

/* --- ANFANG: Design-Wahl im Menue ---
   Farbproben statt Textliste. Zwei Kollegen im Betrieb koennen nicht lesen;
   die Miniatur zeigt Flaeche und Akzent der Variante, der Name erklaert nur.

   WARNUNG Die Farben unten sind ABSICHTLICH fest kodiert und duerfen NICHT
   auf --t-* umgestellt werden: eine Probe muss die Farben IHRER Variante
   zeigen, nicht die der gerade aktiven. Sonst saehen alle fuenf gleich aus.
   Aendert sich ein Wert im Tokens-Block, MUSS er hier mitgezogen werden. */
.design-wahl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));  /* minmax(0,…) Pflicht */
  gap: 8px;
  padding: 4px 12px 8px;
}
.design-probe {
  display: block; width: 100%; margin: 0; padding: 0;
  background: none; border: 0; cursor: pointer;
  text-align: center; font-family: inherit;
  min-height: 0;               /* haengt sonst an der 48px-Knopfregel */
}
.design-probe-flaeche {
  display: flex; align-items: center; justify-content: center;
  height: 36px; border-radius: 6px;
  border: 2px solid transparent;
}
.design-probe-punkt {
  display: block; width: 14px; height: 14px; border-radius: 50%;
}
.design-probe-name {
  display: block; margin-top: 4px;
  font-size: 0.75rem; font-weight: 600; line-height: 1.2;
  color: var(--buehne-text-leise);
}
.design-probe.aktiv .design-probe-flaeche {
  border-color: var(--marke-akzent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--t-accent) 35%, transparent);
}
.design-probe.aktiv .design-probe-name {
  color: var(--buehne-text); font-weight: 800;
}
.design-probe:focus-visible .design-probe-flaeche {
  outline: 3px solid color-mix(in srgb, var(--t-accent) 45%, transparent);
  outline-offset: 2px;
}

/* Die fuenf Miniaturen — Flaeche + Rand + Akzent je Variante */
.design-probe[data-design-wahl="modernist"] .design-probe-flaeche { background:#ffffff; border-color:#201e1d; }
.design-probe[data-design-wahl="modernist"] .design-probe-punkt   { background:#ec3013; border-radius:0; }
.design-probe[data-design-wahl="klassik"]   .design-probe-flaeche { background:#ffffff; border-color:#e2dce7; border-radius:14px; }
.design-probe[data-design-wahl="klassik"]   .design-probe-punkt   { background:#7a0f18; }
.design-probe[data-design-wahl="nacht"]     .design-probe-flaeche { background:#1f1f2e; border-color:#33334a; border-radius:10px; }
.design-probe[data-design-wahl="nacht"]     .design-probe-punkt   { background:#ff5a3c; }
.design-probe[data-design-wahl="kueche"]    .design-probe-flaeche { background:#ffffff; border-color:#000000; border-radius:0; }
.design-probe[data-design-wahl="kueche"]    .design-probe-punkt   { background:#d81b00; border-radius:0; width:18px; height:18px; }
.design-probe[data-design-wahl="service"]   .design-probe-flaeche { background:#ffffff; border-color:#d3dce4; border-radius:8px; }
.design-probe[data-design-wahl="service"]   .design-probe-punkt   { background:#1565c0; }
/* --- ENDE: Design-Wahl im Menue --- */

/* --- ANFANG: Rechnungs-Tabelle (Etappe E11, Design-Abschnitt 03) ---
   Design: "Tabellen statt Karten" am Rechner, "Tabellen als Kartenlisten" am
   Telefon. Deshalb EIN Markup und zwei Anordnungen ueber grid-template-areas —
   nicht zwei Fassungen, die auseinanderlaufen.
   ⚠️ Die Spaltenbreiten stehen zeichengleich im Design (150 / 1fr / 130 / 130 / 130).
   ⚠️ Die sechste Spalte (Belege) steht NICHT im Design und ist trotzdem Pflicht:
   ohne sie waere die hochgeladene Rechnung vom Rechner aus nicht mehr zu oeffnen.
   ⚠️ minmax(0, 1fr) statt 1fr fuer den Lieferanten — 1fr ist minmax(auto,1fr),
   und ein langer Lieferantenname schoebe die Tabelle sonst ueber den Rand
   (derselbe Fehler wie im Dienstplan-Kalender, 2026-08-26). */
.rn-tabelle {
  display: flex;
  flex-direction: column;
  border-top: var(--t-lw) solid var(--t-line);
}

/* Kopfzeile nur am Rechner. Am Telefon stehen die Zellen untereinander —
   eine Kopfzeile darueber haette dort keinen Bezug mehr. */
.rn-kopf { display: none; }

.rn-zeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "lieferant betrag"
    "nr        status"
    "faellig   belege";
  gap: 2px 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--t-surface2);
  background: var(--t-surface);
}

.rn-nr        { grid-area: nr;        font-size: 0.8125rem; color: var(--t-ink2); font-variant-numeric: tabular-nums; }
.rn-nr-wert   { font-weight: 700; color: var(--papier-text); white-space: nowrap; }
.rn-datum::before { content: " · "; }
.rn-lieferant { grid-area: lieferant; font-weight: 700; color: var(--papier-text); min-width: 0; padding-right: 4px; hyphens: auto; overflow-wrap: anywhere; }
.rn-faellig   { grid-area: faellig;   font-size: 0.8125rem; color: var(--t-ink2); }
.rn-faellig::before { content: "Fällig: "; }
.rn-betrag    { grid-area: betrag;    font-weight: 700; text-align: right; color: var(--papier-text); font-variant-numeric: tabular-nums; }
.rn-status    { grid-area: status;    text-align: right; }
.rn-belege    { grid-area: belege;    text-align: right; }
/* 44-px-Trefferflaeche fuer die Beleg-Links.
   ⚠️ .liste-loeschen ist im Knopf-System BEWUSST von der 44-px-Regel ausgenommen,
   weil der Text dort mitten in einer Listenzeile sitzt und die Trefferflaeche in
   die Nachbarzeile griffe. In der Rechnungs-Tabelle gilt das nicht: der Link hat
   eine eigene Zelle, und die ist am Rechner ohnehin 56 px hoch. Deshalb hier —
   und nur hier — die volle Flaeche. */
.rn-belege .liste-loeschen {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0;
}
/* Mehrere Beleg-Seiten nebeneinander statt untereinander — sonst waechst die
   Zeile bei zwei Seiten auf die doppelte Hoehe. */
.rn-belege > div {
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  justify-content: flex-end;
}
.rn-belege > div > .liste-loeschen { margin-left: 0; }

@media (min-width: 1000px) {
  /* ⚠️ EIN Raster fuer Kopf UND Zeilen: die Spalten werden auf .rn-tabelle
     definiert, Kopf und Zeilen sind nur noch display:contents. Zwei getrennte
     Raster (je Zeile eines) berechnen ihre Spalten unabhaengig — sobald die
     Spalten flexibel sind, stuenden Kopf und Daten nicht mehr buendig.
     ⚠️ Untergrenzen sind Pflicht, nicht Vorsicht: mit minmax(0, 1fr) wurde der
     Lieferantenname in Kueche XL (zoom 1,15) auf 0 px gequetscht und war damit
     unsichtbar — die Zeile lief nicht ueber, die Spalte verschwand einfach.
     Summe der Untergrenzen 464 px + Abstaende — passt auch auf dem schmalsten
     Rechnerfenster ueber 1000 px. */
  .rn-tabelle {
    display: grid;
    grid-template-columns:
      minmax(134px, 150px)
      minmax(130px, 1fr)
      minmax(88px, 130px)
      minmax(88px, 130px)
      minmax(80px, 120px)
      minmax(84px, 120px);
    column-gap: 12px;
    border-top: 0;
    background: var(--t-surface);
    /* ⚠️ Sicherheitsnetz, kein Schoenheitsfehler: Kueche XL vergroessert den
       Inhalt um 15 %, die Fensterbreite aber nicht — die Tabelle stand damit
       23 px ueber dem Rand und die GANZE Seite lief quer. Breiter Inhalt muss
       in seinem eigenen Kasten scrollen, nie der Seitenkoerper (Projektregel). */
    overflow-x: auto;
  }
  .rn-kopf,
  .rn-zeile { display: contents; }

  /* display:contents nimmt Kopf und Zeile ihre eigene Box — Rahmen, Innenabstand
     und Hoehe muessen deshalb an den Zellen haengen. */
  .rn-kopf > *,
  .rn-zeile > * {
    /* ⚠️ PFLICHT: die Zellen tragen aus der Telefon-Anordnung noch grid-area-Namen
       ("nr", "lieferant", …). Im Tabellen-Raster gibt es diese Namen nicht — jeder
       unbekannte Name legt eine IMPLIZITE Spalte an. Gemessen entstanden dadurch
       acht statt sechs Spalten, zwei davon 0 px breit, und die Zellen standen
       alle gleich breit statt in ihren Spalten. Ohne diese Zeile sieht die
       Tabelle aus, als haetten die Spaltenbreiten gar nicht gegriffen. */
    grid-area: auto;
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 14px 0;
    border-bottom: 1px solid var(--t-surface2);
    box-sizing: border-box;
    background: var(--t-surface);
  }
  .rn-kopf > *:first-child,
  .rn-zeile > *:first-child { padding-left: 20px; }
  .rn-kopf > *:last-child,
  .rn-zeile > *:last-child { padding-right: 20px; }

  .rn-kopf > * {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 12px;
    border-bottom: var(--t-lw) solid var(--t-line);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--t-ink2);
  }

  /* Am Rechner steht die Nummer gross in ihrer Spalte, das Rechnungsdatum
     klein darunter — der Kopf sagt bereits, was die Spalte bedeutet. */
  .rn-zeile .rn-nr { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; font-size: 0.9375rem; }
  .rn-datum { font-size: 0.75rem; color: var(--t-ink2); }
  .rn-datum::before { content: none; }
  .rn-faellig { font-size: 0.9375rem; }
  .rn-faellig::before { content: none; }
  /* text-align greift in einer Flex-Zelle nicht mehr. */
  .rn-betrag,
  .rn-status,
  .rn-belege { justify-content: flex-end; }
  /* Der Beleg-Baustein bringt bei mehreren Seiten ein eigenes DIV mit
     text-align und Aussenabstand mit — in der Zelle stoert beides. */
  .rn-belege > div { margin-top: 0; }
  .rn-belege .liste-loeschen { margin-top: 0; }
}
/* --- ENDE: Rechnungs-Tabelle (Etappe E11) --- */

/* --- ANFANG: Bildschirm ist ein eigener Bildschirm (Etappe A) --- */
/* ============================================================================
   SEVKETS MELDUNG 2026-08-29: "wenn ich eine screen öffnet z.b inventur
   öffnet sich dieser screen gleich unterhalb kein eigenes dialog es sollte
   gleich dieser dialog erscheinen ohne runter zu scrollen"

   ⚠️ GEMESSEN, NICHT VERMUTET (1440x900, angemeldet, Inventur ueber die
   Seitenleiste geoeffnet): Die Inventur-Ansicht begann bei y = 1478 px.
   Bei 900 px Fensterhoehe heisst das: der geoeffnete Bildschirm lag
   VOLLSTAENDIG unterhalb des Sichtbaren. Man sah nach dem Klick nichts.

   ZWEI URSACHEN, beide hier behoben:

   (1) Ueber JEDEM Reiter standen dauerhaft Logo, Name, GPS-Zeile,
       Status-Karte und die Einstempel-Knoepfe — zusammen rund 345 px.
       Sie stehen im Markup VOR den Reitern und gehoeren keinem davon an.
       Das Design (3A "Screen · Web-App") kennt genau EINEN Kopf je
       Inhaltsflaeche: die Titelzeile. Der Einstempel-Block ist dort
       ausdruecklich der ERSTE Block des DASHBOARDS (3B), nicht ein Deckel
       ueber allem.

   (2) Beim Ansichtswechsel wurde die Seite nie nach oben gerollt. Im ganzen
       Portal kam weder "scrollTo" noch "scrollIntoView" vor — gemessen mit
       grep ueber alle 23352 Zeilen. Diese Haelfte steht im JavaScript
       (zumSeitenanfang), sie laesst sich in CSS nicht loesen.

   ⚠️ WARUM DAS UEBER :has() LAEUFT UND NICHT UEBER EINE KLASSE AM BODY:
   Eine Klasse muesste beim Reiterwechsel gesetzt werden — also an einer
   zweiten Stelle, die vergessen werden kann. :has() liest den Zustand
   dort, wo er ohnehin schon steht (.tab-panel.aktiv), und kann deshalb
   gar nicht auseinanderlaufen. :has() ist im Portal bereits in Gebrauch
   (Zeile 631, 1363, 2375) und am 2026-08-26 im Browser geprueft.

   ⚠️ WAS DAS FUER DEN BETRIEB HEISST — bewusst so entschieden:
   Der Einstempel-Knopf steht ab jetzt NUR noch auf "Start". Er ist von
   jedem Bildschirm aus mit EINEM Klick erreichbar (Seitenleiste, erster
   Eintrag). Das ist die Anordnung, die das Design zeichnet. Wer das
   rueckgaengig machen will, loescht diesen einen Block — die Knoepfe
   selbst sind unveraendert und funktionieren weiter.
   ============================================================================ */

#screenHaupt:not(:has(#tabDashboard.aktiv)) > #hauptLogo,
#screenHaupt:not(:has(#tabDashboard.aktiv)) > #mitarbeiterName,
#screenHaupt:not(:has(#tabDashboard.aktiv)) > #gpsStatus {
  display: none;
}
/* ⚠️ #statusCard, #einstempelnBtn und #aktiveAktionen stehen NICHT mehr hier:
   sie sind seit Etappe B ueberall unsichtbar, weil der Schicht-Block des
   Designs (3B) dasselbe zeigt. Die Regel dafuer steht am Dateiende. */
/* ⚠️ #aktionFehler bleibt bewusst IMMER sichtbar. Er ist leer 0 px hoch und
   traegt die Fehlermeldung des Ein-/Ausstempelns. Wer ihn mit versteckt,
   verschluckt genau die Meldung, die sagt, dass das Ausstempeln nicht
   geklappt hat — der Fehler, der in diesem Projekt schon einmal
   Arbeitszeit gekostet hat (Muster 16). */


/* --- ENDE: Bildschirm ist ein eigener Bildschirm (Etappe A) --- */

/* --- ANFANG: Dashboard 3B (Mitarbeiter-Portal) --- */
/* ============================================================================
   Quelle: "GastroManager Design.dc.html", Abschnitt 3B.
   Alle Masse sind aus dem Design uebernommen, nicht geschaetzt:
     Schicht-Block   padding 24px, grid "1fr auto", gap 24px
     Uhr             68px / 800 / line-height 1 / letter-spacing -.03em
     Label           12px / 700 / .12em / GROSS / Akzentfarbe
     Kennzahlen      repeat(4,1fr), gap 12px, padding 16px, Wert 26px/800
     Wochenbalken    Hoehe 130px, gap 8px, Anteil an 9 h
     Schichtzeile    min-height 60px, Spalten "auto 1fr auto"
     Zu tun          Spalten "6px 1fr auto", gap 14px, min-height 64px

   ⚠️ KEIN "calc(... * var(--t-scale))" — das Design rechnet so, WEIL es kein
      zoom hat. Dieses Portal hat "body { zoom: var(--t-scale) }". Beides
      zusammen skaliert doppelt (am 2026-08-29 an drei Regeln gemessen:
      Faktor 1,322 statt 1,150 in Kueche XL).
   ============================================================================ */

/* --- Schicht-Block --- */
.ma-schicht {
  display: grid;
  /* ⚠️ minmax(0, 1fr) statt 1fr — sonst waechst die linke Spalte auf ihren
     min-content: die 68-px-Uhr plus die Nebenzeile ("Rest bis 8 h: …") sind
     zusammen breiter als die Spalte. Am 2026-08-29 gemessen: 14 px Ueberlauf
     im Block. Dieselbe Falle wie beim Dienstplan-Kalender am 2026-08-26. */
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  background: var(--t-surface);
  border: var(--t-lw) solid var(--t-line);
  border-radius: var(--t-r2);
  box-shadow: var(--t-shadow);
  padding: 24px;
  margin-bottom: 12px;
}
.ma-schicht-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--t-accent);
}
/* Ohne laufende Schicht ist die Zeile keine Meldung, sondern nur ein Zustand —
   sie traegt deshalb die ruhige Textfarbe statt des Akzents. Der Akzent soll
   heissen "hier laeuft etwas". */
.ma-schicht-aus .ma-schicht-label { color: var(--t-ink2); }
.ma-schicht-pause .ma-schicht-label { color: var(--t-warn); }

.ma-schicht-zeit {
  /* Das Design schreibt 68 px. Hier steht rem statt px, WEIL die Grundschrift
     des Portals am Rechner 17 px ist und nicht 16 px: 4.25rem haelt damit das
     VERHAELTNIS zur Umgebung, das das Design zeichnet (68/16). Mit festen
     68 px waere die Uhr gegenueber dem Text daneben kleiner als gezeichnet. */
  font-size: 4.25rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--t-ink);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.ma-schicht-aus .ma-schicht-zeit { color: var(--t-ink2); }
.ma-schicht-sub {
  font-size: 0.875rem;
  color: var(--t-ink2);
  margin-top: 8px;
}
.ma-schicht-rechts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}
/* ⚠️ "text-align: left" steht so im Design und ist dort eine ausdrueckliche
   Regel: "Label immer linksbuendig, Hoehe nie unter 56 dp, pro Screen genau
   eine gefuellte Aktion" (Abschnitt 05). */
.ma-schicht-haupt,
.ma-schicht-zweit {
  min-height: 56px;
  border-radius: var(--t-r);
  font-family: var(--schrift);
  text-align: left;
  padding: 0 20px;
  cursor: pointer;
  width: 100%;
}
.ma-schicht-haupt {
  background: var(--t-accent);
  color: var(--t-accent-ink);
  border: none;
  font-size: 1.0625rem;
  font-weight: 800;
}
.ma-schicht-zweit {
  min-height: 52px;
  background: transparent;
  color: var(--t-ink);
  border: var(--t-lw) solid var(--t-line);
  font-size: 0.9375rem;
  font-weight: 700;
}
.ma-schicht-haupt:hover { background: var(--t-accent-tief); }
.ma-schicht-zweit:hover { background: var(--t-surface2); }

/* Am Telefon steht die Aktion UNTER der Uhr, nicht daneben — 210 px Knopf
   neben einer 68-px-Zahl passen auf 375 px nicht nebeneinander. */
@media (max-width: 719px) {
  .ma-schicht { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .ma-schicht-rechts { min-width: 0; }
  .ma-schicht-zeit { font-size: 3.25rem; }
}

/* --- Vier Kennzahlen --- */
.ma-kpi-zeile {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
/* ⚠️ minmax(0, 1fr) statt 1fr — Falle vom 2026-08-26: "1fr" ist
   "minmax(auto, 1fr)", und auto heisst min-content; eine Zelle mit einer
   langen Zahl waechst dann ueber den Kasten hinaus. */
@media (max-width: 719px) {
  .ma-kpi-zeile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.ma-kpi {
  background: var(--t-surface);
  border: var(--t-lw) solid var(--t-line);
  border-radius: var(--t-r2);
  box-shadow: var(--t-shadow);
  padding: 16px;
}
.ma-kpi-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--t-ink2);
}
.ma-kpi-wert {
  font-size: 1.625rem;                /* 26 px */
  font-weight: 800;
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
  color: var(--t-ink);
}
.ma-kpi-wert[data-ton="ok"]   { color: var(--t-ok); }
.ma-kpi-wert[data-ton="warn"] { color: var(--t-warn); }
.ma-kpi-sub { font-size: 0.75rem; color: var(--t-ink2); margin-top: 4px; }

/* --- Meine Woche --- */
.ma-woche {
  background: var(--t-surface);
  border: var(--t-lw) solid var(--t-line);
  border-radius: var(--t-r2);
  box-shadow: var(--t-shadow);
  padding: 20px;
  margin-bottom: 12px;
}
.ma-woche-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
  gap: 10px;
  flex-wrap: wrap;
}
.ma-woche-titel { font-size: 1rem; font-weight: 800; color: var(--t-ink); }
.ma-woche-plan  { font-size: 0.8125rem; font-weight: 700; color: var(--t-accent); }

.ma-balken-reihe { display: flex; gap: 8px; align-items: flex-end; height: 130px; }
.ma-balken-spalte {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
  min-width: 0;
}
.ma-balken-wert {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--t-ink2);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ma-balken {
  width: 100%;
  border: var(--t-lw) solid var(--t-ink);
  border-radius: var(--t-r2);
  background: var(--t-ink);
  min-height: 4px;
}
/* Die vier Zustaende des Designs: heute gefuellt im Akzent, vergangen
   gefuellt in Textfarbe, geplant nur umrandet, frei ein duenner Strich. */
.ma-balken[data-lage="heute"]   { background: var(--t-accent); border-color: var(--t-accent); }
.ma-balken[data-lage="geplant"] { background: transparent; }
.ma-balken[data-lage="frei"]    { background: transparent; border-color: var(--t-line); }
.ma-balken-tag { font-size: 0.75rem; font-weight: 700; color: var(--t-ink2); }
.ma-balken-tag[data-lage="heute"] { color: var(--t-accent); }

/* --- Naechste Schichten --- */
.ma-schichtzeile {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  min-height: 60px;
  border-bottom: 1px solid var(--t-surface2);
}
.ma-schichtzeile:last-child { border-bottom: none; }
.ma-schichtzeile-tag  { font-size: 0.8125rem; font-weight: 800; color: var(--t-ink2); }
.ma-schichtzeile-zeit { font-size: 0.9375rem; font-weight: 700; color: var(--t-ink); font-variant-numeric: tabular-nums; }
.ma-schichtzeile-ort  { font-size: 0.8125rem; color: var(--t-ink2); }
.ma-schichtzeile-marke {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: var(--t-r2);
  border: 1px solid currentColor;
  white-space: nowrap;
  color: var(--t-ok);
}
.ma-schichtzeile-marke[data-ton="warn"]   { color: var(--t-warn); }
.ma-schichtzeile-marke[data-ton="akzent"] { color: var(--t-accent); }

/* --- Zu tun --- */
.ma-zutun {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: var(--t-surface);
  border: var(--t-lw) solid var(--t-line);
  border-radius: var(--t-r2);
  box-shadow: var(--t-shadow);
  padding: 14px;
  min-height: 64px;
  margin-bottom: 10px;
  cursor: pointer;
}
.ma-zutun:last-child { margin-bottom: 0; }
.ma-zutun:hover { background: var(--t-surface2); }
/* Der Farbstreifen ist im Design 6 px breit und 36 px hoch — er traegt die
   Dringlichkeit, ohne dass Farbe die EINZIGE Auskunft waere: der Text daneben
   sagt dasselbe in Worten. */
.ma-zutun-strich { width: 6px; height: 36px; background: var(--t-ink2); border-radius: 2px; }
.ma-zutun-strich[data-ton="fehler"] { background: var(--t-err); }
.ma-zutun-strich[data-ton="warn"]   { background: var(--t-warn); }
.ma-zutun-strich[data-ton="akzent"] { background: var(--t-accent); }
.ma-zutun-titel  { font-size: 0.9375rem; font-weight: 700; color: var(--t-ink); }
.ma-zutun-sub    { font-size: 0.8125rem; color: var(--t-ink2); margin-top: 2px; }
.ma-zutun-aktion { font-size: 0.8125rem; font-weight: 800; color: var(--t-accent); white-space: nowrap; }

/* --- Die alten Doppelgaenger --- */
/* ⚠️ .ma-uhr und die drei Knoepfe ueber den Reitern zeigen DASSELBE wie der
   neue Schicht-Block. Sie bleiben im DOM, weil der Bestandscode sie anspricht
   (Text setzen, sperren, entsperren) — nur sichtbar sind sie nicht mehr.
   Wer sie entfernt, muss vorher jede dieser Stellen suchen. */
.ma-uhr { display: none !important; }
#screenHaupt > #statusCard,
#screenHaupt > #einstempelnBtn,
#screenHaupt > #aktiveAktionen { display: none !important; }
/* --- ENDE: Dashboard 3B (Mitarbeiter-Portal) --- */

/* --- ANFANG: Admin-Dashboard 3C --- */
/* ============================================================================
   Quelle: "GastroManager Design.dc.html", Abschnitt 3C.
   Masse aus dem Design:
     Kennzahlen   repeat(5,1fr), padding 18px 20px, Wert 27px/800,
                  Trennlinie 1px var(--t-surface2) zwischen den Kacheln
     Diagramm     Hoehe 170px, gap 12px, Balkenpaar gap 3px,
                  Grundlinie var(--t-lw) solid var(--t-line)
     Personenzeile Spalten "38px 1fr 90px 96px auto", min-height 56px
     Monat        Schiene 10px hoch, Fuellung farbig
   ============================================================================ */

.ad-kpi-zeile {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--t-surface);
  border: var(--t-lw) solid var(--t-line);
  border-radius: var(--t-r2);
  box-shadow: var(--t-shadow);
  overflow: hidden;
  margin: 14px 0;
}
/* Am Telefon passen fuenf Kennzahlen nicht nebeneinander — dort zwei je
   Reihe. Bewusst NICHT wischbar: eine Kennzahl, die man erst suchen muss,
   ist keine Kennzahl. */
@media (max-width: 719px) { .ad-kpi-zeile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 1099px) { .ad-kpi-zeile { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.ad-kpi {
  padding: 18px 20px;
  border-right: 1px solid var(--t-surface2);
  border-bottom: 1px solid var(--t-surface2);
  min-width: 0;
}
.ad-kpi-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--t-ink2);
}
.ad-kpi-wert {
  font-size: 1.6875rem;            /* 27 px im Design */
  font-weight: 800; margin-top: 6px;
  font-variant-numeric: tabular-nums;
  color: var(--t-ink);
  overflow-wrap: anywhere;
}
.ad-kpi-wert[data-ton="err"]  { color: var(--t-err); }
.ad-kpi-wert[data-ton="warn"] { color: var(--t-warn); }
.ad-kpi-delta { font-size: 0.75rem; font-weight: 600; margin-top: 4px; color: var(--t-ink2); }
/* ⚠️ NICHT die reine Signalfarbe. Sie ist hier 12 px gross und muss 4,5
   halten. Am 2026-08-29 auf der Kachelflaeche gemessen:
     Warnung auf hell — Modernist 4.24 · Klassik 2.57 · Service 4.24
   Klassik lag damit bei weniger als der HAELFTE des Noetigen; die Zeile, die
   sagt "12 ueberfaellig", war dort kaum zu lesen.
   65 % Signal + 35 % Textfarbe ist gemessen, nicht geschaetzt: es ist der
   hoechste Anteil, bei dem ALLE fuenf Varianten mal drei Toene ueber 4,5
   bleiben (schlechtester Wert 4.73; bei 70 % faellt Klassik auf 4.31).
   ⚠️ Die Mischung geht zur TEXTFARBE der Variante, nicht zu einem festen
   Schwarz — in Nacht ist die hell, dort muss die Farbe HELLER werden. */
.ad-kpi-delta[data-ton="ok"]   { color: color-mix(in srgb, var(--t-ok)   65%, var(--t-ink)); }
.ad-kpi-delta[data-ton="warn"] { color: color-mix(in srgb, var(--t-warn) 65%, var(--t-ink)); }
.ad-kpi-delta[data-ton="err"]  { color: color-mix(in srgb, var(--t-err)  65%, var(--t-ink)); }

/* --- Personalkosten vs. Umsatz --- */
.ad-chart {
  background: var(--t-surface);
  border: var(--t-lw) solid var(--t-line);
  border-radius: var(--t-r2);
  box-shadow: var(--t-shadow);
  padding: 20px;
  margin-bottom: 14px;
}
.ad-chart-kopf {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px; flex-wrap: wrap; margin-bottom: 14px;
}
.ad-chart-titel { font-size: 1rem; font-weight: 800; color: var(--t-ink); }
.ad-chart-legende { display: flex; gap: 14px; font-size: 0.75rem; font-weight: 700; color: var(--t-ink2); }
.ad-chart-legende span { display: flex; align-items: center; gap: 6px; }
.ad-chart-punkt { width: 12px; height: 12px; display: inline-block; background: var(--t-ink); }
.ad-chart-punkt[data-art="kosten"] { background: var(--t-accent); }

.ad-chart-reihe {
  display: flex; gap: 12px; align-items: flex-end;
  height: 170px; padding-bottom: 2px;
  border-bottom: var(--t-lw) solid var(--t-line);
}
.ad-chart-spalte {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  height: 100%; justify-content: flex-end;
}
.ad-chart-paar { width: 100%; display: flex; gap: 3px; align-items: flex-end; height: 100%; }
.ad-chart-balken {
  flex: 1; background: var(--t-ink);
  border-radius: var(--t-r2) var(--t-r2) 0 0;
  min-height: 2px;
}
.ad-chart-balken[data-art="kosten"] { background: var(--t-accent); }
.ad-chart-tag { font-size: 0.75rem; font-weight: 700; color: var(--t-ink2); }
.ad-chart-fuss {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 10px; font-size: 0.8125rem; color: var(--t-ink2);
}
.ad-chart-fuss span[data-ton="ok"]   { color: var(--t-ok); font-weight: 700; }
.ad-chart-fuss span[data-ton="warn"] { color: var(--t-warn); font-weight: 700; }
/* Der Hinweis steht bewusst UNTER der Kurve und nicht als Fussnote klein
   daneben: er sagt, dass die Kurve unvollstaendig ist. Wer das uebersieht,
   liest niedrige Kosten, wo in Wahrheit Daten fehlen. */
.ad-chart-hinweis {
  margin-top: 10px; padding: 10px 12px;
  background: var(--signal-warn-flaeche);
  border-radius: var(--t-r2);
  font-size: 0.8125rem; color: var(--t-ink);
}

/* --- Zwei Spalten: links wer da ist, rechts was zu tun ist --- */
.ad-zwei-spalten { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
@media (max-width: 999px) { .ad-zwei-spalten { grid-template-columns: minmax(0, 1fr); } }

.ad-abschnitt-titel {
  font-size: 0.75rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--t-ink2);
  margin: 8px 0 10px;
}
.ad-abschnitt-akzent { color: var(--t-accent); }
.ad-tafel {
  background: var(--t-surface);
  border: var(--t-lw) solid var(--t-line);
  border-radius: var(--t-r2);
  box-shadow: var(--t-shadow);
  overflow: hidden;
}

/* --- Jetzt im Haus --- */
.ad-person {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 90px 76px 76px auto;
  gap: 12px; align-items: center;
  padding: 11px 14px; min-height: 56px;
  border-bottom: 1px solid var(--t-surface2);
}
.ad-person:last-child { border-bottom: none; }
.ad-person-ini {
  width: 38px; height: 38px; background: var(--t-surface2);
  border-radius: var(--t-r2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8125rem; font-weight: 800; color: var(--t-ink);
}
.ad-person-name  { font-size: 0.9375rem; font-weight: 700; color: var(--t-ink); overflow-wrap: anywhere; }
.ad-person-rolle { font-size: 0.75rem; color: var(--t-ink2); }
.ad-person-seit,
.ad-person-dauer { font-size: 0.875rem; color: var(--t-ink2); font-variant-numeric: tabular-nums; }
.ad-person-dauer { font-weight: 800; color: var(--t-ink); }
.ad-person-marke {
  font-size: 0.75rem; font-weight: 700; padding: 5px 9px;
  border-radius: var(--t-r2); border: 1px solid currentColor;
  white-space: nowrap; color: var(--t-ok);
}
.ad-person-marke[data-ton="warn"] { color: var(--t-warn); }
.ad-person-marke[data-ton="err"]  { color: var(--t-err); }
/* Am Telefon bleiben Name und Marke — Uhrzeit und Dauer wandern in eine
   zweite Zeile waere schoener, kosten aber Hoehe. Hier reicht Umbruch. */
@media (max-width: 719px) {
  .ad-person { grid-template-columns: 38px minmax(0, 1fr) auto; row-gap: 4px; }
  .ad-person-rolle { grid-column: 2 / -1; }
  .ad-person-seit, .ad-person-dauer { grid-column: auto; }
}

/* --- Monat --- */
.ad-monat { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ad-monat-zeile { min-width: 0; }
.ad-monat-kopf {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 0.875rem; margin-bottom: 6px;
}
.ad-monat-kopf span { color: var(--t-ink2); font-weight: 600; }
.ad-monat-kopf b { color: var(--t-ink); font-weight: 800; font-variant-numeric: tabular-nums; }
.ad-monat-schiene { height: 10px; background: var(--t-surface2); border-radius: var(--t-r2); overflow: hidden; }
.ad-monat-fuell { height: 100%; background: var(--t-ink); }
.ad-monat-fuell[data-ton="ok"]    { background: var(--t-ok); }
.ad-monat-fuell[data-ton="warn"]  { background: var(--t-warn); }
.ad-monat-fuell[data-ton="leise"] { background: var(--t-ink2); }
/* --- ENDE: Admin-Dashboard 3C --- */

/* --- ANFANG: Erfolgs-Zustand am Speichern-Knopf (Design 07) --- */
/* Das Design gibt die Reihenfolge fest vor: "Tippen → sofort sperren →
   Spinner im Button → Erfolg 600 ms gruen → Snackbar mit dem gespeicherten
   Wert." Die ersten beiden Schritte standen bereits (aria-busy + "Speichert…"),
   dieser hier ist der dritte.

   ⚠️ Die Farbe kommt aus --t-ok der jeweiligen Variante, NICHT aus einem
   festen Gruen: in Nacht waere ein festes Gruen auf dunklem Grund kaum
   lesbar. Die Schrift steht auf --t-bg, also auf dem Grundton der Variante —
   in Nacht ist der dunkel, in den hellen Varianten hell. */
.knopf-erfolg,
button.knopf-erfolg,
.btn-primary.knopf-erfolg,
.ma-schicht-haupt.knopf-erfolg {
  background: var(--t-ok) !important;
  border-color: var(--t-ok) !important;
  color: var(--t-bg) !important;
  /* Keine Bewegung: der Knopf hat gerade seine Breite festgehalten, damit er
     beim Textwechsel nicht springt. Ein Uebergang auf die Farbe ist trotzdem
     ruhig genug und macht den Wechsel erkennbar. */
  transition: background .12s ease-out;
}
/* --- ENDE: Erfolgs-Zustand am Speichern-Knopf (Design 07) --- */

/* --- ANFANG: Tag mit Schicht (Design 06) --- */
/* "Tage mit Schicht tragen einen Punkt unter der Zahl."
   ⚠️ Der Punkt ist ein ::after, damit KEINE Zeile Markup dafuer noetig ist —
   die Zellen entstehen in einer Schleife und tragen nur Klassen.
   ⚠️ Er sitzt UNTER der Zahl und faerbt sie nicht ein: die Zahl traegt schon
   drei andere Bedeutungen (heute, gewaehlt, Sonn-/Feiertag). Eine vierte
   Farbe dort waere nicht mehr unterscheidbar. */
.datum-zelle.hat-schicht { position: relative; }
.datum-zelle.hat-schicht::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--t-accent);
}
/* Auf der gewaehlten Zelle liegt die Akzentflaeche — dort muss der Punkt die
   Gegenfarbe tragen, sonst verschwindet er in seinem eigenen Untergrund. */
.datum-zelle.hat-schicht.gewaehlt::after { background: var(--t-accent-ink); }
/* --- ENDE: Tag mit Schicht (Design 06) --- */

/* --- ANFANG: Zwei Spalten des Dashboards (Design 3B) --- */
/* Am Telefon stehen beide Behaelter schlicht untereinander; das Raster oben
   greift erst ab 1000 px. Der Abstand zwischen den Karten kommt aus dem
   Behaelter, nicht aus jeder Karte — sonst haette die letzte Karte unten
   einen Abstand, den niemand sehen will. */
.ma-spalte-links,
.ma-spalte-rechts { display: flex; flex-direction: column; min-width: 0; }
.ma-spalte-links > *,
.ma-spalte-rechts > * { margin-bottom: 12px; }
.ma-spalte-links > *:last-child,
.ma-spalte-rechts > *:last-child { margin-bottom: 0; }
/* --- ENDE: Zwei Spalten des Dashboards (Design 3B) --- */

/* --- ANFANG: Regel-Karte des Mitarbeiter-Dashboards (Design 3B) --- */
/* Design: background var(--t-surface2), border-radius var(--t-r2),
   padding 18px, Titel 13px/800, Text 14px/1.6 in --t-ink2.
   Bewusst OHNE Rahmen und ohne Schatten: sie ist kein Datenblock, sondern
   eine Auskunft ueber die Regel — sie soll ruhiger sein als alles darueber. */
.ma-regel {
  background: var(--t-surface2);
  border-radius: var(--t-r2);
  padding: 18px;
}
.ma-regel-titel { font-size: 0.8125rem; font-weight: 800; color: var(--t-ink); margin-bottom: 6px; }
/* ⚠️ NICHT reines --t-ink2. Der Entwurf schreibt es so, und in Modernist
   ergibt es auf --t-surface2 gemessene 4.49 — 0,01 unter der Grenze, die
   dieses Portal ueberall sonst haelt (4,5 fuer Text unter 18,66 px).
   Die Mischung zieht die Farbe in JEDER Variante zur Textfarbe hin: in den
   hellen wird sie dunkler, in Nacht heller. Ein fester Farbwert waere genau
   in Nacht falsch herum. */
.ma-regel-text  { font-size: 0.875rem; line-height: 1.6; color: color-mix(in srgb, var(--t-ink2) 78%, var(--t-ink)); }
/* --- ENDE: Regel-Karte des Mitarbeiter-Dashboards (Design 3B) --- */

/* --- ANFANG: Karte kurz hervorheben (Sprungziel) --- */
/* Wenn ein Knopf auf eine Karte weiter unten zeigt, muss man SEHEN, welche
   gemeint war. Ohne die Markierung landet der Blick irgendwo auf einer langen
   Seite und man sucht das, wovor man schon steht.
   ⚠️ 2 Sekunden und dann von selbst weg: eine dauerhafte Markierung wuerde
   nach dem dritten Mal wie ein Fehlerzustand aussehen. */
.hebe-hervor {
  /* ⚠️ KEINE Ueberblendung. Am 2026-08-29 gemessen: mit
     "transition: outline-color .2s" stand die Farbe noch nach 800 ms auf dem
     STARTWERT — das ist currentColor, also die Textfarbe. Der Rahmen war
     damit fast unsichtbar, genau in dem Augenblick, in dem er auffallen soll.
     Ursache war hier ein Fenster, das keine Bilder zeichnet; dasselbe kann
     eine Einstellung fuer reduzierte Bewegung ausloesen. Eine Verzierung, die
     den Zweck kaputtmachen kann, ist es nicht wert. */
  outline: 3px solid var(--t-accent);
  outline-offset: 3px;
  border-radius: var(--t-r2);
}
/* --- ENDE: Karte kurz hervorheben (Sprungziel) --- */

/* --- ANFANG: Abschnitts-Überschrift in einer Unteransicht ---
   Ersetzt vier gleiche style="font-weight:700;margin:4px 0 8px 0" am Element
   (Arbeitsvertrag, Lohnzettel, Meine Strafen). Abschnitt 17 verbietet style=
   am Element, und die Regel "was einer braucht, brauchen alle" gilt hier
   wörtlich: es war viermal dieselbe Optik, viermal abgeschrieben.
   ⚠️ Der obere Abstand steckt IN der Überschrift. Vorher standen dafür leere
      <div style="height:14px"> dazwischen — Abstandhalter, die ein
      Vorleseprogramm als leere Elemente vorliest und die beim nächsten
      Abschnitt wieder vergessen werden. */
.block-titel {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--t-ink);
  margin: 18px 0 8px;
}
/* Der erste Abschnitt braucht den Vorlauf nicht — sonst klafft es unter der
   Überschrift der Ansicht. */
.block-titel:first-of-type { margin-top: 4px; }
/* --- ENDE: Abschnitts-Überschrift in einer Unteransicht --- */

/* --- ANFANG: Große Summe in einer Karte ---
   Für die Kopfzahl über einer Liste (offene Strafen, Monatssumme).
   ⚠️ tabular-nums ist Vorschrift aus Abschnitt 17 und hier nicht Kosmetik:
      ohne feste Ziffernbreite springt die Zahl bei jedem Neuladen seitlich,
      weil "1" schmaler ist als "8". */
/* ⚠️ nowrap ist Pflicht, nicht Zierde: Am 2026-09-01 im Browser gesehen, dass
   "€ -0,81" als Flex-Item umbrach — das Eurozeichen stand allein in der ersten
   Zeile, der Betrag darunter. Ein zerrissener Geldbetrag ist schlechter lesbar
   als einer, der Platz braucht. Alle drei Verwendungen tragen einen Betrag. */
/* ⚠️ Flex-Item, das schrumpfen darf. Ohne min-width:0 gilt min-content und
   die Zeile laeuft ueber ihren Kasten hinaus, sobald der Betrag daneben
   nicht umbrechen darf (am 2026-09-01 im Browser mit 6 px gemessen).
   Eigene Klasse statt Aenderung an .liste-zeile — die hat 40+ Verwendungen. */
.zeile-schrumpfbar { min-width: 0; }

.summe-gross {
  white-space: nowrap;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--papier-text, var(--t-ink));
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
/* --- ENDE: Große Summe in einer Karte --- */

/* --- ANFANG: Firmenlogo im Firmenprofil ---
   ⚠️ max-height statt height: das Logo ist ein hochgeladenes Bild mit
      unbekanntem Seitenverhältnis. Eine feste Höhe würde ein breites Logo
      über den Rand schieben. */
.firmen-logo {
  max-height: 70px;
  max-width: 100%;
  margin: 4px 0 10px;
}
/* --- ENDE: Firmenlogo im Firmenprofil --- */

/* --- ANFANG: Zahlen in Listenzeilen ---
   Abschnitt 17: "Zahlen tabular-nums". Betrifft die Detailzeilen, in denen
   Beträge, Kilometer und Temperaturen stehen — dort steht die Zahl mitten im
   Satz, deshalb wird nur die Ziffernbreite festgesetzt und NICHT
   rechtsbündig ausgerichtet (das gilt für Betragsspalten, die es hier nicht
   gibt). */
.eintrag-detail, .liste-titel { font-variant-numeric: tabular-nums; }
/* --- ENDE: Zahlen in Listenzeilen --- */

/* --- ANFANG: QR-Code-Karte ---
   ⚠️ image-rendering: pixelated ist hier Pflicht, nicht Geschmack: ein QR-Code
      ist ein Raster aus harten Schwarz-Weiß-Feldern. Weichgezeichnet
      hochskaliert verwischen die Ränder, und billige Scanner erkennen ihn
      dann schlechter — genau die Geräte, die im Lokal hängen. */
.qr-karte .qr-bild {
  display: block;
  width: 190px;
  height: 190px;
  margin: 10px auto;
  image-rendering: pixelated;
  background: #FFFFFF;   /* Der Code braucht weißen Grund, auch im Dunkelmodus. */
  padding: 8px;
  border-radius: var(--t-r2);
}
/* --- ENDE: QR-Code-Karte --- */

/* --- ANFANG: Speisekarten-Zeile ---
   Drei Felder je Gericht: Name, Preis, Beschreibung. Am Telefon untereinander,
   ab 560 px Name und Preis nebeneinander — der Preis ist kurz und verschwendet
   sonst eine ganze Zeile.
   ⚠️ minmax(0, 1fr), nicht 1fr: ein langer Gerichtsname mit nowrap würde die
      Spalte sonst über den Kartenrand schieben (dieselbe Falle wie beim
      Monatskalender). */
.spk-zeile {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 10px 0;
  padding-bottom: 10px;
  border-bottom: var(--t-lw) solid var(--t-line);
}
.spk-zeile:last-of-type { border-bottom: 0; }
/* Der Preis rechtsbündig mit fester Ziffernbreite — Abschnitt 17. */
.spk-preis {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 560px) {
  .spk-zeile { grid-template-columns: minmax(0, 1fr) 110px; }
  /* Die Beschreibung läuft über beide Spalten. */
  .spk-beschreibung { grid-column: 1 / -1; }
}
/* --- ENDE: Speisekarten-Zeile --- */

/* --- ANFANG: Wochentag-Auswahl (Aufgaben-Vorlage) ---
   ⚠️ 44 px Mindestmaß auch am Rechner (Abschnitt 17). Sieben Kästchen in einer
      Reihe sind sonst auf einem Berührungsbildschirm nicht sicher zu treffen. */
.tage-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0 10px;
}
.tage-reihe label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 56px;
  min-height: 44px;
  padding: 0 8px;
  border: var(--t-lw) solid var(--t-line);
  border-radius: var(--t-r2);
  background: var(--t-surface);
  font-size: 0.875rem;
  cursor: pointer;
}
/* --- ENDE: Wochentag-Auswahl (Aufgaben-Vorlage) --- */

/* --- ANFANG: Anklickbare Dashboard-Karten (2026-08-30) --- */
/* Sevkets Auftrag: alle Karten des Admin-Dashboards sollen ins jeweilige
   Fenster fuehren. Als KLASSE und nicht als style= am Element (Abschnitt 17). */
.dash-klickbar { cursor: pointer; }
/* Sichtbar, dass die Karte etwas tut — ohne sie umzufaerben. Wichtig fuer die
   zwei Kollegen, die nicht lesen: die Karte muss sich beim Antippen ruehren. */
.dash-klickbar:hover { filter: brightness(1.04); }
.dash-klickbar:active { transform: scale(0.985); }
/* Der Fokusrahmen ist Pflicht, sobald die Karte role="button" traegt und mit
   der Tabulatortaste erreichbar ist — sonst weiss man beim Tabben nicht, wo
   man steht. */
.dash-klickbar:focus-visible { outline: 2px solid var(--marke); outline-offset: 2px; }
/* --- ENDE: Anklickbare Dashboard-Karten --- */

/* --- ANFANG: Rechner-Etappen aus dem Hauptbaum (07.09.), uebernommen 2026-09-11 ---
   Herkunft: Zweig claude/produktbilder-lager-anzeige, Commits 8d68acc (Etappe 1)
   und 6b73c81 (Etappe 2). Dort auf einer Juli-Fassung des Portals gebaut; die
   Kombi-Fassung hier hatte seit dem Design-System (E1-E8) laengst eine eigene
   Seitenleiste ab 1000 px (siehe "Ab 1000 px steht der Drawer dauerhaft offen").
   ⚠️ Deshalb NUR die zwei Teile uebernommen, die Kombi NICHT hatte:
     1. Aktionsknoepfe auf natuerliche Breite (Sevkets Meldung 07.09.: "am Windows
        wie ein Programm, jetzt schauen die Buttons durcheinander aus")
     2. Listen als Tabelle (Zebra-Streifen, Hover, ruhige Zeilenhoehe)
   Der Seitenleisten-Block des Hauptbaums (280 px, body:has) wurde BEWUSST NICHT
   uebernommen — er wuerde mit der 248-px-Leiste hier kollidieren. */
@media (min-width: 1000px) {
  /* Aktionsknoepfe auf natuerliche Breite.
     ⚠️ Bewusst NUR diese sieben Klassen und NUR innerhalb von #screenHaupt:
     `pill-btn` (Reiter, brauchen flex:1), `btn-mini*`, `icon-btn`, `nav-btn`,
     `drawer-eintrag` und die Dialog-Knoepfe muessen ihre Breite behalten —
     eine pauschale button-Regel wuerde die Reiterleisten und Dialoge zerlegen. */
  #screenHaupt .btn-primary,
  #screenHaupt .btn-secondary,
  #screenHaupt .btn-accent,
  #screenHaupt .btn-pdf,
  #screenHaupt .btn-ki,
  #screenHaupt .btn-urlaub,
  #screenHaupt .btn-nachtragen { max-width: 340px; }
}
/* --- ANFANG: Listen als Tabelle am Rechner (Etappe 2, 2026-09-07) ---
   Sevkets Wunsch: lange Listen sollen am Windows-Rechner wie eine Tabelle lesbar sein,
   nicht wie gestapelte Handy-Karten.
   ⚠️ BEWUSST NUR CSS, KEIN Umbau zu echten <table>-Spalten: Die Listenzeilen werden
   in rund 30 JS-Vorlagen per innerHTML gebaut und haben KEINE einheitliche Struktur
   (mal ein Kind, mal zwei, mit unterschiedlich vielen .eintrag-detail-Zeilen darin).
   Feste Spalten haetten Eingriffe in all diese Vorlagen bedeutet — auf Produktivcode,
   an dem 16 Mitarbeiter taeglich haengen. Zebra-Streifen, Zeilen-Hervorhebung und
   ruhige Zeilenhoehe bringen die Lesbarkeit einer Tabelle ohne dieses Risiko.
   ⚠️ Wieder nur ab 1000px — die Handy-Ansicht bleibt unveraendert.  */
@media (min-width: 1000px) {

  .liste-zeile {
    padding: 9px 12px;
    border-radius: 8px;
    /* `center` statt des Handy-Werts `flex-start`: Bei einzeiligen Eintraegen
       sass der Betrag rechts sonst optisch hoeher als der Text links. */
    align-items: center;
    transition: background 120ms ease;
  }
  /* Zebra-Streifen — der eigentliche Unterschied zwischen "Kartenstapel" und
     "Tabelle": Das Auge findet die Zeile wieder, wenn es nach rechts wandert.
     Bei 176 Rechnungen ist das kein Schmuck, sondern der Grund, warum man die
     richtige Zeile trifft. */
  .liste-zeile:nth-of-type(even) { background: rgba(255,255,255,0.055); }
  .liste-zeile:hover { background: rgba(255,255,255,0.13); }

  /* ⚠️ AUSNAHME: Diese Container sind Kachel-Raster (mehrere Spalten nebeneinander,
     gesetzt im 720px-Block), keine untereinander laufenden Listen. Ein Zebra-Streifen
     wuerde dort wahllos einzelne Kacheln einfaerben. */
  #adminMitarbeiterListe .liste-zeile:nth-of-type(even) { background: transparent; }

  /* Ohne Mindesthoehe springt die Zeilenhoehe je nachdem, ob ein Eintrag eine
     Detailzeile hat — das zerstoert das ruhige Bild einer Tabelle wieder. */
  .liste-zeile { min-height: 40px; }
}
/* --- ENDE: Listen als Tabelle am Rechner --- */
/* --- ENDE: Rechner-Etappen aus dem Hauptbaum --- */

/* --- ANFANG: Online-Shop-Einstellungen (Mehr → Online-Shop, 2026-09-11) --- */
.ws-karte { margin-bottom: 14px; }
.ws-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.ws-status { font-size: 0.8rem; color: var(--t-ink2); }
.ws-status.ws-an { color: var(--t-ok); font-weight: 700; }
.ws-schalter { display: flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.ws-schalter input { width: auto; margin: 0; }
.ws-eigene { margin-top: 12px; }
.ws-hinweis { font-size: 0.75rem; color: var(--t-ink2); margin: 2px 0 8px; }
.ws-warnung { color: var(--t-warn); }
.ws-drei { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ws-tage { display: flex; flex-direction: column; gap: 4px; margin: 6px 0 10px; }
.ws-tag { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; }
.ws-tag-name { width: 120px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ws-tag-name input { width: auto; margin: 0; }
.ws-tag-zeiten { display: flex; align-items: center; gap: 6px; flex: 1; }
.ws-tag-zeiten input[type="time"] { width: auto; flex: 1; min-width: 0; margin: 0; }
.ws-tag-zu { color: var(--t-ink2); }
.ws-karte .btn-primary { margin-top: 8px; }
/* Ausnahmetage (2026-10-26): Feiertage / verkürzte Tage, gelten für Abholung + Lieferung */
.ws-ausnahmen { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--t-line, #ccc); }
.ws-ausnahmen .ws-titel { font-weight: 700; margin: 0 0 6px; }
.ws-ausnahme { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; padding: 8px; border: 1px solid var(--t-line, #ccc); border-radius: 8px; }
.ws-ausnahme input[type="date"], .ws-ausnahme input[type="time"] { width: auto; margin: 0; }
.ws-ausnahme .ws-ausnahme-grund { flex: 1 1 100%; margin: 0; min-width: 0; }
.ws-ausnahme-weg { margin-left: auto; min-width: 44px; min-height: 44px; border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; color: var(--t-ink2); }
.ws-ausnahme-neu { min-height: 44px; padding: 0 14px; border: 1px dashed var(--t-ink2, #666); border-radius: 8px; background: transparent; color: inherit; font-weight: 700; cursor: pointer; }
/* Lieferung (Etappe 7.2b, 2026-09-13): eigener Block unter den Abholzeiten */
.ws-liefer { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--t-line, #ccc); }
.ws-liefer .ws-titel { font-weight: 700; margin: 0 0 6px; }
/* --- ENDE: Online-Shop-Einstellungen --- */

/* --- ANFANG: Online/Telefonbestellungen (Mehr → Tagesliste, 2026-09-11) --- */
.gb-filter { display: flex; gap: 8px; margin-bottom: 10px; }
.gb-filter select, .gb-filter input { margin: 0; flex: 1; min-width: 0; }
.gb-kopf { font-size: 0.85rem; margin-bottom: 12px; }
.gb-nachlass, .gb-warn { color: var(--warn-text); }
/* Die Karte selbst (Design-System 18.09.): jede Bestellung liegt auf t-surface mit
   Rand und Variantenschatten — nie direkt auf dem Seitengrund. Bisher trug die
   Klasse liste-card-formular hier KEINE Fläche (sie hebt nur die Listen-Höhe auf;
   die Fläche kommt von .liste-card, die an dieser Karte nie stand). */
.gb-karte { margin-bottom: 12px; padding: 14px 16px; background: var(--t-surface); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); box-shadow: var(--t-shadow); }
.gb-karte.gb-test { border-left: 4px solid var(--t-warn); }
/* --- ANFANG: Reiter + kompakte Karten (Şevkets Befunde 18.09.) --- */
.gb-reiter { display: flex; gap: 6px; margin: 0 0 10px; overflow-x: auto; }
.gb-reiter[hidden], html.kassa .gb-reiter { display: none; }
.gb-reiter-knopf { flex: 1 1 0; width: auto; min-height: var(--ziel); padding: 8px 10px; border-radius: var(--r-pille); border: var(--t-lw) solid var(--t-line); background: transparent; color: var(--t-ink); font: inherit; font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; cursor: pointer; }
.gb-reiter-knopf[aria-selected="true"] { background: var(--t-accent); color: var(--t-accent-ink); border-color: var(--t-accent); }
.gb-reiter-zahl { min-width: 22px; padding: 1px 7px; border-radius: var(--r-pille); background: var(--t-surface2); color: var(--t-ink); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.gb-reiter-knopf[aria-selected="true"] .gb-reiter-zahl { background: rgba(255,255,255,.28); color: inherit; }
.gb-karte.gb-kompakt { padding: 10px 12px; }
.gb-karte.gb-kompakt .gb-nr { font-size: 1.25rem; min-width: 34px; }
.gb-karte.gb-kompakt .gb-kopfzeile { align-items: center; }
.gb-kompakt-zeile { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 0.9rem; margin-top: 2px; }
.gb-pfeil { flex: 0 0 auto; width: var(--ziel); padding: 0; min-width: var(--ziel); min-height: var(--ziel); border-radius: var(--t-r2); border: var(--t-lw) solid var(--t-line); background: transparent; color: var(--t-ink); font: inherit; font-size: 1.15rem; cursor: pointer; }
.gb-pfeil:hover, .gb-pfeil:focus-visible { border-color: var(--t-accent); }
html.pc-app .gb-reiter-knopf { min-height: var(--knopf-pc); font-size: 1.05rem; }
/* --- ENDE: Reiter + kompakte Karten --- */
.gb-kopfzeile { display: flex; align-items: flex-start; gap: 10px; }
.gb-nr { font-size: 1.5rem; font-weight: 800; line-height: 1.1; min-width: 36px; font-variant-numeric: tabular-nums; }
.gb-titel { flex: 1; min-width: 0; }
.gb-name { font-weight: 700; }
.gb-chip { border-radius: 8px; padding: 4px 8px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; background: var(--t-surface2); color: var(--t-ink2); }
/* Status-Chip: Wort auf 8–10 % Tönung, Schrift 60 % mit t-ink gemischt (Design-System 18.09.) */
.gb-chip.gb-NEU { color: var(--warn-text); background: var(--signal-warn-flaeche); }
.gb-chip.gb-IN_ARBEIT { color: var(--akzent-text); }
.gb-chip.gb-FERTIG { color: var(--ok-text); background: var(--signal-ok-flaeche); }
.gb-chip.gb-STORNIERT { color: var(--fehler-text); background: var(--signal-fehler-flaeche); }
.gb-zeile { font-size: 0.85rem; margin-top: 4px; color: var(--t-ink2); }
.gb-kassa { font-weight: 800; color: var(--t-ink); font-variant-numeric: tabular-nums; }
.gb-positionen { margin: 8px 0; padding: 0; list-style: none; font-size: 0.9rem; }
.gb-positionen li { display: flex; gap: 8px; padding: 2px 0; }
.gb-positionen li span:first-child { min-width: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gb-knoepfe { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.gb-knoepfe button { flex: 1; }
/* Design-System 18.09.: genau EINE gefüllte Aktion je Karte („Passt"/Fertig = t-ok).
   Alles Weitere ist ein Zweitknopf — durchsichtig, Rand t-line, Schrift t-ink.
   Vorher waren alle btn-mini-secondary der Karte akzentgefüllt; „🍳 In Vorbereitung"
   stand dadurch rot auf rot (in der Vorschau gemessen: 1,3:1). Gilt für Karte,
   Wächter-Zeile, Küchen-Stopp, Zusage-Reihe und Storno-Gründe. */
.gb-knoepfe .btn-mini-secondary, .gb-knoepfe a.btn-mini-secondary, .gb-zahlung .btn-mini-secondary { background: transparent; color: var(--t-ink); border: var(--t-lw) solid var(--t-line); font-weight: 700; }
.gb-knoepfe .btn-mini-secondary:disabled { background: var(--t-surface2); color: var(--t-ink2); border-color: var(--t-surface2); }
.gb-knoepfe .gb-erledigt { background: var(--t-ok); color: var(--t-signal-ink); font-weight: 800; }
/* Zusage (Abhol-Shop Etappe 3.2): fuenf Minuten-Knoepfe, gruene Zusage-Zeile */
.gb-zusage-reihe { margin-top: 4px; }
.gb-zusage-reihe button { min-width: 44px; }
.gb-zusage { color: var(--ok-text); font-weight: 700; }
/* In Vorbereitung (Storno-Regel (a), 17.09.): Zeile + Knopf an der Karte */
.gb-kocht { color: var(--akzent-text); font-weight: 700; }
.gb-kocht-knopf { flex: 1 1 auto; border-color: var(--t-accent) !important; color: var(--akzent-text) !important; }
.gb-knoepfe a.btn-mini-secondary { flex: 1; text-align: center; text-decoration: none; }
.gb-frage { margin-top: 8px; padding: 10px; border-radius: var(--t-r2); background: var(--t-surface2); font-size: 0.9rem; }
.gb-zahlung { margin-top: 6px; font-size: 0.85rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
/* Versendete E-Mails je Bestellung (mail_protokoll, 2026-09-15): kleiner Kasten unter der Zahlung */
.gb-mails { margin-top: 8px; padding: 8px 10px; border-radius: var(--t-r2); background: var(--t-surface2); font-size: 0.85rem; }
.gb-mails-titel { font-weight: 700; margin-bottom: 2px; }
.gb-mail { margin-top: 3px; word-break: break-word; }
.gb-mail-an { color: var(--t-ink2); }
.gb-mail-fehl { color: var(--t-err); font-weight: 700; }
.gb-mail-uebersprungen, .gb-mail-keine { color: var(--t-ink2); }
/* Storno (Abhol-Shop Etappe 4, 2026-09-12): roter Rand, gewaehlter Grund-Chip, Hinweiszeile */
.gb-storno, .gb-storno-hinweis { color: var(--fehler-text); }
.gb-storno { border-color: var(--t-err); }
.gb-storno-hinweis { font-weight: 700; }
.gb-storno-chips button { flex: 0 1 auto; }
.gb-storno-chips .gb-chip-gewaehlt { border: 2px solid var(--t-err); color: var(--fehler-text); font-weight: 700; }
.gb-storno-notiz { width: 100%; margin: 8px 0 0; box-sizing: border-box; }
.gb-storno-ok { background: var(--t-err); color: var(--t-signal-ink); }
/* --- ENDE: Online/Telefonbestellungen --- */

/* --- ANFANG: Portal-Wächter — Vollbild-Kasten, Wächter-Zeile, Kopf-Glocke (2026-09-14) --- */
/* Ganze Fläche, über allem (Dialog 100, Snackbar 200, Frage 250, Wähler 300):
   ein Kasten, der gesehen werden MUSS, steht auch über einem offenen Dialog. */
.gb-alarm { position: fixed; inset: 0; z-index: 350; display: flex; align-items: center; justify-content: center; padding: var(--ab-4); background: var(--t-accent); color: var(--t-accent-ink); }
/* ⚠️ Ohne diese Zeile schlägt display:flex das hidden-Attribut — dieselbe
   Falle wie am /admin der Gästeseite (14.09.) und beim Drawer (13.08.). */
.gb-alarm[hidden] { display: none; }
.gb-alarm-kasten { width: 100%; max-width: 720px; max-height: 100%; overflow-y: auto; background: var(--t-surface); color: var(--t-ink); border-radius: var(--t-r); padding: var(--ab-5); box-shadow: var(--t-shadow); }
.gb-alarm-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.gb-alarm-glocke { font-size: 2.2rem; line-height: 1; animation: gb-alarm-wackeln 1s ease-in-out infinite; }
@keyframes gb-alarm-wackeln { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-18deg); } 75% { transform: rotate(18deg); } }
/* Bewegung aus, Funktion bleibt (Design-System: prefers-reduced-motion schaltet Bewegung ab, nicht Funktion) */
@media (prefers-reduced-motion: reduce) { .gb-alarm-glocke { animation: none; } }
.gb-alarm-titel { flex: 1; min-width: 0; font-size: 1.8rem; font-weight: 900; line-height: 1.1; }
.gb-alarm-zaehler { width: 100%; font-weight: 700; color: var(--warn-text); }
.gb-alarm-zaehler:empty { display: none; }
.gb-alarm-inhalt { font-size: 1.15rem; line-height: 1.4; }
.gb-alarm-lokal { font-size: 1.3rem; font-weight: 800; }
.gb-alarm-test { margin: 8px 0; padding: 8px 12px; border-radius: var(--t-r2); background: var(--t-surface2); color: var(--warn-text); font-weight: 800; }
.gb-alarm-positionen { list-style: none; margin: 12px 0; padding: 12px 0; border-top: 1px dashed var(--t-line); border-bottom: 1px dashed var(--t-line); font-size: 1.3rem; }
.gb-alarm-positionen li { display: flex; gap: 10px; padding: 3px 0; }
.gb-alarm-positionen li span:first-child { min-width: 44px; font-weight: 800; font-variant-numeric: tabular-nums; }
.gb-alarm-extras { display: block; font-size: 0.95rem; color: var(--t-ink2); }
.gb-alarm-summe { margin-top: 8px; font-size: 1.4rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.gb-alarm-tonhinweis { margin-top: 10px; padding: 8px 12px; border-radius: var(--t-r2); background: var(--t-surface2); color: var(--warn-text); font-weight: 700; }
.gb-alarm-tonhinweis[hidden] { display: none; }
.gb-alarm-knoepfe { display: flex; gap: 12px; margin-top: 16px; }
.gb-alarm-knoepfe button { flex: 1; width: auto; margin: 0; padding: 18px 12px; min-height: var(--alarm-knopf); font-size: 1.25rem; font-weight: 900; text-align: center; border-radius: var(--t-r); border: none; cursor: pointer; }
.gb-alarm-passt { background: var(--t-ok); color: var(--t-signal-ink); }
/* Zeitwahl im Kasten (17.09.): 15/30/45/90 — Annehmen + Zusage in einem Klick */
.gb-alarm-zusage-titel { margin-top: 14px; font-weight: 700; color: var(--t-ink2); }
.gb-alarm-zusage { margin-top: 8px; }
.gb-alarm-min { background: var(--t-accent); color: var(--t-accent-ink); }
.gb-alarm-oeffnen { background: var(--t-surface2); color: var(--t-ink); border: var(--t-lw) solid var(--t-line) !important; }
@media (max-width: 480px) { .gb-alarm-knoepfe { flex-direction: column; } }
/* Küchen-Stopp (2026-09-14): „Küche kurz zu" unter der Wächter-Zeile */
.gb-kueche { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; padding: 10px 12px; border-radius: var(--t-r2); background: var(--t-surface2); font-size: 0.92rem; }
.gb-kueche > div:first-child { flex: 1 1 320px; min-width: 0; }
.gb-kueche .gb-knoepfe { flex: 0 0 auto; margin-top: 0; }
.gb-kueche .gb-knoepfe button { flex: 1 1 auto; }
/* ⚠️ Am Handy MUSS die Knopfgruppe eine eigene volle Zeile bekommen (2026-09-29).
   Gemessen im 375-px-Rahmen mit echtem CSS: die vier Küchen-Stopp-Knöpfe
   („⏸ 15/30/60 Min zu", „▶ wieder auf") standen zusammen 449 px breit in einem
   303-px-Kasten und liefen 146 px hinaus — samt der ganzen Seite, weil es kein
   overflow-x-Netz gibt. Von 68 durchgeschalteten Ansichten war das die EINZIGE
   mit Querlauf; sie sitzt in „Online/Telefonbestellungen", die jeder Kellner sieht.
   Ursache ist NICHT ein fehlendes flex-wrap — das steht an .gb-knoepfe (Z. 4167).
   Es war wirkungslos, weil flex: 0 0 auto der Gruppe ihre max-content-Breite gibt:
   was nicht schrumpfen darf, muss auch nicht umbrechen. Mit flex-basis 100 % füllt
   sie die Zeile, und erst dann greift ihr eigenes wrap.
   .gb-waechter trägt dasselbe Muster (Z. 4250) und lief nur deshalb nicht über,
   weil seine zwei Knopftexte kürzer sind (≈ 298 px — passt bei 375 px, nicht bei
   320 px). Mitgenommen, damit der nächste längere Text den Fehler nicht zurückholt.
   Ab 561 px bleibt alles wie bisher: dort steht die Gruppe neben dem Text. */
@media (max-width: 560px) {
  .gb-kueche .gb-knoepfe, .gb-waechter .gb-knoepfe { flex: 1 1 100%; min-width: 0; }
}
/* Wächter-Zeile in der Bestell-Ansicht */
/* Eine Zeile: Text links, Knöpfe rechts, Wahl darunter — am Handy bricht sie um
   (Design-System 18.09.: die Wächter-Zeile ist auf allen drei Flächen dieselbe;
   bisher galt die Zeilenform nur im Kassa-Dashboard). */
.gb-waechter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; padding: 10px 12px; border-radius: var(--t-r2); background: var(--t-surface2); font-size: 0.92rem; }
.gb-waechter > div:first-child { flex: 1 1 320px; min-width: 0; }
.gb-waechter .gb-knoepfe { flex: 0 0 auto; margin-top: 0; }
.gb-waechter .gb-knoepfe button { flex: 0 1 auto; }
/* Meldung unter der Zeile: volle Breite, leer = weg (sonst bleibt eine leere Lücke im Raster) */
#gbWaechterMeldung, #gbPcDruckMeldung, #gbKuecheMeldung { flex: 1 1 100%; }
#gbWaechterMeldung:empty, #gbPcDruckMeldung:empty, #gbKuecheMeldung:empty { display: none; }
/* Standort-Wahl je PC (2026-09-14 Abend) — kompakter als das Formular-Feld */
.gb-waechter .gb-waechter-wahl { display: block; flex: 0 0 auto; margin-top: 0; font-weight: 600; }
.gb-waechter .gb-waechter-wahl[hidden] { display: none; }
.gb-waechter .gb-waechter-wahl select { width: auto; min-width: 200px; min-height: 36px; margin: 0 0 0 6px; padding: 6px 32px 6px 10px; font-size: 0.9rem; font-weight: 600; vertical-align: middle; }
/* Ton-Wahl je PC (2026-09-16): drei Töne + Lautstärke in einer Zeile, am Handy umbrechend */
.gb-waechter .gb-ton-wahl { display: flex; flex: 1 1 100%; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 0; font-weight: 600; }
.gb-waechter .gb-ton-wahl label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; }
.gb-waechter .gb-ton-wahl select { width: auto; min-width: 180px; min-height: 36px; margin: 0; padding: 6px 32px 6px 10px; font-size: 0.9rem; font-weight: 600; }
.gb-waechter .gb-ton-wahl input[type="range"] { width: 160px; min-height: 0; margin: 0; padding: 0; background: transparent; border: none; accent-color: var(--t-accent); }
.gb-waechter .gb-ton-wahl .gb-ton-wert { min-width: 3.4em; font-variant-numeric: tabular-nums; color: var(--t-ink2); }
/* Glocke in der Kopfzeile — rechts, klein, ohne Knopf-Rahmen */
.kopf-waechter { width: auto; min-height: 0; margin: 0 0 0 auto; padding: 4px 6px; background: none; border: none; font-size: 1.05rem; line-height: 1; text-align: center; cursor: pointer; }
.kopf-waechter[hidden] { display: none; }
/* --- ENDE: Portal-Wächter --- */

/* --- ANFANG: PC-App (pc-app/, 2026-09-15) — Maus und großer Bildschirm --- */
/* Die Klasse pc-app setzt index.html auf <html>, wenn die Seite in der
   PC-App läuft (window.gastroPc). Şevkets Befund am Kassen-PC: die
   Bestell-Knöpfe (btn-mini: 13 px Schrift, 8 px Innenabstand, 8 px Lücke,
   bis 14 je Karte) sind zu klein und zu dicht. Hier: Karten als Raster
   (der Bildschirm ist bis 1300 px breit), größere Schrift, Knöpfe 52 px
   hoch mit 12 px Lücke, „Passt" doppelt so breit, Alarm-Knöpfe 80 px.
   Handy/Browser: keine Klasse → keine dieser Regeln. */
html.pc-app #gbListe { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--karte-pc), 1fr)); gap: 16px; align-items: start; }
html.pc-app #gbListe > .skelett, html.pc-app #gbListe > .liste-leer { grid-column: 1 / -1; }
/* Der PC-Eingang (.kwa-eingang, Etappe 1e) wird IN #gbListe gezeichnet — im Kartenraster
   landete er in EINER 460-px-Zelle (Şevkets Befund 21.09. „alles durcheinander" in der PC-App:
   Reiter übereinander, Blatt ohne Platz). Er nimmt die ganze Zeile, Raster-Lücke weg. */
html.pc-app #gbListe > .kwa { grid-column: 1 / -1; }
html.pc-app #gbListe:has(> .kwa-eingang) { display: block; }
html.pc-app .gb-karte { margin-bottom: 0; }
html.pc-app .gb-kopfzeile { gap: 14px; }
html.pc-app .gb-nr { font-size: 2.1rem; min-width: 52px; }
html.pc-app .gb-name { font-size: 1.2rem; }
html.pc-app .gb-chip { font-size: 0.92rem; padding: 6px 10px; }
html.pc-app .gb-kopf, html.pc-app .gb-zeile, html.pc-app .gb-zahlung, html.pc-app .gb-frage { font-size: 1rem; }
html.pc-app .gb-zeile { margin-top: 6px; }
html.pc-app .gb-positionen { font-size: 1.1rem; margin: 12px 0; }
html.pc-app .gb-positionen li { padding: 4px 0; }
html.pc-app .gb-knoepfe { gap: 12px; margin-top: 14px; }
html.pc-app .gb-knoepfe button, html.pc-app .gb-knoepfe a.btn-mini-secondary { flex: 1 1 150px; min-height: var(--knopf-pc); padding: 12px 18px; font-size: 1.05rem; border-radius: 12px; }
html.pc-app .gb-knoepfe .gb-erledigt { flex: 2 1 220px; font-size: 1.15rem; }
html.pc-app .gb-zahlung button { min-height: 48px; padding: 10px 16px; font-size: 1rem; border-radius: 12px; }
html.pc-app .gb-zusage-reihe { margin-top: 8px; }
html.pc-app .gb-zusage-reihe button { flex: 1 1 80px; min-width: 80px; }
html.pc-app .gb-filter { gap: 12px; }
html.pc-app .gb-filter select, html.pc-app .gb-filter input { min-height: 48px; font-size: 1rem; }
html.pc-app .gb-waechter, html.pc-app .gb-kueche { font-size: 1rem; padding: 14px 16px; }
html.pc-app .gb-waechter .gb-knoepfe button, html.pc-app .gb-kueche .gb-knoepfe button { flex: 0 1 auto; min-height: 48px; font-size: 1rem; }
html.pc-app .gb-waechter .gb-waechter-wahl select { min-height: 44px; font-size: 1rem; }
html.pc-app .gb-alarm-kasten { max-width: 900px; padding: 28px; }
html.pc-app .gb-alarm-titel { font-size: 2.2rem; }
html.pc-app .gb-alarm-inhalt { font-size: 1.3rem; }
html.pc-app .gb-alarm-positionen { font-size: 1.5rem; }
html.pc-app .gb-alarm-summe { font-size: 1.6rem; }
html.pc-app .gb-alarm-knoepfe { gap: 16px; margin-top: 22px; }
html.pc-app .gb-alarm-zusage { margin-top: 10px; }
html.pc-app .gb-alarm-zusage-titel { font-size: 1.15rem; }
html.pc-app .gb-alarm-knoepfe button { min-height: var(--alarm-knopf-pc); font-size: 1.6rem; }
html.pc-app .gb-mails { font-size: 1rem; padding: 10px 12px; }
/* --- ENDE: PC-App --- */

/* --- ANFANG: Kassa-Dashboard (/mitarbeiter/kassa, 2026-09-16 · Entwurf 2 am 2026-09-18) --- */
/* Die Klasse kassa setzt index.html im <head>, wenn die Adresse auf /kassa
   endet. Alles hier gilt NUR dann: Drawer, Kopfzeile, Einstempel-Karte und
   Reiter weg. Startansicht ist der Kassa-Wächter (html.kwa-an, eigener Block
   darunter); „📊 Zahlen" zeigt DIESES Dashboard.
   Entwurf 2 (Claude Design „Kassa-Dashboard.dc.html", Broadsheet-Satz):
   kompakter Kopf (Linie, Logo, Lokal, Uhr), Statuszeile mit Punkten statt
   fünf Blöcken, vier SPUREN über die ganze Höhe (kein Seiten-Scroll, nur eine
   volle Spur scrollt in sich), rechts HEUTE (Zahlen, Stoßzeiten, Reservierungen,
   Meistbestellt), „Technik & Töne" als Fenster. Farben: Cyan = bedienbar,
   Magenta NUR für „Neu", Grau = abgeschlossen; Balken in Tinte.
   Hell = Entwurf, dunkel (html.kd-dunkel) abgeleitet — folgt dem Wächter-Merker
   (Şevkets Wahl 18.09.). Schrift Source Serif 4, nur an der Kassa geladen.
   Handy/Browser ohne /kassa: keine Klasse, nichts ändert sich. Bausteine mit
   .kassa-nur sind im normalen Portal unsichtbar; #kassaTechnik ist dort
   display: contents (die vier Zeilen liegen wie bisher im Fluss).
   Plan: sessions/SONNET_SESSION_KASSA_DASHBOARD_ENTWURF2.md */
.kassa-nur { display: none; }
#kassaTechnik { display: contents; }
html.kassa .kopf-leiste, html.kassa .drawer, html.kassa .drawer-schatten,
html.kassa #hauptLogo, html.kassa #mitarbeiterName, html.kassa #gpsStatus, html.kassa #statusCard, html.kassa #aktiveAktionen,
html.kassa #mehrGastBestellungen .zurueck-link, html.kassa #mehrGastBestellungen .sub-titel,
html.kassa #gbKopf, html.kassa #gbKassaLink, html.kassa .gb-filter, html.kassa #gbReiter { display: none; }
html.kassa #gbKundenBtn { display: none; }
html.kassa #screenHaupt.box { max-width: none; margin-left: 0; border: none; padding: 0; }
html.kassa #tabMehr { margin-top: 0; }
/* Tokens — hell = Broadsheet (Entwurf), dunkel abgeleitet (Tinte/Papier getauscht,
   Cyan/Magenta eine Stufe heller, damit sie auf Dunkel lesbar bleiben).
   ⚠️ Gemessen (WCAG, 18.09.): Entwurfs-Cyan #0088b0 trug weiße Schrift nur mit 3,65 —
   hier #00739a (4,80); Grau #7d7979 → #676363 (4,89), Warn #b26a00 → #9a5b00 (4,86),
   OK #1f7a3d → #1b6e37 (5,20). Dunkel: kleinster Wert 4,46 (ink3), alles andere > 5,6. */
html.kassa {
  --kd-bg: #f3f2f2; --kd-surface: #eae9e9; --kd-surface2: #ffffff; --kd-tief: #e0dede;
  --kd-text: #201e1d; --kd-ink2: #605d5d; --kd-ink3: #676363; --kd-neutral: #bab6b6; --kd-neutral2: #d7d3d3;
  --kd-line: rgba(32,30,29,.16); --kd-linie: #201e1d;
  --kd-accent: #00739a; --kd-accent-hover: #006786; --kd-accent-druck: #004961; --kd-accent-ink: #f3f2f2; --kd-link: #006786; --kd-accent-flaeche: #e9f8ff;
  --kd-magenta: #d6006c; --kd-magenta-text: #aa0b56; --kd-magenta-flaeche: #fff1f4;
  --kd-ok: #1b6e37; --kd-warn: #9a5b00; --kd-err: #c02614; --kd-warn-flaeche: #fff3e0; --kd-err-flaeche: #fdecea;
  --kd-schatten: 0 1px 2px rgba(45,43,43,.14); --kd-schatten-gross: 0 12px 32px rgba(45,43,43,.22);
}
html.kassa.kd-dunkel {
  --kd-bg: #1a1817; --kd-surface: #262322; --kd-surface2: #2f2b2a; --kd-tief: #211e1d;
  --kd-text: #f3f2f2; --kd-ink2: #b5b0ae; --kd-ink3: #8d8886; --kd-neutral: #5c5856; --kd-neutral2: #3f3b3a;
  --kd-line: rgba(243,242,242,.18); --kd-linie: #f3f2f2;
  --kd-accent: #38a6cf; --kd-accent-hover: #62c5ee; --kd-accent-druck: #1186ac; --kd-accent-ink: #14100f; --kd-link: #62c5ee; --kd-accent-flaeche: #0a303e;
  --kd-magenta: #ff458e; --kd-magenta-text: #ff90b1; --kd-magenta-flaeche: #3a1a28;
  --kd-ok: #4caf6e; --kd-warn: #e9a13b; --kd-err: #ff6b5e; --kd-warn-flaeche: #3a2a10; --kd-err-flaeche: #3d1c19;
  --kd-schatten: 0 1px 2px rgba(0,0,0,.5); --kd-schatten-gross: 0 12px 32px rgba(0,0,0,.6);
}
/* Die vorhandenen Bauteile (volle Karte, Knöpfe, Felder, Fenster) nehmen im
   Dashboard die Dashboard-Farben — über die Design-Satz-Variablen, die sie ohnehin lesen. */
html.kassa:not(.kwa-an) body { background: var(--kd-bg); color: var(--kd-text); }
html.kassa:not(.kwa-an) #mehrGastBestellungen, html.kassa .kassa-liste-box, html.kassa .kassa-statistik-box {
  --t-bg: var(--kd-bg); --t-surface: var(--kd-surface); --t-surface2: var(--kd-surface2);
  --t-ink: var(--kd-text); --t-ink2: var(--kd-ink2); --t-line: var(--kd-line); --t-lw: 1px;
  --t-accent: var(--kd-accent); --t-accent-tief: var(--kd-accent-druck); --t-accent-ink: var(--kd-accent-ink); --t-signal-ink: #ffffff;
  --t-ok: var(--kd-ok); --t-warn: var(--kd-warn); --t-err: var(--kd-err); --t-r: 2px; --t-r2: 2px; --t-shadow: none;
  --warn-text: var(--kd-warn); --ok-text: var(--kd-ok); --fehler-text: var(--kd-err);
  --signal-warn-flaeche: var(--kd-warn-flaeche);
  font-family: "Source Serif 4", Georgia, "Times New Roman", serif; color: var(--kd-text);
}
html.kassa .kassa-liste-box, html.kassa .kassa-statistik-box { background: var(--kd-bg); border-color: var(--kd-line); box-shadow: var(--kd-schatten-gross); }
html.kassa .kassa-statistik-box { max-width: 720px; }
/* Raster: Kopf über alles, Fehler, Titelzeile + Spuren links, HEUTE rechts. */
html.kassa:not(.kwa-an) #mehrGastBestellungen { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 30px; align-content: start; align-items: start; padding: 0 32px 24px; }
html.kassa:not(.kwa-an) #mehrGastBestellungen > * { grid-column: 1; min-width: 0; }
html.kassa:not(.kwa-an) #kassaKopf { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 18px; align-items: center; padding-top: 12px; }
html.kassa:not(.kwa-an) #kassaKopf > #kwaZurueckBtn { grid-column: 1; grid-row: 2; }
html.kassa:not(.kwa-an) #kassaKopf > .kd-linie-dick { grid-column: 1 / -1; grid-row: 1; }
html.kassa:not(.kwa-an) #kassaKopf > .kd-kopfzeile { grid-column: 2; grid-row: 2; }
html.kassa:not(.kwa-an) #kassaKopf > .kd-linie:not(.kd-linie-dick) { grid-column: 1 / -1; grid-row: 3; }
html.kassa:not(.kwa-an) #kassaKopf > .kd-status { grid-column: 1 / -1; grid-row: 4; }
html.kassa:not(.kwa-an) #gbFehler { grid-column: 1 / -1; grid-row: 2; }
html.kassa #gbFehler:empty { display: none; }
html.kassa:not(.kwa-an) #kassaZahlen { grid-row: 3; display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; padding: 14px 0 10px; }
html.kassa:not(.kwa-an) #gbListe { grid-row: 4; display: block; }
html.kassa:not(.kwa-an) #kassaSeite { grid-row: 5; margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 30px; align-items: start; }
/* --- Kopf --- */
.kd-linie { height: 1px; background: var(--kd-linie); }
.kd-linie-dick { height: 5px; }
.kd-kopfzeile { min-height: 62px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 8px 0; }
.kd-logo { width: 36px; height: 36px; border-radius: 2px; display: block; flex: none; }
.kassa-kopf-lokal { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; font-size: 1.75rem; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.kassa-kopf-sub { font-size: 0.875rem; font-weight: 400; color: var(--kd-ink2); letter-spacing: 0; }
.kd-wahl { display: flex; align-items: center; gap: 8px; }
.kd-wahl select, .kd-wahl input[type="date"] { width: auto; min-height: 36px; margin: 0; padding: 4px 10px; font: inherit; font-size: 0.875rem; color: var(--kd-text); background: var(--kd-surface); border: 1px solid var(--kd-line); border-radius: 2px; }
.kd-wahl select[hidden] { display: none; }
.kd-dehn { flex: 1 1 0; }
.kassa-kopf-uhr { display: flex; align-items: baseline; gap: 9px; margin-left: 0; white-space: nowrap; }
.kassa-kopf-uhr #kassaKopfUhr { font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.kd-datum { font-size: 0.875rem; color: var(--kd-ink2); }
.kassa-kopf-knoepfe { display: flex; gap: 8px; }
.kd-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: auto; min-height: 36px; margin: 0; padding: 6px 14px; font: inherit; font-size: 0.8125rem; font-weight: 600; line-height: 1.2; color: var(--kd-text); background: transparent; border: 1px solid transparent; border-radius: 2px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.kd-knopf-rahmen { border-color: var(--kd-line); }
.kd-knopf-rahmen:hover { background: color-mix(in srgb, var(--kd-text) 7%, transparent); }
.kd-knopf-leise { color: var(--kd-link); }
.kd-knopf-leise:hover { background: color-mix(in srgb, var(--kd-accent) 10%, transparent); }
.kd-knopf-voll { background: var(--kd-accent); color: var(--kd-accent-ink); }
.kd-knopf-voll:hover { background: var(--kd-accent-hover); }
/* Statuszeile: Punkte (Zustände) links, Links rechts. Punkte sind Knöpfe → Technik-Fenster. */
.kd-status { min-height: 40px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; padding: 4px 0; font-size: 0.8125rem; color: var(--kd-ink2); }
.kd-status-punkte { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; }
.kd-punkt { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 32px; margin: 0; padding: 4px 6px 4px 0; font: inherit; color: inherit; background: transparent; border: 0; border-radius: 2px; cursor: pointer; text-align: left; }
.kd-punkt strong { color: var(--kd-text); font-weight: 600; }
.kd-punkt:hover { background: color-mix(in srgb, var(--kd-text) 6%, transparent); }
.kd-punkt-kreis { width: 8px; height: 8px; border-radius: 50%; background: var(--kd-neutral); flex: none; }
.kd-punkt-gut .kd-punkt-kreis { background: var(--kd-accent); }
.kd-punkt-warn .kd-punkt-kreis { background: var(--kd-warn); }
.kd-punkt-warn { color: var(--kd-warn); }
.kd-link { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 32px; margin: 0; padding: 4px 6px; font: inherit; font-size: 0.8125rem; color: var(--kd-link); background: transparent; border: 0; border-radius: 2px; cursor: pointer; white-space: nowrap; }
.kd-link:hover { background: color-mix(in srgb, var(--kd-accent) 10%, transparent); }
html.kassa .kassa-kopf-res { display: inline-flex; align-items: center; gap: 6px; width: auto; min-height: 32px; margin: 0; padding: 4px 8px; font: inherit; font-size: 0.8125rem; color: var(--kd-ink2); background: transparent; border: 1px solid transparent; border-radius: 2px; cursor: pointer; text-align: left; }
html.kassa .kassa-kopf-res:hover { background: color-mix(in srgb, var(--kd-text) 6%, transparent); }
html.kassa .kassa-kopf-res.kassa-res-hat-offen { color: var(--kd-warn); border-color: var(--kd-warn); }
/* --- Titelzeile über den Spuren --- */
.kd-titel { margin: 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
.kd-titel-zahl { display: inline-flex; align-items: baseline; gap: 4px; width: auto; min-height: 0; margin: 0; padding: 2px 4px; font: inherit; font-size: 0.875rem; color: var(--kd-ink2); background: transparent; border: 0; border-radius: 2px; }
button.kd-titel-zahl { cursor: pointer; }
button.kd-titel-zahl:hover { background: color-mix(in srgb, var(--kd-text) 6%, transparent); color: var(--kd-text); }
.kd-titel-zahl.kd-warn { color: var(--kd-warn); }
/* --- Spuren --- */
html.kassa .kassa-spalten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
html.kassa .kassa-spalte { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 140px; padding: 0; border-radius: 0; background: transparent; }
.kd-spur-kopf { display: flex; flex-direction: column; gap: 3px; }
.kd-spur-titel { display: flex; align-items: center; gap: 8px; font-size: 1.125rem; font-weight: 600; }
.kd-spur-titel svg { flex: none; color: var(--kd-ink2); }
.kd-spur-zahl { margin-left: auto; font-size: 2.125rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; color: var(--kd-ink3); }
.kd-spur-balken { height: 4px; background: var(--kd-neutral2); }
.kd-spur-sub { font-size: 0.75rem; color: var(--kd-ink2); }
.kd-spur-NEU .kd-spur-titel svg, .kd-spur-NEU .kd-spur-zahl.kassa-hat { color: var(--kd-magenta); }
.kd-spur-NEU .kd-spur-balken { background: var(--kd-magenta); }
.kd-spur-NEU .kd-spur-zahl.kassa-hat { animation: kd-spot 1.6s ease-in-out infinite; }
@keyframes kd-spot { 0%, 100% { opacity: 1; } 50% { opacity: .36; } }
.kd-spur-IN_ARBEIT .kd-spur-titel svg, .kd-spur-IN_ARBEIT .kd-spur-zahl.kassa-hat { color: var(--kd-text); }
.kd-spur-IN_ARBEIT .kd-spur-balken { background: var(--kd-linie); }
.kd-spur-FERTIG .kd-spur-zahl.kassa-hat { color: var(--kd-text); }
.kd-spur-FERTIG .kd-spur-balken { background: var(--kd-ink3); }
.kd-spur-ERLEDIGT .kd-spur-titel span:first-of-type { color: var(--kd-ink2); }
.kd-spur-ERLEDIGT .kd-spur-balken { background: var(--kd-neutral); }
html.kassa .kassa-spalte-inhalt { display: flex; flex-direction: column; gap: 10px; }
html.kassa .kassa-spalte .liste-leer { padding: 24px 0; color: var(--kd-ink3); }
@media (prefers-reduced-motion: reduce) { .kd-spur-NEU .kd-spur-zahl.kassa-hat { animation: none; } }
/* Kompakte Karte (Entwurf): Zeit · Weg · Symbol · ▾ / Name / Artikel / Notiz / Zahlung · Nr · Betrag / Hauptknopf */
html.kassa .gb-karte.kd-karte { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 12px; background: var(--kd-surface); border: 1px solid var(--kd-line); border-radius: 2px; box-shadow: none; }
html.kassa .kd-karte-NEU { border: 2px solid var(--kd-magenta); box-shadow: var(--kd-schatten); }
html.kassa .kd-karte.gb-test { border-style: dashed; }
.kd-karte-kopf { display: flex; align-items: baseline; gap: 7px; }
.kd-zeit { font-size: 1.25rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.kd-typ { font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--kd-ink2); }
.kd-karte-NEU .kd-typ { color: var(--kd-magenta-text); }
.kd-seit { display: block; font-size: 0.75rem; font-style: italic; color: var(--kd-ink2); }
.kd-symbol { margin-left: auto; color: var(--kd-ink2); display: inline-flex; align-self: center; }
.kd-pfeil { display: inline-flex; align-items: center; justify-content: center; width: auto; min-width: 36px; min-height: 32px; margin: 0; padding: 2px 8px; font: inherit; font-size: 1rem; color: var(--kd-link); background: transparent; border: 1px solid transparent; border-radius: 2px; cursor: pointer; align-self: center; }
.kd-pfeil:hover { background: color-mix(in srgb, var(--kd-accent) 10%, transparent); }
.kd-pfeil-zu { align-self: flex-start; font-size: 0.8125rem; margin-bottom: 4px; }
.kd-name { font-size: 1.0625rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.kd-adresse, .kd-artikel { font-size: 0.8125rem; color: var(--kd-ink2); line-height: 1.4; overflow-wrap: anywhere; }
.kd-notiz { font-size: 0.8125rem; font-style: italic; overflow-wrap: anywhere; }
.kd-marken { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: 0.75rem; }
.kd-marke { color: var(--kd-ink2); }
.kd-marke-test { color: var(--kd-warn); font-weight: 600; }
.kd-marke-kocht { color: var(--kd-ok); font-weight: 600; }
.kd-fuss { display: flex; align-items: baseline; gap: 8px; }
.kd-zahlung { font-size: 0.75rem; color: var(--kd-ink2); }
.kd-nr { font-size: 0.75rem; color: var(--kd-ink3); }
.kd-summe { margin-left: auto; font-size: 1.1875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.kd-haupt { width: 100%; min-height: 42px; margin: 4px 0 0; padding: 8px 12px; font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--kd-text); background: transparent; border: 1px solid var(--kd-line); border-radius: 2px; cursor: pointer; }
.kd-haupt:hover { background: color-mix(in srgb, var(--kd-text) 7%, transparent); }
.kd-karte-NEU .kd-haupt { background: var(--kd-accent); color: var(--kd-accent-ink); border-color: transparent; }
.kd-karte-NEU .kd-haupt:hover { background: var(--kd-accent-hover); }
.kd-haupt:disabled { opacity: .45; cursor: not-allowed; }
/* Aufgeklappt: die volle Karte, Rahmen mit ▴ */
.kd-auf { display: flex; flex-direction: column; }
html.kassa .kassa-spalte .kd-auf > .gb-karte, html.kassa .kassa-spalte > .kassa-spalte-inhalt > .gb-karte:not(.kd-karte) { margin: 0; background: var(--kd-surface); border: 1px solid var(--kd-line); }
html.kassa .kassa-spalte .gb-kopfzeile { gap: 10px; }
html.kassa .kassa-spalte .gb-nr { font-size: 1.4rem; min-width: 36px; }
html.kassa .kassa-spalte .gb-name { font-size: 1.05rem; }
html.kassa .kassa-spalte .gb-positionen { font-size: 1rem; margin: 8px 0; }
html.kassa .kassa-spalte .gb-knoepfe { gap: 8px; margin-top: 10px; }
html.kassa .kassa-spalte .gb-knoepfe button, html.kassa .kassa-spalte .gb-knoepfe a.btn-mini-secondary { flex: 1 1 110px; min-height: var(--knopf-kassa); padding: 8px 10px; font-size: 0.95rem; }
html.kassa .kassa-spalte .gb-knoepfe .gb-erledigt { flex: 2 1 160px; font-size: 1.05rem; }
html.kassa .kassa-spalte .gb-knoepfe button, html.kassa .kassa-spalte .gb-zahlung button { white-space: normal; line-height: 1.2; }
html.kassa .kassa-spalte .gb-zusage-reihe button { flex: 1 1 46px; min-width: 46px; }
html.kassa .kassa-spalte .gb-karte.gb-kompakt .gb-nr { font-size: 1.35rem; min-width: 40px; }
/* Erledigt: Zeilen Zeit · Name · Betrag */
.kd-zeilen { display: flex; flex-direction: column; }
.kd-zeile { display: flex; align-items: baseline; gap: 9px; width: 100%; min-height: 40px; margin: 0; padding: 9px 4px; font: inherit; font-size: 0.875rem; color: var(--kd-text); background: transparent; border: 0; border-bottom: 1px solid var(--kd-line); border-radius: 0; cursor: pointer; text-align: left; }
.kd-zeile:hover { background: color-mix(in srgb, var(--kd-text) 6%, transparent); }
.kd-zeile-zeit { width: 44px; flex: none; font-variant-numeric: tabular-nums; color: var(--kd-ink2); }
.kd-zeile-name { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd-zeile-summe { font-variant-numeric: tabular-nums; }
.kd-zeile-warn { flex: none; }
.kd-zeile-storno { color: var(--kd-ink3); }
.kd-zeile-storno .kd-zeile-summe { text-decoration: line-through; }
.kassa-spalte-inhalt > .kd-link { align-self: flex-start; padding-top: 6px; }
/* --- Seitenspalte HEUTE --- */
html.kassa .kassa-block { margin: 0; padding: 0; background: transparent; border: 0; box-shadow: none; }
html.kassa .kassa-block-titel { display: flex; align-items: baseline; gap: 9px; margin: 0 0 10px; }
html.kassa .kassa-block-titel h2, html.kassa .kassa-block-titel > span:first-child { margin: 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.1; }
html.kassa .kassa-block-zahl { font-size: 0.75rem; font-weight: 400; color: var(--kd-ink2); white-space: nowrap; }
.kd-zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 15px 20px; }
.kd-zahl { display: flex; flex-direction: column; gap: 4px; width: auto; min-width: 0; min-height: 0; margin: 0; padding: 4px 6px; font: inherit; color: var(--kd-text); background: transparent; border: 0; border-radius: 2px; cursor: pointer; text-align: left; }
.kd-zahl:hover { background: color-mix(in srgb, var(--kd-text) 6%, transparent); }
.kd-zahl-wert { font-size: 1.5rem; font-weight: 600; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kd-zahl-gross .kd-zahl-wert { font-size: clamp(1.5rem, 1.8vw, 2.125rem); line-height: 1; }
.kd-zahl-wert small { font-size: 0.875rem; font-weight: 400; color: var(--kd-ink2); }
.kd-zahl-label { font-size: 0.8125rem; color: var(--kd-ink2); }
.kd-zahl-label:empty { display: none; }
.kd-zahl.kd-warn .kd-zahl-label { color: var(--kd-warn); font-weight: 600; }
.kd-zeile-zahl { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 36px; margin: 8px 0 0; padding: 6px; font: inherit; font-size: 0.875rem; color: var(--kd-ink2); background: transparent; border: 0; border-radius: 2px; cursor: pointer; text-align: left; }
.kd-zeile-zahl:hover { background: color-mix(in srgb, var(--kd-text) 6%, transparent); }
.kd-zeile-zahl strong { margin-left: auto; font-size: 1.125rem; font-weight: 600; color: var(--kd-text); font-variant-numeric: tabular-nums; }
.kd-zeile-zahl.kd-warn strong { color: var(--kd-warn); }
.kd-zeile-zahl.kd-err strong { color: var(--kd-err); }
.kd-block-abstand { height: 22px; }
.kd-balken-reihe { display: flex; align-items: flex-end; gap: 6px; height: 104px; }
.kd-balken { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; }
.kd-balken-stab { width: 100%; min-height: 2px; background: var(--kd-neutral); }
.kd-balken-spitze .kd-balken-stab { background: var(--kd-linie); }
.kd-balken-label { font-size: 0.6875rem; color: var(--kd-ink2); }
.kd-balken-spitze .kd-balken-label { color: var(--kd-text); font-weight: 600; }
html.kassa .kassa-stat-hinweis { margin-top: 8px; font-size: 0.8125rem; color: var(--kd-ink2); }
.kd-top { display: flex; flex-direction: column; }
.kd-top-zeile { display: flex; align-items: baseline; gap: 11px; padding: 6px 0; font-size: 0.875rem; border-bottom: 1px solid var(--kd-line); }
.kd-top-zeile:last-child { border-bottom: 0; }
.kd-top-rang { width: 16px; color: var(--kd-ink3); }
.kd-top-name { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.kd-top-zahl { color: var(--kd-ink2); font-variant-numeric: tabular-nums; }
/* Reservierungen (bestehendes Markup, Entwurf-Zeilen) */
html.kassa .kassa-res { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 2px 11px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--kd-line); font-size: 0.875rem; border-radius: 0; }
html.kassa .kassa-res:last-child { border-bottom: 0; }
html.kassa .kassa-res.kassa-res-offen { background: var(--kd-warn-flaeche); padding-left: 6px; padding-right: 6px; }
html.kassa .kassa-res-zeit { font-size: 0.9375rem; font-weight: 600; font-variant-numeric: tabular-nums; }
html.kassa .kassa-res-name { font-weight: 400; overflow-wrap: anywhere; }
html.kassa .kassa-res-pers { grid-column: 3; grid-row: 1; white-space: nowrap; color: var(--kd-ink2); }
html.kassa .kassa-res-status { grid-column: 2; grid-row: 2; font-size: 0.75rem; font-weight: 400; white-space: nowrap; }
html.kassa .kassa-res-notiz { grid-column: 2 / -1; font-size: 0.8125rem; font-style: italic; color: var(--kd-ink2); overflow-wrap: anywhere; }
/* Monatszahlen im Fenster (bestehende Statistik-Bausteine) */
.kassa-stat-teil { margin-top: 14px; }
.kassa-stat-teil h4 { margin: 0 0 6px; font-size: 0.9rem; font-weight: 800; }
.kassa-stat-teil h4 small, .kassa-tabelle th small { font-weight: 600; color: var(--t-ink2); }
.kassa-stat-hinweis { margin-top: 6px; font-size: 0.78rem; color: var(--t-ink2); }
.kassa-stat-hinweis.kassa-stat-warn { color: var(--fehler-text); font-weight: 600; }
.kassa-block-zahl .btn-mini-secondary { min-height: 30px; padding: 3px 8px; font-size: 0.8rem; vertical-align: middle; }
.kassa-balken-reihe { display: flex; align-items: flex-end; gap: 6px; height: 110px; }
.kassa-balken { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 0.72rem; }
.kassa-balken-wert { margin-bottom: 2px; font-weight: 700; }
.kassa-balken-stab { width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--t-accent); }
.kassa-balken.kassa-heute .kassa-balken-stab { background: var(--t-ok); }
.kassa-balken-label { margin-top: 3px; color: var(--t-ink2); white-space: nowrap; }
.kassa-stunden { height: 80px; gap: 3px; }
.kassa-tabelle { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.kassa-tabelle th, .kassa-tabelle td { padding: 4px 6px; text-align: right; border-bottom: 1px solid var(--t-line); white-space: nowrap; }
.kassa-tabelle th:first-child, .kassa-tabelle td:first-child { text-align: left; white-space: normal; }
.kassa-tabelle .kassa-plus { color: var(--ok-text); font-weight: 700; }
.kassa-tabelle .kassa-minus { color: var(--fehler-text); font-weight: 700; }
.kassa-top-zeile { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--t-line); font-size: 0.85rem; }
.kassa-top-rang { min-width: 22px; color: var(--t-ink2); }
.kassa-top-name { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.kassa-top-zahl { white-space: nowrap; color: var(--t-ink2); }
/* Kachel → Liste (Fenster, bestehend) */
.kassa-liste-box { max-width: 620px; }
.kassa-liste-zeile { display: flex; align-items: center; gap: 10px; width: 100%; min-height: var(--ziel); padding: 8px 4px; border: 0; border-bottom: 1px solid var(--t-line); background: transparent; color: var(--t-ink); font: inherit; text-align: left; cursor: pointer; }
.kassa-liste-zeile:hover, .kassa-liste-zeile:focus-visible { background: var(--t-surface2); }
.kassa-liste-zeile .gb-nr { font-size: 1.2rem; min-width: 40px; }
.kassa-liste-name { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.kassa-liste-name .eintrag-detail { display: block; font-weight: 400; }
.kassa-liste-summe { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Kundenliste (K8, 2026-09-16): Suchfeld nimmt die Breite, Sortierung und Häkchen daneben. */
#mehrKunden .gb-filter { flex-wrap: wrap; align-items: center; }
#mehrKunden .gb-filter input[type="search"] { flex: 1 1 220px; min-width: 0; }
/* --- Technik & Töne: die vier bestehenden Zeilen als Fenster (nur an der Kassa) --- */
html.kassa .kd-schleier { display: none; position: fixed; inset: 0; z-index: 90; background: color-mix(in srgb, var(--kd-text) 34%, transparent); }
html.kassa #kassaTechnik { display: none; position: fixed; z-index: 91; top: 124px; right: 32px; left: auto; width: min(1090px, calc(100vw - 64px)); max-height: calc(100vh - 148px); overflow-y: auto; padding: 30px; background: var(--kd-bg); border: 1px solid var(--kd-line); border-radius: 2px; box-shadow: var(--kd-schatten-gross); flex-wrap: wrap; align-items: flex-start; gap: 20px 30px; }
html.kassa.kd-technik-offen .kd-schleier, html.kassa.kd-technik-offen #kassaTechnik { display: flex; }
html.kassa.kd-technik-offen.kwa-an .kd-schleier, html.kassa.kd-technik-offen.kwa-an #kassaTechnik { display: none; }
html.kassa .kd-technik-kopf, html.kassa .kd-technik-fuss { flex: 1 1 100%; display: flex; align-items: baseline; gap: 12px; }
.kd-technik-kopf { padding-bottom: 14px; border-bottom: 1px solid var(--kd-linie); }
.kd-technik-kopf h2 { margin: 0; font-size: 1.5rem; font-weight: 600; }
.kd-technik-sub { font-size: 0.875rem; color: var(--kd-ink2); }
.kd-technik-fuss { padding-top: 14px; border-top: 1px solid var(--kd-line); font-size: 0.8125rem; color: var(--kd-ink2); }
html.kassa #kassaTechnik .gb-waechter, html.kassa #kassaTechnik .gb-kueche { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin: 0; padding: 0; font-size: 0.875rem; background: transparent; border: 0; box-shadow: none; }
html.kassa #kassaTechnik .gb-waechter[hidden] { display: none; }
html.kassa #kassaTechnik .gb-waechter > div:first-child, html.kassa #kassaTechnik .gb-kueche > div:first-child { flex: none; font-weight: 600; font-size: 0.9375rem; line-height: 1.4; }
html.kassa #kassaTechnik .gb-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
html.kassa #kassaTechnik .gb-knoepfe button { flex: 1 1 120px; min-height: 40px; font-size: 0.875rem; }
html.kassa #kassaTechnik .gb-kueche .gb-knoepfe button { flex: 1 1 96px; }
html.kassa #kassaTechnik .gb-waechter .gb-waechter-wahl, html.kassa #kassaTechnik .gb-waechter .gb-ton-wahl { display: flex; flex: none; flex-direction: column; align-items: stretch; gap: 8px; margin: 0; }
html.kassa #kassaTechnik .gb-ton-wahl label, html.kassa #kassaTechnik .gb-waechter-wahl { display: flex; flex-direction: column; align-items: stretch; gap: 5px; font-size: 0.75rem; font-weight: 400; color: var(--kd-ink2); }
html.kassa #kassaTechnik .gb-waechter .gb-waechter-wahl select, html.kassa #kassaTechnik .gb-waechter .gb-ton-wahl select { width: 100%; min-width: 0; min-height: 42px; margin: 0; padding: 6px 32px 6px 10px; font: inherit; font-size: 0.875rem; font-weight: 400; color: var(--kd-text); background: var(--kd-surface); border: 1px solid var(--kd-line); border-radius: 2px; }
html.kassa #kassaTechnik .gb-waechter .gb-ton-wahl input[type="range"] { width: 100%; min-height: 42px; margin: 0; padding: 0; background: transparent; border: 0; accent-color: var(--kd-accent); }
html.kassa #kassaTechnik .gb-ton-wahl .gb-ton-wert { min-width: 0; color: var(--kd-text); font-size: 0.875rem; }
html.kassa #gbWaechterMeldung:empty, html.kassa #gbPcDruckMeldung:empty, html.kassa #gbKuecheMeldung:empty { display: none; }
/* Breit (ab 1200 px): fester Bildschirm — Kopf, Titelzeile, Spuren bis unten,
   Seitenspalte rechts; kein Seiten-Scroll, nur eine volle Spur scrollt in sich. */
@media (min-width: 1200px) {
  html.kassa:not(.kwa-an), html.kassa:not(.kwa-an) body { height: 100%; overflow: hidden; }
  /* overflow: CLIP statt hidden (Şevket 06.10., Screenshot): hidden lässt Skripte weiter scrollen — ein scrollIntoView (📅-Knopf der Statuszeile,
     Sprung zur Karte) schob den 100vh-Kasten um ~60 px nach oben, die Kopfzeile mit Datum und Knöpfen verschwand, „Abmelden“ rutschte ins Bild.
     clip kennt keinen Scroll-Versatz. Der Portal-Link „Abmelden“ unter dem Kasten ist an der Kassa überflüssig (der Kopf hat seinen eigenen
     Knopf, der ihn per click() auslöst) und machte den Kasten erst scrollbar. */
  html.kassa:not(.kwa-an) #screenHaupt.box { height: 100vh; overflow: clip; }
  html.kassa:not(.kwa-an) #abmeldenLink { display: none; }
  html.kassa:not(.kwa-an) #mehrGastBestellungen { grid-template-columns: minmax(0, 1fr) 340px; grid-template-rows: auto auto auto minmax(0, 1fr); height: 100vh; padding-bottom: 26px; }
  html.kassa:not(.kwa-an) #kassaSeite { grid-column: 2; grid-row: 3 / span 2; align-self: stretch; margin-top: 14px; display: flex; flex-direction: column; gap: 22px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
  html.kassa:not(.kwa-an) #gbListe { align-self: stretch; min-height: 0; overflow: hidden; }
  html.kassa .kassa-spalten { height: 100%; }
  html.kassa .kassa-spalte { min-height: 0; }
  html.kassa .kassa-spalte-inhalt { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; padding-bottom: 8px; }
}
@media (min-width: 1500px) {
  html.kassa:not(.kwa-an) #mehrGastBestellungen { grid-template-columns: minmax(0, 1fr) 412px; }
}
/* Tablet quer / kleiner PC (unter 1200 px): normale Seite, zwei Spuren, HEUTE darunter */
@media (max-width: 1499px) {
  .kassa-kopf-lokal { font-size: 1.5rem; }
  .kassa-kopf-sub { display: none; }
}
@media (max-width: 1199px) {
  html.kassa .kassa-spalten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html.kassa:not(.kwa-an) #mehrGastBestellungen { padding: 0 16px 24px; }
  html.kassa #kassaTechnik { top: 16px; right: 16px; width: calc(100vw - 32px); max-height: calc(100vh - 32px); }
}
/* Tablet hoch / Handy: eine Spur */
@media (max-width: 719px) {
  html.kassa .kassa-spalten { grid-template-columns: minmax(0, 1fr); }
  .kassa-kopf-lokal { font-size: 1.35rem; }
}
/* --- ENDE: Kassa-Dashboard --- */
/* ═══ ANFANG: Kassa-Wächter (Bestell-Screens · Entwurf 1, 2026-09-18) ═══
   Fester Bildschirm in #gbListe unter /mitarbeiter/kassa, solange <html> die
   Klasse kwa-an trägt („📊 Zahlen" nimmt sie weg → das Dashboard darunter).
   Feste dunkle Palette des Entwurfs (--pos-*); Signalfarben fix (Neu Orange,
   Küche Gelb, Fertig Grün — sie bedeuten etwas und kippen nicht je Mandant);
   der Akzent kommt aus dem Design-Satz (--t-accent). Schrift Barlow /
   Barlow Condensed, nur hier geladen (Kopf-Skript der index.html).
   Maße aus dem Entwurf: Zeile 104 px, Hauptknopf 212 × 76, Reiter 116, Fuß 120.
   Plan: sessions/SONNET_SESSION_KASSA_WAECHTER_ENTWURF1.md */
html.kassa, .kwa {
  --pos-bg: #15100D; --pos-karte: #241C17; --pos-hoch: #2E241D; --pos-kopf: #1E1510; --pos-tief: #1B1410;
  --pos-rand: rgba(255,255,255,.16); --pos-text: #FBF5EE; --pos-leise: rgba(251,245,238,.74);
  --pos-neu: #FF6A4D; --pos-neu-ink: #2B0F06; --pos-neu-tief: #C43F25; --pos-neu-karte: #2E211B;
  --pos-arbeit: #F5C069; --pos-arbeit-ink: #2B1A06; --pos-fertig: #57D48B; --pos-fertig-ink: #062B14;
  --pos-gold: #D9A15C; --pos-err: #FF6B5E;
  /* Signal als SCHRIFT (auf dunkler Fläche rein; im hellen Eingang mit Tinte gemischt, siehe .kwa-hell) */
  --pos-neu-text: var(--pos-neu); --pos-arbeit-text: var(--pos-arbeit); --pos-fertig-text: var(--pos-fertig); --pos-err-text: var(--pos-err); --pos-gold-text: var(--pos-gold);
  --pos-anmerkung-bg: rgba(245,192,105,.16); --pos-anmerkung-text: #FFE0AF;
  --pos-zahl-bg: rgba(251,245,238,.08); --pos-zahl-hat-bg: rgba(251,245,238,.14); --pos-marke-bg: rgba(251,245,238,.1); --pos-zuletzt-bg: rgba(251,245,238,.05);
  --pos-linie-fein: rgba(255,255,255,.08); --pos-fuss-bg: rgba(0,0,0,.18); --pos-meldung-bg: rgba(0,0,0,.35);
  --kwa-schrift: "Barlow", var(--schrift); --kwa-schmal: "Barlow Condensed", "Barlow", var(--schrift);
  --kwa-zeile: 104px; --kwa-luecke: 12px;
}
html.kassa.kwa-an, html.kassa.kwa-an body { background: var(--pos-bg); overflow: hidden; }
/* Das Dashboard bleibt im DOM (Listener, Knöpfe mit Nutzergeste), ist aber unsichtbar */
html.kassa.kwa-an #kassaKopf, html.kassa.kwa-an .gb-filter, html.kassa.kwa-an #gbWaechterZeile, html.kassa.kwa-an #gbPcDruckZeile,
html.kassa.kwa-an #gbPcUpdateZeile, html.kassa.kwa-an #gbKuecheZeile, html.kassa.kwa-an #kassaZahlen, html.kassa.kwa-an #kassaSeite { display: none; }
/* Listener-Fehler (gbFehler) schweben über dem Wächter, solange sie Text haben */
html.kassa.kwa-an #gbFehler:not(:empty) { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 60; width: min(900px, 92vw); }
html.kassa.kwa-an #gbListe > .skelett, html.kassa.kwa-an #gbListe > .liste-leer { position: fixed; inset: 0; z-index: 30; margin: 0; padding: 140px 24px; background: var(--pos-bg); color: var(--pos-leise); }
html.kassa #kwaZurueckBtn { width: auto; min-height: 44px; font-weight: 800; }

.kwa { position: fixed; inset: 0; z-index: 30; display: flex; flex-direction: column; background: var(--pos-bg); color: var(--pos-text); font-family: var(--kwa-schrift); -webkit-font-smoothing: antialiased; }
.kwa :where(button, a) { font-family: inherit; color: inherit; }
/* Portal-Grundregeln button { width:100%; min-height:56px; padding … } neutralisieren — Gewicht (0,1,0) wie EINE Klasse:
   schlägt das nackte button (0,0,1), verliert gegen jede .kwa-Klasse, die weiter unten steht */
.kwa :where(button) { width: auto; margin: 0; min-height: 0; padding: 0; border-radius: 0; transition: none; text-align: center; }
/* Gesperrt (während der Server antwortet): die Portal-Regel button:disabled setzt helle Flächen mit !important — hier dunkel bleiben */
.kwa button:disabled { background: var(--pos-hoch) !important; color: var(--pos-leise) !important; border-color: var(--pos-rand) !important; opacity: .7; box-shadow: none; }
.kwa .kwa-koerper:disabled { background: transparent !important; color: var(--pos-text) !important; opacity: .55; }
.kwa .fehler, .kwa .erfolg { margin: 6px 12px; padding: 8px 12px; font-size: 15px; background: var(--pos-meldung-bg); }
.kwa .fehler { color: var(--pos-err-text); border-color: var(--pos-err-text); }
.kwa .erfolg { color: var(--pos-fertig-text); border-color: var(--pos-fertig-text); }

/* --- Kopf --- */
.kwa-kopf { flex: none; height: 104px; display: flex; align-items: center; gap: 24px; padding: 0 28px; border-bottom: 1px solid var(--pos-rand); background: var(--pos-kopf); }
.kwa-kopf-warm { animation: kwaKopfTint 2.4s ease-in-out infinite; }
@keyframes kwaKopfTint { 0%, 100% { background: var(--pos-kopf); } 50% { background: #2A1712; } }
.kwa-kopf-titel { display: flex; flex-direction: column; min-width: 0; flex: none; max-width: 260px; }
.kwa-kopf-wort { font-family: var(--kwa-schmal); font-weight: 700; font-size: 30px; letter-spacing: .04em; line-height: 1; }
.kwa-kopf-sub { font-size: 15px; color: var(--pos-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwa-kopf-mitte { flex: 1 1 0; display: flex; justify-content: center; min-width: 0; }
/* Tages-Umschalter HEUTE | MORGEN | 📅 (21.09., Şevkets Befund „am Wächter erscheint nichts für morgen"):
   dieselbe Machart wie LISTE | STOSSZEIT; 📅 ist ein echtes Datumsfeld, unsichtbar über dem Knopf. */
.kwa-tage-zeile { flex: none; display: flex; align-items: center; gap: 18px; min-height: 60px; padding: 6px 28px; background: var(--pos-kopf); border-bottom: 1px solid var(--pos-rand); }
.kwa-tage { flex: none; }
.kwa-tage button, .kwa-tage-wahl { min-height: 48px; }
.kwa-tage-hinweis { flex: 1 1 0; min-width: 0; font-size: 16px; font-weight: 600; color: var(--pos-gold-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwa-tage-wahl { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 14px; background: var(--pos-karte); font-family: var(--kwa-schmal); font-weight: 700; font-size: 18px; letter-spacing: .06em; color: var(--pos-leise); cursor: pointer; }
.kwa-tage-wahl[aria-pressed="true"] { background: var(--pos-text); color: var(--pos-bg); }
.kwa-hell .kwa-tage-wahl[aria-pressed="true"] { background: var(--t-ink); color: var(--t-surface); }
.kwa-hell .kwa-tage-wahl[aria-pressed="false"] { background: var(--pos-karte); }
.kwa-tage-wahl input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; padding: 0; border: 0; min-height: 0; }
.kwa-pille { display: inline-flex; align-items: center; gap: 16px; padding: 12px 28px 12px 20px; border-radius: 999px; max-width: 100%; }
.kwa-pille-neu { background: var(--pos-neu); color: var(--pos-neu-ink); animation: kwaPuls 1.8s ease-in-out infinite; }
.kwa-pille-ruhe { background: var(--pos-karte); color: var(--pos-leise); border: 1px solid var(--pos-rand); padding: 14px 24px; }
@keyframes kwaPuls { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,106,77,.55); } 50% { transform: scale(1.045); box-shadow: 0 0 0 18px rgba(255,106,77,0); } }
.kwa-pille-zahl { font-family: var(--kwa-schmal); font-weight: 700; font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; }
.kwa-pille-wort { font-family: var(--kwa-schmal); font-weight: 700; font-size: 30px; letter-spacing: .1em; }
.kwa-pille-ruhe .kwa-pille-wort { font-size: 22px; }
.kwa-pille-strich { width: 1px; height: 38px; background: rgba(43,15,6,.3); }
.kwa-pille-seit { font-size: 17px; font-weight: 600; max-width: 190px; line-height: 1.15; }
.kwa-kopf-rechts { display: flex; align-items: center; gap: 12px; flex: none; }
.kwa-res { max-width: 230px; min-height: 60px; padding: 6px 14px; border-radius: 14px; border: 1px solid var(--pos-rand); background: var(--pos-karte); font-size: 14px; font-weight: 600; line-height: 1.25; text-align: left; cursor: pointer; display: flex; align-items: center; }
.kwa-res-text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kwa-uhr { text-align: right; flex: none; }
.kwa-uhr-zeit { font-family: var(--kwa-schmal); font-weight: 700; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.kwa-uhr-tag { font-size: 14px; color: var(--pos-leise); white-space: nowrap; }
.kwa-schalter { display: inline-flex; flex: none; border: 1px solid var(--pos-rand); border-radius: 14px; overflow: hidden; }
.kwa-schalter button { min-height: 60px; padding: 0 14px; background: var(--pos-karte); font-family: var(--kwa-schmal); font-weight: 700; font-size: 18px; letter-spacing: .06em; color: var(--pos-leise); cursor: pointer; }
.kwa-schalter button[aria-pressed="true"] { background: var(--pos-text); color: var(--pos-bg); }
.kwa-kopf-knopf { display: inline-flex; align-items: center; gap: 8px; min-height: 60px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--pos-rand); background: var(--pos-karte); font-family: var(--kwa-schmal); font-weight: 700; font-size: 20px; letter-spacing: .06em; cursor: pointer; white-space: nowrap; }
.kwa-waechter-an { font-size: 26px; padding: 0 14px; }
.kwa-waechter-aus { background: var(--pos-neu); color: var(--pos-neu-ink); border-color: transparent; animation: kwaPuls 1.8s ease-in-out infinite; }

/* --- Reiter --- */
.kwa-reiter { flex: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--pos-tief); }
.kwa-reiter-knopf { display: flex; align-items: center; gap: 18px; height: 116px; padding: 0 26px; border-bottom: 7px solid transparent; background: transparent; color: var(--pos-leise); text-align: left; cursor: pointer; min-width: 0; }
.kwa-reiter-knopf[aria-selected="true"] { background: var(--pos-hoch); color: var(--pos-text); }
.kwa-reiter-NEU[aria-selected="true"] { border-bottom-color: var(--pos-neu); }
.kwa-reiter-IN_ARBEIT[aria-selected="true"] { border-bottom-color: var(--pos-arbeit); }
.kwa-reiter-FERTIG[aria-selected="true"] { border-bottom-color: var(--pos-fertig); }
.kwa-reiter-ERLEDIGT[aria-selected="true"] { border-bottom-color: var(--pos-leise); }
.kwa-reiter-symbol { flex: none; display: flex; }
.kwa-reiter-NEU .kwa-reiter-symbol { color: var(--pos-neu-text); }
.kwa-reiter-IN_ARBEIT .kwa-reiter-symbol { color: var(--pos-arbeit-text); }
.kwa-reiter-FERTIG .kwa-reiter-symbol { color: var(--pos-fertig-text); }
.kwa-reiter-ERLEDIGT .kwa-reiter-symbol { color: var(--pos-leise); }
.kwa-reiter-text { display: flex; flex-direction: column; min-width: 0; }
.kwa-reiter-wort { font-family: var(--kwa-schmal); font-weight: 700; font-size: 28px; letter-spacing: .06em; line-height: 1.05; white-space: nowrap; }
.kwa-reiter-sub { font-size: 15px; color: var(--pos-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwa-reiter-zahl { margin-left: auto; flex: none; min-width: 64px; height: 64px; padding: 0 14px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--pos-zahl-bg); color: var(--pos-leise); font-family: var(--kwa-schmal); font-weight: 700; font-size: 38px; font-variant-numeric: tabular-nums; }
.kwa-reiter-NEU .kwa-reiter-zahl.kwa-hat { background: var(--pos-neu); color: var(--pos-neu-ink); }
.kwa-reiter-IN_ARBEIT .kwa-reiter-zahl.kwa-hat { background: rgba(245,192,105,.18); color: var(--pos-arbeit-text); }
.kwa-reiter-FERTIG .kwa-reiter-zahl.kwa-hat { background: rgba(87,212,139,.18); color: var(--pos-fertig-text); }
.kwa-reiter-ERLEDIGT .kwa-reiter-zahl.kwa-hat { background: var(--pos-zahl-hat-bg); color: var(--pos-text); }

/* --- Reservierungen (fünfter Reiter, Şevket 18.09.) --- */
/* Fuenfte Spalte breiter: „RESERVIERUNGEN“ ist das laengste Wort (gemessen 1280: 157 px bei 22 px) */
.kwa-reiter-5 { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); }
.kwa-reiter-RES[aria-selected="true"] { border-bottom-color: var(--pos-gold); }
.kwa-reiter-RES .kwa-reiter-symbol { color: var(--pos-gold-text); }
.kwa-reiter-RES .kwa-reiter-zahl.kwa-hat { background: rgba(217,161,92,.18); color: var(--pos-gold-text); }
.kwa-reiter-RES .kwa-reiter-zahl.kwa-res-offen { background: var(--pos-arbeit); color: var(--pos-arbeit-ink); }
.kwa-res[aria-pressed="true"] { border-color: var(--pos-gold); box-shadow: inset 0 0 0 1px var(--pos-gold); }
.kwa-res-leiste { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 14px 20px 6px; }
.kwa-res-tage button { min-height: 60px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; }
.kwa-res-tage-zahl { min-width: 30px; padding: 2px 8px; border-radius: 999px; background: var(--pos-zahl-bg); color: inherit; font-family: var(--kwa-schrift); font-size: 15px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.kwa-res-tage button[aria-pressed="true"] .kwa-res-tage-zahl { background: rgba(0,0,0,.14); }
.kwa-res-summe { flex: 1 1 200px; min-width: 0; font-size: 20px; font-weight: 600; color: var(--pos-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwa-res-neu { background: var(--pos-gold); color: var(--pos-neu-ink); border-color: transparent; box-shadow: 0 6px 0 -2px #A8763F; }
.kwa-res-neu:active { transform: translateY(2px); box-shadow: none; }
.kwa-res-leiste .kwa-meldung { flex: 1 1 100%; }
.kwa-res-zeile .kwa-res-uhr { min-width: 110px; }
.kwa-res-offen > .kwa-balken { background: var(--pos-arbeit); }
.kwa-res-fix > .kwa-balken { background: var(--pos-fertig); }
.kwa-res-da > .kwa-balken { background: var(--pos-leise); }
.kwa-zeile.kwa-res-offen { border-color: var(--pos-arbeit); }
.kwa-res-rechts { width: 170px; }
.kwa-res-status { font-family: var(--kwa-schmal); font-weight: 700; font-size: 22px; letter-spacing: .06em; line-height: 1.1; }
.kwa-res-offen .kwa-res-status { color: var(--pos-arbeit-text); }
.kwa-res-fix .kwa-res-status { color: var(--pos-fertig-text); }
.kwa-res-da .kwa-res-status { color: var(--pos-leise); }
/* Hauptknopf: Bestätigen gelb (wie „wartet"), Angekommen grün */
.kwa-res-offen .kwa-knopf { background: var(--pos-arbeit); color: var(--pos-arbeit-ink); box-shadow: 0 6px 0 -2px #B5883E; }
.kwa-knopf-da, .kwa-res-fix .kwa-knopf-da { background: var(--pos-fertig); color: var(--pos-fertig-ink); box-shadow: 0 6px 0 -2px #2E9A5E; }
.kwa-res-blatt { background: var(--pos-karte); }
.kwa-res-blatt.kwa-res-offen { border-color: var(--pos-arbeit); }
.kwa-res-blatt.kwa-res-fix { border-color: var(--pos-fertig); }
.kwa-res-blatt .kwa-blatt-symbol { background: var(--pos-gold); color: var(--pos-neu-ink); }
.kwa-res-blatt .kwa-blatt-zeit-sub { color: var(--pos-leise); }
.kwa-res-blatt.kwa-res-offen .kwa-blatt-zeit-sub { color: var(--pos-arbeit-text); }
.kwa-res-blatt.kwa-res-fix .kwa-blatt-zeit-sub { color: var(--pos-fertig-text); }

/* --- Die eine Liste --- */
.kwa-liste { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px; display: flex; flex-direction: column; gap: var(--kwa-luecke); scroll-snap-type: y proximity; }
.kwa-leer { padding: 48px 20px; text-align: center; color: var(--pos-leise); font-size: 22px; }
.kwa-leer-klein { padding: 24px 12px; font-size: 16px; }
.kwa-zeile { position: relative; flex: none; min-height: var(--kwa-zeile); display: flex; flex-wrap: wrap; align-items: stretch; border-radius: 18px; border: 3px solid var(--pos-rand); background: var(--pos-karte); overflow: hidden; scroll-snap-align: start; }
.kwa-zeile.kwa-NEU { border-color: var(--pos-neu); background: var(--pos-neu-karte); }
/* Nur die, die am längsten wartet, „randet auf" (Entwurf: Neu fällt vierfach auf) */
.kwa-liste > .kwa-zeile.kwa-NEU:first-child { animation: kwaRandAuf 1.6s ease-in-out infinite; }
@keyframes kwaRandAuf { 0%, 100% { border-color: var(--pos-neu); background: var(--pos-neu-karte); } 50% { border-color: #FFB09C; background: #3A2620; } }
.kwa-zeile.kwa-STORNIERT { border-color: rgba(255,107,94,.5); }
.kwa-balken { flex: none; width: 14px; background: var(--pos-rand); }
.kwa-NEU > .kwa-balken { background: var(--pos-neu); }
.kwa-IN_ARBEIT > .kwa-balken { background: var(--pos-arbeit); }
.kwa-FERTIG > .kwa-balken { background: var(--pos-fertig); }
.kwa-STORNIERT > .kwa-balken { background: var(--pos-err); }
.kwa-koerper { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 22px; padding: 8px 16px 8px 14px; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.kwa-koerper:active { background: rgba(255,255,255,.04); }
.kwa-nr { flex: none; min-width: 84px; font-family: var(--kwa-schmal); font-weight: 700; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.kwa-zeit { flex: none; width: 88px; text-align: center; display: flex; flex-direction: column; }
.kwa-zeit-wert { font-family: var(--kwa-schmal); font-weight: 700; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.kwa-zeit-typ { font-size: 14px; color: var(--pos-leise); }
.kwa-symbol { flex: none; width: 44px; display: flex; justify-content: center; color: var(--pos-text); }
.kwa-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.kwa-name { font-size: 26px; font-weight: 700; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwa-name-zusatz { font-size: 17px; font-weight: 600; color: var(--pos-leise); }
.kwa-artikel { font-size: 16px; color: var(--pos-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 8px; align-items: center; }
.kwa-marke { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--pos-marke-bg); color: var(--pos-text); font-size: 13px; font-weight: 700; }
.kwa-marke-test, .kwa-marke-kocht { background: rgba(245,192,105,.2); color: var(--pos-arbeit-text); }
.kwa-marke-storno { background: rgba(255,107,94,.2); color: var(--pos-err-text); }
/* Bestell-Echtheit (2026-09-19): ✅ leise grün, ⚠️ PRÜFEN als gefüllte Signal-Fläche (Tinte wie der Arbeit-Knopf), ❔ neutral */
.kwa-marke-echt-GRUEN { background: rgba(87,212,139,.18); color: var(--pos-fertig-text); }
.kwa-marke-echt-PRUEFEN { background: var(--pos-arbeit); color: var(--pos-arbeit-ink); }
.kwa-marke-echt-UNBEKANNT { background: var(--pos-marke-bg); color: var(--pos-leise); }
.kwa-betrag { flex: none; width: 120px; text-align: right; display: flex; flex-direction: column; }
.kwa-summe { font-family: var(--kwa-schmal); font-weight: 700; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; }
.kwa-zahlung { font-size: 14px; font-weight: 600; color: var(--pos-leise); }
.kwa-kompakt { min-height: 80px; }
.kwa-kompakt .kwa-nr { font-size: 34px; min-width: 72px; }
.kwa-kompakt .kwa-name { font-size: 22px; }
.kwa-kompakt .kwa-summe { font-size: 26px; }
.kwa-kompakt .kwa-zeit-wert { font-size: 24px; }

/* Knöpfe: EIN gefüllter Hauptknopf je Zeile (Farbe = Reiter), Zweitknöpfe mit Rand */
.kwa-knopf { flex: none; align-self: center; margin: 0 14px 0 6px; width: 212px; height: 76px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--kwa-schmal); font-weight: 700; font-size: 26px; letter-spacing: .06em; cursor: pointer; background: var(--pos-neu); color: var(--pos-neu-ink); box-shadow: 0 6px 0 -2px var(--pos-neu-tief); }
.kwa-IN_ARBEIT .kwa-knopf, .kwa-blatt-IN_ARBEIT .kwa-knopf { background: var(--pos-arbeit); color: var(--pos-arbeit-ink); box-shadow: 0 6px 0 -2px #B5883E; }
.kwa-FERTIG .kwa-knopf, .kwa-blatt-FERTIG .kwa-knopf { background: var(--pos-fertig); color: var(--pos-fertig-ink); box-shadow: 0 6px 0 -2px #2E9A5E; }
.kwa-knopf-gefahr, .kwa-blatt .kwa-knopf.kwa-knopf-gefahr { background: var(--pos-err); color: #2B0F06; box-shadow: 0 6px 0 -2px #B5382E; }
.kwa-knopf-bar, .kwa-blatt .kwa-knopf-bar { background: var(--pos-fertig); color: var(--pos-fertig-ink); box-shadow: 0 6px 0 -2px #2E9A5E; }
.kwa-knopf-karte, .kwa-blatt .kwa-knopf-karte { background: var(--pos-text); color: var(--pos-bg); box-shadow: 0 6px 0 -2px #B9B0A6; }
.kwa-knopf:active { transform: translateY(2px); box-shadow: none; }
.kwa-knopf:disabled, .kwa-zweit:disabled, .kwa-blaettern:disabled { opacity: .5; cursor: default; }
.kwa-zweit { flex: none; align-self: center; margin: 0 12px 0 0; min-height: 76px; padding: 0 16px; border-radius: 14px; border: 2px solid var(--pos-rand); background: var(--pos-karte); color: var(--pos-text); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-family: var(--kwa-schmal); font-weight: 700; font-size: 17px; letter-spacing: .06em; line-height: 1.1; cursor: pointer; text-decoration: none; white-space: nowrap; }
.kwa-zeile .kwa-zweit { width: 96px; font-size: 22px; }
.kwa-zeile .kwa-zweit span { font-size: 15px; }
.kwa-kocht-knopf, .kwa-warn-knopf { border-color: var(--pos-arbeit-text); color: var(--pos-arbeit-text); }
.kwa-gefahr { border-color: var(--pos-err-text); color: var(--pos-err-text); }
.kwa-meldung { flex: 1 1 100%; }
.kwa-meldung:empty { display: none; }
.kwa-textknopf { display: inline; min-height: 0; padding: 0 4px; background: transparent; border: 0; color: var(--pos-gold-text); font-weight: 700; font-size: inherit; text-decoration: underline; cursor: pointer; }

/* --- Zuletzt … Rückgängig --- */
.kwa-zuletzt { flex: none; margin: 0 20px 12px; min-height: 68px; display: flex; align-items: center; gap: 14px; padding: 6px 12px 6px 24px; border-radius: 14px; background: var(--pos-zuletzt-bg); border: 1px dashed var(--pos-rand); color: var(--pos-leise); font-size: 17px; }
.kwa-zuletzt[hidden] { display: none; }
.kwa-zuletzt-wort { flex: none; font-family: var(--kwa-schmal); font-weight: 700; font-size: 19px; letter-spacing: .1em; color: var(--pos-text); }
.kwa-zuletzt-text { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kwa-zuletzt-meldung { color: var(--pos-err-text); font-weight: 600; }
.kwa-zuletzt-meldung:empty { display: none; }
.kwa-zuletzt .kwa-zweit { margin: 0; min-height: 56px; flex-direction: row; gap: 8px; }

/* --- Fuß --- */
.kwa-fuss { flex: none; height: 120px; display: flex; align-items: center; gap: 16px; padding: 0 20px; background: var(--pos-tief); border-top: 1px solid var(--pos-rand); }
.kwa-blaettern { width: 180px; height: 84px; border-radius: 16px; border: 2px solid var(--pos-rand); background: var(--pos-karte); display: inline-flex; align-items: center; justify-content: center; gap: 12px; font-family: var(--kwa-schmal); font-weight: 700; font-size: 24px; letter-spacing: .06em; cursor: pointer; }
.kwa-blaettern-weiter { background: var(--pos-hoch); }
.kwa-pfeil { font-size: 30px; line-height: 1; }
.kwa-seiten { display: flex; flex-direction: column; padding-left: 10px; }
.kwa-seiten-zahl { font-family: var(--kwa-schmal); font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; }
.kwa-seiten-sub { font-size: 15px; color: var(--pos-leise); }
.kwa-fuss-frei { flex: 1 1 0; }
.kwa-kueche { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.kwa-kueche-pille { min-height: 60px; padding: 0 20px; border-radius: 16px; border: 2px solid var(--pos-rand); background: var(--pos-karte); font-family: var(--kwa-schmal); font-weight: 700; font-size: 22px; letter-spacing: .04em; cursor: pointer; white-space: nowrap; }
.kwa-kueche-wahl { position: absolute; right: 0; bottom: calc(100% + 8px); display: flex; gap: 8px; padding: 10px; border-radius: 14px; background: var(--pos-hoch); border: 1px solid var(--pos-rand); box-shadow: 0 12px 30px -10px rgba(0,0,0,.6); }
.kwa-kueche-wahl[hidden] { display: none; }
.kwa-kueche-wahl .kwa-zweit { margin: 0; min-height: 60px; flex-direction: row; }
.kwa-kueche-meldung { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 320px; }
.kwa-kueche-meldung:empty { display: none; }
.kwa-kueche-meldung .fehler, .kwa-kueche-meldung .erfolg { margin: 0; }

/* --- Blatt (Aufbau der 1b-Karte) --- */
.kwa-schleier { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); }
.kwa-blatt { display: flex; flex-direction: column; background: var(--pos-neu-karte); border: 3px solid var(--pos-rand); border-radius: 20px; overflow: hidden; color: var(--pos-text); }
.kwa-blatt-NEU { border-color: var(--pos-neu); }
.kwa-blatt-IN_ARBEIT { border-color: var(--pos-arbeit); background: var(--pos-karte); }
.kwa-blatt-FERTIG { border-color: var(--pos-fertig); background: var(--pos-karte); }
.kwa-blatt-ERLEDIGT { background: var(--pos-karte); }
.kwa-blatt.kwa-status-STORNIERT { border-color: var(--pos-err); }
.kwa-blatt-schwebt { position: fixed; z-index: 41; top: 40px; left: 50%; transform: translateX(-50%); width: min(1040px, 94vw); max-height: calc(100vh - 80px); box-shadow: 0 30px 70px -20px rgba(0,0,0,.8); }
.kwa-blatt-klein { top: 50%; transform: translate(-50%, -50%); width: min(720px, 94vw); padding: 10px; }
.kwa-blatt-kopf { flex: none; display: flex; align-items: flex-start; gap: 20px; padding: 22px 26px; border-bottom: 1px solid var(--pos-rand); }
.kwa-blatt-symbol { flex: none; width: 74px; height: 74px; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--pos-neu); color: var(--pos-neu-ink); }
.kwa-blatt-symbol svg { width: 38px; height: 38px; }
.kwa-blatt-IN_ARBEIT .kwa-blatt-symbol { background: var(--pos-arbeit); color: var(--pos-arbeit-ink); }
.kwa-blatt-FERTIG .kwa-blatt-symbol { background: var(--pos-fertig); color: var(--pos-fertig-ink); }
.kwa-blatt-ERLEDIGT .kwa-blatt-symbol { background: var(--pos-hoch); color: var(--pos-text); }
.kwa-blatt-titel { flex: 1 1 0; min-width: 0; }
.kwa-blatt-name { font-size: 34px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.kwa-blatt-sub { font-size: 19px; color: var(--pos-leise); overflow-wrap: anywhere; }
.kwa-blatt-zeit { flex: none; text-align: right; }
.kwa-blatt-zeit-wert { font-family: var(--kwa-schmal); font-weight: 700; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.kwa-blatt-zeit-sub { font-size: 17px; font-weight: 700; color: var(--pos-neu-text); }
.kwa-blatt-IN_ARBEIT .kwa-blatt-zeit-sub { color: var(--pos-arbeit-text); }
.kwa-blatt-FERTIG .kwa-blatt-zeit-sub { color: var(--pos-fertig-text); }
.kwa-blatt-ERLEDIGT .kwa-blatt-zeit-sub { color: var(--pos-leise); }
.kwa-blatt-zu { flex: none; width: 60px; height: 60px; border-radius: 14px; border: 1px solid var(--pos-rand); background: var(--pos-karte); font-size: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.kwa-blatt-inhalt { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 26px; display: flex; flex-direction: column; gap: 10px; }
.kwa-blatt-zeile { font-size: 19px; line-height: 1.35; overflow-wrap: anywhere; }
.kwa-blatt-zeile.kwa-warn { color: var(--pos-arbeit-text); font-weight: 600; }
.kwa-blatt-zeile.kwa-ok { color: var(--pos-fertig-text); font-weight: 700; }
.kwa-blatt-zeile.kwa-kocht { color: var(--pos-arbeit-text); font-weight: 700; }
.kwa-blatt-zeile.kwa-err { color: var(--pos-err-text); font-weight: 700; }
.kwa-blatt-zeile.kwa-leise { color: var(--pos-leise); font-size: 17px; }
.kwa-blatt-zeile.kwa-notiz { padding: 10px 16px; border-radius: 10px; background: var(--pos-anmerkung-bg); border-left: 5px solid var(--pos-arbeit); color: var(--pos-anmerkung-text); font-weight: 600; }
.kwa-blatt-positionen { display: flex; flex-direction: column; }
.kwa-pos { min-height: 56px; display: flex; align-items: center; gap: 18px; padding: 6px 0; border-bottom: 1px solid var(--pos-linie-fein); }
.kwa-pos-menge { flex: none; width: 52px; font-family: var(--kwa-schmal); font-weight: 700; font-size: 30px; color: var(--pos-gold-text); font-variant-numeric: tabular-nums; }
.kwa-pos-name { flex: 1 1 0; min-width: 0; font-size: 23px; font-weight: 600; overflow-wrap: anywhere; }
.kwa-pos-extras { font-size: 18px; font-weight: 500; color: var(--pos-leise); }
.kwa-pos-preis { flex: none; font-size: 20px; color: var(--pos-leise); font-variant-numeric: tabular-nums; }
.kwa-pos-ohne { color: var(--pos-err-text); font-weight: 700; }
.kwa-pos-anmerkung { margin: 0 0 8px 70px; padding: 10px 16px; border-radius: 10px; background: var(--pos-anmerkung-bg); border-left: 5px solid var(--pos-arbeit); font-size: 19px; font-weight: 600; color: var(--pos-anmerkung-text); overflow-wrap: anywhere; }
.kwa-blatt-summe { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; padding-top: 14px; border-top: 2px solid var(--pos-rand); }
.kwa-blatt-summe-wort { font-family: var(--kwa-schmal); font-weight: 700; font-size: 26px; letter-spacing: .08em; }
.kwa-zahlung-pille { padding: 6px 16px; border-radius: 999px; background: var(--pos-marke-bg); font-size: 18px; font-weight: 600; }
.kwa-zahlung-offen { color: var(--pos-leise); }
.kwa-blatt-summe .kwa-zweit { margin: 0; min-height: 52px; flex-direction: row; }
.kwa-blatt-summe-wert { margin-left: auto; font-family: var(--kwa-schmal); font-weight: 700; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.kwa-blatt-zusage { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.kwa-blatt-zusage-wort { flex: 1 1 100%; font-size: 15px; color: var(--pos-leise); }
.kwa-blatt-zusage .kwa-zusage { margin: 0; min-height: 56px; min-width: 76px; flex: 1 1 76px; font-size: 24px; }
.kwa-blatt-mails:empty { display: none; }
.kwa-blatt-mails { font-size: 15px; color: var(--pos-leise); }
.kwa-blatt-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.kwa-blatt-fuss { flex: none; padding: 16px 26px 22px; border-top: 1px solid var(--pos-rand); background: var(--pos-fuss-bg); }
.kwa-blatt-knoepfe .kwa-zweit { margin: 0; min-height: 76px; min-width: 120px; padding: 0 18px; font-size: 26px; }
.kwa-blatt-knoepfe .kwa-zweit span { font-size: 16px; }
.kwa-blatt-knoepfe .kwa-knopf { margin: 0 0 0 auto; width: auto; min-width: 260px; padding: 0 26px; flex: 1 1 320px; }
.kwa-blatt-knoepfe .kwa-knopf-gefahr { flex: 0 0 auto; min-width: 200px; margin-left: 0; }
.kwa-frage-block { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; border-radius: 14px; background: var(--pos-hoch); border: 1px solid var(--pos-rand); }
.kwa-blatt-klein .kwa-frage-block { background: transparent; border: 0; }
.kwa-frage-titel { font-size: 22px; font-weight: 700; }
.kwa-frage-block .kwa-knopf { flex: 1 1 200px; min-width: 0; width: auto; margin: 0; }
.kwa-frage-block .kwa-zweit { margin: 0; min-width: 120px; flex-direction: row; }
.kwa-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kwa-chip { margin: 0; min-height: 52px; flex-direction: row; font-size: 17px; letter-spacing: 0; text-transform: none; }
.kwa-chip-gewaehlt { background: var(--pos-text); color: var(--pos-bg); border-color: var(--pos-text); }
.kwa-eingabe { min-height: 56px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--pos-rand); background: var(--pos-karte); color: var(--pos-text); font: inherit; font-size: 18px; }
.kwa-storno-frage { margin: 0 26px 20px; }

/* --- Stoßzeit (1b) --- */
.kwa-stosszeit { flex: 1 1 0; min-height: 0; display: flex; }
.kwa-stosszeit-links { flex: 1 1 0; min-width: 0; padding: 24px; display: flex; flex-direction: column; }
.kwa-blatt-gross { flex: 1 1 0; min-height: 0; }
.kwa-schlange { width: 400px; flex: none; background: var(--pos-tief); border-left: 1px solid var(--pos-rand); display: flex; flex-direction: column; }
.kwa-schlange-kopf { flex: none; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; font-family: var(--kwa-schmal); font-weight: 700; font-size: 21px; letter-spacing: .1em; color: var(--pos-leise); }
.kwa-schlange-zahl { font-family: var(--kwa-schrift); font-size: 17px; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.kwa-schlange-liste { flex: 1 1 0; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px; display: flex; flex-direction: column; gap: 10px; scroll-snap-type: y proximity; }
.kwa-kachel { flex: none; min-height: 96px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-radius: 14px; background: var(--pos-karte); border-left: 8px solid var(--pos-rand); color: inherit; text-align: left; cursor: pointer; scroll-snap-align: start; }
.kwa-kachel.kwa-NEU { background: var(--pos-neu-karte); border-left-color: var(--pos-neu); }
.kwa-kachel.kwa-IN_ARBEIT { border-left-color: var(--pos-arbeit); }
.kwa-kachel.kwa-FERTIG { border-left-color: var(--pos-fertig); }
.kwa-kachel-gewaehlt { outline: 3px solid var(--pos-text); outline-offset: 2px; }
.kwa-kachel-zeit { flex: none; width: 66px; text-align: center; display: flex; flex-direction: column; }
.kwa-kachel-zeit-wert { font-family: var(--kwa-schmal); font-weight: 700; font-size: 27px; line-height: 1; font-variant-numeric: tabular-nums; }
.kwa-kachel-wort { font-size: 13px; color: var(--pos-leise); font-weight: 700; }
.kwa-kachel.kwa-IN_ARBEIT .kwa-kachel-wort { color: var(--pos-arbeit-text); }
.kwa-kachel.kwa-FERTIG .kwa-kachel-wort { color: var(--pos-fertig-text); }
.kwa-kachel-text { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.kwa-kachel-name { font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwa-kachel-sub { font-size: 15px; color: var(--pos-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwa-kachel-summe { flex: none; font-family: var(--kwa-schmal); font-weight: 700; font-size: 22px; font-variant-numeric: tabular-nums; }
.kwa-schlange-fuss { flex: none; height: 112px; display: flex; gap: 12px; padding: 14px; }
.kwa-schlange-fuss .kwa-blaettern { flex: 1 1 0; width: auto; height: auto; font-size: 32px; }

/* --- Etappe 1e: Bestell-Eingang am PC (normales Portal ab 1000 px) ---
   Dieselben Bauteile, Farben aus dem Design-Satz (--t-*): in „Nacht" wird er dunkel,
   in Modernist/Bisher hell. Signalschrift 60 % mit Tinte gemischt (Regel des Design-Systems). */
.kwa-hell {
  --pos-bg: var(--t-bg); --pos-karte: var(--t-surface); --pos-hoch: var(--t-surface2); --pos-kopf: var(--t-surface); --pos-tief: var(--t-surface2);
  /* ⚠️ t-ink2 auf t-surface2 misst im Portal 4,49:1 — hier 15 % Tinte dazu, damit die Nebenschrift auf der Seitenspalte ≥ 4,5 bleibt (gemessen 18.09.) */
  --pos-rand: var(--t-line); --pos-text: var(--t-ink); --pos-leise: color-mix(in srgb, var(--t-ink2) 85%, var(--t-ink));
  --pos-neu-karte: color-mix(in srgb, var(--pos-neu) 9%, var(--t-surface));
  --pos-neu-text: color-mix(in srgb, var(--pos-neu) 55%, var(--t-ink)); --pos-arbeit-text: color-mix(in srgb, var(--pos-arbeit) 45%, var(--t-ink));
  --pos-fertig-text: color-mix(in srgb, var(--pos-fertig) 50%, var(--t-ink)); --pos-err-text: color-mix(in srgb, var(--pos-err) 55%, var(--t-ink)); --pos-gold-text: color-mix(in srgb, var(--pos-gold) 42%, var(--t-ink));
  --pos-anmerkung-bg: color-mix(in srgb, var(--pos-arbeit) 22%, var(--t-surface)); --pos-anmerkung-text: var(--t-ink);
  --pos-zahl-bg: var(--t-surface2); --pos-zahl-hat-bg: var(--t-ink); --pos-marke-bg: var(--t-surface2); --pos-zuletzt-bg: var(--t-surface2);
  --pos-linie-fein: var(--t-line); --pos-fuss-bg: var(--t-surface2); --pos-meldung-bg: var(--t-surface);
}
.kwa-hell .kwa-reiter-ERLEDIGT .kwa-reiter-zahl.kwa-hat { color: var(--t-surface); }
.kwa-hell .kwa-kopf-warm, .kwa-hell .kwa-liste > .kwa-zeile.kwa-NEU:first-child { animation: none; }
/* Kassa hell (Schalter ☀️/🌙): Kopf, Reiter und Fuß aus den hellen Flächen, „warm" als Tönung statt Animation */
.kwa-hell .kwa-kopf { background: var(--pos-kopf); }
.kwa-hell .kwa-kopf.kwa-kopf-warm { background: var(--pos-neu-karte); }
.kwa-hell .kwa-schalter button[aria-pressed="false"], .kwa-hell .kwa-kopf-knopf, .kwa-hell .kwa-res, .kwa-hell .kwa-blaettern, .kwa-hell .kwa-kueche-pille { background: var(--pos-karte); }
.kwa-hell .kwa-blaettern-weiter { background: var(--pos-hoch); }
.kwa-hell .kwa-reiter-knopf[aria-selected="true"] { background: var(--pos-hoch); }
.kwa-hell .kwa-pille-ruhe { background: var(--pos-hoch); }
/* Zahl-Pillen auf getoenter Flaeche: Schrift kraeftiger mischen (hell gemessen 4,1 / 3,9 → >= 4,5) */
.kwa-hell .kwa-reiter-IN_ARBEIT .kwa-reiter-zahl.kwa-hat { color: color-mix(in srgb, var(--pos-arbeit) 28%, var(--t-ink)); }
.kwa-hell .kwa-reiter-FERTIG .kwa-reiter-zahl.kwa-hat { color: color-mix(in srgb, var(--pos-fertig) 32%, var(--t-ink)); }
.kwa-hell .kwa-knopf-karte { background: var(--t-ink); color: var(--t-surface); box-shadow: 0 6px 0 -2px #000; }
.kwa-hell .kwa-schalter button[aria-pressed="true"] { background: var(--t-ink); color: var(--t-surface); }
.kwa-hell button:disabled { background: var(--t-surface2) !important; color: var(--pos-leise) !important; border-color: var(--t-line) !important; }
/* Reservierungen hell: Neu-Knopf und Zahl-Pille gemischt (nach .kwa-hell .kwa-kopf-knopf, damit sie gewinnen) */
.kwa-hell .kwa-res-neu { color: var(--t-surface); background: color-mix(in srgb, var(--pos-gold) 42%, var(--t-ink)); box-shadow: 0 6px 0 -2px #000; }
.kwa-hell .kwa-reiter-RES .kwa-reiter-zahl.kwa-hat { color: color-mix(in srgb, var(--pos-gold) 30%, var(--t-ink)); }
/* Aufbau: Blatt rechts (steht im DOM zuerst), Kopf oben, links Reiter · Liste · Fuß */
.kwa.kwa-eingang { position: relative; inset: auto; z-index: auto; height: calc(100vh - 160px); min-height: 600px; display: grid; grid-template-columns: minmax(0, 1fr) var(--seitenspalte, 420px); grid-template-rows: auto minmax(0, 1fr); border: var(--t-lw) solid var(--pos-rand); border-radius: 18px; overflow: hidden; }
.kwa-eingang-kopf { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 18px; padding: 12px 20px; border-bottom: 2px solid var(--pos-rand); background: var(--pos-kopf); }
.kwa-eingang-kopf.kwa-kopf-warm { background: var(--pos-neu-karte); border-bottom-color: color-mix(in srgb, var(--pos-neu) 40%, var(--pos-rand)); }
.kwa-eingang-kopf .kwa-kopf-wort { font-size: 26px; }
.kwa-eingang-kopf .kwa-pille { gap: 10px; padding: 8px 18px 8px 12px; }
.kwa-eingang-kopf .kwa-pille-zahl { font-size: 30px; }
.kwa-eingang-kopf .kwa-pille-wort { font-size: 18px; }
.kwa-eingang-kopf .kwa-pille-seit { font-size: 13px; max-width: 120px; }
.kwa-eingang-kopf .kwa-pille-strich { height: 26px; }
.kwa-eingang-frei { flex: 1 1 0; }
.kwa-suche { min-width: 230px; height: 46px; padding: 0 16px; border-radius: 12px; border: 2px solid var(--pos-rand); background: var(--pos-karte); color: var(--pos-text); font: inherit; font-size: 15px; }
.kwa-eingang-links { grid-column: 1; grid-row: 2; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--pos-rand); }
.kwa-eingang-rechts { grid-column: 2; grid-row: 2; min-height: 0; display: flex; flex-direction: column; background: var(--pos-hoch); }
.kwa-eingang-rechts .kwa-blatt-gross { border: 0; border-radius: 0; background: var(--pos-hoch); }
.kwa-eingang-rechts .kwa-blatt-kopf { padding: 18px 20px 14px; flex-wrap: wrap; gap: 12px 14px; }
.kwa-eingang-rechts .kwa-blatt-titel { flex: 1 1 170px; }
.kwa-eingang-rechts .kwa-blatt-titel .kwa-blatt-name, .kwa-eingang-rechts .kwa-blatt-sub { overflow-wrap: normal; word-break: normal; }
.kwa-eingang-rechts .kwa-blatt-zeit { flex: 0 0 auto; margin-left: auto; }
.kwa-eingang-rechts .kwa-blatt-name { font-size: 26px; }
.kwa-eingang-rechts .kwa-blatt-sub { font-size: 15px; }
.kwa-eingang-rechts .kwa-blatt-symbol { width: 56px; height: 56px; border-radius: 14px; }
.kwa-eingang-rechts .kwa-blatt-zeit-wert { font-size: 34px; }
.kwa-eingang-rechts .kwa-blatt-inhalt { padding: 12px 20px; gap: 8px; }
.kwa-eingang-rechts .kwa-blatt-zeile { font-size: 16px; }
.kwa-eingang-rechts .kwa-pos { min-height: 44px; gap: 12px; }
.kwa-eingang-rechts .kwa-pos-menge { width: 38px; font-size: 22px; }
.kwa-eingang-rechts .kwa-pos-name { font-size: 17px; }
.kwa-eingang-rechts .kwa-pos-preis { font-size: 16px; }
.kwa-eingang-rechts .kwa-pos-anmerkung { margin-left: 50px; font-size: 15px; padding: 8px 12px; }
.kwa-eingang-rechts .kwa-blatt-summe-wert { font-size: 34px; }
.kwa-eingang-rechts .kwa-blatt-summe-wort { font-size: 20px; }
.kwa-eingang-rechts .kwa-blatt-zusage .kwa-zusage { min-height: 48px; min-width: 56px; font-size: 20px; }
.kwa-eingang-rechts .kwa-blatt-fuss { padding: 12px 20px 16px; }
.kwa-eingang-rechts .kwa-blatt-knoepfe .kwa-zweit { min-height: 50px; min-width: 0; padding: 0 12px; font-size: 20px; flex: 1 1 100px; }
.kwa-eingang-rechts .kwa-blatt-knoepfe .kwa-zweit span { font-size: 13px; }
.kwa-eingang-rechts .kwa-blatt-knoepfe .kwa-knopf { min-width: 0; height: 62px; font-size: 22px; flex: 1 1 100%; margin: 0; }
.kwa-eingang-rechts .kwa-storno-frage { margin: 0 20px 16px; }
.kwa-eingang-rechts .kwa-leer { margin: auto; font-size: 17px; }
.kwa-eingang .kwa-reiter { display: flex; gap: 10px; padding: 16px 20px 12px; background: transparent; }
.kwa-eingang .kwa-reiter-knopf { flex: 0 1 auto; height: 56px; padding: 0 18px; gap: 12px; border: 2px solid var(--pos-rand); border-radius: 12px; background: var(--pos-karte); }
.kwa-eingang .kwa-reiter-knopf[aria-selected="true"] { background: var(--pos-text); color: var(--pos-bg); border-color: var(--pos-text); }
.kwa-eingang .kwa-reiter-NEU[aria-selected="true"] { background: var(--pos-neu); color: var(--pos-neu-ink); border-color: var(--pos-neu); }
.kwa-eingang .kwa-reiter-symbol, .kwa-eingang .kwa-reiter-sub { display: none; }
.kwa-eingang .kwa-reiter-wort { font-size: 20px; }
.kwa-eingang .kwa-reiter-zahl { min-width: 0; height: auto; padding: 0; background: transparent !important; font-size: 26px; color: inherit !important; }
.kwa-eingang-hinweis { padding: 0 20px 10px; font-size: 15px; color: var(--pos-leise); }
.kwa-eingang { --kwa-zeile: 88px; }
.kwa-eingang .kwa-liste { padding: 0 20px 16px; }
.kwa-eingang .kwa-zeile { border-radius: 14px; border-width: 2px; }
.kwa-eingang .kwa-zeile.kwa-NEU { border-width: 3px; }
.kwa-eingang .kwa-balken { width: 10px; }
.kwa-eingang .kwa-koerper { gap: 16px; padding: 6px 14px 6px 10px; }
.kwa-eingang .kwa-nr { min-width: 60px; font-size: 32px; }
.kwa-eingang .kwa-zeit { width: 70px; }
.kwa-eingang .kwa-zeit-wert { font-size: 26px; }
.kwa-eingang .kwa-zeit-typ { font-size: 13px; }
.kwa-eingang .kwa-symbol { width: 32px; }
.kwa-eingang .kwa-symbol svg { width: 24px; height: 24px; }
.kwa-eingang .kwa-name { font-size: 20px; }
.kwa-eingang .kwa-name-zusatz { font-size: 15px; }
.kwa-eingang .kwa-artikel { font-size: 15px; }
.kwa-eingang .kwa-betrag { width: 96px; }
.kwa-eingang .kwa-summe { font-size: 26px; }
.kwa-eingang .kwa-knopf { width: 170px; height: 56px; font-size: 20px; margin-right: 12px; }
.kwa-eingang .kwa-zeile .kwa-zweit { width: 76px; min-height: 56px; font-size: 18px; }
.kwa-eingang .kwa-zeile .kwa-zweit span { font-size: 12px; }
.kwa-eingang .kwa-kompakt { min-height: 64px; }
.kwa-eingang .kwa-zuletzt { margin: 0 20px 10px; min-height: 52px; font-size: 15px; }
.kwa-eingang .kwa-fuss { height: 76px; padding: 0 20px; background: var(--pos-tief); }
.kwa-eingang .kwa-blaettern { width: 130px; height: 52px; font-size: 18px; }
.kwa-eingang .kwa-pfeil { font-size: 20px; }
.kwa-eingang .kwa-seiten-zahl { font-size: 18px; }
.kwa-eingang .kwa-seiten-sub { font-size: 13px; }
/* Der Hauptkasten des Portals ist 880 px (ab 1000) bzw. 1300 px (ab 1400) breit — für Liste + Blatt
   zu wenig. Solange der Eingang sichtbar ist, darf er breiter (Gewicht (1,2,0) schlägt die Breitbild-Regeln). */
@media (min-width: 1000px) {
  #screenHaupt.box:has(#mehrGastBestellungen:not(.hidden) .kwa-eingang) { max-width: 1480px; }
}
/* Stufen nach gemessener Kastenbreite (Klasse setzt kwaEingangHtml): schmal = Blatt schwebt, breit = rechts 380 px, weit = rechts 420 px + volle Zeilen */
.kwa.kwa-eingang-schmal { grid-template-columns: minmax(0, 1fr); }
.kwa.kwa-eingang-breit { grid-template-columns: minmax(0, 1fr) 380px; }
.kwa.kwa-eingang-breit .kwa-symbol, .kwa.kwa-eingang-schmal .kwa-symbol { display: none; }
.kwa.kwa-eingang-breit .kwa-knopf { width: 150px; font-size: 18px; }
.kwa.kwa-eingang-breit .kwa-nr { min-width: 52px; font-size: 28px; }
.kwa.kwa-eingang-breit .kwa-betrag { width: 84px; }
.kwa.kwa-eingang-breit .kwa-zeit { width: 62px; }
.kwa.kwa-eingang-breit .kwa-zeit-wert { font-size: 22px; }
.kwa.kwa-eingang-breit .kwa-zeile .kwa-zweit { width: 66px; }

/* --- Kleinere Kassen (1024 breit): enger, nichts verschwindet --- */
@media (max-width: 1150px) {
  .kwa-kopf { gap: 14px; padding: 0 16px; }
  .kwa-kopf-titel { max-width: 180px; }
  .kwa-tage-zeile { padding: 6px 16px; gap: 12px; }
  .kwa-tage button, .kwa-tage-wahl { min-height: 44px; padding: 0 10px; font-size: 16px; }
  .kwa-tage-hinweis { font-size: 14px; }
  .kwa-kopf-wort { font-size: 24px; }
  .kwa-pille { gap: 10px; padding: 8px 18px 8px 14px; }
  .kwa-pille-zahl { font-size: 40px; }
  .kwa-pille-wort { font-size: 22px; }
  .kwa-pille-seit { font-size: 15px; max-width: 150px; }
  .kwa-res { display: none; }
  .kwa-reiter-knopf { gap: 10px; padding: 0 14px; height: 96px; }
  .kwa-reiter-wort { font-size: 22px; }
  .kwa-reiter-sub { display: none; }
  .kwa-reiter-zahl { min-width: 52px; height: 52px; font-size: 30px; }
  .kwa-koerper { gap: 12px; }
  .kwa-nr { min-width: 66px; font-size: 36px; }
  .kwa-zeit { width: 72px; }
  .kwa-zeit-wert { font-size: 26px; }
  .kwa-symbol { width: 34px; }
  .kwa-name { font-size: 22px; }
  .kwa-betrag { width: 96px; }
  .kwa-summe { font-size: 26px; }
  .kwa-knopf { width: 160px; height: 68px; font-size: 22px; }
  .kwa-zeile .kwa-zweit { width: 80px; min-height: 68px; }
  .kwa-blaettern { width: 140px; height: 72px; font-size: 20px; }
  .kwa-schlange { width: 320px; }
}
/* Fünf Reiter (Reservierungen): unter 1500 px enger, damit „RESERVIERUNGEN“ nicht abbricht (gemessen 1280/1024) */
@media (max-width: 1500px) {
  .kwa-reiter-5 .kwa-reiter-knopf { gap: 12px; padding: 0 14px; }
  .kwa-reiter-5 .kwa-reiter-wort { font-size: 22px; }
  .kwa-reiter-5 .kwa-reiter-zahl { min-width: 52px; height: 54px; font-size: 30px; padding: 0 10px; }
}
@media (max-width: 1150px) {
  .kwa-reiter-5 { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr); }
  .kwa-reiter-5 .kwa-reiter-knopf { gap: 8px; padding: 0 10px; }
  .kwa-reiter-5 .kwa-reiter-wort { font-size: 17px; }
  .kwa-reiter-5 .kwa-reiter-zahl { min-width: 44px; height: 46px; font-size: 26px; padding: 0 8px; }
  .kwa-reiter-5 .kwa-reiter-symbol svg { width: 26px; height: 26px; }
}
/* Handy hoch (Notfall — die Kassa ist quer, aber nichts darf kaputtgehen) */
@media (max-width: 719px) {
  .kwa-kopf { height: auto; flex-wrap: wrap; padding: 10px 12px; gap: 10px; }
  .kwa-kopf-mitte { order: 3; flex: 1 1 100%; }
  .kwa-schalter, .kwa-uhr-tag { display: none; }
  .kwa-reiter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kwa-zeile { flex-wrap: wrap; }
  .kwa-koerper { flex: 1 1 100%; }
  .kwa-knopf, .kwa-zeile .kwa-zweit { margin: 0 12px 12px; }
  .kwa-fuss { height: auto; flex-wrap: wrap; padding: 10px; gap: 10px; }
  .kwa-blatt-schwebt { top: 10px; width: 96vw; max-height: calc(100vh - 20px); }
  .kwa-stosszeit { flex-direction: column; }
  .kwa-schlange { width: auto; border-left: 0; border-top: 1px solid var(--pos-rand); max-height: 40vh; }
}
/* ═══ ENDE: Kassa-Wächter (Bestell-Screens · Entwurf 1) ═══ */
/* ═══ ANFANG: Kassa-Wächter W1 (Etappe 1–4, 2026-10-06) ═══
   Şevkets Wahl 06.10.: der Wächter im Design von Portal W1 (Entwurf sessions/kassa_waechter_entwurf/).
   Wurzel .kwa.kwaw. Hell = Design-Satz (--t-* über .kwa-hell), Dunkel = Entwurfs-Dunkel (die --pos-*
   werden hier überschrieben, damit auch die noch nicht umgebauten Teile mitziehen). Schrift Archivo
   (--schrift, im Portal geladen), eckige Ecken, 2-px-Linien. Präfix kwaw-, nie kw- (Dienstplan-Kalenderwoche).
   Etappe 1: Kopf, Statuszeile, ⚙-Blatt, Zahlungs-Chip. Etappe 2–4: Reiter, Karten/Zeilen, Seitenleiste, Dialog, Stoßzeit.
   Plan: sessions/SONNET_SESSION_KASSA_WAECHTER_W1_DESIGN.md */
.kwa.kwaw { font-family: var(--schrift); --kwa-schmal: var(--schrift); --w-akz: var(--t-accent); --w-ok: var(--t-ok); --w-warn: var(--t-warn); }
.kwa.kwaw.kwaw-dunkel {
  --pos-bg: #141312; --pos-karte: #201e1d; --pos-hoch: #2a2827; --pos-kopf: #201e1d; --pos-tief: #1a1918;
  --pos-rand: #6a6662; --pos-text: #f3f2f2; --pos-leise: #a9a5a2;
  --w-akz: #ff5a3c; --w-ok: #2f9a55; --w-warn: #f5a623;
}

/* --- Kopf --- */
.kwaw .kwa-kopf { height: auto; min-height: 64px; gap: 12px; padding: 8px 16px; border-bottom: 2px solid var(--pos-rand); position: relative; z-index: 6; }
.kwaw .kwa-kopf.kwa-kopf-warm { animation: none; background: var(--pos-kopf); }
.kwaw .kwa-kopf-titel { position: relative; flex: 1 1 220px; max-width: none; min-width: 170px; }
.kwaw .kwa-kopf-wort { font-family: var(--schrift); font-weight: 800; font-size: 22px; letter-spacing: 0; line-height: 1.1; text-transform: lowercase; }
.kwaw .kwa-kopf-wort::first-letter { text-transform: uppercase; }
.kwaw .kwaw-tagknopf { display: block; max-width: 100%; min-height: 0; padding: 0; border: 0; background: none; color: var(--pos-leise); font-weight: 600; font-size: 13.5px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.kwaw .kwaw-tagknopf.kwaw-tag-fremd { color: var(--w-akz); font-weight: 800; }
.kwaw .kwa-kopf-mitte { flex: 0 0 auto; justify-content: flex-start; }
.kwaw .kwa-pille { gap: 8px; padding: 6px 12px; border-radius: 0; }
.kwaw .kwa-pille-neu { background: var(--w-akz); color: #fff; animation: kwawPuls 1.6s ease-in-out infinite; }
@keyframes kwawPuls { 50% { opacity: .72; } }
.kwaw .kwa-pille-ruhe { background: transparent; border: 2px solid var(--pos-rand); padding: 4px 10px; }
.kwaw .kwa-pille-zahl { font-size: 18px; }
.kwaw .kwa-pille-wort, .kwaw .kwa-pille-ruhe .kwa-pille-wort { font-size: 14px; letter-spacing: .04em; }
.kwaw .kwa-pille-seit { font-size: 13px; max-width: none; white-space: nowrap; font-weight: 700; }
.kwaw .kwa-pille-strich { height: 16px; background: rgba(255,255,255,.5); }
.kwaw .kwa-kopf-rechts { gap: 10px; }
.kwaw .kwa-uhr-zeit { font-family: var(--schrift); font-size: 24px; font-weight: 800; }
.kwaw .kwa-uhr-tag { font-size: 12px; }
.kwaw .kwa-res { min-height: 44px; max-width: 200px; padding: 4px 10px; border: 2px solid var(--pos-rand); border-radius: 0; background: transparent; font-size: 12.5px; }
.kwaw .kwa-schalter { border: 2px solid var(--pos-rand); border-radius: 0; }
.kwaw .kwa-schalter button { min-height: 40px; padding: 0 12px; background: transparent; color: var(--pos-text); font-family: var(--schrift); font-weight: 700; font-size: 14px; letter-spacing: 0; }
.kwaw .kwa-schalter button + button { border-left: 2px solid var(--pos-rand); }
.kwaw .kwa-schalter button[aria-pressed="true"] { background: var(--pos-text); color: var(--pos-bg); }
.kwaw .kwa-kopf-knopf { min-height: 44px; padding: 0 12px; gap: 6px; border: 2px solid var(--pos-rand); border-radius: 0; background: transparent; color: var(--pos-text); font-family: var(--schrift); font-weight: 700; font-size: 14.5px; letter-spacing: 0; }
.kwaw .kwa-kopf-knopf.kwaw-an { background: var(--pos-text); color: var(--pos-bg); }
.kwaw .kwaw-neu { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 0; border-radius: 0; background: var(--w-akz); color: #fff; font-family: var(--schrift); font-weight: 800; font-size: 16px; white-space: nowrap; cursor: pointer; }

/* --- Tag und Lokal (Fenster unter dem Titel) + Band bei fremdem Tag --- */
.kwaw .kwaw-tagpanel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 8; min-width: 320px; display: flex; flex-direction: column; gap: 10px; padding: 12px; background: var(--pos-karte); border: 2px solid var(--pos-rand); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.kwaw .kwaw-feldname { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--pos-leise); }
.kwaw .kwaw-wahl { min-height: 44px; padding: 0 10px; border: 2px solid var(--pos-rand); border-radius: 0; background: var(--pos-karte); color: var(--pos-text); font: inherit; font-size: 15px; font-weight: 700; }
.kwaw .kwa-tage button, .kwaw .kwa-tage-wahl { min-height: 44px; padding: 0 12px; font-family: var(--schrift); font-size: 14px; letter-spacing: 0; }
.kwaw .kwa-tage-wahl { border-left: 2px solid var(--pos-rand); background: transparent; color: var(--pos-text); white-space: nowrap; }
.kwaw .kwa-tage-wahl[aria-pressed="true"] { background: var(--pos-text); color: var(--pos-bg); }
.kwaw .kwaw-hinweisband { min-height: 0; padding: 6px 16px; gap: 0; background: var(--pos-neu-karte); border-bottom: 2px solid var(--pos-rand); }
.kwaw .kwaw-hinweisband .kwa-tage-hinweis { font-size: 14px; font-weight: 700; color: var(--w-akz); white-space: normal; }

/* --- Statuszeile --- */
.kwaw .kwaw-status { position: relative; z-index: 5; flex: none; display: flex; align-items: center; gap: 12px; padding: 6px 16px; background: var(--pos-tief); border-bottom: 2px solid var(--pos-rand); font-size: 14px; font-weight: 700; }
.kwaw .kwaw-status-links { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 18px; }
.kwaw .kwaw-st { display: inline-flex; align-items: center; gap: 6px; min-height: 0; padding: 0; border: 0; background: none; color: var(--pos-text); font: inherit; font-weight: 700; white-space: nowrap; }
.kwaw button.kwaw-st { cursor: pointer; }
.kwaw .kwaw-st-warn, .kwaw .kwa-waechter-aus { color: var(--w-akz); }
.kwaw .kwa-waechter-aus { background: none; border: 0; animation: none; font-size: inherit; padding: 0; }
.kwaw .kwa-waechter-an { font-size: inherit; padding: 0; }
.kwaw .kwa-kueche { position: relative; flex: none; align-items: stretch; }
.kwaw .kwa-kueche-pille { min-height: 38px; padding: 0 12px; border: 2px solid var(--pos-rand); border-radius: 0; background: transparent; color: var(--pos-text); font-family: var(--schrift); font-weight: 700; font-size: 13.5px; letter-spacing: 0; }
.kwaw .kwaw-st-knopf { flex: none; min-height: 38px; padding: 0 12px; border: 2px solid var(--pos-rand); border-radius: 0; background: transparent; color: var(--pos-text); font-family: var(--schrift); font-weight: 700; font-size: 13.5px; white-space: nowrap; cursor: pointer; }
.kwaw .kwa-kueche-wahl { top: calc(100% + 6px); bottom: auto; right: 0; z-index: 9; border-radius: 0; border: 2px solid var(--pos-rand); background: var(--pos-karte); }
.kwaw .kwa-kueche-wahl .kwa-zweit { min-height: 44px; padding: 0 12px; border-radius: 0; font-family: var(--schrift); font-size: 14px; letter-spacing: 0; }
.kwaw .kwa-kueche-meldung { top: calc(100% + 6px); bottom: auto; }

/* --- ⚙-Blatt „Einstellungen · dieser PC" --- */
.kwaw .kwaw-schleier { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.5); }
.kwaw .kwaw-einst { width: min(460px, 92vw); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--pos-karte); color: var(--pos-text); border: 2px solid var(--pos-rand); }
.kwaw .kwaw-einst-kopf { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 2px solid var(--pos-rand); }
.kwaw .kwaw-einst-kopf b { flex: 1; font-size: 17px; font-weight: 800; }
.kwaw .kwaw-einst-rumpf { overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 14px; }
.kwaw .kwaw-seg { display: flex; }
.kwaw .kwaw-seg .kwa-kopf-knopf { flex: 1; justify-content: center; }
.kwaw .kwaw-seg .kwa-kopf-knopf + .kwa-kopf-knopf { border-left: 0; }
.kwaw .kwaw-einst-info { margin-top: 6px; font-size: 13.5px; color: var(--pos-leise); }
.kwaw .kwaw-zeilenknopf { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 0 10px; border: 2px solid var(--pos-rand); border-radius: 0; background: transparent; color: var(--pos-text); font-family: var(--schrift); font-weight: 700; font-size: 14.5px; text-align: left; cursor: pointer; }
.kwaw .kwaw-zeilenknopf + .kwaw-zeilenknopf { border-top: 0; }

/* --- Zahlung auf jeder Karte/Zeile (kwaZahlungChipHtml) --- */
.kwaw .kwaw-zchip { display: inline-block; padding: 3px 7px; border: 1px solid var(--pos-leise); background: transparent; color: var(--pos-leise); font-size: 11.5px; font-weight: 800; letter-spacing: .02em; line-height: 1.2; white-space: nowrap; }
.kwaw .kwaw-zchip-offen { border-style: dashed; font-weight: 700; }
.kwaw .kwaw-zchip-ONLINE { border-color: transparent; background: color-mix(in srgb, var(--pos-fertig) 22%, transparent); color: var(--pos-fertig-text); }

@media (max-width: 1150px) {
  .kwaw .kwa-kopf { gap: 8px; padding: 8px 12px; }
  .kwaw .kwa-kopf-knopf span { display: none; }
  .kwaw .kwa-uhr-tag, .kwaw .kwa-pille-strich, .kwaw .kwa-pille-seit { display: none; }
  .kwaw .kwaw-neu { padding: 0 12px; font-size: 15px; }
}
/* ═══ Etappe 2–4 (2026-10-06): Reiter, Karten (A), Zeilen (B), Erledigt kompakt, Seitenleiste, Dialog, Stoßzeit ═══
   Maße und Farben aus dem Entwurf (sessions/kassa_waechter_entwurf/). Status-Farben wie im Entwurf: Neu bernstein,
   In Arbeit rot, Fertig grün, Erledigt grau, Storniert rot-blass — hell fest, dunkel mit den Entwurfs-Dunkelwerten. */
.kwa.kwaw {
  --c-neu-bg: #f8f2e8; --c-neu-tx: #784c0c; --c-neu-p: #b26a00;
  --c-arb-bg: #fbeae8; --c-arb-tx: #9b1c0c; --c-arb-p: #e32e12;
  --c-fer-bg: #e6f2ea; --c-fer-tx: #1a5c30; --c-fer-p: #1f7a3d;
  --c-erl-bg: #ecebea; --c-erl-tx: #4a4745; --c-erl-p: #8a8684;
  --c-sto-bg: #fdecea; --c-sto-tx: #a3200e;
}
.kwa.kwaw.kwaw-dunkel {
  --c-neu-bg: #3a2a10; --c-neu-tx: #f5c069; --c-neu-p: #f5a623;
  --c-arb-bg: #3d1a14; --c-arb-tx: #ff9a85; --c-arb-p: #ff6a4d;
  --c-fer-bg: #12301e; --c-fer-tx: #7fe0a6; --c-fer-p: #57d48b;
  --c-erl-bg: #2a2827; --c-erl-tx: #c9c5c2; --c-erl-p: #8a8684;
  --c-sto-bg: #3d1a14; --c-sto-tx: #ff9a85;
}

/* --- Rumpf: Hauptspalte + Seitenleiste (die Seitenleiste steht im DOM zuerst, order bringt sie nach rechts) --- */
/* unten etwas mehr Luft: am Kassa-PC war die letzte Zeile der Seitenleiste um Haaresbreite abgeschnitten (Şevket 06.10.) */
.kwaw .kwaw-rumpf { flex: 1 1 0; min-height: 0; display: flex; gap: 14px; padding: 12px 16px 22px; }
.kwaw .kwaw-haupt { order: 1; flex: 1 1 0; min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.kwaw .kwaw-seite { order: 2; flex: 0 0 340px; min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--pos-karte); border: 2px solid var(--pos-rand); overflow: hidden; }
.kwaw .kwaw-seite .kwa-blatt-gross { background: transparent; }
.kwaw .kwaw-seite .kwa-blatt-zu { width: 40px; height: 40px; border: 2px solid var(--pos-rand); border-radius: 0; background: transparent; font-size: 20px; }
/* Blatt in der Seitenleiste: Kopf und Knopfreihe schlanker, damit die Positionen Platz bekommen (bei 1024×768 blieben sonst ~100 px) */
.kwaw .kwaw-seite .kwa-blatt-kopf { padding: 12px 14px 10px; }
.kwaw .kwaw-seite .kwa-blatt-symbol { width: 44px; height: 44px; border-radius: 0; }
.kwaw .kwaw-seite .kwa-blatt-symbol svg { width: 26px; height: 26px; }
.kwaw .kwaw-seite .kwa-blatt-name { font-size: 22px; }
.kwaw .kwaw-seite .kwa-blatt-zeit-wert { font-size: 28px; }
.kwaw .kwaw-seite .kwa-blatt-fuss { padding: 8px 12px 10px; gap: 6px; }
.kwaw .kwaw-seite .kwa-blatt-knoepfe { gap: 6px; }
.kwaw .kwaw-seite .kwa-blatt-knoepfe .kwa-zweit { min-height: 44px; min-width: 0; padding: 4px 6px; flex: 1 1 calc(50% - 3px); flex-direction: row; justify-content: center; align-items: center; gap: 6px; font-size: 15px; letter-spacing: 0; text-align: center; border-radius: 0; box-sizing: border-box; overflow: hidden; }
.kwaw .kwaw-seite .kwa-blatt-knoepfe .kwa-zweit span { min-width: 0; font-size: 11.5px; letter-spacing: 0; line-height: 1.15; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.kwaw .kwaw-seite .kwa-blatt-knoepfe .kwa-knopf { height: 48px; font-size: 18px; border-radius: 0; box-shadow: none; }
/* Knopftexte immer mittig und umbrechbar, in jeder Blatt-Ansicht (Şevket 23.10.: STORNIEREN / IN VORBEREITUNG ragten aus dem Feld) */
.kwa-blatt-knoepfe .kwa-zweit { justify-content: center; text-align: center; }
.kwa-blatt-knoepfe .kwa-zweit span { white-space: normal; text-align: center; overflow-wrap: anywhere; }

/* --- Reiter --- */
.kwaw .kwaw-reiter { flex: none; display: flex; }
.kwaw .kwaw-reiter-knopf { flex: 1 1 0; min-width: 0; min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; border: 2px solid var(--pos-rand); background: var(--pos-karte); color: var(--pos-text); font-family: var(--schrift); font-weight: 800; font-size: 15.5px; cursor: pointer; white-space: nowrap; }
.kwaw .kwaw-reiter-knopf + .kwaw-reiter-knopf { border-left: 0; }
.kwaw .kwaw-reiter-knopf small { font-weight: 600; font-size: 12.5px; color: var(--pos-leise); overflow: hidden; text-overflow: ellipsis; }
.kwaw .kwaw-reiter-knopf[aria-selected="true"] { background: var(--pos-text); color: var(--pos-bg); }
.kwaw .kwaw-reiter-knopf[aria-selected="true"] small { color: var(--pos-bg); opacity: .75; }
.kwaw .kwaw-reiter-zahl { font-variant-numeric: tabular-nums; }
.kwaw .kwaw-punkt { flex: none; width: 10px; height: 10px; border-radius: 99px; background: var(--w-akz); }

/* --- Liste, Zähler, Zuletzt --- */
.kwaw .kwaw-liste { flex: 1 1 0; min-height: 0; overflow-y: auto; padding: 2px; display: block; scroll-snap-type: none; }
.kwaw .kwaw-liste > .kwa-leer { padding: 32px 12px; font-size: 17px; }
.kwaw .kwaw-haupt .kwa-zuletzt { flex: none; margin: 0; min-height: 44px; padding: 4px 10px; font-size: 14px; border-radius: 0; border: 2px dashed var(--pos-rand); background: transparent; }
.kwaw .kwaw-haupt .kwa-zuletzt[hidden] { display: none; }
.kwaw .kwa-zuletzt .kwa-zweit { width: auto; min-height: 36px; padding: 0 10px; font-size: 14px; border-radius: 0; }
.kwaw .kwa-zuletzt-wort { font-family: var(--schrift); font-size: 12px; }
.kwaw .kwa-seiten { flex: none; flex-direction: row; align-items: baseline; gap: 10px; padding: 0 2px; }
.kwaw .kwa-seiten-zahl { font-family: var(--schrift); font-size: 13px; font-weight: 800; }
.kwaw .kwa-seiten-sub { font-size: 12px; }

/* --- Karten (A) und Zeilen (B): gemeinsame Bausteine --- */
.kwaw .kwaw-karte, .kwaw .kwaw-zeile, .kwaw .kwaw-kompakt { background: var(--pos-karte); border: 2px solid var(--pos-rand); color: var(--pos-text); }
.kwaw .kwaw-gewaehlt { outline: 3px solid var(--w-akz); outline-offset: 1px; }
.kwaw .kwaw-test { border-style: dashed; }
.kwaw .kwaw-nr { flex: none; min-width: 30px; font-size: 24px; line-height: 1.05; font-weight: 800; font-variant-numeric: tabular-nums; }
.kwaw .kwaw-wer { flex: 1 1 0; min-width: 0; display: block; }
.kwaw .kwaw-wer > b { display: block; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwaw .kwaw-wer > span { display: block; font-size: 13px; color: var(--pos-leise); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwaw .kwaw-rechts { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.kwaw .kwaw-betrag { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kwaw .kwaw-artikel { display: block; font-size: 13.5px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kwaw .kwaw-extra { display: block; font-size: 12.5px; font-weight: 700; color: var(--pos-leise); line-height: 1.35; }
.kwaw .kwaw-extra .kwa-marke { margin-left: 6px; border-radius: 0; }
.kwaw .kwaw-warn { color: var(--w-akz); }
.kwaw .kwaw-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.kwaw .kwaw-chip i { width: 7px; height: 7px; border-radius: 99px; display: inline-block; background: currentColor; }
.kwaw .kwaw-c-NEU { background: var(--c-neu-bg); color: var(--c-neu-tx); } .kwaw .kwaw-c-NEU i { background: var(--c-neu-p); }
.kwaw .kwaw-c-IN_ARBEIT { background: var(--c-arb-bg); color: var(--c-arb-tx); } .kwaw .kwaw-c-IN_ARBEIT i { background: var(--c-arb-p); }
.kwaw .kwaw-c-FERTIG, .kwaw .kwaw-c-UNTERWEGS { background: var(--c-fer-bg); color: var(--c-fer-tx); } .kwaw .kwaw-c-FERTIG i, .kwaw .kwaw-c-UNTERWEGS i { background: var(--c-fer-p); }
.kwaw .kwaw-c-ERLEDIGT { background: var(--c-erl-bg); color: var(--c-erl-tx); } .kwaw .kwaw-c-ERLEDIGT i { background: var(--c-erl-p); }
.kwaw .kwaw-c-STORNIERT { background: var(--c-sto-bg); color: var(--c-sto-tx); } .kwaw .kwaw-c-STORNIERT i { background: var(--c-sto-tx); }
.kwaw .kwaw-aktion { display: flex; gap: 6px; align-items: stretch; }
.kwaw .kwaw-lab { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--pos-leise); text-transform: uppercase; }
.kwaw .kwaw-min { flex: 1 1 0; min-width: 42px; min-height: 42px; padding: 0 4px; border: 2px solid var(--pos-rand); background: transparent; color: var(--pos-text); font-family: var(--schrift); font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer; }
.kwaw .kwaw-gross { flex: 1 1 0; min-height: 44px; padding: 0 12px; border: 0; background: var(--w-ok); color: #fff; font-family: var(--schrift); font-weight: 800; font-size: 15px; text-align: left; cursor: pointer; }
.kwaw .kwaw-gross.kwaw-neutral { background: transparent; color: var(--pos-text); border: 2px solid var(--pos-rand); }
.kwaw .kwaw-gross.kwaw-akz { background: var(--pos-text); color: var(--pos-bg); }
.kwaw .kwaw-gross.kwaw-gefahr { background: var(--w-akz); color: #fff; }
.kwaw .kwaw-mehr { flex: none; min-width: 44px; min-height: 42px; border: 2px solid var(--pos-rand); background: transparent; color: var(--pos-text); font-weight: 900; font-size: 16px; cursor: pointer; }

/* --- Variante A: Karten --- */
.kwaw .kwaw-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 10px; align-items: start; }
.kwaw .kwaw-karte { padding: 9px 10px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.kwaw .kwaw-karte-koerper { display: flex; flex-direction: column; gap: 7px; width: 100%; text-align: left; background: transparent; color: inherit; cursor: pointer; }
.kwaw .kwaw-k1 { display: flex; gap: 10px; align-items: flex-start; }

/* --- Variante B: Zeilen --- */
.kwaw .kwaw-zeilen { display: flex; flex-direction: column; gap: 6px; }
.kwaw .kwaw-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; min-height: 66px; }
.kwaw .kwaw-zeile-koerper { flex: 1 1 280px; min-width: 0; display: grid; grid-template-columns: 40px 92px minmax(0, 1fr) auto; column-gap: 8px; align-items: center; text-align: left; background: transparent; color: inherit; cursor: pointer; }
.kwaw .kwaw-zeile-koerper .kwaw-extra { grid-column: 3 / -1; }
.kwaw .kwaw-zeit > b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kwaw .kwaw-zeit > span { display: block; font-size: 12.5px; color: var(--pos-leise); font-weight: 600; }
.kwaw .kwaw-zeile .kwaw-aktion { flex: 0 0 auto; justify-content: flex-end; }
.kwaw .kwaw-zeile .kwaw-gross { flex: 0 0 auto; min-width: 140px; }
.kwaw .kwaw-zeile .kwaw-min { flex: 0 0 auto; }
.kwaw .kwaw-zeile .kwa-meldung { flex-basis: 100%; }

/* --- Erledigt kompakt (beide Varianten) --- */
.kwaw .kwaw-erl { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 6px; }
.kwaw .kwaw-kompakt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 4px 10px; min-height: 46px; font-size: 14px; min-width: 0; }
.kwaw .kwaw-kompakt-koerper { flex: 1 1 0; min-width: 0; display: grid; grid-template-columns: 40px 56px minmax(0, 1fr) auto 80px; gap: 10px; align-items: center; text-align: left; background: transparent; color: inherit; cursor: pointer; }
.kwaw .kwaw-kompakt .kwaw-nr { font-size: 18px; }
.kwaw .kwaw-kz { font-weight: 800; font-variant-numeric: tabular-nums; }
.kwaw .kwaw-kz-rechts { display: inline-flex; }
.kwaw .kwaw-kompakt .kwaw-betrag { text-align: right; }
.kwaw .kwaw-kompakt.kwaw-s-STORNIERT { border-color: var(--c-sto-tx); }
.kwaw .kwaw-kompakt .kwaw-wer .kwa-marke { display: inline-block; margin-left: 6px; border-radius: 0; }
.kwaw .kwaw-warnknopf { flex: none; min-height: 34px; padding: 0 8px; border: 2px solid var(--w-akz); background: transparent; color: var(--w-akz); font-family: var(--schrift); font-weight: 800; font-size: 12.5px; cursor: pointer; }
.kwaw .kwaw-kompakt .kwa-meldung { flex-basis: 100%; }

/* --- Seitenleiste: Reservierungen --- */
.kwaw .kwaw-seite-kopf { flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 2px solid var(--pos-rand); }
.kwaw .kwaw-seite-kopf b { flex: 1 1 auto; font-size: 17px; font-weight: 800; }
.kwaw .kwaw-seite-rumpf { flex: 1 1 0; min-height: 0; overflow: auto; padding: 4px 12px 16px; display: flex; flex-direction: column; }
.kwaw .kwaw-seite-rumpf > * { flex: none; }
.kwaw .kwaw-seite-fuss { flex: none; padding: 8px 12px; border-top: 2px solid var(--pos-rand); }
.kwaw .kwaw-mini-seg { display: flex; }
.kwaw .kwaw-mini-seg > button, .kwaw .kwaw-datum { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 9px; border: 2px solid var(--pos-rand); background: transparent; color: var(--pos-text); font-family: var(--schrift); font-weight: 700; font-size: 12.5px; white-space: nowrap; cursor: pointer; }
.kwaw .kwaw-mini-seg > * + * { border-left: 0; }
.kwaw .kwaw-mini-seg > button[aria-pressed="true"], .kwaw .kwaw-datum[aria-pressed="true"] { background: var(--pos-text); color: var(--pos-bg); }
.kwaw .kwaw-datum input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; margin: 0; padding: 0; border: 0; min-height: 0; }
/* Am echten Portal ersetzt der Datums-Wähler (dwRuesteAus) JEDES input[type=date] durch einen sichtbaren Knopf .datum-knopf davor — in der Seitenleiste stand er
   als „📅 06.10.20…“ breit neben „Datum“ und lief über den Rand (Şevket 06.10. abends). Hier bleibt er der Auslöser (er öffnet den Wähler), aber unsichtbar über dem ganzen Etikett. */
.kwaw .kwaw-datum .datum-knopf { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer; }
.kwaw .kwaw-res-tage-zahl { font-variant-numeric: tabular-nums; opacity: .8; }
.kwaw .kwaw-res-summe { flex: none; padding: 6px 12px 0; font-size: 13px; font-weight: 700; color: var(--pos-leise); }
.kwaw .kwaw-res-summe:empty { display: none; }
.kwaw .kwaw-res { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 8px; padding: 6px 0; border-bottom: 1px solid var(--pos-linie-fein); }
.kwaw .kwaw-res-koerper { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: center; text-align: left; background: transparent; color: inherit; cursor: pointer; font-size: 14px; }
.kwaw .kwaw-res-z { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kwaw .kwaw-res-n { display: block; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kwaw .kwaw-res-n small { display: block; font-weight: 600; font-size: 12.5px; color: var(--pos-leise); overflow: hidden; text-overflow: ellipsis; }
.kwaw .kwaw-res.kwa-res-da { opacity: .55; }
.kwaw .kwaw-res .kwa-meldung { grid-column: 1 / -1; }
.kwaw .kwaw-res-ok { flex: none; min-height: 36px; padding: 0 8px; font-size: 12.5px; }
.kwaw .kwaw-res-leer { padding: 18px 4px; font-size: 14px; color: var(--pos-leise); }
.kwaw .kwaw-seite .kwa-zuletzt { flex: none; margin: 0 12px 8px; min-height: 40px; padding: 4px 8px; font-size: 13px; border-radius: 0; border: 2px dashed var(--pos-rand); background: transparent; }
.kwaw .kwaw-seite .kwa-zuletzt[hidden] { display: none; }

/* --- Dialog „Reservierung bearbeiten" --- */
.kwaw .kwaw-resdialog { width: min(460px, 94vw); }
.kwaw .kwaw-res-info { font-size: 15px; }
.kwaw .kwaw-res-info span { font-size: 13.5px; color: var(--pos-leise); }
.kwaw .kwaw-resdialog .kwa-blatt-zeile { font-size: 14px; }
.kwaw .kwaw-resdialog .kwa-blatt-zeile.kwa-notiz { padding: 6px 10px; border-radius: 0; }
/* dasselbe für die Uhrzeit im Dialog: der Uhrzeit-Wähler setzt .zeit-knopf vor das type=time-Feld — wie das Feld gestaltet, damit die Reihe −15 · Zeit · +15 stimmt */
.kwaw .kwaw-aktion .zeit-knopf { flex: 1 1 0; width: auto; min-width: 0; min-height: 44px; margin: 0; padding: 0 10px; justify-content: center; border: 2px solid var(--pos-rand); border-radius: 0; background: var(--pos-karte); color: var(--pos-text); font: inherit; font-size: 20px; font-weight: 800; }
.kwaw .kwaw-aktion .zeit-knopf::before { content: none; }
.kwaw .kwaw-zeitfeld { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 10px; border: 2px solid var(--pos-rand); border-radius: 0; background: var(--pos-karte); color: var(--pos-text); font: inherit; font-size: 20px; font-weight: 800; text-align: center; }
.kwaw .kwaw-pers { flex: 1 1 0; align-self: center; text-align: center; font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kwaw .kwaw-zahlknopf { flex: 0 0 56px; font-size: 22px; }
.kwaw .kwaw-storno { width: 100%; min-height: 44px; border: 2px solid var(--w-akz); background: transparent; color: var(--w-akz); font-family: var(--schrift); font-weight: 800; font-size: 14.5px; cursor: pointer; }
.kwaw .kwaw-warn-text { color: var(--w-akz); font-weight: 700; }
.kwaw a.kwaw-zeilenknopf { text-decoration: none; }
.kwaw .kwaw-resdialog .fehler { margin: 0; }

/* --- Stoßzeit (W1-Stil): Jetzt dran groß links, Warteschlange + nächste Reservierungen rechts --- */
.kwaw .kwaw-stoss { flex: 1 1 0; min-width: 0; min-height: 0; display: flex; gap: 14px; }
.kwaw .kwaw-dran { flex: 1 1 0; min-width: 0; min-height: 0; padding: 0; display: flex; flex-direction: column; background: transparent; }
.kwaw .kwaw-dran-wort { flex: none; padding-bottom: 6px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--w-akz); }
.kwaw .kwaw-dran .kwa-blatt { border: 3px solid var(--w-akz); border-radius: 0; background: var(--pos-karte); }
.kwaw .kwaw-stoss .kwa-schlange { flex: 0 0 340px; width: 340px; min-height: 0; background: var(--pos-karte); border: 2px solid var(--pos-rand); }
.kwaw .kwaw-stoss .kwa-schlange-kopf { flex: none; height: auto; padding: 10px 12px; border-bottom: 2px solid var(--pos-rand); font-family: var(--schrift); font-size: 17px; font-weight: 800; letter-spacing: 0; color: var(--pos-text); }
.kwaw .kwaw-stoss .kwa-schlange-liste { padding: 8px 12px; gap: 6px; scroll-snap-type: none; }
.kwaw .kwaw-stoss .kwa-kachel { min-height: 56px; padding: 0 10px; gap: 10px; border-radius: 0; border: 2px solid var(--pos-rand); border-left-width: 6px; background: transparent; }
.kwaw .kwaw-stoss .kwa-kachel.kwa-NEU { border-left-color: var(--c-neu-p); }
.kwaw .kwaw-stoss .kwa-kachel.kwa-IN_ARBEIT { border-left-color: var(--c-arb-p); }
.kwaw .kwaw-stoss .kwa-kachel.kwa-FERTIG { border-left-color: var(--c-fer-p); }
.kwaw .kwaw-stoss .kwa-kachel-gewaehlt { outline: 3px solid var(--w-akz); outline-offset: 1px; }
.kwaw .kwaw-stoss .kwa-kachel-zeit-wert { font-family: var(--schrift); font-size: 18px; font-weight: 800; }
.kwaw .kwaw-stoss .kwa-kachel-name { font-size: 15px; }
.kwaw .kwaw-stoss .kwa-kachel-sub { font-size: 12.5px; }
.kwaw .kwaw-stoss .kwa-kachel-summe { font-family: var(--schrift); font-size: 15px; font-weight: 800; }
.kwaw .kwaw-stoss .kwaw-res-naechste { flex: 0 0 auto; max-height: 45%; border: 0; border-top: 2px solid var(--pos-rand); }
.kwaw .kwaw-res-naechste .kwaw-seite-rumpf { flex: 0 1 auto; }

/* ＋ Neue Bestellung an der Kassa (Etappe 5): das W2-Blatt (#gbwNeu, trägt gbw-nur → oben per !important versteckt) liegt als
   Vollbild-Ebene ÜBER dem Wächter (z 30) und UNTER dem Alarm (350). Die ID macht die Regel stärker als `html.kassa .gbw-nur`. */
html.kassa.gbw-neu-offen #gbwNeu { display: block !important; position: fixed; inset: 0; z-index: 35; overflow-y: auto; padding: 12px 20px 40px; background: var(--t-bg); color: var(--t-ink); }
/* Der dunkle Wächter bekommt ein dunkles W2 (die --t-*-Farben des Blatts überschrieben, wie die Wächter-Palette) */
html.kassa.kwa-an:not(.kwa-hell-an) #gbwNeu { --t-bg: #141312; --t-surface: #201e1d; --t-surface2: #2a2827; --t-ink: #f3f2f2; --t-ink2: #a9a5a2; --t-line: #3a3735; --t-accent: #ff5a3c; --t-accent-ink: #ffffff; --t-err: #ff6a4d; --t-warn: #f5a623; --t-ok: #2f9a55; color-scheme: dark; }
html.kassa.kwa-an:not(.kwa-hell-an) #gbwNeu input, html.kassa.kwa-an:not(.kwa-hell-an) #gbwNeu textarea, html.kassa.kwa-an:not(.kwa-hell-an) #gbwNeu select { background: #2a2827; color: #f3f2f2; border-color: #6a6662; }
@media (max-width: 1199px) {
  .kwaw .kwaw-reiter-knopf small { display: none; }
}
@media (max-width: 1150px) {
  .kwaw .kwaw-rumpf { gap: 10px; padding: 8px 12px; }
  .kwaw .kwaw-seite, .kwaw .kwaw-stoss .kwa-schlange { flex-basis: 300px; width: 300px; }
  /* Zeilen (B) auf 1024 px: Zusage-Knöpfe schmaler, damit die Aktion neben dem Namen bleibt (sonst 2 Zeilen je Bestellung) */
  .kwaw .kwaw-zeile { gap: 4px 6px; padding: 6px 8px; }
  .kwaw .kwaw-zeile-koerper { flex-basis: 200px; grid-template-columns: 32px 60px minmax(0, 1fr) auto; }
  .kwaw .kwaw-herkunft { display: none; }
  .kwaw .kwaw-zeit > b { font-size: 15px; }
  .kwaw .kwaw-zeile .kwaw-betrag { font-size: 14px; }
  .kwaw .kwaw-zeile .kwaw-zchip { padding: 2px 5px; font-size: 10.5px; }
  .kwaw .kwaw-zeile .kwaw-aktion { gap: 4px; }
  .kwaw .kwaw-zeile .kwaw-min { min-width: 34px; min-height: 38px; }
  .kwaw .kwaw-zeile .kwaw-gross { min-width: 92px; min-height: 40px; padding: 0 8px; font-size: 14px; }
  .kwaw .kwaw-zeile .kwaw-mehr { min-width: 38px; min-height: 38px; }
}
@media (max-width: 719px) {
  .kwaw .kwaw-rumpf, .kwaw .kwaw-stoss { flex-direction: column; }
  .kwaw .kwaw-seite, .kwaw .kwaw-stoss .kwa-schlange { flex: 0 0 auto; width: auto; max-height: 45%; }
}
/* ═══ ENDE: Kassa-Wächter W1 (Etappe 1–4) ═══ */
/* --- ANFANG: Daten-Export (Mandanten-Komplett-Export, 2026-09-17) --- */
.ex-balken-track { height: 10px; border-radius: 5px; background: var(--t-surface2); overflow: hidden; margin: 4px 0 6px 0; }
.ex-balken-fill { height: 100%; background: var(--gold-hell); border-radius: 5px; transition: width .4s ease; }
.ex-eintrag { padding: 8px 0; border-top: 1px solid rgba(0,0,0,.08); }
.ex-eintrag:first-child { border-top: 0; }
.ex-download { display: inline-block; margin-top: 6px; text-decoration: none; }
/* --- ENDE: Daten-Export --- */

/* --- ANFANG: App-Kasten — Startbildschirm-App + Meldungen aufs Handy (2026-09-21) --- */
/* Oben im Start-Reiter, gleiche Karte wie .ma-karte. Knoepfe nebeneinander:
   das globale button{width:100%} wird hier bewusst aufgehoben. */
.app-kasten { margin: 0 0 12px; padding: 12px 14px; border-radius: 14px; background: var(--t-surface); border: var(--t-lw) solid var(--t-line); color: var(--t-ink); }
.app-kasten-titel { font-size: 0.95rem; font-weight: 700; }
.app-kasten-text { font-size: 0.8125rem; color: var(--t-ink2); margin-top: 4px; line-height: 1.45; }
.app-kasten-knoepfe { display: flex; gap: 8px; margin-top: 10px; }
.app-kasten-knoepfe button { width: auto; flex: 1; min-height: 44px; margin: 0; padding: 0 14px; font-size: 0.9rem; text-align: center; }
.app-kasten-knoepfe button[hidden] { display: none; }
.app-kasten-meldung:empty { display: none; }
.app-kasten-meldung { margin-top: 8px; }
html.kassa .app-kasten { display: none; }
/* --- ENDE: App-Kasten --- */

/* --- ANFANG: Gutschein einlösen (Etappe T3, 2026-09-22) --- */
/* Das Fenster läuft an drei Stellen: Mehr-Menü (Handy), Admin-Reiter und
   Kassa-Dashboard. Die Tastatur-Kacheln stehen NUR an der Kassa — dort ist
   ein Touchscreen ohne Tastatur; am Handy tippt man ins Feld. */
.gut-ein-box { max-width: 560px; }
.gut-ein-code {
  width: 100%;
  margin-top: 10px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}
.gut-ein-zahl { width: 100%; font-size: 1.15rem; }
.gut-ein-tasten {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  margin-top: 12px;
}
.gut-ein-tasten[hidden] { display: none; }
.gut-ein-taste {
  /* 52 px: Fingerbreite am Touchscreen (dasselbe Maß wie die PC-App-Knöpfe). */
  min-height: 52px;
  width: auto;
  font-size: 1.15rem;
  font-weight: 700;
  border-radius: 10px;
}
.gut-ein-taste-weit { grid-column: span 4; font-size: 1rem; }
@media (max-width: 560px) {
  .gut-ein-tasten { grid-template-columns: repeat(6, 1fr); }
  .gut-ein-taste-weit { grid-column: span 3; }
  .gut-ein-code { font-size: 1.5rem; }
}
/* --- ENDE: Gutschein einlösen --- */

/* --- ANFANG: Gutschein-Auswertung (T6, 2026-09-23) --- */
/* Kleine Zahlentabelle in der Gutschein-Unteransicht. Bewusst eigene
   Klasse: die Listen des Portals sind Karten, hier braucht es einmal
   wirklich Spalten (ausgegeben / eingeloest / zurueck / verfallen). */
.gut-tabelle { width: 100%; border-collapse: collapse; font-size: 13px; }
.gut-tabelle th, .gut-tabelle td {
  border: 1px solid var(--rand, #ddd); padding: 4px 6px; text-align: left;
}
.gut-tabelle th { background: var(--flaeche-2, #f4f4f4); font-weight: 600; }
/* Am Handy scrollt die Tabelle waagrecht, statt die Seite zu sprengen. */
@media (max-width: 560px) {
  #gutMonatSummen { overflow-x: auto; }
  .gut-tabelle { min-width: 460px; }
}
/* --- ENDE: Gutschein-Auswertung --- */


/* --- ANFANG: Menüleiste einklappen (Şevket 22.09.) ---
   "sobald man Admin drückt, sollte die andere nach links schließen und wieder öffnen
   einen Pfeil-Button haben, dann mehr Platz für Vollbild."
   Gemessen: ab 1000 px steht der Drawer fest (248 px), ab 1600 px kommt im Admin-Bereich
   eine zweite Spalte mit den Reitern dazu (232 px) — zusammen 480 px, die dem Inhalt
   fehlen. Eingeklappt bleibt nur der Pfeil stehen.
   ⚠️ Nur ab 1000 px: darunter ist der Drawer ohnehin ein Overlay mit dem ☰-Knopf.
   ⚠️ Der Drawer wird NICHT über das hidden-Attribut geschaltet (Stolperfalle
      2026-08-13) — hier schiebt ihn eine Klasse nach links, wie beim Overlay auch. */
.menue-einklappen,
.menue-ausklappen { display: none; }

@media (min-width: 1000px) {
  .menue-einklappen {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    background: var(--t-surface2);
    border: none;
    border-radius: 50%;
    color: var(--papier-text);
    font-size: 1.1rem;
    line-height: 1;
  }

  /* Die Leiste fährt nach links hinaus. visibility zusätzlich, damit sie
     danach weder Klicks noch den Tastatur-Fokus fängt. */
  .drawer { transition: transform .22s ease, visibility .22s; }
  html.menue-leiste-zu .drawer {
    transform: translateX(-100%);
    visibility: hidden;
  }

  #screenHaupt.box { transition: margin-left .22s ease; }
  /* 44 px statt 0: genau die Spur, in welcher der Pfeil sitzt. */
  html.menue-leiste-zu #screenHaupt.box { margin-left: 44px; }

  html.menue-leiste-zu .menue-ausklappen {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 14px;
    left: 6px;
    z-index: 30;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background: var(--t-surface2);
    border: var(--t-lw) solid var(--t-line);
    border-radius: 50%;
    color: var(--papier-text);
    font-size: 1.1rem;
    line-height: 1;
  }
}

/* In der Kassa-Ansicht ist die Leiste ohnehin ausgeblendet — dann hat auch der
   Pfeil nichts zu suchen. Gedruckt wird keiner der beiden Knöpfe. */
html.kassa .menue-einklappen,
html.kassa .menue-ausklappen { display: none; }
@media print {
  .menue-einklappen,
  .menue-ausklappen { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer,
  #screenHaupt.box { transition: none; }
}
/* --- ENDE: Menüleiste einklappen --- */

/* ═══════════════════════════════════════════════════════════════════
   W1 Bestellungen (Vereinfachung Etappe 5, 05.10.) — Şevkets Wahl „Neu wie
   Entwurf W1". Nur im normalen Portal; /mitarbeiter/kassa (html.kassa) bleibt
   unverändert. Farben/Ecken nur aus den --t-*-Variablen (alle Design-Varianten).
   ═══════════════════════════════════════════════════════════════════ */
html.kassa .gbw-nur { display: none !important; }
/* Alter Kopf und alte Zeilen: im W1-Portal weg bzw. hinter Knöpfen */
html:not(.kassa) #mehrGastBestellungen > .zurueck-link,
html:not(.kassa) #mehrGastBestellungen > .sub-titel { display: none; }
html:not(.kassa):not(.gbw-tag-offen) #mehrGastBestellungen .gb-filter { display: none; }
html:not(.kassa) #kassaTechnik { display: none; }   /* 5b: die Zeilen stehen in W3 */
html:not(.kassa):not(.gbw-abgleich-offen) #gbKopf { display: none; }
html:not(.kassa) #gbReiter { display: none; }

/* --- Kopf --- */
.gbw-kopf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 0 12px; margin-bottom: 0; border-bottom: var(--t-lw, 2px) solid var(--t-ink); }
.gbw-knopf { width: auto; min-height: 44px; margin: 0; padding: 8px 16px; background: var(--t-surface); color: var(--t-ink); border: var(--t-lw, 2px) solid var(--t-ink); border-radius: var(--t-r2, 0); font-weight: 700; font-size: 0.95rem; white-space: nowrap; box-shadow: none; }
.gbw-knopf:hover { background: var(--t-surface2); }
.gbw-titel { display: flex; flex-direction: column; min-width: 0; }
.gbw-titel h2 { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--t-ink); line-height: 1.15; }
.gbw-standort-wahl { width: auto; min-height: 36px; margin: 4px 0 0; padding: 4px 28px 4px 10px; font-size: 0.95rem; font-weight: 700; }
.gbw-standort-wahl[hidden] { display: none; }
.gbw-tag { width: auto; min-height: 32px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; color: var(--t-ink2); font-weight: 600; font-size: 0.95rem; text-align: left; }
.gbw-dehn { flex: 1 1 auto; }
.gbw-mehr-huelle { position: relative; }
.gbw-mehr { position: absolute; right: 0; top: calc(100% + 6px); z-index: 25; min-width: 280px; display: flex; flex-direction: column; background: var(--t-surface); border: var(--t-lw, 2px) solid var(--t-ink); box-shadow: var(--t-shadow); }
.gbw-mehr[hidden] { display: none; }
.gbw-mehr > button, .gbw-mehr > a, .gbw-mehr > .btn-mini-secondary { display: block; width: 100%; min-height: 52px; margin: 0; padding: 12px 16px; background: var(--t-surface); color: var(--t-ink); border: 0; border-bottom: 1px solid var(--t-line); border-radius: 0; box-shadow: none; text-align: left; text-decoration: none; font-size: 0.95rem; font-weight: 700; white-space: normal; }
.gbw-mehr > :last-child { border-bottom: 0; }
.gbw-mehr > :hover { background: var(--t-surface2); }
/* Standort/Tag (alte Filterzeile) öffnet sich unter dem Kopf */
html.gbw-tag-offen:not(.kassa) #mehrGastBestellungen .gb-filter { margin: 10px 0 0; }

/* --- Statuszeile --- */
.gbw-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin: 0 -14px 12px; background: var(--t-surface2); border-bottom: var(--t-lw, 2px) solid var(--t-ink); }
.gbw-punkt { font-size: 1.1rem; line-height: 1; }
.gbw-punkt-ok { color: var(--t-ok); }
.gbw-punkt-warn { color: var(--t-warn); }
.gbw-punkt-leise { color: var(--t-ink2); }
.gbw-status-text { flex: 1 1 220px; font-weight: 700; color: var(--t-ink); }
.gbw-pause-huelle { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.gbw-pause-wahl { display: inline-flex; gap: 8px; }
.gbw-status-grund { flex: 1 1 100%; font-size: 0.875rem; font-weight: 600; color: var(--t-warn); }
.gbw-status-meldung { flex: 1 1 100%; }
.gbw-status-meldung:empty { display: none; }

/* --- Reiter Offen | Erledigt --- */
.gbw-reiter { display: flex; max-width: 440px; margin: 0 0 14px; border: var(--t-lw, 2px) solid var(--t-ink); }
.gbw-reiter-knopf { flex: 1 1 0; width: auto; min-height: 48px; margin: 0; padding: 8px 12px; border: 0; border-radius: 0; box-shadow: none; background: var(--t-surface); color: var(--t-ink); font-weight: 700; font-size: 1rem; }
.gbw-reiter-knopf[aria-selected="true"] { background: var(--t-ink); color: var(--t-surface); }

/* --- Raster: Karten links, Feld rechts (ab 1000 px) --- */
#gbListe:has(> .gbw-raster) { display: block; }
.gbw-raster.gbw-breit { display: grid; grid-template-columns: minmax(0, 1fr) min(440px, 40%); gap: 16px; align-items: start; }
.gbw-breit > .gbw-karten { grid-column: 1; grid-row: 1; }
.gbw-breit > .gbw-feld { grid-column: 2; grid-row: 1; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.gbw-karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; align-content: start; }
.gbw-karten > .liste-leer { grid-column: 1 / -1; }
.gbw-feld-leer { padding: 24px 18px; border: var(--t-lw, 2px) dashed var(--t-line); color: var(--t-ink2); text-align: center; font-size: 0.95rem; }
/* Schmal: das Feld liegt über der Liste */
.gbw-schmal > .gbw-schleier { position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, 0.35); }
.gbw-schmal > .gbw-feld { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(600px, 100vw); overflow-y: auto; background: var(--t-bg); box-shadow: var(--t-shadow); }

/* --- Karte --- */
.gbw-karte { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--t-surface); border: var(--t-lw, 2px) solid var(--t-ink); border-radius: var(--t-r, 0); color: var(--t-ink); min-width: 0; }
.gbw-karte.gbw-gewaehlt { outline: 3px solid var(--t-accent); outline-offset: 2px; }
.gbw-karte.gbw-test { border-style: dashed; }
.gbw-k-kopf { display: flex; align-items: flex-start; gap: 12px; }
.gbw-nr { font-size: 1.75rem; font-weight: 800; line-height: 1; min-width: 2ch; font-variant-numeric: tabular-nums; }
.gbw-k-titel { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.gbw-name { font-weight: 800; font-size: 1.05rem; overflow-wrap: anywhere; }
.gbw-sub { color: var(--t-ink2); font-size: 0.9rem; }
.gbw-k-rechts { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.gbw-summe { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gbw-zeile { font-size: 0.9rem; overflow-wrap: anywhere; }
.gbw-positionen { list-style: none; margin: 4px 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.gbw-positionen li { display: flex; gap: 10px; font-size: 0.95rem; }
.gbw-menge { min-width: 2ch; font-weight: 800; font-variant-numeric: tabular-nums; }
.gbw-wort { margin-top: 4px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; color: var(--t-ink2); }
.gbw-zusage { display: flex; gap: 6px; flex-wrap: wrap; }
.gbw-zweit { flex: 1 1 0; width: auto; min-width: 0; min-height: 48px; margin: 0; padding: 6px 4px; background: var(--t-surface); color: var(--t-ink); border: var(--t-lw, 2px) solid var(--t-ink); border-radius: var(--t-r2, 0); box-shadow: none; font-weight: 700; font-size: 0.9rem; }
.gbw-zweit:hover { background: var(--t-surface2); }
.gbw-schritt { display: flex; gap: 8px; margin-top: 4px; }
.gbw-ok { flex: 1 1 auto; width: auto; min-height: 52px; margin: 0; padding: 8px 16px; background: var(--t-ok); color: var(--t-signal-ink, #fff); border: 0; border-radius: var(--t-r2, 0); box-shadow: none; font-weight: 800; font-size: 1.05rem; text-align: left; }
.gbw-mehr-knopf { flex: none; width: 56px; min-height: 52px; margin: 0; padding: 0; background: var(--t-surface); color: var(--t-ink); border: var(--t-lw, 2px) solid var(--t-ink); border-radius: var(--t-r2, 0); box-shadow: none; font-weight: 800; font-size: 1.4rem; line-height: 1; text-align: center; }
.gbw-mehr-knopf:hover { background: var(--t-surface2); }
/* kompakt: Erledigt / Storniert */
.gbw-kompakt { padding: 10px 12px; }
.gbw-kompakt-koerper { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; color: inherit; text-align: left; }
.gbw-kompakt .gbw-nr { font-size: 1.35rem; }
.gbw-kompakt.gbw-STORNIERT { border-color: var(--t-err); }

/* --- Feld „Bestellung offen" = kwaBlattHtml in heller Hülle --- */
.kwa.gbw-feld-huelle { position: relative; inset: auto; z-index: auto; display: flex; flex-direction: column; gap: 8px; background: transparent; }
.gbw-feld-huelle .kwa-blatt-gross { flex: none; min-height: 0; }
.gbw-feld-huelle .kwa-blatt-inhalt { overflow: visible; padding: 12px 16px; }
.gbw-feld-huelle .kwa-blatt-fuss { padding: 12px 16px 16px; }
.gbw-feld-huelle .kwa-blatt-knoepfe { gap: 8px; }
.gbw-feld-huelle .kwa-blatt-knoepfe .kwa-zweit { min-height: 52px; min-width: 0; padding: 0 12px; font-size: 18px; flex: 1 1 140px; }
.gbw-feld-huelle .kwa-blatt-knoepfe .kwa-zweit span { font-size: 13px; }
.gbw-feld-huelle .kwa-blatt-knoepfe .kwa-knopf { min-width: 0; flex: 1 1 100%; margin: 0; }
.kwa .gbw-feld-zu { align-self: flex-end; width: auto; min-height: 44px; padding: 6px 14px; background: var(--t-surface); color: var(--t-ink); border: var(--t-lw, 2px) solid var(--t-ink); border-radius: var(--t-r2, 0); font-weight: 700; font-size: 0.95rem; }
@media (max-width: 600px) {
  .gbw-kopf { gap: 8px; }
  .gbw-titel h2 { font-size: 1.25rem; }
  .gbw-status { margin: 0 0 12px; }
}
/* --- ENDE: W1 Bestellungen --- */

/* ═══════════════════════════════════════════════════════════════════
   W3 Einstellungen (Vereinfachung Etappe 5b, 05.10.) — Şevkets Wahl „wie
   Entwurf W3: alles auf einer Seite". Nur im normalen Portal; sichtbar mit
   html.gbw-einst-offen, dann ist die Liste weg. Farben nur aus --t-*.
   ═══════════════════════════════════════════════════════════════════ */
#gbwEinst { display: none; }
html:not(.kassa).gbw-einst-offen #gbwEinst { display: block; }
html:not(.kassa).gbw-einst-offen #mehrGastBestellungen > :not(#gbwEinst) { display: none !important; }
.gbw-einst-sub { color: var(--t-ink2); font-size: 0.95rem; font-weight: 600; }
.gbw-einst-abschnitt { margin: 22px 0 10px; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t-ink2); }
.gbw-einst-oben { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: end; margin: 16px 0; }
.gbw-einst-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.gbw-spalte { padding: 14px 16px; background: var(--t-surface); border: var(--t-lw, 2px) solid var(--t-ink); border-radius: var(--t-r, 0); color: var(--t-ink); min-width: 0; }
.gbw-spalte h3 { margin: 0 0 12px; font-size: 1.15rem; font-weight: 800; color: var(--t-ink); }
.gbw-einst-ort { font-weight: 800; font-size: 1.1rem; padding: 10px 0; }
/* Standort-Reiter */
.gbw-segment { display: flex; border: var(--t-lw, 2px) solid var(--t-ink); }
.gbw-segment > button { flex: 1 1 0; width: auto; min-height: 48px; margin: 0; padding: 8px 12px; border: 0; border-radius: 0; box-shadow: none; background: var(--t-surface); color: var(--t-ink); font-weight: 700; font-size: 0.95rem; }
.gbw-segment > button[aria-selected="true"] { background: var(--t-ink); color: var(--t-surface); }
/* Online-Shop-Zeile */
.gbw-shop-zeile { display: flex; align-items: center; gap: 12px; }
.gbw-shop-text { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.gbw-shop-text span { color: var(--t-ink2); font-size: 0.9rem; }
/* Felder */
.gbw-feld { display: block; margin: 0 0 4px; }
.gbw-feld-titel { display: block; margin: 10px 0 6px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--t-ink2); }
.gbw-feld input[type="text"], .gbw-feld textarea { width: 100%; min-height: 52px; margin: 0; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.gbw-feld textarea { min-height: 64px; }
.gbw-hinweis { margin: 4px 0 6px; font-size: 0.85rem; color: var(--t-ink2); line-height: 1.4; }
.gbw-zwei { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gbw-abstand { margin-top: 14px; }
.gbw-unterkopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: var(--t-lw, 2px) solid var(--t-ink); }
.gbw-spalten-kopf { margin-top: 0; padding-top: 0; border-top: 0; }
.gbw-spalten-kopf h3 { margin: 0; }
.gbw-tage { margin-top: 8px; }
.gbw-tag-zeile { min-height: 48px; border-bottom: 1px solid var(--t-line); font-size: 0.95rem; }
.gbw-tag-zeile .ws-tag-name { flex: none; width: 118px; font-weight: 700; }
.gbw-tag-zeile .ws-tag-zeiten { min-width: 0; }
.gbw-tag-zeile .ws-tag-zeiten input[type="time"] { min-width: 0; min-height: 44px; padding: 4px 6px; font-size: 0.95rem; }
.gbw-tag-zeile input[type="checkbox"] { width: 22px; height: 22px; }
/* Schalter An/Aus */
.gbw-schalter { display: inline-flex; align-items: center; gap: 10px; flex: none; margin: 0; font-weight: 700; cursor: pointer; }
.gbw-schalter .gbw-an, .gbw-schalter .gbw-aus { order: -1; }
.gbw-schalter input:checked ~ .gbw-aus, .gbw-schalter input:not(:checked) ~ .gbw-an { display: none; }

input[type=checkbox].gbw-sw { -webkit-appearance: none; appearance: none; position: relative; width: 56px; height: 32px; margin: 0; padding: 0; border: var(--t-lw, 2px) solid var(--t-ink); border-radius: 0; background: var(--t-surface); cursor: pointer; flex: none; }
input[type=checkbox].gbw-sw::before { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; background: var(--t-ink); transition: left 0.15s; }
input[type=checkbox].gbw-sw:checked { background: var(--t-ink); }
input[type=checkbox].gbw-sw:checked::before { left: 26px; background: var(--t-surface); }
.gbw-sw:disabled { opacity: 0.5; }
.gbw-sw:focus-visible { outline: 3px solid var(--t-accent); outline-offset: 2px; }
/* Ausnahmen je Bezirk */
.gbw-bezirke { border: var(--t-lw, 2px) solid var(--t-ink); }
.gbw-bezirk + .gbw-bezirk { border-top: 1px solid var(--t-line); }
.gbw-bezirk > summary { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; cursor: pointer; list-style: none; }
.gbw-bezirk > summary::-webkit-details-marker { display: none; }
.gbw-bezirk-kurz { flex: 1 1 auto; min-width: 0; color: var(--t-ink2); font-size: 0.9rem; }
.gbw-pfeil { font-size: 1.3rem; font-weight: 800; transition: transform 0.15s; }
.gbw-bezirk[open] .gbw-pfeil { transform: rotate(90deg); }
.gbw-bezirk-felder { padding: 0 12px 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.gbw-bezirk-felder .gbw-nie { grid-column: 1 / -1; }
/* Speichern */
.gbw-speichern-leiste { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.gbw-speichern-text { flex: 1 1 280px; color: var(--t-ink2); font-size: 0.95rem; }
.gbw-speichern { flex: 0 1 280px; width: auto; min-height: 56px; margin: 0; padding: 8px 20px; background: var(--t-accent); color: var(--t-signal-ink, #fff); border: 0; border-radius: var(--t-r2, 0); box-shadow: none; font-weight: 800; font-size: 1.1rem; text-align: left; }
.gbw-speichern:disabled { opacity: 0.6; }
/* Dieser PC: die verschobenen Zeilen */
.gbw-pc .gbw-spalte > select, .gbw-pc label select { width: 100%; min-height: 48px; margin: 6px 0 0; }
.gbw-pc #gbWaechterStatus { font-weight: 700; margin-bottom: 8px; }
.gbw-pc .gb-ton-wahl { display: flex; flex-direction: column; gap: 10px; }
.gbw-pc .gb-ton-wahl label { display: flex; flex-direction: column; gap: 4px; margin: 0; font-weight: 700; }
.gbw-pc .gb-ton-wahl label:last-child { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.gbw-pc .gb-ton-wahl input[type="range"] { flex: 1 1 140px; width: auto; margin: 0; }
.gbw-pc .gb-waechter-wahl { display: block; font-weight: 700; }
.gbw-pc .gb-waechter-wahl[hidden] { display: none; }
.gbw-pc #gbTonTestBtn, .gbw-pc #gbPcMeldungBtn { display: block; width: 100%; min-height: 48px; margin: 12px 0 0; background: var(--t-surface); color: var(--t-ink); border: var(--t-lw, 2px) solid var(--t-ink); border-radius: var(--t-r2, 0); box-shadow: none; font-weight: 700; }
.gbw-pc .gb-waechter { margin: 0 0 10px; background: transparent; padding: 0; }
.gbw-pc .gb-waechter[hidden], .gbw-pc .gbw-hinweis[hidden] { display: none; }
@media (max-width: 480px) {
  .gbw-tag-zeile { flex-wrap: wrap; padding: 6px 0; }
  .gbw-tag-zeile .ws-tag-zeiten { flex: 1 1 100%; }
}
/* ENDE: W3 Einstellungen */

/* ═══════════════════════════════════════════════════════════════════
   W2 Neue Bestellung (Vereinfachung Etappe 6, 05.10.) — Entwurf Web-Neu.png.
   Nur im normalen Portal; sichtbar mit html.gbw-neu-offen, dann ist die Liste
   weg. Ein gefüllter Akzent je Ansicht: „Bestellung anlegen“. Farben nur aus --t-*.
   ⚠️ Alles unter #gbwNeu: die globale button-Regel (width 100 %, margin) sonst
      stärker als eine einzelne Klasse.
   ═══════════════════════════════════════════════════════════════════ */
#gbwNeu { display: none; }
html:not(.kassa).gbw-neu-offen #gbwNeu { display: block; }
html:not(.kassa).gbw-neu-offen #mehrGastBestellungen > :not(#gbwNeu) { display: none !important; }
/* Kopf-Knopf der Liste: der eine Akzent von W1 */
#gbwKopf .gbw-akzent { background: var(--t-accent); color: var(--t-accent-ink); border-color: var(--t-accent); font-weight: 800; }
#gbwNeu button { width: auto; margin: 0; box-shadow: none; }
#gbwNeu .gbw-neu-raster { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
#gbwNeu .gbw-neu-links { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1000px) {
  #gbwNeu .gbw-neu-raster { grid-template-columns: minmax(0, 1fr) minmax(360px, 400px); }
  #gbwNeu .gbw-neu-korb { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
}
/* Telefonnummer */
#gbwNeu .gbw-neu-suche { display: flex; gap: 10px; align-items: stretch; }
#gbwNeu .gbw-neu-suche input { flex: 1 1 auto; min-width: 0; margin: 0; min-height: 56px; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
#gbwNeu .gbw-neu-suche .gbw-knopf { min-height: 56px; }
#gbwNeu .gbw-neu-gast { margin-top: 12px; }
#gbwNeu .gbw-neu-gast-zeile { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 1.05rem; }
#gbwNeu .gbw-neu-sperre { margin-bottom: 10px; padding: 10px 12px; border: var(--t-lw, 2px) solid var(--t-err); color: var(--t-err); }
#gbwNeu .gbw-neu-fehler { padding: 10px 12px; border: var(--t-lw, 2px) solid var(--t-err); }
#gbwNeu .gbw-neu-fehler > strong { color: var(--t-err); }
#gbwNeu .gbw-neu-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
#gbwNeu .gbw-neu-knoepfe .gbw-knopf { min-height: 48px; }
#gbwNeu .gbw-leise { border-color: var(--t-line); color: var(--t-ink2); }
#gbwNeu .gbw-neu-dunkel { background: var(--t-ink); color: var(--t-surface); }
#gbwNeu .gbw-neu-form .gbw-feld input { min-height: 48px; }
#gbwNeu .gbw-neu-adresse { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 10px; }
#gbwNeu .gbw-neu-plz { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); }
#gbwNeu .gbw-neu-sperr { margin: 10px 0 0; }
/* Katalog */
#gbwNeu .gbw-neu-filter { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
#gbwNeu .gbw-neu-filter input[type="search"] { flex: 1 1 260px; min-width: 0; margin: 0; min-height: 52px; }
#gbwNeu .gbw-neu-pillen { display: flex; gap: 8px; flex-wrap: wrap; }
#gbwNeu .gbw-neu-pillen > button { min-height: 44px; padding: 6px 16px; border: var(--t-lw, 2px) solid var(--t-ink); border-radius: 999px; background: var(--t-surface); color: var(--t-ink); font-size: 0.95rem; font-weight: 700; text-align: center; }
#gbwNeu .gbw-neu-pillen > button[aria-selected="true"] { background: var(--t-ink); color: var(--t-surface); }
#gbwNeu .gbw-neu-gerichte { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); column-gap: 24px; }
#gbwNeu .gbw-neu-gericht { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 4px 0; border-top: 1px solid var(--t-line); }
#gbwNeu .gbw-neu-gname { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-weight: 700; }
#gbwNeu .gbw-neu-gpreis { flex: none; color: var(--t-ink2); font-variant-numeric: tabular-nums; }
#gbwNeu .gbw-neu-aus .gbw-neu-gname, #gbwNeu .gbw-neu-aus .gbw-neu-gpreis { color: var(--t-ink2); text-decoration: line-through; }
#gbwNeu .gbw-neu-klein { font-size: 0.85rem; font-weight: 400; color: var(--t-ink2); text-decoration: none; }
#gbwNeu .gbw-neu-pm { flex: none; width: 44px; min-width: 44px; min-height: 44px; height: 44px; padding: 0; border: var(--t-lw, 2px) solid var(--t-ink); border-radius: var(--t-r2, 0); background: var(--t-surface); color: var(--t-ink); font-size: 1.4rem; font-weight: 800; text-align: center; line-height: 1; }
#gbwNeu .gbw-neu-pm:disabled { opacity: 0.35; cursor: not-allowed; }
#gbwNeu .gbw-neu-anzahl { flex: none; min-width: 26px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
#gbwNeu .gbw-neu-extras { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; padding: 12px; border: var(--t-lw, 2px) solid var(--t-ink); }
#gbwNeu .gbw-neu-extras .ws-schalter { white-space: normal; font-weight: 600; min-height: 36px; }
#gbwNeu .gbw-neu-frei { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--t-line); }
#gbwNeu .gbw-neu-freiform { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; align-items: end; }
#gbwNeu .gbw-neu-freiform .gbw-neu-knoepfe { grid-column: 1 / -1; margin-top: 0; }
#gbwNeu .gbw-neu-link { min-height: 44px; padding: 4px 0; background: transparent; border: 0; color: var(--t-ink); font-weight: 700; font-size: 0.95rem; text-decoration: underline; text-underline-offset: 3px; }
#gbwNeu .gbw-neu-leer { padding: 12px 0; }
/* Korb */
#gbwNeu .gbw-neu-zeilen { border-top: var(--t-lw, 2px) solid var(--t-ink); margin-top: 8px; }
#gbwNeu .gbw-neu-zeile { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--t-line); }
#gbwNeu .gbw-neu-zname { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-top: 10px; overflow-wrap: anywhere; }
#gbwNeu .gbw-neu-zeile .gbw-neu-anzahl { padding-top: 12px; }
#gbwNeu .gbw-neu-zrechts { flex: none; display: flex; flex-direction: column; align-items: flex-end; padding-top: 10px; font-variant-numeric: tabular-nums; font-weight: 700; }
#gbwNeu .gbw-neu-zrechts .gbw-neu-link { min-height: 32px; font-size: 0.85rem; }
#gbwNeu .gbw-neu-zname .gbw-neu-link { min-height: 32px; text-align: left; }
#gbwNeu .gbw-neu-anm { margin-top: 2px; padding: 4px 8px; background: color-mix(in srgb, var(--t-warn) 18%, transparent); font-size: 0.9rem; font-weight: 700; }
#gbwNeu .gbw-neu-bearbeite { padding: 8px 0 12px; border-bottom: 1px solid var(--t-line); }
#gbwNeu .gbw-neu-bearbeite input { min-height: 48px; }
#gbwNeu .gbw-neu-typ { margin: 16px 0 8px; }
#gbwNeu .gbw-neu-korb > .gbw-feld-titel { margin-top: 14px; }
#gbwNeu .gbw-neu-zeiten { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#gbwNeu .gbw-neu-zeiten > button, #gbwNeu .gbw-neu-zahlung > button { min-height: 52px; padding: 4px; border: var(--t-lw, 2px) solid var(--t-ink); border-radius: var(--t-r2, 0); background: var(--t-surface); color: var(--t-ink); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
#gbwNeu .gbw-neu-zeiten > button strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
#gbwNeu .gbw-neu-zeiten > button span { font-size: 0.75rem; font-weight: 600; }
#gbwNeu .gbw-neu-zeiten > button[aria-pressed="true"], #gbwNeu .gbw-neu-zahlung > button[aria-pressed="true"] { background: var(--t-ink); color: var(--t-surface); }
#gbwNeu .gbw-neu-andere { margin-top: 8px; }
#gbwNeu .gbw-neu-andere input { margin: 0; }
#gbwNeu .gbw-neu-zahlung { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#gbwNeu .gbw-neu-zeilenknopf { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 52px; margin-top: 14px; }
#gbwNeu .gbw-neu-korb textarea { margin: 0; }
#gbwNeu .gbw-neu-korb .ws-schalter { margin-top: 8px; white-space: normal; }
#gbwNeu .gbw-neu-anlegen { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin-top: 14px; font-variant-numeric: tabular-nums; }
#gbwNeu .gbw-neu-anlegen:disabled { opacity: 0.5; cursor: not-allowed; }
@media (max-width: 480px) {
  #gbwNeu .gbw-neu-zeiten { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #gbwNeu .gbw-neu-adresse, #gbwNeu .gbw-neu-plz { grid-template-columns: minmax(0, 1fr); }
}
/* ENDE: W2 Neue Bestellung */
/* Tage-Leiste Kassa-Wächter (08.10.) */
.kwaw-tageleiste { flex: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 16px; background: var(--pos-kopf); border-bottom: 1px solid var(--pos-rand); }
.kwaw-tageleiste button, .kwaw-tageleiste .kwa-tage-wahl { min-height: 48px; padding: 0 14px; border: 1px solid var(--pos-rand); border-radius: 10px; background: var(--pos-karte); color: var(--pos-text); font-weight: 700; font-size: 15px; cursor: pointer; }
.kwaw-tageleiste button[aria-pressed="true"] { background: var(--pos-text); color: var(--pos-bg); }
.kwa-hell .kwaw-tageleiste button[aria-pressed="true"] { background: var(--t-ink); color: var(--t-surface); }
/* Blatt-Kopf bricht um (08.10.): in schmalen Huellen (Seitenspalte in Bestellungen, 340-px-Leiste) wurde der Name Zeichen fuer Zeichen
   zerhackt, weil Symbol + Name + grosse Uhrzeit nebeneinander blieben. Jetzt faellt die Uhrzeit in die naechste Zeile. */
.kwa-blatt-kopf { flex-wrap: wrap; gap: 12px 14px; }
.kwa-blatt-titel { flex: 1 1 190px; }
.kwa-blatt-name, .kwa-blatt-sub { overflow-wrap: break-word; }
.kwa-blatt-zeit { margin-left: auto; }
.gbw-feld .kwa-blatt-kopf { padding: 18px 20px 14px; }
.gbw-feld .kwa-blatt-name { font-size: 26px; }
.gbw-feld .kwa-blatt-sub { font-size: 15px; }
.gbw-feld .kwa-blatt-symbol { width: 56px; height: 56px; border-radius: 14px; }
.gbw-feld .kwa-blatt-zeit-wert { font-size: 34px; }

/* --- Fahrer-Monitor (Waechter-Modus FAHRER, 18.10.2026) --- Farben aus der Waechter-Palette (--pos-*), damit hell/dunkel mitgehen. */
.fm { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 14px; padding: 14px; overflow: hidden; }
.fm-spalte { min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 4px; }
.fm-spalten-titel { font-family: var(--kwa-schmal); font-size: 22px; letter-spacing: .06em; margin: 0; color: var(--pos-leise); position: sticky; top: 0; background: var(--pos-bg); padding: 4px 0 6px; z-index: 1; }
.fm-karte, .fm-gruppe { background: var(--pos-karte); border: 1px solid var(--pos-rand); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; color: var(--pos-text); }
.fm-s-FERTIG { border-color: var(--pos-fertig-text); border-width: 2px; }
.fm-karte-kopf, .fm-zeile-kopf { display: flex; align-items: baseline; gap: 12px; }
.fm-nr { font-family: var(--kwa-schmal); font-weight: 700; font-size: 26px; font-variant-numeric: tabular-nums; }
.fm-name { flex: 1 1 0; min-width: 0; font-size: 22px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-zeit { font-family: var(--kwa-schmal); font-weight: 700; font-size: 24px; font-variant-numeric: tabular-nums; }
.fm-status { font-weight: 700; font-size: 16px; color: var(--pos-leise); }
.fm-adresse { display: block; font-size: 22px; font-weight: 700; color: var(--pos-text); text-decoration: underline; text-underline-offset: 4px; }
.fm-hinweis { font-size: 16px; color: var(--pos-gold-text, var(--pos-leise)); }
.fm-leise { color: var(--pos-leise); font-weight: 400; }
.fm-geld { border-radius: 10px; padding: 10px 12px; font-size: 24px; font-weight: 700; }
.fm-geld-bezahlt { background: color-mix(in srgb, var(--pos-fertig-text) 18%, var(--pos-karte)); color: var(--pos-fertig-text); }
.fm-geld-bar { background: color-mix(in srgb, var(--pos-gold-text, var(--pos-neu-text)) 20%, var(--pos-karte)); color: var(--pos-gold-text, var(--pos-neu-text)); }
.fm-frage { font-size: 16px; font-weight: 700; color: var(--pos-leise); }
.fm-fahrer { display: flex; flex-wrap: wrap; gap: 10px; }
.fm-fahrer-knopf { min-height: 64px; padding: 0 22px; border-radius: 20px; border: 2px solid var(--pos-rand); background: var(--pos-hoch); color: var(--pos-text); font-family: var(--kwa-schmal); font-size: 24px; font-weight: 700; cursor: pointer; }
.fm-fahrer-knopf:active { background: var(--pos-text); color: var(--pos-bg); }
.fm-fahrer-knopf:disabled { opacity: .5; }
.fm-fahrer-aus { font-size: 20px; }
.fm-gruppe-titel { margin: 0; font-size: 22px; }
.fm-zeile { border-top: 1px solid var(--pos-rand); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.fm-seit { font-weight: 700; font-size: 16px; color: var(--pos-arbeit-text, var(--pos-leise)); }
.fm-leer { padding: 28px 12px; text-align: center; font-size: 20px; color: var(--pos-leise); }
.fm-fehler { font-size: 16px; font-weight: 700; color: var(--pos-err-text, #c00); }
@media (max-width: 900px) { .fm { grid-template-columns: 1fr; overflow-y: auto; } .fm-spalte { overflow: visible; } }

/* --- Seitenwahl für PDF-Belege bei „Rechnung erfassen" (rnOeffneSeitenwahl, 23.10.2026) --- */
.rn-sw-overlay { z-index: 130; }
.rn-sw-box { max-width: 760px; width: 100%; max-height: 94vh; display: flex; flex-direction: column; padding: 16px; overflow: hidden; }
.rn-sw-box h2 { margin: 0 0 6px; }
.rn-sw-hinweis { margin-bottom: 8px; }
.rn-sw-seiten { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 2px; }
.rn-sw-seite { position: relative; min-width: 0; }
.rn-sw-bild { display: block; width: 100%; max-width: 100%; min-width: 0; height: auto; box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: opacity .15s; }
.rn-sw-weg .rn-sw-bild { opacity: .28; }
.rn-sw-schalter { position: absolute; top: 10px; left: 10px; width: auto; max-width: calc(100% - 20px); margin: 0; min-height: 40px; padding: 0 14px; border: 0; border-radius: 20px; background: rgba(0,0,0,.78); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.rn-sw-schalter.rn-sw-an { background: var(--t-ok); }
.rn-sw-fuss { flex: none; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--t-line); margin-top: 10px; }
.rn-sw-zaehler { font-weight: 700; font-size: 16px; }
.rn-sw-warnung, .rn-sw-fehler { font-size: 13px; color: var(--t-err); }
.rn-sw-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.rn-sw-knoepfe button { text-align: center; }
.rn-sw-knoepfe button:disabled { opacity: .5; cursor: default; }
/* --- ANFANG: Google-Eintrag Rahmen (E1, 08.11.2026) --- */
/* Standort-Karten, Tabs, Übersicht. Nur --t-*-Werte: Modernist = Entwurf, die anderen Varianten folgen von selbst. */
.ge-kopf { display: flex; justify-content: flex-end; margin: 4px 0 0; }
.ge-konto { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--t-ink);
  background: var(--t-surface); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); padding: 7px 12px; }
.ge-konto-punkt { width: 9px; height: 9px; background: var(--t-ok); display: inline-block; border-radius: var(--t-r); }
.ge-karten { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.ge-lokal { flex: 1 1 200px; max-width: 300px; width: auto; min-height: 0; margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left;
  font: inherit; padding: 12px 14px; cursor: pointer; color: var(--t-ink); background: var(--t-surface);
  border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); box-shadow: var(--t-shadow); }
.ge-lokal.aktiv { background: var(--t-ink); color: var(--t-surface); }
.ge-lokal-kopf { font-size: 0.7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.ge-lokal-name { font-size: 1rem; font-weight: 700; }
.ge-lokal-zeile { font-size: 0.8125rem; opacity: .85; }
.ge-tabs { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; margin-top: 16px; border-bottom: var(--t-lw) solid var(--t-line); }
.ge-tab { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; width: auto; min-height: 44px; margin-top: 0; padding: 10px 18px; cursor: pointer;
  color: var(--t-ink); background: var(--t-surface2); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2) var(--t-r2) 0 0;
  margin-bottom: calc(-1 * var(--t-lw)); }
.ge-tab.aktiv { background: var(--t-surface); border-bottom-color: var(--t-surface); }
.ge-zaehler { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box;
  font-size: 0.75rem; color: var(--t-accent-ink); background: var(--t-accent); border-radius: var(--t-r); }
.ge-tab-inhalt { padding-top: 20px; }
.ge-2sp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .ge-2sp { grid-template-columns: minmax(0, 1fr); } }
.ge-box { background: var(--t-surface); color: var(--t-ink); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); padding: 16px 18px; margin-bottom: 12px; box-shadow: var(--t-shadow); }
.ge-ueberschrift { font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-ink2); margin-bottom: 10px; }
.ge-leer { max-width: 560px; padding: 28px; }
.ge-leer-titel { font-size: 1.25rem; font-weight: 800; }
.ge-todo { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 0; text-align: left; font: inherit; cursor: pointer; margin-bottom: 10px;
  color: var(--t-ink); background: var(--t-surface); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); padding: 14px 16px; }
.ge-punkt { flex: none; width: 12px; height: 12px; background: var(--t-accent); border-radius: var(--t-r); }
.ge-punkt.warn { background: var(--t-warn); }
.ge-todo-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ge-todo-text small { font-size: 0.8125rem; color: var(--t-ink2); }
.ge-pfeil { font-weight: 800; font-size: 1.25rem; }
.ge-ok { color: var(--t-ok); font-weight: 700; border: var(--t-lw) solid var(--t-ok); border-radius: var(--t-r2); padding: 12px 14px; margin-bottom: 10px; background: var(--t-surface); }
.ge-sp-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.ge-sp-kopf .ge-ueberschrift { margin: 0; }
.ge-umschalter { display: inline-flex; border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); overflow: hidden; background: var(--t-surface); }
.ge-umschalter button { width: auto; min-height: 0; margin: 0; font: inherit; font-size: 0.8125rem; font-weight: 700; padding: 6px 14px; cursor: pointer; color: var(--t-ink); background: transparent; border: 0; border-radius: 0; }
.ge-umschalter button.aktiv { background: var(--t-ink); color: var(--t-surface); }
.ge-gruppe { margin: 12px 0 6px; font-weight: 700; }
.ge-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ge-kachel { background: var(--t-surface); color: var(--t-ink); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); padding: 14px 16px; }
.ge-kachel-name { font-size: 0.8125rem; color: var(--t-ink2); }
.ge-kachel-wert { font-size: 1.75rem; font-weight: 800; margin: 2px 0; line-height: 1.15; }
.ge-kachel-vgl { font-size: 0.8125rem; font-weight: 700; }
.ge-kachel-hinweis { font-size: 0.75rem; color: var(--t-ink2); margin-top: 2px; }
/* --- ENDE: Google-Eintrag Rahmen --- */
/* --- ANFANG: Google-Eintrag Speisekarte (E2, 08.11.2026) --- */
.ge-2sp.ge-2sp-karte { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 900px) { .ge-2sp.ge-2sp-karte { grid-template-columns: minmax(0, 1fr); } }
.ge-kacheln3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ge-kacheln3 .ge-kachel-wert { margin: 0; }
.ge-kat { margin-top: 8px; background: var(--t-surface); color: var(--t-ink); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); padding: 0 16px 6px; }
.ge-kat-kopf { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; padding: 13px 0; list-style: none; }
.ge-kat-kopf::-webkit-details-marker { display: none; }
.ge-kat-kopf > span:first-child { flex: 1; }
.ge-kat-zahl { font-weight: 400; font-size: 0.8125rem; color: var(--t-ink2); }
.ge-kat-kopf::after { content: "+"; font-weight: 800; }
.ge-kat[open] > .ge-kat-kopf::after { content: "\2212"; }
.ge-gericht { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 0.875rem; border-top: 1px solid var(--t-surface2); }
.ge-hinweis { color: var(--t-warn); font-weight: 700; border: var(--t-lw) solid var(--t-warn); border-radius: var(--t-r2); padding: 12px 14px; background: var(--t-surface); }
/* --- ENDE: Google-Eintrag Speisekarte --- */
/* --- ANFANG: Google-Eintrag Bewertungen + Beiträge (E3, 08.11.2026) --- */
.ge-leiste { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.ge-leiste .ge-alle { width: auto; min-height: 44px; margin: 0; padding: 0 20px; }
.ge-automatik { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ge-auto-text { flex: 1 1 260px; }
.ge-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ge-automatik .ge-knoepfe { margin-top: 0; }
.ge-knoepfe button { width: auto; min-height: 44px; margin: 0; padding: 0 20px; }
.ge-antworten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
@media (max-width: 900px) { .ge-antworten { grid-template-columns: minmax(0, 1fr); } }
.ge-antwort { background: var(--t-surface); color: var(--t-ink); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); padding: 18px; }
.ge-zitat { color: var(--t-ink2); margin: 6px 0 12px; line-height: 1.45; }
.ge-entwurf { background: var(--t-bg); border-radius: var(--t-r2); padding: 12px; }
.ge-entwurf-kopf { font-size: 0.6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-accent-tief); margin-bottom: 4px; }
.ge-entwurf textarea { width: 100%; box-sizing: border-box; border: 0; background: transparent; font: inherit; color: var(--t-ink); resize: vertical; padding: 0; margin: 0; }
.ge-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 12px; }
.ge-post { background: var(--t-surface); color: var(--t-ink); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); padding: 14px; font-size: 0.9rem; }
.ge-post .btn-mini-secondary { width: auto; min-height: 44px; margin: 8px 0 0; }
/* --- ENDE: Google-Eintrag Bewertungen + Beiträge --- */
/* --- ANFANG: Google-Eintrag Profil (E4, 09.11.2026) --- */
.ge-zeit-titel { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-weight: 700; margin: 16px 0 4px; }
.ge-chip { font-size: 0.75rem; font-weight: 700; padding: 2px 8px; border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r); }
.ge-chip.ok { color: var(--t-ok); border-color: var(--t-ok); }
.ge-chip.warn { color: var(--t-err); border-color: var(--t-err); }
.ge-zeit { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--t-line); }
.ge-zeit-marke { flex: none; width: 1.4em; text-align: center; font-weight: 800; }
.ge-zeit.gleich .ge-zeit-marke { color: var(--t-ok); }
.ge-zeit.weicht { color: var(--t-err); }
.ge-zeit-tag { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .06em; }
.ge-hinweis-zeile { font-weight: 700; margin-top: 14px; }
.ge-angleich-titel { font-weight: 700; margin: 12px 0 6px; }
.ge-angleich-gruppe { margin-bottom: 10px; }
.ge-angleich-name { font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--t-ink2); margin-bottom: 6px; }
.ge-vorschau { background: var(--t-bg); border: var(--t-lw) solid var(--t-line); border-radius: var(--t-r2); padding: 12px 14px; margin-top: 12px; }
.ge-vorschau .ge-knoepfe { margin-top: 12px; }
.ge-ed-gruppe { border-top: var(--t-lw) solid var(--t-line); padding-top: 14px; margin-top: 16px; }
.ge-ed-titel { font-weight: 700; margin-bottom: 10px; }
.ge-ed-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 700px) { .ge-ed-felder { grid-template-columns: minmax(0, 1fr); } }
.ge-ed-feld { display: block; font-size: 0.85rem; color: var(--t-ink2); }
.ge-woche-zeile { display: grid; grid-template-columns: 110px auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 4px 0; }
.ge-sonder { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--t-line); }
.ge-sonder > * { min-width: 0; }
.ge-sonder > input[type=date] { flex: 1 1 150px; }
.ge-sonder > .ge-zeitpaar { flex: 1 1 200px; }
.ge-sonder > input[type=text] { flex: 2 1 140px; }
@media (max-width: 700px) {
  .ge-woche-zeile { grid-template-columns: minmax(0, 1fr) auto; padding: 8px 0; border-bottom: 1px solid var(--t-line); }
  .ge-woche-zeile > .ge-zeitpaar { grid-column: 1 / -1; }
}
.ge-tag { font-weight: 600; }
.ge-zu { display: flex; align-items: center; gap: 6px; margin: 0; white-space: nowrap; }
.ge-zeitpaar { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ge-woche-zeile input, .ge-sonder input[type=date], .ge-sonder input[type=time], .ge-sonder input[type=text] { margin: 0; min-width: 0; }
.ge-zeitpaar input { flex: 1; min-width: 0; margin: 0; }
.ge-sonder .ge-x { width: auto; min-height: 44px; margin: 0; padding: 0 14px; }
/* --- ENDE: Google-Eintrag Profil --- */
