/* Gesundheitstagebuch – mobile first, hell/dunkel */
:root {
  --bg: #f3f5f9;
  --karte: #ffffff;
  --text: #1a2233;
  --leise: #5d6b82;
  --linie: #dde3ec;
  --primaer: #1f6feb;
  --primaer-text: #ffffff;
  --gefahr: #c62828;
  --eingabe: #f7f9fc;
  --schatten: 0 1px 3px rgba(20, 30, 50, .08), 0 4px 14px rgba(20, 30, 50, .05);

  /* Ampel (ESH) */
  --z-optimal: #1e9e57;
  --z-normal: #7cc243;
  --z-hochnormal: #f2c21b;
  --z-grad1: #f08a24;
  --z-grad2: #e0452b;
  --z-grad3: #9e1b32;

  /* BMI (WHO) */
  --b-unter: #4aa3df;
  --b-normal: #1e9e57;
  --b-ueber: #f2c21b;
  --b-adi1: #f08a24;
  --b-adi2: #e0452b;
  --b-adi3: #9e1b32;

  /* Diagramm-Linien */
  --s-sys: #e0452b;
  --s-dia: #1f6feb;
  --s-puls: #9b51e0;
  --s-gewicht: #1e9e57;

  --radius: 16px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f141c;
    --karte: #19202b;
    --text: #e7ecf3;
    --leise: #95a3b8;
    --linie: #2b3544;
    --primaer: #4d8ff5;
    --eingabe: #121821;
    --gefahr: #ef5350;
    --schatten: 0 1px 3px rgba(0, 0, 0, .4);
    --s-dia: #5b9bff;
    --s-sys: #ff6b50;
    --s-puls: #b98af0;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
body.mit-nav { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 16px); }
a { color: var(--primaer); }
h1, h2, h3 { line-height: 1.2; }
code { background: var(--eingabe); padding: 1px 5px; border-radius: 5px; }

/* ---------- Kopf ---------- */
.kopf {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(env(safe-area-inset-top) + 12px) 16px 12px;
  background: var(--primaer); color: var(--primaer-text);
}
.kopf h1 { margin: 0; font-size: 1.2rem; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.abmelden { margin: 0; }
.link-knopf { background: none; border: 0; color: inherit; font: inherit; font-size: .9rem; opacity: .9; cursor: pointer; padding: 6px 0; }

.inhalt { max-width: 640px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }

/* ---------- Karten & Texte ---------- */
.karte { background: var(--karte); border-radius: var(--radius); padding: 16px; box-shadow: var(--schatten); }
.karte.schmal { max-width: 420px; width: 100%; margin: 24px auto 0; }
.karte h2 { margin-top: 0; }
.klein-titel { font-size: .85rem; font-weight: 600; color: var(--leise); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .04em; }
.mitte { text-align: center; }
.klein, small { font-size: .85rem; color: var(--leise); }
.hinweis { font-size: .8rem; color: var(--leise); text-align: center; margin: 4px 0; }
.leer { text-align: center; color: var(--leise); padding: 24px 8px; display: grid; gap: 12px; justify-items: center; }
.logo-gross { text-align: center; margin-top: 4px; }

/* ---------- Meldungen ---------- */
.meldung { padding: 12px 14px; border-radius: 12px; font-weight: 500; }
.meldung-ok { background: color-mix(in srgb, var(--z-optimal) 16%, var(--karte)); border: 1px solid color-mix(in srgb, var(--z-optimal) 45%, transparent); }
.meldung-fehler { background: color-mix(in srgb, var(--gefahr) 13%, var(--karte)); border: 1px solid color-mix(in srgb, var(--gefahr) 45%, transparent); }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 14px; }
.formular label { display: grid; gap: 6px; font-weight: 550; font-size: .95rem; }
input, select, textarea {
  font: inherit; color: var(--text);
  background: var(--eingabe); border: 1px solid var(--linie); border-radius: 10px;
  padding: 11px 12px; width: 100%; min-height: 46px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primaer); outline-offset: 1px; border-color: transparent; }
