/* =====================================================================
   IQ-Gastro System – Oberfläche im Stil von Windows 11 Fluent Design
   (12.09.2026, Franz: "Das Design soll aussehen wie Windows 11 Fluent
   Design", "schlanker, übersichtlicher, moderner").

   Fluent-Grundsätze, die hier umgesetzt sind:
   - Mica-Hintergrund (ruhiger Farbverlauf, optional eigenes Hintergrundbild)
   - Acrylic-Flächen: Karten/Navigation halbtransparent mit Weichzeichner
   - Ecken: Bedienelemente 4 px, Flächen/Karten 8 px, Fenster 12 px
   - Akzentfarbe (Windows-Standardblau) nur für Auswahl/Primäraktionen
   - Navigation links als "NavigationView" mit Akzentbalken am aktiven Punkt
   - Schrift: Segoe UI Variable, dezente Elevation statt harter Rahmen
   - Dunkelmodus wie Windows 11 dunkel (#202020 / #2b2b2b)
   Alle Klassennamen sind unverändert (app.js musste dafür nicht angefasst
   werden); die alten "--dp-*"-Variablen bleiben als Aliasse erhalten.
   ===================================================================== */
:root {
  /* Gold-Markenfarbe (Runde 20.09.2026, Franz: "geht das im Hellen Modus
     auch?") - derselbe Goldton wie Anmeldebildschirm/Dunkelmodus, hier aber
     deutlich dunkler (#96730a statt #c9a227) - auf WEISSEM statt schwarzem
     Hintergrund braucht Gold als Text-/Knopffarbe mehr Kontrast, sonst kaum
     lesbar. Restliche Werte (Hintergrund, Flächen, Text) bleiben hell wie
     bisher - nur die Akzentfarbe wechselt, damit alle drei Zustände (Hell/
     Dunkel/Login) dieselbe Markenidentität teilen. */
  --accent: #96730a;
  --accent-hover: #ab8517;
  --accent-pressed: #7c5c00;
  --accent-text: #ffffff;
  --accent-soft: rgba(150, 115, 10, .12);
  --bg: #f3f2ee;
  --bg-mica: linear-gradient(135deg, #f8f6f0 0%, #f2efe6 55%, #f3f2ee 100%);
  --layer: rgba(255, 255, 255, .72);
  --layer-solid: #ffffff;
  --layer-alt: rgba(255, 255, 255, .55);
  --nav: rgba(243, 242, 238, .78);
  --border: rgba(90, 68, 8, .09);
  --border-strong: rgba(90, 68, 8, .16);
  --text: #1a1a1a;
  --text-secondary: #5d5d5d;
  --text-muted: #757575;
  --control: rgba(255, 255, 255, .7);
  --control-hover: rgba(249, 249, 249, .95);
  --control-border: rgba(0, 0, 0, .06);
  --control-border-bottom: rgba(0, 0, 0, .16);
  --input-bg: rgba(255, 255, 255, .85);
  --input-border-bottom: #8a8a8a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .04), 0 2px 8px rgba(0, 0, 0, .04);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, .10);
  --shadow-3: 0 8px 32px rgba(0, 0, 0, .18);
  --green: #0f7b0f; --green-bg: #dff6dd;
  --yellow: #9d5d00; --yellow-bg: #fff4ce;
  --red: #c42b1c; --red-bg: #fde7e9;
  --blue-bg: #e0efff;
  --radius-ctl: 4px; --radius-card: 8px; --radius-window: 12px;
  --blur: blur(24px) saturate(1.3);
  --bg-image: none;
  /* Aliasse für bestehende Regeln in app.js (Inline-Styles) */
  --dp-blue: var(--accent);
  --dp-blue-dark: #1a1a1a;
  --dp-red: var(--red);
  --dp-bg: var(--bg);
  --dp-card: var(--layer-solid);
  --dp-border: var(--border-strong);
  --dp-text: var(--text);
  --dp-muted: var(--text-muted);
  --dp-green: var(--green);
  --dp-yellow: var(--yellow);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  background: var(--bg-mica);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  /* 28.09.2026 (Franz: "Wenn ich mein Handy drehe soll es auch vollbild anzeigen") -
     zusammen mit viewport-fit=cover (index.html): ohne diese Sicherheitsabstände reserviert
     iOS Safari im Standalone-Modus unsichtbaren Platz um die Notch/Kamera-Aussparung - in
     Quer-Ansicht sitzt die dann seitlich, der Bildschirm wirkt nicht randlos gefüllt.
     env(...) liefert 0, wenn kein solches Gerät vorliegt - wirkt sich sonst nicht aus. */
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
}
/* Eigenes Hintergrundbild (Einstellungen → Erscheinungsbild): Bild fixiert
   hinter allem, leicht abgedunkelt/weichgezeichnet, Karten werden Acrylic. */
body.has-bg { background: #202020; }
body.has-bg::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background: var(--bg-image) center / cover no-repeat;
  filter: brightness(.92) saturate(1.05);
}
body.has-bg .card, body.has-bg .modal, body.has-bg .login-box, body.has-bg .sidebar, body.has-bg .topbar {
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
body.has-bg .card { background: rgba(255, 255, 255, .82); }
body.dark.has-bg .card { background: rgba(44, 44, 44, .82); }

/* Die Anwendung füllt genau den Bildschirm: Kopfzeile und Navigation bleiben
   stehen, nur der Inhaltsbereich scrollt (13.09.2026) - vorher wuchs die Seite
   mit dem längsten Element (Menü) und alles scrollte gemeinsam. */
/* dvh (Gesamtprüfung 13.09.2026): auf dem Handy ist 100vh höher als der
   sichtbare Bereich (Adressleiste), der untere Rand wäre sonst unerreichbar. */
#root { height: 100vh; min-height: 100vh; height: 100dvh; min-height: 100dvh; display: flex; flex-direction: column; }

h1, h2, h3, h4 { font-family: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Kopfzeile (Titelleiste) ---------- */
.topbar {
  background: var(--nav);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  color: var(--text);
  padding: calc(8px + env(safe-area-inset-top)) 16px 8px;
  min-height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 45;
  border-bottom: 1px solid var(--border);
}
/* Firmenname statt "IQ-Gastro System" oben links (20.09.2026, Franz:
   "IQ-Gastro System oben links weg und den Firmennamen dorthin
   positionieren") - .brand zeigt jetzt den (dynamischen) Betriebsnamen aus
   StoreBrand, kein fest eincodierter Software-Name mehr; min-width:0 +
   text-overflow, damit ein langer Firmenname auf schmalen Bildschirmen die
   Kopfzeile nicht sprengt statt zu überlaufen. */
.topbar .brand {
  font-weight: 600; font-size: 15px; letter-spacing: 0; display: flex; align-items: center; gap: 8px;
  min-width: 0; overflow: hidden;
}
.topbar .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .brand img { height: 28px; width: auto; border-radius: 4px; flex-shrink: 0; }
/* Betriebsname/Logo in der Mitte: im normalen Fluss statt absolut zentriert
   (13.09.2026, Franz: "Die obere Leiste und das Menü überlappen mit dem
   Inhalt") - vorher lag er bei vielen Symbolen rechts über der Benutzerzeile.
   Seit 20.09.2026 ungenutzt (StoreBrand zeigt den Firmennamen jetzt oben
   links, siehe .topbar .brand oben) - Regel bewusst stehen gelassen, falls
   eine künftige Runde wieder eine mittige Kopfzeilen-Anzeige braucht. */
.topbar-center {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none; color: var(--text-secondary); padding: 0 12px;
}
.topbar-center span { overflow: hidden; text-overflow: ellipsis; }
.topbar-center img { height: 28px; width: auto; border-radius: 4px; }
.topbar .userinfo { font-size: 12.5px; display: flex; gap: 10px; align-items: center; color: var(--text-secondary); flex: 0 0 auto; white-space: nowrap; }
.topbar > .flex { flex: 0 0 auto; }
.topbar button.linklike, button.linklike {
  background: none; border: none; color: var(--accent); cursor: pointer; text-decoration: none; font-size: 12.5px;
  padding: 4px 6px; border-radius: var(--radius-ctl); font-family: inherit;
}
.topbar button.linklike:hover, button.linklike:hover { background: var(--accent-soft); }
.topbar a.linklike { color: var(--accent); text-decoration: none; padding: 4px 6px; border-radius: var(--radius-ctl); font-size: 12.5px; }
.topbar a.linklike:hover { background: var(--accent-soft); }

.layout { display: flex; flex: 1; min-height: 0; overflow: hidden; }

/* ---------- Navigation (NavigationView) ---------- */
.sidebar {
  width: 240px; background: var(--nav); color: var(--text); padding: 8px 6px; flex-shrink: 0;
  overflow-y: auto; border-right: 1px solid var(--border);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.sidebar .menu-item {
  position: relative; padding: 8px 12px 8px 16px; margin: 1px 0; cursor: pointer; font-size: 13.5px;
  border-radius: var(--radius-ctl); color: var(--text); transition: background .12s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar .menu-item:hover { background: rgba(0, 0, 0, .045); }
.sidebar .menu-item:active { background: rgba(0, 0, 0, .03); color: var(--text-secondary); }
.sidebar .menu-item.active { background: var(--accent-soft); font-weight: 600; }
.sidebar .menu-item.active::before {
  content: ""; position: absolute; left: 3px; top: 50%; transform: translateY(-50%);
  width: 3px; height: 16px; border-radius: 3px; background: var(--accent);
}
.sidebar .menu-group-label {
  padding: 14px 12px 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600;
}
/* Unterüberschrift INNERHALB einer Menügruppe (20.09.2026) - dezenter als
   .menu-group-label (kein eigener Gruppen-Zwischenraum), buendelt fachlich
   zusammengehoerige Punkte ohne eine neue Top-Level-Gruppe zu erzeugen. */
.sidebar .menu-subheading {
  padding: 10px 12px 2px 16px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em;
  color: var(--text-muted); opacity: .75;
}
.sidebar .menu-subheading:first-child { padding-top: 2px; }
.menu-focus-toggle { margin-top: 12px; padding: 10px 12px; font-size: 12px; color: var(--accent); cursor: pointer; border-top: 1px solid var(--border); border-radius: var(--radius-ctl); }
.menu-focus-toggle:hover { background: rgba(0, 0, 0, .045); }

/* overflow-x: auto statt hidden (Gesamtprüfung 13.09.2026): breite Tabellen
   wurden zwischen 861 und ~1180px (Tablet quer) einfach abgeschnitten. */
.content { flex: 1; padding: 18px 22px 28px; overflow-y: auto; overflow-x: auto; min-width: 0; }

/* ---------- Karten (Layer) ---------- */
.card {
  background: var(--layer); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 16px 18px;
  margin-bottom: 14px; box-shadow: var(--shadow-1);
  /* Verbesserungsrunde 13.09.2026: breite Tabellen (Makeline, Dispatch,
     Zeiterfassung ...) scrollen innerhalb ihrer Karte statt abgeschnitten zu
     werden - eine Regel für alle 115 Tabellen statt 93 einzelner Wrapper. */
  overflow-x: auto;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
/* Rückmeldung 26.09.2026 (Franz, Handy): das seitwärts-Scrollen breiter
   Tabellen (siehe .card oben) hat auf schmalen Bildschirmen keinen sichtbaren
   Hinweis - wirkt wie abgeschnitten statt "wischen für mehr". Reiner
   Text-Hinweis (aktuell auf der Makeline eingebaut, siehe app.js), nur unter
   700px sichtbar; auf breiten Bildschirmen unnötig, da eh alles passt. */
.scroll-hint { display: none; }
@media (max-width: 700px) { .scroll-hint { display: block; margin: -4px 0 8px; } }
.card .card { box-shadow: none; background: var(--layer-alt); }
.card h2 { margin: 0 0 10px; font-size: 18px; color: var(--text); }
.card h3 { margin: 0 0 8px; font-size: 14px; color: var(--text); }
.card h4 { margin: 12px 0 6px; font-size: 13px; color: var(--text-secondary); }

/* Kompakt-Modus: Erklärungsabsätze direkt in Karten ausblenden (ⓘ oben) */
body.compact .card > p.muted:not(.keep) { display: none; }

.grid { display: grid; gap: 14px; }
.grid > * { min-width: 0; } /* Tabellen in Rasterzellen dürfen das Raster nicht aufsprengen (13.09.2026) */
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Tabellen ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { background: transparent; color: var(--text-secondary); font-weight: 600; font-size: 12px; letter-spacing: .01em; }
tbody tr:hover { background: rgba(0, 0, 0, .025); }
.clickable { cursor: pointer; }
tr.clickable { cursor: pointer; }
tr.clickable:hover { background: var(--accent-soft); }

/* ---------- Eingabefelder ---------- */
input, select, textarea {
  padding: 6px 10px; border: 1px solid var(--control-border); border-bottom: 1px solid var(--input-border-bottom);
  border-radius: var(--radius-ctl); font-size: 13.5px; width: 100%; font-family: inherit;
  background: var(--input-bg); color: var(--text); transition: border-color .12s, box-shadow .12s;
}
input:hover, select:hover, textarea:hover { background: var(--control-hover); }
input:focus, select:focus, textarea:focus {
  outline: none; border-bottom: 2px solid var(--accent); padding-bottom: 5px; background: var(--layer-solid);
}
textarea:focus { padding-bottom: 5px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--accent); padding: 0; margin: 0 2px 0 0; vertical-align: middle; }
input:disabled, select:disabled, textarea:disabled { opacity: .6; }
label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; margin-top: 8px; }

/* ---------- Schaltflächen ---------- */
button.btn, a.btn {
  background: var(--control); color: var(--text);
  border: 1px solid var(--control-border); border-bottom-color: var(--control-border-bottom);
  border-radius: var(--radius-ctl); padding: 7px 14px; font-size: 13.5px; cursor: pointer; font-weight: 500;
  display: inline-block; text-decoration: none; font-family: inherit; line-height: 1.3;
  transition: background .12s, border-color .12s, transform .05s;
}
button.btn:hover, a.btn:hover { background: var(--control-hover); }
button.btn:active, a.btn:active { transform: translateY(1px); }
/* Primäraktion = Akzent (die Standardklasse "btn" ohne secondary/danger war
   bisher blau - das bleibt so, damit sich die Bedienung nicht ändert) */
button.btn:not(.secondary):not(.danger), a.btn:not(.secondary):not(.danger) {
  background: var(--accent); color: var(--accent-text); border-color: rgba(0, 0, 0, .06); border-bottom-color: rgba(0, 0, 0, .2);
}
button.btn:not(.secondary):not(.danger):hover, a.btn:not(.secondary):not(.danger):hover { background: var(--accent-hover); }
button.btn:not(.secondary):not(.danger):active { background: var(--accent-pressed); }
button.btn.danger, a.btn.danger { background: var(--red); color: #fff; border-color: rgba(0, 0, 0, .06); }
button.btn.danger:hover, a.btn.danger:hover { background: #d8382a; }
button.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button.btn.small, a.btn.small { padding: 4px 10px; font-size: 12.5px; }

/* ---------- Pillen / Chips / Kennzahlen ---------- */
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 1.5; }
.pill.green { background: var(--green-bg); color: var(--green); }
.pill.yellow { background: var(--yellow-bg); color: var(--yellow); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.blue { background: var(--blue-bg); color: var(--accent); }
.pill.grey { background: rgba(0, 0, 0, .06); color: var(--text-secondary); }

.chip {
  display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid var(--border-strong); background: var(--control); color: var(--text); cursor: pointer; user-select: none;
  font-family: inherit;
}
.chip:hover { background: var(--control-hover); }
.chip.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.chip.inactive { opacity: .55; font-style: italic; }

.kpi { text-align: center; padding: 10px; }
.kpi .value { font-size: 28px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.kpi .label { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.kpi.green .value { color: var(--green); }
.kpi.red .value { color: var(--red); }
.kpi.yellow .value { color: var(--yellow); }
.kpi.grey .value { color: var(--text-muted); }

.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* Eingabefelder in Flex-Zeilen dürfen schrumpfen, sonst läuft z.B. die Telefon-
   suche in der Bestellannahme auf dem Handy über den Rand (Gesamtprüfung 13.09.2026). */
.flex > input, .flex > select { min-width: 0; }
.flex.between { justify-content: space-between; }
.flex.wrap { flex-wrap: wrap; }

.muted { color: var(--text-muted); font-size: 12.5px; }
.small { font-size: 12px; }
.error { color: var(--red); font-size: 13px; margin-top: 8px; background: var(--red-bg); padding: 8px 10px; border-radius: var(--radius-ctl); }
.success { color: var(--green); font-size: 13px; margin-top: 8px; background: var(--green-bg); padding: 8px 10px; border-radius: var(--radius-ctl); }
.prep-warn { color: var(--yellow); font-weight: 600; }
.prep-late { color: var(--red); font-weight: 600; }
/* Küchen-Display (Ideenrunde 14.09.2026): ganze Zeile färben, damit es über
   die Küche hinweg sichtbar ist - nicht nur eine Zahl in einer Zelle. */
tr.row-warn td { background: rgba(255, 190, 0, .14); }
tr.row-late td { background: rgba(220, 40, 40, .16); }
tr.row-late td:nth-child(5) { font-weight: 700; }
/* Makeline (19.09.2026, Referenz-Abgleich): Zeilen derselben Bestellung
   farblich als Gruppe erkennbar (orange/weiß-Streifen im Vorbild) - nur auf
   unauffälligen Zeilen, siehe app.js groupCls. */
tr.row-group-b td { background: rgba(255, 140, 0, .07); }
.warn-box { background: var(--yellow-bg); border: 1px solid rgba(157, 93, 0, .25); color: #6b3f00; padding: 8px 12px; border-radius: var(--radius-ctl); }
.info-box { background: var(--blue-bg); border: 1px solid rgba(0, 103, 192, .25); color: #004a8f; padding: 8px 12px; border-radius: var(--radius-ctl); }

/* ---------- Anmeldung (20.09.2026, Franz: eigener dunkler Entwurf mit
   Gold-Akzenten statt der übrigen hellen Fluent-Oberfläche - bewusst NUR
   dieser Bildschirm, der Rest der Anwendung bleibt unverändert hell). ---------- */
.login-screen {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(ellipse 900px 700px at 8% 0%, rgba(212, 169, 74, .16), transparent 60%),
              radial-gradient(ellipse 900px 700px at 100% 100%, rgba(212, 169, 74, .13), transparent 60%),
              #131214;
  padding: 24px 16px; position: relative; overflow: hidden;
}
.login-box {
  background: linear-gradient(165deg, #201e1a, #17161a); padding: 40px 36px 28px; border-radius: 24px;
  width: min(380px, 100%); text-align: center; position: relative; z-index: 1;
  border: 1px solid rgba(212, 169, 74, .28); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.login-mark { width: 92px; height: auto; margin-bottom: 6px; }
.login-box h1 {
  color: #fff; font-size: 26px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 6px;
}
.login-tagline {
  color: #c9a227; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 26px; font-weight: 600;
}
.login-field {
  display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px; padding: 0 12px; margin-bottom: 12px; transition: border-color .12s, background .12s;
}
.login-field:focus-within { border-color: #c9a227; background: rgba(255, 255, 255, .06); }
.login-field-icon { color: #9c9690; flex-shrink: 0; display: flex; }
.login-field input {
  background: none; border: none; color: #fff; padding: 12px 0; font-size: 14px; width: 100%; box-shadow: none;
}
.login-field input:focus { outline: none; padding: 12px 0; background: none; border-bottom: none; }
.login-field input::placeholder { color: #7a756e; }
.login-field input:hover { background: none; }
.login-field-toggle { background: none; border: none; color: #9c9690; cursor: pointer; padding: 4px; flex-shrink: 0; display: flex; }
.login-field-toggle:hover { color: #c9a227; }
.login-row { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 6px; flex-wrap: wrap; gap: 6px; }
.login-remember { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #b8b2a9; cursor: pointer; }
.login-remember input { width: auto; margin: 0; accent-color: #c9a227; }
.login-forgot { font-size: 12.5px; color: #c9a227; text-decoration: none; }
.login-forgot:hover { text-decoration: underline; }
.login-forgot-hint { font-size: 12px; color: #b8b2a9; text-align: left; background: rgba(255, 255, 255, .04); border-radius: 8px; padding: 8px 10px; margin: 4px 0 0; }
.login-submit {
  background: linear-gradient(135deg, #ecd08a, #b9862f); color: #241a05; border: none; font-weight: 700;
  padding: 13px; border-radius: 10px; box-shadow: 0 8px 20px rgba(185, 134, 47, .3);
}
.login-submit:hover { filter: brightness(1.06); }
.login-slogan {
  display: flex; align-items: center; gap: 10px; justify-content: center; color: #8a8479; font-size: 11.5px;
  letter-spacing: .03em; margin: 20px 0 0;
}
.login-slogan span { flex: 1; height: 1px; background: rgba(255, 255, 255, .14); max-width: 60px; }
.login-box .error { text-align: left; background: rgba(226, 76, 76, .14); color: #ff8a80; }
.login-box p.muted { color: #7a756e; }
.login-bottom-bar {
  position: relative; z-index: 1; width: min(720px, 100%); display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 22px; padding: 0 4px; color: #6f6a63; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  flex-wrap: wrap;
}
/* Terminal-Bildschirme ohne Anmeldung (20.09.2026, Franz: "Unten die Texte
   weg Kasse usw und die Menüs rein die keine Anmeldung brauchen") - ersetzt
   die vorherigen rein dekorativen Bereichs-Stichworte durch echte Links. */
.login-bottom-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.login-bottom-links a { color: #6f6a63; text-decoration: none; }
.login-bottom-links a:hover { color: #c9a227; text-decoration: underline; }
@media (max-width: 480px) {
  .login-box { padding: 32px 22px 24px; border-radius: 18px; }
  .login-bottom-bar { justify-content: center; text-align: center; font-size: 10px; }
  .login-bottom-links { justify-content: center; }
}
/* PC-Bildschirm (27.09.2026, Franz: "könnte auf dem pc breiter sein") - die feste
   380px-Breite wirkte auf einem großen Monitor winzig; ab 900px Breite wächst
   die Box mit, Handy/Tablet bleiben bei den bisherigen 380px unverändert. */
@media (min-width: 900px) {
  .login-box { width: min(520px, 40vw); padding: 48px 52px 34px; }
  .login-mark { width: 108px; }
  .login-box h1 { font-size: 30px; }
  .login-field { padding: 4px 16px; }
  .login-field input { font-size: 16px; padding: 15px 0; }
}
.app-footer {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 6px 12px; font-size: 11px; color: var(--text-muted); background: var(--nav);
  border-top: 1px solid var(--border);
}
.app-footer img { height: 18px; width: auto; }

/* Schwebendes Chat-Fenster (28.09.2026, Franz: "Den Chatbot hätte ich gerne ... immer im
   Vordergrund. Als kleines Symbol zu aufklappen und zuklappen" -> "Das passt so umsetzen";
   28.09.2026 später: "Und unten rechts" - Veni sitzt jetzt intern UND im Webshop an derselben
   Ecke, gleiche Position wie .shop-chat-fab). z-index unter dem Modal-Hintergrund (50), damit
   ein echtes Fenster das schwebende Chatfenster bei Bedarf sauber überdeckt, aber über der
   normalen Seite/Seitenleiste (40) liegt. */
.assistant-widget { position: fixed; right: 16px; bottom: 16px; z-index: 45; }
.assistant-widget-fab {
  width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--accent);
  color: var(--accent-text, #fff); font-size: 22px; box-shadow: var(--shadow-3); cursor: pointer;
  display: grid; place-items: center; overflow: hidden; padding: 0;
}
.assistant-widget-fab:hover { filter: brightness(1.08); }
.assistant-widget-panel {
  position: absolute; right: 0; bottom: 62px; width: min(360px, calc(100vw - 32px));
  max-height: min(70vh, 560px); display: flex; flex-direction: column;
  background: var(--layer-solid); border-radius: var(--radius-window); box-shadow: var(--shadow-3);
  border: 1px solid var(--border); overflow: hidden; animation: fadeIn .12s ease;
}
.assistant-widget-head {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 14px;
  border-bottom: 1px solid var(--border); background: var(--nav); flex-shrink: 0;
}
.assistant-widget-head .linklike { font-size: 16px; }
.assistant-widget-body { padding: 12px 14px; overflow-y: auto; }
@media (max-width: 480px) {
  .assistant-widget { right: 10px; bottom: 10px; }
  .assistant-widget-panel { width: calc(100vw - 20px); }
}

/* ---------- Assistent (Bestellannahme) ---------- */
.wizard-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.wizard-step {
  /* Gesamtprüfung 16.09.2026 (Franz: "Schriften überlappen überall") - echten
     Fehler gefunden: white-space:nowrap zwang lange Labels ("Beschreibung &
     Verkauf") in eine schmale Box (min-width:100px), der Text lief dadurch
     sichtbar in die Nachbar-Box hinein statt umzubrechen. Betraf ALLE
     Assistenten im System (Bestellannahme, Produktkatalog, Wareneingang, ...),
     da sie sich diese eine CSS-Klasse teilen. white-space:normal erlaubt der
     Box, in die Höhe statt in die Breite auszuweichen.
  */
  flex: 1; min-width: 100px; text-align: center; padding: 8px 8px; border-radius: var(--radius-ctl); font-size: 12.5px;
  font-weight: 600; color: var(--text-secondary); background: rgba(0, 0, 0, .04); cursor: pointer; white-space: normal;
  border: 1px solid transparent;
}
/* Einstellungen-Reiter (19.09.2026): fest 2 Spalten statt flex-wrap - bei
   genau 4 unterschiedlich langen Reitern verhindert das ein uneinheitliches
   Umbrechen (3+1) auf mittleren Bildschirmbreiten, siehe Kommentar in app.js
   bei SETTINGS_TABS. */
.wizard-steps.settings-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
/* Einstellungen-Breite (28.09.2026, Franz: "auf dem pc nicht in voller
   breite der inhalt") - die Seite steckte fest in max-width:560px (Erbe der
   Reiter-Korrektur oben), das ließ auf einem großen PC-Bildschirm die meiste
   Fläche leer. Handy/Tablet bleiben bei 560px (einspaltige Formularfelder
   wirken schmal am besten); ab 900px wächst die Box mit, damit mehrspaltige
   Abschnitte (z.B. .grid.cols-2/3/4) wirklich Platz haben - bewusst nicht
   bildschirmfüllend, sonst wirken einspaltige Textzeilen unlesbar breit. */
/* 28.09.2026, Franz zweimal: "immer noch zu schmal" / "bitte auch responsiv" -
   keine feste Zahl mehr raten, sondern genau wie jede andere Seite (z.B.
   Dashboard) einfach die volle Breite von .content nutzen, die mit dem
   Fenster mitwächst. Unter 620px (Handy) bleibt die alte 560px-Grenze, weil
   einspaltige Formularfelder dort schmal am besten lesbar sind. */
.settings-card { max-width: 560px; }
@media (min-width: 620px) { .settings-card { max-width: 100%; } }
.wizard-step:hover { background: rgba(0, 0, 0, .07); }
.wizard-step.done { color: var(--green); background: var(--green-bg); }
.wizard-step.active { color: var(--accent-text); background: var(--accent); }
.wizard-step-num {
  display: inline-block; width: 18px; height: 18px; line-height: 18px; border-radius: 50%;
  background: rgba(0, 0, 0, .1); font-size: 11px; margin-right: 4px;
}
.wizard-step.active .wizard-step-num { background: rgba(255, 255, 255, .3); }

.big-btn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.big-btn {
  padding: 14px 10px; min-height: 66px; border-radius: var(--radius-card); border: 1px solid var(--control-border);
  border-bottom-color: var(--control-border-bottom);
  background: var(--control); color: var(--text); cursor: pointer; font-weight: 600; font-size: 14px;
  text-align: center; line-height: 1.3; font-family: inherit; transition: background .12s, border-color .12s, transform .05s;
}
.big-btn:hover { background: var(--control-hover); border-color: var(--accent); }
.big-btn:active { transform: scale(.98); }
.big-btn.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.big-btn .muted { font-weight: 400; }
.big-btn-img { display: block; width: 100%; height: 60px; object-fit: cover; border-radius: var(--radius-ctl); margin-bottom: 6px; }

/* Bestellannahme-Vereinfachung (20.09.2026, Franz: "wenig Klicks ... darf
   nicht solange dauern") - Größen-Pillen direkt auf der Produktkachel. */
.product-tile-sizes { display: flex; gap: 4px; justify-content: center; margin-top: 6px; }
.product-tile-sizes .pill { padding: 3px 9px; font-weight: 700; border: none; appearance: none; font-family: inherit; cursor: pointer; }
.product-tile-sizes .pill:hover { background: var(--accent-soft); color: var(--accent); }
/* Extrazutaten als eigener, klar abgetrennter Block (Franz: "Extrazutaten
   Feld muss separat ausgewählt werden") statt mit anderen Optionen vermischt. */
.extras-block { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px; margin-bottom: 12px; background: var(--layer-alt); }
.extras-block > label:first-child { margin-top: 0; }
/* Extrazutaten aufklappbar (Nachtrag 20.09.2026, Franz: "die extrazutaten
   sollen aufklappbar sein") - Kopfzeile über die volle Breite, wie der
   "Weitere Optionen"-Umschalter darunter. */
.extras-toggle { width: 100%; text-align: left; }
/* Hinzufügen-Fußleiste bleibt beim Scrollen durch Extras/Optionen sichtbar,
   damit kein separater letzter "Bestätigen"-Schritt mehr nötig ist. */
.artikel-picker-addbar {
  display: flex; align-items: center; gap: 12px; position: sticky; bottom: 0;
  background: var(--layer-solid); border-top: 1px solid var(--border);
  padding: 10px 0; margin-top: 4px; z-index: 5;
}

.qr-table-card { border: 2px dashed var(--accent); border-radius: var(--radius-window); padding: 18px; text-align: center; max-width: 360px; margin: 0 auto; }
.qr-table-card-title { font-size: 26px; font-weight: 700; }
.qr-table-card-cta { font-size: 18px; font-weight: 600; color: var(--accent); margin-top: 4px; }
.qr-table-card-steps { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
@media print { .qr-table-card { border-style: solid; page-break-inside: avoid; } }
.gps-banner { background: var(--green-bg); color: var(--green); border-radius: var(--radius-card); padding: 8px 12px; font-size: 13px; margin-bottom: 10px; }

.checklist-item { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.checklist-item .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.checklist-item .dot.ok { background: var(--green); }
.checklist-item .dot.no { background: var(--red); }

/* ---------- Dialoge ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, .3); display: flex; align-items: center; justify-content: center;
  z-index: 50; animation: fadeIn .12s ease;
}
.modal {
  background: var(--layer-solid); border-radius: var(--radius-window); padding: 22px; width: 440px; max-width: 94vw; max-height: 88vh; max-height: 88dvh; overflow-y: auto; overflow-x: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-3); animation: popIn .14s ease;
}
.modal h3 { margin-top: 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.97) translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-backdrop { animation: none; } * { transition: none !important; } }

.leaflet-container { position: relative; z-index: 0; border-radius: var(--radius-card); }

/* Statuslampe */
.conn-pill { font-size: 12px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.conn-pill.ok { color: var(--green); padding: 0 4px; }
.conn-pill.warn { background: var(--yellow-bg); color: var(--yellow); }
.conn-pill.bad { background: var(--red); color: #fff; }

/* Fairness-Radar */
.fairness-hints { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 10px; }
.fairness-hint { padding: 8px 10px; border-radius: var(--radius-ctl); font-size: 14px; line-height: 1.35; }
.fairness-hints.compact .fairness-hint { padding: 3px 6px; font-size: 12px; }
.fairness-hint.error { background: var(--red-bg); border: 1px solid rgba(196, 43, 28, .25); color: var(--red); margin-top: 0; font-size: inherit; }

/* ---------- Fahrer-Cockpit ---------- */
.cockpit { max-width: 640px; margin: 0 auto; }
.cockpit-stop { border: 1px solid var(--border); border-radius: var(--radius-card); padding: 12px; margin-bottom: 10px; background: var(--layer-solid); box-shadow: var(--shadow-1); }
.cockpit-stop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; font-size: 18px; flex-wrap: wrap; }
.cockpit-timer { font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--green-bg); color: var(--green); }
.cockpit-timer.warn { background: var(--yellow-bg); color: var(--yellow); }
.cockpit-timer.late { background: var(--red-bg); color: var(--red); }
.cockpit-timer.wait { background: rgba(0, 0, 0, .06); color: var(--text-secondary); }
.cockpit-address { font-size: 20px; font-weight: 600; line-height: 1.25; }
.cockpit-note { margin-top: 6px; padding: 6px 8px; background: var(--yellow-bg); border-radius: var(--radius-ctl); font-size: 14px; }
.cockpit-items { margin-top: 6px; font-size: 14px; color: var(--text-secondary); }
.cockpit-pay { margin-top: 8px; font-weight: 600; }
.cockpit-pay.cash { color: var(--red); }
.cockpit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cockpit-actions .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; flex: 1 1 auto; text-decoration: none; font-size: 16px; }
.cockpit-actions .btn.primary-big { flex-basis: 100%; }
.cockpit-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.cockpit-kpi { background: var(--layer-alt); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 10px 12px; }
.cockpit-kpi .v { font-size: 24px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.cockpit-kpi .l { font-size: 11.5px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }
.cockpit-tip-buttons { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 8px; }
.cockpit-tip-buttons .btn { min-width: 56px; min-height: 44px; font-size: 16px; }
.cockpit-queue-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; cursor: pointer; }
.cockpit-queue-row input[type=checkbox] { width: 22px; height: 22px; margin-top: 14px; flex: none; }
.cockpit-queue-row .cockpit-stop { margin-bottom: 0; }
.cockpit-checklist { margin: 0 0 10px 32px; padding: 8px 10px; background: var(--yellow-bg); border-radius: var(--radius-card); }
.cockpit-turn { padding: 10px 12px; border-radius: var(--radius-card); background: var(--green-bg); color: var(--green); font-weight: 600; margin-bottom: 10px; }
.cockpit-turn.wait { background: rgba(0, 0, 0, .05); color: var(--text-secondary); font-weight: 400; }

/* ---------- Mobil ---------- */
.menu-toggle {
  display: none; background: var(--control); border: 1px solid var(--control-border); color: var(--text);
  border-radius: var(--radius-ctl); padding: 6px 10px; font-size: 16px; cursor: pointer; line-height: 1;
}
.sidebar-backdrop { display: none; }

@media (max-width: 1180px) { .topbar-center { display: none; } }

/* 28.09.2026 (Franz: "schaut nicht so schön aus" - Handy quer, viel Leerraum rechts):
   860px war zu schmal für ein Handy im Querformat (viele iPhones liegen mit ~930-932px
   logischer Breite quer DARÜBER, z.B. Pro Max-Modelle) - oberhalb dieser Schwelle fiel die
   Seitenleiste auf ihre feste Desktop-Breite (240px, echtes Flex-Element statt schwebendem
   Overlay) zurück, während die Startseiten-Kacheln selbst schon bei genau dieser Breite auf
   ihr einspaltiges Layout umschalten (siehe @media (max-width: 1000px) weiter unten) - zwei
   unterschiedliche Schwellen für dieselbe Seite. Jetzt vereinheitlicht auf 1000px, damit ein
   Handy quer durchgängig das mobile Layout (schwebende Seitenleiste, volle Content-Breite)
   bekommt statt einer Mischung aus beidem. */
@media (max-width: 1000px) {
  .menu-toggle { display: inline-block; }
  .topbar-center { display: none; }
  /* Gesamtprüfung 16.09.2026 (Franz: "Die obere Leiste ... ist nicht
     responsiv") - vorher zwang .userinfo alle Symbole/Knöpfe in EINE Zeile
     (white-space:nowrap, kein flex-wrap), auf einem schmalen Bildschirm liefen
     sie dadurch über den rechten Rand hinaus statt sichtbar zu bleiben. Jetzt
     darf die Zeile auf eine zweite umbrechen, nichts verschwindet mehr
     unsichtbar am Rand. Die am wenigsten wichtigen Symbole (Dunkel-Modus,
     Kompakt-Ansicht - reine Anzeige-Vorlieben, kein Alltagsgeschäft) fliegen
     auf wirklich schmalen Bildschirmen zusätzlich ganz raus, damit die
     zweite Zeile nicht auch noch zu lang wird. */
  .topbar { flex-wrap: wrap; row-gap: 6px; min-height: auto; }
  /* flex:0 0 auto (Grundregel, siehe oben) verhindert normalerweise jedes
     Schrumpfen - dadurch blieb .userinfo trotz eigener Zeile so breit wie ihr
     Inhalt verlangte (410px auf einem 375px-Bildschirm) und lief weiterhin
     über den Rand. Hier bewusst überschrieben: eigene, volle Zeilenbreite mit
     Schrumpfen erlaubt, erst DAS lässt die Knöpfe innerhalb wirklich umbrechen. */
  .topbar .userinfo { white-space: normal; flex: 1 1 100%; max-width: 100%; flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; gap: 6px; }
  /* Verbesserungsrunde 19.09.2026 (Design-Rundgang): bei vielen Symbolen +
     "🔓 2FA einrichten" + "? Hilfe" + "Abmelden" auf 375px landete "Abmelden"
     regelmäßig allein auf einer eigenen, sonst leeren Zeile - engerer
     Abstand/Innenabstand lässt mehr Einträge auf die vorige Zeile passen. */
  .topbar .userinfo button.linklike, .topbar .userinfo a.linklike { padding: 4px 4px; }
  .layout { position: relative; }
  /* --topbar-h wird per JS gemessen (siehe useLayoutEffect in App(), app.js) -
     die Kopfzeile ist seit dem Umbruch-Fix (Gesamtprüfung 16.09.2026) nicht
     mehr immer 56px hoch, ein fest verdrahteter Wert hätte die Sidebar sonst
     wieder an der falschen Stelle beginnen lassen ("linkes Menü verschoben"). */
  .sidebar {
    position: fixed; top: var(--topbar-h, 56px); bottom: 0; left: 0; z-index: 40; width: 270px; background: var(--layer-solid);
    transform: translateX(-100%); transition: transform .2s ease;
  }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-3); }
  .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .35); z-index: 35; }
  .content { padding: 12px; width: 100%; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .topbar .userinfo span { display: none; }
  .modal { width: 94vw; padding: 14px; }
  /* (frühere table{display:inline-block}-Notlösung entfernt - .card scrollt jetzt selbst) */
  /* Gesamtprüfung 16.09.2026 (Franz: "Schriften überlappen überall") - selbst
     mit white-space:normal (siehe .wizard-step oben) quetschten sich lange
     Assistenten-Labels wie "Beschreibung & Verfügbarkeit" auf einem 375px-
     Handy noch zu dritt in eine Zeile (min-width:100px reichte nicht, der
     dritte Schritt lief am rechten Rand unsichtbar aus dem Popup). Auf
     schmalen Bildschirmen bekommt jeder Schritt eine eigene volle Zeile. */
  .wizard-step { flex-basis: 100%; min-width: 0; }
}

@media (pointer: coarse) {
  button.btn { padding: 11px 18px; font-size: 15px; min-height: 44px; }
  /* 44px auch für "small" (Gesamtprüfung 13.09.2026): der Makeline-Bump und
     die Ja/Nein-Knöpfe am Zeiterfassungs-Terminal sind "small", aber die
     Hauptaktion auf einem Touch-Bildschirm. */
  button.btn.small { padding: 8px 14px; font-size: 13px; min-height: 44px; }
  input, select, textarea { padding: 10px 12px; font-size: 15px; min-height: 44px; }
  input[type="checkbox"] { min-height: auto; width: 22px; height: 22px; }
  .sidebar .menu-item { padding: 12px 12px 12px 16px; font-size: 15px; }
  th, td { padding: 10px 8px; }
  tr.clickable { min-height: 44px; }
}

/* ---------- Handscanner ---------- */
.scanner-page { max-width: 640px; margin: 0 auto; }
.scanner-header { display: flex; align-items: center; gap: 14px; }
.scanner-header-icon {
  font-size: 32px; width: 56px; height: 56px; flex: none; display: flex; align-items: center;
  justify-content: center; background: var(--accent); color: white; border-radius: var(--radius-window);
}
.scanner-mode-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.scanner-mode-tile {
  background: var(--control); border: 1px solid var(--control-border); border-bottom-color: var(--control-border-bottom);
  border-radius: var(--radius-card); padding: 14px 6px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.scanner-mode-tile:hover { border-color: var(--accent); background: var(--control-hover); }
.scanner-mode-tile.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.scanner-mode-icon { font-size: 26px; line-height: 1; }
.scanner-mode-label { font-weight: 600; font-size: 13px; margin-top: 6px; }
.scanner-mode-desc { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.scanner-scan-btn { font-size: 19px; padding: 18px 30px; border-radius: var(--radius-window); width: 100%; max-width: 320px; min-height: 60px; box-shadow: var(--shadow-2); }
.scanner-action-btn { width: 100%; min-height: 46px; font-size: 15px; margin-top: 6px; }
.scanner-viewport { position: relative; border-radius: var(--radius-card); overflow: hidden; background: #000; }
.scanner-video-wrap { width: 100%; min-height: 280px; }
.scanner-video-wrap video, .scanner-video-wrap canvas { width: 100% !important; height: auto !important; }
.scanner-frame { position: absolute; inset: 14%; border: 3px solid rgba(255, 255, 255, .7); border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); }
.scanner-result-card { border-top: 3px solid var(--accent); }
.scanner-result-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.scanner-result-img { width: 56px; height: 56px; border-radius: var(--radius-card); object-fit: cover; flex: none; }
.scanner-result-img-placeholder { display: flex; align-items: center; justify-content: center; font-size: 26px; background: rgba(0, 0, 0, .05); }
.scanner-result-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 6px; }
.scanner-stat { background: var(--layer-alt); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 10px 12px; text-align: center; }
.scanner-stat.low { background: var(--red-bg); }
.scanner-stat-value { font-size: 18px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.scanner-stat.low .scanner-stat-value { color: var(--red); }
.scanner-stat-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.scanner-search-results { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.scanner-search-result { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: var(--radius-ctl); cursor: pointer; background: var(--control); border: 1px solid var(--border); }
.scanner-search-result:hover { background: var(--accent-soft); border-color: var(--accent); }
.scanner-history-list { display: flex; flex-direction: column; gap: 4px; }
.scanner-history-item { display: flex; justify-content: space-between; padding: 8px 10px; border-radius: var(--radius-ctl); cursor: pointer; background: var(--control); border: 1px solid var(--border); }
.scanner-history-item:hover { background: var(--accent-soft); }
@media (max-width: 480px) { .scanner-mode-desc { display: none; } .scanner-mode-tiles { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tisch-Grundriss ---------- */
.floor-canvas {
  position: relative; width: 100%; height: 480px; border-radius: var(--radius-card);
  background: linear-gradient(0deg, rgba(0, 0, 0, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px);
  background-size: 5% 5%; background-color: var(--layer-alt); border: 1px solid var(--border); overflow: hidden; touch-action: none;
}
.floor-table {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--accent); color: white; cursor: grab; user-select: none; box-shadow: var(--shadow-2); border: 3px solid rgba(255, 255, 255, .9);
  font-size: 12px; line-height: 1.2; text-align: center; padding: 2px;
}
.floor-table:active { cursor: grabbing; }
.floor-table-round { border-radius: 50%; }
.floor-table-square { border-radius: var(--radius-card); }
.floor-table-free { background: var(--accent); }
.floor-table-occupied { background: var(--red); }
.floor-table-name { font-weight: 700; word-break: break-word; }
.floor-table-seats { font-size: 10px; opacity: .85; }
.floor-legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 2px -1px 0; }
.floor-legend-free { background: var(--accent); }
.floor-legend-occupied { background: var(--red); }
@media (max-width: 600px) { .floor-canvas { height: 360px; } }

.dispatch-map-stop-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: white;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
  border: 2px solid white; box-shadow: var(--shadow-2);
}

/* ---------- Dunkelmodus (20.09.2026, Franz: "die gesamte Software wenn ich
   auf dunkel stelle im Design wie der Login-Screen") - vorher ein neutrales
   Windows-11-Blau-Dunkel, jetzt dieselbe Gold-auf-Schwarz-Identität wie der
   neue Anmeldebildschirm. Da praktisch die gesamte Oberfläche bereits über
   diese CSS-Variablen eingefärbt ist (--accent/--bg/--text/--border/...),
   genügt es, HIER die Werte auszutauschen - kein einzelnes Bauteil (Karten,
   Knöpfe, Tabellen, Sidebar, Modals) musste dafür angefasst werden. Farbwerte
   bewusst identisch zum Anmeldebildschirm übernommen (siehe .login-* oben),
   damit der Übergang nach dem Einloggen nahtlos wirkt. Status-/Ampelfarben
   (grün/gelb/rot) absichtlich NICHT gold eingefärbt - die müssen weiterhin
   eindeutig "gut/warnung/schlecht" bedeuten, nicht Teil der Marke sein. ---------- */
body.dark {
  --accent: #c9a227; --accent-hover: #d9b542; --accent-pressed: #b8912a; --accent-text: #241a05;
  --accent-soft: rgba(201, 162, 39, .16);
  --bg: #131214;
  --bg-mica: radial-gradient(ellipse 900px 700px at 8% 0%, rgba(212, 169, 74, .13), transparent 60%),
              radial-gradient(ellipse 900px 700px at 100% 100%, rgba(212, 169, 74, .1), transparent 60%),
              #131214;
  --layer: rgba(28, 26, 23, .82); --layer-solid: #1c1a17; --layer-alt: rgba(255, 255, 255, .04);
  --nav: rgba(19, 18, 20, .88);
  --border: rgba(212, 169, 74, .16); --border-strong: rgba(212, 169, 74, .32);
  /* Rückmeldung 26.09.2026 (Franz: "Im dunklen Modus ist die Schrift grau auf
     schwarz. Ist nicht so schön."): --text-muted lag bei nur ~4,6:1 Kontrast
     auf --bg (#131214) - technisch noch WCAG-AA-lesbar, aber genau das
     unangenehme Grau-auf-Schwarz-Gefühl, gerade bei 12,5px-Fließtext (.muted).
     #9c9690 (bereits als Icon-/Label-Farbe auf dem Anmeldebildschirm im
     Einsatz, also keine neue Farbe im System) liefert ~6,4:1 - deutlich
     angenehmer lesbar, bleibt aber klar als "gedämpft" von --text/--text-
     secondary unterscheidbar. */
  --text: #ffffff; --text-secondary: #b8b2a9; --text-muted: #9c9690;
  --control: rgba(255, 255, 255, .05); --control-hover: rgba(255, 255, 255, .08);
  --control-border: rgba(255, 255, 255, .12); --control-border-bottom: rgba(255, 255, 255, .12);
  --input-bg: rgba(255, 255, 255, .05); --input-border-bottom: rgba(212, 169, 74, .45);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .3);
  --shadow-2: 0 4px 16px rgba(0, 0, 0, .45); --shadow-3: 0 24px 60px rgba(0, 0, 0, .55);
  --green: #6ccb5f; --green-bg: rgba(108, 203, 95, .16);
  --yellow: #fce100; --yellow-bg: rgba(252, 225, 0, .14);
  --red: #ff99a4; --red-bg: rgba(255, 153, 164, .16);
  --blue-bg: rgba(201, 162, 39, .16);
  --dp-blue-dark: #ffffff;
  color: var(--text);
}
body.dark .sidebar .menu-item:hover, body.dark .menu-focus-toggle:hover { background: rgba(255, 255, 255, .06); }
body.dark .sidebar .menu-item.active { background: rgba(212, 169, 74, .12); }
body.dark tbody tr:hover { background: rgba(255, 255, 255, .04); }
body.dark .pill.grey { background: rgba(255, 255, 255, .1); color: var(--text-secondary); }
body.dark .warn-box { color: #f7dd6b; border-color: rgba(252, 225, 0, .3); }
body.dark .info-box { color: #9fdcff; border-color: rgba(96, 205, 255, .3); }
body.dark .wizard-step { background: rgba(255, 255, 255, .06); }
/* Rückmeldung 26.09.2026 (Franz, Handy-Foto Bestellannahme im Dunkelmodus:
   "Service Kunde zu dunkel"): die Zeile darüber ist spezifischer als
   .wizard-step.active (Zeile ~416) und überschrieb im Dunkelmodus den GOLDENEN
   Hintergrund des aktiven Schritts - die Textfarbe blieb aber --accent-text
   (#241a05, fast schwarz, gedacht für AUF Gold). Ergebnis: der aktive Schritt
   war der am schlechtesten lesbare von allen. Betraf jeden Assistenten
   (Bestellannahme, Produktkatalog, Wareneingang, ...), analog den grünen
   "erledigt"-Zustand. Hier explizit mit höherer Spezifität zurückgesetzt. */
body.dark .wizard-step.active { background: var(--accent); color: var(--accent-text); }
body.dark .wizard-step.done { background: var(--green-bg); }
body.dark .wizard-step-num { background: rgba(255, 255, 255, .12); }
body.dark .wizard-step.active .wizard-step-num { background: rgba(0, 0, 0, .18); }
body.dark .cockpit-turn.wait { background: rgba(255, 255, 255, .06); }
body.dark .scanner-result-img-placeholder { background: rgba(255, 255, 255, .06); }
body.dark .floor-canvas { background-image: linear-gradient(0deg, rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); }
body.dark .floor-table { border-color: rgba(0, 0, 0, .5); color: #000; }
body.dark .floor-table-occupied { color: #000; }
body.dark .dispatch-map-stop-num { color: #000; border-color: #2b2b2b; }
body.dark .conn-pill.bad { background: var(--red); color: #000; }
body.dark button.btn.danger { color: #000; }
body.dark input:focus, body.dark select:focus, body.dark textarea:focus { background: #201d18; }
body.dark select option { background: #1c1a17; color: #fff; }
body.dark .qr-table-card { background: #fff; color: #1a1a1a; }

/* ---------- Druck ---------- */
@media print {
  .topbar, .sidebar, .sidebar-backdrop, .menu-toggle, .no-print { display: none !important; }
  .layout { display: block !important; overflow: visible !important; }
  #root { height: auto !important; }
  .content { padding: 0 !important; overflow: visible !important; }
  .card { box-shadow: none !important; border: none !important; background: white !important; backdrop-filter: none !important; }
  body, body.has-bg { background: white !important; }
  body.has-bg::before { display: none; }
  body.compact .card > p.muted { display: block; }
}

/* ---------- Ausbaurunde 2.20 (12.09.2026): Dashboard, Mitteilungen, Suche, Abholanzeige ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.dash-tile { padding: 14px 16px; }
.dash-tile.clickable { cursor: pointer; }
.dash-tile.clickable:hover { border-color: var(--accent); }
.dash-value { font-size: 26px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dash-label { color: var(--text-secondary); font-size: 12.5px; margin-top: 4px; }
.msg-row { padding: 8px 10px; border-radius: var(--radius-card); cursor: pointer; border: 1px solid transparent; }
.msg-row:hover { background: rgba(0, 0, 0, .03); }
.msg-row.unread { border-left: 3px solid var(--accent); background: var(--accent-soft); }
.search-palette { padding: 14px; max-width: 640px; }
.search-palette input { font-size: 16px; }
.search-results { max-height: 50vh; overflow: auto; margin-top: 8px; }
.search-row { padding: 8px 10px; border-radius: var(--radius-card); cursor: pointer; }
.search-row:hover { background: var(--accent-soft); }
.floor-table-reserved { background: var(--yellow, #f0b400); color: #000; }
.pickup-display { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; min-height: 80vh; padding: 20px; }
.pickup-col { background: var(--layer); border-radius: var(--radius-card); padding: 20px; }
.pickup-col h2 { text-align: center; font-size: 30px; }
.pickup-col.ready h2 { color: var(--green); }
.pickup-num { font-size: 56px; font-weight: 800; text-align: center; padding: 10px 0; font-variant-numeric: tabular-nums; }
.pickup-col.ready .pickup-num { color: var(--green); }
body.dark .msg-row:hover { background: rgba(255, 255, 255, .05); }
body.dark .search-row:hover { background: rgba(255, 255, 255, .08); }

/* ---------- Schichtplanung: Tagesansicht auf schmalen Bildschirmen (13.09.2026) ---------- */
/* Wetter im Dienstplan (27.09.2026, Franz: "Wetter im Schichtplan als Vorschlag für
   Personalplanung" -> "Alle Punkte umsetzen und sinnvoll umsetzen") */
.plan-weather { font-size: 11px; font-weight: 400; margin-top: 2px; white-space: nowrap; cursor: help; }
.plan-weather.hint { color: var(--danger, #c0392b); font-weight: 600; }
.plan-day-tabs { display: flex; gap: 4px; margin: 8px 0 10px; overflow-x: auto; }
.plan-day-tab { flex: 1 0 auto; min-width: 44px; padding: 6px 4px; border-radius: var(--radius-ctl); border: 1px solid var(--control-border); background: var(--control); text-align: center; cursor: pointer; font-size: 12.5px; line-height: 1.2; }
.plan-day-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.plan-day-tab small { display: block; opacity: .75; font-size: 11px; }
.plan-day-row { display: flex; align-items: flex-start; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.plan-day-row:last-child { border-bottom: none; }
.plan-day-pos { flex: 0 0 110px; font-weight: 600; font-size: 13px; padding-top: 4px; }
.plan-day-entries { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.plan-day-entries .pill { cursor: pointer; }

/* Sauberer aussehen (28.09.2026, Franz: "Der Schichtplan sollte auch sauberer
   aussehen und verbessert werden" -> Ideenliste -> "Ja bitte umsetzen"):
   Wochenend-Spalten (Sa/So) leicht abheben, damit das Wochenende beim
   Überfliegen sofort auffällt statt sieben gleich aussehende Spalten zählen
   zu müssen. */
th.plan-weekend, td.plan-weekend { background: rgba(0, 0, 0, .025); }
body.dark th.plan-weekend, body.dark td.plan-weekend { background: rgba(255, 255, 255, .035); }

/* Positionsfarben (28.09.2026, siehe planPosColorClass in app.js): feste Farbe je
   Position anhand der ID (Positionen sind frei anlegbar, kein fester Katalog -
   deshalb ein Farbkreis statt einer benannten Zuordnung). Eigener linker Rand an
   Namenszelle/Pille statt vollflächiger Einfärbung, damit es neben den
   bestehenden Warnfarben (rot=Lücke, gelb=Abwesenheit, grün=besetzt) nicht
   konkurriert. */
.plan-pos-label, .plan-day-pos { border-left: 3px solid transparent; padding-left: 7px !important; }
.pill.plan-pos-0, .plan-pos-label.plan-pos-0, .plan-day-pos.plan-pos-0 { border-left-color: #c0392b; }
.pill.plan-pos-1, .plan-pos-label.plan-pos-1, .plan-day-pos.plan-pos-1 { border-left-color: #2f6fbb; }
.pill.plan-pos-2, .plan-pos-label.plan-pos-2, .plan-day-pos.plan-pos-2 { border-left-color: #2f8f5b; }
.pill.plan-pos-3, .plan-pos-label.plan-pos-3, .plan-day-pos.plan-pos-3 { border-left-color: #c9a227; }
.pill.plan-pos-4, .plan-pos-label.plan-pos-4, .plan-day-pos.plan-pos-4 { border-left-color: #8e5fc9; }
.pill.plan-pos-5, .plan-pos-label.plan-pos-5, .plan-day-pos.plan-pos-5 { border-left-color: #c9622f; }
.pill.plan-pos-6, .plan-pos-label.plan-pos-6, .plan-day-pos.plan-pos-6 { border-left-color: #2fa7ae; }
.pill.plan-pos-7, .plan-pos-label.plan-pos-7, .plan-day-pos.plan-pos-7 { border-left-color: #a24f8f; }
.pill.plan-pos-0, .pill.plan-pos-1, .pill.plan-pos-2, .pill.plan-pos-3,
.pill.plan-pos-4, .pill.plan-pos-5, .pill.plan-pos-6, .pill.plan-pos-7 { padding-left: 7px; }

/* Mitarbeiter-Schnellsuche (28.09.2026): Treffer hervorheben, Rest optisch zurücktreten
   lassen - reine Anzeige, filtert nichts weg (Zellen/Knöpfe bleiben erreichbar). */
.pill.plan-dim { opacity: .25; }
.pill.plan-highlight { outline: 2px solid var(--accent); font-weight: 700; }

/* Vertragsstunden-Fortschritt (28.09.2026, "Schichtplan verbessern" -> "Alles
   umsetzen"): kleiner Balken statt reiner Zahlenspalte in "Personalkosten je
   Mitarbeiter" - Daten waren schon da (Std/Vertragsstd.), nur nicht visualisiert. */
.plan-contract-bar { display: flex; align-items: center; gap: 6px; min-width: 90px; }
.plan-contract-bar-track { flex: 1; height: 6px; border-radius: 999px; background: rgba(0, 0, 0, .08); overflow: hidden; }
body.dark .plan-contract-bar-track { background: rgba(255, 255, 255, .12); }
.plan-contract-bar-fill { height: 100%; border-radius: 999px; background: var(--accent); }
.plan-contract-bar-fill.over { background: var(--danger, #c0392b); }

/* ---------- Benachrichtigungs-Center (Marktvergleich 16.09.2026) ---------- */
.notif-wrap { position: relative; display: inline-block; }
.notif-panel {
  /* fixed statt absolut zur Glocke: die sitzt je nach Bildschirmbreite weit links in der
     Kopfzeile, ein rechtsbündig daran hängendes 360px-Feld liefe sonst links aus dem Bild. */
  position: fixed; right: 12px; top: calc(var(--topbar-h, 56px) + 4px); width: min(380px, 92vw); z-index: 60;
  background: var(--layer-solid); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-3); padding: 6px; white-space: normal; text-align: left; animation: popIn .14s ease;
  max-height: 70vh; overflow-y: auto;
}
.notif-head { font-weight: 700; font-size: 13px; padding: 6px 10px 4px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; }
.notif-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius-ctl); cursor: pointer; font-size: 13.5px; color: var(--text); }
.notif-row:hover { background: var(--accent-soft); }
.notif-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; background: var(--accent); }
.notif-dot.red { background: var(--red); } .notif-dot.yellow { background: var(--yellow); } .notif-dot.blue { background: var(--accent); }
.notif-label { flex: 1; min-width: 0; }
.notif-go { color: var(--text-secondary); font-size: 18px; line-height: 1; }
@media (max-width: 860px) { .notif-panel { right: 8px; left: 8px; width: auto; } }

/* ---------- Theken-Kiosk (?kiosk=theke) ---------- */
.kiosk-screen .btn { min-height: 48px; }
.kiosk-screen input { font-size: 18px; min-height: 48px; }
.kiosk-start:hover { box-shadow: var(--shadow-3); }

/* ---------- Raumplan-Ausbau (26.09.2026) ----------
   Feste Elemente/Zonen, Größenänderung, Verweildauer-Ampel, Hintergrundbild,
   Langtische. Tische werden weiterhin über den Mittelpunkt positioniert
   (transform translate(-50%,-50%)), Elemente über die linke obere Ecke. */
.floor-canvas.floor-has-bg > .floor-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; pointer-events: none; }
.floor-canvas.floor-editing { outline: 2px dashed var(--accent); outline-offset: 2px; }
.floor-canvas.floor-snap { background-size: 5% 5%; }
.floor-table-rect { border-radius: 8px; }
.floor-table-dwell-warn { background: var(--yellow); color: #000; }
.floor-table-dwell-late { background: var(--red); }
.floor-table-info { font-size: 10px; opacity: .95; white-space: nowrap; }
.floor-table-res { font-size: 9.5px; background: rgba(0, 0, 0, .28); border-radius: 999px; padding: 0 5px; margin-top: 1px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.floor-table-group { position: absolute; top: -8px; right: -8px; background: var(--layer-solid); color: var(--text); border: 1px solid var(--border-strong); border-radius: 999px; font-size: 9px; padding: 0 5px; }
.floor-table.floor-selected, .floor-el.floor-selected { box-shadow: 0 0 0 3px var(--accent), var(--shadow-2); }
.floor-el {
  position: absolute; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 11px;
  color: var(--text); user-select: none; border-radius: 4px; box-sizing: border-box; padding: 2px; overflow: hidden;
}
.floor-editing .floor-el { cursor: grab; }
.floor-el-wand { background: var(--text-secondary); color: #fff; }
.floor-el-theke { background: #8b5a2b; color: #fff; border-radius: 10px; }
.floor-el-eingang { background: var(--green-bg); color: var(--green); border: 2px dashed var(--green); }
.floor-el-kueche { background: var(--yellow-bg); color: var(--yellow); border: 1px solid var(--yellow); }
.floor-el-fenster { background: var(--blue-bg); border: 2px solid #5aa9e6; color: var(--text-secondary); }
.floor-el-pflanze { background: var(--green-bg); color: var(--green); border-radius: 50%; }
.floor-el-saeule { background: var(--text-muted); color: #fff; border-radius: 50%; }
.floor-el-zone { background: var(--accent-soft); border: 1px dashed var(--accent); color: var(--text-secondary); align-items: flex-start; justify-content: flex-start; font-weight: 600; }
.floor-handle {
  position: absolute; right: -6px; bottom: -6px; width: 14px; height: 14px; border-radius: 3px; background: var(--layer-solid);
  border: 2px solid var(--accent); cursor: nwse-resize; touch-action: none;
}
.floor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.floor-legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--text-secondary); margin: 6px 0 0; }
@media (max-width: 860px) { .floor-canvas { height: 360px; } .floor-table-info, .floor-table-res { display: none; } }

/* Menü-Matrix (Positionen & Funktionen → Menü je Position, 27.09.2026) */
.menu-matrix th { position: sticky; top: 0; background: var(--card-bg, var(--bg)); z-index: 1; }
.menu-matrix td, .menu-matrix th { padding: 4px 8px; white-space: nowrap; }
.menu-matrix tr.menu-matrix-group td { background: var(--accent-soft); padding-top: 8px; }
.menu-matrix td .clickable { cursor: pointer; }

/* ===========================================================================
   STARTSEITE (27.09.2026, Etappe 1 neue Oberfläche) - Kacheln + Widgets im
   Glas-Look. Bewusst auf .startpage begrenzt; Etappe 2 überträgt den Stil.
   =========================================================================== */
.startpage { --sp-glass: rgba(255,255,255,0.55); --sp-line: rgba(0,0,0,0.08); --sp-shadow: 0 16px 40px rgba(0,0,0,0.10);
             padding: 6px 0 20px; background:
               radial-gradient(900px 420px at 10% -10%, rgba(224,180,58,0.22) 0%, transparent 60%),
               radial-gradient(700px 400px at 95% 10%, rgba(92,184,255,0.18) 0%, transparent 55%);
             border-radius: 24px; }
body.dark .startpage { --sp-glass: rgba(255,255,255,0.08); --sp-line: rgba(255,255,255,0.14); --sp-shadow: 0 20px 50px rgba(0,0,0,0.35);
             background:
               radial-gradient(900px 420px at 10% -10%, rgba(224,180,58,0.20) 0%, transparent 60%),
               radial-gradient(700px 400px at 95% 10%, rgba(30,90,120,0.45) 0%, transparent 55%),
               radial-gradient(700px 500px at 60% 110%, rgba(80,30,90,0.35) 0%, transparent 60%); }
.startpage .card { background: var(--sp-glass); border: 1px solid var(--sp-line); border-radius: 22px; box-shadow: var(--sp-shadow); backdrop-filter: blur(16px); margin: 0; }
.start-top { display: grid; grid-template-columns: 320px 1fr; gap: 18px; margin-bottom: 18px; }
.start-profile { padding: 22px; }
.start-profile h2 { margin: 10px 0 2px; font-size: 26px; }
.start-avatar { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #1a1408;
                background: linear-gradient(135deg, var(--accent), #f3d27a); box-shadow: 0 8px 22px rgba(224,180,58,0.35); }
.start-launcher { padding: 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px 8px; align-content: start; }
.start-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 13px; text-align: center; cursor: pointer; }
.start-tile-ic { position: relative; width: 62px; height: 62px; border-radius: 19px; display: grid; place-items: center; font-size: 28px;
                 background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.45)); border: 1px solid var(--sp-line);
                 box-shadow: 0 8px 20px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.7); transition: transform .15s ease, box-shadow .15s ease; }
body.dark .start-tile-ic { background: linear-gradient(145deg, rgba(255,255,255,0.20), rgba(255,255,255,0.06)); box-shadow: 0 10px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.25); }
.start-tile:hover .start-tile-ic { transform: translateY(-3px) scale(1.04); box-shadow: 0 14px 28px rgba(0,0,0,0.18); }
.start-badge { position: absolute; top: -6px; right: -6px; min-width: 20px; padding: 1px 6px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 2px solid var(--bg); }
.start-badge.gold { background: var(--accent); color: #1a1408; } .start-badge.red { background: var(--red, #d33); color: #fff; }
.start-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.start-widget { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
/* Wichtig-Leiste (21.11.2026): rote Punkte aus "Zu erledigen" immer oben */
.start-urgent { margin: 14px 0; padding: 14px 18px; border-left: 5px solid var(--red); background: var(--red-bg); }
.start-widget.span-4 { grid-column: span 4; } .start-widget.span-5 { grid-column: span 5; } .start-widget.span-6 { grid-column: span 6; } .start-widget.span-7 { grid-column: span 7; }
.start-widget-head { display: flex; align-items: center; gap: 12px; }
.start-widget-head h3 { margin: 0; font-size: 18px; }
.start-widget-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: rgba(255,255,255,0.5); border: 1px solid var(--sp-line); }
body.dark .start-widget-ic { background: rgba(255,255,255,0.12); }
.start-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.start-kpi { background: rgba(255,255,255,0.45); border: 1px solid var(--sp-line); border-radius: 14px; padding: 10px 12px; }
body.dark .start-kpi { background: rgba(255,255,255,0.07); }
.start-kpi .l { font-size: 12px; color: var(--text-muted); } .start-kpi .v { font-size: 24px; font-weight: 700; margin-top: 2px; } .start-kpi .d { font-size: 12px; color: var(--text-muted); }
.start-kpi .d.up { color: var(--green, #2a9d5c); } .start-kpi .d.down { color: var(--red, #d33); }
.start-bars { display: flex; align-items: flex-end; gap: 5px; height: 64px; padding-top: 4px; }
.start-bars .bar { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #f3d27a, var(--accent)); opacity: .85; min-height: 3px; }
.start-bars .bar.now { background: linear-gradient(180deg, #fff, #f3d27a); opacity: 1; box-shadow: 0 0 0 2px rgba(224,180,58,0.35); }
.start-bars .bar.future { opacity: .2; }
.start-list { display: flex; flex-direction: column; }
.start-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--sp-line); font-size: 14px; }
.start-row:first-child { border-top: none; }
.start-row .t { flex: 1; } .start-row .m, .start-row .r { color: var(--text-muted); font-size: 12px; }
.start-tables { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.start-tb { aspect-ratio: 1; border-radius: 13px; display: grid; place-items: center; font-weight: 700; font-size: 13px; cursor: pointer; position: relative;
            border: 1px solid var(--sp-line); background: rgba(255,255,255,0.4); }
body.dark .start-tb { background: rgba(255,255,255,0.07); }
.start-tb.g { background: rgba(61,220,132,0.22); border-color: rgba(61,220,132,0.5); } .start-tb.y { background: rgba(255,209,102,0.28); border-color: rgba(255,209,102,0.6); }
.start-tb.r { background: rgba(255,107,107,0.26); border-color: rgba(255,107,107,0.6); } .start-tb.res { border-style: dashed; }
.start-tb small { position: absolute; bottom: 4px; font-size: 10px; font-weight: 500; color: var(--text-muted); }
@media (max-width: 1000px) { .start-top { grid-template-columns: 1fr; } .start-launcher { grid-template-columns: repeat(4, 1fr); }
  .start-widget.span-4, .start-widget.span-5, .start-widget.span-6, .start-widget.span-7 { grid-column: 1 / -1; } .start-kpis { grid-template-columns: repeat(2, 1fr); } .start-tables { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .start-launcher { grid-template-columns: repeat(3, 1fr); } }

/* ===========================================================================
   DESIGN 2026 - Etappe 2 (27.09.2026, Franz: "die gesamte Oberfläche sollte
   moderner sein ... auch die farben geiler machen", Vorbild iCloud-Startseite,
   Freigabe "weiter" nach Etappe 1). Überträgt den Glas-Look der Startseite auf
   ALLE Seiten: Farbverlauf-Hintergrund, Glas-Karten mit weichem Schatten,
   runde Bedienelemente (10/18/22 px), goldener Verlaufs-Hauptknopf, ruhige
   Tabellen, Glas-Seitenleiste. Bewusst als Überschreibungs-Block am Ende
   (alle Klassennamen unverändert, app.js unberührt) - lässt sich damit auch
   als Ganzes wieder zurücknehmen. Kontraste geprüft: Text bleibt --text auf
   Glas mit mindestens 0,72 Deckkraft (hell) bzw. 0,085 auf #0f1322 (dunkel).
   =========================================================================== */
:root {
  --radius-ctl: 10px; --radius-card: 18px; --radius-window: 22px;
  --bg: #eef1f6;
  --bg-mica: radial-gradient(1100px 600px at 8% -5%, rgba(224, 180, 58, .28) 0%, transparent 60%),
             radial-gradient(900px 600px at 100% 10%, rgba(92, 184, 255, .26) 0%, transparent 55%),
             radial-gradient(900px 700px at 55% 110%, rgba(214, 160, 220, .22) 0%, transparent 60%),
             linear-gradient(160deg, #f7f5ef 0%, #eef1f6 60%, #e9eef6 100%);
  --layer: rgba(255, 255, 255, .72); --layer-alt: rgba(255, 255, 255, .5);
  --nav: rgba(255, 255, 255, .55);
  --border: rgba(20, 30, 60, .08); --border-strong: rgba(20, 30, 60, .16);
  --control: rgba(255, 255, 255, .75); --control-hover: rgba(255, 255, 255, .95);
  --input-bg: rgba(255, 255, 255, .8);
  --shadow-1: 0 8px 24px rgba(20, 30, 60, .08), 0 1px 2px rgba(20, 30, 60, .04);
  --shadow-2: 0 14px 36px rgba(20, 30, 60, .14);
  --shadow-3: 0 30px 80px rgba(20, 30, 60, .28);
  --blur: blur(22px) saturate(1.25);
}
body.dark {
  --bg: #0f1322;
  --bg-mica: radial-gradient(1200px 700px at 12% -5%, rgba(224, 180, 58, .22) 0%, transparent 60%),
             radial-gradient(900px 600px at 100% 15%, rgba(18, 90, 120, .55) 0%, transparent 55%),
             radial-gradient(900px 700px at 55% 110%, rgba(80, 30, 90, .45) 0%, transparent 60%),
             linear-gradient(160deg, #0d1220 0%, #141a2e 100%);
  --layer: rgba(255, 255, 255, .085); --layer-solid: #1a2033; --layer-alt: rgba(255, 255, 255, .06);
  --nav: rgba(13, 18, 32, .55);
  --border: rgba(255, 255, 255, .12); --border-strong: rgba(255, 255, 255, .22);
  --control: rgba(255, 255, 255, .10); --control-hover: rgba(255, 255, 255, .16);
  --control-border: rgba(255, 255, 255, .14); --control-border-bottom: rgba(255, 255, 255, .14);
  --input-bg: rgba(255, 255, 255, .08); --input-border-bottom: rgba(224, 180, 58, .5);
  --text-secondary: #c9c3b8; --text-muted: #a49e95;
  --shadow-1: 0 10px 30px rgba(0, 0, 0, .35); --shadow-2: 0 16px 40px rgba(0, 0, 0, .45); --shadow-3: 0 30px 80px rgba(0, 0, 0, .6);
  --accent: #e0b43a; --accent-hover: #f3d27a; --accent-pressed: #c99c25; --accent-soft: rgba(224, 180, 58, .18);
}
body { font-size: 14.5px; }
/* Kopfzeile + Seitenleiste als Glas */
.topbar { background: var(--nav); border-bottom: 1px solid var(--border); min-height: 52px; }
.sidebar { background: var(--nav); border-right: 1px solid var(--border); padding: 10px 8px; width: 244px; }
.sidebar .menu-item { padding: 9px 12px 9px 16px; border-radius: 12px; margin: 2px 0; font-size: 14px; }
.sidebar .menu-item.active { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(224, 180, 58, .35); }
.sidebar .menu-item.active::before { width: 4px; height: 18px; border-radius: 4px; background: linear-gradient(180deg, #f3d27a, var(--accent)); }
.sidebar .menu-group-label { padding: 16px 12px 6px; }
/* Karten */
.card { border-radius: var(--radius-card); padding: 18px 20px; box-shadow: var(--shadow-1); border: 1px solid var(--border); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.card .card { border-radius: 14px; box-shadow: none; }
.card h2 { font-size: 20px; letter-spacing: -.015em; margin-bottom: 12px; }
.card h3 { font-size: 15px; }
/* Knöpfe: Pillenform, goldener Verlauf für die Hauptaktion, Glas für den Rest */
button.btn, a.btn { border-radius: 12px; padding: 8px 16px; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); border: 1px solid var(--control-border); }
button.btn:not(.secondary):not(.danger), a.btn:not(.secondary):not(.danger) {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)); border-color: transparent;
  box-shadow: 0 8px 20px rgba(224, 180, 58, .28), inset 0 1px 0 rgba(255, 255, 255, .35);
}
button.btn:not(.secondary):not(.danger):hover, a.btn:not(.secondary):not(.danger):hover { filter: brightness(1.05); background: linear-gradient(135deg, var(--accent), var(--accent-hover)); transform: translateY(-1px); }
button.btn:not(.secondary):not(.danger):active { transform: translateY(0); filter: brightness(.97); }
button.btn.secondary, a.btn.secondary { background: var(--control); }
button.btn.secondary:hover, a.btn.secondary:hover { background: var(--control-hover); border-color: var(--border-strong); }
button.btn.danger, a.btn.danger { border-radius: 12px; }
button.btn.small, a.btn.small { padding: 5px 12px; border-radius: 10px; font-size: 12.5px; }
/* Eingabefelder: rund, mit weichem Fokusring statt Unterstrich */
input, select, textarea { border-radius: 10px; padding: 8px 12px; border: 1px solid var(--control-border); border-bottom: 1px solid var(--control-border); background: var(--input-bg); font-size: 14px; }
input:focus, select:focus, textarea:focus { border: 1px solid var(--accent); border-bottom: 1px solid var(--accent); padding: 8px 12px; box-shadow: 0 0 0 3px var(--accent-soft); }
textarea:focus { padding-bottom: 8px; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; border-radius: 5px; padding: 0; box-shadow: none; }
input[type="checkbox"]:focus, input[type="radio"]:focus { box-shadow: none; padding: 0; }
input[type="range"] { padding: 0; border: none; background: transparent; box-shadow: none; }
label { font-size: 12.5px; }
/* Tabellen: luftiger, Kopfzeile klein in Großbuchstaben, Zeilen rund beim Hover */
table { font-size: 13.5px; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); padding: 10px 10px 8px; }
td { padding: 10px; }
tbody tr:hover { background: var(--accent-soft); }
tbody tr:hover td:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
tbody tr:hover td:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }
/* Pillen / Chips / Kennzahlen / Hinweisboxen */
.pill { padding: 3px 10px; font-size: 11.5px; }
.chip { padding: 6px 14px; border-radius: 999px; }
.kpi { border-radius: 16px; padding: 14px 12px; background: var(--layer-alt); border: 1px solid var(--border); }
.dash-tile { border-radius: 18px; }
.dash-tile.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.error, .success, .warn-box, .info-box { border-radius: 12px; padding: 10px 14px; }
/* Fenster */
.modal { border-radius: var(--radius-window); padding: 24px; background: var(--layer); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow-3); }
body.dark .modal { background: rgba(26, 32, 51, .92); }
.modal-backdrop { background: rgba(10, 14, 28, .45); backdrop-filter: blur(4px); }
/* Assistenten-Schritte, Menü-Matrix, Startseite - Feinabstimmung auf den neuen Radius */
.wizard-step { border-radius: 999px; }
.menu-matrix th { background: var(--layer-solid); border-radius: 0; }
body.dark .menu-matrix th { background: #1a2033; }
.startpage { background: none; padding-top: 0; }
/* Scrollbalken passend */
.content::-webkit-scrollbar, .sidebar::-webkit-scrollbar, .modal::-webkit-scrollbar { width: 10px; }
.content::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb, .modal::-webkit-scrollbar-thumb { background: rgba(120, 120, 140, .35); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
.content::-webkit-scrollbar-track, .sidebar::-webkit-scrollbar-track { background: transparent; }
@media (max-width: 700px) { .card { padding: 14px 14px; border-radius: 16px; } button.btn, a.btn { padding: 9px 14px; } }

/* ===========================================================================
   ETAPPE 3 (27.09.2026): Kachel-Navigation wie ein iPad - linkes Menü wird zur
   ☰-Ausklappleiste (body.nav-tiles), oben 🏠 + ⊞ Apps + Seitentitel; App-
   Übersicht als Glas-Overlay; Startseite anpassbar (Bearbeiten-Modus mit
   Wackeln, ✕, ◀ ▶, Ziehen); Uhr/Datum/Wetter-Baustein.
   =========================================================================== */
body.nav-tiles .sidebar {
  position: fixed; top: var(--topbar-h, 56px); bottom: 0; left: 0; z-index: 40; width: 280px; background: var(--layer-solid);
  transform: translateX(-100%); transition: transform .2s ease; border-right: 1px solid var(--border);
}
body.nav-tiles .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-3); }
body.nav-tiles .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(10, 14, 28, .35); z-index: 35; }
body.nav-tiles .menu-toggle { display: inline-block; }
body.nav-tiles .layout { position: relative; }
body.nav-tiles .content { padding: 18px 26px 32px; }
.topnav { display: flex; align-items: center; gap: 6px; margin-left: 8px; min-width: 0; }
.topnav-btn { background: var(--control); border: 1px solid var(--control-border); color: var(--text); border-radius: 12px; padding: 6px 12px; font-size: 14px; cursor: pointer; font-family: inherit; font-weight: 600; }
.topnav-btn:hover { background: var(--control-hover); }
.topnav-btn.active { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(224, 180, 58, .4); }
.topnav-title { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
@media (max-width: 860px) { .topnav-title { display: none; } }
/* App-Übersicht */
.app-drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(10, 14, 28, .45); backdrop-filter: blur(8px); display: flex; justify-content: center; align-items: flex-start; padding: 60px 16px 16px; overflow-y: auto; animation: fadeIn .12s ease; }
.app-drawer { width: min(1100px, 100%); background: var(--layer); border: 1px solid var(--border); border-radius: 24px; padding: 18px 22px; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow-3); animation: popIn .14s ease; }
body.dark .app-drawer { background: rgba(26, 32, 51, .9); }
.app-drawer-area { margin-bottom: 8px; }
.app-drawer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 6px; padding: 4px 0 10px; }
/* Bearbeiten-Modus */
.startpage.editing .start-tile-ic { animation: jiggle 1.1s ease-in-out infinite; }
.startpage.editing .start-tile:nth-child(odd) .start-tile-ic { animation-delay: -.4s; }
@keyframes jiggle { 0%, 100% { transform: rotate(-1.2deg); } 50% { transform: rotate(1.2deg); } }
.startpage .start-tile.dragging, .startpage .start-widget.dragging { opacity: .45; }
.startpage.editing .start-tile, .startpage.editing .start-widget { cursor: grab; }
.startpage.editing .start-widget { outline: 2px dashed var(--border-strong); outline-offset: -6px; }
.start-tile-x { position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; cursor: pointer; border: 2px solid var(--bg); z-index: 2; }
.start-tile.add .start-tile-ic { border-style: dashed; font-size: 30px; color: var(--text-muted); background: transparent; }
.start-edit-ctl { display: flex; gap: 4px; justify-content: center; }
.start-edit-ctl .btn.small { padding: 2px 7px; }
.start-edit-bar { display: flex; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
.start-widget.span-12 { grid-column: 1 / -1; }
/* Uhr / Wetter */
.start-clock { flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
.start-clock .big { font-size: 40px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.start-clock-time { min-width: 220px; }
.start-weather { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; flex: 1; }
.start-weather-now { display: flex; align-items: center; gap: 10px; }
.start-weather-now .wicon { font-size: 40px; line-height: 1; }
.start-weather-meta { display: flex; gap: 14px; flex-wrap: wrap; }
.start-weather-hours { display: flex; gap: 10px; margin-left: auto; }
.start-weather-hours .h { text-align: center; min-width: 44px; padding: 6px 4px; border-radius: 12px; background: rgba(255, 255, 255, .35); border: 1px solid var(--sp-line); font-size: 13px; }
body.dark .start-weather-hours .h { background: rgba(255, 255, 255, .07); }
@media (max-width: 860px) { .start-weather-hours { margin-left: 0; overflow-x: auto; width: 100%; } .start-clock .big { font-size: 32px; } }

/* ETAPPE 4 (27.09.2026): Kachelgröße S/M/L, Umsatzziel-Balken, Kiosk-Uhr */
.start-launcher.size-s { grid-template-columns: repeat(8, 1fr); gap: 12px 6px; }
.start-launcher.size-s .start-tile-ic { width: 50px; height: 50px; border-radius: 15px; font-size: 23px; }
.start-launcher.size-s .start-tile { font-size: 12px; }
.start-launcher.size-l { grid-template-columns: repeat(4, 1fr); gap: 20px 10px; }
.start-launcher.size-l .start-tile-ic { width: 84px; height: 84px; border-radius: 26px; font-size: 40px; }
.start-launcher.size-l .start-tile { font-size: 14.5px; }
@media (max-width: 1000px) { .start-launcher.size-s { grid-template-columns: repeat(6, 1fr); } .start-launcher.size-l { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .start-launcher.size-s { grid-template-columns: repeat(4, 1fr); } .start-launcher.size-l { grid-template-columns: repeat(2, 1fr); } }
.start-goal { height: 14px; border-radius: 999px; background: rgba(127, 127, 127, .18); overflow: hidden; margin: 6px 0; }
.start-goal-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), #f3d27a); transition: width .4s ease; }
.start-goal-fill.done { background: linear-gradient(90deg, #3ddc84, #1f9d5a); }
.start-goal-v { font-size: 24px; font-weight: 700; }
.kiosk-clock { padding: 4px 10px; border-radius: 10px; background: var(--control); border: 1px solid var(--control-border); white-space: nowrap; }

/* 27.09.2026: Kacheln per Finger verschieben + Uhr in der Kopfzeile */
.startpage.editing .start-launcher { touch-action: none; user-select: none; -webkit-user-select: none; }
.start-tile { touch-action: manipulation; }
.startpage .start-tile.dragging .start-tile-ic { transform: scale(1.12); box-shadow: 0 18px 36px rgba(0, 0, 0, .3); animation: none; }
.topbar-clock { margin-right: 4px; }
@media (max-width: 860px) { .topbar-clock-date { display: none; } }
.matrix-app { display: inline-flex; align-items: center; gap: 8px; }
.matrix-app-ic { width: 28px; height: 28px; border-radius: 9px; display: inline-grid; place-items: center; font-size: 15px; background: var(--control); border: 1px solid var(--control-border); }
/* Update-Hinweis (27.09.2026) */
.update-banner { position: fixed; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 70; background: var(--accent); color: var(--accent-text); padding: 10px 16px; border-radius: 14px; box-shadow: var(--shadow-3); font-weight: 600; display: flex; align-items: center; }

/* ===================================================================
   EINRICHTUNGS-ASSISTENT 2.0 (27.09.2026, Franz: "ein richtig geiles Wizard
   auch mit IQ-Gastro-System-Logo", Schritt für Schritt, Statusanzeige)
   =================================================================== */
.wiz { max-width: 980px; margin: 24px auto; padding: 0 12px; }
.wiz-card { background: var(--layer); border: 1px solid var(--border); border-radius: 22px; padding: 26px 28px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.10); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.wiz-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.wiz-logo { width: 150px; height: auto; border-radius: 12px; }
.wiz-title h2 { margin: 2px 0 0; font-size: 24px; }
.wiz-kicker { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.wiz-count { margin-left: auto; font-size: 13px; color: var(--muted, #777); white-space: nowrap; }
.wiz-rail { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; padding: 0; margin: 0 0 18px; }
.wiz-rail li { text-align: center; font-size: 11.5px; color: var(--muted, #777); position: relative; padding-top: 4px; cursor: default; }
.wiz-rail li.done { cursor: pointer; }
.wiz-rail li .dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 4px; background: var(--layer-alt, rgba(0,0,0,.05)); border: 1px solid var(--border); font-weight: 700; font-size: 12.5px; transition: all .2s; }
.wiz-rail li.cur .dot { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 6px 16px -4px var(--accent); transform: scale(1.12); }
.wiz-rail li.done .dot { background: #2a9d5c; color: #fff; border-color: #2a9d5c; }
.wiz-rail li.cur { color: var(--text); font-weight: 700; }
.wiz-rail li:not(:last-child)::after { content: ""; position: absolute; top: 18px; left: calc(50% + 17px); right: calc(-50% + 17px); height: 2px; background: var(--border); }
.wiz-rail li.done:not(:last-child)::after { background: #2a9d5c; }
.wiz-body { min-height: 260px; }
.wiz-body p { line-height: 1.5; }
.wiz-welcome h3 { font-size: 22px; margin: 6px 0 8px; }
.wiz-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0; }
.wiz-tiles > div { background: var(--layer-alt, rgba(0,0,0,.04)); border: 1px solid var(--border); border-radius: 16px; padding: 14px; font-size: 26px; display: flex; flex-direction: column; gap: 4px; }
.wiz-tiles b { font-size: 14px; } .wiz-tiles span { font-size: 12.5px; color: var(--muted, #777); line-height: 1.35; }
.wiz-urlrow { display: flex; gap: 8px; align-items: center; margin: 10px 0 14px; }
.wiz-urlrow .pre { color: var(--muted, #777); font-size: 13px; }
.wiz-urlrow input { flex: 1; font-size: 16px; padding: 10px 12px; }
.wiz-job { margin-top: 8px; }
.wiz-bar { height: 10px; border-radius: 999px; background: var(--border); overflow: hidden; margin-bottom: 10px; }
.wiz-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 60%, #fff)); border-radius: 999px; transition: width .4s ease; }
.wiz-bar i.done { background: #2a9d5c; } .wiz-bar i.fail { background: #c0392b; }
.wiz-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.wiz-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--layer-alt, rgba(0,0,0,.03)); border: 1px solid transparent; font-size: 14px; }
.wiz-steps li.st-run { border-color: var(--accent); }
.wiz-steps li.st-wait { opacity: .55; }
.wiz-steps li .ic { text-align: center; }
.wiz-steps li .dt { grid-column: 2; font-size: 12.5px; color: var(--muted, #777); word-break: break-word; }
.wiz-steps li.st-fail .dt { color: #c0392b; }
.wiz-spin { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: wiz-rot .8s linear infinite; }
@keyframes wiz-rot { to { transform: rotate(360deg); } }
.wiz-result { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--layer-alt, rgba(0,0,0,.04)); border: 1px solid var(--border); font-size: 14px; line-height: 1.45; }
.wiz-result.ok { border-color: #2a9d5c; }
.wiz-hours { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }
.wiz-logos { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 14px; }
.wiz-logo-opt { all: unset; box-sizing: border-box; cursor: pointer; width: 150px; border: 2px solid var(--border); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; font-size: 11.5px; color: #555; text-align: center; transition: border-color .15s, transform .15s; }
.wiz-logo-opt:hover { transform: translateY(-2px); } .wiz-logo-opt.sel { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.wiz-logo-opt img { max-width: 120px; max-height: 70px; object-fit: contain; }
.wiz-logo-opt .big { font-size: 34px; line-height: 70px; }
.wiz-colors { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wiz-color { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); cursor: pointer; }
.wiz-color.sel { box-shadow: 0 0 0 3px var(--accent); }
.wiz-colors input[type=color] { width: 40px; height: 34px; padding: 0; border: none; background: none; }
.wiz-table-wrap { max-height: 380px; overflow: auto; border: 1px solid var(--border); border-radius: 12px; margin-top: 10px; }
.wiz-table { width: 100%; font-size: 13px; } .wiz-table th { position: sticky; top: 0; background: var(--layer-solid, #fff); z-index: 1; }
.wiz-table td input, .wiz-table td select { padding: 4px 6px; font-size: 13px; }
.wiz-table tr.off { opacity: .45; }
.wiz-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wiz-chips .chip { all: unset; cursor: pointer; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 12.5px; background: var(--layer-alt, rgba(0,0,0,.03)); }
.wiz-chips .chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.wiz-chips .chip small { opacity: .7; }
.wiz-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.wiz-kpis > div { background: var(--layer-alt, rgba(0,0,0,.04)); border: 1px solid var(--border); border-radius: 14px; padding: 12px; text-align: center; display: flex; flex-direction: column; }
.wiz-kpis b { font-size: 20px; } .wiz-kpis span { font-size: 12px; color: var(--muted, #777); }
.wiz-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 14px; font-size: 14px; }
.wiz-summary > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--layer-alt, rgba(0,0,0,.03)); }
.wiz-summary span { color: var(--muted, #777); } .wiz-summary b { text-align: right; }
.wiz-done { text-align: center; padding: 10px 0; }
.wiz-done-icon { font-size: 64px; line-height: 1; margin-bottom: 8px; animation: wiz-pop .6s cubic-bezier(.2,.9,.3,1.4); }
@keyframes wiz-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.wiz-next { list-style: none; padding: 0; margin: 10px auto 18px; max-width: 460px; text-align: left; display: grid; gap: 6px; }
.wiz-next li { padding: 8px 12px; border-radius: 10px; background: var(--layer-alt, rgba(0,0,0,.03)); border: 1px solid var(--border); font-size: 14px; }
.wiz-nav { display: flex; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.wiz-nav .btn { padding: 10px 20px; font-size: 14.5px; border-radius: 12px; }
.wiz-danger { border-color: rgba(192, 57, 43, .45) !important; }
.btn.danger { background: #c0392b; border-color: #c0392b; color: #fff; }
@media (max-width: 760px) {
  .wiz { margin: 8px auto; } .wiz-card { padding: 16px 14px; border-radius: 16px; }
  .wiz-head { gap: 10px; } .wiz-logo { width: 90px; } .wiz-count { display: none; }
  .wiz-rail { grid-template-columns: repeat(4, 1fr); } .wiz-rail li .lbl { display: none; } .wiz-rail li:not(:last-child)::after { display: none; }
  .wiz-tiles, .wiz-kpis, .wiz-summary { grid-template-columns: 1fr 1fr; }
  .wiz-urlrow { flex-wrap: wrap; } .wiz-urlrow .pre { display: none; } .wiz-urlrow .btn { width: 100%; }
}

/* Assistent-Ausbau 27.09.2026 ("alles umsetzen"): 10 Schritte, Mitarbeiter/QR, Drucker-Zeilen, Live-Check */
.wiz-rail-10 { grid-template-columns: repeat(10, 1fr); }
.wiz-rail-10 li .lbl { font-size: 10.5px; }
.wiz-hours-pre { margin: 8px 0 4px; font: 13px/1.5 inherit; white-space: pre-wrap; }
.wiz-qr { display: flex; gap: 18px; align-items: center; margin-top: 16px; padding: 14px; border-radius: 14px; background: var(--layer-alt, rgba(0,0,0,.04)); border: 1px solid var(--border); }
.wiz-qr > div { flex: 1; } .wiz-qr code { font-size: 12.5px; }
.wiz-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--border); font-size: 14px; }
.wiz-row:first-of-type { border-top: none; }
.wiz-ready li { display: grid; grid-template-columns: 26px 1fr; gap: 0 8px; align-items: center; text-align: left; }
.wiz-ready li .dt { grid-column: 2; font-size: 12px; color: var(--muted, #777); }
.wiz-ready li.ok { border-color: #2a9d5c; } .wiz-ready li.todo { opacity: .85; }
.wiz-ready-all { color: #2a9d5c; font-weight: 700; }
@media (max-width: 760px) { .wiz-rail-10 { grid-template-columns: repeat(5, 1fr); } .wiz-qr { flex-direction: column; } }

/* Assistent-Ausbau II 27.09.2026: 12 Schritte, Live-Vorschau rechts, Sprachumschalter, Segment-Schalter, Vorschaubilder */
.wiz.wiz-wide { max-width: 1360px; }
.wiz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.wiz-rail-12 { grid-template-columns: repeat(12, 1fr); }
.wiz-rail-12 li .lbl { font-size: 10px; }
.wiz-lang { display: inline-flex; gap: 2px; margin-right: 10px; vertical-align: middle; }
.wiz-lang button { all: unset; cursor: pointer; padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--border); color: var(--muted, #777); }
.wiz-lang button.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.wiz-preview { position: sticky; top: 16px; display: grid; gap: 14px; }
.wiz-preview-title { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted, #777); font-weight: 700; }
.wiz-bon { position: relative; background: #fff; color: #222; border-radius: 6px; padding: 16px 14px 22px; font: 12px/1.45 "Courier New", monospace; box-shadow: 0 10px 30px rgba(0,0,0,.18); display: grid; gap: 2px; text-align: center; }
.wiz-bon::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 8px; background: linear-gradient(-45deg, transparent 5px, #fff 0) 0 0/12px 12px, linear-gradient(45deg, transparent 5px, #fff 0) 6px 0/12px 12px; }
.wiz-bon img { max-width: 110px; max-height: 50px; object-fit: contain; margin: 0 auto 4px; }
.wiz-bon b { font-size: 13px; } .wiz-bon hr { border: none; border-top: 1px dashed #999; margin: 6px 0; width: 100%; }
.wiz-bon .ln { display: flex; justify-content: space-between; text-align: left; } .wiz-bon .ln.tot { font-weight: 700; }
.wiz-bon small { font-size: 10px; color: #666; margin-top: 4px; }
.wiz-bon-label { position: absolute; top: -9px; right: 10px; font: 700 10px/1 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 3px 8px; border-radius: 999px; }
.wiz-shop { position: relative; border-radius: 16px; overflow: hidden; background: #171310; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-family: system-ui, sans-serif; }
.wiz-shop-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(255,255,255,.06); font-size: 13px; }
.wiz-shop-head img { width: 26px; height: 26px; object-fit: contain; border-radius: 6px; background: #fff; }
.wiz-shop-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--pv); display: grid; place-items: center; font-weight: 800; }
.wiz-shop-hero { padding: 18px 12px; font-size: 15px; font-weight: 800; background: linear-gradient(135deg, color-mix(in srgb, var(--pv) 70%, #000), #2a1d16); display: grid; gap: 10px; }
.wiz-shop-hero button { all: unset; justify-self: start; background: var(--pv); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.wiz-shop-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px 14px; }
.wiz-shop-cards > div { background: rgba(255,255,255,.07); border-radius: 10px; padding: 8px; font-size: 11.5px; display: grid; gap: 4px; } .wiz-shop-cards b { color: var(--pv); filter: brightness(1.4); }
.wiz-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--layer-alt, rgba(0,0,0,.04)); border: 1px solid var(--border); margin-bottom: 10px; }
.wiz-seg button { all: unset; cursor: pointer; padding: 7px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; }
.wiz-seg button.on { background: var(--accent); color: #fff; }
.wiz-thumb { width: 28px; height: 28px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
@media (max-width: 1100px) { .wiz-grid { grid-template-columns: 1fr; } .wiz-preview { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .wiz-rail-12 { grid-template-columns: repeat(6, 1fr); } .wiz-preview { grid-template-columns: 1fr; } .wiz-count { display: block; } .wiz-count .wiz-lang { margin: 0; } }

/* Menü-Bündel (21.11.2026): Reiterleiste über zusammengelegten Seiten */
.bundle-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 8px 10px; border-radius: 10px; background: var(--layer); border: 1px solid var(--border); }
.bundle-tabs-title { font-weight: 700; margin-right: 6px; white-space: nowrap; }
.bundle-tab { border: 1px solid var(--border, #d6d6d6); background: transparent; color: inherit; border-radius: 999px; padding: 6px 14px; cursor: pointer; font: inherit; font-size: 0.95em; }
.bundle-tab:hover { background: var(--control-hover); }
.bundle-tab.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
@media (max-width: 860px) { .bundle-tabs { flex-wrap: nowrap; overflow-x: auto; } .bundle-tab { white-space: nowrap; } }

/* Benutzermenü in der Kopfzeile (21.11.2026) */
.user-menu { position: relative; }
.user-menu-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--control); color: var(--text); border-radius: 999px; padding: 3px 10px 3px 3px; cursor: pointer; font: inherit; }
.user-menu-btn:hover { background: var(--control-hover); }
.user-menu-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.user-menu-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.user-menu-pop { position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; background: var(--layer-solid); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: 0 8px 28px rgba(0, 0, 0, .18); padding: 6px; z-index: 1000; display: flex; flex-direction: column; }
.user-menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.user-menu-pop > button, .user-menu-pop > a { text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 6px; color: var(--text); font: inherit; cursor: pointer; text-decoration: none; }
.user-menu-pop > button:hover, .user-menu-pop > a:hover { background: var(--control-hover); }
.user-menu-pop .danger-text { color: var(--red); }
@media (max-width: 860px) { .user-menu-name { display: none; } }

/* Kopfzeile bei Tablet-/Laptop-Breite: Uhr (steht auf der Startseite) und Seitentitel
   (steht als Reiterleiste über der Seite) ausblenden, statt über den Rand zu schieben. */
@media (max-width: 1200px) { .topbar .topbar-clock, .topbar .topnav-title { display: none; } }

/* Live-Demo-Hinweis (21.11.2026) */
.demo-banner { background: #1b1408; color: #f6e3a9; text-align: center; padding: 7px 16px; font-size: 13.5px; position: sticky; top: 0; z-index: 2000; }
.demo-banner strong { color: #fff; }
