/* Reservierung Neumarkter Bräustübl – Stylesheet (kein Build-Schritt) */

@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(../fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(../fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(../fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(../fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 600; font-display: swap; src: url(../fonts/manrope-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 700; font-display: swap; src: url(../fonts/manrope-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Manrope; font-weight: 800; font-display: swap; src: url(../fonts/manrope-latin-800-normal.woff2) format("woff2"); }

:root {
  --leiste: #244674;
  --leiste-aktiv: #33598C;
  --leiste-linie: #3A5F90;
  --blau: #134778;
  --blau-dunkel: #0E3559;
  --blau-hell: #DCE6F2;
  --rot: #C20E1A;
  --gelb: #FCCE00;
  --gelb-bg: #FFF2BF;
  --gelb-rand: #A68400;
  --gelb-text: #5C4700;
  --bg: #F5F4EC;
  --text: #1C1F1E;
  --text2: #5E615F;
  --linie: #ECEAE5;
  --linie2: #DAD7D0;
  --flaeche: #fff;
  --grau-bg: #EEEDE7;
  --radius: 12px;
  --kopf: Manrope, Inter, system-ui, sans-serif;
  --zeit-spalte: 120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.4; -webkit-text-size-adjust: 100%; }
a { color: var(--blau); }
a:hover { color: var(--blau-dunkel); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--kopf); margin: 0; }
.versteckt { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blau); outline-offset: 2px; }

/* ---------- Knöpfe & Formulare */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--linie2); background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--text); white-space: nowrap; }
.knopf:hover { background: #FAFAF8; color: var(--text); }
.knopf.primaer { background: var(--blau); border-color: var(--blau); color: #fff; }
.knopf.primaer:hover { background: var(--blau-dunkel); color: #fff; }
.knopf.gefahr { color: var(--rot); border-color: #E8B4B8; }
.knopf.gefahr:hover { background: #FDF2F2; }
.knopf.breit { width: 100%; }
.knopf.klein { min-height: 36px; padding: 0 12px; font-size: 13px; }
.knopf:disabled { opacity: .5; cursor: not-allowed; }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
.klein { font-size: 12px; color: var(--text2); }

.feld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; min-width: 0; }
.feld > span { font-size: 12px; color: var(--text2); font-weight: 500; }
.feld input, .feld select, .feld textarea { min-height: 44px; padding: 8px 12px; border: 1px solid var(--linie2); border-radius: 10px; background: #fff; width: 100%; }
.feld textarea { min-height: 72px; resize: vertical; }
.feld small { color: var(--text2); font-size: 11px; }
.raster2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 12px; }
.raster3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }

.hinweis { padding: 12px 14px; border-radius: 10px; background: var(--blau-hell); color: var(--blau-dunkel); margin: 0 0 12px; }
.hinweis.fehler { background: #FDECEC; color: #8A0A13; }
.hinweis.ok { background: #E5F3E8; color: #1F5A2B; }
.hinweis.warnung { background: var(--gelb-bg); color: var(--gelb-text); }

.chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.chip.st-bestaetigt { background: var(--blau-hell); color: var(--blau-dunkel); border-color: var(--blau); }
.chip.st-gast_da { background: var(--blau); color: #fff; }
.chip.st-abgeschlossen { background: var(--grau-bg); color: var(--text2); border-color: var(--linie2); }
.chip.st-no_show { background: #fff; color: var(--rot); border: 1px dashed var(--rot); }
.chip.st-storniert { background: #fff; color: var(--text2); border: 1px dashed var(--linie2); text-decoration: line-through; }
.chip.st-ueberfaellig { background: #fff; color: var(--rot); border-color: var(--rot); }

/* ---------- Login / Installer */
.seite-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: var(--leiste); }
.login { width: 100%; max-width: 380px; }
.login-kopf { text-align: center; margin-bottom: 20px; }
.login-kopf img { width: 220px; max-width: 70%; height: auto; }
.unterzeile { font-size: 12px; color: #C3D1E3; letter-spacing: .08em; }
.login-form { background: #fff; border-radius: 14px; padding: 24px; box-shadow: 0 12px 32px rgba(0,0,0,.2); }
.login-form h1 { font-size: 22px; margin-bottom: 16px; }
.login-fuss { text-align: center; color: #B9CBE0; font-size: 12px; margin-top: 16px; }

.seite-install { padding: 24px 16px; }
.install { max-width: 720px; margin: 0 auto; }
.install-logo { width: 200px; background: var(--leiste); border-radius: 10px; display: block; margin-bottom: 16px; }
.install h1 { font-size: 26px; margin-bottom: 16px; }
.install h2 { font-size: 17px; margin: 18px 0 10px; }
.install h2:first-child { margin-top: 0; }
.karte { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.checks li span { display: inline-block; width: 20px; font-weight: 700; }
.checks .ok span { color: #1F7A35; }
.checks .fehler span { color: var(--rot); }
.checks .warnung span { color: var(--gelb-rand); }
.config { background: #1C1F1E; color: #EEE; padding: 14px; border-radius: 10px; overflow: auto; font-size: 12px; }

/* ---------- App-Rahmen */
/* Menüspalte fest am linken Rand, Inhalt daneben (Menü rutscht beim Scrollen nie weg) */
.app { display: flex; min-height: 100vh; padding-left: var(--leiste-breite); }
:root { --leiste-breite: 228px; }
.seitenleiste { width: var(--leiste-breite); flex: none; background: var(--leiste); color: #EDF2F8; padding: 24px 16px; display: flex; flex-direction: column; gap: 4px; position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 30; }
.marke { padding: 0 4px 20px; display: flex; flex-direction: column; gap: 6px; }
.marke img { width: 188px; height: auto; display: block; }
.marke .unterzeile { padding-left: 4px; }
.seitenleiste a { color: #D2DDEA; text-decoration: none; padding: 12px; border-radius: 8px; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.seitenleiste a:hover { background: rgba(255,255,255,.06); color: #fff; }
.seitenleiste a.aktiv { color: #fff; background: var(--leiste-aktiv); font-weight: 600; }
.seitenleiste .ico { display: none; }
.seitenleiste .ico svg { display: block; }
.seitenleiste-fuss { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid var(--leiste-linie); font-size: 12px; color: #B9CBE0; display: flex; flex-direction: column; gap: 6px; }
.seitenleiste-fuss .benutzer { color: #D2DDEA; margin-bottom: 4px; }
.inhalt { flex: 1; min-width: 0; padding: 20px 28px; display: flex; flex-direction: column; gap: 14px; outline: none; }
.laden { color: var(--text2); }

/* ---------- Kopfbereich Heute */
.kopf { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.kopf-links { position: relative; display: flex; flex-direction: column; gap: 10px; flex: 1 1 520px; min-width: 0; }
.kopf-zeile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.datum-knopf { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--linie2); background: #fff; cursor: pointer; }
.datum-knopf .titel { font-family: var(--kopf); font-weight: 800; font-size: 20px; }
.datum-knopf .pfeil { font-size: 12px; color: var(--text2); }
.oeffnung-info { font-size: 13px; color: var(--text2); }
.tagesleiste { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.tag-knopf { flex: none; width: 64px; min-height: 62px; border-radius: 10px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border: 1px solid #E4E1D8; background: #fff; color: var(--text); scroll-snap-align: center; padding: 0; }
.tag-knopf .wt { font-size: 11px; opacity: .8; }
.tag-knopf .zahl { font-size: 17px; font-weight: 800; font-family: var(--kopf); }
.tag-knopf .info { font-size: 10px; opacity: .8; }
.tag-knopf.heute { border: 2px solid var(--gelb); }
.tag-knopf.zu { background: var(--grau-bg); color: #7A7D7B; }
.tag-knopf.gewaehlt { background: var(--blau); border: 2px solid var(--blau); color: #fff; }
.tag-knopf.feiertag .wt::after { content: " ★"; }

.kalender { position: absolute; top: 52px; left: 0; z-index: 20; width: 340px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid #E4E1D8; border-radius: 14px; padding: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.16); display: flex; flex-direction: column; gap: 10px; }
.kalender-kopf { display: flex; align-items: center; justify-content: space-between; }
.kalender-kopf .monat { font-family: var(--kopf); font-weight: 800; font-size: 16px; }
.kalender-kopf button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--linie2); background: #fff; cursor: pointer; font-size: 18px; }
.kalender-wt, .kalender-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.kalender-wt { text-align: center; font-size: 11px; color: var(--text2); font-weight: 600; }
.kalender-raster button { min-height: 44px; border-radius: 10px; border: 1px solid #E4E1D8; background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; }
.kalender-raster button b { font-size: 14px; }
.kalender-raster button span { font-size: 10px; opacity: .85; }
.kalender-raster button.zu { background: var(--grau-bg); color: #7A7D7B; }
.kalender-raster button.heute { border: 2px solid var(--gelb); }
.kalender-raster button.gewaehlt { background: var(--blau); border-color: var(--blau); color: #fff; }

.schicht-wahl { display: flex; background: #EAE8E3; border-radius: 10px; padding: 4px; }
.schicht-wahl button { border: 0; background: transparent; padding: 10px 16px; border-radius: 8px; font-size: 14px; color: var(--text2); cursor: pointer; }
.schicht-wahl button.an { background: #fff; font-weight: 600; color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.werkzeugleiste { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.werkzeugleiste .kennzahlen { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; gap: 6px; }
.kennzahl { white-space: nowrap; }
.neu-knopf .kurz { display: none; }
@media (max-width: 1399px) { .kennzahl .zusatz { display: none; } }
@media (max-width: 1099px) { .neu-knopf .lang { display: none; } .neu-knopf .kurz { display: inline; } .kopf-rechts .suche { min-width: 140px; flex-basis: 180px; } }
.kopf-rechts { flex: 0 1 auto; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; align-items: center; margin-left: auto; }
.kopf-rechts .suche { min-width: 170px; flex: 0 1 260px; }
.suche { position: relative; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--linie2); border-radius: 10px; padding: 0 12px; height: 44px; min-width: 240px; flex: 0 1 280px; }
.suche input { border: 0; outline: 0; font-size: 14px; flex: 1; background: transparent; min-width: 0; }
.suche-ergebnis { position: absolute; top: 48px; right: 0; width: 380px; max-width: calc(100vw - 32px); max-height: 420px; overflow: auto; background: #fff; border: 1px solid #E4E1D8; border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.16); z-index: 30; }
.suche-ergebnis button { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #F0EEEA; background: #fff; padding: 10px 14px; cursor: pointer; }
.suche-ergebnis button:hover { background: #FAFAF8; }
.suche-ergebnis .leer { padding: 14px; color: var(--text2); }

/* ---------- Kennzahlen (kompakt, eine Zeile) */
.kennzahlen { display: flex; flex-wrap: wrap; gap: 8px; }
.kennzahl { display: flex; align-items: baseline; gap: 6px; background: #fff; border: 1px solid var(--linie); border-radius: 999px; padding: 6px 14px; font-size: 13px; }
.kennzahl .wert { font-family: var(--kopf); font-weight: 800; font-size: 16px; }
.kennzahl .bez { color: var(--text2); }
.kennzahl .zusatz { color: var(--text2); font-size: 12px; }
.kennzahl .zusatz::before { content: "· "; }
.kennzahl.gelb { background: #FFF9DD; border-color: #F0D978; }
.kennzahl.gelb .wert, .kennzahl.gelb .bez { color: var(--gelb-text); }

/* ---------- Hauptbereich: Timeline + Details */
.haupt { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.timeline { flex: 999 1 560px; min-width: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--linie); overflow: hidden; }
.timeline-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--linie); }
.timeline-kopf h2 { font-weight: 700; font-size: 16px; }
.filter { display: flex; flex-wrap: wrap; gap: 6px; }
.filter button { border: 1px solid var(--linie2); background: #fff; color: var(--text); border-radius: 999px; padding: 0 14px; min-height: 36px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.filter button.an { border-color: var(--text); background: var(--text); color: #fff; font-weight: 600; }
.legende { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: #3E4240; }
.legende span { display: flex; align-items: center; gap: 6px; }
.legende i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legende .l-bestaetigt { background: var(--blau-hell); border: 1px solid var(--blau); }
.legende .l-gast_da { background: var(--blau); }
.legende .l-ueberfaellig { background: var(--gelb-bg); border: 1px solid var(--gelb-rand); }
.legende .l-no_show { background: #fff; border: 1px dashed var(--rot); }
.timeline-scroll { overflow-x: auto; }
.timeline-innen { min-width: 860px; position: relative; }
.zeitachse, .tl-zeile { display: grid; }
.zeitachse { font-size: 12px; color: var(--text2); border-bottom: 1px solid var(--linie); background: #FAFAF8; }
.zeitachse div { padding: 8px 6px; border-left: 1px solid var(--linie); grid-column: span 2; }
.zeitachse div:first-child { padding: 8px 12px; border-left: 0; grid-column: span 1; position: sticky; left: 0; z-index: 3; background: #FAFAF8; }
.tl-zeile { min-height: 54px; border-bottom: 1px solid #F0EEEA; align-items: center; }
.tl-zeile:last-child { border-bottom: 0; }
.tl-tisch { grid-column: 1; grid-row: 1; padding: 0 12px; font-size: 13px; position: sticky; left: 0; z-index: 3; background: #fff; align-self: stretch; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #F0EEEA; }
.tl-tisch .zeile1 { white-space: nowrap; }
.tl-tisch b { font-weight: 600; }
.tl-tisch .pl { color: var(--text2); font-size: 12px; }
.tl-tisch .ber { color: var(--text2); font-size: 11px; }
.tl-zeile.ohne-tisch, .tl-zeile.ohne-tisch .tl-tisch { background: #FFFCEB; }
.tl-zeile.zu-voll .tl-tisch b::after { content: " ⚠"; color: var(--gelb-rand); }
.block { grid-row: 1; margin: 6px 3px; min-height: 42px; border-radius: 8px; padding: 4px 8px; font-size: 12px; text-align: left; cursor: pointer; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border: 1px solid var(--blau); background: var(--blau-hell); color: var(--blau-dunkel); min-width: 0; }
.block .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block .d { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.block.st-gast_da { background: var(--blau); color: #fff; }
.block.st-abgeschlossen { background: var(--grau-bg); color: var(--text2); border-color: var(--linie2); }
.block.st-no_show { background: #fff; color: var(--rot); border: 1px dashed var(--rot); }
.block.st-storniert { background: #fff; color: var(--text2); border: 1px dashed var(--linie2); text-decoration: line-through; opacity: .7; }
.block.ueberfaellig { background: var(--gelb-bg); color: var(--gelb-text); border-color: var(--gelb-rand); }
.block.gewaehlt { outline: 2px solid var(--blau); outline-offset: 1px; box-shadow: 0 0 0 4px rgba(19,71,120,.33); }
.jetzt-linie { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rot); pointer-events: none; z-index: 2; }
.jetzt-linie span { position: absolute; top: 4px; left: -22px; background: var(--rot); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.leer-hinweis { padding: 28px 16px; text-align: center; color: var(--text2); }

.details-spalte { flex: 1 1 300px; max-width: 100%; display: flex; flex-direction: column; gap: 16px; }
.panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--linie); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.panel-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.panel-kopf .bez { font-size: 12px; color: var(--text2); }
.panel-kopf h3 { font-weight: 800; font-size: 20px; word-break: break-word; }
.werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; font-size: 13px; }
.werte div { background: var(--bg); border-radius: 8px; padding: 10px; min-width: 0; }
.werte small { display: block; color: var(--text2); font-size: 11px; }
.werte b { overflow-wrap: anywhere; }
.abschnitt small { display: block; color: var(--text2); font-size: 12px; margin-bottom: 4px; }
.abschnitt { font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.aktionen .knopf { flex: 1 1 120px; }
.panel h4 { font-family: var(--kopf); font-weight: 700; font-size: 15px; margin: 0; }
.ankuenfte { display: flex; flex-direction: column; }
.ankuenfte button { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; border: 0; border-bottom: 1px solid #F0EEEA; background: none; font-size: 13px; cursor: pointer; text-align: left; }
.ankuenfte button:last-child { border-bottom: 0; }
.ankuenfte .ort { color: var(--text2); white-space: nowrap; }

/* ---------- Kartenliste (Handy) */
.karten { display: flex; flex-direction: column; gap: 10px; }
.res-karte { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--linie); border-radius: 12px; padding: 12px 14px; text-align: left; cursor: pointer; width: 100%; }
.res-karte .zeit b { display: block; font-family: var(--kopf); font-size: 18px; font-weight: 800; }
.res-karte .zeit small { color: var(--text2); font-size: 11px; }
.res-karte .wer { min-width: 0; }
.res-karte .wer b { display: block; font-size: 15px; }
.res-karte .wer span { display: block; font-size: 13px; color: #3E4240; }
.res-karte .wer em { display: block; font-style: normal; font-size: 12px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.res-karte.st-storniert, .res-karte.st-no_show { opacity: .65; }
.fab { position: fixed; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 16px; border: 0; background: var(--rot); color: #fff; font-size: 28px; box-shadow: 0 6px 16px rgba(0,0,0,.25); cursor: pointer; z-index: 15; display: none; }

/* ---------- Dialog / Bottom-Sheet */
.dialog-hg { position: fixed; inset: 0; background: rgba(20,24,30,.45); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { background: #fff; border-radius: 16px; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto; padding: 22px; box-shadow: 0 20px 48px rgba(0,0,0,.3); }
.dialog-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.dialog-kopf h2 { font-size: 20px; font-weight: 800; }
.schliessen { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--linie2); background: #fff; font-size: 20px; cursor: pointer; flex: none; }
.dialog-fuss { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 8px; }
.tischwahl { border: 1px solid var(--linie); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.tischwahl-kopf { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text2); margin-bottom: 8px; flex-wrap: wrap; }
.tischwahl-bereich { margin-bottom: 8px; }
.tischwahl-bereich > div:first-child { font-size: 12px; font-weight: 600; color: var(--text2); margin-bottom: 6px; }
.tischwahl-liste { display: flex; flex-wrap: wrap; gap: 6px; }
.tisch-chip { min-width: 64px; min-height: 44px; border-radius: 10px; border: 1px solid var(--linie2); background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2px 8px; font-size: 13px; }
.tisch-chip small { font-size: 10px; color: var(--text2); }
.tisch-chip.an { background: var(--blau); border-color: var(--blau); color: #fff; }
.tisch-chip.an small { color: #DCE6F2; }
.tisch-chip:disabled { background: var(--grau-bg); color: #9A9C9A; cursor: not-allowed; text-decoration: line-through; }
.ende-schnell { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.belegung-info { font-size: 12px; color: var(--text2); margin: -6px 0 12px; }

/* ---------- Meldungen */
.meldungen { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 480px; }
.meldung { background: var(--text); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); font-size: 14px; pointer-events: auto; }
.meldung.fehler { background: #8A0A13; }

/* ---------- Platzhalter-Seiten */
.platzhalter { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 28px; color: var(--text2); }
.platzhalter h1 { color: var(--text); font-size: 22px; margin-bottom: 8px; }

/* ---------- Tablet */
@media (max-width: 1199px) {
  :root { --leiste-breite: 76px; }
  .seitenleiste { padding: 16px 10px; }
  .marke { padding: 0 0 16px; }
  .marke img { width: 56px; height: auto; border-radius: 6px; }
  .marke .unterzeile, .seitenleiste .txt, .seitenleiste-fuss { display: none; }
  .seitenleiste a { justify-content: center; padding: 12px 0; min-height: 48px; }
  .seitenleiste .ico { display: inline-flex; }
  .inhalt { padding: 20px; }
}

/* ---------- Handy */
@media (max-width: 759px) {
  .app { flex-direction: column; }
  :root { --leiste-breite: 0px; }
  .seitenleiste { position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; height: auto; overflow: visible; flex-direction: row; padding: 0 0 env(safe-area-inset-bottom); background: #fff; border-top: 1px solid #E4E1D8; z-index: 40; gap: 0; }
  .seitenleiste .marke { display: none; }
  .seitenleiste a { flex: 1; flex-direction: column; gap: 2px; color: var(--text2); font-size: 12px; padding: 8px 0; border-radius: 0; min-height: 64px; }
  .seitenleiste a:hover { background: none; color: var(--text); }
  .seitenleiste a.aktiv { background: none; color: var(--blau); }
  .seitenleiste .txt { display: inline; }
  .seitenleiste a[data-nav="reservierungen"], .seitenleiste a[data-nav="auswertungen"] { display: none; }
  .seitenleiste a[data-nav="einstellungen"] .txt { font-size: 0; }
  .seitenleiste a[data-nav="einstellungen"] .txt::after { content: "Mehr"; font-size: 12px; }
  .inhalt { padding: 0 0 calc(84px + env(safe-area-inset-bottom)); gap: 12px; }
  .kopf { background: var(--leiste); color: #fff; padding: 14px 16px 12px; gap: 10px; }
  .kopf-links { flex-basis: 100%; }
  .kopf .marke-mobil { display: flex; }
  .datum-knopf { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
  .datum-knopf .titel { font-size: 17px; }
  .datum-knopf .pfeil { color: #fff; }
  .kopf .knopf.heute-knopf { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); margin-left: auto; }
  .oeffnung-info { color: #C3D1E3; flex-basis: 100%; }
  .tag-knopf { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
  .tag-knopf.zu { background: transparent; color: #8FA4BF; }
  .tag-knopf.gewaehlt { background: #fff; color: var(--blau); border-color: #fff; }
  .werkzeugleiste { padding: 0 16px; }
  .kopf-rechts { flex: 1 1 100%; justify-content: stretch; margin-left: 0; }
  .kopf-rechts .suche { flex: 1 1 auto; }
  .suche { flex: 1 1 auto; min-width: 0; }
  .kopf-rechts .neu-knopf { display: none; }
  .schicht-wahl { background: rgba(255,255,255,.12); }
  .schicht-wahl button { color: #D2DDEA; }
  .kennzahlen { display: none; }
  .tages-summe { display: block; font-size: 12px; color: #C3D1E3; }
  .haupt { padding: 0 16px; }
  .timeline { display: none; }
  .karten-bereich { display: flex !important; flex-direction: column; gap: 12px; width: 100%; min-width: 0; }
  .details-spalte { display: none; }
  .fab { display: block; }
  .filter { flex-wrap: nowrap; overflow-x: auto; }
  .filter button { min-height: 44px; }
  .dialog-hg { align-items: flex-end; padding: 0; }
  .dialog { border-radius: 18px 18px 0 0; max-height: 92vh; padding: 18px 20px calc(20px + env(safe-area-inset-bottom)); }
  .dialog::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: #D5D3CC; margin: -6px auto 12px; }
  .raster3 { grid-template-columns: 1fr 1fr; }
  .meldungen { bottom: 96px; }
}
.marke-mobil { display: none; align-items: center; gap: 10px; flex-basis: 100%; }
.marke-mobil img { height: 44px; width: auto; border-radius: 6px; }
.tages-summe { display: none; }
.karten-bereich { display: none; }

/* ---------- Formular-Helfer */
.stepper { display: flex; gap: 6px; align-items: stretch; }
.stepper .knopf { min-width: 44px; padding: 0; font-size: 20px; }
.stepper input { text-align: center; min-width: 0; flex: 1; min-height: 44px; padding: 8px; border: 1px solid var(--linie2); border-radius: 10px; }
.zeitwahl { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; margin: -4px 0 12px; scrollbar-width: thin; }
.zeitwahl:empty { display: none; }
.zeit-chip { flex: none; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--linie2); background: #fff; cursor: pointer; font-variant-numeric: tabular-nums; }
.zeit-chip.an { background: var(--blau); border-color: var(--blau); color: #fff; font-weight: 600; }
.knopf.gefahr-voll { background: var(--rot); border-color: var(--rot); color: #fff; }
.knopf.gefahr-voll:hover { background: #A00C16; color: #fff; }
.klein-dialog { max-width: 440px; }
.bestaetigen-text { margin: 0 0 12px; color: #3E4240; }

/* ---------- Einstellungen */
.einstellungen { max-width: 860px; display: flex; flex-direction: column; gap: 0; }
.seiten-titel { font-size: 24px; font-weight: 800; margin-bottom: 14px; }
.einstellungen .karte h2 { font-size: 17px; margin-bottom: 8px; }
.einstellungen .karte > .klein { margin: 0 0 12px; }
.info-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 20px; }
.info-zeile { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #F0EEEA; font-size: 13px; }
.info-zeile span { color: var(--text2); }
.tabelle { display: flex; flex-direction: column; }
.tabelle-zeile { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F0EEEA; flex-wrap: wrap; }
.tabelle-aktionen { display: flex; gap: 6px; }
.aenderungen { margin: 0 0 12px; padding-left: 20px; }
.schalter-zeile { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; margin-bottom: 8px; }
.schalter { appearance: none; width: 52px; height: 30px; border-radius: 999px; background: #D5D3CC; position: relative; cursor: pointer; flex: none; margin: 0; transition: background .15s; }
.schalter::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: left .15s; }
.schalter:checked { background: var(--blau); }
.schalter:checked::after { left: 25px; }

/* ---------- Bildschirmschoner & Wartung */
.schoner { position: fixed; inset: 0; z-index: 200; background: var(--leiste); display: flex; align-items: center; justify-content: center; cursor: pointer; touch-action: none; }
.schoner img { width: min(60vw, 520px); height: auto; }
.wartung { position: fixed; inset: 0; z-index: 150; background: rgba(36,70,116,.96); color: #fff; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.wartung h2 { font-size: 26px; margin-bottom: 8px; }

/* ---------- Touch-Modus (Service-Konto, Touchscreens) */
html { -webkit-tap-highlight-color: transparent; }
body.touch { touch-action: manipulation; }
body.touch button, body.touch .knopf, body.touch a { -webkit-user-select: none; user-select: none; }
body.touch .knopf { min-height: 52px; font-size: 15px; padding: 0 18px; }
body.touch .knopf.klein { min-height: 44px; }
body.touch .knopf:active, body.touch .block:active, body.touch .res-karte:active, body.touch .tag-knopf:active { transform: scale(.97); }
body.touch .datum-knopf { min-height: 52px; }
body.touch .tag-knopf { width: 72px; min-height: 68px; }
body.touch .filter button { min-height: 48px; padding: 0 18px; font-size: 14px; }
body.touch .schicht-wahl button { padding: 13px 22px; font-size: 15px; }
body.touch .suche { height: 52px; }
body.touch .suche input { font-size: 16px; }
body.touch .tl-zeile { min-height: 64px; }
body.touch .block { min-height: 52px; font-size: 13px; }
body.touch .block .n { font-size: 14px; }
body.touch .timeline-innen { min-width: 980px; }
body.touch .ankuenfte button { min-height: 52px; align-items: center; font-size: 14px; }
body.touch .aktionen .knopf { min-height: 56px; font-size: 16px; }
body.touch .feld input, body.touch .feld select, body.touch .feld textarea, body.touch .stepper input { min-height: 52px; font-size: 16px; }
body.touch .stepper .knopf { min-width: 56px; font-size: 24px; }
body.touch .zeit-chip { min-height: 48px; padding: 0 16px; font-size: 15px; }
body.touch .tisch-chip { min-width: 76px; min-height: 56px; font-size: 15px; }
body.touch .kalender-raster button { min-height: 52px; }
body.touch .kalender-kopf button { width: 52px; height: 52px; }
body.touch .schliessen { width: 52px; height: 52px; }
body.touch .res-karte { padding: 14px 16px; min-height: 76px; }
body.touch .seitenleiste a { min-height: 52px; font-size: 15px; }
body.touch .neu-knopf[title]::after { content: none; }

/* Touch-Modus: Menü bis 1399 px auf Symbole einklappen (mehr Platz für die Bedienung) */
@media (min-width: 760px) and (max-width: 1399px) {
  body.touch { --leiste-breite: 76px; }
  body.touch .seitenleiste { padding: 16px 10px; }
  body.touch .marke { padding: 0 0 16px; }
  body.touch .marke img { width: 56px; height: auto; border-radius: 6px; }
  body.touch .marke .unterzeile, body.touch .seitenleiste .txt, body.touch .seitenleiste-fuss { display: none; }
  body.touch .seitenleiste a { justify-content: center; padding: 12px 0; min-height: 52px; }
  body.touch .seitenleiste .ico { display: inline-flex; }
  body.touch .inhalt { padding: 20px; }
}

/* ---------- Einstellungen: Reiter & Formulare */
.reiter { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.reiter button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linie2); background: #fff; cursor: pointer; font-weight: 500; }
.reiter button.an { background: var(--text); border-color: var(--text); color: #fff; font-weight: 600; }
body.touch .reiter button { min-height: 52px; padding: 0 20px; font-size: 15px; }
.karte-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.karte-kopf h2 { margin: 0 !important; }
.karte.inaktiv { opacity: .7; }
.tabelle-zeile.inaktiv b { color: var(--text2); }
.jahr-wahl { display: flex; align-items: center; gap: 10px; }
.jahr-wahl b { font-family: var(--kopf); font-size: 17px; min-width: 48px; text-align: center; }
.wochenplan { display: flex; flex-direction: column; }
.wp-zeile { display: grid; grid-template-columns: 110px 170px 1fr; align-items: center; gap: 8px 16px; padding: 8px 0; border-bottom: 1px solid #F0EEEA; }
.wp-zeile .schalter-zeile { margin: 0; }
.wp-zeiten { display: flex; gap: 10px; flex-wrap: wrap; }
.wp-zeiten label { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--text2); }
.wp-zeiten input { min-height: 44px; padding: 6px 10px; border: 1px solid var(--linie2); border-radius: 10px; background: #fff; }
body.touch .wp-zeiten input { min-height: 52px; font-size: 16px; }
.wp-ruhetag { color: var(--text2); font-style: italic; }
@media (max-width: 759px) {
  .wp-zeile { grid-template-columns: 1fr auto; }
  .wp-zeiten, .wp-ruhetag { grid-column: 1 / -1; }
  .einstellungen { padding: 16px; }
}
.tisch-chip.aus { background: var(--grau-bg); color: var(--text2); border-style: dashed; }
.tisch-chip.neu { border-style: dashed; color: var(--blau); font-weight: 600; }
.check-zeile { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check-zeile input { width: 22px; height: 22px; accent-color: var(--blau); }
.rechte { border: 1px solid var(--linie); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.feld select:disabled { background: var(--grau-bg); }

/* ---------- Protokoll */
.prot-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 12px; margin-top: 12px; }
.prot-zeile { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #F0EEEA; font-size: 13px; }
.prot-zeit { color: var(--text2); font-variant-numeric: tabular-nums; }
.prot-wer { color: var(--text2); }
.prot-details { color: #3E4240; overflow-wrap: anywhere; }
@media (max-width: 759px) { .prot-zeile { grid-template-columns: 1fr; gap: 2px; } }
.blaettern { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.seite-info { display: flex; flex-direction: column; align-items: center; min-width: 120px; font-weight: 600; font-size: 14px; }
.seite-info small { font-weight: 400; color: var(--text2); font-size: 11px; }
@media (max-width: 759px) { .blaettern .knopf:first-child, .blaettern .knopf:last-child { display: none; } }

.prot-zeile { align-items: start; }
.prot-kopf { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prot-art { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.prot-art.reservierungen { background: var(--blau-hell); color: var(--blau-dunkel); }
.prot-art.anmeldungen { background: var(--grau-bg); color: var(--text2); }
.prot-art.einstellungen { background: var(--gelb-bg); color: var(--gelb-text); }
.prot-art.system { background: #FDECEC; color: #8A0A13; }
.prot-zeit b { display: block; color: var(--text); font-weight: 600; }
