/* IV2027 – Basisstil nach Brand-Manual v0.1 */

/* ---------- Schriften (selbst gehostet, OFL) ---------- */
@font-face { font-family: "Inter"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/inter/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/inter/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/inter/Inter-SemiBold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-mono/IBMPlexMono-Regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-mono/IBMPlexMono-Medium.woff2") format("woff2"); }

/* ---------- Tokens (Brand-Manual Abschnitt 10) ---------- */
:root {
  color-scheme: light;
  --ink: #1E293B;
  --slate: #475569;
  --muted: #64748B;
  --line: #E2E8F0;
  --surface: #FFFFFF;
  --canvas: #FAFAF7;

  --orange: #EE7E01;
  --orange-text: #B45309;
  --orange-soft: #FFF4E6;
  --on-orange: #1E293B;

  --success: #15803D;
  --warning: #B45309;
  --danger: #B91C1C;
  --info: #0F766E;

  --phase-screening: #475569;
  --phase-intensiv: #EE7E01;
  --phase-berufsbegl: #0F766E;
  --phase-intervall: #4F46E5;
  --phase-booster: #A16207;
  --phase-nachbeob: #64748B;

  /* Logo-Fläche: im Dunkelmodus hell hinterlegt (Brand-Manual 2) */
  --logo-flaeche: transparent;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --schatten: 0 4px 12px rgb(15 23 42 / 0.08);
}

/* Dunkel: Systemeinstellung, sofern nicht manuell „hell“ gewählt */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #F1F5F9; --slate: #94A3B8; --muted: #94A3B8; --line: #334155;
    --surface: #1E293B; --canvas: #0F172A;
    --orange: #F59E0B; --orange-text: #FBBF24; --orange-soft: #2A2111; --on-orange: #0F172A;
    /* Statusfarben dunkel: Brand-Manual 3.5 */
    --success: #4ADE80; --warning: #FBBF24; --danger: #F87171; --info: #2DD4BF;
    --logo-flaeche: #FAFAF7;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #F1F5F9; --slate: #94A3B8; --muted: #94A3B8; --line: #334155;
  --surface: #1E293B; --canvas: #0F172A;
  --orange: #F59E0B; --orange-text: #FBBF24; --orange-soft: #2A2111; --on-orange: #0F172A;
  --success: #4ADE80; --warning: #FBBF24; --danger: #F87171; --info: #2DD4BF;
  --logo-flaeche: #FAFAF7;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 24px;
  color: var(--ink);
  background: var(--canvas);
}
h1, h2, h3 { margin: 0 0 16px; font-weight: 600; }
h1 { font-size: 28px; line-height: 36px; }
h2 { font-size: 20px; line-height: 28px; }
h3 { font-size: 16px; line-height: 24px; }
p { margin: 0 0 16px; }
a { color: var(--orange-text); }
a:hover { text-decoration-thickness: 2px; }
code, .mono { font-family: var(--font-mono); font-size: 13px; line-height: 20px; }
.klein { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--slate); }
.hilfe { font-size: 13px; line-height: 20px; color: var(--muted); }
.ziffern, table { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.icon { flex: none; vertical-align: middle; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Layout Behandler ---------- */
.layout { display: flex; min-height: 100vh; }
.seitenleiste {
  width: 240px; flex: none;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 16px 12px;
  position: sticky; top: 0; height: 100vh;
}
.logo {
  display: block; align-self: flex-start;
  background: var(--logo-flaeche);
  border-radius: var(--radius-md);
  padding: 12px; margin: 0 0 24px 4px;
}
.logo img { display: block; width: 140px; height: auto; }

.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.nav a, .nav span {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  color: var(--ink); text-decoration: none; font-weight: 500;
  border-left: 3px solid transparent;
}
.nav a:hover { background: var(--canvas); }
.nav a[aria-current="page"] { background: var(--orange-soft); border-left-color: var(--orange); }
.nav .inaktiv { color: var(--muted); cursor: default; }
.nav .inaktiv small { margin-left: auto; font-size: 12px; }
.nav-titel { margin: 16px 12px 4px; }

.seitenleiste-fuss { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.benutzer { display: flex; align-items: flex-start; gap: 8px; padding: 0 4px 12px; color: var(--slate); }
.fuss-zeile { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.inhalt { flex: 1; min-width: 0; padding: 32px; }
.inhalt-innen { max-width: 1200px; }

.kopfzeile-mobil { display: none; }

@media (max-width: 900px) {
  .layout { display: block; }
  .kopfzeile-mobil {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 16px; background: var(--surface); border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 20;
  }
  .kopfzeile-mobil .logo { margin: 0; padding: 6px; }
  .kopfzeile-mobil .logo img { width: 120px; }
  .seitenleiste {
    position: fixed; inset: 0 auto 0 0; z-index: 30;
    transform: translateX(-100%); transition: transform .2s ease;
  }
  .seitenleiste.offen { transform: none; box-shadow: var(--schatten); }
  .inhalt { padding: 24px 16px; }
}

/* ---------- Seitenkopf ---------- */
.seitenkopf { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.seitenkopf h1 { margin: 0; }
.seitenkopf p { margin: 4px 0 0; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 16px;
  font: inherit; font-weight: 600; line-height: 20px;
  border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--canvas); }
.btn-primaer { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.btn-primaer:hover { background: var(--orange); filter: brightness(0.95); }
.btn-destruktiv { color: var(--danger); }
.btn-klein { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.btn-ikon { min-height: 32px; padding: 6px; border-color: transparent; background: transparent; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; filter: none; }
.btn-zeile { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hell/Dunkel-Umschalter */
.thema { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.thema button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 30px; padding: 0; border: 0; background: transparent;
  color: var(--slate); cursor: pointer;
}
.thema button + button { border-left: 1px solid var(--line); }
.thema button[aria-pressed="true"] { background: var(--orange-soft); color: var(--ink); }

/* ---------- Formulare ---------- */
.feld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.feld label, .feld legend { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--slate); }
.eingabe, .feld input[type="text"], .feld input[type="password"], .feld input[type="email"],
.feld input[type="number"], .feld input[type="date"], .feld select, .feld textarea {
  font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  min-height: 40px; padding: 8px 12px; width: 100%;
}
.feld textarea { min-height: 96px; resize: vertical; }
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange);
}
.feld.fehler input, .feld.fehler select, .feld.fehler textarea { border-color: var(--danger); }
.feldfehler { font-size: 13px; line-height: 20px; color: var(--danger); margin: 0; }
fieldset.feld { border: 0; padding: 0; margin: 0 0 16px; }
.auswahl { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--ink); }
.auswahl input { width: 18px; height: 18px; accent-color: var(--orange); margin: 0; }

/* ---------- Karten ---------- */
.karte {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 24px;
}
.karte + .karte { margin-top: 24px; }
.raster { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- Status-Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px;
  font-size: 13px; line-height: 20px; font-weight: 500;
  color: var(--ink); background: color-mix(in srgb, var(--slate) 10%, transparent);
}
.chip-erfolg  { color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); }
.chip-warnung { color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); }
.chip-gefahr  { color: var(--danger);  background: color-mix(in srgb, var(--danger) 10%, transparent); }
.chip-info    { color: var(--info);    background: color-mix(in srgb, var(--info) 10%, transparent); }

/* Phasen-Chip: Farbe nur als Marker (Punkt) */
.phase { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 13px; line-height: 20px; font-weight: 500; }
.phase::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--phase-farbe, var(--muted)); }
.phase-screening   { --phase-farbe: var(--phase-screening); }
.phase-intensiv    { --phase-farbe: var(--phase-intensiv); }
.phase-berufsbegl  { --phase-farbe: var(--phase-berufsbegl); }
.phase-intervall   { --phase-farbe: var(--phase-intervall); }
.phase-booster     { --phase-farbe: var(--phase-booster); }
.phase-nachbeob    { --phase-farbe: var(--phase-nachbeob); }

