/* ==========================================================================
   Feelege Team: Designsystem v3 (29.10.2026). Gehört dem Gerüst (zeit/BAU.md).
   Verbindliches Regelwerk: DESIGN-V3.md (Leitgedanke, Bausteine mit HTML, Blockregel, Größenbudget).
   Bereiche schreiben eigene Regeln in static/zeit/<bereich>.css und nutzen hier nur Variablen und Bausteine.
   Eingebunden mit ?v=r33 (die Sicherheitsprüfung verlangt genau die Version aus kontext.VERSION, BAU.md 1).

   Leitgedanke: Hellgrauer Grund, weiße Flächen, eine Sache je Block. Die Stempeluhr zeigt den Zustand als
   Farbe der Zustandsfläche (Weiß bereit, Himmel unterwegs, Lila bei der Arbeit, Grau angehalten, Bernstein
   klären, Grün hell erledigt). Der eine dunkle Knopf sitzt immer an derselben Stelle unten im Daumenbereich.
   Alles Seltene liegt in einem Blatt, lange Seiten werden mit Reitern geteilt.

   Marke: Dunkelblau #15193F, BabyBlau #E7F6FD, Lila #CABDE1, Lila hell #F1EDF8, Lavendel #F7F5FC,
   Himmel #A8DBF3, Nacht #2A2566, Hellgrau #FAFAFA, Rand #E4E7F0. Nebentexte Blaugrau #5A607A (mindestens 4,5:1
   auf jedem Grund, auf dem sie stehen). Grün nur für erledigt, Rot nur für echte Warnungen, Bernstein für klären.
   Hell ist Standard. Dunkel nur über die Einstellung (data-farbe="dunkel" oder "auto" am html).
   Drei Schriftgrößen über data-schrift="normal | gross | sehr-gross" am html.
   ========================================================================== */

/* DM Sans, selbst gehostet (keine Google Fonts). Lizenz: core/static/core/fonts/OFL.txt */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../core/fonts/dm-sans-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../core/fonts/dm-sans-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../core/fonts/dm-sans-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../core/fonts/dm-sans-latin-500-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../core/fonts/dm-sans-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../core/fonts/dm-sans-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* --------------------------------------------------------------------------
   1. Farben und Maße (Kontraste in DESIGN-V3.md Abschnitt 3, alle gemessen)
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  /* Flächen */
  --grund: #F3F4F7;          /* Seitengrund Hellgrau */
  --flaeche: #ECEEF3;        /* Zweitknöpfe in Karten, Symbolkacheln, Kreise */
  --spur: #E7E9EF;           /* Spur der Reiter auf dem Grund (Nebentext darauf 5,1:1) */
  --karte: #FFFFFF;          /* Karten, Blätter, Leiste, Aktionskarte */
  --karte-rand: rgba(21, 25, 63, 0.04);
  --rand: #E4E7F0;           /* Trennlinien */
  --rand-knopf: #7A7F9E;     /* Ränder, die etwas Bedienbares zeigen: 3,9:1 auf Weiß, 3,6:1 auf dem Grund */
  --hell: #FAFAFA;           /* Marke Hellgrau: Druck auf Zeilen */
  /* Schrift */
  --ink: #15193F;            /* 16,9:1 auf Weiß, 15,4:1 auf dem Grund */
  --neben: #5A607A;          /* Nebentexte: 6,2:1 Weiß, 5,6:1 Grund, 5,3:1 Fläche, 5,1:1 Spur */
  --auf-dunkel: #FFFFFF;
  /* Marke */
  --babyblau: #E7F6FD;
  --lila-hell: #F1EDF8;
  --lavendel: #F7F5FC;
  --lila: #CABDE1;
  --himmel: #A8DBF3;
  --nacht: #2A2566;
  /* Bedeutung: Grün erledigt, Rot echte Warnung, Bernstein klären */
  --ok: #1E9E57;  --ok-hell: #E6F6EC;  --ok-ink: #157A43;
  --warn: #E8A400; --warn-hell: #FFF1CC;
  --bad: #B42318; --bad-hell: #FBEAEA;
  --bad-ink: #B42318;        /* rote Schrift: 6,6:1 auf Weiß, 5,7:1 auf --bad-hell */
  /* Knöpfe */
  --knopf: #15193F;
  --knopf-ink: #FFFFFF;
  --zweit-bg: var(--karte);          /* Kreis eines Symbolknopfs auf dem Grund: weiß mit Schatten */
  --leiste-bg: #FFFFFF;
  --leiste-aktiv: #ECE7F6;
  --reiter-an: #FFFFFF;              /* gewählter Reiter auf der Spur */
  --z-etikett: rgba(255, 255, 255, 0.55);  /* Etikett und Symbolkreis auf einer Zustandsfläche */
  /* Zustandsfarben der Stempeluhr: Fläche und Nebenschrift (Schrift immer --z-ink) */
  --z-ink: #15193F;
  --z-bereit: #FFFFFF;   --z-bereit-neben: #5A607A;   /* 6,2:1 */
  --z-fahrt: #A8DBF3;    --z-fahrt-neben: #2E3A63;    /* 7,4:1, Schrift 11,3:1 */
  --z-besuch: #CABDE1;   --z-besuch-neben: #3A3560;   /* 6,4:1, Schrift 9,6:1 */
  --z-privat: #E2E4EB;   --z-privat-neben: #4A4F6A;   /* 6,3:1, Schrift 13,3:1 */
  --z-klaeren: #F5C04A;  --z-klaeren-neben: #454036;  /* 6,1:1, Schrift 10,1:1 */
  --z-klaeren-ink: #15193F;
  --z-fertig: #DDF3E5;   --z-fertig-neben: #3D4260;   /* 8,4:1 */
  /* Schatten, Schleier, Fokus */
  --schatten-1: 0 1px 2px rgba(21, 25, 63, 0.05), 0 4px 14px rgba(21, 25, 63, 0.04);
  --schatten-2: 0 2px 6px rgba(21, 25, 63, 0.06), 0 12px 32px rgba(21, 25, 63, 0.10);
  --schatten-3: 0 -8px 32px rgba(21, 25, 63, 0.14);
  --schleier: rgba(21, 25, 63, 0.45);
  --fokus: #15193F;

  /* Schrift: nie unter 14 px, alle Stufen wachsen mit --skala */
  --skala: 1;
  --t-zahl: calc(72px * var(--skala));          /* die eine große Zahl der Zustandsfläche */
  --t-zahl-mittel: calc(44px * var(--skala));   /* Monatsstunden */
  --t-titel: calc(28px * var(--skala));         /* Seitentitel im Kopf */
  --t-frage: calc(26px * var(--skala));         /* Frage im Schritt-Blatt */
  --t-ueberschrift: calc(22px * var(--skala));  /* Zustandstitel, Blatt-Titel */
  --t-knopf: calc(18px * var(--skala));
  --t-gross: calc(18px * var(--skala));         /* Kartentitel, Wahlzeilen, Abschnitte */
  --t-text: calc(17px * var(--skala));
  --t-neben: calc(15px * var(--skala));
  --t-klein: calc(14px * var(--skala));

  /* Abstände (4er Raster) */
  --a-1: 4px; --a-2: 8px; --a-3: 12px; --a-4: 16px; --a-5: 20px; --a-6: 24px; --a-8: 32px;
  --rand-seite: 16px;
  /* Radien */
  --r-gross: 28px;       /* Zustandsfläche, Aktionskarte, Blatt */
  --r-karte: 20px;
  --r-knopf: 18px;       /* Hauptknopf, Stempelknopf */
  --r-zweit: 16px;       /* Zweitknopf, Wahlzeilen, Bänder */
  --r-klein: 12px;       /* Symbolkachel */
  --radius-feld: 14px;
  /* Höhen */
  --h-stempel: 72px;
  --knopf-haupt-hoehe: 64px;
  --knopf-zweit-hoehe: 56px;
  --h-leiste: 68px;
  --tippflaeche: 48px;
  --breite: 600px;
  --oben: env(safe-area-inset-top, 0px);
  --unten: env(safe-area-inset-bottom, 0px);
  /* Abstand der Aktionskarte und des Seitenendes über der Leiste: Leiste 68 + Luft 12 + Abstand 12 */
  --ueber-leiste: calc(var(--unten) + 92px);
}

:root[data-schrift="gross"] { --skala: 1.15; }
:root[data-schrift="sehr-gross"] { --skala: 1.3; }

/* Dunkel nur auf Wunsch: „Dunkel“ immer, „Automatisch wie das Handy“ nur bei dunklem Handy. „Hell“ (Standard) nie. */
@media (prefers-color-scheme: dark) {
  :root:not([data-farbe="hell"]) {
    color-scheme: dark;
    --grund: #0E1030; --flaeche: #23264A; --spur: #1B1E44; --karte: #181B3D; --karte-rand: #2C3058;
    --rand: #2C3058; --rand-knopf: #7A80B8; --hell: #1F2350;
    --ink: #FFFFFF; --neben: #B8BDD9;
    --babyblau: #1D2856; --lila-hell: #2A2858; --lavendel: #1F2350; --lila: #CABDE1; --himmel: #A8DBF3;
    --ok: #22A55E; --ok-hell: #173A33; --ok-ink: #7FD9A6; --warn: #F2B630; --warn-hell: #3A3220;
    --bad: #B42318; --bad-hell: #3A1F33; --bad-ink: #F28B82;
    --knopf: #E7F6FD; --knopf-ink: #15193F; --leiste-bg: #181B3D; --leiste-aktiv: #2A2858; --reiter-an: #2C3058; --z-etikett: rgba(255, 255, 255, 0.14);
    --z-ink: #FFFFFF;
    --z-bereit: #181B3D; --z-bereit-neben: #B8BDD9;
    --z-fahrt: #1F4A63;  --z-fahrt-neben: #C9CDE3;
    --z-besuch: #3A3170; --z-besuch-neben: #C9CDE3;
    --z-privat: #2B2E45; --z-privat-neben: #C9CDE3;
    --z-klaeren: #F2B630; --z-klaeren-neben: #454036; --z-klaeren-ink: #15193F;
    --z-fertig: #173A33; --z-fertig-neben: #C9CDE3;
    --schatten-1: 0 1px 2px rgba(0, 0, 0, 0.3); --schatten-2: 0 10px 30px rgba(0, 0, 0, 0.4);
    --schatten-3: 0 -8px 32px rgba(0, 0, 0, 0.5);
    --schleier: rgba(4, 6, 20, 0.6); --fokus: #A8DBF3;
  }
}
:root[data-farbe="dunkel"] {
  color-scheme: dark;
  --grund: #0E1030; --flaeche: #23264A; --spur: #1B1E44; --karte: #181B3D; --karte-rand: #2C3058;
  --rand: #2C3058; --rand-knopf: #7A80B8; --hell: #1F2350;
  --ink: #FFFFFF; --neben: #B8BDD9;
  --babyblau: #1D2856; --lila-hell: #2A2858; --lavendel: #1F2350; --lila: #CABDE1; --himmel: #A8DBF3;
  --ok: #22A55E; --ok-hell: #173A33; --ok-ink: #7FD9A6; --warn: #F2B630; --warn-hell: #3A3220;
  --bad: #B42318; --bad-hell: #3A1F33; --bad-ink: #F28B82;  /* rote Schrift dunkel: 7,0:1 auf der Karte */
  --knopf: #E7F6FD; --knopf-ink: #15193F; --leiste-bg: #181B3D; --leiste-aktiv: #2A2858; --reiter-an: #2C3058; --z-etikett: rgba(255, 255, 255, 0.14);
  --z-ink: #FFFFFF;
  --z-bereit: #181B3D; --z-bereit-neben: #B8BDD9;
  --z-fahrt: #1F4A63;  --z-fahrt-neben: #C9CDE3;
  --z-besuch: #3A3170; --z-besuch-neben: #C9CDE3;
  --z-privat: #2B2E45; --z-privat-neben: #C9CDE3;
  --z-klaeren: #F2B630; --z-klaeren-neben: #454036; --z-klaeren-ink: #15193F;
  --z-fertig: #173A33; --z-fertig-neben: #C9CDE3;
  --schatten-1: 0 1px 2px rgba(0, 0, 0, 0.3); --schatten-2: 0 10px 30px rgba(0, 0, 0, 0.4);
  --schatten-3: 0 -8px 32px rgba(0, 0, 0, 0.5);
  --schleier: rgba(4, 6, 20, 0.6); --fokus: #A8DBF3;
}

