/* =====================================================================
   Buddies Reservierung – Gestaltung
   Intern (Theke, Verwaltung, Statistik, Anmeldung): dunkler Theken-Modus (body.app)
   Kundenseiten (Buchen, Meine Reservierung): hell, passend zur Webseite (body.kunde)
   Schriften liegen selbst gehostet bei (OFL), keine Google-Anfragen.
   ===================================================================== */

@font-face { font-family: "Geist"; src: url("/static/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/geist-mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
/* Eine Schriftfamilie für alles. Vorher lief eine zweite, auffällige Display-Schrift
   mit – das wirkte unruhig und billig. Geist trägt Überschrift und Fließtext allein,
   Unterschiede macht das Gewicht, nicht die Schriftart. */

/* ---------- Farb-Bausteine: hell (Kundenseiten, Standard) ---------- */
:root {
  --schrift: "Geist", ui-sans-serif, system-ui, sans-serif;
  --schrift-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --schrift-display: "Geist", ui-sans-serif, system-ui, sans-serif;

  /* Schriftgrößen: eine Treppe, keine Zufallswerte */
  --t-xs: 12px;
  --t-s: 13.5px;
  --t-m: 15px;
  --t-l: 17px;
  --t-xl: 20px;
  --t-2xl: 25px;
  --t-3xl: clamp(30px, 4.5vw, 40px);

  --papier: #ffffff;
  --tinte: #211c18;
  --spalte: 760px;
  --spalte-breit: 1060px;

  --hinter: #ffffff;
  --flaeche: #ffffff;
  --flaeche-2: #f6f4f1;
  --flaeche-3: #ecE8e3;
  --linie: #ddd7d0;
  --linie-2: #ebe6e0;
  --text: #211c18;
  --text-2: #6a615a;
  --text-3: #9a918a;

  --rot: #b42b30;
  --rot-dunkel: #93222a;
  --rot-hell: #f8e6e5;
  --gruen: #2d8a57;
  --gruen-hell: #e3f2e9;
  --gelb: #b8860b;
  --gelb-hell: #fbf1d9;

  --seq-0: #f4f0ec; --seq-1: #f8dcdc; --seq-2: #eeaaab; --seq-3: #dc6e72; --seq-4: #b93a40; --seq-5: #7d1d23;

  --zeile: 38px;   /* Höhe einer halben Stunde – darunter passt der Block-Inhalt nicht mehr */
  --r-klein: 6px;
  --r: 10px;
  --r-gross: 16px;
  --schatten: 0 1px 2px rgba(60, 30, 25, .06), 0 8px 24px -8px rgba(60, 30, 25, .14);
  --schatten-hoch: 0 24px 64px -16px rgba(60, 25, 20, .35);
  --z-raster: 5; --z-kopf: 30; --z-menue: 50; --z-dialog: 100; --z-toast: 200; --z-tip: 300;
  --uebergang: 160ms cubic-bezier(.2, .7, .3, 1);

  font-family: var(--schrift);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Farb-Bausteine: dunkler Theken-Modus ---------- */
body.app {
  color-scheme: dark;
  /* Tim, 17.11.2026: „ein klein wenig sehr dunkel“ – eine Stufe heller, Flächen heben sich besser ab */
  --hinter: #1d1a1b;
  --flaeche: #262223;
  --flaeche-2: #2e2a2b;
  --flaeche-3: #383334;
  --linie: #48403f;
  --linie-2: #342f30;
  --text: #f5f1ee;
  --text-2: #b8afaa;
  --text-3: #8b827d;

  --rot: #dc4a50;
  --rot-dunkel: #c03a40;
  --rot-hell: rgba(220, 74, 80, .14);
  --gruen: #4cbc7a;
  --gruen-hell: rgba(76, 188, 122, .14);
  --gelb: #e7bb55;
  --gelb-hell: rgba(231, 187, 85, .14);

  --seq-0: #1f1b1c; --seq-1: #3a2224; --seq-2: #5b282c; --seq-3: #8a2f35; --seq-4: #c03d44; --seq-5: #ef6268;

  --schatten: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 10px 30px -12px rgba(0, 0, 0, .6);
  --schatten-hoch: 0 30px 80px -10px rgba(0, 0, 0, .75);
  /* ganz feines Korn gegen die sterile Fläche */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; background-color: var(--hinter); }
html:has(body.app) { background-color: #1d1a1b; color-scheme: dark; }
body { min-height: 100dvh; font-size: 15px; line-height: 1.45; color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--rot); color: #fff; }
.leise { color: var(--text-2); font-size: 13px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: var(--r-klein);
  border: 1px solid var(--linie); background: var(--flaeche-2); color: var(--text);
  font-weight: 550; font-size: 14px; white-space: nowrap; text-decoration: none;
  touch-action: manipulation; user-select: none;
  transition: background var(--uebergang), border-color var(--uebergang), transform var(--uebergang), box-shadow var(--uebergang);
}
.knopf:hover { background: var(--flaeche-3); border-color: color-mix(in srgb, var(--text) 18%, var(--linie)); }
.knopf:active { transform: translateY(1px) scale(.985); }
.knopf.haupt { background: var(--rot); border-color: var(--rot); color: #fff; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--rot) 80%, transparent); }
.knopf.haupt:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); }
.knopf.gefahr { color: var(--rot); background: transparent; border-color: color-mix(in srgb, var(--rot) 40%, var(--linie)); }
.knopf.gefahr:hover { background: var(--rot-hell); }
.knopf.klein { min-height: 32px; padding: 0 11px; font-size: 13px; }
.knopf.gross { min-height: 54px; font-size: 17px; border-radius: var(--r); width: 100%; font-weight: 650; }
.knopf.aktiv { background: var(--text); color: var(--hinter); border-color: var(--text); }
.knopf:disabled { opacity: .45; cursor: default; transform: none; }
:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }
.x { border: 0; background: none; font-size: 26px; line-height: 1; padding: 4px 8px; color: var(--text-2); border-radius: var(--r-klein); transition: background var(--uebergang); }
.x:hover { background: var(--flaeche-3); color: var(--text); }

/* ---------- Felder ---------- */
.feld { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--text-2); font-weight: 550; letter-spacing: .01em; }
.feld > input, .feld > select, .feld > textarea, .eingabe {
  min-height: 40px; padding: 8px 11px; width: 100%;
  border: 1px solid var(--linie); border-radius: var(--r-klein); background: var(--flaeche-2);
  font-size: 15px; color: var(--text); font-weight: 400; letter-spacing: 0;
  transition: border-color var(--uebergang), background var(--uebergang), box-shadow var(--uebergang);
}
.eingabe:hover, .feld > input:hover, .feld > select:hover, .feld > textarea:hover { border-color: color-mix(in srgb, var(--text) 22%, var(--linie)); }
.eingabe:focus, .feld > input:focus, .feld > select:focus, .feld > textarea:focus {
  outline: none; border-color: var(--rot); box-shadow: 0 0 0 3px var(--rot-hell); background: var(--flaeche);
}
textarea { resize: vertical; min-height: 64px; line-height: 1.4; }
input::placeholder, textarea::placeholder { color: var(--text-3); }
label.haken { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--rot); }
input[type="color"].eingabe { padding: 3px; width: 46px; min-height: 36px; }
.formular { display: flex; flex-direction: column; gap: 14px; }
.reihe { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.schnell { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.abschnitt { font-size: 12px; font-weight: 650; color: var(--text-3); margin: 6px 0 -4px; letter-spacing: .02em; }

/* ---------- Meldungen ---------- */
.meldungen { display: flex; flex-direction: column; gap: 6px; }
.meldungen:empty { display: none; }
.meldung { padding: 9px 12px; border-radius: var(--r-klein); font-size: 14px; border: 1px solid transparent; border-left-width: 3px; }
.meldung.fehler { background: var(--rot-hell); border-color: var(--rot); color: var(--text); }
.meldung.warnung { background: var(--gelb-hell); border-color: var(--gelb); color: var(--text); }
.meldung.info { background: var(--flaeche-3); border-color: var(--text-3); color: var(--text); }
.meldung.ok { background: var(--gruen-hell); border-color: var(--gruen); color: var(--text); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: var(--z-toast);
  background: var(--text); color: var(--hinter); padding: 12px 18px; border-radius: var(--r);
  font-weight: 600; font-size: 14px; box-shadow: var(--schatten-hoch); max-width: calc(100vw - 32px);
  animation: hoch 220ms cubic-bezier(.2, .8, .3, 1);
}
.toast.fehler { background: var(--rot); color: #fff; }
@keyframes hoch { from { opacity: 0; transform: translate(-50%, 8px); } }

/* =====================================================================
   THEKE
   ===================================================================== */
.kopf {
  position: sticky; top: 0; z-index: var(--z-kopf);
  background: color-mix(in srgb, var(--hinter) 90%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--linie-2);
  display: flex; flex-direction: column; gap: 9px; padding: 9px 16px;
}
/* Zwei feste Reihen statt umbrechendem Haufen: oben Wo-bin-ich, unten Was-tue-ich */
.kopf-oben, .kopf-unten { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; }
.kopf-unten { padding-top: 9px; border-top: 1px solid var(--linie-2); }
/* Euer Logo auf hellem Schild – auf dem dunklen Grund würde die schwarze Schrift absaufen */
.marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; white-space: nowrap; }
.marke img {
  height: 46px; width: auto; display: block; background: #fff; border-radius: 10px; padding: 4px 9px;
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .7);
}
.marke small { color: var(--text-3); font-weight: 500; font-size: 12.5px; letter-spacing: .01em; }
.wege { display: flex; gap: 4px; }
.wege .knopf { font-weight: 500; color: var(--text-2); }
.wege .knopf:hover { color: var(--text); }
.datum-nav { display: flex; align-items: center; gap: 4px; }
.datum-nav .eingabe { width: auto; min-height: 38px; font-family: var(--schrift-mono); font-size: 14px; }
.tag-titel { font-weight: 650; font-size: var(--t-xl); letter-spacing: -.02em; line-height: 1.15; }
.tag-titel .feiertag { display: block; font-family: var(--schrift); font-weight: 500; font-size: 12.5px; letter-spacing: 0; color: var(--text-2); margin-top: 2px; }
.zaehler { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--flaeche-2); border: 1px solid var(--linie-2); border-radius: var(--r-klein); padding: 4px 9px; font-size: 12.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.chip b { color: var(--text); font-family: var(--schrift-mono); font-weight: 600; }
.abstand { flex: 1; }
.bereiche { display: flex; gap: 2px; background: var(--flaeche); border: 1px solid var(--linie-2); padding: 3px; border-radius: var(--r); }
.bereiche button {
  border: 0; background: transparent; min-height: 32px; padding: 0 13px; border-radius: 7px;
  font-weight: 550; font-size: 14px; color: var(--text-2); transition: background var(--uebergang), color var(--uebergang);
}
.bereiche button:hover { color: var(--text); background: var(--flaeche-2); }
.bereiche button.aktiv { background: var(--flaeche-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset; }
.benutzer-menue { position: relative; }
.menue-liste {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: var(--z-menue);
  background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r);
  box-shadow: var(--schatten-hoch); min-width: 240px; padding: 6px; display: flex; flex-direction: column;
  animation: aufklappen 160ms ease-out;
}
@keyframes aufklappen { from { opacity: 0; transform: translateY(-4px); } }
.menue-liste button, .menue-liste a { text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 7px; font-size: 14px; color: var(--text); text-decoration: none; }
.menue-liste button:hover, .menue-liste a:hover { background: var(--flaeche-3); }
.menue-liste .info { padding: 8px 12px 10px; font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--linie); margin-bottom: 4px; }