textarea { resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 550; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.zeile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
label.haken { display: flex; align-items: center; gap: 10px; font-weight: 400; }
label.haken input { width: 22px; min-height: 22px; height: 22px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primaer); color: var(--primaer-text);
  border: 0; border-radius: 12px; padding: 12px 18px; min-height: 46px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.knopf:active { transform: scale(.98); }
.knopf.gross { width: 100%; font-size: 1.1rem; min-height: 54px; }
.knopf.zweit { background: var(--eingabe); color: var(--text); border: 1px solid var(--linie); }
.knopf.gefahr { background: transparent; color: var(--gefahr); border: 1px solid currentColor; width: 100%; }
.knopf.rund { width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 1.5rem; }
.knopf.aus { opacity: .35; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex !important; font-weight: 400 !important; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.chip span {
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--linie); background: var(--eingabe);
  cursor: pointer; user-select: none; font-size: .95rem;
}
.chip input:checked + span { background: var(--primaer); color: var(--primaer-text); border-color: var(--primaer); }
.chip input:focus-visible + span { outline: 2px solid var(--primaer); outline-offset: 2px; }
.arm-wahl { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.arm-wahl legend { width: 100%; }

/* ---------- Werteingabe ---------- */
.werte-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wert-feld { display: grid; gap: 6px; text-align: center; }
.wert-feld label { display: grid; gap: 0; font-weight: 650; font-size: .95rem; }
.wert-feld label small { font-weight: 400; font-size: .75rem; }
.wert-feld input {
  text-align: center; font-size: 2.1rem; font-weight: 700; padding: 8px 2px; min-height: 64px;
  -moz-appearance: textfield; appearance: textfield;
}
.wert-feld input::-webkit-outer-spin-button, .wert-feld input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper {
  font: inherit; font-size: 1.6rem; line-height: 1; min-height: 44px; border-radius: 10px;
  border: 1px solid var(--linie); background: var(--eingabe); color: var(--text); cursor: pointer;
  touch-action: manipulation; user-select: none;
}
.stepper:active { background: var(--linie); }

/* ---------- Ampel ---------- */
.ampel-anzeige { margin-top: 16px; }
.ampel-leiste { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; height: 14px; }
.ampel-leiste span { border-radius: 4px; opacity: .35; position: relative; transition: opacity .2s, transform .2s; }
.ampel-leiste span.an { opacity: 1; transform: scaleY(1.45); }
.ampel-leiste span.an::after {
  content: ""; position: absolute; left: 50%; top: -12px; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--text); border-bottom: 0;
}
.ampel-text { text-align: center; font-weight: 700; font-size: 1.15rem; margin: 12px 0 0; }

.z-optimal { background: var(--z-optimal); }
.z-normal { background: var(--z-normal); }
.z-hochnormal { background: var(--z-hochnormal); }
.z-grad1 { background: var(--z-grad1); }
.z-grad2 { background: var(--z-grad2); }
.z-grad3 { background: var(--z-grad3); }
.z-text-optimal { color: var(--z-optimal); }
.z-text-normal { color: color-mix(in srgb, var(--z-normal) 75%, var(--text)); }
.z-text-hochnormal { color: color-mix(in srgb, var(--z-hochnormal) 70%, var(--text)); }
.z-text-grad1 { color: var(--z-grad1); }
.z-text-grad2 { color: var(--z-grad2); }
.z-text-grad3 { color: var(--z-grad3); }
@media (prefers-color-scheme: dark) {
  .z-text-grad3 { color: #ff6b81; }
  .z-text-grad2 { color: #ff7a5c; }
}

.punkt { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; }
.punkt.klein { width: 10px; height: 10px; vertical-align: middle; }

/* ---------- Startseite ---------- */
.gross-werte { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 4px 0 18px; }
.gross-werte div { display: grid; }
.gross-werte .zahl { font-size: 2.5rem; font-weight: 750; line-height: 1.1; }
.schnitt-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.schnitt-raster > div { display: grid; gap: 2px; }
.schnitt-raster strong { font-size: 1.35rem; }

/* ---------- Listen ---------- */
.tag-kopf { font-size: .9rem; color: var(--leise); margin: 10px 4px 6px; font-weight: 600; }
.liste { background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten); overflow: hidden; }
.messung {
  display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 4px 12px;
  padding: 12px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--linie);
}
.messung:last-child { border-bottom: 0; }
.messung:hover { background: var(--eingabe); }
.messung .zeit { color: var(--leise); font-variant-numeric: tabular-nums; font-size: .9rem; display: grid; }
.messung .zeit small { font-size: .75rem; }
.messung .werte strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.messung .zone { font-size: .8rem; color: var(--leise); text-align: right; }
.messung .details { grid-column: 2 / -1; font-size: .82rem; color: var(--leise); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.tag { background: var(--eingabe); border: 1px solid var(--linie); border-radius: 999px; padding: 1px 8px; font-size: .78rem; }
.zusammenfassung { margin: 0 4px; color: var(--leise); }
.zusammenfassung strong { color: var(--text); }

/* ---------- Filter ---------- */
.filter summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 8px; }
.filter summary::-webkit-details-marker { display: none; }
.filter summary::before { content: "🔍"; }
.filter[open] summary { margin-bottom: 14px; }
.zaehler { background: var(--primaer); color: var(--primaer-text); border-radius: 999px; font-size: .75rem; padding: 1px 8px; }

/* ---------- Kalender ---------- */
.monat-kopf { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.monat-kopf h2 { margin: 0; font-size: 1.2rem; }
.kal-raster { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; text-align: center; }
.kal-raster .wt { font-size: .75rem; color: var(--leise); font-weight: 600; padding-bottom: 4px; }
.kal-tag {
  width: 100%; aspect-ratio: 1; min-width: 0; align-self: start; border-radius: 10px; display: grid; place-content: center; line-height: 1.05;
  font-weight: 650; text-decoration: none; color: #fff; font-variant-numeric: tabular-nums;
}
.kal-tag small { color: inherit; opacity: .85; font-size: .65rem; font-weight: 500; }
.kal-tag.z-normal, .kal-tag.z-hochnormal { color: #1a2233; }
.kal-tag.frei { color: var(--leise); background: var(--eingabe); font-weight: 400; }
.kal-tag.heute { outline: 2px solid var(--primaer); outline-offset: 1px; }
.legende h3 { margin: 0 0 4px; font-size: 1rem; }
.legende ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.legende li { display: flex; align-items: center; gap: 10px; }
.legende li small { margin-left: auto; }

/* ---------- Navigation unten ---------- */
.navi {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--karte); border-top: 1px solid var(--linie);
}
.navi a {
  display: grid; justify-items: center; align-content: center; gap: 3px;
  color: var(--leise); text-decoration: none; font-size: .75rem; font-weight: 550;
}
.navi a.aktiv { color: var(--primaer); }
.navi svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.loeschen-form { margin-top: 4px; }

@media (min-width: 700px) {
  .inhalt { padding: 24px; }
  .navi { max-width: 640px; margin: 0 auto; border: 1px solid var(--linie); border-bottom: 0; border-radius: 16px 16px 0 0; }
}

/* ================= Etappe 2 ================= */

/* ---------- Umschalter (Zeitraum, Liste/Kalender) ---------- */
.segment {
  display: flex; gap: 4px; padding: 4px; background: var(--karte); border-radius: 12px; box-shadow: var(--schatten);
  overflow-x: auto; scrollbar-width: none;
}
.segment::-webkit-scrollbar { display: none; }
.segment a {
  flex: 1 0 auto; text-align: center; padding: 8px 10px; border-radius: 9px; text-decoration: none;
  color: var(--leise); font-weight: 600; font-size: .9rem; white-space: nowrap;
}
.segment a.aktiv { background: var(--primaer); color: var(--primaer-text); }

/* ---------- Diagramme ---------- */
.diagramm { width: 100%; height: auto; display: block; overflow: visible; }
.diagramm .gitter { stroke: var(--linie); stroke-width: 1; }
.diagramm .achse { fill: var(--leise); font-size: 13px; font-family: inherit; }
.diagramm .referenz { stroke: var(--leise); stroke-width: 1.2; stroke-dasharray: 5 4; }
.diagramm .referenz-text { fill: var(--leise); font-size: 12px; }
.diagramm .serie path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.diagramm .serie circle { stroke: var(--karte); stroke-width: 1.2; }
.diagramm .s-sys path { stroke: var(--s-sys); } .diagramm .s-sys circle { fill: var(--s-sys); }
.diagramm .s-dia path { stroke: var(--s-dia); } .diagramm .s-dia circle { fill: var(--s-dia); }
.diagramm .s-puls path { stroke: var(--s-puls); } .diagramm .s-puls circle { fill: var(--s-puls); }
.diagramm .s-gewicht path { stroke: var(--s-gewicht); } .diagramm .s-gewicht circle { fill: var(--s-gewicht); }
.legende-zeile { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .82rem; color: var(--leise); margin: 8px 0 0; }
.strich { display: inline-block; width: 18px; height: 3px; border-radius: 2px; margin-left: 6px; }
.strich:first-child { margin-left: 0; }
.strich.s-sys { background: var(--s-sys); }
.strich.s-dia { background: var(--s-dia); }
.strich.referenz { background: none; border-top: 2px dashed var(--leise); height: 0; }

/* ---------- Verteilung ---------- */
.verteilung { display: flex; height: 18px; border-radius: 6px; overflow: hidden; gap: 2px; }
.verteilung span { min-width: 3px; }
.verteilung-liste { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; }
.verteilung-liste li { display: flex; align-items: center; gap: 10px; }
.verteilung-liste .wert { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; }
.verteilung-liste small { width: 3.2em; text-align: right; }

/* ---------- Tabellen ---------- */
.tabelle { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
.tabelle th, .tabelle td { padding: 7px 6px; border-bottom: 1px solid var(--linie); text-align: right; }
.tabelle th:first-child, .tabelle td:first-child { text-align: left; }
.tabelle thead th { font-size: .78rem; color: var(--leise); font-weight: 600; text-transform: uppercase; }
.tabelle tbody th { font-weight: 550; }
.tabelle tbody th small { font-weight: 400; }
.tabelle .leise, .leise { color: var(--leise); }

/* ---------- BMI ---------- */
.b-unter { background: var(--b-unter); }
.b-normal { background: var(--b-normal); }
.b-ueber { background: var(--b-ueber); }
.b-adi1 { background: var(--b-adi1); }
.b-adi2 { background: var(--b-adi2); }
.b-adi3 { background: var(--b-adi3); }
.bmi-ergebnis { text-align: center; margin-bottom: 14px; display: grid; }
.bmi-zahl { font-size: 3.2rem; font-weight: 750; line-height: 1; font-variant-numeric: tabular-nums; }
.regler { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px; margin-bottom: 18px; }
.regler > label { font-weight: 600; }
.regler-wert { display: flex; align-items: baseline; gap: 6px; }
.regler-wert input { width: 6.5em; text-align: right; font-size: 1.35rem; font-weight: 700; padding: 6px 10px; min-height: 44px; }
.regler input[type=range] { grid-column: 1 / -1; width: 100%; min-height: 32px; padding: 0; background: none; border: 0; accent-color: var(--primaer); }
.gewicht-zeile { grid-template-columns: auto auto 1fr auto; }
.gewicht-zeile form { margin: 0; }
.link-knopf.leise { color: var(--leise); font-size: 1.1rem; padding: 4px 8px; }

/* ---------- Bericht (Druck) ---------- */
body.bericht { background: #fff; color: #111; color-scheme: light;
  --karte: #fff; --text: #111; --leise: #555; --linie: #d5d9e0; --eingabe: #f3f5f8; --s-dia: #1f6feb; --s-sys: #e0452b; --s-puls: #9b51e0; }
.bericht-leiste { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; background: #f3f5f9; position: sticky; top: 0; z-index: 3; }
.bericht-auswahl { max-width: 900px; margin: 12px auto 0; padding: 0 16px; }
.bericht-seite { max-width: 900px; margin: 0 auto; padding: 16px; }
.bericht-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-bottom: 2px solid #111; padding-bottom: 10px; margin-bottom: 16px; }
.bericht-kopf h1 { margin: 0 0 4px; font-size: 1.5rem; }
.bericht-kopf p { margin: 2px 0; font-size: .92rem; }
.bericht-kopf .rechts { text-align: right; }
.bericht-block { margin-bottom: 22px; break-inside: avoid; }
.bericht-block h2 { font-size: 1.1rem; border-bottom: 1px solid #ccc; padding-bottom: 4px; }
.bericht-block h3 { font-size: .95rem; margin: 16px 0 8px; }
.bericht-block .diagramm { margin-bottom: 12px; }
.tabellen-block { break-inside: auto; }
.messtabelle { font-size: .85rem; }
.messtabelle td, .messtabelle th { padding: 4px 5px; }
.messtabelle td:last-child { text-align: left; }
.messtabelle th:nth-child(6), .messtabelle td:nth-child(6), .messtabelle th:last-child { text-align: left; }
.bericht .hinweis { margin-top: 20px; break-before: avoid; }

@media print {
  @page { size: A4; margin: 14mm 12mm; }
  .nicht-drucken { display: none !important; }
  .bericht-seite { padding: 0; max-width: none; }
  body.bericht { font-size: 11pt; }
  .messtabelle tr { break-inside: avoid; }
  .bericht-block { margin-bottom: 14px; }
  .tabelle th, .tabelle td { padding: 4px 6px; }
  .messtabelle { font-size: 9pt; }
  .messtabelle td, .messtabelle th { padding: 2.5px 5px; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.gewicht-karte { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; padding: 14px 16px; }
.gewicht-karte small:last-child { margin-left: auto; }

/* ================= Etappe 2b: Sprachen, Hilfe, Vorstellung ================= */

/* ---------- Kopfzeile: Symbole & Sprache ---------- */
.kopf-rechts { display: flex; align-items: center; gap: 4px; flex: none; }
.kopf-icon {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  color: var(--primaer-text); background: none; border: 0; cursor: pointer; padding: 0;
}
.kopf-icon:hover, .kopf-icon:focus-visible { background: rgba(255, 255, 255, .16); }
.kopf-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sprachwahl { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--eingabe); border: 1px solid var(--linie); }
.sprachwahl a {
  min-width: 38px; text-align: center; padding: 5px 8px; border-radius: 7px;
  font-size: .82rem; font-weight: 700; letter-spacing: .03em; text-decoration: none; color: var(--leise);
}
.sprachwahl a.aktiv { background: var(--primaer); color: var(--primaer-text); }
.sprachwahl.hell { background: rgba(255, 255, 255, .14); border-color: transparent; }
.sprachwahl.hell a { color: rgba(255, 255, 255, .85); min-width: 32px; padding: 4px 6px; }
.sprachwahl.hell a.aktiv { background: #fff; color: var(--primaer); }
.sprachwahl.gross a { min-width: 64px; padding: 9px 12px; font-size: .95rem; }
.sprachwahl.inline { vertical-align: middle; margin-left: 6px; }
.fuss-sprache { display: flex; justify-content: center; }

/* ---------- Hilfe ---------- */
.einleitung { margin: 0 4px; color: var(--leise); }
.inhaltsverzeichnis { display: flex; flex-wrap: wrap; gap: 6px; }
.inhaltsverzeichnis a {
  font-size: .85rem; padding: 6px 12px; border-radius: 999px; text-decoration: none;
  background: var(--karte); border: 1px solid var(--linie); color: var(--text);
}
.faq { display: grid; gap: 10px; }
.faq-eintrag { padding: 0; scroll-margin-top: 80px; }
.faq-eintrag summary {
  cursor: pointer; list-style: none; padding: 16px 44px 16px 16px; font-weight: 650; position: relative;
}
.faq-eintrag summary::-webkit-details-marker { display: none; }
.faq-eintrag summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--leise); border-bottom: 2px solid var(--leise); transform: rotate(45deg); transition: transform .2s;
}
.faq-eintrag[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-eintrag[open] summary { border-bottom: 1px solid var(--linie); }
.faq-text { padding: 4px 16px 14px; line-height: 1.55; }
.faq-text li { margin-bottom: 6px; }
.faq-text ol, .faq-text ul { padding-left: 1.3em; }
.hilfe-tabelle { margin: 10px 0; }
.hilfe-tabelle tbody th { display: flex; align-items: center; gap: 8px; font-weight: 500; }

/* ---------- Vorstellungsseite ---------- */
.info-seite .inhalt { max-width: 960px; gap: 28px; }
.held { display: grid; gap: 24px; align-items: center; padding-top: 8px; }
.held-text h2 { font-size: clamp(1.8rem, 6vw, 2.7rem); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.01em; }
.held-text p { font-size: 1.1rem; color: var(--leise); margin: 0 0 20px; max-width: 34em; }
.held-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.held-bild { display: flex; justify-content: center; }
.telefon {
  width: min(300px, 100%); background: var(--karte); border-radius: 32px; padding: 22px 18px 16px;
  box-shadow: 0 20px 50px rgba(20, 40, 90, .18), 0 0 0 8px color-mix(in srgb, var(--primaer) 12%, transparent);
  display: grid; gap: 10px;
}
.telefon-kopf { font-size: .75rem; font-weight: 700; color: var(--leise); text-transform: uppercase; letter-spacing: .05em; }
.telefon .gross-werte { margin: 0 0 6px; }
.telefon .gross-werte .zahl { font-size: 2.1rem; }
.telefon .ampel-text { margin: 4px 0; font-size: 1rem; }
.mini-verlauf { display: grid; gap: 6px; border-top: 1px solid var(--linie); padding-top: 10px; }
.mini-verlauf div { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.mini-verlauf small { margin-left: auto; font-size: .72rem; }
.telefon-beispiel { text-align: center; font-size: .7rem; opacity: .7; }
.abschnitt-titel { font-size: 1.35rem; margin: 0 4px 12px; }
.funktionen { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.funktion h3 { margin: 10px 0 6px; font-size: 1.05rem; }
.funktion p { margin: 0; color: var(--leise); line-height: 1.5; }
.funktion-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--primaer) 14%, transparent); color: var(--primaer);
}
.funktion-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.schritte { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.schritte li { display: flex; gap: 14px; align-items: flex-start; }
.schritte h3 { margin: 2px 0 4px; font-size: 1.05rem; }
.schritte p { margin: 0; color: var(--leise); line-height: 1.5; }
.schritt-nr {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primaer); color: var(--primaer-text); font-weight: 750;
}
.zwei-spalten { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.abschluss { text-align: center; display: grid; gap: 12px; justify-items: center; }
.abschluss p { margin: 0; color: var(--leise); }
.abschluss .knopf { min-width: 200px; }

@media (min-width: 760px) {
  .held { grid-template-columns: 1.15fr 1fr; padding: 24px 0 8px; }
}
@media (max-width: 420px) {
  .kopf h1 { font-size: 1.05rem; }
  .sprachwahl.hell a { min-width: 28px; padding: 4px 5px; font-size: .75rem; }
}