/* ---------- Hinweise ---------- */
.hinweis {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 16px; border-radius: var(--radius-md);
  border: 1px solid var(--line); border-left: 4px solid var(--info);
  background: var(--surface); margin-bottom: 16px;
}
.hinweis p { margin: 0; }
.hinweis-info    { border-left-color: var(--info); }
.hinweis-erfolg  { border-left-color: var(--success); }
.hinweis-warnung { border-left-color: var(--warning); background: var(--orange-soft); }
.hinweis-gefahr  { border-left-color: var(--danger); }
.hinweis .icon { margin-top: 2px; }
.hinweis-info .icon { color: var(--info); }
.hinweis-erfolg .icon { color: var(--success); }
.hinweis-warnung .icon { color: var(--warning); }
.hinweis-gefahr .icon { color: var(--danger); }

/* ---------- Tabellen ---------- */
.tabelle-rahmen { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
table.tabelle { width: 100%; border-collapse: collapse; }
.tabelle th, .tabelle td { height: 44px; padding: 8px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.tabelle th { font-size: 13px; line-height: 20px; font-weight: 500; color: var(--slate); }
.tabelle tr:last-child td { border-bottom: 0; }
.tabelle tr.ausgewaehlt td { background: var(--orange-soft); }
.tabelle td.zahl, .tabelle th.zahl { text-align: right; }

/* ---------- Fortschritt ---------- */
.fortschritt { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.fortschritt > span { display: block; height: 100%; background: var(--orange); border-radius: inherit; }
.fortschritt.voll > span { background: var(--success); }

/* ---------- Leerer Zustand ---------- */
.leer { text-align: center; padding: 48px 24px; }
.leer .icon { color: var(--muted); margin-bottom: 12px; }
.leer p { color: var(--slate); }

/* ---------- Login ---------- */
.login-seite { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-box { width: 100%; max-width: 400px; }
.login-box .logo { margin: 0 auto 32px; align-self: center; display: table; }
.login-box .logo img { width: 200px; }
.login-box .karte { padding: 32px; }
.login-box .btn-primaer { width: 100%; margin-top: 8px; }
.login-fuss { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- Suche ---------- */
.suche { display: flex; gap: 8px; margin-bottom: 16px; max-width: 640px; }
.suche .eingabe { flex: 1; }
.eingabe:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }

/* ---------- Datenliste (Label/Wert) ---------- */
.daten { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; }
.daten dt { font-size: 13px; line-height: 24px; font-weight: 500; color: var(--slate); }
.daten dd { margin: 0; }
.raster > .karte + .karte { margin-top: 0; }

/* ---------- Fragebögen ---------- */
.patientenansicht { max-width: 640px; font-size: 17px; line-height: 28px; }
.patientenansicht .auswahl { font-size: 17px; }
.behandleransicht { max-width: 860px; }
.fb-einleitung { color: var(--slate); }
.fb-abschnitt { margin-top: 24px; }
.fb-abschnitt h3 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.frage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 16px 20px; margin-bottom: 12px;
}
.frage.fehler { border-color: var(--danger); }
.frage fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.frage-text { display: block; font-weight: 500; margin-bottom: 12px; padding: 0; }
.optionen { display: flex; flex-direction: column; gap: 4px; }
.optionen .auswahl { padding: 6px 8px; border-radius: var(--radius-sm); cursor: pointer; align-items: flex-start; }
.optionen .auswahl:hover { background: var(--canvas); }
.optionen .auswahl input { margin-top: 3px; }
.frage .eingabe { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); min-height: 40px; padding: 8px 12px; width: 100%; }
.frage .eingabe-kurz { max-width: 220px; }
.frage .feldfehler { margin-top: 8px; }

.skala-knoepfe { display: flex; flex-wrap: wrap; gap: 6px; }
.skala-knoepfe label { position: relative; }
.skala-knoepfe input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.skala-knoepfe span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 600; font-variant-numeric: tabular-nums;
}
.skala-knoepfe input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--on-orange); }
.skala-knoepfe input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.skala-labels { display: flex; justify-content: space-between; gap: 16px; margin-top: 6px; }