/* Tagesnotizen */
/* Die Notizleiste ist Teil der Kopfzeile. Dadurch klebt sie automatisch mit
   und der Spaltenkopf rutscht von allein darunter – kein Rechnen mit Höhen. */
.notizen {
  flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 2px -16px -10px; padding: 8px 16px; border-top: 1px solid var(--linie);
}
.notizen:empty { display: none; }
.notiz {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 7px;
  font-size: 13px; font-weight: 550; line-height: 1.3; border: 1px solid; border-left-width: 3px; max-width: 100%;
}
.notiz > :not(.wo):not(.wdh):not(button) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notiz.gelb { background: var(--gelb-hell); border-color: color-mix(in srgb, var(--gelb) 50%, transparent); border-left-color: var(--gelb); }
.notiz.rot { background: var(--rot-hell); border-color: color-mix(in srgb, var(--rot) 45%, transparent); border-left-color: var(--rot); }
.notiz.gruen { background: var(--gruen-hell); border-color: color-mix(in srgb, var(--gruen) 45%, transparent); border-left-color: var(--gruen); }
.notiz.blau { background: rgba(110, 160, 230, .13); border-color: rgba(110, 160, 230, .4); border-left-color: #6ea0e6; }
.notiz.grau { background: var(--flaeche-2); border-color: var(--linie); border-left-color: var(--text-3); }
.notiz .wdh { font-size: 11px; color: var(--text-2); font-weight: 500; }
/* Gilt die Notiz nur für eine Bahn, steht die Bahn als Marke davor */
.notiz .wo {
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; flex: none;
  background: color-mix(in srgb, currentColor 13%, transparent); padding: 2px 6px; border-radius: 4px;
}
.notiz button { opacity: .55; }
.notiz button:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
/* Rote Notiz = wichtig: pulsiert dezent, damit sie im Vorbeigehen auffällt */
.notiz.wichtig { animation: notiz-puls 2.4s ease-in-out infinite; }
@keyframes notiz-puls {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rot) 55%, transparent); }
  50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--rot) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .notiz.wichtig { animation: none; border-left-width: 6px; } }