/* --------------------------------------------------------------------------
   2. Grundlagen
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--grund); }
body.zeit {
  margin: 0;
  min-height: 100vh;
  background: var(--grund);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--t-text);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* Grundregeln ohne Gewicht (:where), damit jede Klasse sie überschreibt */
:where(.zeit) :where(h1, h2, h3, p) { margin: 0; }
:where(.zeit) :where(a) { color: inherit; }
:where(.zeit) :where(img, svg) { display: block; }
:where(.zeit) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.zeit :focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; }
.zahl, .zeit .tabellarisch, .wert { font-variant-numeric: tabular-nums; }
.fett { font-weight: 600; }
.gedaempft { color: var(--neben); }

.sprung {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--knopf); color: var(--knopf-ink);
  font-weight: 600; text-decoration: none;
}
.sprung:focus { top: calc(var(--oben) + 8px); }
.nur-leser {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.sym { width: 22px; height: 22px; flex: none; }
.sym-klein { width: 18px; height: 18px; }
.sym-gross { width: 26px; height: 26px; }

/* --------------------------------------------------------------------------
   3. Seite: Handy zuerst, am Schreibtisch höchstens --breite breit und mittig.
   Die Seite ist mindestens so hoch wie der Bildschirm, damit die Aktionskarte (margin-top: auto) unten sitzt.
   -------------------------------------------------------------------------- */
.seite {
  width: 100%;
  max-width: var(--breite);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(var(--oben) + 8px) var(--rand-seite) calc(var(--unten) + 32px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.seite.mit-leiste { padding-bottom: var(--ueber-leiste); }
/* Unterseiten ohne Leiste (Block leiste leer): Klasse ohne-leiste im Block seite_klasse. Fehlt sie, merkt es :has
   trotzdem (die Leiste steht im HTML direkt nach .seite). Die Aktionskarte sitzt dann ganz unten. */
.seite.ohne-leiste, .seite.mit-leiste:not(:has(~ .leiste)) { padding-bottom: calc(var(--unten) + 24px); }
.hauptbereich { flex: 1; display: flex; flex-direction: column; gap: 16px; outline: none; min-width: 0; }
@media (min-width: 720px) { .seite { padding-top: calc(var(--oben) + 24px); } }

.stapel { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.stapel-eng { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stapel-weit { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.reihe { display: flex; align-items: center; gap: 12px; min-width: 0; }
.reihe-zwischen { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.reihe-umbruch { display: flex; flex-wrap: wrap; gap: 8px; }
.raster-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.raster-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wachsen { flex: 1; min-width: 0; }

/* Text */
.titel { font-size: var(--t-titel); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; text-wrap: balance; }
.untertitel { font-size: var(--t-neben); line-height: 1.4; color: var(--neben); }
.abschnitt-titel { font-size: var(--t-gross); line-height: 1.3; font-weight: 600; }
.abschnitt-zahl {
  display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 8px;
  border-radius: 999px; background: var(--spur); color: var(--ink); font-size: var(--t-klein); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.abschnitt-zahl-rot { background: var(--bad); color: #FFFFFF; }
.text { font-size: var(--t-text); line-height: 1.45; }
.klein { font-size: var(--t-neben); line-height: 1.4; }
.mini { font-size: var(--t-klein); line-height: 1.35; }
.kopfgruppe { display: flex; flex-direction: column; gap: 2px; }
.abschnitt { display: flex; flex-direction: column; gap: 10px; }
.abschnitt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px; min-height: 32px; }
.textlink {
  display: inline-flex; align-items: center; min-height: var(--tippflaeche);
  font-size: var(--t-neben); font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}

/* Zahl mit kleiner, gedämpfter Einheit: <span class="wert">44<span class="wert-einheit">Min</span></span> */
.wert { font-weight: 600; white-space: nowrap; }
.wert-einheit { font-size: max(0.78em, var(--t-klein)); font-weight: 500; color: var(--neben); margin-left: 3px; }

/* --------------------------------------------------------------------------
   4. Kopf: links Seitentitel oder Datum, rechts höchstens ein Symbolknopf und die Glocke.
   „Ich“ steht in der Leiste (nur ohne Leiste als Kürzel oben). Unterseiten: runder Zurück-Knopf.
   -------------------------------------------------------------------------- */
.kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.kopf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kopf-titel { font-size: var(--t-titel); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.kopf-neben { font-size: var(--t-neben); line-height: 1.35; color: var(--neben); }
.kopf-datum { font-size: var(--t-gross); line-height: 1.3; font-weight: 600; }
.kopf-knoepfe { flex: none; display: flex; align-items: center; gap: 8px; }
.ich { display: inline-flex; flex: none; text-decoration: none; border-radius: 999px; }
.ich-kreis {
  width: 48px; height: 48px; border-radius: 999px; background: var(--lila-hell); color: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 600;
}
.glocke, .rund-knopf {
  position: relative; flex: none; width: 48px; height: 48px; border-radius: 999px;
  border: 0; background: var(--karte); color: var(--ink); box-shadow: var(--schatten-1);
  display: inline-flex; align-items: center; justify-content: center; padding: 0; margin: 0;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
}
/* In Karten und Blättern: Hellgrau statt Weiß mit Schatten */
:is(.karte, .blatt, .aktion, .zustand, .liste-karte) .rund-knopf { background: var(--flaeche); box-shadow: none; }
/* Punkt statt Zahl: dunkel, wenn etwas Neues da ist, rot nur, wenn etwas zu tun ist */
.glocke-punkt {
  position: absolute; top: 11px; right: 12px; width: 10px; height: 10px; border-radius: 999px;
  background: var(--ink); box-shadow: 0 0 0 2px var(--karte);
}
.glocke-rot .glocke-punkt { background: var(--bad); }
.kopf-unterseite { justify-content: flex-start; }
.kopf-zurueck-text { flex: 1; min-width: 0; font-size: var(--t-text); font-weight: 600; color: var(--neben); line-height: 1.25; }
.marke { font-size: 20px; line-height: 1.2; font-weight: 600; letter-spacing: -0.2px; }
.marke-zusatz { font-weight: 500; }

/* --------------------------------------------------------------------------
   5. Zustandsfläche der Stempeluhr: eine ruhige Farbfläche, ihr Ton zeigt den Zustand.
   Inhalt höchstens: Etikett oder Symbol (optional), Titel, eine Zahl, eine Nebenzeile. Keine Knöpfe darin.
   data-zustand: bereit | fahrt | heim | besuch | ort | privat | klaeren | warten | fertig
   -------------------------------------------------------------------------- */
.zustand {
  --zf: var(--z-bereit); --zf-ink: var(--z-ink); --zf-neben: var(--z-bereit-neben);
  background: var(--zf); color: var(--zf-ink);
  border-radius: var(--r-gross); padding: 20px 20px 24px; min-height: 232px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  text-align: center; box-shadow: var(--schatten-1);
  transition: background-color 0.4s ease, color 0.4s ease;
}
.zustand[data-zustand="fahrt"], .zustand[data-zustand="heim"] { --zf: var(--z-fahrt); --zf-neben: var(--z-fahrt-neben); box-shadow: none; }
.zustand[data-zustand="besuch"], .zustand[data-zustand="ort"] { --zf: var(--z-besuch); --zf-neben: var(--z-besuch-neben); box-shadow: none; }
.zustand[data-zustand="privat"] { --zf: var(--z-privat); --zf-neben: var(--z-privat-neben); box-shadow: none; }
.zustand[data-zustand="klaeren"], .zustand[data-zustand="warten"] {
  --zf: var(--z-klaeren); --zf-ink: var(--z-klaeren-ink); --zf-neben: var(--z-klaeren-neben); box-shadow: none;
  --z-etikett: rgba(255, 255, 255, 0.55);
}
/* Auf der Stempeluhr füllt die Zustandsfläche den Platz bis zur Aktionskarte (kein leerer Grund dazwischen) */
.hauptbereich > .zustand, .hauptbereich > .reiter-feld:has(> .zustand), .reiter-feld > .zustand { flex: 1 1 auto; }
.zustand[data-zustand="fertig"] { --zf: var(--z-fertig); --zf-neben: var(--z-fertig-neben); box-shadow: none; }
.zustand :focus-visible { outline-color: var(--zf-ink); }
.zustand-etikett {
  display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 14px 0 12px;
  border-radius: 999px; background: var(--z-etikett); color: var(--zf-ink);
  font-size: var(--t-klein); font-weight: 600; margin-bottom: 4px;
}
.zustand-symbol {
  width: 56px; height: 56px; border-radius: 999px; background: var(--z-etikett); color: var(--zf-ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 4px;
}
:is(.zustand[data-zustand="bereit"], .zustand:not([data-zustand])) :is(.zustand-etikett, .zustand-symbol) { background: var(--flaeche); }
.zustand-symbol .sym { width: 28px; height: 28px; }
.zustand-titel { font-size: var(--t-ueberschrift); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; overflow-wrap: anywhere; }
.zustand-zahl {
  display: flex; align-items: baseline; justify-content: center; gap: 8px; flex-wrap: wrap;
  font-size: var(--t-zahl); line-height: 1; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums;
  margin: 2px 0;
}
.zustand-vor, .zustand-einheit { font-size: calc(24px * var(--skala)); font-weight: 500; letter-spacing: 0; }
.zustand-neben { font-size: var(--t-neben); line-height: 1.4; color: var(--zf-neben); overflow-wrap: anywhere; text-wrap: balance; }
/* Praxistest 2 (G43): „Wartet auf Bestätigung“ in der Zustandsfläche, dieselbe gestrichelte Marke wie unter „Heute“ */
.zustand-wartet { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0; font-size: var(--t-neben); color: var(--zf-neben); }
.zustand-wartet .kreis-offen { display: inline-block; width: 14px; height: 14px; border-radius: 999px; border-color: currentColor; }
/* Ruhiger Punkt „Zeit läuft“ (ohne Bewegung bei reduzierter Bewegung) */
.laeuft { position: relative; width: 10px; height: 10px; border-radius: 999px; background: currentColor; flex: none; }
.laeuft::after {
  content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 2px solid currentColor; opacity: 0;
  animation: laeuft 2.4s ease-out infinite;
}
@keyframes laeuft { 0% { transform: scale(0.5); opacity: 0.6; } 80%, 100% { transform: scale(1.4); opacity: 0; } }
/* Kleine Handys (iPhone SE, 667 px hoch): Zahl kleiner, Fläche ohne Mindesthöhe, damit Knopf und Zustand passen */
@media (max-height: 700px) {
  :root { --t-zahl: calc(56px * var(--skala)); }
  .zustand { min-height: 0; padding: 16px 16px 18px; gap: 4px; }
  .zustand-symbol { width: 44px; height: 44px; }
}

/* --------------------------------------------------------------------------
   6. Aktionskarte: im Daumenbereich direkt über der Leiste, immer an derselben Stelle.
   Inhalt von oben: optional Rückgängig-Streifen, optional ein Hinweis, der Stempelknopf, eine Zweitreihe.
   Sie wächst nach oben, der Stempelknopf bleibt stehen.
   -------------------------------------------------------------------------- */
.aktion {
  margin-top: auto; position: sticky; bottom: var(--ueber-leiste); z-index: 20;
  background: var(--karte); border-radius: var(--r-gross); padding: 12px;
  box-shadow: var(--schatten-2); display: flex; flex-direction: column; gap: 10px;
}
.seite:not(.mit-leiste) .aktion, .seite.ohne-leiste .aktion, .seite.mit-leiste:not(:has(~ .leiste)) .aktion { bottom: calc(var(--unten) + 16px); }
/* Praxistest 2 (G13): eine Karte ohne Stempelknopf (nach „Tag so abschicken“ nur noch „Dein Tag“ und „Mehr“) klebt nicht
   über der Liste, sonst verdeckt sie „Etwas nachtragen“ und die letzten Zeilen von „Heute“ */
#stempel-bereich .aktion:not(:has(.knopf-stempel)) { position: static; }
.aktion-hinweis { font-size: var(--t-neben); line-height: 1.35; color: var(--neben); padding: 2px 6px 0; overflow-wrap: anywhere; }
.zweitreihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.zweitreihe-eins { grid-template-columns: minmax(0, 1fr); }
/* Drei Zweitknöpfe (nur Fahrt und Besuch: Route oder Notiz, Patient, Mehr): Symbol über dem Wort */
.zweitreihe-drei { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.zweitreihe-drei :is(.knopf-zweit, .knopf-klein) { flex-direction: column; gap: 2px; min-height: 64px; padding: 6px 4px; font-size: var(--t-neben); }
/* Rückgängig-Streifen: bleibt stehen, solange Zurücknehmen erlaubt ist (data-ablauf, zeit.js blendet ihn danach aus) */
.rueck-streifen {
  display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 4px 4px 4px 10px;
  border-radius: var(--r-zweit); background: var(--ok-hell); color: var(--ink);
  font-size: var(--t-neben); font-weight: 600; line-height: 1.3;
  animation: streifen-ein 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rueck-haken {
  width: 24px; height: 24px; border-radius: 999px; background: var(--ok); color: #FFFFFF; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.rueck-haken .sym { width: 15px; height: 15px; }
.rueck-text { flex: 1; min-width: 0; text-wrap: balance; }
.rueck-knopf {
  flex: none; min-height: 44px; padding: 0 12px; margin: 0; border: 0; border-radius: 12px;
  background: var(--karte); color: var(--ink); font-size: var(--t-neben); font-weight: 600; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; touch-action: manipulation;
}
@keyframes streifen-ein { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* --------------------------------------------------------------------------
   7. Knöpfe. Eine Art Hauptknopf (dunkel), eine Art Zweitknopf (Hellgrau in Flächen, weiß mit Rand auf dem
   Grund), ein Gefahrknopf. Jede Tippfläche mindestens 48 px. Beim Antippen 0,98.
   -------------------------------------------------------------------------- */
.knopf-haupt, .knopf-zweit, .knopf-gefahr, .knopf-klein, .knopf-link, .knopf-text {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  margin: 0; font-weight: 600; text-align: center; text-decoration: none; line-height: 1.2;
  cursor: pointer; touch-action: manipulation; transition: transform 0.1s ease, opacity 0.15s ease, background-color 0.15s ease;
}
.knopf-haupt {
  min-height: var(--knopf-haupt-hoehe); padding: 10px 22px; border: 0; border-radius: var(--r-knopf);
  background: var(--knopf); color: var(--knopf-ink); font-size: var(--t-knopf);
}
/* Der Stempelknopf: ganze Breite, 72 px, immer dunkel, Text in Ich-Form */
.knopf-stempel { width: 100%; min-height: var(--h-stempel); font-size: calc(20px * var(--skala)); }
.knopf-stempel .sym { width: 26px; height: 26px; }
/* Zweitknopf auf dem Grund: weiß mit Rand (3:1, Fund „Zweitknöpfe mit Kontrast“) */
.knopf-zweit {
  min-height: var(--knopf-zweit-hoehe); padding: 8px 18px; border-radius: var(--r-zweit);
  background: var(--karte); border: 2px solid var(--rand-knopf);
  color: var(--ink); font-size: var(--t-text);
}
/* In Flächen (Karte, Aktionskarte, Blatt, Liste) Hellgrau ohne Rand: die Fläche ist die Grenze.
   Auf getönten Flächen (Lila hell, BabyBlau, Bernstein hell, Grün hell, Band) ist der Zweitknopf weiß. */
:is(.karte, .aktion, .blatt, .liste-karte, .leer, .band) :is(.knopf-zweit, .knopf-klein) { background: var(--flaeche); border-color: transparent; }
:is(.karte-lila, .karte-babyblau, .karte-warn, .karte-ok, .karte-fehler, .band, .fehler-zustand) :is(.knopf-zweit, .knopf-klein) { background: var(--karte); border-color: transparent; }
.knopf-gefahr {
  min-height: var(--knopf-zweit-hoehe); padding: 8px 18px; border: 0; border-radius: var(--r-zweit);
  background: var(--bad); color: #FFFFFF; font-size: var(--t-text);
}
.knopf-klein {
  min-height: var(--tippflaeche); padding: 0 16px; border-radius: 14px; border: 2px solid var(--rand-knopf);
  background: var(--karte); color: var(--ink); font-size: var(--t-neben);
}
.knopf-link {
  min-height: var(--tippflaeche); padding: 0 8px; border: 0; background: transparent; color: var(--ink);
  font-size: var(--t-text); text-decoration: underline; text-underline-offset: 3px;
}
/* Textknopf: ohne Fläche, für „Alle ansehen“ neben Überschriften */
.knopf-text {
  min-height: var(--tippflaeche); padding: 0 10px; border: 0; border-radius: 12px; background: transparent;
  color: var(--ink); font-size: var(--t-neben); text-decoration: underline; text-underline-offset: 3px;
}
.knopf-breit { width: 100%; }
.knopf-reihe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.knopf-haupt:active, .knopf-zweit:active, .knopf-gefahr:active, .knopf-klein:active, .knopf-link:active,
.knopf-text:active, .chip:active, .leiste-punkt:active, .rund-knopf:active, .glocke:active, .symbolknopf:active,
.reiter-knopf:active, .antwort:active, .zeitwahl-knopf:active, .rueck-knopf:active { transform: scale(0.98); }
.knopf-haupt:disabled, .knopf-zweit:disabled, .knopf-gefahr:disabled, .knopf-klein:disabled { cursor: default; opacity: 0.5; }
/* Doppeltipp-Sperre (zeit.js, data-sperre): 1,5 Sekunden nach einem Stempeln nimmt kein Stempelknopf einen Tipp an */
[data-gesperrt] { pointer-events: none; opacity: 0.72; }

/* Symbolknopf: runder Kreis mit Symbol, das Wort steht immer darunter (nie nur ein Bild) */
.symbolknoepfe { display: flex; justify-content: space-around; gap: 8px; }
.symbolknopf {
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px; min-width: 72px; padding: 0;
  margin: 0; border: 0; background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
  font-size: var(--t-klein); font-weight: 600; line-height: 1.2; touch-action: manipulation;
}
.symbolknopf-kreis {
  width: 56px; height: 56px; border-radius: 999px; background: var(--zweit-bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--schatten-1);
}
:is(.karte, .aktion, .blatt, .liste-karte) .symbolknopf-kreis { background: var(--flaeche); box-shadow: none; }

/* --------------------------------------------------------------------------
   8. Karten und Listen
   -------------------------------------------------------------------------- */
.karte {
  border-radius: var(--r-karte); border: 1px solid var(--karte-rand); background: var(--karte);
  box-shadow: var(--schatten-1); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.karte-titel { font-size: var(--t-gross); line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.karte-neben { font-size: var(--t-neben); line-height: 1.4; color: var(--neben); overflow-wrap: anywhere; }
.karte-flach { box-shadow: none; }
.karte-dicht { padding: 4px 16px; gap: 0; }
.karte-babyblau { background: var(--babyblau); border-color: transparent; box-shadow: none; }
.karte-lila { background: var(--lila-hell); border-color: transparent; box-shadow: none; }
.karte-warn { background: var(--warn-hell); border-color: transparent; box-shadow: inset 4px 0 0 var(--warn); }
.karte-fehler { background: var(--bad-hell); border: 2px solid var(--bad); box-shadow: none; }
.karte-ok { background: var(--ok-hell); border-color: transparent; box-shadow: none; }
/* Dringend: weiße Karte mit rotem Rand (Eingang, Team) */
.karte-dringend, .liste-karte.karte-dringend { box-shadow: inset 0 0 0 2px var(--bad), var(--schatten-1); }
.karte-druck { color: inherit; text-decoration: none; }
.karte-druck:active { background: var(--hell); }

/* Listenkarte: weiße Karte, Zeilen mit Trennlinie */
.liste-karte {
  background: var(--karte); border: 1px solid var(--karte-rand); border-radius: var(--r-karte);
  box-shadow: var(--schatten-1); padding: 0 16px; margin: 0; list-style: none; min-width: 0;
}
.liste { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.zeile {
  display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; margin: 0;
  border: 0; border-top: 1px solid var(--rand); background: transparent; color: inherit; text-decoration: none;
  min-width: 0; width: 100%; text-align: left; font: inherit;
}
a.zeile, button.zeile { cursor: pointer; touch-action: manipulation; }
.liste > .zeile:first-child, .liste > li:first-child > .zeile, .karte-dicht > .zeile:first-child,
.liste-karte > .zeile:first-child, .liste-karte > li:first-child > .zeile { border-top: 0; }
.zeile-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zeile-titel { font-size: var(--t-text); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.zeile-unter { font-size: var(--t-neben); line-height: 1.35; color: var(--neben); overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.zeile-wert { flex: none; font-size: var(--t-text); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.zeile-pfeil { flex: none; color: var(--neben); }
.symbol-kachel {
  flex: none; width: 44px; height: 44px; border-radius: var(--r-klein); display: flex; align-items: center; justify-content: center;
  background: var(--flaeche); color: var(--ink);
}
.symbol-kachel-fahrt { background: var(--z-fahrt); color: var(--z-ink); }
.symbol-kachel-besuch { background: var(--z-besuch); color: var(--z-ink); }
.symbol-kachel-rot { background: var(--bad-hell); color: var(--bad-ink); }
.symbol-kachel-ok { background: var(--ok-hell); color: var(--ok-ink); }

/* --------------------------------------------------------------------------
   9. Pillen, Kreise, Kürzel. Wo Farbe etwas bedeutet, steht immer ein Wort dabei.
   -------------------------------------------------------------------------- */
.pille {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 28px; padding: 2px 10px;
  border-radius: 999px; background: var(--flaeche); color: var(--ink);
  font-size: var(--t-klein); font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.pille-ok { background: var(--ok-hell); }
.pille-unterwegs { background: var(--babyblau); }
.pille-wartet { background: var(--lila-hell); }
.pille-knapp { background: var(--warn-hell); }
.pille-problem { background: var(--bad-hell); }
.pille-neutral { background: transparent; box-shadow: inset 0 0 0 1px var(--rand); }
.pille-rot { background: var(--bad); color: #FFFFFF; }
.pille-jetzt { background: var(--knopf); color: var(--knopf-ink); }

/* Status-Kreis: erledigt grün mit Haken, läuft Ring mit Punkt, offen gestrichelt, verpasst rot */
.kreis {
  flex: none; width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; border: 2px dashed var(--rand-knopf); color: #FFFFFF; background: transparent;
}
.kreis .sym { width: 16px; height: 16px; }
.kreis-erledigt { background: var(--ok); border: 0; }
.kreis-laeuft { border: 2px solid var(--ink); }
.kreis-laeuft::after { content: ""; width: 12px; height: 12px; border-radius: 999px; background: var(--ink); }
.kreis-offen { border: 2px dashed var(--rand-knopf); }
.kreis-verpasst { background: var(--bad); border: 0; }

/* Kürzel einer Person. Mit data-zustand in der Zustandsfarbe der Stempeluhr (Team heute) */
.kuerzel {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; background: var(--lila-hell); color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: 0.02em;
}
.kuerzel-gross { width: 56px; height: 56px; font-size: 18px; }
.kuerzel[data-zustand="fahrt"], .kuerzel[data-zustand="heim"] { background: var(--z-fahrt); color: var(--z-ink); }
.kuerzel[data-zustand="besuch"], .kuerzel[data-zustand="ort"] { background: var(--z-besuch); color: var(--z-ink); }
.kuerzel[data-zustand="privat"] { background: var(--z-privat); color: var(--z-ink); }
.kuerzel[data-zustand="klaeren"], .kuerzel[data-zustand="warten"] { background: var(--z-klaeren); color: var(--z-klaeren-ink); }
.kuerzel[data-zustand="fertig"] { background: var(--z-fertig); color: var(--z-ink); }
.kuerzel[data-zustand="frei"] { background: var(--flaeche); color: var(--neben); }
.kuerzel[data-zustand="fehlt"] { background: var(--bad-hell); color: var(--ink); box-shadow: inset 0 0 0 2px var(--bad); }
.kuerzel-abzeichen {
  position: absolute; right: -2px; bottom: -2px; width: 20px; height: 20px; border-radius: 999px;
  background: var(--ok); color: #FFFFFF; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 2px var(--karte);
}
.kuerzel-abzeichen .sym { width: 13px; height: 13px; }

/* Chips: Auswahl und Filter per Tipp. aria-pressed="true" oder ein geprüftes input davor ist gewählt.
   Filter zählen mit: <button class="chip" aria-pressed="true">Fehlt <span class="chip-zahl">1</span></button> */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-rollen { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--rand-seite) * -1); padding: 2px var(--rand-seite); }
.chips-rollen::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 16px; margin: 0; border-radius: 999px; border: 0; background: var(--karte);
  box-shadow: inset 0 0 0 1px var(--rand), var(--schatten-1);
  color: var(--ink); font-size: var(--t-neben); font-weight: 600; cursor: pointer; text-decoration: none; touch-action: manipulation;
}
:is(.karte, .blatt, .aktion) .chip { background: var(--flaeche); box-shadow: none; }
.chip[aria-pressed="true"], .chip.ist-gewaehlt, input:checked + .chip, .chip[aria-current="page"], .chip[aria-selected="true"] {
  background: var(--knopf); color: var(--knopf-ink); box-shadow: none;
}
.chip-zahl {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--flaeche); color: var(--ink);
  font-size: var(--t-klein); font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
:is(.chip[aria-pressed="true"], .chip.ist-gewaehlt, .chip[aria-current="page"], .chip[aria-selected="true"]) .chip-zahl:not(.chip-zahl-rot) { background: var(--flaeche); color: var(--ink); }
.chip-zahl-rot { background: var(--bad) !important; color: #FFFFFF !important; }

/* --------------------------------------------------------------------------
   10. Reiter: Knöpfe, die den Inhalt darunter sofort wechseln (Segment). Zwei Arten, gleiches Aussehen:
   Seiten-Reiter als Links (aria-current="page"), Feld-Reiter als Knöpfe mit role="tab" (zeit.js schaltet).
   -------------------------------------------------------------------------- */
.reiter {
  display: flex; gap: 4px; padding: 4px; border-radius: 18px; background: var(--spur);
  overflow-x: auto; scrollbar-width: none;
}
.reiter::-webkit-scrollbar { display: none; }
:is(.karte, .blatt) .reiter { background: var(--flaeche); }
.reiter-knopf {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
  padding: 0 14px; margin: 0; border: 0; border-radius: 14px; background: transparent; color: var(--neben);
  font-size: var(--t-neben); font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
  white-space: nowrap; touch-action: manipulation; transition: background-color 0.2s ease, color 0.2s ease;
}
.reiter-knopf[aria-selected="true"], .reiter-knopf[aria-current="page"] {
  background: var(--reiter-an); color: var(--ink);
  box-shadow: 0 1px 2px rgba(21, 25, 63, 0.08), 0 2px 8px rgba(21, 25, 63, 0.06);
}
.reiter-zahl {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--karte); color: var(--ink);
  font-size: var(--t-klein); font-weight: 600; display: inline-flex; align-items: center; justify-content: center;
  font-variant-numeric: tabular-nums;
}
:is(.reiter-knopf[aria-selected="true"], .reiter-knopf[aria-current="page"]) .reiter-zahl {
  background: var(--knopf); color: var(--knopf-ink);
}
.reiter-zahl-rot { background: var(--bad) !important; color: #FFFFFF !important; }
.reiter-feld { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.reiter-feld.ist-neu { animation: feld-ein 0.18s ease-out; }
@keyframes feld-ein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.reiter-feld:focus-visible { outline-offset: 4px; }

/* Balken (Stunden im Monat, Budget) */
.balken { height: 10px; border-radius: 999px; background: var(--flaeche); overflow: hidden; display: flex; }
.balken-teil { height: 100%; background: var(--knopf); }
.balken-geplant { background: var(--lila); }
.balken-ok { background: var(--ok); }
.balken-warn { background: var(--warn); }
.balken-bad { background: var(--bad); }

/* --------------------------------------------------------------------------
   11. Tageslinie: der Tag als ruhige senkrechte Linie (Reiter „Heute“ der Stempeluhr, Tag im Kalender).
   <ol class="tageslinie"><li class="linie-eintrag" data-art="erledigt | jetzt | spaeter | fahrt | ende">
   -------------------------------------------------------------------------- */
.tageslinie { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.linie-eintrag {
  position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: center;
  column-gap: 12px; min-height: 56px; padding: 6px 0;
}
.linie-eintrag::before {
  content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--rand);
}
.linie-eintrag:first-child::before { top: 50%; }
.linie-eintrag:last-child::before { bottom: 50%; }
.linie-eintrag:only-child::before { display: none; }
.linie-marke {
  position: relative; z-index: 1; justify-self: center; width: 24px; height: 24px; border-radius: 999px;
  background: var(--karte); box-shadow: inset 0 0 0 2px var(--rand-knopf); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}
.linie-marke .sym { width: 15px; height: 15px; }
.linie-haupt { min-width: 0; display: flex; flex-direction: column; gap: 2px; color: inherit; text-decoration: none; }
.linie-titel { font-size: var(--t-text); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.linie-unter { font-size: var(--t-neben); color: var(--neben); line-height: 1.35; }
.linie-zeit { font-size: var(--t-neben); color: var(--neben); font-variant-numeric: tabular-nums; white-space: nowrap; }
.linie-eintrag[data-art="erledigt"] .linie-marke { background: var(--ok); box-shadow: none; }
.linie-eintrag[data-art="erledigt"] .linie-titel { font-weight: 500; color: var(--neben); }
.linie-eintrag[data-art="fahrt"] { min-height: 40px; }
.linie-eintrag[data-art="fahrt"] .linie-marke { width: 10px; height: 10px; background: var(--rand-knopf); box-shadow: none; }
.linie-eintrag[data-art="fahrt"] .linie-titel { font-size: var(--t-neben); font-weight: 500; color: var(--neben); }
.linie-eintrag[data-art="jetzt"] .linie-marke { background: var(--ink); box-shadow: 0 0 0 4px var(--lila-hell); }
.linie-eintrag[data-art="jetzt"] .linie-haupt {
  background: var(--karte); border-radius: var(--r-zweit); padding: 10px 12px; box-shadow: var(--schatten-1);
}
.linie-eintrag[data-art="ende"] .linie-marke { width: 32px; height: 32px; background: var(--flaeche); box-shadow: none; color: var(--ink); }
.linie-eintrag[data-art="ende"] .linie-titel { font-weight: 500; color: var(--neben); }
/* Weitere Marken, in allen Bereichen gleich (Kalender, Nachtragen, Team): Farbe wie die Zustandsfläche */
.linie-eintrag[data-art="besuch"] .linie-marke { background: var(--z-besuch); box-shadow: none; }
.linie-eintrag[data-art="ort"] .linie-marke { background: var(--lila-hell); box-shadow: inset 0 0 0 2px var(--lila); }
.linie-eintrag[data-art="privat"] .linie-marke { background: var(--z-privat); box-shadow: none; }
.linie-eintrag[data-art="wartet"] .linie-marke { background: var(--karte); box-shadow: inset 0 0 0 2px var(--rand-knopf); }
.linie-eintrag[data-art="offen"] .linie-marke { box-shadow: none; border: 2px dashed var(--rand-knopf); }
.linie-eintrag:is([data-art="luecke"], [data-art="knapp"]) .linie-marke { background: var(--warn-hell); box-shadow: inset 0 0 0 2px var(--warn); color: var(--ink); }
.linie-eintrag:is([data-art="verpasst"], [data-art="fehlt"]) .linie-marke { background: var(--bad); box-shadow: none; }
.linie-eintrag[data-art="weg"] .linie-marke { box-shadow: inset 0 0 0 2px var(--rand); }
.linie-eintrag[data-art="weg"] .linie-titel { font-weight: 500; color: var(--neben); text-decoration: line-through; }
a.linie-haupt { border-radius: 12px; touch-action: manipulation; }
a.linie-haupt:active { background: var(--hell); }

/* --------------------------------------------------------------------------
   12. Untere Leiste: schwebende weiße Pille, Symbol über dem Wort, aktives Ziel hell gefüllt.
   Punkte kommen aus zeit/kontext.py. Eine Zahl nur am Team (Eingang), rot nur bei Dringendem.
   -------------------------------------------------------------------------- */
.leiste {
  position: fixed; z-index: 40; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--unten) + 10px);
  width: calc(100% - 20px); max-width: calc(var(--breite) - 32px); height: var(--h-leiste);
  padding: 4px; border-radius: 999px; background: var(--leiste-bg); border: 1px solid var(--karte-rand);
  box-shadow: var(--schatten-2); display: flex; gap: 0;
  view-transition-name: leiste;
}
.leiste-punkt {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: 999px; padding: 0;
  color: var(--neben); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: min(var(--t-klein), 16px); font-weight: 500; line-height: 1.15; text-decoration: none; touch-action: manipulation;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.leiste-punkt.ist-aktiv { background: var(--leiste-aktiv); color: var(--ink); font-weight: 600; }
.leiste-symbol { position: relative; display: flex; }
.leiste-text { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leiste-zahl {
  position: absolute; top: -6px; left: calc(100% - 6px); min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--ink); color: var(--karte); box-shadow: 0 0 0 2px var(--leiste-bg);
  font-size: 14px; font-weight: 600; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums;
}
.ist-dringend .leiste-zahl { background: var(--bad); color: #FFFFFF; }
:root[data-schrift="sehr-gross"] .leiste-punkt .sym { width: 20px; height: 20px; }
/* Vier Punkte (Leitung): Wörter bleiben bei 14 px, sonst wird „Stempeluhr“ auf 360 px abgeschnitten */
.leiste:has(> .leiste-punkt:nth-child(4)) .leiste-punkt { font-size: 14px; }

/* --------------------------------------------------------------------------
   13. Blatt von unten (Sheet). Öffnen und Schließen: core/static/core/app.js (data-fenster-auf, data-fenster-zu,
   Escape, Tippen auf den Schleier, Zurück-Taste). Wischen, Tastatur, Schritte: zeit.js.
   Aufbau: div.blatt-schleier#blatt-x[hidden] > div.blatt[role=dialog][aria-modal=true]
   -------------------------------------------------------------------------- */
.blatt-schleier {
  position: fixed; inset: 0; z-index: 60; background: var(--schleier);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  animation: schleier-ein 0.2s ease-out;
}
.blatt {
  width: 100%; max-width: var(--breite); max-height: 92vh; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: var(--r-gross) var(--r-gross) 0 0; background: var(--karte); color: var(--ink); box-shadow: var(--schatten-3);
  padding: 8px 16px calc(var(--unten) + 24px); display: flex; flex-direction: column; gap: 16px;
  animation: blatt-hoch 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.blatt-griff { align-self: center; width: 40px; height: 5px; border-radius: 999px; background: var(--rand); flex: none; }
.blatt-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; }
.blatt-titel { font-size: var(--t-ueberschrift); line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
.blatt-neben { font-size: var(--t-neben); line-height: 1.4; color: var(--neben); }
.blatt .rund-knopf { width: 48px; height: 48px; }
/* Fuß eines Blatts: Zurück so schmal wie sein Wort, Weiter oder Speichern breit, bleibt beim Rollen unten sichtbar */
.blatt-fuss {
  position: sticky; bottom: calc((var(--unten) + 24px) * -1); margin-top: auto;
  margin-bottom: calc((var(--unten) + 24px) * -1); padding: 12px 0 calc(var(--unten) + 24px);
  background: var(--karte); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px;
}
.blatt-fuss-eins { grid-template-columns: minmax(0, 1fr); }
/* Abnahme Runde 2 (B6): ein Feld, das den Fokus bekommt (Fehler, Tastatur), rollt über die feste Knopfleiste */
.blatt { scroll-padding-bottom: calc(var(--tippflaeche) + 48px); }
@keyframes blatt-hoch { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes schleier-ein { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 720px) {
  .blatt-schleier { justify-content: center; padding: 16px; }
  .blatt { border-radius: var(--r-gross); max-width: 520px; padding-bottom: 24px; }
  .blatt-fuss { bottom: -24px; margin-bottom: -24px; padding-bottom: 24px; }
}

/* Wahlzeilen im Blatt: ein Ziel je Zeile, Symbolkachel, Titel, Nebenzeile */
.wahl-liste { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.wahl {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 10px 12px; margin: 0;
  border: 0; border-radius: 18px; background: transparent; color: var(--ink); text-align: left; text-decoration: none;
  font: inherit; cursor: pointer; touch-action: manipulation;
}
.wahl:active { background: var(--grund); }
.wahl-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.wahl-titel { font-size: var(--t-gross); font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; -webkit-hyphens: auto; hyphens: auto; }
.wahl-unter { font-size: var(--t-neben); color: var(--neben); line-height: 1.35; overflow-wrap: anywhere; }
.wahl-pfeil { flex: none; color: var(--neben); }
.wahl-gefahr .wahl-titel { color: var(--bad-ink); }
.wahl-trenner { height: 1px; background: var(--rand); margin: 8px 12px; }

/* Schritte in einem Blatt: eine Frage je Schritt (zeit.js: data-schritte, data-schritt, data-schritt-weiter) */
.schritt-balken { flex: none; display: flex; gap: 6px; }
.blatt-kopf .schritt-balken { flex: 1; }
.schritt-balken i { flex: 1; height: 6px; border-radius: 3px; background: var(--rand); transition: background-color 0.22s ease; }
.schritt-balken i.ist-an { background: var(--ink); }
.schritt { display: flex; flex-direction: column; gap: 16px; min-width: 0; flex: 1; }
.schritt.ist-vor { animation: schritt-vor 0.22s ease-out; }
.schritt.ist-zurueck { animation: schritt-zurueck 0.22s ease-out; }
@keyframes schritt-vor { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes schritt-zurueck { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.schritt-zaehler { font-size: var(--t-klein); font-weight: 500; color: var(--neben); }
.frage { font-size: var(--t-frage); line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; outline: none; }
/* Die Frage bekommt beim Weiterblättern den Fokus (für Vorleser). Sie ist kein Knopf, also kein Rahmen. */
.zeit .frage:focus, .zeit .frage:focus-visible { outline: none; }
.frage-neben { font-size: var(--t-text); line-height: 1.4; color: var(--neben); }
.antworten { display: flex; flex-direction: column; gap: 10px; }
.antwort {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 10px 18px; margin: 0;
  border: 0; border-radius: 18px; background: var(--karte); box-shadow: inset 0 0 0 2px var(--rand);
  color: var(--ink); font: inherit; font-size: var(--t-gross); font-weight: 500; line-height: 1.25; text-align: left;
  cursor: pointer; touch-action: manipulation;
}
.antwort input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.antwort-haupt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.antwort-unter { font-size: var(--t-neben); font-weight: 400; color: var(--neben); }
.antwort-kreis { margin-left: auto; width: 24px; height: 24px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--rand-knopf); flex: none; }
.antwort[aria-pressed="true"], .antwort:has(input:checked) { box-shadow: inset 0 0 0 2px var(--ink); background: var(--lavendel); font-weight: 600; }
.antwort[aria-pressed="true"] .antwort-kreis, .antwort:has(input:checked) .antwort-kreis { box-shadow: inset 0 0 0 7px var(--ink); }
.antwort:has(input:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 2px; }

/* Uhrzeitwahl mit Minus und Plus (zeit.js: data-zeitwahl). Ohne Skript bleibt ein normales Zeitfeld. */
.zeitwahl {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--grund); border-radius: 24px; padding: 18px 14px;
}
.zeitwahl-knopf {
  flex: none; width: 64px; height: 64px; border-radius: 999px; margin: 0; padding: 0; border: 0;
  background: var(--karte); color: var(--ink); box-shadow: var(--schatten-1);
  display: flex; align-items: center; justify-content: center; cursor: pointer; touch-action: manipulation;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.zeitwahl-knopf .sym { width: 28px; height: 28px; }
.zeitwahl-knopf:disabled { opacity: 0.4; cursor: default; }
.zeitwahl-mitte { flex: 1; min-width: 0; display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.zeitwahl-wert {
  width: 100%; max-width: 5.4ch; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 12px; background: transparent;
  color: var(--ink); font-size: calc(52px * var(--skala)); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em;
  text-align: center; font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none;
}
.zeitwahl-wert::-webkit-calendar-picker-indicator { display: none; }
.zeitwahl-wert::-webkit-datetime-edit, .zeitwahl-wert::-webkit-datetime-edit-fields-wrapper { padding: 0; }
.zeitwahl-wert::-webkit-datetime-edit-hour-field, .zeitwahl-wert::-webkit-datetime-edit-minute-field { padding: 0; }
.zeitwahl-grenze { font-size: var(--t-neben); color: var(--neben); text-align: center; }
/* Zwei Uhrzeitwahlen untereinander (Von und Bis): das Wort steht über der Uhrzeit */
.zeitwahl-paar { display: flex; flex-direction: column; gap: 10px; }
.zeitwahl-paar .zeitwahl { padding: 10px 12px; border-radius: var(--r-gross); }
.zeitwahl-paar .zeitwahl-mitte { flex-direction: column; align-items: center; gap: 0; }
.zeitwahl-paar .zeitwahl-wert { font-size: calc(44px * var(--skala)); }
.zeitwahl-wort { font-size: var(--t-klein); font-weight: 600; color: var(--neben); line-height: 1.2; }
.zeitwahl-wert[aria-invalid="true"] { color: var(--bad-ink); }

/* Seite mit Schritten (Nachtragen, Fahrt vergessen, Zeit ändern, Zeit eintragen, Person hinzufügen):
   <form class="ablauf" data-schritte>, oben Titel und Zähler (ablauf-kopf), der Balken, je Schritt eine Frage,
   unten im Schritt die Aktionskarte <div class="aktion schritt-fuss">. Gleiche Bausteine wie das Blatt mit Schritten.
   Auf dem Grund ist die Uhrzeitwahl eine weiße Karte. */
.ablauf { flex: 1 1 auto; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ablauf-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ablauf-kopf .schritt-zaehler { flex: none; }
.ablauf-titel { font-size: var(--t-gross); line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.ablauf .schritt { gap: 20px; }
.ablauf .aktion { margin-top: auto; }
.ablauf .zeitwahl { background: var(--karte); box-shadow: var(--schatten-1); }
.ablauf .zeitwahl-knopf { background: var(--flaeche); box-shadow: none; }
/* Fuß eines Schritts (auf Seiten und in Blättern): Zurück so schmal wie sein Wort, der Hauptknopf nimmt den Rest */
.schritt-fuss { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
.schritt-fuss-eins { grid-template-columns: minmax(0, 1fr); }
:is(.schritt-fuss, .blatt-fuss) :is(.knopf-haupt, .knopf-zweit, .knopf-gefahr) { min-height: var(--knopf-haupt-hoehe); border-radius: var(--r-knopf); }
:is(.schritt-fuss, .blatt-fuss) .knopf-zweit { padding: 0 18px; }
/* 17 px, damit „An die Leitung senden“ auch auf 360 px in einer Zeile steht */
.schritt-fuss .knopf-haupt { padding: 0 12px; font-size: calc(17px * var(--skala)); }

/* --------------------------------------------------------------------------
   14. Bänder (ruhige Hinweise, auch Django-Meldungen), leere Zustände, Fehlerzustände
   -------------------------------------------------------------------------- */
.baender { display: flex; flex-direction: column; gap: 8px; }
.band {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-zweit);
  background: var(--babyblau); color: var(--ink); font-size: var(--t-neben); line-height: 1.4; font-weight: 500;
}
.band .sym { margin-top: 1px; }
.band-mit-knopf { align-items: center; }
.band-info, .band-ruhig { background: var(--babyblau); }
.band-success, .band-ok { background: var(--ok-hell); }
.band-warning, .band-warn { background: var(--warn-hell); }
.band-error, .band-fehler { background: var(--bad-hell); box-shadow: inset 0 0 0 1px var(--bad); }
/* Gegenprüfung Runde 2.1: „Kein Netz. Nichts gespeichert, …“ nach einem Formular, das nicht abging (zeit.js). Schwebt
   unten über allem, auch über einem offenen Blatt, und sprengt so keine Zeile mit einem kleinen Knopf. Ohne Bewegung */
.netz-band {
  position: fixed; z-index: 70; left: 50%; transform: translateX(-50%); margin: 0;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px)); width: min(480px, calc(100vw - 32px));
  box-shadow: inset 0 0 0 1px var(--bad), 0 8px 24px rgba(21, 25, 63, 0.18); font-size: var(--t-text);
}
.netz-band[hidden] { display: none; }
@media (min-width: 1024px) {
  .netz-band { bottom: 24px; }
  .schreibtisch .netz-band { left: calc(50% + var(--st-leiste) / 2); }
}
.band-klein { padding: 6px 12px; font-size: var(--t-klein); border-radius: 999px; align-self: flex-start; }

.leer {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: 28px 20px; border-radius: var(--r-karte); background: var(--karte); border: 1px solid var(--karte-rand);
  box-shadow: var(--schatten-1); color: var(--ink);
}
.leer-symbol {
  width: 56px; height: 56px; border-radius: 999px; background: var(--flaeche); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.leer-symbol .sym { width: 26px; height: 26px; }
.leer-titel { font-size: var(--t-gross); font-weight: 600; line-height: 1.3; }
.leer-text { font-size: var(--t-text); line-height: 1.45; color: var(--neben); max-width: 32ch; }

.fehler-zustand {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-karte);
  background: var(--bad-hell); box-shadow: inset 0 0 0 2px var(--bad); color: var(--ink);
}
.fehler-zustand-kopf { display: flex; align-items: flex-start; gap: 12px; }
.fehler-zeichen {
  flex: none; width: 44px; height: 44px; border-radius: 999px; background: var(--bad); color: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
}

/* --------------------------------------------------------------------------
   15. Formulare: Felder 56 px, Rand 2 px mit 3:1, Schrift 18 px. Unter jedem Notizfeld der Hinweis
   „Keine Angaben zur Gesundheit.“ (Konzept 5.11, seit Runde 1.3 ohne „Nur zur Zeit.“)
   -------------------------------------------------------------------------- */
.feld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.feld-label { font-size: var(--t-neben); font-weight: 600; line-height: 1.35; }
.eingabe, .auswahl {
  width: 100%; min-height: 56px; margin: 0; padding: 0 14px; border-radius: var(--radius-feld);
  border: 2px solid var(--rand-knopf); background: var(--karte); color: var(--ink); font-size: calc(18px * var(--skala));
}
.eingabe:focus, .auswahl:focus, .textfeld:focus { border-color: var(--ink); }
.eingabe-zahl { font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 0.08em; }
.textfeld {
  width: 100%; min-height: 96px; margin: 0; padding: 12px 14px; border-radius: var(--radius-feld);
  border: 2px solid var(--rand-knopf); background: var(--karte); color: var(--ink); font-size: var(--t-text); resize: vertical;
}
.feld-hinweis { font-size: var(--t-neben); line-height: 1.4; color: var(--neben); }
.feld-fehler { font-size: var(--t-neben); line-height: 1.4; font-weight: 600; padding: 8px 12px; border-radius: 12px;
  background: var(--bad-hell); }
.eingabe[aria-invalid="true"], .textfeld[aria-invalid="true"] { border-color: var(--bad); }
/* Schalter (role="switch" auf einem button, aria-checked) */
.schalter {
  width: 100%; min-height: var(--tippflaeche); display: flex; align-items: center; gap: 12px; padding: 0;
  border: 0; margin: 0; background: transparent; color: var(--ink); text-align: left; cursor: pointer;
}
.schalter-spur {
  flex: none; width: 52px; height: 32px; border-radius: 999px; border: 2px solid var(--rand-knopf);
  background: var(--flaeche); padding: 3px; display: flex; justify-content: flex-start; transition: background-color 0.2s ease;
}
.schalter-spur::after { content: ""; width: 22px; height: 22px; border-radius: 999px; background: var(--rand-knopf); }
.schalter[aria-checked="true"] .schalter-spur { background: var(--knopf); border-color: var(--knopf); justify-content: flex-end; }
.schalter[aria-checked="true"] .schalter-spur::after { background: var(--knopf-ink); }

/* --------------------------------------------------------------------------
   15a. Knopf „i“ (Runde 1.3): seltene Erklärungen stehen nicht offen da, sondern hinter einem kleinen Kreis.
   Zwei Formen mit gleichem Aussehen (info-zeichen):
   - zeit/_info_knopf.html und zeit/_info_blatt.html: der Knopf öffnet ein Blatt (data-fenster-auf, app.js).
     Neben einem Titel: <div class="mit-info"><h2 …>Titel</h2>{% include "zeit/_info_knopf.html" … %}</div>
   - <details class="info"><summary><span>Zeile</span><span class="info-zeichen">{% symbol "info" %}</span>
     </summary><p class="info-text">…</p></details>: klappt in der Zeile auf, auch ohne Skript (Leitung).
   -------------------------------------------------------------------------- */
.info-zeichen {
  flex: none; width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; background: var(--flaeche); color: var(--ink); transition: transform 0.1s ease;
}
.info-zeichen .sym { width: 16px; height: 16px; }
.info-knopf {
  flex: none; width: 44px; height: 44px; margin: -8px -8px -8px 0; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.info-knopf:focus-visible { outline: 3px solid var(--fokus); outline-offset: -2px; }
.info-knopf:active .info-zeichen { transform: scale(0.92); }
.info-knopf[hidden] { display: none; }
.mit-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.mit-info > :first-child { min-width: 0; }
legend.mit-info { width: 100%; }
.info { min-width: 0; }
.info > summary {
  list-style: none; display: flex; align-items: center; gap: 10px; min-height: var(--tippflaeche); cursor: pointer;
  touch-action: manipulation; border-radius: 12px;
}
.info > summary::-webkit-details-marker { display: none; }
.info > summary::marker { content: ""; }
.info > summary > :first-child { flex: 1; min-width: 0; }
.info[open] .info-zeichen { background: var(--knopf); color: var(--knopf-ink); }
.info-text { font-size: var(--t-neben); line-height: 1.4; color: var(--neben); padding: 0 0 6px; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   15b. Monatskalender (Runde 1.3, Wunsch Yilmaz 31.10.2026): ein Aussehen für Termin eintragen, Urlaub, Termin
   verlegen, Zeit eintragen und Beginn. Ganzer Monat Mo bis So in einer weißen Karte (karte mkal), Pfeile oben rechts.
   - Tag: mkal-tag (a, button oder label mit Radio), darin mkal-zahl, darunter mkal-punkt (an dem Tag ist schon
     etwas) oder mkal-mond (abwesend).
   - ist-vorbei und ist-aus: leicht grau hinterlegt, nicht wählbar. ist-heute: Ring. ist-gewaehlt (oder das
     gewählte Radio): dunkel gefüllt. ist-abwesend: Mond, nicht wählbar. ist-zeitraum: Lila hell (Urlaub).
   - Unter dem Raster in derselben Karte: mkal-wahl mit dem gewählten Tag und wer an dem Tag schon dran ist.
   Auf 360 px ist jeder Tag 44 px breit (Rand 4 px, Abstand 2 px) und 48 px hoch.
   -------------------------------------------------------------------------- */
.mkal { padding: 4px 4px 8px; gap: 0; }
.mkal-kopf { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 6px 0 14px; }
.mkal-monat { flex: 1; min-width: 0; font-size: var(--t-gross); line-height: 1.25; font-weight: 600; outline: none; }
.mkal-pfeile { flex: none; display: flex; gap: 8px; }
.mkal-pfeile .ist-aus, .mkal-pfeile :disabled { opacity: 0.35; cursor: default; }
.mkal-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.mkal-wt { text-align: center; padding: 2px 0 4px; font-size: var(--t-klein); font-weight: 500; color: var(--neben); }
.mkal-tag {
  position: relative; min-width: 0; min-height: 48px; margin: 0; padding: 2px 0 0; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink); font: inherit; display: flex; align-items: flex-start; justify-content: center;
  text-decoration: none; touch-action: manipulation; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.mkal-zahl {
  width: 38px; height: 38px; border-radius: 999px; display: flex; align-items: center; justify-content: center;
  font-size: var(--t-text); font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.mkal-tag:focus-visible, .mkal-tag:has(input:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 0; }
a.mkal-tag:active .mkal-zahl, label.mkal-tag:active .mkal-zahl { transform: scale(0.92); }
.mkal-leer, .mkal-tag.ist-vorbei, .mkal-tag.ist-aus, .mkal-tag.ist-abwesend { cursor: default; }
.mkal-tag.ist-vorbei, .mkal-tag.ist-aus { background: var(--flaeche); color: var(--neben); }
.mkal-tag.ist-abwesend { color: var(--neben); }
.mkal-tag.ist-vorbei .mkal-zahl, .mkal-tag.ist-aus .mkal-zahl, .mkal-tag.ist-abwesend .mkal-zahl { font-weight: 400; }
.mkal-tag.ist-heute .mkal-zahl { box-shadow: inset 0 0 0 2px var(--ink); }
.mkal-tag.ist-zeitraum { background: var(--lila-hell); }
.mkal-tag.ist-gewaehlt .mkal-zahl, .mkal-tag input:checked + .mkal-zahl { background: var(--knopf); color: var(--knopf-ink); box-shadow: none; }
.mkal-tag.ist-heute.ist-gewaehlt .mkal-zahl, .mkal-tag.ist-heute input:checked + .mkal-zahl {
  box-shadow: 0 0 0 2px var(--karte), 0 0 0 4px var(--ink);
}
.mkal-punkt { position: absolute; left: 50%; bottom: 1px; width: 6px; height: 6px; margin-left: -3px; border-radius: 999px; background: var(--ink); }
.ist-vorbei .mkal-punkt, .ist-aus .mkal-punkt { background: var(--neben); }
.mkal-mond { position: absolute; left: 50%; bottom: 0; margin-left: -7px; display: flex; color: var(--ink); }
.mkal-mond .sym { width: 14px; height: 14px; }
.mkal-wahl {
  margin: 8px -4px -8px; padding: 12px 16px 14px; border-top: 1px solid var(--rand); display: flex;
  flex-direction: column; gap: 8px; scroll-margin: 16px 0 calc(var(--knopf-haupt-hoehe) + 88px);
}
.mkal-wahl.ist-neu { animation: feld-ein 0.18s ease-out; }
.mkal-wahl-kopf { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.mkal-wahl-titel { font-size: var(--t-gross); line-height: 1.3; font-weight: 600; font-variant-numeric: tabular-nums; }
.mkal-wahl-neben { font-size: var(--t-neben); color: var(--neben); }
.mkal-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mkal-liste li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; font-size: var(--t-text); line-height: 1.35; }
.mkal-name { font-weight: 600; overflow-wrap: anywhere; }
.mkal-zeit { color: var(--neben); font-variant-numeric: tabular-nums; }
.mkal-liste .mkal-frei { color: var(--neben); }

/* --------------------------------------------------------------------------
   15c. Budget-Haken (Runde 2.1, BAU.md 18, Vorlage zeit/_budget_haken.html, Skript budget_haken.js): groß die Dauer,
   darunter grün mit Haken „Im Budget von Frau Hahn, danach noch …“ oder rot mit Achtung „Über dem Budget …, 40 Min zu
   viel“, ohne Budget ruhig grau. Ein Satz, kein Kasten im Kasten: die Fläche ist leicht getönt, Schrift dunkel.
   -------------------------------------------------------------------------- */
.budget-haken { margin: 12px 0 4px; padding: 12px 14px; border-radius: var(--r-zweit); background: var(--flaeche); }
.bh-dauer { margin: 0; font-size: var(--t-ueberschrift); line-height: 1.2; font-weight: 600; font-variant-numeric: tabular-nums; }
.bh-dauer:empty { display: none; }
.bh-saetze { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bh-satz { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: var(--t-text); line-height: 1.35;
  overflow-wrap: anywhere; }
.bh-zeichen { display: none; flex: none; width: 24px; height: 24px; border-radius: 999px; align-items: center;
  justify-content: center; }
.bh-zeichen .sym { width: 16px; height: 16px; }
.bh-satz.ist-ok .bh-zeichen-ok { display: inline-flex; background: var(--ok); color: #FFFFFF; }
.bh-satz.ist-drueber .bh-zeichen-drueber { display: inline-flex; background: var(--bad); color: #FFFFFF; }
.bh-satz.ist-ohne .bh-zeichen-ohne { display: inline-flex; background: var(--karte); color: var(--neben); }
.bh-satz.ist-ok { color: var(--ok-ink); font-weight: 600; }
.bh-satz.ist-drueber { color: var(--bad-ink); font-weight: 600; }
.bh-satz.ist-ohne { color: var(--neben); }
.bh-andere { margin: 6px 0 0 32px; font-size: var(--t-neben); line-height: 1.35; color: var(--ink); }
.bh-andere[hidden] { display: none; }
.budget-haken.ist-ok { background: var(--ok-hell); }
.budget-haken.ist-drueber { background: var(--bad-hell); }
@media (prefers-reduced-motion: no-preference) {
  .budget-haken { transition: background-color 0.2s ease-out; }
}

/* --------------------------------------------------------------------------
   18. Schreibtisch (Lieferung 2, BAU.md 15): ab 1024 px Seitenleiste links, Inhalt rechts mit begrenzter Breite.
   Unter 1024 px die bekannte Handy-Ansicht: untere Leiste und die Reihe „Bereiche“ unter dem Kopf.
   Vorlage zeit/schreibtisch.html (body.schreibtisch). Breite Seiten (Wochenplan, Monat, Stundenzettel): Klasse
   st-breit im Block seite_klasse. Bausteine: st-werkzeuge (Knöpfe einer Seite), blaettern (Woche oder Monat vor und
   zurück), st-spalten (zwei Spalten am Schreibtisch, sonst untereinander), tabelle (Tabelle in einer Karte),
   st-nur-handy und st-nur-schreibtisch (etwa die Reiter „Heute | Eingang“, die am Schreibtisch die Leiste ersetzt).
   Steht hier statt am Dateiende, damit Bewegung (17) und Druck (unten) weiter zuletzt gelten.
   -------------------------------------------------------------------------- */
.st-leiste { display: none; }
@media (max-width: 1023.98px) { .st-nur-schreibtisch { display: none !important; } }
.st-bereiche .chip { min-height: var(--tippflaeche); }

/* Knöpfe einer Seite nebeneinander (Termin eintragen, PDF, Drucken). Bricht um, auf dem Handy volle Breite */
.st-werkzeuge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.st-werkzeuge > :is(.knopf-haupt, .knopf-zweit, .knopf-klein, .knopf-gefahr) { min-height: var(--tippflaeche); padding: 0 16px; font-size: var(--t-neben); border-radius: 14px; }
.st-werkzeuge-rechts { margin-left: auto; }

/* Woche oder Monat blättern: <nav class="blaettern"><a class="rund-knopf">‹</a><span class="blaettern-text">…</span><a>›</a></nav> */
.blaettern { display: flex; align-items: center; gap: 8px; min-width: 0; }
.blaettern-text { min-width: 0; font-size: var(--t-gross); font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; }
.blaettern-text .wert-einheit { margin-left: 0; }
.blaettern [aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* Zwei Spalten am Schreibtisch (Person: Angaben links, Rahmen und Verlauf rechts), auf dem Handy untereinander */
.st-spalten { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.st-spalte { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Tabelle in einer Karte: <div class="karte tabelle-karte"><table class="tabelle">…</table></div>.
   Zahlen rechtsbündig mit .tabelle-zahl, eine ganze Zeile als Link über einen a.tabelle-link in der ersten Zelle.
   Auf dem Handy rollt die Karte waagrecht, die Seite nie. */
.tabelle-karte { padding: 0; overflow-x: auto; }
.tabelle { width: 100%; border-collapse: collapse; font-size: var(--t-neben); line-height: 1.35; }
.tabelle th, .tabelle td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--rand); }
.tabelle thead th { border-top: 0; font-size: var(--t-klein); font-weight: 600; color: var(--neben); white-space: nowrap; }
.tabelle tbody th { font-weight: 600; color: var(--ink); }
.tabelle .tabelle-zahl { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tabelle tfoot td, .tabelle tfoot th { font-weight: 600; border-top: 2px solid var(--rand); }
.tabelle-link { color: inherit; text-decoration: none; font-weight: 600; }
.tabelle-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tabelle tr.ist-gewaehlt > * { background: var(--lavendel); }

@media (min-width: 1024px) {
  .schreibtisch {
    --st-leiste: 216px;
    --st-inhalt: 920px;
    --st-breit: 1240px;
    --st-rand: 24px;
    --ueber-leiste: 16px;
    padding-left: var(--st-leiste);
  }
  .schreibtisch .st-leiste {
    position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; width: var(--st-leiste);
    display: flex; flex-direction: column; gap: 4px; padding: 16px 12px 16px;
    background: var(--karte); border-right: 1px solid var(--rand); overflow-y: auto; overscroll-behavior: contain;
  }
  .st-marke { display: block; padding: 8px 12px 16px; font-size: 20px; line-height: 1.2; font-weight: 600;
    letter-spacing: -0.2px; color: var(--ink); text-decoration: none; }
  .st-punkte { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
  /* Bereich Büro (BAU.md 17): kleine Überschrift je Gruppe („Team“, „Patienten und Budgets“) */
  .st-gruppe { margin: 14px 0 2px; padding: 0 12px; font-size: var(--t-klein); font-weight: 600; line-height: 1.3;
    color: var(--neben); }
  .st-marke + .st-gruppe { margin-top: 0; }
  .st-punkt {
    display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: 14px;
    color: var(--neben); font-size: var(--t-neben); font-weight: 500; text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
  }
  .st-punkt:hover { background: var(--grund); color: var(--ink); }
  .st-punkt.ist-aktiv { background: var(--leiste-aktiv); color: var(--ink); font-weight: 600; }
  .st-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .st-zahl {
    flex: none; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: var(--karte);
    font-size: var(--t-klein); font-weight: 600; line-height: 24px; text-align: center; font-variant-numeric: tabular-nums;
  }
  .st-zahl-rot { background: var(--bad); color: #FFFFFF; }
  .st-fuss { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--rand); }
  .st-ich { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 8px; border-radius: 14px;
    color: var(--ink); text-decoration: none; }
  .st-ich:hover { background: var(--grund); }
  .st-ich-text { display: flex; flex-direction: column; min-width: 0; }
  .st-ich-name { font-size: var(--t-neben); font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .st-ich-rolle { font-size: var(--t-klein); color: var(--neben); line-height: 1.25; }
  /* Inhalt: begrenzte Breite in der Fläche rechts der Leiste, breite Seiten mehr */
  .schreibtisch .seite { max-width: calc(var(--st-inhalt) + 2 * var(--st-rand)); padding-left: var(--st-rand); padding-right: var(--st-rand); }
  .schreibtisch .seite.st-breit { max-width: calc(var(--st-breit) + 2 * var(--st-rand)); }
  .schreibtisch .seite.mit-leiste, .schreibtisch .seite.ohne-leiste { padding-bottom: 32px; }
  .schreibtisch .leiste, .schreibtisch .st-bereiche, .schreibtisch .st-nur-handy { display: none; }
  .schreibtisch .chips-rollen { margin: 0; padding: 2px 0; }
  .st-spalten { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; gap: 24px; }
  .st-spalten-gleich { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Aktionskarten kleben am Schreibtisch nicht unten fest, sie stehen am Ende des Inhalts */
  .schreibtisch .aktion { position: static; margin-top: 8px; box-shadow: var(--schatten-1); }
}
@media (min-width: 1280px) {
  .schreibtisch { --st-leiste: 240px; --st-rand: 32px; }
}

/* --------------------------------------------------------------------------
   16. Tippschutz der HW-App (tippschutz.js und core/static/core/app.js): nach einem Tipp kurz blasser
   -------------------------------------------------------------------------- */
.tippschutz [data-tippschutz], .tippschutz-stelle { opacity: 0.55; }
.fenster-frisch .blatt a[href], .fenster-frisch .blatt button { opacity: 0.55; }
.stelle-folgt .hauptbereich { visibility: hidden; }

/* --------------------------------------------------------------------------
   17. Bewegung: kurz und ruhig, nie dauernd außer dem Punkt „Zeit läuft“.
   Seitenwechsel blenden über View Transitions weich über (Chrome, Safari ab 18.2, sonst sofort).
   Mit „Bewegung reduzieren“ entfällt jede Bewegung (Konzept 7.3).
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.18s; animation-timing-function: ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .knopf-haupt:active, .knopf-zweit:active, .knopf-gefahr:active, .knopf-klein:active, .knopf-link:active,
  .knopf-text:active, .chip:active, .leiste-punkt:active, .rund-knopf:active, .glocke:active, .symbolknopf:active,
  .reiter-knopf:active, .antwort:active, .zeitwahl-knopf:active, .rueck-knopf:active { transform: none; }
}

/* --------------------------------------------------------------------------
   18. Runde 3 (BAU.md 19.5, 19.6, Praxistest Stolperstein 2 und 10, Wunsch Yilmaz 05.11.2026)
   -------------------------------------------------------------------------- */
/* Rückfrage vor dem Löschen oder Absagen (zeit/_rueckfrage.html): der sichere Weg groß und dunkel oben, Löschen rot
   und kleiner darunter, mit Symbol und eigenem Wort. Nie zwei gleich aussehende Knöpfe nebeneinander */
.rueckfrage { display: flex; flex-direction: column; gap: 12px; }
.rueckfrage-frage { margin: 0; font-size: var(--t-ueberschrift); font-weight: 600; line-height: 1.3; text-wrap: balance; }
.rueckfrage-text { margin: 0; font-size: var(--t-text); color: var(--neben); line-height: 1.4; }
.rueckfrage-knoepfe { display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.rueckfrage-knoepfe form { margin: 0; }
.knopf-sicher { width: 100%; }
.knopf-loeschen {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  min-height: var(--tippflaeche); padding: 6px 16px; margin: 0; border: 2px solid var(--bad); border-radius: var(--r-zweit);
  background: var(--karte); color: var(--bad-ink); font-size: var(--t-neben); font-weight: 600; line-height: 1.2;
  cursor: pointer; touch-action: manipulation; text-decoration: none;
}
.knopf-loeschen .sym { width: 18px; height: 18px; }
.knopf-loeschen:active { transform: scale(0.98); }
/* Bereichsflächen (Wunsch Yilmaz 05.11.2026: „Hintergründe der Bereiche in anderen Farben oder in Hellgrau, damit man
   unterscheiden kann“). Eine Zone der Übersicht, des Eingangs oder des Büros liegt auf einer eigenen Fläche, die Karten
   darin bleiben weiß. Töne nur aus den Tokens, in Dunkel passen sie sich an:
   .bereich-flaeche (Hellgrau), dazu .bereich-blau, .bereich-lila, .bereich-gruen, .bereich-warn (Bernstein hell),
   .bereich-rot (nur für „Bitte sofort klären“). Kopf mit .bereich-kopf und .bereich-titel, Nebenzeile .bereich-neben */
.bereich-flaeche {
  /* Zusammenführung Runde 3 (Wunsch UEBERSICHT): der kräftigere Ton der Übersicht für alle Bereiche. Grau-Blau aus
     --rand, deutlich dunkler als der Seitengrund und als die weißen Karten darin, mit feinem Rand, damit die Fläche
     auch auf blassen Büromonitoren steht. --ink darauf 13:1, --neben 5,1:1 (hell) und 6,6:1 (dunkel) */
  --bereich-bg: var(--rand);
  --bereich-rand: color-mix(in srgb, var(--rand-knopf) 30%, var(--rand));
  background: var(--bereich-bg); border-radius: var(--r-gross); padding: 14px; display: flex; flex-direction: column;
  gap: 12px; min-width: 0; box-shadow: inset 0 0 0 1px var(--bereich-rand);
}
.bereich-blau { --bereich-bg: var(--babyblau); --bereich-rand: color-mix(in srgb, var(--himmel) 70%, var(--babyblau)); }
.bereich-lila { --bereich-bg: var(--lila-hell); --bereich-rand: color-mix(in srgb, var(--lila) 70%, var(--lila-hell)); }
.bereich-gruen { --bereich-bg: var(--ok-hell); --bereich-rand: color-mix(in srgb, var(--ok) 45%, var(--ok-hell)); }
.bereich-warn { --bereich-bg: var(--warn-hell); --bereich-rand: color-mix(in srgb, var(--warn) 60%, var(--warn-hell)); }
.bereich-rot { --bereich-bg: var(--bad-hell); --bereich-rand: color-mix(in srgb, var(--bad) 45%, var(--bad-hell)); }
.bereich-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 4px 0; }
.bereich-titel { margin: 0; font-size: var(--t-gross); font-weight: 600; line-height: 1.3; }
.bereich-neben { margin: 0; font-size: var(--t-neben); color: var(--neben); }
.bereich-flaeche :is(.karte, .liste-karte, .leer) { box-shadow: none; }
.bereich-flaeche :is(.knopf-zweit, .knopf-klein) { background: var(--karte); border-color: transparent; }
.bereich-flaeche .chip { box-shadow: inset 0 0 0 1px var(--bereich-rand); }
/* Band mit Rückgängig (zeit/_rueck_band.html): bleibt bis zum nächsten Seitenwechsel. Der Knopf verschwindet nach
   2 Minuten (data-ablauf, zeit.js), das Kreuz schließt das Band. Abnahme Runde 2 (E9): im Fluss oben unter Kopf und
   Meldungen statt schwebend unten, es liegt nie über „Weiter“, „Eintragen“ oder einer Zeile. Läuft die Zeit ab, bleibt
   sein Platz (unsichtbar), damit nichts unter dem Finger oder der Maus verrutscht */
.rueck-band {
  display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 8px 8px 14px; border-radius: 20px;
  margin: 0; background: var(--karte); box-shadow: var(--schatten-1); font-size: var(--t-neben); font-weight: 600;
}
.rueck-band[hidden], .rueck-band form[hidden] { display: flex !important; visibility: hidden; }
.rueck-band .rueck-knopf { background: var(--flaeche); }
/* Zusammenführung (Wunsch TERMIN): am Handy wurde der Text auf vier Zeilen gequetscht. Der Text nimmt den Platz,
   der Knopf rutscht in eine zweite Zeile, wenn es eng wird */
.rueck-band { flex-wrap: wrap; row-gap: 6px; }
.rueck-band .band-text { flex: 1 1 12em; min-width: 0; }
.rueck-band form { flex: none; margin: 0; }
.rueck-band .rueck-band-zu { flex: none; background: transparent; box-shadow: none; }
/* „Neue Daten, tippen zum Aktualisieren“ (frisch.js), wenn gerade ein Blatt offen ist oder etwas geschrieben wird */
.frisch-band {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); margin: 0; top: calc(var(--oben) + 12px);
  width: min(480px, calc(100vw - 32px)); box-shadow: var(--schatten-2); border: 0; cursor: pointer;
  font: inherit; font-size: var(--t-text); font-weight: 600; text-align: left;
}
/* Stolperstein 10: keine Silbentrennung in der Übersicht und am Schreibtisch („ar-beitet“), dort ist Platz genug */
body.dashboard :is(.zeile-titel, .zeile-unter, .karte-titel, .linie-titel, .wahl-titel, .db-zahl-text),
body.schreibtisch :is(.zeile-titel, .zeile-unter, .karte-titel, .linie-titel, .wahl-titel, .db-zahl-text) {
  -webkit-hyphens: manual; hyphens: manual;
}

@media print {
  .rueck-band, .frisch-band { display: none !important; }
}
@media print {
  .leiste, .kopf, .sprung, .aktion, .st-leiste, .st-bereiche, .st-werkzeuge, .blatt-schleier { display: none !important; }
  body.zeit { background: #FFFFFF; }
  body.schreibtisch { padding-left: 0; }
  .schreibtisch .seite { max-width: none; padding: 0; }
  .karte, .liste-karte { box-shadow: none; }
}
/* Runde 3.7 (S3): Zeitraum frei wählen, ein Feld von, ein Feld bis (monat/_zeitraum_felder.html), Stundenzettel */
.zr-form { margin: 0; display: grid; gap: 8px; }
.zr-felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; align-items: end; }
.zr-feld .eingabe { min-height: var(--tippflaeche); }
.zr-zeigen { grid-column: 1 / -1; min-height: var(--tippflaeche); }
@media (min-width: 1024px) {
  .zr-felder { grid-template-columns: minmax(0, 200px) minmax(0, 200px) auto; justify-content: start; }
  .zr-zeigen { grid-column: auto; }
}
@media print { .zr-form { display: none; } }
.zr-datei { margin: 0; }
.zr-wahl { position: relative; cursor: pointer; }
.zr-wahl:has(input:checked) { background: var(--reiter-an); color: var(--ink); box-shadow: var(--schatten-1); }
.zr-wahl:has(input:focus-visible) { outline: 3px solid var(--fokus); outline-offset: 2px; }
