/* Weber Gärten · Team – Stempel-App (Abschnitt 1, 27.10.2026). Kein Build, kein Framework. */
@font-face { font-family: 'Montserrat'; src: url('/font/montserrat-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #faf7f0; --flaeche: #fffdf8; --flaeche-2: #f1ece0; --tinte: #16171a; --tinte-2: #55524b; --tinte-3: #8b877d;
  --linie: rgba(22, 23, 26, .12); --rand: #77736a;
  --gold: #c9a843; --gold-text: #7b611e; --auf-gold: #16171a;
  --laeuft: #2f7d4f; --pause: #8b877d; --warn: #a33a2b; --warn-flaeche: #f6e5e1;
  --hinweis: #f3ead2; --leiste: #e6dfcf; --leiste-voll: #16171a;
  --schatten: 0 6px 18px -2px rgba(0, 0, 0, .10);
  --r-k: 4px; --r-m: 8px; --r-g: 16px;
  --fuss-h: 0px;
  color-scheme: light;
}
:root[data-thema="dunkel"] {
  --bg: #16171a; --flaeche: #1f2024; --flaeche-2: #27282d; --tinte: rgba(255, 255, 255, .87); --tinte-2: rgba(255, 255, 255, .6); --tinte-3: rgba(255, 255, 255, .38);
  --linie: rgba(255, 255, 255, .08); --rand: rgba(255, 255, 255, .38);
  --gold: #d2bb6e; --gold-text: #d2bb6e; --auf-gold: #16171a;
  --laeuft: #6cc08e; --pause: rgba(255, 255, 255, .5); --warn: #f0a596; --warn-flaeche: #3a2522;
  --hinweis: #2b2719; --leiste: #2c2d32; --leiste-voll: rgba(255, 255, 255, .87);
  --schatten: none;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-thema="hell"]) {
    --bg: #16171a; --flaeche: #1f2024; --flaeche-2: #27282d; --tinte: rgba(255, 255, 255, .87); --tinte-2: rgba(255, 255, 255, .6); --tinte-3: rgba(255, 255, 255, .38);
    --linie: rgba(255, 255, 255, .08); --rand: rgba(255, 255, 255, .38);
    --gold: #d2bb6e; --gold-text: #d2bb6e; --auf-gold: #16171a;
    --laeuft: #6cc08e; --pause: rgba(255, 255, 255, .5); --warn: #f0a596; --warn-flaeche: #3a2522;
    --hinweis: #2b2719; --leiste: #2c2d32; --leiste-voll: rgba(255, 255, 255, .87);
    --schatten: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--tinte);
  font-family: 'Montserrat', system-ui, sans-serif; font-size: 1rem; line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.2; }
p, li { text-wrap: pretty; max-width: 60ch; }
button, input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.klein { font-size: .8125rem; color: var(--tinte-2); }
.fehler { color: var(--warn); font-size: .875rem; min-height: 1.2em; margin: .25rem 0 0; }
.fehler:empty { min-height: 0; margin: 0; }