/* Punkt im Spaltenkopf zeigt, zu welcher Bahn eine Notiz gehört */
.platz-punkte { display: inline-flex; gap: 3px; margin-left: auto; align-self: flex-start; }
.platz-punkt { width: 7px; height: 7px; border-radius: 50%; display: block; }
.platz-punkt.gelb { background: var(--gelb); }
.platz-punkt.rot { background: var(--rot); }
.platz-punkt.gruen { background: var(--gruen); }
.platz-punkt.blau { background: #6ea0e6; }
.platz-punkt.grau { background: var(--text-3); }
.notiz button { border: 0; background: none; padding: 0 6px; font-size: 17px; line-height: 1; color: var(--text-2); border-radius: 4px; }
.notiz button:hover { background: rgba(255, 255, 255, .08); color: var(--text); }

/* Raster der Tagesansicht */
.raster-huelle { padding: 12px 16px 48px; }
.raster {
  position: relative; display: grid; background: var(--flaeche); border: 1px solid var(--linie-2);
  border-radius: var(--r-gross); overflow: clip; user-select: none; -webkit-user-select: none;
  box-shadow: var(--schatten);
}
.zeitkopf { background: var(--flaeche); border-bottom: 1px solid var(--linie); height: 72px; position: sticky; top: var(--kopf-h, 0px); z-index: 11; }
.spaltenkopf {
  position: sticky; top: var(--kopf-h, 0px); z-index: 10; height: 72px;
  background: linear-gradient(180deg, var(--flaeche-2), var(--flaeche));
  border-bottom: 1px solid var(--linie); border-left: 1px solid var(--linie-2);
  padding: 8px 10px; display: flex; align-items: center; gap: 10px;
}
.spaltenkopf .nr { font-size: 28px; font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--text); min-width: 22px; font-variant-numeric: tabular-nums; }
.spaltenkopf .was { display: flex; flex-direction: column; min-width: 0; }
.spaltenkopf .was b { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spaltenkopf small { display: block; font-weight: 450; font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
.spaltenkopf .stand { font-weight: 600; font-family: var(--schrift-mono); font-size: 11px; margin-top: 1px; }
.spaltenkopf .stand.frei { color: var(--gruen); }
.spaltenkopf .stand.belegt { color: var(--text-2); }
.spaltenkopf .stand.zu { color: var(--text-3); }
.spaltenkopf.gesperrt .nr, .spaltenkopf.gesperrt b { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 2px; }
.spaltenkopf.gesperrt small { color: var(--rot); }
/* Bahnpaare: sichtbare Gasse zwischen 2|3 und 4|5 */
.spaltenkopf.paar-ende, .spalte.paar-ende { box-shadow: inset -6px 0 0 var(--hinter); }
.zeitspalte { position: relative; background: var(--flaeche); border-right: 1px solid var(--linie-2); }
.zeitspalte .zeit { position: absolute; right: 8px; font-family: var(--schrift-mono); font-size: 11.5px; color: var(--text-3); transform: translateY(-50%); }
.zeitspalte .zeit.voll { font-weight: 600; color: var(--text-2); font-size: 12.5px; }
.spalte { position: relative; border-left: 1px solid var(--linie-2); touch-action: pan-x pan-y; cursor: crosshair; transition: background var(--uebergang); }
.spalte:hover { background: color-mix(in srgb, var(--text) 2.5%, transparent); }
.spalte.gesperrt { cursor: not-allowed; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(255, 255, 255, .025) 10px 20px); }
.linie-h { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed color-mix(in srgb, var(--linie-2) 70%, transparent); pointer-events: none; }
.linie-h.voll { border-top: 1px solid var(--linie-2); }
/* Außerhalb der Öffnungszeit: nur blasser, trotzdem ganz normal nutzbar
   (Putzkolonne, Wartung, Training, Veranstaltung werden auch dort eingetragen) */
.geschlossen-zone {
  position: absolute; left: 0; right: 0; pointer-events: none;
  /* Tim, 17.11.2026: deutlich dunkler und gestreift gegen die offene Zeit */
  background: rgba(0, 0, 0, .42) repeating-linear-gradient(-45deg, rgba(255, 255, 255, .045) 0 7px, transparent 7px 16px);
}
.geschlossen-zone span {
  position: sticky; top: 8px; display: inline-block; margin: 8px 0 0 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, .45); color: var(--text-3); font-size: 11px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
}
body.app .zeitspalte .ausserhalb { opacity: .35; }
/* Öffnung (grün) und Ladenschluss (rot): Linie quer über alle Bahnen, Schild in der Uhrzeiten-Spalte */
.grenz-linie { position: absolute; left: 0; right: 0; height: 0; z-index: 2; pointer-events: none; border-top: 2px solid; }
.grenz-linie.auf { border-color: #3fb07a; }
.grenz-linie.zu { border-color: #e0525a; }
body.app .zeitspalte .zeit.grenze { z-index: 1; padding: 2px 6px; border-radius: 999px; color: #fff; font-weight: 700; opacity: 1; }
body.app .zeitspalte .zeit.grenze.auf { background: #2e8f60; }
body.app .zeitspalte .zeit.grenze.zu { background: #c43a42; }
.jetzt-linie { position: absolute; left: 0; right: 0; height: 2px; background: var(--rot); z-index: 8; pointer-events: none; box-shadow: 0 0 14px 1px color-mix(in srgb, var(--rot) 70%, transparent); }
.jetzt-linie::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--rot); box-shadow: 0 0 0 4px color-mix(in srgb, var(--rot) 25%, transparent); }
.auswahl { position: absolute; z-index: 6; pointer-events: none; border-radius: 8px; background: color-mix(in srgb, var(--rot) 16%, transparent); border: 1.5px dashed var(--rot); }
.auswahl span { position: absolute; top: 6px; left: 8px; font-size: 12px; font-weight: 600; color: var(--text); font-family: var(--schrift-mono); }

/* Reservierungsblöcke: dunkle Karten, Kategoriefarbe als Kante oben + Tönung */
.block {
  position: absolute; z-index: var(--z-raster); overflow: hidden; cursor: grab;
  border-radius: 9px; padding: 8px 9px 7px;
  background: color-mix(in srgb, var(--farbe, #888) 27%, var(--flaeche-2));
  border: 1px solid color-mix(in srgb, var(--farbe, #888) 58%, transparent);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 6px 16px -10px rgba(0, 0, 0, .7);
  color: var(--text); font-size: 13px; line-height: 1.25; touch-action: pan-x pan-y;
  transition: box-shadow var(--uebergang), filter var(--uebergang);
}
.block::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--farbe, #888); }
.block:hover { filter: brightness(1.12); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 12px 28px -10px rgba(0, 0, 0, .8); }
.block .name { font-weight: 650; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.005em; padding-right: 14px; }
.block .name .pers { font-family: var(--schrift-mono); font-weight: 500; color: var(--text-2); font-size: 12px; margin-left: 5px; }
.block .zeile2 { color: var(--text-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.block .zeile2 .uhr { font-family: var(--schrift-mono); color: var(--text); opacity: .85; }
.block .symbole { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 5px; }
/* Woher die Buchung kam, als stiller Punkt in der Ecke statt als Schildchen auf jedem Block */
.block .quelle {
  position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%;
  background: color-mix(in srgb, var(--text) 45%, transparent);
}
.block .quelle.jarvis { background: var(--gelb); }
/* Kurze Buchungen: nur das Nötigste, sonst wird abgeschnitten */
.block.kurz { padding: 5px 9px; }
.block.kurz .zeile2, .block.kurz .symbole { display: none; }
.block.mittel .symbole { margin-top: 3px; }
.block.mittel .symbole .marke-s:nth-child(n+3) { display: none; }
.marke-s { font-size: 10px; font-weight: 650; padding: 1.5px 5px; border-radius: 4px; background: rgba(0, 0, 0, .3); color: var(--text); letter-spacing: .01em; border: 1px solid rgba(255, 255, 255, .06); white-space: nowrap; }
.marke-s.chef { background: var(--rot); color: #fff; border-color: transparent; }
.marke-s.online { background: transparent; border-color: color-mix(in srgb, var(--text) 25%, transparent); color: var(--text-2); }
.marke-s.st-im_haus { background: var(--gelb); color: #1a1405; border-color: transparent; }
.marke-s.st-eingecheckt { background: var(--gruen); color: #04140b; border-color: transparent; }
.marke-s.st-ausgecheckt { background: transparent; color: var(--text-3); }
.marke-s.st-vorbehalt { background: transparent; border-style: dashed; border-color: var(--text-2); }
.marke-s.st-nicht_erschienen, .marke-s.st-storniert { background: var(--text-3); color: var(--hinter); border-color: transparent; }
.block.st-vorbehalt { border-style: dashed; border-color: color-mix(in srgb, var(--farbe, #888) 70%, transparent); }
.block.st-im_haus { box-shadow: inset 0 0 0 1.5px var(--gelb), 0 6px 16px -10px rgba(0, 0, 0, .7); }
.block.st-eingecheckt { box-shadow: inset 0 0 0 1.5px var(--gruen), 0 0 18px -6px color-mix(in srgb, var(--gruen) 60%, transparent); }
.block.st-ausgecheckt { opacity: .5; filter: saturate(.4); }
.block.st-storniert, .block.st-nicht_erschienen {
  opacity: .55; filter: saturate(0);
  background: repeating-linear-gradient(-45deg, var(--flaeche-2) 0 6px, var(--flaeche-3) 6px 12px);
}
.block.zieht { z-index: 20; cursor: grabbing; filter: brightness(1.15); box-shadow: 0 0 0 1.5px var(--farbe, #888), 0 24px 48px -12px rgba(0, 0, 0, .9); }
.block .griff { position: absolute; left: 0; right: 0; bottom: 0; height: 10px; cursor: ns-resize; }
.block .griff::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 22px; height: 3px; margin-left: -11px; border-radius: 2px; background: color-mix(in srgb, var(--text) 30%, transparent); opacity: 0; transition: opacity var(--uebergang); }
.block:hover .griff::after { opacity: 1; }
.vorschau-zeit { position: absolute; z-index: 25; background: var(--text); color: var(--hinter); font-family: var(--schrift-mono); font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; pointer-events: none; white-space: nowrap; box-shadow: var(--schatten-hoch); }

/* =====================================================================
   DIALOGE – Reservierung als Seitenleiste von rechts, kurze Fragen mittig
   ===================================================================== */
.dialog-hinter {
  position: fixed; inset: 0; z-index: var(--z-dialog);
  background: rgba(8, 6, 6, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; justify-content: flex-end; align-items: stretch;
  animation: einblenden 180ms ease-out;
}
body.kunde .dialog-hinter { background: rgba(40, 20, 15, .35); }
@keyframes einblenden { from { opacity: 0; } }
.dialog {
  background: var(--flaeche); width: 100%; max-width: 600px; height: 100dvh;
  display: flex; flex-direction: column; box-shadow: var(--schatten-hoch);
  border-left: 1px solid var(--linie);
  animation: reinfahren 260ms cubic-bezier(.2, .8, .2, 1);
}
@keyframes reinfahren { from { transform: translateX(32px); opacity: .4; } }
.dialog-hinter:has(> .dialog.schmal) { justify-content: center; align-items: center; padding: 16px; }
.dialog.schmal { max-width: 440px; height: auto; max-height: calc(100dvh - 32px); border: 1px solid var(--linie); border-radius: var(--r-gross); animation: aufploppen 200ms cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
@keyframes aufploppen { from { transform: scale(.97); opacity: 0; } }
.dialog-kopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--linie-2); }
.dialog-kopf h2 { margin: 0; font-size: var(--t-xl); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.dialog-kopf .nr { color: var(--text-3); font-size: 12.5px; font-weight: 500; margin-top: 4px; }
.dialog-inhalt { padding: 16px 20px 22px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; flex: 1; }
.dialog-fuss {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center;
  padding: 12px 20px; border-top: 1px solid var(--linie-2); background: var(--flaeche-2);
}
.dialog-fuss .rechts { display: flex; gap: 8px; margin-left: auto; }
.dialog.schmal .dialog-inhalt p { margin: 0; }

.plaetze-wahl { display: flex; flex-wrap: wrap; gap: 6px; }
.plaetze-wahl label {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 70px; min-height: 40px; padding: 0 12px;
  border: 1px solid var(--linie); border-radius: var(--r-klein); font-weight: 550; font-size: 14px; cursor: pointer; background: var(--flaeche-2);
  transition: background var(--uebergang), border-color var(--uebergang), color var(--uebergang);
}
.plaetze-wahl label:hover { border-color: color-mix(in srgb, var(--text) 25%, var(--linie)); }
.plaetze-wahl input { position: absolute; opacity: 0; pointer-events: none; }
.plaetze-wahl label.an { background: var(--rot); color: #fff; border-color: var(--rot); }
.plaetze-wahl label.gesperrt { opacity: .35; cursor: not-allowed; }
.zahl-feld { display: flex; align-items: stretch; }
.zahl-feld button { width: 40px; border: 1px solid var(--linie); background: var(--flaeche-3); font-size: 18px; font-weight: 600; color: var(--text); transition: background var(--uebergang); }
.zahl-feld button:hover { background: var(--linie); }
.zahl-feld button:first-child { border-radius: var(--r-klein) 0 0 var(--r-klein); }
.zahl-feld button:last-child { border-radius: 0 var(--r-klein) var(--r-klein) 0; }
.zahl-feld input { border-radius: 0; border: 1px solid var(--linie); border-left: 0; border-right: 0; text-align: center; width: 72px; min-height: 40px; font-family: var(--schrift-mono); font-size: 16px; font-weight: 600; background: var(--flaeche-2); color: var(--text); }
.zahl-feld input:focus { outline: none; background: var(--flaeche); }
.chefnotiz-feld textarea { border-color: color-mix(in srgb, var(--rot) 45%, var(--linie)); background: color-mix(in srgb, var(--rot) 6%, var(--flaeche-2)); }
.status-leiste { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 10px; background: var(--flaeche-2); border: 1px solid var(--linie-2); border-radius: var(--r); }
.status-leiste .titel { font-size: 13px; font-weight: 600; color: var(--text-2); margin-right: 6px; }
.vorschlaege { position: relative; }
.vorschlag-liste { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r); box-shadow: var(--schatten-hoch); max-height: 280px; overflow-y: auto; margin-top: 6px; padding: 4px; }
.vorschlag-liste button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 11px; font-size: 14px; border-radius: 7px; color: var(--text); }
.vorschlag-liste button:hover:not(:disabled) { background: var(--flaeche-3); }
.vorschlag-liste small { color: var(--text-2); }
.kunde-gewaehlt { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--gruen-hell); border: 1px solid color-mix(in srgb, var(--gruen) 40%, transparent); border-radius: var(--r-klein); padding: 8px 8px 8px 12px; font-size: 14px; }
.preis-box { font-size: 13px; color: var(--text-2); }
.preis-box b { font-family: var(--schrift-mono); color: var(--text); font-size: 15px; }
.verlauf { font-size: 13px; border-top: 1px solid var(--linie-2); padding-top: 10px; display: flex; flex-direction: column; }
.verlauf div { padding: 6px 0; border-bottom: 1px dashed var(--linie-2); color: var(--text-2); }
.verlauf b { font-weight: 600; color: var(--text); font-family: var(--schrift-mono); font-size: 12px; }

/* =====================================================================
   ANMELDUNG
   ===================================================================== */
.anmelde-seite { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; position: relative; overflow: hidden; }
.anmelde-seite::before {
  content: ""; position: absolute; inset: -25% -15% auto auto; width: 70vmax; height: 70vmax; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rot) 20%, transparent), transparent 70%);
}
.anmelde-karte { position: relative; background: var(--flaeche); border: 1px solid var(--linie-2); border-radius: 20px; box-shadow: var(--schatten-hoch); width: 100%; max-width: 420px; padding: 30px 26px; display: flex; flex-direction: column; gap: 18px; }
.anmelde-karte h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
/* Kein einzelnes eingefärbtes Wort – das ist eine abgegriffene Masche.
   Der Unterschied kommt aus dem Gewicht. */
.anmelde-karte h1 span { font-weight: 450; color: var(--text-2); }
.anmelde-karte p { margin: 6px 0 0; color: var(--text-2); }
.pin-namen { display: flex; flex-wrap: wrap; gap: 8px; }
.pin-anzeige { display: flex; justify-content: center; gap: 14px; height: 26px; align-items: center; }
.pin-anzeige span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--text-3); transition: background var(--uebergang), transform var(--uebergang); }
.pin-anzeige span.voll { background: var(--rot); border-color: var(--rot); transform: scale(1.1); }
.tastatur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tastatur button { min-height: 58px; font-family: var(--schrift-mono); font-size: 22px; font-weight: 600; border-radius: var(--r); border: 1px solid var(--linie); background: var(--flaeche-2); color: var(--text); transition: background var(--uebergang), transform 80ms; }
.tastatur button:hover { background: var(--flaeche-3); }
.tastatur button:active { transform: scale(.96); background: var(--linie); }
.trenner { display: flex; align-items: center; gap: 10px; color: var(--text-3); font-size: 12.5px; }
.trenner::before, .trenner::after { content: ""; flex: 1; border-top: 1px solid var(--linie); }

/* =====================================================================
   VERWALTUNG & STATISTIK
   ===================================================================== */
/* ---------- Verwaltung: Seitenleiste statt Reiterreihe ---------- */
.verw {
  max-width: 1320px; margin: 0 auto; padding: 20px 20px 80px;
  display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 26px; align-items: start;
}
.verw-seite { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 12px; }
.verw-suche { display: block; }
.verw-suche .eingabe { width: 100%; }
.verw-seite nav { display: flex; flex-direction: column; gap: 16px; }
.verw-gruppe { display: flex; flex-direction: column; gap: 2px; }
.verw-gruppe .abschnitt { margin: 0 0 4px 10px; text-transform: uppercase; }
.verw-gruppe button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 8px 11px; border-radius: 9px; color: var(--text-2);
  border-left: 2px solid transparent;
  transition: background var(--uebergang), color var(--uebergang), border-color var(--uebergang);
}
.verw-gruppe button b { display: block; font-weight: 550; font-size: 14.5px; line-height: 1.25; }
.verw-gruppe button span {
  display: block; font-size: 12px; line-height: 1.35; color: var(--text-3); margin-top: 2px;
}
.verw-gruppe button:hover { background: var(--flaeche); color: var(--text); }
.verw-gruppe button.aktiv {
  background: var(--flaeche-3); color: var(--text); border-left-color: var(--rot);
}
.verw-gruppe button.aktiv b { font-weight: 650; }
.verw-gruppe button.aktiv span { color: var(--text-2); }
.verw-inhalt { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.verw-pfad { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); }
.verw-pfad b { color: var(--text-2); font-weight: 550; }
.verw-pfad b:last-child { color: var(--text); font-weight: 650; }
.verw-pfad i { font-style: normal; color: var(--linie); }

/* Aktive Seite in der Kopf-Navigation sichtbar machen */
.wege .knopf.aktiv { background: var(--flaeche-3); color: var(--text); font-weight: 600; }

@media (max-width: 900px) {
  .verw { grid-template-columns: 1fr; gap: 18px; padding: 16px 14px 72px; }
  .verw-seite { position: static; }
  .verw-seite nav { flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .verw-gruppe { flex: 1 1 240px; }
}

.karte { background: var(--flaeche); border: 1px solid var(--linie-2); border-radius: var(--r-gross); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--schatten); }
.karte h2 { margin: 0; font-size: var(--t-l); font-weight: 650; letter-spacing: -.015em; }
.karte p.leise { margin: 0; max-width: 75ch; }
.karte details summary { cursor: pointer; padding: 8px 0; color: var(--text); }
.karte details[open] summary { margin-bottom: 8px; }
table.liste { width: 100%; border-collapse: collapse; font-size: 14px; }
table.liste th { text-align: left; font-size: 12px; color: var(--text-3); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--linie); white-space: nowrap; }
table.liste td { padding: 7px 8px; border-bottom: 1px solid var(--linie-2); vertical-align: middle; }
table.liste tbody tr { transition: background var(--uebergang); }
table.liste tbody tr:hover { background: color-mix(in srgb, var(--text) 2.5%, transparent); }
table.liste input.eingabe, table.liste select.eingabe { min-height: 34px; padding: 4px 8px; font-size: 14px; }
table.liste td:first-child input.eingabe { min-width: 150px; }
table.liste select.eingabe { min-width: 110px; }
.tabelle-huelle { overflow-x: auto; }
.farbpunkt { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: middle; margin-right: 6px; }

.stat-filter { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.stat-filter .chips { flex: 1 1 auto; }
.stat-filter .feld { width: 160px; flex: none; }
.kacheln { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.kachel { background: var(--flaeche-2); border: 1px solid var(--linie-2); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kachel .titel { font-size: 12.5px; color: var(--text-2); font-weight: 550; }
.kachel .wert { font-size: 30px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.1; }
.kachel .vergleich { font-size: 12px; color: var(--text-3); display: flex; flex-direction: column; gap: 1px; }
.kachel .rauf { color: var(--gruen); font-weight: 650; font-family: var(--schrift-mono); }
.kachel .runter { color: var(--rot); font-weight: 650; font-family: var(--schrift-mono); }
.kachel.admin { border-color: color-mix(in srgb, var(--rot) 40%, transparent); background: color-mix(in srgb, var(--rot) 7%, var(--flaeche-2)); }
.kachel.admin .titel::after { content: " · nur Admin"; color: var(--rot); font-weight: 600; }
.diagramm { width: 100%; overflow-x: auto; }
.diagramm svg { display: block; width: 100%; height: auto; min-width: 520px; }
.diagramm .achse { font-size: 11px; fill: var(--text-3); font-family: var(--schrift-mono); }
.diagramm .gitter { stroke: var(--linie-2); stroke-width: 1; }
.diagramm .grundlinie { stroke: var(--linie); stroke-width: 1; }
.diagramm .bar { fill: var(--rot); transition: fill var(--uebergang); }
.diagramm .bar.aktiv { fill: color-mix(in srgb, var(--rot) 70%, #fff); }
.diagramm .treffer { fill: transparent; }
.balkenliste { display: flex; flex-direction: column; gap: 9px; }
.balkenzeile { display: grid; grid-template-columns: minmax(110px, 200px) 1fr auto; gap: 12px; align-items: center; font-size: 14px; }
.balkenzeile .spur { background: var(--flaeche-3); border-radius: 4px; height: 12px; overflow: hidden; }
.balkenzeile .fuell { height: 100%; background: var(--rot); border-radius: 0 4px 4px 0; }
.balkenzeile .zahl { font-family: var(--schrift-mono); font-weight: 650; min-width: 80px; text-align: right; }
.balkenzeile .zahl small { color: var(--text-3); font-weight: 450; font-family: var(--schrift); }
.waerme { border-collapse: separate; border-spacing: 3px; font-size: 11px; width: 100%; min-width: 560px; font-family: var(--schrift-mono); }
.waerme th { color: var(--text-3); font-weight: 500; padding: 2px 4px; text-align: center; }
.waerme th.zeile { text-align: left; padding-right: 8px; font-family: var(--schrift); font-weight: 600; color: var(--text-2); }
.waerme td { height: 28px; border-radius: 5px; text-align: center; color: var(--text); transition: transform 120ms; }
.waerme td:hover { transform: scale(1.12); }
.waerme td.s0 { background: var(--seq-0); color: transparent; }
.waerme td.s1 { background: var(--seq-1); }
.waerme td.s2 { background: var(--seq-2); }
.waerme td.s3 { background: var(--seq-3); color: #fff; }
.waerme td.s4 { background: var(--seq-4); color: #fff; }
.waerme td.s5 { background: var(--seq-5); color: #fff; }
.waerme-legende { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-3); flex-wrap: wrap; }
.waerme-legende span.f { width: 22px; height: 12px; border-radius: 3px; display: inline-block; }
.stat-tooltip { position: fixed; z-index: var(--z-tip); background: var(--text); color: var(--hinter); font-size: 13px; padding: 7px 10px; border-radius: 8px; pointer-events: none; box-shadow: var(--schatten-hoch); max-width: 260px; line-height: 1.4; font-weight: 500; }
.zwei-spalten { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
details.tabelle summary { cursor: pointer; font-size: 13px; color: var(--text-2); font-weight: 550; }

/* =====================================================================
   KUNDENSEITEN (hell)
   ===================================================================== */
/* =====================================================================
   KUNDENSEITEN – Gestaltungsidee „Spielschein“
   Weißes Papier, Haarlinien, Rahmen wie die Frames auf einem Bowling-Zettel.
   Zahlen (Uhrzeiten, Daten, Preise) laufen in der Mono-Schrift und sind das
   eigentliche Gestaltungsmittel. Ein kräftiger Moment: die dunkle Tafel oben.
   ===================================================================== */
body.kunde { background: var(--papier); color: var(--tinte); }
/* Sprung zum Inhalt – nur sichtbar, wenn man mit der Tastatur hinkommt */
.zum-inhalt {
  position: fixed; left: 12px; top: -80px; z-index: 40;
  background: var(--tinte); color: #fff; padding: 10px 16px; border-radius: 4px;
  font-size: var(--t-s); font-weight: 600; text-decoration: none; transition: top var(--uebergang);
}
.zum-inhalt:focus { top: 12px; }

/* ---- Tafel: Marke und was heute noch frei ist ---- */
.tafel { background: var(--tinte); color: #fff; padding: 0 0 26px; }
.tafel-kopf {
  max-width: var(--spalte); margin: 0 auto; padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, .13);
}
.kunde-marke { display: flex; align-items: center; gap: 11px; font-weight: 650; font-size: var(--t-m); letter-spacing: -.01em; color: #fff; }
.kunde-marke::before {
  content: ""; width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: var(--rot) url("/static/pin.svg") center / 15px no-repeat;
}
.kunde-marke small { color: rgba(255, 255, 255, .55); font-weight: 450; font-size: var(--t-s); }
.kunde-tel {
  color: #fff; font-weight: 550; font-size: var(--t-s); text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px;
  transition: border-color var(--uebergang);
}
.kunde-tel:hover { border-color: #fff; }
.kunde-tel b { font-family: var(--schrift-mono); font-weight: 550; }

.tafel-inhalt { max-width: var(--spalte); margin: 0 auto; padding: 30px 20px 0; }
.tafel h1 {
  font-size: var(--t-3xl); font-weight: 700; letter-spacing: -.04em; line-height: 1.02;
  margin: 0; color: #fff; max-width: 15ch; text-wrap: balance;
}
.tafel .unterzeile { margin: 12px 0 0; color: rgba(255, 255, 255, .62); font-size: var(--t-m); line-height: 1.55; max-width: 48ch; }

/* Freie Zeiten für heute, direkt anklickbar */
.heute-tafel { margin-top: 24px; border-top: 1px solid rgba(255, 255, 255, .13); padding-top: 18px; }
.heute-zeile { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.heute-zeile .marke-klein { font-size: var(--t-s); color: rgba(255, 255, 255, .55); font-weight: 500; }
.heute-zeiten { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.heute-zeit {
  font-family: var(--schrift-mono); font-size: var(--t-l); font-weight: 550; font-variant-numeric: tabular-nums;
  color: #fff; background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px; padding: 9px 13px; min-height: 0;
  transition: background var(--uebergang), border-color var(--uebergang);
}
.heute-zeit:hover { background: var(--rot); border-color: var(--rot); }
.heute-leer { color: rgba(255, 255, 255, .62); font-size: var(--t-m); margin: 10px 0 0; }

/* ---- Spielschein: die Schritte als Frames ---- */
.kunde-inhalt { max-width: var(--spalte); margin: 0 auto; padding: 0 20px 90px; }
.termin-raster { display: flex; flex-direction: column; gap: 18px; }
.termin-tag, .termin-wahl { display: flex; flex-direction: column; gap: 14px; }

/* Merkzettel: auf dem Handy unsichtbar, auf breiten Schirmen rechts mitlaufend */
.merkzettel { display: none; }
.merk-kasten { border: 1.5px solid var(--linie); border-radius: 4px; padding: 20px; position: sticky; top: 24px; }
.merk-kasten h2 { font-size: var(--t-m); font-weight: 650; margin: 0 0 14px; letter-spacing: -.01em; }
.merk-zeile { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--linie-2); font-size: var(--t-s); }
.merk-zeile span { color: var(--text-2); }
.merk-zeile b { font-weight: 600; text-align: right; }
.merk-offen { color: var(--text-3); font-weight: 400; }
.merk-hinweis { margin: 14px 0 0; font-size: var(--t-s); color: var(--text-2); line-height: 1.55; }
.merk-tel { font-family: var(--schrift-mono); font-size: var(--t-m); font-weight: 550; color: var(--tinte); }

/* Breiter Bildschirm: zwei Spalten, damit rechts nicht hektarweise Weiß steht */
@media (min-width: 1000px) {
  .tafel-kopf, .tafel-inhalt { max-width: var(--spalte-breit); }
  .kunde-inhalt {
    max-width: var(--spalte-breit);
    display: grid; grid-template-columns: 1fr 280px; gap: 0 44px; align-items: start;
  }
  .kunde-inhalt > .frame, .kunde-inhalt > .kunde-fuss, .kunde-inhalt > .laedt { grid-column: 1; }
  .merkzettel { display: block; grid-column: 2; grid-row: 1 / -1; padding-top: 34px; }
  .frame { grid-template-columns: 48px 1fr; }
  .termin-raster { display: grid; grid-template-columns: minmax(280px, 320px) 1fr; gap: 28px; align-items: start; }
  .tafel h1 { max-width: 18ch; }
}
.kunde-inhalt > .laedt { padding: 34px 0; }
.frame { border-bottom: 1px solid var(--linie); padding: 34px 0; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.frame:last-of-type { border-bottom: 0; }
.frame > h2 {
  grid-column: 2; font-size: var(--t-xl); font-weight: 650; letter-spacing: -.025em; margin: 0; line-height: 1.2;
}
.frame > :not(h2):not(.frame-nr) { grid-column: 2; }
.frame-nr {
  grid-row: 1; grid-column: 1; width: 36px; height: 36px; border: 1.5px solid var(--linie-2);
  display: flex; align-items: center; justify-content: center; border-radius: 3px;
  font-family: var(--schrift-mono); font-size: var(--t-m); font-weight: 550; color: var(--text-3);
  position: sticky; top: 20px;
}
.frame.fertig .frame-nr { border-color: var(--rot); color: var(--rot); }
@media (max-width: 620px) {
  .frame { grid-template-columns: 1fr; gap: 16px; }
  .frame > h2, .frame > :not(h2):not(.frame-nr) { grid-column: 1; }
  .frame-nr { margin-bottom: 0; position: static; }
}
.kunde-fuss { color: var(--text-3); font-size: var(--t-s); line-height: 1.7; padding: 26px 0 0; border-top: 1px solid var(--linie); text-align: left; margin-top: 10px; }
.kunde-fuss a { color: var(--text-2); }
body.kunde .feld { font-size: var(--t-s); font-weight: 550; color: var(--text-2); gap: 6px; }
body.kunde .feld > input, body.kunde .feld > select, body.kunde .feld > textarea, body.kunde .eingabe {
  min-height: 46px; border-radius: 4px; background: var(--papier); border: 1.5px solid var(--linie);
  font-size: var(--t-m); padding: 10px 13px;
}
body.kunde .leise { color: var(--text-2); font-size: var(--t-s); line-height: 1.6; margin: 0; }
body.kunde .haken-feld { font-size: var(--t-s); line-height: 1.55; }
body.kunde .knopf.gross { border-radius: 4px; min-height: 56px; font-size: var(--t-l); font-weight: 650; }

/* Gast-Seiten (Reservierung ansehen, Newsletter) nutzen denselben Block ohne Frames */
.kunde-karte {
  background: var(--papier); border: 1.5px solid var(--linie); border-radius: 4px; padding: 24px;
  display: flex; flex-direction: column; gap: 18px; margin-top: 26px;
}
.kunde-karte h1, .kunde-karte h2 { margin: 0; font-size: var(--t-xl); font-weight: 650; letter-spacing: -.02em; }
.erfolg { padding-top: 40px; }
.haken-gross {
  width: 52px; height: 52px; border-radius: 4px; border: 2px solid var(--rot); color: var(--rot);
  display: flex; align-items: center; justify-content: center; font-size: 26px;
}

/* ---- Was wird gebucht ---- */
.angebote { display: grid; gap: 0; border-top: 1px solid var(--linie); }
.angebot-gruppe { font-weight: 600; font-size: var(--t-s); color: var(--text-3); padding: 16px 0 6px; }
.angebot-wahl {
  position: relative; text-align: left; border: 0; border-bottom: 1px solid var(--linie); background: transparent;
  padding: 16px 44px 16px 0; display: grid; grid-template-columns: 1fr auto; gap: 3px 16px; color: var(--tinte);
  transition: padding-left var(--uebergang), background var(--uebergang);
}
.angebot-wahl:hover { background: var(--flaeche-2); padding-left: 10px; }
.angebot-wahl b { font-size: var(--t-l); font-weight: 600; letter-spacing: -.015em; }
.angebot-wahl span { grid-column: 1; font-size: var(--t-s); color: var(--text-2); line-height: 1.5; max-width: 52ch; }
.angebot-wahl .preis {
  grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--schrift-mono);
  font-size: var(--t-m); font-weight: 550; color: var(--tinte); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.angebot-wahl .anfrage-chip { grid-column: 1; justify-self: start; font-size: var(--t-xs); color: var(--text-3); }
.angebot-wahl.an { background: var(--flaeche-2); padding-left: 10px; }
.angebot-wahl.an::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rot); }
.angebot-wahl.an::after {
  content: "✓"; position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  width: 26px; height: 26px; background: var(--rot); color: #fff; border-radius: 3px;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; line-height: 1;
}

/* ---- Wann ---- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-wahl {
  border: 1.5px solid var(--linie); background: var(--papier); border-radius: 4px; min-height: 40px; padding: 0 14px;
  font-weight: 550; font-size: var(--t-s); color: var(--text-2);
  transition: border-color var(--uebergang), color var(--uebergang);
}
.chip-wahl:hover { border-color: var(--tinte); color: var(--tinte); }
.chip-wahl.an { border-color: var(--tinte); background: var(--tinte); color: #fff; }
.zeiten { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.zeit-wahl {
  min-height: 50px; border-radius: 4px; border: 1.5px solid var(--linie); background: var(--papier); color: var(--tinte);
  font-family: var(--schrift-mono); font-weight: 550; font-size: var(--t-l); font-variant-numeric: tabular-nums;
  transition: border-color var(--uebergang), background var(--uebergang), color var(--uebergang);
}
.zeit-wahl:hover:not(:disabled) { border-color: var(--tinte); }
.zeit-wahl:disabled { color: var(--linie); border-color: var(--linie-2); cursor: not-allowed; }
.zeit-wahl.an { background: var(--rot); color: #fff; border-color: var(--rot); }
.zeit-wahl small { display: block; font-size: 10px; font-weight: 500; font-family: var(--schrift); opacity: .7; }
.zaehler-reihe { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.zaehler-reihe .feld { min-width: 150px; }
.zeiten-skelett { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); }
.zeiten-skelett span { height: 50px; border-radius: 4px; background: var(--flaeche-2); animation: pochen 1.3s ease-in-out infinite; }
.zeiten-skelett span:nth-child(2n) { animation-delay: .15s; }
.zeiten-skelett span:nth-child(3n) { animation-delay: .3s; }
@keyframes pochen { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .zeiten-skelett span { animation: none; } }

/* ---- Monatsblatt ---- */
.kal { border: 1.5px solid var(--linie); border-radius: 4px; padding: 14px; }
.kal-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.kal-kopf b { font-size: var(--t-m); font-weight: 600; letter-spacing: -.01em; }
.kal-pfeil { width: 34px; height: 34px; border-radius: 3px; border: 1.5px solid var(--linie); background: var(--papier); color: var(--text-2); font-size: 17px; line-height: 1; }
.kal-pfeil:hover:not(:disabled) { border-color: var(--tinte); color: var(--tinte); }
.kal-pfeil:disabled { color: var(--linie); cursor: not-allowed; }
.kal-gitter { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.kal-wt { text-align: center; font-size: var(--t-xs); font-weight: 550; color: var(--text-3); padding-bottom: 4px; }
.kal-tag {
  aspect-ratio: 1 / 1; min-height: 40px; border-radius: 3px; border: 1.5px solid transparent;
  background: var(--flaeche-2); color: var(--tinte); font-family: var(--schrift-mono); font-weight: 550; font-size: var(--t-m);
  position: relative; font-variant-numeric: tabular-nums;
  transition: border-color var(--uebergang), background var(--uebergang);
}
.kal-tag:hover:not(:disabled) { border-color: var(--tinte); }
.kal-tag:disabled { cursor: not-allowed; color: var(--text-3); background: transparent; opacity: .5; }
.kal-tag.z-voll { text-decoration: line-through; }
.kal-tag::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: 5px; width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.kal-tag.z-frei::after { background: var(--gruen); }
.kal-tag.z-wenig::after { background: var(--gelb); }
.kal-tag.an { background: var(--rot); border-color: var(--rot); color: #fff; }
.kal-tag.an::after { background: rgba(255, 255, 255, .85); }
.kal-legende { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 0; font-size: var(--t-xs); color: var(--text-3); }
.kal-legende span { display: inline-flex; align-items: center; gap: 6px; }
.kal-legende span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--linie); }
.kal-legende .z-frei::before { background: var(--gruen); }
.kal-legende .z-wenig::before { background: var(--gelb); }

@media (max-width: 620px) {
  .tafel-kopf { padding: 12px 16px; gap: 10px; }
  .kunde-marke { font-size: var(--t-s); }
  .kunde-marke small, .nur-breit { display: none; }
  .kunde-tel { font-size: var(--t-s); }
  .tafel-inhalt { padding: 24px 16px 0; }
  .tafel { padding-bottom: 22px; }
  .kunde-inhalt { padding: 0 16px 80px; }
  /* Preis unter den Namen statt daneben – sonst wird die Beschreibung zur Schlucht */
  .angebot-wahl { grid-template-columns: 1fr; padding-right: 40px; }
  .angebot-wahl .preis { grid-column: 1; grid-row: auto; justify-self: start; padding-top: 4px; }
}
.halte-hinweis b { font-family: var(--schrift-mono); font-variant-numeric: tabular-nums; }
.zaehler-reihe { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; }
.zaehler-reihe .feld { min-width: 150px; }
.zusammenfassung { background: var(--flaeche-2); border: 1px solid var(--linie); border-left: 3px solid var(--rot); border-radius: var(--r-klein); padding: 12px 15px; font-size: 15px; line-height: 1.55; }
.zusammenfassung b { color: var(--text); font-weight: 650; }
.haken-feld { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text); }
.haken-feld input { margin-top: 1px; flex: none; }
.haken-feld a { color: var(--rot); text-underline-offset: 2px; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.erfolg { text-align: center; padding: 30px 18px; align-items: center; }
.erfolg .haken-gross { width: 68px; height: 68px; border-radius: 20px; background: var(--gruen); color: #fff; font-size: 36px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; box-shadow: 0 12px 30px -10px color-mix(in srgb, var(--gruen) 80%, transparent); }
.erfolg .haken-gross.anfrage { background: var(--text); box-shadow: none; }
.erfolg .zusammenfassung { text-align: left; align-self: stretch; }

/* =====================================================================
   KLEINE BILDSCHIRME
   ===================================================================== */
@media (max-width: 760px) {
  :root { --zeile: 34px; }
  .kopf { gap: 8px; padding: 8px 10px; }
  .marke small, .zaehler { display: none; }
  .tag-titel { font-size: 17px; }
  .raster-huelle { padding: 8px 6px 30px; overflow-x: auto; }
  .spaltenkopf { padding: 6px; gap: 6px; }
  .spaltenkopf .nr { font-size: 24px; }
  .dialog { max-width: none; border-left: 0; }
  .dialog-hinter:has(> .dialog.schmal) { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}

/* ---------- Suche (über alle Tage) ---------- */
.such-hinter { position: fixed; inset: 0; z-index: var(--z-dialog); background: rgba(8, 6, 6, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 8vh 16px 16px; animation: einblenden 160ms ease-out; }
.such-feld { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-gross); box-shadow: var(--schatten-hoch); width: 100%; max-width: 620px; display: flex; flex-direction: column; max-height: 80vh; overflow: hidden; }
.such-feld > input { border: 0; border-bottom: 1px solid var(--linie-2); border-radius: 0; background: transparent; min-height: 58px; font-size: 18px; padding: 0 18px; }
.such-feld > input:focus { outline: none; box-shadow: none; }
.such-kopf { display: flex; align-items: center; gap: 10px; padding: 8px 18px; border-bottom: 1px solid var(--linie-2); font-size: 12.5px; color: var(--text-3); }
.such-kopf label { display: inline-flex; align-items: center; gap: 6px; }
.such-treffer { overflow-y: auto; padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.such-treffer button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 8px; color: var(--text); }
.such-treffer button:hover, .such-treffer button.markiert { background: var(--flaeche-3); }
.such-treffer .kopfzeile { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.such-treffer .kopfzeile b { font-weight: 650; }
.such-treffer .wann { font-family: var(--schrift-mono); font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.such-treffer small { color: var(--text-2); font-size: 12.5px; }
.such-treffer .vorbei { opacity: .6; }
.such-leer { padding: 22px 18px; color: var(--text-2); font-size: 14px; }

/* ---------- Schnellmenü am Block (Rechtsklick / langes Drücken) ---------- */
.schnellmenue { position: fixed; z-index: var(--z-menue); background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: var(--r); box-shadow: var(--schatten-hoch); padding: 5px; min-width: 210px; display: flex; flex-direction: column; animation: aufklappen 120ms ease-out; }
.schnellmenue .titel { padding: 7px 11px 8px; font-size: 12px; color: var(--text-3); border-bottom: 1px solid var(--linie); margin-bottom: 4px; }
.schnellmenue button { text-align: left; border: 0; background: none; padding: 9px 11px; border-radius: 7px; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 9px; }
.schnellmenue button:hover { background: var(--flaeche-3); }
.schnellmenue button.gefahr { color: var(--rot); }
.schnellmenue hr { border: 0; border-top: 1px solid var(--linie-2); margin: 4px 0; }
.schnellmenue .taste { margin-left: auto; font-family: var(--schrift-mono); font-size: 11px; color: var(--text-3); }

/* ---------- Kundenkartei ---------- */
.kartei-kopf { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.kartei-kopf .feld { flex: 1 1 240px; }
.kunden-liste { display: flex; flex-direction: column; gap: 2px; }
.kunden-zeile { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 11px 12px; border-radius: var(--r-klein); background: var(--flaeche-2); border: 1px solid transparent; text-align: left; color: var(--text); transition: background var(--uebergang), border-color var(--uebergang); }
.kunden-zeile:hover { background: var(--flaeche-3); border-color: var(--linie); }
.kunden-zeile .wer { min-width: 0; }
.kunden-zeile .wer b { font-weight: 650; }
.kunden-zeile .wer small { display: block; color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kunden-zeile .zahlen { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.kunden-zeile.anonym { opacity: .55; }
.merkmal { font-size: 11px; font-weight: 650; padding: 2px 7px; border-radius: 4px; background: var(--flaeche-3); color: var(--text-2); white-space: nowrap; }
.merkmal.stamm { background: var(--gruen-hell); color: var(--gruen); }
.merkmal.warnung { background: var(--rot-hell); color: var(--rot); }
.merkmal.firma { background: var(--flaeche-3); color: var(--text-2); }
.dublette { border: 1px solid var(--linie); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--flaeche-2); }
.dublette .wahl { display: flex; flex-direction: column; gap: 4px; }
.dublette label { display: flex; align-items: center; gap: 9px; font-size: 14px; padding: 7px 9px; border-radius: var(--r-klein); background: var(--flaeche); border: 1px solid var(--linie-2); }
.dublette label small { color: var(--text-2); margin-left: auto; white-space: nowrap; }
.block .mehr { position: absolute; top: 4px; right: 3px; width: 24px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: rgba(0, 0, 0, .25); color: var(--text-2); font-size: 15px; line-height: 1; opacity: 0; transition: opacity var(--uebergang), background var(--uebergang), color var(--uebergang); }
.block:hover .mehr, .block:focus-within .mehr { opacity: 1; }
.block .mehr:hover { background: rgba(0, 0, 0, .45); color: var(--text); }
@media (hover: none) { .block .mehr { opacity: .8; } }

/* ---------- Sperrzeiten, überfällige Reservierungen ---------- */
.sperrzone {
  position: absolute; left: 2px; right: 2px; z-index: 3; border-radius: 6px; overflow: hidden;
  background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--sperr-farbe, #6b625d) 42%, transparent) 0 8px, transparent 8px 16px);
  border: 1px dashed color-mix(in srgb, var(--sperr-farbe, #6b625d) 70%, transparent);
  display: flex; align-items: flex-start; justify-content: center; pointer-events: none;
}
.sperrzone span { font-size: 11px; font-weight: 650; color: var(--text-2); background: var(--flaeche); padding: 1px 7px; border-radius: 0 0 5px 5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.block.wartet { box-shadow: inset 0 0 0 1.5px var(--gelb), 0 0 20px -6px color-mix(in srgb, var(--gelb) 70%, transparent); }
.block.ueberzieht { box-shadow: inset 0 0 0 1.5px var(--rot), 0 0 20px -6px color-mix(in srgb, var(--rot) 70%, transparent); }
.marke-s.warnt { background: var(--rot); color: #fff; border-color: transparent; }
.block.wartet .marke-s.warnt { background: var(--gelb); color: #1a1405; }
.block .griff-oben { top: 0; bottom: auto; cursor: ns-resize; }
.block .griff-oben::after { top: 3px; bottom: auto; }

/* ---------- Freie Zeiten suchen ---------- */
.frei-ergebnis { display: flex; flex-direction: column; gap: 10px; }
.frei-tag { border: 1px solid var(--linie-2); border-radius: var(--r); padding: 10px 12px; background: var(--flaeche-2); }
.frei-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.frei-kopf small { color: var(--text-3); font-size: 12px; }
.frei-zeiten { display: flex; flex-wrap: wrap; gap: 6px; }
.frei-zeiten .knopf { font-family: var(--schrift-mono); font-weight: 600; }

/* ---------- Verbindung weg / Mail-Warnung ---------- */
.verbindung-weg { position: sticky; top: 0; z-index: 400; background: var(--rot); color: #fff; font-weight: 600; font-size: 14px; padding: 9px 16px; text-align: center; }
.verbindung-weg.mail { background: var(--gelb); color: #1a1405; }
.verbindung-weg a { color: inherit; }

/* ---------- Neues von online ---------- */
.ereignis { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border: 1px solid var(--linie-2); border-radius: var(--r); background: var(--flaeche-2); }
.ereignis .symbol { font-size: 18px; flex: none; }
.ereignis .was { flex: 1; min-width: 0; }
.ereignis .was small { color: var(--text-3); font-size: 12px; }

/* ---------- Umschalter Tag/Woche ---------- */
.ansicht-wahl { display: flex; gap: 2px; background: var(--flaeche); border: 1px solid var(--linie-2); padding: 3px; border-radius: var(--r-klein); margin-left: 4px; }
.ansicht-wahl button { border: 0; background: transparent; min-height: 30px; padding: 0 11px; border-radius: 5px; font-weight: 550; font-size: 13px; color: var(--text-2); transition: background var(--uebergang), color var(--uebergang); }
.ansicht-wahl button:hover { color: var(--text); }
.ansicht-wahl button.aktiv { background: var(--flaeche-3); color: var(--text); }

/* ---------- Wochenansicht ---------- */
.wochen-raster { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 8px; }
.wochen-tag { background: var(--flaeche); border: 1px solid var(--linie-2); border-radius: var(--r); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 180px; }
.wochen-tag.heute { border-color: var(--rot); box-shadow: 0 0 0 1px var(--rot); }
.wochen-tag.zu { opacity: .55; }
.wochen-kopf { border: 0; background: none; color: var(--text); text-align: left; padding: 0; display: flex; flex-direction: column; gap: 1px; border-radius: var(--r-klein); }
.wochen-kopf:hover b { color: var(--rot); }
.wochen-kopf b { font-size: var(--t-m); font-weight: 650; letter-spacing: -.01em; }
.wochen-kopf small { color: var(--text-3); font-size: 11.5px; font-family: var(--schrift-mono); }
.wochen-zahlen { display: flex; flex-wrap: wrap; gap: 4px; }
.wochen-zahlen .chip { font-size: 11px; padding: 2px 7px; }
.wochen-liste { display: flex; flex-direction: column; gap: 3px; }
.wochen-eintrag { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; align-items: baseline; text-align: left; border: 0; border-left: 3px solid var(--farbe, #888); background: var(--flaeche-2); border-radius: 0 5px 5px 0; padding: 5px 7px; color: var(--text); font-size: 12.5px; transition: background var(--uebergang); }
.wochen-eintrag:hover { background: var(--flaeche-3); }
.wochen-eintrag.chef { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rot) 50%, transparent); }
.wochen-eintrag .uhr { font-family: var(--schrift-mono); font-size: 11.5px; color: var(--text-2); }
.wochen-eintrag .wer { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.wochen-eintrag .pers { font-family: var(--schrift-mono); font-size: 11px; color: var(--text-3); }
@media (max-width: 1100px) { .wochen-raster { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }

/* ---------- Drucken ---------- */
.druckblatt { display: none; }
@media print {
  body > *:not(.druckblatt) { display: none !important; }
  body, html { background: #fff !important; color: #000 !important; background-image: none !important; }
  .druckblatt { display: block; padding: 0; font-family: var(--schrift), sans-serif; color: #000; }
  .druck-kopf h1 { font-size: 18pt; margin: 0 0 2mm; }
  .druck-kopf div { font-size: 10pt; color: #333; margin-bottom: 4mm; }
  .druck-notizen { border: 1pt solid #999; border-radius: 2mm; padding: 2mm 3mm; margin-bottom: 4mm; font-size: 10pt; }
  .druck-tabelle { width: 100%; border-collapse: collapse; font-size: 10pt; }
  .druck-tabelle th { text-align: left; border-bottom: 1.5pt solid #000; padding: 1.5mm 2mm; font-size: 9pt; text-transform: uppercase; }
  .druck-tabelle td { border-bottom: 0.5pt solid #bbb; padding: 2mm; vertical-align: top; }
  .druck-tabelle tr { page-break-inside: avoid; }
  .druck-tabelle .uhr { font-family: var(--schrift-mono), monospace; white-space: nowrap; }
  .druck-tabelle .haken-spalte { font-size: 14pt; text-align: center; }
  .druck-tabelle small { color: #555; }
  .druck-fuss { margin-top: 5mm; font-size: 8pt; color: #666; }
  @page { margin: 12mm; size: A4 portrait; }
}
.zeitfenster { border: 1px solid var(--linie-2); border-radius: var(--r-klein); padding: 10px; display: flex; flex-direction: column; gap: 8px; background: var(--flaeche-2); }

/* Schlüssel für Programm-Zugänge: einmalig sichtbar, darum gut lesbar und auswählbar */
.schluessel {
  font-family: var(--schrift-mono); font-size: 14px; background: var(--flaeche-3); color: var(--text);
  padding: 10px 12px; border-radius: var(--r-klein); margin: 8px 0 0; user-select: all; overflow-wrap: anywhere; white-space: pre-wrap;
}

/* Gutscheine an der Theke: großes Code-Feld, Urteil und Restwert sofort lesbar */
.gs-suche { display: flex; gap: 10px; flex-wrap: wrap; }
.gs-suche .gs-code { flex: 1 1 260px; font-family: var(--schrift-mono); font-size: 24px; letter-spacing: .08em; text-transform: uppercase; min-height: 52px; }
.gs-suche .knopf { min-height: 52px; padding: 0 22px; font-size: var(--t-l); }
.gs-urteil { font-size: var(--t-xl); font-weight: 650; padding: 12px 14px; }
.gs-werte { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: flex-end; }
.gs-werte > div { display: flex; flex-direction: column; gap: 2px; }
.gs-rest { font-size: 40px; font-weight: 750; letter-spacing: -.02em; line-height: 1.05; }
.gs-abbuchen { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px; border-radius: var(--r); background: var(--flaeche-2); }
.gs-abbuchen .gs-betrag { width: 160px; font-size: 22px; min-height: 48px; }
.gs-abbuchen .gs-notiz { flex: 1 1 200px; }
.gs-abbuchen .knopf { min-height: 48px; }
.gs-buchungen h3 { margin: 4px 0 6px; font-size: var(--t-m); }
.gs-zurueck td { color: var(--text-3); text-decoration: line-through; }
.gs-zurueck td:nth-child(4), .gs-zurueck td:last-child { text-decoration: none; }
.gs-summe { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: var(--t-m); color: var(--text-2); }
.gs-summe b { color: var(--text); }
.gs-code-link { border: 0; background: none; padding: 0; font-family: var(--schrift-mono); color: var(--rot); text-decoration: underline; cursor: pointer; }
.gs-storno summary { font-size: 13px; }

/* ---------- Theke (dunkel): Chips und Seitenleisten (Prüfung 17.11.2026) ----------
   .chip-wahl kommt von der hellen Gästeseite (weißer Grund) – im dunklen Modus eigene Farben.
   Kunden: Leiste links wie die Verwaltung statt nackter Browser-Knöpfe. */
body.app .chip-wahl {
  background: var(--flaeche-2); border: 1px solid var(--linie); border-radius: 9px; min-height: 36px; padding: 0 13px;
  color: var(--text-2); font-weight: 550;
}
body.app .chip-wahl:hover { border-color: var(--text-3); color: var(--text); }
body.app .chip-wahl.an { background: var(--text); border-color: var(--text); color: var(--hinter); }
.stat-filter .chips { display: grid; gap: 6px; }
.stat-filter .chip-wahl { width: 100%; text-align: left; }
.verw-reiter { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; }
.verw-reiter button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 9px 11px; border-radius: 9px; color: var(--text-2); font-weight: 550; font-size: 14.5px;
  border-left: 2px solid transparent; transition: background var(--uebergang), color var(--uebergang), border-color var(--uebergang);
}
.verw-reiter button:hover { background: var(--flaeche); color: var(--text); }
.verw-reiter button.aktiv { background: var(--flaeche-3); color: var(--text); border-left-color: var(--rot); font-weight: 650; }
.verw-reiter .knopf { align-self: flex-start; margin-top: 14px; }
@media (max-width: 860px) {
  .verw-reiter { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .verw-reiter button { width: auto; border-left: 0; }
  .verw-reiter .knopf { margin-top: 0; }
}

/* Schmalere Bildschirme: Reiter (Theke, Kunden …) in eine eigene, wischbare Zeile statt aus dem Bild,
   Benutzer-Menü bleibt oben rechts */
@media (max-width: 1180px) {
  .kopf-oben .wege { order: 10; flex: 1 1 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .kopf-oben .wege::-webkit-scrollbar { display: none; }
  .kopf-oben .wege .knopf { flex: none; }
  .kopf-oben .benutzer-menue { margin-left: auto; }
}

/* ---------- Tischnummer (Tim, 17.11.2026: bei „Im Haus“ fragen, groß in der Buchung zeigen) ---------- */
.block .tisch {
  position: absolute; top: 6px; right: 6px; z-index: 1; display: grid; justify-items: center; min-width: 38px; padding: 3px 7px 4px;
  border-radius: 8px; background: var(--text); color: var(--hinter); box-shadow: 0 4px 12px -6px rgba(0, 0, 0, .8);
  font-family: var(--schrift-mono); font-weight: 750; font-size: 19px; line-height: 1;
}
.block .tisch small { font-family: var(--schrift); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.block.mit-tisch .name, .block.mit-tisch .zeile2 { padding-right: 50px; }
.block.mit-tisch .quelle { right: 52px; }
.block.mit-tisch .mehr { top: auto; bottom: 4px; }
.block.kurz .tisch { top: 2px; padding: 1px 6px; font-size: 15px; }
.block.kurz .tisch small { display: none; }
.tisch-knopf {
  margin-left: auto; display: grid; justify-items: center; min-width: 54px; padding: 5px 10px 6px; border: 0; border-radius: 10px;
  background: var(--text); color: var(--hinter); font-family: var(--schrift-mono); font-weight: 750; font-size: 24px; line-height: 1; cursor: pointer;
}
.tisch-knopf small { font-family: var(--schrift); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.tisch-knopf.leer { background: var(--flaeche-3); color: var(--text-2); font-family: var(--schrift); font-size: 14px; font-weight: 650; padding: 9px 12px; }
.tisch-frage .tisch-eingabe { width: 100%; min-height: 56px; font-family: var(--schrift-mono); font-size: 28px; font-weight: 700; text-align: center; letter-spacing: .04em; }

/* ---------- Theken-PC: Ansicht, „Wer bist du?“, Anmeldung mit Restzeit (Tim, 17.11.2026) ---------- */
.sitzung-feld { display: flex; align-items: center; gap: 8px; }
.sitzung-feld:empty { display: none; }
.ansicht-hinweis { font-size: 12.5px; white-space: nowrap; }
/* hell statt rot: steht direkt neben „+ Neu“ und soll sich davon abheben */
.knopf.wer-knopf { padding: 0 18px; font-weight: 650; background: var(--text); border-color: var(--text); color: var(--hinter); box-shadow: none; }
.knopf.wer-knopf:hover { background: color-mix(in srgb, var(--text) 85%, var(--hinter)); border-color: transparent; }
.person-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px;
  font-size: 14px; color: var(--text); background: var(--gruen-hell);
  border-color: color-mix(in srgb, var(--gruen) 45%, transparent);
  transition: background var(--uebergang), border-color var(--uebergang);
}
.person-chip b { font-family: var(--schrift); font-weight: 650; }
.person-chip .punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--gruen); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gruen) 25%, transparent); }
.person-chip .rest { font-family: var(--schrift-mono); font-variant-numeric: tabular-nums; font-weight: 600; min-width: 4ch; }
button.person-chip { cursor: pointer; font: inherit; font-size: 14px; }
button.person-chip:hover { border-color: var(--gruen); }
.person-chip.knapp { background: var(--gelb-hell); border-color: var(--gelb); }
.person-chip.knapp .punkt { background: var(--gelb); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gelb) 25%, transparent); }
.knopf.fertig { font-weight: 650; }

.dialog.schmal.wer-dialog { max-width: 640px; }
.wer-dialog:focus { outline: none; }
.wer-dialog.laedt { cursor: progress; }
.wer-dialog.laedt .wer-name, .wer-dialog.laedt .tastatur button { pointer-events: none; opacity: .6; }
.wer-dialog .dialog-fuss a.knopf { text-decoration: none; }
.wer-namen { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.wer-name {
  min-height: 84px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--linie); background: var(--flaeche-2);
  color: var(--text); font-size: 19px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  touch-action: manipulation; user-select: none;
  transition: background var(--uebergang), border-color var(--uebergang), transform 80ms;
}
.wer-name:hover { background: var(--flaeche-3); border-color: color-mix(in srgb, var(--text) 22%, var(--linie)); }
.wer-name:active { transform: scale(.97); }
.wer-name small { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.wer-dialog .pin-anzeige { height: 34px; gap: 16px; }
.wer-dialog .pin-anzeige span { width: 16px; height: 16px; }
.wer-dialog .tastatur { max-width: 360px; width: 100%; margin: 0 auto; gap: 10px; }
.wer-dialog .tastatur button { min-height: 66px; font-size: 26px; touch-action: manipulation; user-select: none; }
.wer-dialog .tastatur .ok { background: var(--rot); border-color: var(--rot); color: #fff; font-family: var(--schrift); font-size: 18px; font-weight: 700; }
.wer-dialog .tastatur .ok:hover { background: var(--rot-dunkel); }
.wer-dialog .tastatur .ok:disabled { opacity: .4; }
.wer-dialog .tastatur .loeschen { font-size: 22px; color: var(--text-2); }
.pin-anzeige.wackelt { animation: wackeln 380ms cubic-bezier(.36, .07, .19, .97); }
.pin-anzeige.wackelt span { border-color: var(--rot); }
@keyframes wackeln { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@media (prefers-reduced-motion: reduce) { .pin-anzeige.wackelt { animation: none; } }
.theke-zurueck a { color: var(--text); font-weight: 650; }

/* Verwaltung: Benutzer bearbeiten, Rechte, Theken-PCs */
.rechte-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px 18px; }
.rechte-liste .haken-feld small { display: block; color: var(--text-3); font-size: 12px; line-height: 1.35; }
.rechte-liste .haken-feld.aus { opacity: .55; }
.pin-felder { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.pin-felder input:not(:placeholder-shown) { font-family: var(--schrift-mono); letter-spacing: .3em; }
.geraet-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 14px; border: 1px solid var(--linie-2); border-radius: var(--r); background: var(--flaeche-2); }
.geraet-zeile .was { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.geraet-zeile .was b { font-size: 16px; font-weight: 650; }
.geraet-zeile .was small { color: var(--text-3); font-size: 12.5px; }
.geraet-zeile .zuletzt { font-size: 13px; color: var(--text-2); white-space: nowrap; }
td .schild { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--flaeche-3); color: var(--text-2); white-space: nowrap; }
td .schild.gut { background: var(--gruen-hell); color: var(--text); }
td .schild.warn { background: var(--gelb-hell); color: var(--text); }