.skala-regler { display: flex; align-items: center; gap: 16px; }
.skala-regler input[type="range"] {
  flex: 1; -webkit-appearance: none; appearance: none; background: transparent; height: 32px; margin: 0; cursor: pointer;
}
/* Schiene: links vom Wert orange (Anteil per JS), sonst line */
.skala-regler input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(to right, var(--orange) var(--anteil, 0%), var(--line) var(--anteil, 0%));
}
.skala-regler input[type="range"]::-moz-range-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(to right, var(--orange) var(--anteil, 0%), var(--line) var(--anteil, 0%));
}
.skala-regler input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--orange); box-shadow: var(--schatten);
}
.skala-regler input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--orange);
}
/* Unberührt: keine Füllung, Knopf grau – sonst wirkt die Mitte wie ausgewählt */
.skala-regler input[type="range"].unberuehrt::-webkit-slider-runnable-track { background: var(--line); }
.skala-regler input[type="range"].unberuehrt::-moz-range-track { background: var(--line); }
.skala-regler input[type="range"].unberuehrt::-webkit-slider-thumb { border-color: var(--muted); }
.skala-regler input[type="range"].unberuehrt::-moz-range-thumb { border-color: var(--muted); }
.skala-regler input[type="range"]:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; border-radius: 4px; }
.skala-wert { min-width: 3ch; font-size: 20px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.skala-tipp { margin: 4px 0 0; }
.skala-regler:has(input:not(.unberuehrt)) ~ .skala-tipp { display: none; }

.schritt-knoepfe { margin-top: 24px; }
.antworten dd { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .daten { grid-template-columns: 1fr; gap: 0; }
  .daten dd { margin-bottom: 12px; }
}
.tabelle tr.storniert td { color: var(--muted); }
.tabelle tr.storniert td:not(:last-child) { text-decoration: line-through; }
.demo-banner { margin-bottom: 24px; }
.nowrap { white-space: nowrap; }

/* ---------- Patientenansicht ---------- */
.patient-kopf { background: var(--surface); border-bottom: 1px solid var(--line); }
.patient-kopf-innen { max-width: 640px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; }
.logo-klein { margin: 0; padding: 6px; }
.logo-klein img { width: 120px; }
.patient-inhalt { margin: 0 auto; padding: 24px 16px 48px; }
.patient-zentrum { margin: 0 0 8px; }
.patient-name { font-weight: 600; margin-bottom: 4px; }
.patient-fuss { max-width: 640px; margin: 0 auto; padding: 0 16px 32px; }
.btn-breit { width: 100%; min-height: 48px; font-size: 17px; }
.schritt-knoepfe .btn-breit { order: -1; }
.geburtsdatum { border: 0; padding: 0; margin: 0 0 16px; }
.geburtsdatum-felder { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 12px; }
.geburtsdatum-felder .feld { margin: 0; }
.geburtsdatum-felder .eingabe { font-size: 20px; text-align: center; min-height: 52px; }
.patientenansicht .karte + .karte { margin-top: 16px; }

/* ---------- QR-Zugang (druckbar) ---------- */
.druckblatt { max-width: 560px; }
.qr-flaeche { background: #FFFFFF; padding: 12px; border-radius: var(--radius-md); width: 260px; margin: 16px 0; }
.qr-flaeche svg { display: block; width: 100%; height: auto; }
.anleitung { padding-left: 20px; }
.link-text { overflow-wrap: anywhere; color: var(--slate); }
@media print {
  .seitenleiste, .kopfzeile-mobil, .nicht-drucken, .demo-banner, .hinweis { display: none !important; }
  body, .inhalt { background: #FFFFFF; color: #000000; padding: 0; }
  .druckblatt { border: 0; }
}
.fb-block { margin-bottom: 32px; }
.fb-block > h2 { padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.antworten { grid-template-columns: minmax(180px, 2fr) 1fr; }

/* ---------- Zeitleiste (Brand-Manual 6) ---------- */
.zl-raster { display: grid; grid-template-columns: 64px 1fr; row-gap: 6px; align-items: center; }
.zl-label { color: var(--slate); }
.zl-bahn { position: relative; height: 28px; margin: 0 10px; }
.zl-phasen { height: 44px; }
.zl-segment {
  position: absolute; top: 0; height: 100%; border-top: 6px solid var(--phase-farbe, var(--muted));
  font-size: 12px; line-height: 16px; color: var(--slate); overflow: hidden; white-space: nowrap; padding: 4px 4px 0;
}
.zl-segment.aktuell { color: var(--ink); font-weight: 600; border-top-width: 10px; background: color-mix(in srgb, var(--phase-farbe) 8%, transparent); }
.zl-heute { position: absolute; top: -4px; bottom: -110px; border-left: 2px dashed var(--orange); z-index: 2; pointer-events: none; }
.zl-heute span { position: absolute; top: -16px; left: 4px; font-size: 11px; color: var(--orange-text); font-weight: 600; }
.zl-punkt {
  position: absolute; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%);
  border: 2px solid var(--info); background: var(--surface); display: inline-block; z-index: 1;
}
.zl-punkt.patient { border-radius: 50%; }
.zl-punkt.zentrum { border-radius: 2px; }
.zl-punkt.st-faellig, .zl-punkt.st-begonnen { background: var(--warning); border-color: var(--warning); }
.zl-punkt.st-abgeschlossen { background: var(--success); border-color: var(--success); }
.zl-punkt.st-verfallen, .zl-punkt.st-ueberfaellig { background: var(--danger); border-color: var(--danger); }
a.zl-punkt:hover, a.zl-punkt:focus-visible { width: 18px; height: 18px; outline-offset: 2px; }
.zl-achse { height: 20px; border-top: 1px solid var(--line); }
.zl-tick { position: absolute; top: 2px; font-size: 11px; color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.zl-tick::before { content: ""; position: absolute; top: -6px; left: 50%; height: 5px; border-left: 1px solid var(--line); }
.zl-legende { display: flex; flex-wrap: wrap; gap: 4px 16px; list-style: none; padding: 0; margin: 16px 0 0; }
.zl-legende li { display: inline-flex; align-items: center; gap: 6px; }
.zl-legende .zl-punkt { position: static; transform: none; }
.aufgaben { list-style: none; margin: 0; padding: 0; }
.aufgaben li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.aufgaben li:first-child { border-top: 0; }
.kennzahlen { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.kennzahlen .karte + .karte { margin-top: 0; }
.kennzahl { display: flex; flex-direction: column; gap: 4px; padding: 16px 20px; text-decoration: none; color: inherit; }
.kz-wert { font-size: 28px; line-height: 36px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kz-gefahr .kz-wert { color: var(--danger); }
.phase-aufnahme-chip, .phase-screening-chip { --phase-farbe: var(--phase-screening); }
.phase-2a-chip { --phase-farbe: var(--phase-intensiv); }
.phase-2b-chip { --phase-farbe: var(--phase-berufsbegl); }
.phase-2c-chip { --phase-farbe: var(--phase-intervall); }
.phase-nach_behandlung-chip { --phase-farbe: var(--phase-booster); }
.phase-ohne_einschluss-chip, .phase-nachbeobachtung-chip, .phase-abgeschlossen-chip { --phase-farbe: var(--phase-nachbeob); }
.zl-zeitraeume { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.zl-zeitraeume .phase.aktuell { border-color: var(--phase-farbe); font-weight: 600; }
@media (max-width: 700px) {
  .zl-tick-neben { display: none; }
  .zl-segment span { display: none; }
  .zl-raster { grid-template-columns: 56px 1fr; }
}