/* ---------- Bildschirme ---------- */
.screen { min-height: 100dvh; }
#s-laden { display: grid; place-items: center; }
.marke { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--tinte-2); font-weight: 600; margin: 0 0 1.25rem; }
.wrap { width: min(100%, 30rem); margin-inline: auto; padding: max(2rem, env(safe-area-inset-top)) 1.25rem 2rem; }
.wrap h1 { font-size: 1.75rem; font-weight: 700; margin-bottom: .5rem; }
.lead { color: var(--tinte-2); margin: 0 0 1.25rem; }
.schritte { padding-left: 1.25rem; display: grid; gap: 1.25rem; margin: 0 0 2rem; }
.schritte li { padding-left: .25rem; }
.schritte .btn { margin-top: .625rem; }
.code-anzeige { display: block; margin-top: .5rem; padding: .625rem .75rem; background: var(--flaeche-2); border-radius: var(--r-m); word-break: break-all; font-size: .875rem; user-select: all; }
.link { background: none; border: 0; padding: .75rem 0; min-height: 48px; color: var(--tinte-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- Knöpfe ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 56px; padding: .75rem 1.25rem; border-radius: var(--r-g); border: 0;
  font-weight: 700; font-size: 1.0625rem; cursor: pointer; text-align: center;
  transition: transform .1s ease, box-shadow .15s ease, background-color .15s ease;
  touch-action: manipulation; position: relative;
}
.btn:focus-visible, .icon-btn:focus-visible, .zeile:focus-visible, .x:focus-visible, .link:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn-haupt {
  background: linear-gradient(180deg, #d6b955 0%, var(--gold) 100%); color: var(--auf-gold);
  box-shadow: inset 0 1px 0 #ffffff59, inset 0 -2px 0 #0003, 0 1px 2px #0006, 0 8px 24px -6px #c9a84399;
}
:root[data-thema="dunkel"] .btn-haupt { background: linear-gradient(180deg, #ddc67d 0%, var(--gold) 100%); box-shadow: inset 0 1px 0 #ffffff59, inset 0 -2px 0 #0003, 0 1px 2px #0009; }
.btn-haupt:active { background: linear-gradient(0deg, #d6b955 0%, var(--gold) 100%); box-shadow: inset 0 2px 4px #0004; }
.btn-zweit { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--rand); }
.btn-zweit:active { background: var(--flaeche-2); }
.btn-warn { background: var(--warn); color: #fff; }
:root[data-thema="dunkel"] .btn-warn { color: #16171a; }
.btn-wahl { background: var(--flaeche); color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--rand); min-height: 72px; font-size: 1.125rem; }
.btn-wahl[aria-pressed="true"] { box-shadow: inset 0 0 0 2.5px var(--tinte); background: var(--flaeche-2); }
.btn[aria-busy="true"] { pointer-events: none; }
.btn[aria-busy="true"] .btn-text { opacity: 0; }
.btn[aria-busy="true"]::after {
  content: ''; position: absolute; width: 1.375rem; height: 1.375rem; border-radius: 50%;
  border: 2.5px solid currentColor; border-right-color: transparent; animation: dreh .7s linear infinite;
}
@keyframes dreh { to { transform: rotate(360deg); } }
.icon-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 0; background: transparent; border-radius: var(--r-m); cursor: pointer; color: var(--tinte); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* ---------- Formulare ---------- */
.feld-stapel { display: grid; gap: .875rem; }
.feld { display: grid; gap: .375rem; }
.feld > span { font-size: .875rem; font-weight: 600; color: var(--tinte-2); }
.feld input, .feld textarea, .suche input {
  width: 100%; font-size: 1rem; padding: .875rem 1rem; min-height: 52px; border-radius: var(--r-m);
  border: 1.5px solid var(--rand); background: var(--flaeche); color: var(--tinte);
}
.feld textarea { resize: vertical; min-height: 5rem; }
.feld:focus-within > span { color: var(--tinte); }
.feld input:focus, .feld textarea:focus, .suche input:focus { outline: none; border-color: var(--tinte); box-shadow: 0 0 0 3px var(--linie); }
.reihe { display: grid; grid-template-columns: auto 1fr; gap: .625rem; }
.haken { display: flex; gap: .75rem; align-items: center; min-height: 52px; padding: .5rem 0; cursor: pointer; font-weight: 600; }
.haken input { width: 1.5rem; height: 1.5rem; accent-color: var(--tinte); flex: none; }

/* ---------- Hauptbildschirm ---------- */
#s-app { display: flex; flex-direction: column; width: min(100%, 30rem); margin-inline: auto; padding-bottom: calc(var(--fuss-h) + 1rem); }
.kopf { display: flex; justify-content: space-between; align-items: flex-start; padding: max(1rem, env(safe-area-inset-top)) 1rem 0 1.25rem; }
.gruss { font-weight: 700; font-size: 1.25rem; margin: .5rem 0 0; }
.datum { color: var(--tinte-2); margin: 0; font-size: .9375rem; }
.netz, .hinweis { margin: .75rem 1rem 0; padding: .75rem 1rem; border-radius: var(--r-m); font-size: .9375rem; }
.netz { background: var(--flaeche-2); }
.hinweis { background: var(--hinweis); display: grid; gap: .625rem; }
.hinweis.warn { background: var(--warn-flaeche); }
.hinweis .btn { min-height: 48px; font-size: 1rem; }
.mitte { padding: 1.5rem 1.25rem 0; flex: 1; }
.titel { font-weight: 700; font-size: 1.125rem; margin: 0 0 .25rem; min-height: 1.6em; }
.titel.neu { animation: titelEin .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes titelEin { from { opacity: 0; transform: translateY(6px); } }
.uhr { display: flex; align-items: baseline; gap: .625rem; }
.uhr-zahl { font-size: clamp(4.25rem, 3rem + 9vw, 6rem); font-weight: 750; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.uhr-einheit { color: var(--tinte-2); font-weight: 600; }
.leiste { position: relative; height: 8px; background: var(--leiste); border-radius: 4px; margin: 1.25rem 0 1.75rem; }
.leiste-voll { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--leiste-voll); border-radius: 4px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.leiste span { position: absolute; left: var(--pos); top: 14px; transform: translateX(-50%); font-size: .75rem; color: var(--tinte-3); font-weight: 600; font-variant-numeric: tabular-nums; }
.leiste span::before { content: ''; position: absolute; left: 50%; top: -14px; width: 2px; height: 8px; background: var(--bg); }
.status { display: flex; gap: .875rem; align-items: center; padding: 1rem 1.125rem; background: var(--flaeche); border-radius: var(--r-g); box-shadow: var(--schatten); border: 1px solid var(--linie); }
.punkt { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px var(--tinte-3); }
.status[data-z="kunde"] .punkt, .status[data-z="unterwegs"] .punkt, .status[data-z="hof"] .punkt { background: var(--laeuft); box-shadow: none; }
.status[data-z="pause"] .punkt { background: var(--pause); box-shadow: none; }
.status-was { font-weight: 700; margin: 0; font-size: 1.0625rem; }
.status-seit { margin: 0; color: var(--tinte-2); font-size: .9375rem; font-variant-numeric: tabular-nums; }
.morgen { margin-top: 1.5rem; }
.morgen h2, .morgen h3 { font-size: .9375rem; color: var(--tinte-2); font-weight: 600; margin-bottom: .5rem; }
.morgen ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.morgen li { display: grid; grid-template-columns: 3.25rem 1fr; gap: .5rem; padding: .625rem 0; border-bottom: 1px solid var(--linie); }
.morgen .zeit { font-weight: 700; font-variant-numeric: tabular-nums; }
.morgen .adr { display: block; color: var(--tinte-2); font-size: .875rem; }
.verlauf { margin-top: 1.25rem; }
.verlauf summary { min-height: 48px; display: flex; align-items: center; gap: .375rem; cursor: pointer; font-weight: 600; color: var(--tinte-2); }
.verlauf ol { list-style: none; margin: 0; padding: 0; }
.verlauf li { display: grid; grid-template-columns: 3.25rem 1fr; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--linie); font-size: .9375rem; }
.verlauf .zeit { font-variant-numeric: tabular-nums; font-weight: 600; }
.verlauf .marker { display: block; font-size: .8125rem; color: var(--tinte-2); }

/* Aktionen – unten in Daumennähe */
.aktionen {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; gap: .625rem; grid-template-columns: 1fr 1fr;
  padding: .875rem max(1rem, calc((100vw - 30rem) / 2 + 1rem)) calc(.875rem + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--linie);
}
.aktionen .btn-haupt { grid-column: 1 / -1; min-height: 64px; font-size: 1.1875rem; }
.aktionen .allein { grid-column: 1 / -1; }

/* ---------- Dialoge (Blätter) ---------- */
dialog.blatt {
  width: min(100%, 32rem); max-width: 100%; max-height: 92dvh; margin: auto auto 0; padding: 1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom));
  border: 0; border-radius: var(--r-g) var(--r-g) 0 0; background: var(--bg); color: var(--tinte); overflow: auto; overscroll-behavior: contain;
}
dialog.blatt-hoch { height: 92dvh; display: none; }
dialog.blatt-hoch[open] { display: flex; flex-direction: column; }
dialog.blatt[open] { animation: blattEin .28s cubic-bezier(.2, .8, .2, 1); }
dialog::backdrop { background: rgba(22, 23, 26, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes blattEin { from { transform: translateY(24px); opacity: 0; } }
.blatt h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; }
.blatt-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.blatt-kopf h2 { margin: 0; }
.x { width: 48px; height: 48px; border: 0; background: transparent; font-size: 1.25rem; cursor: pointer; border-radius: var(--r-m); color: var(--tinte-2); flex: none; }
.blatt-fuss { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .625rem; margin-top: 1.25rem; }
.ds-text { font-size: .9375rem; }
.ds-text h3 { font-size: 1rem; margin: 1.125rem 0 .25rem; }
.ds-text p { margin: .25rem 0; }
.ds-text ul { padding-left: 1.125rem; margin: .25rem 0; }
.ds-text li { margin: .25rem 0; }
/* Textkasten mit Luft und runden Ecken. Der Fokus springt beim Öffnen auf die Überschrift,
   nicht auf den Kasten – sonst zeichnet Chrome seinen Fokusrahmen direkt an die Textkante (Max, 27.10.). */
#f-ds .ds-text { max-height: 52dvh; overflow: auto; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-m); padding: .5rem 1rem 1rem; overscroll-behavior: contain; }
.ds-text:focus, .blatt h2:focus { outline: none; }
.ds-text:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 2px; }

/* Kundenwahl */
.suche input { margin: .25rem 0 .5rem; }
.k-liste { flex: 1; overflow: auto; margin: 0 -1.25rem; padding: 0 1.25rem; overscroll-behavior: contain; }
.k-gruppe { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-2); font-weight: 700; margin: 1rem 0 .25rem; }
.k-ort { display: block; width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--linie); padding: .75rem .25rem; min-height: 56px; cursor: pointer; }
.k-ort:active { background: var(--flaeche-2); }
.k-ort b { display: block; font-weight: 700; }
.k-ort small { display: block; color: var(--tinte-2); font-size: .875rem; }
.k-leer { color: var(--tinte-2); padding: 1rem .25rem; }
.k-neu { border-top: 1px solid var(--linie); padding-top: .5rem; }
.k-neu summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; }

/* Feierabend */
.fa-schritt { display: flex; flex-direction: column; flex: 1; }
.fa-schritt .blatt-fuss { margin-top: auto; padding-top: 1.25rem; }
.bilanz { display: grid; grid-template-columns: 1fr auto; gap: .125rem 1rem; margin: 0; }
.bilanz dt, .bilanz dd { padding: .625rem 0; border-bottom: 1px solid var(--linie); margin: 0; }
.bilanz dd { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.bilanz .summe { font-size: 1.125rem; }
.bilanz .ein { padding-left: .875rem; color: var(--tinte-2); }
.zeiten { list-style: none; margin: 0 0 .25rem; padding: 0; }
.zeiten li { border-bottom: 1px solid var(--linie); }
.zeit-zeile { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .75rem; width: 100%; min-height: 52px; padding: .5rem .25rem; background: none; border: 0; text-align: left; cursor: pointer; }
.zeit-zeile .wert { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.0625rem; }
.zeit-zeile .wert s { color: var(--tinte-3); font-weight: 500; margin-right: .375rem; }
.zeit-zeile small { display: block; color: var(--tinte-2); font-size: .8125rem; }
.zeiten li.geaendert .wert { color: var(--gold-text); }
.stepper { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; align-items: center; padding: 0 0 .75rem; }
.stepper .btn { min-height: 52px; font-size: 1rem; }
.stepper .zeit-ein { font-size: 1.375rem; font-weight: 750; font-variant-numeric: tabular-nums; text-align: center; width: 7.5rem; min-height: 52px; padding: .25rem .5rem; border: 1.5px solid var(--rand); border-radius: var(--r-m); background: var(--flaeche); color: var(--tinte); }
#nachtrag-auf { display: block; margin-top: .5rem; font-size: .9375rem; }
#nt-zeit { font-size: 1.375rem; font-weight: 700; }
.stepper output { font-size: 1.5rem; font-weight: 750; font-variant-numeric: tabular-nums; min-width: 4.5ch; text-align: center; }
.stepper .klein { grid-column: 1 / -1; margin: 0; }
.bilanz .lohn dd, .bilanz .lohn dt { color: var(--tinte-2); font-size: .9375rem; }
.fa-notiz summary { min-height: 48px; display: flex; align-items: center; color: var(--tinte-2); font-weight: 600; cursor: pointer; }
.uhr.vorher .uhr-zahl { font-size: clamp(2.75rem, 2rem + 6vw, 3.75rem); color: var(--tinte-2); }
.reihe-zwei { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem; }
.zeiten li.entfernt .zeit-zeile { color: var(--tinte-3); }
.zeiten .link { margin: -.25rem 0 .5rem; }
.kurz { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-g); padding: 1.25rem; display: grid; gap: .25rem; margin-bottom: .5rem; }
.kurz .spanne { font-size: 1.75rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.kurz .neben { color: var(--tinte-2); }
.kurz .summe-gross { font-size: 1.25rem; font-weight: 700; margin-top: .5rem; font-variant-numeric: tabular-nums; }
.kurz .geaendert-hinweis { font-size: .8125rem; color: var(--gold-text); font-weight: 600; }
.blatt-fuss-stapel { grid-auto-flow: row; justify-items: center; }
.blatt-fuss-stapel .btn { width: 100%; }
.zeit-feld { cursor: pointer; caret-color: transparent; font-variant-numeric: tabular-nums; }
.uhr-raster { display: grid; gap: .375rem; margin-bottom: .75rem; }
.uhr-std { grid-template-columns: repeat(6, 1fr); }
.uhr-min { grid-template-columns: repeat(4, 1fr); }
.uhr-raster button { min-height: 52px; border-radius: var(--r-m); border: 0; box-shadow: inset 0 0 0 1.5px var(--rand); background: var(--flaeche); font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; cursor: pointer; }
.uhr-raster button[aria-checked="true"] { background: var(--tinte); color: var(--bg); box-shadow: none; }
.uhr-ergebnis { font-size: 1.5rem; font-weight: 750; text-align: center; margin: .25rem 0 0; font-variant-numeric: tabular-nums; min-height: 1.5em; }
.rueck { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--fuss-h) + .75rem); z-index: 15; width: min(calc(100vw - 2rem), 28rem);
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .375rem .375rem .375rem 1rem; border-radius: var(--r-m); background: var(--tinte); color: var(--bg); font-weight: 600; font-size: .9375rem; }
.rueck button { min-height: 44px; padding: 0 1rem; border: 0; border-radius: var(--r-k); background: var(--bg); color: var(--tinte); font-weight: 700; cursor: pointer; }
.intro { text-align: left; }
.intro-zaehler { font-size: .8125rem; color: var(--tinte-2); font-weight: 600; margin: 0 0 .75rem; }
.intro-karte h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.intro-karte p { font-size: 1.0625rem; }
.intro-weg { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .375rem; align-items: center; }
.intro-weg li { padding: .5rem .75rem; border-radius: 999px; background: var(--flaeche-2); font-weight: 700; }
.intro-weg li + li::before { content: '→'; margin-right: .375rem; color: var(--tinte-3); }
.intro-knopf { display: grid; place-items: center; min-height: 56px; border-radius: var(--r-g); border: 2px dashed var(--rand); background: var(--flaeche-2); color: var(--tinte-2); font-weight: 700; font-size: 1.0625rem; margin: 0 1.5rem .25rem; }
.intro-bildtext { text-align: center; font-size: .8125rem !important; color: var(--tinte-3); margin: 0 0 1rem; }
.intro-liste { padding-left: 1.125rem; display: grid; gap: .5rem; font-size: 1.0625rem; margin: 0 0 1rem; }
.frage { font-size: 1.375rem; font-weight: 700; line-height: 1.3; margin: .5rem 0 1.5rem; }
.zwei { display: grid; gap: .75rem; }
.wahl { display: grid; gap: .5rem; margin-bottom: .75rem; }
.wahl label { display: flex; gap: .75rem; align-items: center; min-height: 56px; padding: .75rem 1rem; border-radius: var(--r-m); box-shadow: inset 0 0 0 1.5px var(--rand); cursor: pointer; background: var(--flaeche); }
.wahl label:has(:checked) { box-shadow: inset 0 0 0 2.5px var(--tinte); background: var(--flaeche-2); }
.wahl input { width: 1.25rem; height: 1.25rem; accent-color: var(--tinte); flex: none; }
.fa-ende { padding-top: 1rem; }
.fa-gross { font-size: 2.5rem; font-weight: 750; letter-spacing: -.02em; margin: 0 0 .5rem; }

/* Menü */
.feld-titel { font-weight: 600; color: var(--tinte-2); font-size: .875rem; margin: .5rem 0; }
.segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: var(--flaeche-2); border-radius: var(--r-m); }
.segment label { display: grid; place-items: center; min-height: 48px; border-radius: var(--r-k); cursor: pointer; font-weight: 600; font-size: .9375rem; transition: all .18s ease; }
.segment input { position: absolute; opacity: 0; pointer-events: none; }
.segment label:has(:checked) { background: var(--flaeche); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 3px rgba(0, 0, 0, .15); }
.segment label:has(:focus-visible) { outline: 3px solid var(--gold-text); outline-offset: 1px; }
.menue-liste { display: grid; margin: 1.25rem 0 .75rem; }
.zeile { text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--linie); min-height: 56px; padding: .75rem .25rem; font-weight: 600; cursor: pointer; }
.zeile-warn { color: var(--warn); }

/* Toast + Feier */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--fuss-h) + 1rem); transform: translate(-50%, 1rem); z-index: 20;
  background: var(--tinte); color: var(--bg); padding: .75rem 1.125rem; border-radius: var(--r-m); font-weight: 600;
  width: max-content; max-width: calc(100vw - 2rem); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.an { opacity: 1; transform: translate(-50%, 0); }
.feier { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.feier span {
  position: absolute; left: 50%; top: 38%; width: 10px; height: 10px; border-radius: 2px; background: var(--c, #c9a843);
  animation: funke 1.4s cubic-bezier(.15, .7, .3, 1) forwards; animation-delay: var(--d, 0s); opacity: 0;
}
@keyframes funke {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(0); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .feier { display: none; }
  .btn[aria-busy="true"]::after { animation: none; border-right-color: currentColor; opacity: .5; }
}

/* ---------- Kalender (27.10.2026): Monat / Woche / Tag, Urlaub, krank ---------- */
.kopf-knoepfe { display: flex; gap: .25rem; }
:root { --urlaub: #16171a; --auf-urlaub: #faf7f0; --krank: #f6e5e1; --auf-krank: #a33a2b; --wochenende: rgba(22, 23, 26, .035); }
:root[data-thema="dunkel"] { --urlaub: rgba(255, 255, 255, .87); --auf-urlaub: #16171a; --krank: #3a2522; --auf-krank: #f0a596; --wochenende: rgba(255, 255, 255, .025); }
@media (prefers-color-scheme: dark) { :root:not([data-thema="hell"]) { --urlaub: rgba(255, 255, 255, .87); --auf-urlaub: #16171a; --krank: #3a2522; --auf-krank: #f0a596; --wochenende: rgba(255, 255, 255, .025); } }

dialog.vollbild {
  width: 100%; max-width: 32rem; height: 100dvh; max-height: 100dvh; margin: 0 auto; padding: 0; border: 0;
  background: var(--bg); color: var(--tinte); display: none; overscroll-behavior: contain;
}
dialog.vollbild[open] { display: flex; flex-direction: column; animation: blattEin .24s cubic-bezier(.2, .8, .2, 1); }
.kal-kopf { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: .25rem; padding: max(.5rem, env(safe-area-inset-top)) .5rem 0; }
.kal-kopf h2 { font-size: 1.25rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.kal-pfeile { display: flex; }
.kal-pfeile .icon-btn svg { stroke-width: 2.25; }
.kal-ansicht { margin: .5rem 1rem 0; }
.kal-konto { margin: .75rem 1.25rem .25rem; font-size: .9375rem; color: var(--tinte-2); min-height: 1.4em; }
.kal-konto b { color: var(--tinte); font-weight: 700; }
.kal-buehne { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .25rem .75rem 1rem; touch-action: pan-y; }
.kal-buehne > * { animation: kalEin .22s cubic-bezier(.2, .8, .2, 1); }
.kal-buehne.von-rechts > * { --dx: 24px; }
.kal-buehne.von-links > * { --dx: -24px; }
@keyframes kalEin { from { opacity: 0; transform: translateX(var(--dx, 0)); } }
.kal-laedt { padding: 2rem 0; text-align: center; color: var(--tinte-3); }
.kal-fuss { display: grid; gap: .5rem; padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--linie); background: var(--bg); }
.kal-fuss .reihe2 { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.kal-fuss .btn { min-height: 52px; font-size: 1rem; padding-inline: .5rem; white-space: nowrap; }
.kal-kopf h2:focus { outline: none; }
.kal-fuss .kal-info { margin: 0; font-weight: 600; text-align: center; min-height: 1.45em; max-width: none; }

/* Monat */
.kal-wtage { display: grid; grid-template-columns: repeat(7, 1fr); font-size: .75rem; font-weight: 600; color: var(--tinte-3); text-align: center; padding: .25rem 0 .375rem; }
.kal-woche { display: grid; grid-template-columns: repeat(7, 1fr); grid-template-rows: 1.875rem repeat(var(--spuren, 0), 1.25rem) minmax(1.75rem, auto); border-top: 1px solid var(--linie); }
.kal-zelle {
  grid-row: 1 / -1; display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  min-height: 64px; padding: .3rem 0 .35rem; border: 0; background: transparent; cursor: pointer; border-radius: var(--r-k);
  font-variant-numeric: tabular-nums; touch-action: manipulation; position: relative; color: inherit;
}
.kal-zelle.we { background: var(--wochenende); }
.kal-zelle.fremd .kal-nr { color: var(--tinte-3); font-weight: 500; }
.kal-zelle.ft .kal-nr { color: var(--tinte-3); text-decoration: underline dotted; text-underline-offset: 3px; }
.kal-nr { font-size: .9375rem; font-weight: 600; width: 1.75rem; height: 1.75rem; display: grid; place-items: center; border-radius: 50%; margin-top: -.15rem; }
.kal-zelle.heute .kal-nr { background: var(--tinte); color: var(--bg); text-decoration: none; }
.kal-unten { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.kal-punkte { display: flex; gap: 3px; height: 5px; }
.kal-punkte i { width: 5px; height: 5px; border-radius: 50%; background: var(--tinte-2); }
.kal-std { font-size: .6875rem; font-weight: 600; color: var(--tinte-2); line-height: 1; }
.kal-zelle:focus-visible { outline: 3px solid var(--gold-text); outline-offset: -3px; }
.kal-zelle[aria-disabled="true"] { cursor: default; }
.kal-zelle[aria-disabled="true"] .kal-nr { opacity: .35; }
/* Auswahl beim Urlaub eintragen: Gold = das Getippte */
.kal-zelle.sel { background: color-mix(in srgb, var(--gold) 22%, transparent); border-radius: 0; }
.kal-zelle.sel-a { border-radius: var(--r-m) 0 0 var(--r-m); }
.kal-zelle.sel-e { border-radius: 0 var(--r-m) var(--r-m) 0; }
.kal-zelle.sel-a.sel-e { border-radius: var(--r-m); }
.kal-zelle.sel-a .kal-nr, .kal-zelle.sel-e .kal-nr { background: var(--gold); color: var(--auf-gold); }

/* Balken (Urlaub, krank, Kollegen) */
.kal-balken {
  z-index: 1; margin: 1px 2px; padding: 0 .375rem; border-radius: 999px; font-size: .6875rem; font-weight: 700; line-height: calc(1.25rem - 2px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 0; text-align: left; cursor: pointer; min-width: 0; font-family: inherit;
}
.kal-balken.urlaub { background: var(--urlaub); color: var(--auf-urlaub); }
.kal-balken.beantragt { background: transparent; color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--tinte-2); background-image: repeating-linear-gradient(135deg, transparent 0 5px, var(--linie) 5px 7px); }
.kal-balken.krank { background: var(--krank); color: var(--auf-krank); }
.kal-balken.frei { background: var(--flaeche-2); color: var(--tinte); box-shadow: inset 0 0 0 1.5px var(--tinte); }
.kal-balken.abgelehnt { background: transparent; color: var(--tinte-3); text-decoration: line-through; box-shadow: inset 0 0 0 1px var(--linie); }
.kal-balken.kollege { background: var(--flaeche-2); color: var(--tinte-2); font-weight: 600; cursor: default; }
.kal-balken.kollege.ausfall { color: var(--tinte); box-shadow: inset 0 0 0 1px var(--rand); }
.kal-balken.eins { padding: 0; text-align: center; font-size: .625rem; letter-spacing: -.01em; text-overflow: clip; }
.kal-balken.l { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: 0; }
.kal-balken.r { border-top-right-radius: 0; border-bottom-right-radius: 0; margin-right: 0; }
.kal-balken:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 1px; }
.kal-legende { display: flex; flex-wrap: wrap; gap: .375rem .875rem; padding: .875rem .25rem 0; font-size: .75rem; color: var(--tinte-2); }
.kal-legende span { display: inline-flex; align-items: center; gap: .375rem; }
.kal-legende .kal-balken { display: inline-block; width: 1.5rem; height: .75rem; padding: 0; margin: 0; cursor: default; }

/* Woche + Tag */
.kal-summe { display: flex; justify-content: space-between; align-items: baseline; padding: .5rem .5rem .75rem; font-size: .9375rem; color: var(--tinte-2); }
.kal-summe b { font-size: 1.125rem; color: var(--tinte); font-variant-numeric: tabular-nums; }
.kal-wliste { list-style: none; margin: 0; padding: 0; }
.kal-wtag { display: grid; grid-template-columns: 3.25rem 1fr auto; gap: .75rem; width: 100%; text-align: left; align-items: start; padding: .875rem .5rem; border: 0; border-top: 1px solid var(--linie); background: transparent; cursor: pointer; min-height: 64px; color: inherit; }
.kal-wtag.we { background: var(--wochenende); }
.kal-wtag .kal-datum { display: grid; line-height: 1.1; }
.kal-wtag .kal-datum small { font-size: .75rem; font-weight: 600; color: var(--tinte-3); text-transform: uppercase; letter-spacing: .04em; }
.kal-wtag .kal-datum b { font-size: 1.375rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kal-wtag.heute .kal-datum b { color: var(--gold-text); }
.kal-wtag .kal-inhalt { display: grid; gap: .25rem; min-width: 0; font-size: .9375rem; }
.kal-wtag .kal-inhalt .leer { color: var(--tinte-3); }
.kal-termin { display: flex; gap: .5rem; min-width: 0; }
.kal-termin time { font-variant-numeric: tabular-nums; color: var(--tinte-2); flex: none; }
.kal-termin span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kal-wtag .kal-std { font-size: .9375rem; font-weight: 700; color: var(--tinte); padding-top: .2rem; }
.kal-wtag .kal-balken { display: inline-block; justify-self: start; max-width: 100%; font-size: .75rem; line-height: 1.375rem; margin: 0; cursor: inherit; }
.kal-tag h3 { font-size: 1.25rem; margin: .5rem .25rem .25rem; }
.kal-tag .kal-ft { margin: .5rem .25rem 0; color: var(--tinte-2); }
.kal-karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--r-g); padding: 1rem 1.125rem; margin: .75rem 0; box-shadow: var(--schatten); }
.kal-karte h4 { margin: 0 0 .5rem; font-size: .8125rem; font-weight: 700; color: var(--tinte-2); text-transform: uppercase; letter-spacing: .06em; }
.kal-karte p { margin: .25rem 0; }
.kal-karte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .625rem; }
.kal-karte li small { display: block; color: var(--tinte-2); font-size: .8125rem; }
.kal-karte .btn { margin-top: .75rem; width: 100%; min-height: 48px; font-size: 1rem; }
.kal-zahlen { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; }
.kal-zahlen div { display: grid; }
.kal-zahlen dt { font-size: .75rem; color: var(--tinte-2); font-weight: 600; }
.kal-zahlen dd { margin: 0; font-size: 1.125rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.kal-buehne.waehlen .kal-balken { pointer-events: none; opacity: .55; }
.kal-status { display: inline-block; font-size: .75rem; font-weight: 700; padding: .125rem .5rem; border-radius: 999px; background: var(--flaeche-2); margin-left: .375rem; vertical-align: 1px; }
