/* feh-home: Gestaltung „Papier und Tinte“ (Neubau 13.11.2026, docs/design/papier-und-tinte.md). Die Maße für die
   Bedienung stammen weiter aus dem Umbau nach den HIG von Apple (30.10.2026, docs/design/apple-hig.md): Tippflächen,
   Feldgrößen, Textstufen. Hell oder dunkel folgt allein der iPhone-Einstellung (kein eigener Schalter in der App).
   Keine Inline-Styles, damit die CSP ohne 'unsafe-inline' auskommt. Alle Werte kommen aus den Tokens hier oben. */

:root {
  color-scheme: light dark;

  /* Schrift: Systemschrift für Text und Bedienung, Titel und große Zahlen in der Serifenschrift des Systems (am
     iPhone New York, sonst Iowan, Palatino oder Georgia). Keine eigenen Schriftdateien */
  --schrift: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --schrift-titel: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --schrift-zahl: var(--schrift-titel);
  --schrift-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Textstile der HIG für iOS in der Größe „Groß“, 1rem = Body 17 pt. In rem, damit sie mit der Textgröße des iPhones
     wachsen (html unten: -apple-system-body). Nie kleiner als Caption 2 = 11 pt */
  --t-large: 2rem;        /* 34 Large Title */
  --t-title1: 1.647rem;   /* 28 */
  --t-title2: 1.294rem;   /* 22 */
  --t-title3: 1.176rem;   /* 20 */
  --t-headline: 1rem;     /* 17 halbfett */
  --t-body: 1rem;         /* 17 */
  --t-callout: 0.941rem;  /* 16 */
  --t-subhead: 0.882rem;  /* 15 */
  --t-footnote: 0.765rem; /* 13 */
  --t-caption1: 0.706rem; /* 12 */
  --t-caption2: 0.647rem; /* 11 */

  /* Abstände im 4er-Raster, Seitenrand 16 wie bei iOS, Tippfläche mindestens 44 × 44 pt (HIG accessibility.md) */
  --a-1: 4px;
  --a-2: 8px;
  --a-3: 12px;
  --a-4: 16px;
  --a-5: 20px;
  --a-6: 24px;
  --a-8: 32px;
  --rand: 16px;
  --tipp: 44px;

  /* Grund und Flächen: warmes Papier, dunkel ein warmes Fast-Schwarz (kein reines Schwarz) */
  --bg: light-dark(#F4F0E8, #131210);        /* Seitengrund, auch Schrift auf Knöpfen in Tinte */
  --flaeche: light-dark(#FCFAF5, #1D1B18);   /* Karten, Listen */
  --flaeche2: light-dark(#ECE6DA, #2A2723);  /* Felder, Wertekästchen, Spur der Segmente */
  --linie: light-dark(#DDD5C6, #35312B);     /* Haarlinien, Rand der Karten */
  --feldrand: light-dark(#857D6E, #8F887A);  /* Rand von Eingabefeldern, mindestens 3:1 */

  /* Text: Tinte */
  --text: light-dark(#1B1916, #F4F0E6);
  --text2: light-dark(#46413A, #D6D0C3);
  --leise: light-dark(#686256, #A29B8D);     /* 4,5:1 und mehr auf allen Flächen (kern/tests/test_kontrast.py) */

  /* Personen und Bedeutung. Die Farbe der Person ist die Akzentfarbe der App (Tint): Peter Jade, Bianca Terrakotta */
  --mint: light-dark(#066B5F, #5EE3C8);
  --mint-grund: light-dark(#D9EDE5, #14322D);
  --auf-mint: light-dark(#FCFAF5, #131210);
  --koralle: light-dark(#9C442D, #F0A38D);
  --koralle-grund: light-dark(#F3DFD5, #3A2620);
  --lila: light-dark(#5E4FB0, #BBB2F2);      /* gemeinsam */
  --lila-grund: light-dark(#E6E0EE, #2A2639);
  --gelb: light-dark(#8F5A06, #EBB95C);      /* jetzt handeln */
  --gelb-grund: light-dark(#F3E4C0, #2F2717);
  --ampel-gruen: light-dark(#28713E, #7FCB92);
  --ampel-rot: light-dark(#AE3023, #FF8A80); /* auch destruktive Knöpfe (HIG buttons.md: system red) */
  --rot-grund: light-dark(#F6DDD7, #3A1F1C);

  /* Symbolfarben der Funktionen */
  --orange: light-dark(#9A4E1B, #EFA772);    /* Essen */
  --orange-grund: light-dark(#F2DFCE, #36261A);
  --tuerkis: light-dark(#1F6F75, #7FCFD3);   /* Pflanzen */
  --tuerkis-grund: light-dark(#D8E8E6, #1B3133);
  --blau: light-dark(#2F6390, #93BCE6);      /* Auto */
  --blau-grund: light-dark(#DCE4EA, #1F2A36);

  /* Schlafphasen */
  --phase-tief: light-dark(#0B5A50, #8CEBD6);
  --phase-leicht: light-dark(#86D6C6, #2F6A61);
  --phase-rem: light-dark(#7467C4, #A79DF0);
  --phase-wach: light-dark(#D6B07A, #8A7450);

  /* Material für schwebende Leisten (Tab Bar, Navigationsleiste): durchscheinend mit Unschärfe, nur dort, nie im
     Inhalt (HIG materials.md). „Transparenz reduzieren“ macht es deckend (unten) */
  --material: light-dark(rgba(250,247,241,0.88), rgba(24,22,20,0.88));
  --material-unschaerfe: saturate(160%) blur(18px);
  --segment-aktiv: light-dark(#FCFAF5, #4A453E);
  --nav-aktiv: light-dark(rgba(27,25,22,0.07), rgba(244,240,230,0.1));
  --dimm: light-dark(rgba(27,25,22,0.36), rgba(0,0,0,0.6));
  /* Tinte: Hauptknöpfe, gewählte Chips und Meldungen stehen in der Textfarbe auf Papier, nicht in der Akzentfarbe */
  --tinte: var(--text);
  --auf-tinte: var(--bg);

  /* Form */
  --radius-gross: 16px;   /* Karten, gruppierte Listen */
  --radius-mittel: 12px;  /* halbe Karten, Knöpfe */
  --radius-klein: 10px;   /* Felder, Wertekästchen */
  --radius-symbol: 50%;   /* Symbole stehen im Kreis */
  --radius-insel: 26px;   /* die schwebende Leiste unten */
  --pille: 999px;

  /* Schatten nur für Schwebendes: Leiste, Blatt, Meldung */
  --schatten: light-dark(rgba(60,48,30,0.14), rgba(0,0,0,0.6));
  --schatten-leiste: 0 8px 28px -6px var(--schatten);
  --schatten-blatt: 0 -2px 24px var(--schatten);

  /* Bewegung: kurz und abbrechbar (HIG motion.md), bei „Weniger Bewegung“ gar nicht */
  --dauer-kurz: 0.15s;
  --dauer-mittel: 0.3s;
  --kurve-raus: cubic-bezier(0.16, 1, 0.3, 1);
  --kurve-feder: cubic-bezier(0.34, 1.45, 0.64, 1);

  /* Ältere Namen, die Seiten weiter nutzen */
  --blass: var(--feldrand);
  --auf-akzent: var(--auf-mint);
  --pink: var(--koralle);
  --grau: var(--leise);
  --rand-karte: var(--linie);
  --schatten-karte: none;
  --glanz: transparent;
  --rund: var(--radius-gross);
  --nav: var(--material);
  --grund: none;
  --ich: var(--mint);
  --ich-grund: var(--mint-grund);
}

.person-mint { --ich: var(--mint); --ich-grund: var(--mint-grund); }
.person-koralle { --ich: var(--koralle); --ich-grund: var(--koralle-grund); }
.farbe-mint { --person: var(--mint); }
.farbe-koralle { --person: var(--koralle); }

*, *::before, *::after { box-sizing: border-box; }
/* hidden heißt versteckt, auch wenn eine Klasse display setzt (Befund 29.09.2026: gefilterte Rezepte, Knöpfe
   für ohne JavaScript blieben sichtbar) */
[hidden] { display: none !important; }
/* Sprungziele (#neu, #ladevorgaenge) nicht unter die Statusleiste der Home-Bildschirm-App schieben */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(env(safe-area-inset-top) + 12px); }
/* Nie breiter als der Bildschirm (Peter 29.09.2026: die Leiste sitzt auf manchen Seiten höher). Echte Daten können
   länger sein als die Testdaten, etwa Dateinamen mit Unterstrichen. Eine zu breite Seite verkleinert Safari, die Leiste
   rückt dabei nach oben. Lange Wörter brechen um, was trotzdem übersteht, wird abgeschnitten statt die Seite zu
   verbreitern. In Karten „anywhere“, weil Text in Flex-Zeilen sonst mindestens so breit bleibt wie sein längstes
   Wort. Knöpfe, Chips und Tabellen nicht: Sonst quetscht die Zeile einen Knopf, bis seine Beschriftung mitten im
   Wort bricht, und Tabellen schieben sich zusammen, statt in sich zu scrollen (verglichen auf allen Seiten 29.09.). */
html, body { overflow-x: clip; }  /* am body auch, sonst lässt sich die Seite per Skript noch schieben */
body { overflow-wrap: break-word; }
.karte { overflow-wrap: anywhere; }
.karte :is(button, .knopf, .chip, .plakette, table) { overflow-wrap: normal; }
body {
  margin: 0; min-height: 100dvh; color: var(--text); background: var(--bg);
  font: 400 var(--t-body)/1.4 var(--schrift);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* Textgröße des iPhones (Dynamic Type, HIG typography.md): Safari setzt mit -apple-system-body die Grundgröße nach der
   Einstellung unter Anzeige & Helligkeit › Textgröße, 17 px bei „Groß“. Andere Browser bleiben bei 17 px */
html { font-size: 106.25%; }
@supports (font: -apple-system-body) {
  html { font: -apple-system-body; }
}
h1, h2, h3 { font-family: var(--schrift-titel); }
.zahl, .marke { font-family: var(--schrift-zahl); }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
/* Eingabefelder nie unter 16 px, sonst vergrößert Safari die Seite beim Antippen. Body 17 pt wie bei iOS. Einzelne
   Regeln weiter unten dürfen das nicht unterschreiten (kern/tests/test_design.py) */
input, select, textarea { font: inherit; font-size: var(--t-body); }
:focus-visible { outline: 3px solid var(--ich); outline-offset: 2px; }
.leise { color: var(--leise); }
.klein { font-size: var(--t-footnote); }
.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprung { position: absolute; left: -9999px; }
.sprung:focus { left: 12px; top: calc(env(safe-area-inset-top) + 12px); z-index: 40; background: var(--flaeche);
  padding: 10px 14px; border-radius: 14px; }

/* Seite */
/* Rand 16 wie bei iOS (im Querformat mindestens bis an den Sicherheitsbereich), oben direkt unter der Statusleiste, unten
   Platz für die schwebende Tab Bar */
.seite {
  --seite-oben: max(12px, calc(env(safe-area-inset-top) + 4px));
  --seite-links: max(var(--rand), env(safe-area-inset-left));
  --seite-rechts: max(var(--rand), env(safe-area-inset-right));
  width: 100%; max-width: 600px; margin: 0 auto;
  padding: var(--seite-oben) var(--seite-rechts) calc(env(safe-area-inset-bottom) + 112px) var(--seite-links);
  display: flex; flex-direction: column; gap: var(--a-4);
}
/* Navigationsleiste und großer Titel wie bei iOS (HIG toolbars.md): oben links der Zurück-Knopf oder die Zeile über dem
   Titel, rechts Lupe und eigener Kreis, darunter der große Titel über die ganze Breite. Der Stern steht rechts in der
   Zeile des Titels, der Titel hält dafür Abstand. .kopf-titel verschwindet im Raster (display: contents), so bleiben die
   Vorlagen mit <p class="datum"> und <h1> unverändert. Beim Scrollen übernimmt die kleine Leiste oben (feh.js) */
.kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--a-2); row-gap: 2px;
  align-items: center; }
.kopf-titel { display: contents; }
.kopf .datum { grid-column: 1; grid-row: 1; min-width: 0; min-height: var(--tipp); display: flex; align-items: center;
  flex-wrap: wrap; column-gap: 6px; font-size: var(--t-caption1); font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--leise); }
.kopf h1 { grid-column: 1 / -1; grid-row: 2; margin: 0; font-size: var(--t-large); font-weight: 600; line-height: 1.08;
  letter-spacing: -0.015em; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.kopf.mit-stern h1 { padding-right: calc(var(--tipp) + 4px); }
.kopf .stern { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; }
@media (max-width: 359px) { .kopf h1 { font-size: var(--t-title1); } }
@media (max-width: 599px) { .kopf h1.lang { font-size: var(--t-title1); } }
.kopf-aktionen { grid-column: 2; grid-row: 1; display: flex; justify-content: flex-end; align-items: center;
  gap: var(--a-2); }
/* Zurück-Knopf: Chevron und Name der Seite darüber in der Akzentfarbe, Tippfläche 44 pt (HIG toolbars.md: Standard-
   Zurück). Jeder Link in der Zeile über dem Titel ist ein solcher Rückweg */
.kopf .datum a, .navleiste-zurueck { display: inline-flex; align-items: center; gap: 2px; min-height: var(--tipp);
  margin-left: -8px; padding: 0 10px 0 6px; border-radius: 12px; color: var(--ich); font-size: var(--t-subhead);
  font-weight: 600; letter-spacing: 0.02em; text-transform: none; text-decoration: none;
  -webkit-tap-highlight-color: transparent; }
.kopf .datum a::before, .navleiste-zurueck::before { content: ""; flex-shrink: 0; width: 10px; height: 10px;
  margin: 0 4px 0 5px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; border-radius: 1px;
  transform: rotate(45deg); }
.kopf .datum a:active, .navleiste-zurueck:active { opacity: 0.5; }
.avatar {
  width: var(--tipp); height: var(--tipp); padding: 0; border: 0; border-radius: 50%; color: var(--auf-mint);
  cursor: pointer; background: var(--ich); display: grid; place-items: center; text-decoration: none;
  font: 600 17px var(--schrift-zahl);
}

/* Runde Knöpfe im Kopf (Lupe, Schließen): 44 pt, Fläche auf dem Seitengrund */
.kopf-knopf {
  width: var(--tipp); height: var(--tipp); padding: 0; border-radius: 50%; border: 1px solid var(--linie);
  background: none; color: var(--text); display: grid; place-items: center; cursor: pointer; text-decoration: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent; transition: background var(--dauer-kurz) ease;
}
.kopf-knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
  stroke-linejoin: round; }
@media (hover: hover) { .kopf-knopf:hover { background: var(--flaeche2); } }
.kopf-knopf:disabled { opacity: 0.35; cursor: default; }
.kopf-knopf.klein { background: var(--flaeche2); border-color: transparent; }
.kopf-knopf.klein svg { width: 18px; height: 18px; }

/* Stern einer Seite aus dem Funktionsverzeichnis (Wunsch Peter 28.09.2026): Favorit auf Heute */
.stern { margin: 0; display: flex; }
.stern-knopf { width: var(--tipp); height: var(--tipp); padding: 0; border: 0; background: none; color: var(--blass);
  cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent; border-radius: 12px; }
.stern-knopf svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round;
  transition: transform 0.2s ease; }
@media (hover: hover) { .stern-knopf:hover { color: var(--gelb); } }
.stern-knopf[aria-pressed="true"] { color: var(--gelb); }
.stern-knopf[aria-pressed="true"] svg { fill: currentColor; }
.stern-knopf.frisch svg { transform: scale(1.25); }

/* Kleine Leiste oben (HIG toolbars.md): Material über der Statusleiste, damit nichts ungeschützt unter die Uhrzeit läuft.
   Ist der große Titel weggescrollt, zeigt sie Zurück-Knopf und Titel (feh.js setzt html.feh-gescrollt) */
.statusleiste { position: fixed; z-index: 6; top: 0; left: 0; right: 0; height: env(safe-area-inset-top);
  background: var(--material); -webkit-backdrop-filter: var(--material-unschaerfe);
  backdrop-filter: var(--material-unschaerfe); pointer-events: none; }
.navleiste { position: fixed; z-index: 7; top: 0; left: 0; right: 0; padding: env(safe-area-inset-top)
  env(safe-area-inset-right) 0 env(safe-area-inset-left); background: var(--material);
  -webkit-backdrop-filter: var(--material-unschaerfe); backdrop-filter: var(--material-unschaerfe);
  border-bottom: 0.5px solid var(--linie); opacity: 0; visibility: hidden;
  transition: opacity var(--dauer-kurz) ease, visibility 0s linear var(--dauer-kurz); }
html.feh-gescrollt .navleiste { opacity: 1; visibility: visible; transition: opacity var(--dauer-kurz) ease; }
.navleiste-innen { max-width: 600px; margin: 0 auto; min-height: var(--tipp); padding: 0 8px; display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4px; }
.navleiste-zurueck { justify-self: start; margin-left: 0; max-width: 100%; overflow: hidden; white-space: nowrap; }
.navleiste-titel { grid-column: 2; max-width: 56vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--t-headline); font-weight: 600; }

/* Karten */
/* Heute (neues Design 17.10.2026). Übrige Karten untereinander, kleine Kennzahl-Karten (etwa des Partners) zu zweit */
.kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 16px 10px; }
.kacheln > * { grid-column: 1 / -1; min-width: 0; }
.kacheln > .kachel-klein { grid-column: auto; }
.kachel-klein { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius-mittel); }
/* Etikett über Zahlen: 12.5 px / 700, nicht in Großbuchstaben, davor optional ein Symbol 15 px */
.kachel-titel { display: flex; align-items: center; gap: 6px; font: 600 var(--t-caption1)/1.25 var(--schrift) !important;
  letter-spacing: 0 !important; color: var(--leise); margin: 0 0 2px !important; }
.kachel-titel .ikon { width: 15px; height: 15px; stroke-width: 2; }
.kachel-titel .kachel-ziel { color: inherit; }
.kachel-titel .pfeil { font-size: var(--t-subhead); }
.kachel-wert { margin: 0; display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
/* Große Zahl in Kachel Title 2 in SF Rounded, Einheit Footnote */
.kachel-wert .zahl { font: 500 var(--t-title2)/1 var(--schrift); letter-spacing: 0; color: var(--text); }
.kachel-wert small { font-size: var(--t-footnote); font-weight: 500; color: var(--leise); }
.kachel-zusatz { font-size: var(--t-footnote); font-weight: 500; color: var(--text2); line-height: 1.35; }
.kachel-klein .stand { margin-top: auto; padding-top: 4px; font-size: var(--t-caption1); color: var(--leise); line-height: 1.3; }

/* Karte „Mein Tag“: oben der Ring der Erholung mit Plakette und Satz, darunter 2 × 2 Wertekästchen. Rechts oben der
   Knopf, der neue Werte bei Polar anfordert */
.mein-tag { position: relative; display: flex; flex-direction: column; gap: 16px; }
.mein-tag > .erholung { background: none; padding: 0 26px 0 0; border-radius: 0; }
.werte-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
/* Wertekästchen: --flaeche2, Radius 18, Innenabstand 12/14, mindestens 76 px hoch, oben Symbol und Etikett, unten
   die Zahl. Jedes Kästchen ist ein Link (die Fläche des Links deckt es ganz) */
.werte-raster > .kachel-klein { min-height: 76px; padding: 12px 14px; border-radius: var(--radius-klein);
  background: var(--flaeche2); justify-content: space-between; gap: 4px; }
.werte-raster > .kachel-klein .kachel-titel { margin: 0 !important; }
.werte-raster > .kachel-klein :is(.kachel-zusatz, .stand) { display: none; }
.werte-raster .kachel-ziel::after { border-radius: var(--radius-klein); }
.erholung .stand { margin-top: 0; font-size: var(--t-caption1); }
.erholung .kachel-ziel::after { border-radius: 0; }
/* Aktualisieren: sichtbar 32 px rund, Tippfläche 44 px über den Innenabstand, 10 px vom Rand der Karte */
.auffrischen { position: absolute; z-index: 1; top: -14px; right: -14px; margin: 0; }
.auffrischen button { width: 44px; height: 44px; padding: 6px; border: 0; background: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
.auffrischen button > span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--flaeche2); color: var(--leise); }
.auffrischen .ikon { width: 15px; height: 15px; stroke-width: 2.2; }
.auffrischen button:focus-visible { outline: none; }
.auffrischen button:focus-visible > span { outline: 3px solid var(--ich); outline-offset: 2px; }

/* Tagesnotiz auf Heute (17.10.2026): Kopf mit Wahl Heute oder Gestern, Chips, Freitext eingeklappt, zwei Knöpfe */
.tagesnotiz { display: flex; flex-direction: column; gap: 10px; }
.tagesnotiz-kopf { align-items: center; margin: 0; }
/* Heute oder Gestern als Segmented Control, 44 pt je Segment wie die Unterseiten */
.tag-wahl { display: flex; border-radius: var(--radius-mittel); background: var(--flaeche2); }
.tag-wahl a { display: inline-flex; align-items: center; min-height: var(--tipp); padding: 0 14px;
  border: 3px solid transparent; background-clip: padding-box; border-radius: var(--radius-mittel);
  font-size: var(--t-subhead); font-weight: 500; color: var(--text); text-decoration: none; }
.tag-wahl a[aria-current="true"] { background-color: var(--segment-aktiv); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.tagesnotiz .formular { gap: 12px; }
.tagesnotiz .chips { gap: 6px; }
.tagesnotiz-alle { align-self: flex-start; margin-left: -8px; }

/* Zwei halbe Karten nebeneinander: Heute Abend und Nächste Tage. Steht nur eine da, nimmt sie die ganze Breite */
.halbe { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.halbe > :only-child { grid-column: 1 / -1; }
.halbe-karte { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px;
  border-radius: var(--radius-mittel); }
.halbe-karte .kachel-ziel::after { border-radius: var(--radius-mittel); }
.halb-etikett { font-size: var(--t-caption1); font-weight: 600; color: var(--lila); }
.heute-abend-halb { padding: 10px; }
.heute-abend-halb .halb-etikett { color: var(--orange); }
.halb-bild { height: 92px; border-radius: 16px; background: var(--orange-grund); color: var(--orange); display: grid;
  place-items: center; }
.halb-bild .ikon { width: 28px; height: 28px; stroke-width: 1.8; }
.halb-text { display: flex; flex-direction: column; gap: 2px; padding: 0 4px 4px; }
.halb-name { font: 500 var(--t-subhead)/1.25 var(--schrift); }
.termin-tag { display: flex; gap: 10px; align-items: flex-start; }
.termin-text { font-size: var(--t-footnote); font-weight: 500; line-height: 1.35; padding-top: 3px; min-width: 0; }
.phasen.klein { height: 7px; margin: 4px 0 2px; border-radius: 4px; }
/* Karte: helles Papier auf dem Grund, Haarlinie als Rand, Radius 16, kein Schatten. Abschnittstitel Headline in Serife */
.karte { background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-gross);
  padding: var(--a-4); }
.karte h2, .abschnitt-titel { margin: 0; font: 600 var(--t-headline)/1.3 var(--schrift); letter-spacing: 0; }
.karten-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.karte .stand { margin-top: 10px; font-size: var(--t-caption1); color: var(--leise); }
.leer { display: flex; flex-direction: column; gap: 6px; }
.leer .symbol { width: 44px; height: 44px; border-radius: 14px; background: var(--flaeche2); display: grid; place-items: center; margin-bottom: 4px; }
.leer .symbol svg { width: 22px; height: 22px; fill: none; stroke: var(--leise); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* "Jetzt handeln" in Gelb (Konzept 7): einzelne Karte auf gelbem Grund, ohne Rahmen */
.karte.handeln { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--gelb-grund); }
.karte.handeln h2 { color: var(--gelb); }
.karte.handeln p { margin-top: 3px; color: var(--text2); }
.karte.handeln .knopf { background: var(--gelb); color: var(--auf-akzent); flex-shrink: 0; }
/* Heute › „Zu tun“ (Übergabe 17.10.2026): weiße Karte, Titel mit gelber Zahl-Plakette, Zeilen mit gelbem
   Symbolquadrat, Titel, Unterzeile und kleinem Hauptknopf rechts */
.karte.zu-tun { padding: 6px 16px; }
.karte.zu-tun .karten-kopf { align-items: center; margin: 0; padding: 12px 0 8px; }
.zu-tun-liste { list-style: none; margin: 0; padding: 0; }
/* Raster: Symbol, Text, Knopf. Mit zwei Knöpfen (Ansehen und eine Aktion) stehen die Knöpfe unter dem Text, sonst
   bliebe dem Text am iPhone eine schmale Spalte (Screenshot Peter 17.10.2026: „10 Pflan-zen gie-ßen“) */
.zu-tun-liste li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  row-gap: 10px; padding: 11px 0; border-top: 0.5px solid var(--linie); }
.zu-tun-liste li:has(> .zu-tun-knoepfe) .symbolquadrat { grid-row: 1 / 3; align-self: start; }
.zu-tun-liste li > .zu-tun-knoepfe { grid-column: 2 / -1; }
.zu-tun-liste .symbolquadrat { background: var(--gelb-grund); color: var(--gelb); }
.zu-tun-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; -webkit-hyphens: auto;
  hyphens: auto; }
.zu-tun-text strong { font-size: var(--t-subhead); font-weight: 600; line-height: 1.3; }
.zu-tun-text .klein { color: var(--leise); }
.zu-tun-knoepfe { display: flex; gap: 6px; flex-shrink: 0; }
.zu-tun-knoepfe form { margin: 0; }
.zu-tun-fertig { margin: 0; padding: 0 4px; }

/* Erholung */
/* Ring (Übergabe 17.10.2026): Spur --flaeche2, Bogen in der Personenfarbe, runde Enden. Heute 88 px, Strich 11 von 120 */
.erholung { display: flex; align-items: center; gap: 16px; }
.ring { position: relative; width: 88px; height: 88px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; display: block; }
.ring-grund { fill: none; stroke: var(--flaeche2); stroke-width: 11; }
.ring-wert { fill: none; stroke: var(--person, var(--ich)); stroke-width: 11; stroke-linecap: round; }
.ring-mitte { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-mitte .zahl { font-size: var(--t-title2); font-weight: 500; line-height: 1; color: var(--text); }
.ring-mitte .einheit { margin-top: 2px; font-size: var(--t-caption2); font-weight: 600; color: var(--leise); }
.erholung-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.erholung-text .coach { font-size: var(--t-subhead); line-height: 1.45; color: var(--text2); }
.ampel { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; font-weight: 600; font-size: var(--t-subhead); }
.ampel .leise { font-weight: 500; }
.nowrap { white-space: nowrap; }
.ampel::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.ampel-gruen { color: var(--ampel-gruen); }
.ampel-gelb { color: var(--gelb); }
.ampel-rot { color: var(--ampel-rot); }
.diagramm { width: 100%; height: auto; display: block; margin-top: 12px; }
.diagramm .achse { fill: var(--leise); font: 600 10.5px var(--schrift); text-anchor: middle; }
.balken-schlaf { fill: var(--lila); }
.balken-hrv { fill: var(--ich); }
.schnittlinie { stroke: var(--text2); stroke-width: 1; stroke-dasharray: 3 3; }
.ampel-text-gruen { color: var(--ampel-gruen); }
.ampel-text-gelb { color: var(--gelb); }
.ampel-text-rot { color: var(--ampel-rot); }
.verlauf-zeile { display: flex; align-items: flex-end; gap: 8px; margin-top: 2px; }
.verlauf { display: block; }
.balken-gruen { fill: var(--ampel-gruen); }
.balken-grund { fill: var(--flaeche2); }
.topf-balken { display: block; width: 100%; height: 10px; }
.balken-gelb { fill: var(--gelb); }
.balken-rot { fill: var(--ampel-rot); }
.kurz { display: flex; align-items: center; gap: 14px; }
.kurz .punkt-gross { width: 44px; height: 44px; border-radius: 50%; background: var(--person); color: var(--auf-akzent); display: grid; place-items: center; font: 600 var(--t-callout) var(--schrift); }
.kurz .zahl { margin-left: auto; font-size: var(--t-title1); font-weight: 600; color: var(--person); white-space: nowrap; }

/* Messwerte */
.messwert { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.messwert .zahl { font-size: var(--t-title1); font-weight: 600; letter-spacing: 0; }
/* Plakette (Übergabe 17.10.2026): Pille, neutral, gelb (jetzt handeln, optional mit Punkt), gemeinsam in Lila */
.plakette { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-caption1); font-weight: 600; line-height: 1.35;
  padding: 4px 9px; border-radius: 7px; background: var(--flaeche2); color: var(--text2); white-space: nowrap; }
.plakette.gelb, .gelb-plakette { background: var(--gelb-grund); color: var(--gelb); font-weight: 700; }
.plakette.gemeinsam { background: var(--lila-grund); color: var(--lila); font-weight: 700; }
.plakette.gruen { background: color-mix(in srgb, var(--ampel-gruen) 14%, var(--flaeche)); color: var(--ampel-gruen);
  font-weight: 700; }
.plakette.rot { background: color-mix(in srgb, var(--ampel-rot) 14%, var(--flaeche)); color: var(--ampel-rot);
  font-weight: 700; }
.plakette.punkt::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  flex-shrink: 0; }
.plakette.zahl-plakette { min-width: 26px; justify-content: center; padding: 3px 8px; }
.phasen { width: 100%; height: 12px; border-radius: 6px; overflow: hidden; display: block; margin: 12px 0 10px; }
.phase-tief { fill: var(--phase-tief); }
.phase-rem { fill: var(--phase-rem); }
.phase-leicht { fill: var(--phase-leicht); }
.phase-wach { fill: var(--phase-wach); }
.phase-ohne { fill: var(--leise); }  /* von Hand in Polar eingetragene Nacht: Dauer ohne Phasen */
.legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--t-footnote); color: var(--text2); }
.legende li { display: inline-flex; align-items: center; gap: 6px; }
.legende li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.legende .tief::before { background: var(--phase-tief); }
.legende .rem::before { background: var(--phase-rem); }
.legende .leicht::before { background: var(--phase-leicht); }
.legende .wach::before { background: var(--phase-wach); }
.legende .ohne::before { background: var(--leise); }
.werte { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.werte div { background: var(--flaeche2); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.werte dt { font-size: var(--t-caption1); color: var(--leise); font-weight: 500; }
.werte dd { margin: 2px 0 0; font: 600 var(--t-title3) var(--schrift); white-space: nowrap; }
.werte dd small { font: 500 var(--t-caption1) var(--schrift); color: var(--leise); }

/* Knöpfe: die Hauptaktion in Tinte (Textfarbe auf Papier), Nebenaktionen mit Haarlinie, getönt in der Akzentfarbe,
   schlicht als Text und destruktiv in Rot (nie als Hauptaktion). Abgerundetes Rechteck, 50 pt hoch, klein 44 pt */
.knopf {
  min-height: 50px; padding: 0 20px; border-radius: var(--radius-mittel); border: 0;
  font-weight: 600; font-size: var(--t-body); line-height: 1.2; text-align: center; cursor: pointer;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.knopf.haupt { background: var(--tinte); color: var(--auf-tinte); }
.knopf.zweitrangig { background: none; box-shadow: inset 0 0 0 1px var(--feldrand); color: var(--text); }
.knopf.getoent { background: var(--ich-grund); color: var(--ich); }
.knopf.schlicht { background: none; color: var(--ich); padding: 0 8px; }
.knopf.destruktiv { background: var(--rot-grund); color: var(--ampel-rot); }
.knopf:disabled { opacity: 0.4; cursor: not-allowed; }
.liste { margin: 8px 0 0; padding-left: 18px; color: var(--text2); display: flex; flex-direction: column; gap: 4px; }

/* Meldungen als Hinweis über der Tab Bar (Toast). Ein Tipp schließt sie, mit JavaScript gehen sie nach einigen Sekunden
   von selbst (feh.js), länger bei langem Text. Ohne JavaScript bleiben sie bis zur nächsten Seite */
.meldungen { position: fixed; z-index: 30; left: max(var(--rand), env(safe-area-inset-left));
  right: max(var(--rand), env(safe-area-inset-right)); bottom: calc(env(safe-area-inset-bottom) + 80px);
  max-width: 560px; margin: 0 auto; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px;
  pointer-events: none; }
.meldungen li { pointer-events: auto; display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 12px 16px;
  border-radius: var(--radius-mittel); background: var(--tinte); box-shadow: var(--schatten-leiste);
  color: var(--auf-tinte); font-size: var(--t-subhead); font-weight: 500; cursor: default; }
.meldungen li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.6;
  flex-shrink: 0; }
.meldungen li.weg { opacity: 0; transition: opacity var(--dauer-mittel) ease; }

/* Leiste unten (Neuaufbau 15.11.2026): eine schwebende Insel in Tinte über dem Strich des iPhones, fünf Reiter mit
   Symbol und Namen. Der aktive Reiter liegt auf einer helleren Fläche, sein Symbol steht in der Akzentfarbe. Erfassen
   trägt sein Plus in einem Kreis in der Akzentfarbe. Im hellen Modell rechnet die Leiste ihre Farben dunkel
   (color-scheme, wie das Deckblatt), im dunklen ist sie eine Fläche mit Haarlinie. Die Namen in px: Reitertitel
   wachsen nicht mit der Textgröße (HIG typography.md) */
.leiste {
  position: fixed; z-index: 5; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto; gap: 0; padding: 5px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
  border: 1px solid var(--linie); border-radius: var(--radius-insel); box-shadow: var(--schatten-leiste);
  background: var(--material); -webkit-backdrop-filter: var(--material-unschaerfe);
  backdrop-filter: var(--material-unschaerfe);
}
@media (prefers-color-scheme: light) and (max-width: 959.98px) {
  .leiste { color-scheme: dark; border-color: transparent; }
}
.leiste a {
  position: relative; height: 54px; border-radius: calc(var(--radius-insel) - 5px); color: var(--leise);
  text-decoration: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.02em; -webkit-tap-highlight-color: transparent;
}
.leiste svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round;
  stroke-linejoin: round; }
.leiste a[aria-current="page"] { color: var(--text); font-weight: 700; background: var(--flaeche2); }
.leiste a[aria-current="page"] svg { stroke-width: 2; color: var(--ich); }
.leiste a.plus svg { width: 30px; height: 30px; padding: 3px; border-radius: 50%; background: var(--ich);
  color: var(--auf-mint); stroke-width: 2; }
.leiste a.plus svg circle { stroke: none; }
.leiste .marke { display: none; }

/* Am PC: dieselben Bereiche als Seitenleiste (Konzept 7) */
@media (min-width: 960px) {
  .leiste {
    top: 0; bottom: 0; left: 0; right: auto; width: 256px; max-width: none; margin: 0;
    grid-template-columns: 1fr; align-content: start; gap: 4px; padding: 28px 14px; border: 0;
    border-right: 1px solid var(--linie); border-radius: 0; box-shadow: none;
  }
  .leiste .marke { display: block; order: -2; font-size: var(--t-title2); font-weight: 600; letter-spacing: -0.01em;
    padding: 0 14px 22px; text-decoration: none; }
  .leiste a { height: 46px; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 0 14px; font-size: var(--t-subhead); font-weight: 500; }
  .leiste a[aria-current="page"] { background: var(--nav-aktiv); }
  .leiste a[aria-current="page"]::before { content: ""; position: absolute; top: 11px; bottom: 11px; left: 0;
    width: 3px; border-radius: 0 3px 3px 0; background: var(--ich); }
  .leiste a.plus { order: -1; width: auto; justify-self: stretch; margin-bottom: 10px; font-weight: 700;
    box-shadow: inset 0 0 0 1px var(--linie); }
  .leiste a.plus svg { width: 26px; height: 26px; padding: 2px; }
  .leiste a.plus span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  /* width: auto, sonst ragt die Seite zwischen 960 und 1140 px um den Rand der Seitenleiste hinaus */
  .seite { --seite-oben: 44px; --seite-links: 48px; --seite-rechts: 48px; width: auto; max-width: 860px;
    margin: 0 0 0 256px; padding: 44px 48px 56px; }
  .kacheln { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
  .kacheln > * { grid-column: span 2; }
  .kacheln > .kachel-klein { grid-column: span 1; }
  /* Diagramme sind für die iPhone-Breite gezeichnet (etwa 300 px) und wachsen mit der Karte, die Achsenschrift mit.
     Bei 690 px Kartenbreite war sie 21 px groß, größer als der Text. Höchstens 480 px, linksbündig wie die Legende */
  .verlauf-diagramm, .hypno, .puls-verlauf, .wochen-balken { max-width: 480px; }
  /* Die Unterseiten des Bereichs stehen am PC in der Seitenleiste unter ihrem Bereich (Wunsch Peter 29.09.2026),
     die Chips über dem Inhalt entfallen dort. Die Leiste scrollt, wenn der Bildschirm niedrig ist */
  .leiste { overflow-y: auto; }
  .unterseiten.bereiche-chips { display: none; }
  .leiste .leiste-unter { display: flex; flex-direction: column; gap: 2px; margin: 0 0 8px 24px; padding-left: 10px;
    border-left: 2px solid var(--linie); }
  .leiste .leiste-unter a { height: 38px; padding: 0 12px; border-radius: 10px; font-size: var(--t-subhead); font-weight: 500;
    color: var(--text2); }
  .leiste .leiste-unter a[aria-current="page"] { background: var(--flaeche2); color: var(--text); }
  .leiste .leiste-unter a[aria-current="page"]::before { content: ""; position: static; width: 6px; height: 6px;
    margin-right: 8px; border-radius: 50%; background: var(--ich); }
  .leiste a:not([aria-current]):not(.plus):hover { background: var(--flaeche2); color: var(--text); }
  .leiste .leiste-unter.eigene { margin: 14px 0 8px; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--linie); }
  .leiste-unter-titel { padding: 0 14px 4px; font-size: var(--t-caption1); font-weight: 600; color: var(--leise); }
}
.leiste-unter { display: none; }

/* Breiter Bildschirm (Wunsch Peter 29.09.2026: den Platz nutzen): der Inhalt in zwei Spalten, Karte für Karte von
   links nach rechts. Kopf, Meldungen, Kacheln und alles mit .breit gehen über beide */
/* Peter 29.09.2026 nachmittags: auch über 1240 px die ganze Breite nutzen. So viele Spalten wie mit 440 px Platz haben:
   bei 1280 px zwei, bei 1920 drei, bei 2560 vier */
@media (min-width: 1280px) {
  .seite { max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
    align-items: start; gap: 16px 20px; }
  .seite > .kopf, .seite > .meldungen, .seite > .unterseiten, .seite > .kacheln, .seite > .breit,
  .seite > .suchfeld, .seite > .leer, .seite > .schnell, .seite > p { grid-column: 1 / -1; }
  .seite > p { max-width: 100ch; }  /* Hinweise bleiben lesbar */
  /* Heute: die halben Karten rücken neben „Mein Tag“, statt dort eine leere Spalte zu lassen (17.10.2026) */
  .seite:has(> .mein-tag) { grid-auto-flow: row dense; }
  /* Verlauf: Der Zeitraum gilt für die ganze Seite, am PC deshalb oben in eigener Zeile statt als Zelle zwischen den
     Karten. Nur hier weicht die Reihenfolge vom HTML ab */
  .seite > .kopf { order: -2; }
  .seite > .zeitraum { order: -1; grid-column: 1 / -1; width: 100%; max-width: 560px; margin: 0; }
  .kacheln { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  /* Lange Listen über die ganze Breite, innen mehrspaltig: Rezepte, Bücher, Ausgaben */
  .breit > .zeilen, .breit > .buecher { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    column-gap: 32px; }
  /* „Zu tun“ auf Heute über die ganze Breite, die Punkte nebeneinander statt untereinander */
  .breit > .zu-tun-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 4px 32px; }
  .breit > .zu-tun-liste li { border-top: 0; padding: 6px 0; }
  .breit > .buecher li + li { border-top: 0; }
  .breit > .buecher li { border-bottom: 1px solid var(--linie); }
}

/* Freigaben: drei Stufen als Segmente */
.freigaben { display: flex; flex-direction: column; gap: 14px; }
fieldset.karte { margin: 0; min-width: 0; }
fieldset legend { padding: 0; float: left; width: 100%; font: 500 var(--t-subhead) var(--schrift); }
fieldset legend + * { clear: both; }
/* Freigaben: jeder Bereich klappt zu, die Felder liegen ohne eigenen Rahmen darin (Navigation 27.09.2026) */
fieldset.bereich-felder { border: 0; padding: 0; margin: 0; min-width: 0; }
.stufen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 2px; margin: 10px 0 8px;
  border-radius: 14px; background: var(--flaeche2); }
.stufe { position: relative; }
.stufe input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.stufe span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 12px;
  font-weight: 600; font-size: var(--t-subhead); color: var(--text2); }
.stufe input:checked + span { background: var(--segment-aktiv); color: var(--text); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.stufe input:focus-visible + span { outline: 3px solid var(--ich); outline-offset: 1px; }
fieldset:disabled .stufe span { opacity: 0.55; }
fieldset:disabled .stufe input { cursor: not-allowed; }
.vorschau { margin-bottom: 10px; }

/* Formulare, Listen, Codes */
.formular { display: flex; flex-direction: column; gap: 10px; width: 100%; text-align: left; }
.formular label { font-size: var(--t-footnote); font-weight: 500; color: var(--text2); }
.formular input {
  min-height: 50px; padding: 0 14px; border-radius: var(--radius-klein); border: 1px solid var(--feldrand);
  background: var(--flaeche); color: var(--text); font: 400 var(--t-body) var(--schrift);
}
/* Fokus wie bei iOS: Rand in der Akzentfarbe mit weichem Schein statt Umrandung */
:is(.formular, .feld, .optionen, .suchfeld, .planen-filter, .auswahl-leiste, .betrag-zeile)
  :is(input, select, textarea):focus { outline: none; border-color: var(--ich);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ich) 28%, transparent); }
/* Versteckte Auswahlfelder hinter Chips, Segmenten und Schaltern ohne Mindesthöhe und Innenabstand der Felder: Sonst
   ragen sie unsichtbar aus ihrem Knopf und fangen Tipps in der Reihe darunter ab (gefunden 27.09.2026) */
.formular .chip input, .formular .stufe input, .formular .stufen-chip input, .formular .umschalter input {
  min-height: 0; padding: 0; }
.formular .knopf { margin-top: 4px; }
.fehler { color: var(--ampel-rot); font-weight: 600; font-size: var(--t-subhead); }
.befehl { margin: 0; padding: 10px 12px; border-radius: 14px; background: var(--flaeche2); overflow-x: auto;
  font: 400 var(--t-footnote)/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap;
  overflow-wrap: anywhere; }
/* Code zum Bestätigen bei BMW: eigener Block unter dem Schritt, groß, in der Schrift von .befehl. Inline mit Innenabstand
   überdeckte er die Zeile darüber (Review 28.09.2026) */
.geraetecode { display: block; width: fit-content; max-width: 100%; margin: 8px 0 2px; padding: 10px 16px;
  border-radius: 14px; background: var(--flaeche2); color: var(--text);
  font: 500 var(--t-title2)/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.12em;
  overflow-wrap: anywhere; user-select: all; }
.karte.zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-decoration: none; }
.karte.zeile svg { width: 22px; height: 22px; fill: none; stroke: var(--leise); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.karte.zeile p { margin-top: 2px; }
.geraete { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; }
.geraete li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linie); }
.geraete li:last-child { border-bottom: 0; }
.geraete li div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.knopf.klein-knopf { min-height: 44px; padding: 0 16px; font-size: var(--t-footnote); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 10px; }
.codes { margin: 14px 0; padding-left: 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 20px; }
.codes code { font: 600 var(--t-body) var(--schrift-mono); letter-spacing: 0.04em; }
.nur-druck { display: none; }

@media print {
  .leiste, .kopf-aktionen, .sprung, .nicht-drucken { display: none !important; }
  .seite { margin: 0; padding: 0; max-width: none; }
  .karte, .schnell { border: 0; padding: 0; box-shadow: none; background: none; }
  .blatt, .schnell { display: none !important; }
  .nur-druck { display: block; font-weight: 600; margin: 8px 0; }
  body { background: #fff; color: #000; }
}

/* Anmeldung und Einmal-Link */
.anmeldung {
  min-height: 100dvh; max-width: 420px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 32px) 24px calc(env(safe-area-inset-bottom) + 32px);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px; text-align: center;
}
.anmeldung h1 { margin: 12px 0 0; font-size: var(--t-title2); }
.anmeldung form { width: 100%; }
.anmeldung .knopf { width: 100%; margin-top: 12px; }
.anmeldung .knopf.schlicht { width: auto; margin-top: 0; }
.anmeldung .hinweis { margin-top: 12px; }
.marke-gross { font: 700 2.353rem var(--schrift-zahl); letter-spacing: 0; }
.marke-gross .punkt, .marke .punkt { color: var(--lila); }
.hinweis { font-size: var(--t-footnote); color: var(--leise); max-width: 320px; }

/* Benachrichtigungen: Uhrzeiten, zwei Segmente, Haken */
.abstand { margin-top: 12px; }
.felder { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 10px 0 8px; }
.feld { display: flex; flex-direction: column; gap: 6px; font-size: var(--t-footnote); font-weight: 600; color: var(--text2); min-width: 0; }
.feld input {
  min-height: 50px; padding: 0 14px; border-radius: var(--radius-klein); border: 1px solid var(--feldrand); width: 100%;
  background: var(--flaeche); color: var(--text); font: 400 var(--t-body) var(--schrift);
}
.stufen.zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6px; }
.kanal-name { margin-top: 10px; font-weight: 600; color: var(--text2); }
.haken { display: flex; flex-direction: column; gap: 4px; margin: 10px 0 8px; }
.haken-zeile { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 500; cursor: pointer; }
.haken-zeile input { width: 22px; height: 22px; margin: 0; accent-color: var(--ich); flex-shrink: 0; }

/* KI-Schalter: Kontrollkästchen als Schalter, unabhängig vom Hell/Dunkel-Schalter */
.ki-block { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--linie); display: flex; flex-direction: column; gap: 8px; }
.umschalter { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; font-size: var(--t-subhead); cursor: pointer; }
.umschalter input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.umschalter .bahn { position: relative; flex-shrink: 0; width: 44px; height: 26px; border-radius: 13px;
  background: var(--flaeche2); border: 1px solid var(--linie); transition: background 0.2s ease, border-color 0.2s ease; }
.umschalter .knauf { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--leise); transition: transform 0.2s ease, background 0.2s ease; }
.umschalter input:checked + .bahn { background: var(--ich); border-color: var(--ich); }
.umschalter input:checked + .bahn .knauf { transform: translateX(18px); background: var(--auf-akzent); }
.umschalter input:focus-visible + .bahn { outline: 3px solid var(--ich); outline-offset: 2px; }
fieldset:disabled .umschalter { opacity: 0.55; cursor: not-allowed; }
.ki-vorschau summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: var(--t-footnote); color: var(--text2); }
.ki-feld code, .ki-tabelle { font: 400 var(--t-caption1)/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; }
.ki-feld code { color: var(--leise); margin-right: 6px; }
.ki-tabelle { margin-top: 6px; max-height: 320px; overflow: auto; border-radius: 12px; background: var(--flaeche2); }
.ki-tabelle table { border-collapse: collapse; width: 100%; color: var(--text2); }
.ki-tabelle th { position: sticky; top: 0; z-index: 1; background: var(--flaeche2); color: var(--leise); font-weight: 500;
  text-align: right; vertical-align: bottom; padding: 8px 6px 6px; word-break: keep-all; }
.ki-tabelle td { text-align: right; padding: 3px 6px; white-space: nowrap; }
/* Datum bleibt beim seitlichen Scrollen stehen */
.ki-tabelle th:first-child, .ki-tabelle td:first-child { position: sticky; left: 0; background: var(--flaeche2); text-align: left;
  padding-left: 10px; }
.ki-tabelle th:first-child { z-index: 2; }
.ki-tabelle th:last-child, .ki-tabelle td:last-child { padding-right: 10px; }
.budget { width: 100%; height: 8px; display: block; margin: 4px 0 10px; }
.budget-grund { fill: var(--flaeche2); }
.budget-wert { fill: var(--ich); }

/* Coach: Frage und Antworten */
.formular textarea {
  min-height: 96px; padding: 12px 14px; border-radius: var(--radius-klein); border: 1px solid var(--feldrand);
  resize: vertical; background: var(--flaeche); color: var(--text); font: 400 var(--t-body)/1.4 var(--schrift);
}
.coach-karte { display: flex; flex-direction: column; gap: 10px; }
.coach-eintrag { padding-top: 10px; border-top: 1px solid var(--linie); display: flex; flex-direction: column; gap: 4px; }
.coach-eintrag p:not(.leise):not(.fehler) { color: var(--text); line-height: 1.5; }

/* Gesundheit: persönliche Werte, aufklappbar */
.felder.drei { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
details.karte > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; }
details.karte > summary::-webkit-details-marker { display: none; }
details.karte > summary::after { content: "›"; font: 600 var(--t-title3) var(--schrift); color: var(--leise); transform: rotate(90deg); transition: transform 0.2s ease; }
details.karte[open] > summary::after { transform: rotate(-90deg); }
details.karte > summary .plakette { margin-left: auto; }
details.karte[open] > summary { margin-bottom: 8px; }
details.karte > summary h2 { margin: 0; }
details.karte > summary:focus-visible { outline: 3px solid var(--ich); outline-offset: 4px; border-radius: 10px; }
.klapp-kopf { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.klapp-kopf .klein { font-family: var(--schrift); font-weight: 400; }  /* Zusatz in der Überschrift wie Fließtext */

/* Unterseiten eines Bereichs als Segmented Control (HIG segmented-controls.md, höchstens fünf am iPhone): graue Spur, die
   gewählte Seite als helle Fläche. Jedes Segment ist 44 pt hoch (Tippfläche), sichtbar 6 pt schmaler (Rand ohne Farbe).
   Eine Unterseite, die nur ein Zeichen zeigt (⚙︎ Einstellungen), steht als runder Knopf rechts daneben. Passt es nicht,
   lässt sich die Spur seitlich wischen */
.unterseiten { display: flex; align-items: center; gap: var(--a-2); }
.unterseiten-segmente { flex: 1; min-width: 0; display: flex; gap: 2px; box-shadow: inset 0 -1px 0 var(--linie);
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.unterseiten-segmente::-webkit-scrollbar { display: none; }
.unterseiten-segmente a { flex: 1 0 auto; display: flex; align-items: center; justify-content: center;
  min-height: var(--tipp); padding: 0 10px; border: 0; border-bottom: 2px solid transparent;
  color: var(--leise); font-size: var(--t-subhead); font-weight: 500; text-decoration: none;
  white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.unterseiten-segmente:has(> a:nth-child(5)) a { padding: 0 4px; font-size: var(--t-footnote); }
.unterseiten-segmente a[aria-current="page"] { color: var(--text); font-weight: 700; border-bottom-color: var(--ich); }
.unterseiten a:focus-visible { outline: 3px solid var(--ich); outline-offset: -1px; }
.unterseiten-extra { flex: none; width: var(--tipp); height: var(--tipp); border-radius: 50%; display: grid;
  place-items: center; border: 1px solid var(--linie); color: var(--text); font-size: var(--t-title3);
  text-decoration: none; }
.unterseiten-extra[aria-current="page"] { background: var(--tinte); border-color: var(--tinte); color: var(--auf-tinte); }
/* Filter mit vielen oder wechselnden Einträgen (Quellen der Wohnungssuche) als Chips, die man seitlich wischt */
.filter-chips { display: flex; gap: 6px; margin: 0 calc(-1 * var(--rand)); padding: 0 var(--rand); overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chips a { flex: none; display: inline-flex; align-items: center; min-height: var(--tipp); padding: 0 14px;
  border-radius: var(--pille); border: 1px solid var(--linie); background: var(--flaeche); color: var(--text);
  font-size: var(--t-subhead); font-weight: 500; white-space: nowrap; text-decoration: none; }
.filter-chips a[aria-current="page"] { background: var(--tinte); border-color: var(--tinte); color: var(--auf-tinte);
  font-weight: 600; }

/* Gesundheit: Hypnogramm, Wochenvergleich, Gesundheitsmonitor */
.hypno { width: 100%; height: auto; display: block; margin: 12px 0 6px; }
.hypno .achse { fill: var(--leise); font: 600 10.5px var(--schrift); text-anchor: middle; }
table.vergleich { width: 100%; border-collapse: collapse; font-size: var(--t-subhead); }
table.vergleich th, table.vergleich td { padding: 6px 4px; text-align: right; border-bottom: 1px solid var(--linie); white-space: nowrap; }
table.vergleich th[scope="row"], table.vergleich thead th:first-child { text-align: left; font-weight: 500; color: var(--text2); white-space: normal; }
table.vergleich thead th { font-size: var(--t-caption1); color: var(--leise); font-weight: 500; }
table.vergleich tr:last-child th, table.vergleich tr:last-child td { border-bottom: 0; }
.monitor { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.monitor li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--linie); }
.monitor li:last-child { border-bottom: 0; }
.monitor li div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.monitor li strong { font: 600 var(--t-body) var(--schrift); }
.zustand-schlecht { background: var(--gelb-grund); color: var(--gelb); }
.zustand-gut { color: var(--ampel-gruen); }

/* Tagesnotizen: Tags als Chips, 44 px hoch zum Treffen am iPhone (Peter 27.09.2026) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .stufen-chip { position: relative; }
.chip input, .stufen-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip span, .stufen-chip label { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px;
  border-radius: 22px; background: none; border: 1px solid var(--feldrand); font-size: var(--t-subhead); font-weight: 500;
  color: var(--text); cursor: pointer; -webkit-user-select: none; user-select: none; }
.chip input:checked + span { background: var(--tinte); color: var(--auf-tinte); border-color: var(--tinte); }
.chip input:focus-visible + span, .stufen-chip input:focus-visible ~ label { outline: 3px solid var(--ich); outline-offset: 1px; }
/* Stufen ohne JavaScript: je Stufe ein Radio, sichtbar ist nur der Knopf hinter dem gewählten. Er zeigt die Stufe und
   wählt beim Tippen die nächste, 0 → 1 → 2 → 3 → 0 */
.stufen-chip label { display: none; }
.stufen-chip input:nth-of-type(1):checked ~ label:nth-of-type(1), .stufen-chip input:nth-of-type(2):checked ~ label:nth-of-type(2),
.stufen-chip input:nth-of-type(3):checked ~ label:nth-of-type(3), .stufen-chip input:nth-of-type(4):checked ~ label:nth-of-type(4),
.stufen-chip input:nth-of-type(5):checked ~ label:nth-of-type(5) { display: inline-flex; }
.stufen-chip label.an { background: var(--tinte); color: var(--auf-tinte); border-color: var(--tinte); }
.stufen-chip .zeichen { letter-spacing: 0; }
/* Tags, die es nicht mehr gibt: gestrichelt, abgewählt durchgestrichen, denn Speichern entfernt sie */
.chip-alt span, .chip-alt input:checked + span { background: transparent; color: var(--text); border: 2px dashed var(--text); }
.chip-alt input:not(:checked) + span { border-color: var(--linie); color: var(--leise); text-decoration: line-through; }
/* Medikamente in der Tagesnotiz (15.11.2026): der Haken steht von selbst, abgewählt heißt nicht genommen */
.med-wahl { border: 0; padding: 0; margin: 0; min-width: 0; }
.med-wahl legend { padding: 0; margin-bottom: 8px; }
.med-wahl .chips { margin-bottom: 6px; }
.chip-haken input:checked + span::before { content: "✓"; }
.chip-haken input:not(:checked) + span { color: var(--leise); text-decoration: line-through; }
.notiz-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.notiz-knoepfe .knopf { flex: 1 1 140px; margin-top: 0; }
.knopf-link { background: none; border: 0; padding: 8px 0; min-height: 44px; font: 500 var(--t-subhead) var(--schrift);
  color: var(--leise); text-decoration: underline; cursor: pointer; align-self: flex-start; }
/* Wirkung auf die Nacht: Unterschiede farbig, wenn sie deutlich sind */
.wirkung-werte { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: var(--t-footnote); }
.wirkung-werte .gut, table.vergleich td.gut { color: var(--ampel-gruen); font-weight: 600; }
.wirkung-werte .schlecht, table.vergleich td.schlecht { color: var(--ampel-rot); font-weight: 600; }
.wirkung-werte .rauschen, .wirkung-werte .zu-wenig, table.vergleich td.zu-wenig, table.vergleich td.rauschen { color: var(--leise); }
table.stufen-tabelle th[scope="col"] { font-size: var(--t-subhead); white-space: nowrap; }

/* Gesundheit: Empfehlungen und Einordnung */
.basis-warnung { background: var(--gelb-grund); color: var(--gelb); border-radius: 12px; padding: 8px 12px; margin: 0 0 8px;
  font-size: var(--t-footnote); font-weight: 500; }
.tipp { border-left: 4px solid var(--linie); padding: 2px 0 2px 12px; margin: 12px 0; }
.tipp h3 { font-size: var(--t-subhead); margin: 0 0 4px; }
.tipp p { margin: 4px 0; }
.tipp.prio-1 { border-left-color: var(--koralle); }
.tipp.prio-2 { border-left-color: var(--gelb); }
.tipp.prio-4 { border-left-color: var(--ampel-gruen); }
.einordnung { border-bottom: 1px solid var(--linie); }
.einordnung:last-of-type { border-bottom: 0; }
.einordnung summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0;
  cursor: pointer; list-style: none; }
.einordnung summary::-webkit-details-marker { display: none; }
.einordnung summary > .einordnung-werte { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.einordnung summary .plakette { flex: none; white-space: nowrap; }
.einordnung summary strong { font: 600 var(--t-body) var(--schrift); }
.einordnung .erklaerung { padding: 0 0 10px; }
.einordnung .erklaerung p { margin: 4px 0; }
.stufe-ok { color: var(--ampel-gruen); }
.stufe-grenzwertig { background: var(--gelb-grund); color: var(--gelb); }
.stufe-auffaellig { background: var(--gelb-grund); color: var(--ampel-rot); }
.stufe-keine { color: var(--leise); }

/* Gesundheit: Herzfrequenz im Tagesverlauf */
.puls-verlauf { width: 100%; height: auto; display: block; margin: 8px 0 4px; }
.puls-verlauf .linie { fill: none; stroke: var(--koralle); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.puls-verlauf .raster { stroke: var(--linie); stroke-width: 1; }
.puls-verlauf .achse { fill: var(--leise); font: 600 10.5px var(--schrift); text-anchor: middle; }
.puls-verlauf .achse.links { text-anchor: start; }
.tage-nav { display: flex; justify-content: space-between; gap: 12px; margin: 4px 0 0; }
/* Gesundheit: eine Nacht gegen die Nacht davor, blättern unter der Karte */
.tage-nav.abstand { margin-top: 12px; }
.nacht .unterkopf { margin-bottom: 2px; }

/* Heute-Kacheln als Link (27.09.2026): Der Link steht in der Überschrift, seine Fläche deckt die ganze Karte.
   Was in so einer Kachel selbst auf Tippen reagieren soll (Knopf, Tooltip), braucht position: relative; z-index: 1. */
.kachel-link { position: relative; }
.kachel-ziel { text-decoration: none; }
.kachel-ziel::after { content: ""; position: absolute; inset: 0; border-radius: 24px; }
.kachel-ziel:focus-visible { outline: none; }
.kachel-ziel:focus-visible::after { outline: 3px solid var(--ich); outline-offset: 2px; }
.kachel-ziel .pfeil { margin-left: 6px; font: 600 var(--t-body)/1 var(--schrift); color: var(--leise); }

/* Gesundheit: Verläufe (Zeitraum, Durchschnitt, Diagramme, Zusammenhänge) */
.zeitraum { display: flex; margin: 0 0 12px; border-radius: var(--radius-mittel); background: var(--flaeche2); }
.zeitraum a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: var(--tipp); padding: 0;
  border: 3px solid transparent; background-clip: padding-box; border-radius: var(--radius-mittel); font-size: var(--t-footnote);
  font-weight: 500; color: var(--text); text-decoration: none; }
/* „page“ trägt schon der Chip der Unterseite, der Zeitraum ist nur die aktuelle Wahl (Review 27.09.2026) */
.zeitraum a[aria-current="true"] { background: var(--segment-aktiv); color: var(--text); font-weight: 600;
  border-color: transparent; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.durchschnitt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0; }
.durchschnitt div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.durchschnitt dt { font-size: var(--t-caption1); color: var(--leise); font-weight: 500; }
.durchschnitt dd { margin: 0; font: 600 var(--t-body) var(--schrift); }
.differenz { font: 600 var(--t-caption1) var(--schrift); padding: 1px 6px; border-radius: 10px; background: var(--flaeche2);
  color: var(--text2); white-space: nowrap; }
.differenz.gut { color: var(--ampel-gruen); }
.differenz.schlecht { background: var(--gelb-grund); color: var(--ampel-rot); }
.unterkopf { font-size: var(--t-footnote); margin: 14px 0 0; }
.verlauf-diagramm { width: 100%; height: auto; display: block; margin: 8px 0 4px; }
.verlauf-diagramm .raster { stroke: var(--linie); stroke-width: 1; }
.verlauf-diagramm .achse { fill: var(--leise); font: 600 10.5px var(--schrift); text-anchor: middle;
  paint-order: stroke; stroke: var(--flaeche); stroke-width: 3px; stroke-linejoin: round; }
.verlauf-diagramm .achse.links { text-anchor: start; }
.verlauf-diagramm .achse.rechts { text-anchor: end; }
.linie-strain, .linie-lila, .linie-ich, .linie-koralle, .linie-basis, .linie-ziel { fill: none; stroke-width: 1.6;
  stroke-linejoin: round; stroke-linecap: round; }
.linie-strain { stroke: var(--text2); }
.linie-lila { stroke: var(--lila); }
.linie-ich { stroke: var(--ich); }
.linie-koralle { stroke: var(--koralle); }
.linie-basis { stroke: var(--ich); stroke-width: 1; stroke-dasharray: 4 4; }
.linie-ziel { stroke: var(--text2); stroke-width: 1; stroke-dasharray: 3 3; }
.linie-dosis { fill: none; stroke: var(--koralle); stroke-width: 1.2; stroke-dasharray: 2 3; }
.flaeche-lila { fill: var(--lila); opacity: 0.14; }
.flaeche-ich { fill: var(--ich); opacity: 0.14; }
.balken-schritte { fill: var(--ich); }
.balken-aktiv { fill: var(--gelb); }
.balken-gesamt { fill: var(--blass); }
.punkt-ich { fill: var(--ich); opacity: 0.8; }
.punkt-gelb { fill: var(--gelb); opacity: 0.8; }
.legende .l-erholung::before { background: var(--ampel-gruen); }
.legende .l-strain::before { background: var(--text2); }
.legende .l-hrv::before, .legende .l-basis::before { background: var(--ich); }
.legende .l-puls::before { background: var(--koralle); }
.legende .l-aktiv::before { background: var(--gelb); }
.legende .l-gesamt::before { background: var(--blass); }
.legende .l-leistung::before { background: var(--lila); }
.legende .l-ziel::before { background: var(--text2); }
.legende .l-dosis::before { background: var(--koralle); }
.zusammenfassung { width: 100%; box-sizing: border-box; font: var(--t-body)/1.4 var(--schrift); color: var(--text);
  background: var(--flaeche); border: 1px solid var(--feldrand); border-radius: var(--radius-klein); padding: 10px 12px;
  resize: vertical; }

/* Zuhause: Pflanzen als Raster mit Fotos, fällige in Gelb (Konzept 5.2 und 7) */
.abschnitt { display: flex; flex-direction: column; gap: 12px; }
.abschnitt-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.abschnitt-kopf h2 { margin: 0; font-size: var(--t-title3); font-weight: 600; }
.alle-gegossen { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px;
  border-radius: 20px; background: var(--gelb-grund); color: var(--gelb); }
.knopf.gelb { background: var(--gelb); color: var(--auf-akzent); }
.pflanzen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pflanze { display: flex; flex-direction: column; background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: 22px; overflow: hidden; min-width: 0; }
.pflanze-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; flex: 1; }
.pflanze img, .pflanze .ohne-foto { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; background: var(--flaeche2); }
.pflanze .ohne-foto { display: grid; place-items: center; }
.pflanze .ohne-foto svg, .leer .symbol svg { width: 34px; height: 34px; fill: none; stroke: var(--leise); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pflanze .text { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pflanze strong { font: 600 var(--t-subhead)/1.25 var(--schrift); overflow-wrap: anywhere; }
.pflanze .status { color: var(--leise); font-weight: 500; }
.pflanze.faellig { background: var(--gelb-grund); border-color: color-mix(in srgb, var(--gelb) 45%, transparent); }
.pflanze.faellig .status { color: var(--gelb); font-weight: 700; }
.pflanze-aktionen { display: grid; gap: 6px; padding: 0 10px 12px; }
.pflanze-aktionen .knopf { min-height: var(--tipp); padding: 0 10px; font-size: var(--t-subhead); }
.pflanze.faellig .pflanze-aktionen .knopf:not(.zweitrangig) { background: var(--gelb); color: var(--auf-akzent); }
.pflanze-foto { width: 100%; max-height: 420px; object-fit: cover; border-radius: 24px; display: block; background: var(--flaeche2); }
.faellig-karte { background: var(--gelb-grund); border-color: color-mix(in srgb, var(--gelb) 45%, transparent); }
.gelb-plakette { background: var(--gelb); color: var(--auf-akzent); }
.werte.vier { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.werte.vier div { padding: 8px 8px; }
.werte.vier dd { font-size: var(--t-body); }
.werte .jetzt { outline: 2px solid var(--ich); outline-offset: -2px; }
.karte.vorschlag { flex-wrap: wrap; }
.liste-links { display: flex; flex-direction: column; padding: 6px 18px; }
.liste-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px;
  text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--linie); }
.liste-links a:last-child { border-bottom: 0; }
.liste-links a .leise { font-weight: 500; text-align: right; }
.kopf .datum a { text-decoration: none; }
.feld-block { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.formular select, .formular textarea, .formular input[type="date"], .formular input[type="time"] { width: 100%; }
/* Datum und Uhrzeit: Mit eigener Darstellung rechnet iOS content-box, dann ragt das Feld um Innenabstand und Rand
   über die Karte, und die Mindesthöhe fehlt (Screenshot Peter 27.09.2026, in Edge nicht zu sehen). Ohne sie gilt
   border-box wie bei allen Feldern, die Auswahl von iOS bleibt. Die Zeilenhöhe hält den Wert mittig, auch leer. */
input[type="date"], input[type="time"] {
  -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; line-height: 46px;
  text-align: left;
}
input[type="date"]::-webkit-date-and-time-value, input[type="time"]::-webkit-date-and-time-value { text-align: left; }
.formular select {
  min-height: 50px; padding: 0 12px; border-radius: var(--radius-klein); border: 1px solid var(--feldrand);
  background: var(--flaeche); color: var(--text); font: 400 var(--t-body) var(--schrift);
}
/* Ablagefläche für Dateien (kern/widgets.py, Peter 29.09.2026: moderner, am PC „hierher ziehen“). Das echte Feld
   liegt unsichtbar darüber: Tippen öffnet die Auswahl, hineingezogene Dateien nimmt es an, auch ohne JavaScript */
.ablage { position: relative; }
.ablage-feld { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0;
  cursor: pointer; font-size: 0; }
.ablage-flaeche { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 128px; padding: 18px 16px; border: 2px dashed var(--linie); border-radius: 20px; background: var(--flaeche2);
  text-align: center; transition: border-color 0.12s, background-color 0.12s; }
.ablage-symbol { width: 30px; height: 30px; fill: none; stroke: var(--ich); stroke-width: 1.8; stroke-linecap: round;
  stroke-linejoin: round; }
.ablage-titel { font-weight: 600; font-size: var(--t-subhead); color: var(--text); }
.ablage-zusatz { font-size: var(--t-footnote); color: var(--leise); }
.ablage-vorschau { width: 76px; height: 76px; object-fit: cover; border-radius: 14px; }
.ablage:hover .ablage-flaeche, .ablage.ueber .ablage-flaeche {
  border-color: var(--ich); background: color-mix(in srgb, var(--ich) 10%, var(--flaeche2)); }
.ablage-feld:focus-visible + .ablage-flaeche { outline: 3px solid var(--ich); outline-offset: 2px; }
.ablage.gewaehlt .ablage-flaeche { border-style: solid; border-color: var(--ich); }
.ablage.gewaehlt .ablage-symbol, .ablage.gewaehlt .ablage-leer, .ablage-name { display: none; }
.ablage.gewaehlt .ablage-name { display: inline; overflow-wrap: anywhere; }
.ablage.falsch .ablage-flaeche { border-color: var(--ampel-rot); }
.ablage.falsch .ablage-zusatz { color: var(--ampel-rot); font-weight: 500; }
/* Am PC „hierher ziehen oder klicken“, am iPhone „Foto aufnehmen oder auswählen“ */
.nur-maus { display: none; }
@media (hover: hover) and (pointer: fine) { .nur-maus { display: inline; } .nur-touch { display: none; } }
.pflanzen-formular fieldset.karte legend { margin-bottom: 4px; }
.pflanzen-formular .karte { display: flex; flex-direction: column; gap: 10px; }
.pflanzen-formular .felder { margin: 0; }
.giessliste td.tun { white-space: normal; text-align: left; }
@media (min-width: 960px) { .pflanzen { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media print { .giessliste .vergleich { font-size: var(--t-callout); } }
.ki-ergebnis { display: flex; gap: 14px; align-items: flex-start; }
.ki-ergebnis > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ki-foto { width: 96px; height: 96px; object-fit: cover; border-radius: 16px; flex-shrink: 0; }

/* Essen (Etappe 4): Abende im Wochenplan, Zeilen der Prüfliste */
.abende, .zeilen { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
/* nicht für verlinkte Karten (.karte.zeile), sonst stehen deren Texte mittig und der Pfeil darunter (27.09.2026) */
/* Rezeptbild als kleine Vorschau neben dem Gericht (Peter 27.09.2026: ein Viertel so groß reicht), vom Portal
   ausgeliefert, nie direkt von Cookidoo */
.gericht { display: flex; gap: 12px; align-items: flex-start; }
.gericht-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.rezept-bild { flex: 0 0 25%; width: 25%; min-width: 88px; max-width: 176px; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover; border-radius: 10px; background: var(--flaeche2); }
.abend, .zeile:not(.karte) { border-top: 1px solid var(--linie); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.abend:first-child, .zeile:not(.karte):first-child { border-top: 0; padding-top: 0; }
.zeile.unsicher { border-left: 3px solid var(--gelb); padding: 12px 10px 8px; background: var(--gelb-grund); border-radius: 12px; }
.abend-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
/* Lange Namen brechen um, sonst ragte die Seite am iPhone über den Rand und ließ sich seitlich schieben
   (Messung 29.09.2026: Rezepte 397 statt 390 px, neben „Favorit“ mit nowrap) */
.abend-kopf > :first-child { min-width: 0; overflow-wrap: anywhere; }
.abend-name { font-weight: 600; }
.optionen { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.optionen select, .optionen input {
  min-width: 0; max-width: 100%; min-height: 44px; padding: 0 12px; border-radius: var(--radius-klein);
  border: 1px solid var(--feldrand); background: var(--flaeche); color: var(--text); font: 400 var(--t-body) var(--schrift);
}
.optionen select, .optionen input:not(.zahl) { flex: 1 1 160px; }
.optionen input.zahl { width: 80px; }
details.aendern > summary { cursor: pointer; color: var(--leise); min-height: 44px; display: flex; align-items: center; }
/* Pfeil statt Dreieck bei den kleinen Klappbereichen, wie bei den großen (Feinschliff-Punkt vom 27.09., gebaut 28.09.) */
details.aendern > summary, .ki-vorschau > summary { list-style: none; gap: 6px; }
details.aendern > summary::-webkit-details-marker, .ki-vorschau > summary::-webkit-details-marker { display: none; }
details.aendern > summary::after, .ki-vorschau > summary::after { content: "›"; font: 600 var(--t-body)/1 var(--schrift);
  color: var(--leise); transform: rotate(90deg); transition: transform 0.2s ease; }
details.aendern[open] > summary::after, .ki-vorschau[open] > summary::after { transform: rotate(-90deg); }
fieldset.haken { border: 0; padding: 0; margin: 6px 0 0; min-width: 0; }
fieldset.haken legend { font: 600 var(--t-footnote) var(--schrift); color: var(--text2); margin-bottom: 4px; }

/* Belege (Etappe 5b): Bild zum Nachsehen, Posten mit Betrag, Zuordnung per Tipp und Kategorie */
.beleg-bild { display: block; max-height: 70vh; overflow-y: auto; border-radius: 14px; background: var(--flaeche2); }
.beleg-bild img { display: block; width: 100%; height: auto; }  /* lange Bons in voller Breite, zum Scrollen */
/* Arztrechnung (Etappe 6b): Ausschnitt per Tipp, abgedunkelt ist, was nicht an die KI geht */
.ausschnitt { position: relative; border-radius: 14px; overflow: hidden; background: var(--flaeche2); cursor: crosshair;
  touch-action: manipulation; }
.ausschnitt img { display: block; width: 100%; height: auto; -webkit-user-select: none; user-select: none; }
.ausschnitt-weg { position: absolute; left: 0; right: 0; background: rgba(11, 14, 17, 0.62); pointer-events: none; }
.ausschnitt-weg.oben { top: 0; border-bottom: 3px solid var(--ich); }
.ausschnitt-weg.unten { bottom: 0; border-top: 3px solid var(--ich); }
.formular input[type="range"] { min-height: 44px; padding: 0; border: 0; background: none; accent-color: var(--ich); }
.ausschnitt-vorschau { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--linie); }
.posten-zeile { gap: 8px; }
.posten-kopf { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 8px; }
.formular .posten-kopf input { min-height: 44px; width: 100%; min-width: 0; font-size: var(--t-body); }
.formular .posten-kopf input.betrag { padding: 0 12px; text-align: right; font-variant-numeric: tabular-nums; }
.stufen.posten-wohin { margin: 0; }
.posten-wohin .stufe span { min-height: 44px; font-size: var(--t-footnote); text-align: center; }
.posten-fuss { display: flex; align-items: center; gap: 16px; }
.formular .haken-zeile input { min-height: 0; padding: 0; }

/* Lupe an Diagrammen (kern/static/kern/lupe.js, Wunsch Peter 27.09.2026): Hilfslinie und Kästchen mit den Werten */
/* pan-y: senkrecht scrollt die Seite, waagrecht führt der Finger die Lupe. pinch-zoom versteht Safari nicht, dort
   gilt die erste Angabe (Review 27.09.). Langes Drücken markiert keine Achsentexte. */
.lupe { position: relative; touch-action: pan-y; touch-action: pan-y pinch-zoom; border-radius: 8px;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.lupe:focus-visible { outline: 3px solid var(--ich); outline-offset: 3px; }
.lupe-info { position: absolute; bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; border-radius: 12px; background: var(--flaeche2);
  border: 1px solid var(--linie); box-shadow: 0 6px 18px rgb(0 0 0 / 22%); color: var(--text); font-size: var(--t-caption1);
  line-height: 1.35; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.lupe-info[hidden] { display: none; }
.lupe-info.innen { bottom: auto; }
.lupe-sicher { position: fixed; top: 0; left: 0; padding-top: env(safe-area-inset-top, 0px); visibility: hidden;
  pointer-events: none; }
.lupe-info strong { font-weight: 700; }
.lupe-linie { stroke: var(--text2); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.monate { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.monate a { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border-radius: 14px; color: inherit;
  text-decoration: none; }
.monate a[aria-current="true"] { background: var(--flaeche2); }
.monate-kopf { display: flex; justify-content: space-between; gap: 10px; font-size: var(--t-subhead); font-weight: 600; }
.monate-kopf .leise { font-weight: 500; text-align: right; }
.legende .l-gewicht::before { background: var(--ich); }
.legende .l-fett::before { background: var(--lila); }
.lupe-punkt { fill: none; stroke: var(--text); stroke-width: 1.6; vector-effect: non-scaling-stroke; pointer-events: none; }

/* Suche nach Funktionen, Favoriten und Schnellzugriff (Wunsch Peter 28.09.2026, kern/funktionen.py und suche.js) */
.fn-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fn { display: flex; align-items: center; gap: 2px; min-width: 0; }
.fn + .fn { border-top: 1px solid var(--linie); }
.fn-ziel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 6px 6px 0;
  color: inherit; text-decoration: none; border-radius: 14px; -webkit-tap-highlight-color: transparent; }
.fn-ziel:focus-visible { outline: 3px solid var(--ich); outline-offset: 1px; }
.fn-text { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.fn-text strong { font-size: var(--t-body); font-weight: 400; line-height: 1.3; }
.fn-text .klein { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fn-gruppe { margin: 16px 0 2px; font: 600 var(--t-caption1) var(--schrift); color: var(--leise); }
.fn-gruppe:first-of-type { margin-top: 4px; }
.fn-ordnen { display: flex; gap: 4px; margin: 0; }
/* Symbol je Reiter, leicht getönt in der Farbe des Bereichs */
.fn-symbol { --ton: var(--text2); --ton-grund: var(--flaeche2); width: 36px; height: 36px; border-radius: 50%;
  flex-shrink: 0; display: grid; place-items: center; color: var(--ton); background: var(--ton-grund); }
.fn-symbol svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
  stroke-linejoin: round; }
.fn-symbol[data-wurzel="heute"] { --ton: var(--gelb); --ton-grund: var(--gelb-grund); }
.fn-symbol[data-wurzel="essen"] { --ton: var(--orange); --ton-grund: var(--orange-grund); }
.fn-symbol[data-wurzel="erfassen"], .fn-symbol[data-wurzel="ich"] { --ton: var(--ich); --ton-grund: var(--ich-grund); }
.fn-symbol[data-wurzel="zuhause"] { --ton: var(--tuerkis); --ton-grund: var(--tuerkis-grund); }
.fn-symbol[data-wurzel="wir"] { --ton: var(--lila); --ton-grund: var(--lila-grund); }

/* Suchfeld auf der Seite Suche und im Fenster über der Seite */
.suchfeld { display: flex; align-items: center; gap: 10px; margin: 0; padding: 4px 4px 4px 14px; border-radius: 22px;
  background: var(--flaeche); border: 1px solid var(--linie); }
.suchfeld:focus-within { border-color: var(--ich); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ich) 25%, transparent); }
.suchfeld > svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--leise); stroke-width: 2;
  stroke-linecap: round; }
.suchfeld input { flex: 1; min-width: 0; height: 46px; border: 0; background: transparent; color: var(--text);
  font: 500 var(--t-body) var(--schrift); outline: none; -webkit-appearance: none; appearance: none; }
.suchfeld input::-webkit-search-cancel-button { display: none; }
.suchfeld .knopf { min-height: var(--tipp); margin: 0; }
.suche-seite { display: flex; flex-direction: column; gap: 14px; }

dialog.suche-fenster { width: min(560px, calc(100% - 20px)); max-width: none; max-height: min(80dvh, 680px);
  margin: calc(env(safe-area-inset-top) + 10px) auto auto; padding: 0; border: 1px solid var(--linie); border-radius: 24px;
  background: var(--flaeche); color: var(--text); box-shadow: 0 24px 60px var(--schatten); overflow: hidden; }
dialog.suche-fenster[open] { display: flex; flex-direction: column; }
dialog.suche-fenster::backdrop { background: rgb(8 12 14 / 0.42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.suche-fenster .suchfeld { margin: 10px; background: var(--flaeche2); border-color: transparent; }
.suche-fenster .suchfeld .knopf-link { min-height: 40px; padding: 0 10px; text-decoration: none; font-weight: 600;
  color: var(--text2); }
.suche-liste { overflow-y: auto; overscroll-behavior: contain; padding: 0 10px 12px; }
.suche-liste .fn-gruppe { margin-top: 10px; }
.suche-liste .fn + .fn { border-top: 0; }
.suche-liste .fn-ziel { padding-left: 8px; }
.suche-liste .fn.aktiv .fn-ziel, .suche-liste .fn-ziel:hover { background: var(--flaeche2); }
.suche-liste .leise-zeile { padding: 14px 8px; }
@media (min-width: 960px) {
  dialog.suche-fenster { margin-top: 12vh; }
}

/* Auto › Verbrauch und Kosten (Wunsch Peter 28.09.2026): Kennzahlen des Monats, Diagramme je Monat */
.kennzahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 4px 0 0; }
.kennzahlen div { background: var(--flaeche2); border-radius: 16px; padding: 10px 12px; min-width: 0; display: flex;
  flex-direction: column; gap: 3px; align-items: flex-start; }
.kennzahlen dt { font-size: var(--t-caption1); color: var(--leise); font-weight: 500; }
.kennzahlen dd { margin: 0; font: 600 var(--t-title2) var(--schrift); letter-spacing: 0; white-space: nowrap; }
.kennzahlen dd small { font: 500 var(--t-caption1) var(--schrift); color: var(--leise); }
@media (min-width: 960px) { .kennzahlen { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.balken-ac { fill: var(--ampel-gruen); }  /* fest, nicht die Farbe der Person: Bei Bianca wäre sie wie DC */
.balken-dc { fill: var(--koralle); }
.balken-grundgebuehr { fill: var(--blass); }
.balken-km { fill: var(--lila); }
.flaeche-koralle { fill: var(--koralle); opacity: 0.14; }
.legende .l-ac::before { background: var(--ampel-gruen); }
.legende .l-dc::before { background: var(--koralle); }
.legende .l-grundgebuehr::before { background: var(--blass); }
.tabelle-rollen { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.vergleich tfoot .summe th, table.vergleich tfoot .summe td { border-top: 2px solid var(--linie);
  border-bottom: 0; font-weight: 700; color: var(--text); }
.ladezeile .betrag { font-weight: 700; font-variant-numeric: tabular-nums; align-self: flex-start; padding-top: 1px; }
.betrag-zeile { display: flex; gap: 8px; }
.formular .betrag-zeile input { flex: 1; min-width: 0; min-height: 44px; font-size: var(--t-body); }
.betrag-zeile .knopf { margin: 0; min-height: 44px; }
.auto-nutzung .kennzahlen dd { font-size: var(--t-title3); }
.linie-koralle.dick { stroke-width: 2.4; }

/* Seitenwechsel mit weichem Übergang (Wunsch Peter 29.09.2026): Der Inhalt blendet über und rückt ein Stück nach oben,
   die Leiste bleibt stehen. Safari ab iOS 18.2, Chrome und Edge, andere laden wie bisher. Wer am Gerät weniger
   Bewegung eingestellt hat, bekommt keinen Übergang. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .leiste { view-transition-name: leiste; }
  /* Kurz: Die neue Seite soll gleich stehen (Peter 29.09.2026: „deutlich schneller“). Gilt nur noch, wenn die ganze
     Seite lädt, etwa nach einem Formular. Seitenwechsel über Links tauschen den Inhalt ohne Übergang (wechsel.js) */
  ::view-transition-old(root) { animation: 60ms ease-out both feh-aus; }
  ::view-transition-new(root) { animation: 90ms ease-out both feh-ein; }
}
@keyframes feh-aus { to { opacity: 0; } }
@keyframes feh-ein { from { opacity: 0; } }

/* Seitenwechsel ohne Neuladen (wechsel.js): Dauert es länger als 150 ms, läuft oben ein schmaler Balken */
html.feh-laedt::before { content: ""; position: fixed; z-index: 30; left: 0; right: 0; top: env(safe-area-inset-top);
  height: 3px; background: var(--ich); transform-origin: left; animation: feh-balken 1.2s ease-out infinite; }
@keyframes feh-balken { from { transform: scaleX(0.1); } to { transform: scaleX(0.9); opacity: 0.4; } }
@media (prefers-reduced-motion: reduce) { html.feh-laedt::before { animation: none; transform: scaleX(0.6); } }

/* Sofort sichtbar, was angetippt wurde: Die Rückmeldung kommt, bevor die neue Seite da ist */
.leiste a, .unterseiten a, .knopf, .liste-links a, .kopf-knopf, .avatar, .buch-zeile, .fn-ziel {
  transition: transform 80ms ease-out, opacity 80ms ease-out; -webkit-tap-highlight-color: transparent; }
.leiste a:active, .unterseiten a:active, .knopf:active, .kopf-knopf:active, .avatar:active { transform: scale(0.95); }
.liste-links a:active, .buch-zeile:active, .fn-ziel:active { opacity: 0.6; }

/* Bücher (Wir › Bücher, 29.09.2026): Liste, Sterne, schnelles Bewerten */
.buecher { list-style: none; margin: 0; padding: 0; }
.buecher li + li { border-top: 1px solid var(--linie); }
.buch-zeile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0;
  color: var(--text); text-decoration: none; }
.buch-titel { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.buch-titel strong { overflow-wrap: anywhere; }
.leser { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.leser-chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.leser-name { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--flaeche2); font-size: var(--t-caption2); font-weight: 700; }
.sterne { color: var(--gelb); letter-spacing: 1px; white-space: nowrap; }
.sterne-wahl { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 6px; margin: 6px 0 12px; }
.stern-wahl { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--flaeche2); color: var(--blass); font-size: var(--t-title1); cursor: pointer; }
.stern-wahl input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.stern-wahl:has(input:checked), .stern-wahl:has(input:checked) ~ .stern-wahl { color: var(--gelb); }
.stern-wahl:has(input:focus-visible) { outline: 3px solid var(--ich); outline-offset: 2px; }
.stufen.fuenf { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bewerten h2 { font-size: var(--t-title2); margin: 6px 0 4px; }
.sterne-knoepfe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stern-knopf-gross { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 64px; border: 0; border-radius: 18px; background: var(--flaeche2); color: var(--gelb); font-size: var(--t-title1);
  line-height: 1; cursor: pointer; }
.stern-knopf-gross .klein { color: var(--text2); font-size: var(--t-caption1); }
.stern-knopf-gross:active { transform: scale(0.96); }

/* Tipps aus den Daten (29.09.2026): eigene Karte, nicht Gelb wie „Zu tun“. Gemeinsame im Lila für Gemeinsames, private
   in der Farbe der Person (Konzept 7). „Nicht mehr zeigen“ leiser als „Erledigt“ */
.tipp-karte { border-left: 4px solid var(--lila); }
.tipp-karte.privat { border-left-color: var(--ich); }
.tipp-marke { font-size: var(--t-caption1); font-weight: 600; color: var(--lila); }
.tipp-karte.privat .tipp-marke { color: var(--ich); }
.tipp-karte h2 { font-size: var(--t-callout); line-height: 1.35; }
.tipp-karte p { margin-top: 6px; }
.tipp-knoepfe { margin-top: 12px; align-items: center; }
.tipp-knoepfe form { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Woche planen (Essen › Planen, Peter 29.09.2026): Rezepte, Woche und Einkauf. Am iPhone untereinander, ab 1160 px
   nebeneinander. Dort scrollt jede Spalte für sich, so zieht man ein Rezept von ganz unten auf Montag, ohne dass
   die Seite mitläuft. Ziehen macht essen/planen.js */
.planen { display: flex; flex-direction: column; gap: 14px; }
.planen-wochen { display: flex; flex-wrap: wrap; gap: 8px; }
.planen-spalten { display: flex; flex-direction: column; gap: 16px; }
.planen-spalte { display: flex; flex-direction: column; gap: 10px; min-width: 0;
  overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }  /* lieber Silben trennen als mitten im Wort */
#spalte-woche { order: -1; }  /* untereinander (iPhone) zuerst die Woche, Rezepte per ＋ */
.planen-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.planen-filter { display: flex; flex-direction: column; gap: 8px; }
.planen-filter input[type="search"] { width: 100%; min-height: var(--tipp); padding: 0 14px; border-radius: var(--radius-klein);
  border: 1px solid var(--feldrand); background: var(--flaeche); color: var(--text); font: 400 var(--t-body) var(--schrift); }
.planen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.planen-chip { min-height: var(--tipp); padding: 0 14px; border-radius: var(--pille); border: 0;
  background: var(--flaeche2); color: var(--text); font: 500 var(--t-subhead) var(--schrift); cursor: pointer; }
.planen-chip[aria-pressed="true"] { background: var(--tinte); color: var(--auf-tinte); border-color: var(--tinte); }
.planen-rezepte, .planen-zeilen, .planen-zutaten { list-style: none; margin: 0; padding: 0; display: flex;
  flex-direction: column; gap: 6px; }
.planen-rezept { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 40px 6px 6px;
  border-radius: 16px; background: var(--flaeche2); border: 1px solid transparent; }
.planen-rezept > .plakette { position: absolute; right: 8px; bottom: 6px; font-size: var(--t-caption2); padding: 1px 7px; }
.planen-bild { flex: 0 0 56px; width: 56px; height: 42px; object-fit: cover; border-radius: 10px;
  background: var(--flaeche); }
.planen-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.planen-text strong { font-size: var(--t-subhead); line-height: 1.3; }
.planen-plus { position: absolute; top: 0; right: 0; width: var(--tipp); height: var(--tipp); border-radius: 50%; border: 6px solid transparent; background-clip: padding-box;
  background: var(--ich); color: var(--auf-akzent); font: 700 var(--t-callout) var(--schrift); cursor: pointer; }
.planen-tage { display: flex; flex-direction: column; gap: 8px; }
.planen-tag { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 18px;
  border: 1px solid var(--linie); background: var(--flaeche); }
.planen-tag.leer { border-style: dashed; }
.planen-tag.vorbei { opacity: 0.6; }
.planen-tag-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.planen-gericht { display: flex; align-items: center; gap: 10px; }
.planen-notiz { margin: 0; font-weight: 600; }
.planen-frei { margin: 0; padding: 6px 0; }
.planen-joker { background: var(--flaeche2); }
.planen-portionen { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.planen-portionen > .klein { white-space: nowrap; }
.planen-portionen form { margin: 0; }
.planen-rechts { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.planen-rechts form { margin: 0; }
.planen-rein { background: var(--ich); color: var(--auf-akzent); border-color: transparent; }
.planen-schritt { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%;
  background: var(--ich); color: var(--auf-akzent); font-size: var(--t-caption1); font-weight: 700; vertical-align: 1px; }
.planen-gruppe-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.planen-korb-knopf { margin: 0; }
.planen-korb-knopf .knopf { width: 100%; }
.planen-picnic { background: color-mix(in srgb, var(--ich) 7%, transparent); border-color: color-mix(in srgb, var(--ich) 35%, transparent); }
.planen-app { background: transparent; border: 1px dashed var(--linie); }
.planen-zeilen .grundsache, .planen-zutaten .grundsache { color: var(--leise); }
details.planen-gruppe > summary { cursor: pointer; }
.planen-mini { min-width: var(--tipp); height: var(--tipp); padding: 0 12px; border-radius: 22px; border: 1px solid var(--linie);
  background: var(--flaeche2); color: var(--text); font: 700 var(--t-subhead) var(--schrift); cursor: pointer; }
.planen-zutaten li { display: flex; justify-content: space-between; gap: 10px; font-size: var(--t-subhead); }
.planen-probleme { margin: 0; padding-left: 18px; color: var(--gelb); }
.planen-bestaetigen { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.planen-korb { display: flex; flex-direction: column; gap: 6px; }
.planen-korb form { margin: 0; }
.planen-korb .knopf { width: 100%; }
.planen-gruppe { display: flex; flex-direction: column; gap: 6px; padding: 8px; margin: 0 -8px; border-radius: 18px;
  border: 1px dashed transparent; }
.planen-gruppe-titel { margin: 4px 0 0; font-size: var(--t-footnote); font-weight: 600; color: var(--leise); }
.planen-zeile { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; border-radius: 14px;
  background: var(--flaeche2); }
.planen-zeile p { margin: 0; }
.planen-zeile.unsicher { background: var(--gelb-grund); border: 1px solid color-mix(in srgb, var(--gelb) 45%, transparent); }
.planen-zeile-kopf { display: flex; justify-content: space-between; gap: 8px; }
.planen-zeile-aktionen { display: flex; flex-direction: column; gap: 4px; }
.planen-zeile-aktionen form { margin: 0; }
.planen-zurueck { align-self: flex-start; font-size: var(--t-caption1); }
.planen-laeuft::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px;
  border-radius: 50%; border: 2px solid var(--ich); border-right-color: transparent;
  animation: planen-dreht 0.8s linear infinite; vertical-align: -1px; }
@keyframes planen-dreht { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .planen-laeuft::before { animation: none; } }
/* Ziehen: was sich ziehen lässt, zeigt es am PC mit dem Zeiger. Am iPhone kein Menü beim langen Antippen */
[data-ziehen] { cursor: grab; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
[data-ziehen] :is(a, button, input, select, summary, label) { cursor: pointer; }
html.planen-zieht, html.planen-zieht * { cursor: grabbing !important; user-select: none; }
.planen-geist { position: fixed; z-index: 40; pointer-events: none; opacity: 0.92; transform: rotate(1.5deg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); margin: 0; }
.planen-quelle { opacity: 0.35; }
[data-ablegen].ueber { outline: 2px dashed var(--ich); outline-offset: 2px;
  background: color-mix(in srgb, var(--ich) 10%, var(--flaeche)); }
.planen.speichert { opacity: 0.7; transition: opacity 0.15s; }
.planen-menue { position: fixed; z-index: 45; display: flex; flex-direction: column; gap: 4px; padding: 8px;
  border-radius: 18px; border: 1px solid var(--linie); background: var(--flaeche); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }
.planen-menue button { min-height: 40px; padding: 0 14px; border-radius: 12px; border: 0; background: var(--flaeche2);
  color: var(--text); font: 600 var(--t-subhead) var(--schrift); text-align: left; cursor: pointer; }
/* Ab 1160 px drei Spalten, auch am iPad quer (1180 px): Die Seite darf dafür breiter werden als die sonst 860 px */
@media (min-width: 1160px) {
  .seite:has(> .planen) { max-width: none; }
  .planen-spalten { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(250px, 1fr) minmax(270px, 1.15fr);
    align-items: start; gap: 12px; }
  .planen-spalte.karte { padding: 14px; }
  .planen-spalte { max-height: calc(100dvh - 230px); overflow-y: auto; overscroll-behavior: contain; }
  #spalte-woche { order: 0; }
}

/* Handy-Ansicht von Planen und Gericht wählen mit Fotos (Peter 02.10.2026). Unter 1160 px zwei Reiter, Woche oder
   Einkauf, die Gerichte wählt „Austauschen“ auf einer eigenen Seite mit Karten. Ab 1160 px bleibt alles wie es ist */
/* Woche oder Einkauf: Segmented Control wie die Unterseiten. Klebt beim Scrollen unter der kleinen Titelleiste */
.planen-reiter { display: flex; border-radius: var(--radius-mittel); background: var(--flaeche2);
  position: sticky; top: calc(env(safe-area-inset-top) + 50px); z-index: 5; }
.planen-reiter button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: var(--tipp); border: 3px solid transparent; background-clip: padding-box; border-radius: var(--radius-mittel);
  background-color: transparent; color: var(--text); font: inherit; font-size: var(--t-subhead); font-weight: 500;
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
.planen-reiter button[aria-selected="true"] { background-color: var(--segment-aktiv); font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.planen-reiter .plakette { font-size: var(--t-caption2); padding: 1px 7px; }
@media (max-width: 1159.98px) {
  .planen.mit-reitern #spalte-rezepte { display: none; }
  .planen.mit-reitern[data-reiter="woche"] #spalte-einkauf, .planen.mit-reitern[data-reiter="einkauf"] #spalte-woche { display: none; }
  .planen.mit-reitern .planen-tag .planen-gericht { flex-direction: column; align-items: stretch; }
  .planen.mit-reitern .planen-tag .planen-gericht .planen-bild { width: 100%; height: auto; flex-basis: auto;
    aspect-ratio: 16 / 9; border-radius: 14px; }
  .planen.mit-reitern .planen-frei { display: none; }
  .planen-tag > .nur-schmal { align-self: flex-start; }
}
@media (min-width: 1160px) { .planen-reiter, .nur-schmal { display: none !important; } }

.auswahl { display: flex; flex-direction: column; gap: 12px; }
.auswahl-jetzt { display: flex; flex-direction: column; gap: 8px; }
.auswahl-jetzt p { margin: 0; }
.auswahl-leiste { display: flex; flex-direction: column; gap: 8px; }
.auswahl-leiste input[type="search"] { width: 100%; min-height: var(--tipp); padding: 0 14px; border-radius: var(--radius-klein);
  border: 1px solid var(--feldrand); background: var(--flaeche); color: var(--text); font: 400 var(--t-body) var(--schrift); }
.auswahl-ordnen { display: flex; align-items: center; gap: 8px; }
.auswahl-ordnen select { min-height: 36px; }
.auswahl-raster { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
.auswahl-karte { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 18px;
  background: var(--flaeche); border: 1px solid var(--linie); }
.auswahl-karte.im-plan { opacity: 0.65; }
.auswahl-link { flex: 1; display: flex; flex-direction: column; gap: 3px; padding-bottom: 8px; color: inherit;
  text-decoration: none; }
.auswahl-link > :not(.auswahl-bildrahmen) { padding: 0 10px; }
.auswahl-bildrahmen { position: relative; display: block; margin-bottom: 4px; }
.auswahl-bildrahmen .plakette { position: absolute; top: 8px; left: 8px; }
.auswahl-bild { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--flaeche2); }
.auswahl-name { font-size: var(--t-subhead); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; hyphens: auto; overflow-wrap: break-word; }
.auswahl-sterne { color: var(--gelb); }
.auswahl-karte .auswahl-nehmen { margin: 0; padding: 0 8px 8px; }
.auswahl-karte .auswahl-nehmen .knopf { width: 100%; }
.rezept-ansicht { display: flex; flex-direction: column; gap: 10px; }
.rezept-ansicht p { margin: 0; }
.rezept-ansicht-bild { display: block; width: 100%; max-height: 360px; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: 16px; background: var(--flaeche2); }
.rezept-eckdaten { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.rezept-eckdaten li { padding: 4px 10px; border-radius: 12px; background: var(--flaeche2); font-size: var(--t-footnote); }
.rezept-ansicht .auswahl-nehmen { margin: 0; }
.rezept-ansicht .auswahl-nehmen .knopf { width: 100%; }

/* ---------------------------------------------------------------------------------------------------------------
   Umbau 17.10.2026: farbige Symbole, Menü „Alles“, gruppierte Listen, Erfassen und Schnellzugriff als Kacheln.
   Peter: „Einzelne Dinge muss ich immer wieder suchen und brauche so viele Klicks“ und „nicht so mega modern“.
   --------------------------------------------------------------------------------------------------------------- */
.ikon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round;
  stroke-linejoin: round; flex-shrink: 0; }
/* Symbolfarbe und ihr heller Grund. Seit dem neuen Design (17.10.2026) je Bereich: Ich Jade, Essen Orange, Pflanzen
   Türkis, Auto Blau, Wir Lila (kern/symbole.py) */
.ton-ich { --ton: var(--ich); --ton-grund: var(--ich-grund); }
.ton-mint { --ton: var(--mint); --ton-grund: var(--mint-grund); }
.ton-koralle { --ton: var(--koralle); --ton-grund: var(--koralle-grund); }
.ton-lila { --ton: var(--lila); --ton-grund: var(--lila-grund); }
.ton-gelb { --ton: var(--gelb); --ton-grund: var(--gelb-grund); }
.ton-gruen { --ton: var(--ampel-gruen); --ton-grund: color-mix(in srgb, var(--ampel-gruen) 14%, var(--flaeche)); }
.ton-blau { --ton: var(--blau); --ton-grund: var(--blau-grund); }
.ton-orange { --ton: var(--orange); --ton-grund: var(--orange-grund); }
.ton-pink { --ton: var(--koralle); --ton-grund: var(--koralle-grund); }
.ton-tuerkis { --ton: var(--tuerkis); --ton-grund: var(--tuerkis-grund); }
.ton-grau { --ton: var(--leise); --ton-grund: var(--flaeche2); }
:root { --ton: var(--leise); --ton-grund: var(--flaeche2); }
/* Symbolquadrat: Grund im *-grund-Ton, Linie in der Symbolfarbe, getönt statt voll gefüllt (Übergabe 17.10.2026) */
.app-symbol, .symbolquadrat { width: 40px; height: 40px; border-radius: var(--radius-symbol); flex-shrink: 0; display: grid;
  place-items: center; color: var(--ton); background: var(--ton-grund); }
.app-symbol .ikon { width: 21px; height: 21px; stroke-width: 1.9; }
.app-symbol.klein, .symbolquadrat { width: 38px; height: 38px; }
.app-symbol.klein .ikon, .symbolquadrat .ikon { width: 19px; height: 19px; stroke-width: 2; }

/* Symbolkachel (Schnellzugriff, Menü „Alles“): Kachel auf --flaeche, Radius 20, Symbolquadrat 44 px, darunter der
   Name 12 px / 700. Raster 4 Spalten, Lücke 8 px */
.app-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px; }
.app { display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; padding: 12px 4px 10px;
  border-radius: var(--radius-gross); border: 1px solid var(--linie); background: var(--flaeche); color: var(--text);
  text-decoration: none; text-align: center; -webkit-tap-highlight-color: transparent;
  transition: transform 80ms ease-out; }
.app:active { transform: scale(0.95); }
.app .app-symbol { width: 44px; height: 44px; border-radius: var(--radius-symbol); }
.app .app-symbol .ikon { width: 22px; height: 22px; }
.app-name { font-size: var(--t-caption1); font-weight: 600; line-height: 1.2; max-width: 100%; overflow-wrap: break-word;
  -webkit-hyphens: auto; hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.app[aria-current="page"] { box-shadow: inset 0 0 0 2px var(--ton); }
.app:focus-visible { outline: 3px solid var(--ich); outline-offset: 2px; }
@media (hover: hover) { .app:hover { background: var(--flaeche2); } }

/* Menü „Alles“ (kern/_alles.html): ein Blatt von unten am iPhone, rechts am PC. popover braucht kein Skript, ein Tipp
   daneben schließt es. Neues Design 17.10.2026: ab 74 px von oben, Radius 30 oben, Grund wie die Seite, darüber
   --dimm. Griff 40 × 5. Kopf mit Kreis 48 px, Name und „Mein Bereich ›“, und Schließen. Je Gruppe Titel Subhead
   mit „privat“/„gemeinsam“, darunter Symbolkacheln, am Ende eine Listenkarte */
.blatt { position: fixed; inset: 74px 0 0 0; width: 100%; max-width: 600px; height: auto; max-height: none;
  margin: 0 auto; padding: 8px 16px calc(env(safe-area-inset-bottom) + 34px); border: 0; border-radius: 20px 20px 0 0;
  background: var(--bg); color: var(--text); overflow-y: auto; overscroll-behavior: contain;
  box-shadow: var(--schatten-blatt); touch-action: pan-y; }
/* Griff: Ziehen nach unten schließt das Blatt (feh.js), Tippen auch. 44 pt hohe Fläche, sichtbar 36 × 5 */
.blatt-griff { position: relative; touch-action: none; }
.blatt-kopf { touch-action: none; }
.blatt-griff::after { content: ""; position: absolute; left: -20px; right: -20px; top: -14px; bottom: -14px; }
.blatt::backdrop { background: var(--dimm); }
.blatt:popover-open { display: flex; flex-direction: column; gap: 16px; }
.blatt-griff { width: 36px; height: 5px; border-radius: 3px; background: var(--feldrand); opacity: 0.6; margin: 4px auto; flex: none; cursor: grab; }
.blatt-kopf { display: flex; align-items: center; gap: 12px; }
.blatt-kopf .avatar { width: 48px; height: 48px; font-size: var(--t-body); flex-shrink: 0; cursor: default; }
.blatt-ich { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.blatt-ich strong { font: 500 var(--t-body)/1.25 var(--schrift); }
.blatt-ich a { align-self: flex-start; font-size: var(--t-footnote); font-weight: 500; color: var(--leise); text-decoration: none;
  padding: 2px 0; }
.blatt-gruppe { display: flex; flex-direction: column; gap: 8px; }
.blatt-gruppe h2 { margin: 0 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  font: 500 var(--t-subhead)/1.3 var(--schrift); }
.blatt-gruppe h2 .art { font: 600 var(--t-caption1) var(--schrift); color: var(--leise); }
.blatt .app { padding: 10px 2px 9px; border-radius: 18px; gap: 6px; }
.blatt .app .app-symbol { width: 40px; height: 40px; }
.blatt .app .app-symbol .ikon { width: 21px; height: 21px; }
.blatt .app-name { font-size: var(--t-caption1); }
.blatt .listenkarte { border-radius: 20px; padding: 0 14px; }
.blatt .listen-zeile { min-height: 50px; }
.blatt .listen-zeile > .ikon:first-child { width: 20px; height: 20px; color: var(--leise); }
@media (prefers-reduced-motion: no-preference) {
  .blatt:popover-open { animation: blatt-rein 0.38s var(--kurve-raus); }
}
@keyframes blatt-rein { from { transform: translateY(40%); opacity: 0.4; } }
@media (min-width: 960px) {
  .blatt { inset: 16px 16px 16px auto; width: 440px; margin: 0; border-radius: 28px; padding: 18px 18px 22px;
    box-shadow: var(--schatten-leiste); }
  .blatt-griff { display: none; }
  @keyframes blatt-rein { from { transform: translateX(30px); opacity: 0; } }
}

/* Liste mit Trennlinien (Übergabe 17.10.2026): in einer Karte, Innenabstand 0/16, Zeilen 46 bis 60 px hoch, Linie oben,
   erste Zeile ohne. Links optional ein Symbolquadrat, rechts ein Pfeil 16 px in --leise */
.karte.listenkarte, .listenkarte { padding: 0 16px; }
.listenkarte > h2 { padding: 12px 0 6px; }
.listen-zeile { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 7px 0; color: inherit;
  text-decoration: none; border-top: 0.5px solid var(--linie); -webkit-tap-highlight-color: transparent; }
.listenkarte > .listen-zeile:first-child, .listenkarte > h2 + .listen-zeile, .listen-zeile.ohne-linie { border-top: 0; }
.listen-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.listen-text strong { font-size: var(--t-body); font-weight: 400; line-height: 1.3; }
.listen-text .klein, .listen-text small { font-size: var(--t-caption1); color: var(--leise); }
.listen-zeile > .ikon:last-child { width: 16px; height: 16px; color: var(--leise); stroke-width: 2; }
.listen-zeile:focus-visible { outline: 3px solid var(--ich); outline-offset: -3px; border-radius: 12px; }
a.listen-zeile:active { opacity: 0.6; }
/* Datumskästchen: Wochentag klein über der Zahl, neutral, auf Essen in Orange */
.datum-kasten { width: 36px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding: 4px 0;
  border-radius: 10px; background: var(--flaeche2); color: var(--text); }
.datum-kasten .tag { font-size: var(--t-caption2); font-weight: 600; color: var(--leise); }
.datum-kasten .nr { font: 500 var(--t-subhead)/1.1 var(--schrift); }
.datum-kasten.orange { width: 44px; height: 44px; justify-content: center; border-radius: 12px;
  background: var(--orange-grund); color: var(--orange); }
.datum-kasten.orange .tag { color: inherit; }

/* Gruppierte Liste mit Symbol, Text und Pfeil, wie die Einstellungen am iPhone: Ich */
.gruppe { display: flex; flex-direction: column; overflow: hidden; }
.karte.gruppe { padding: 0 16px; }
.gruppe-zeile { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 9px 0; color: inherit;
  text-decoration: none; position: relative; -webkit-tap-highlight-color: transparent; }
.gruppe-zeile + .gruppe-zeile, .gruppe-chips + .gruppe-zeile { border-top: 0.5px solid var(--linie); }
.gruppe-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.gruppe-text strong { font-size: var(--t-body); font-weight: 400; line-height: 1.3; }
.gruppe-text .klein { color: var(--leise); }
.gruppe-zeile > .ikon:last-child { width: 16px; height: 16px; color: var(--leise); stroke-width: 2; }
.gruppe-zeile .zusatz { font-size: var(--t-footnote); color: var(--leise); font-weight: 500; white-space: nowrap; }
.gruppe-zeile:active { opacity: 0.6; }
.gruppe-zeile:focus-visible { outline: 3px solid var(--ich); outline-offset: -3px; border-radius: 14px; }
.gruppe-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 12px 50px; margin-top: -6px; }
.gruppe-chips a { display: inline-flex; align-items: center; min-height: var(--tipp); padding: 0 14px;
  border-radius: var(--pille); background: var(--flaeche2); color: var(--ich); font-size: var(--t-subhead); font-weight: 500;
  text-decoration: none; }
.gruppe-chips a:active { transform: scale(0.95); }

/* Erfassen: Kacheln zu zweit, groß genug für den Daumen */
.erfassen-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.erfassen-kachel { display: flex; flex-direction: column; gap: 10px; min-height: 128px; padding: 16px; text-decoration: none;
  color: inherit; transition: transform 80ms ease-out; }
.erfassen-kachel:active { transform: scale(0.97); }
.erfassen-kachel .app-symbol { width: 44px; height: 44px; border-radius: var(--radius-symbol); margin-bottom: 4px; }
.erfassen-kachel strong { font: 600 var(--t-headline)/1.25 var(--schrift); }
/* Ganz zeigen, nicht nach drei Zeilen abschneiden: Bei größerer Textgröße fehlte sonst das Wichtige (HIG typography.md) */
.erfassen-kachel .klein { color: var(--leise); -webkit-hyphens: auto; hyphens: auto; }
@media (min-width: 960px) { .erfassen-raster { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

/* Schnellzugriff auf Heute: Abschnittstitel, darunter Symbolkacheln zu viert */
.schnell { display: flex; flex-direction: column; gap: 10px; }
.schnell-kopf { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 4px; }
.schnell-kopf .knopf.schlicht { margin-right: -8px; font-size: var(--t-subhead); font-weight: 400; }
.schnell-unter { margin: 4px 4px 0; font-size: var(--t-caption1); font-weight: 600; color: var(--leise); }
@media (min-width: 960px) { .schnell .app-raster { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); } }

/* Essen › „Wie war es?“ (neues Design 17.10.2026): Gericht und Tag, darunter fünf Sterne-Knöpfe 48 px auf --flaeche2 */
.bewerten-karte { display: flex; flex-direction: column; gap: 4px; padding: 16px; }
.bewerten-liste { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.bewerten-liste li { display: flex; flex-direction: column; gap: 8px; }
.bewerten-liste li + li { padding-top: 14px; border-top: 1px solid var(--linie); }
.sterne-tippen { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin: 0; }
.stern-tippen { height: 48px; border: 0; border-radius: 14px; background: var(--flaeche2); color: var(--gelb);
  display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.stern-tippen .ikon { width: 22px; height: 22px; stroke-width: 1.8; }
.stern-tippen:active { transform: scale(0.94); }
/* Ein Stern füllt die davor mit: Fährt der Zeiger über den dritten, leuchten eins bis drei */
@media (hover: hover) {
  .sterne-tippen:has(.stern-tippen:hover) .stern-tippen .ikon { fill: currentColor; }
  .stern-tippen:hover ~ .stern-tippen .ikon { fill: none !important; }
}

/* Bewegung mit Zweck (Peter 04.10.2026: „nützlich, aber cool und modern“). Jede Bewegung sagt etwas: Die Karten treten
   gestaffelt auf und zeigen, was neu ist; die helle Markierung der Leiste gleitet dorthin, wo es hingeht; Verläufe
   zeichnen sich von alt nach neu; große Zahlen zählen hoch; Meldungen federn herein. Alles kurz (höchstens 0,7 s),
   nichts wartet darauf. feh.js setzt die Klasse feh-auftritt beim Laden, nach jedem Seitenwechsel und am Klappbereich,
   den man selbst öffnet, nie beim Nachladen eines Teils wie auf Planen. Wer am Gerät weniger Bewegung eingestellt hat,
   bekommt keine. */
:root { --kurve-raus: cubic-bezier(0.16, 1, 0.3, 1); --kurve-feder: cubic-bezier(0.34, 1.45, 0.64, 1); }
.zahl { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  html.feh-auftritt .kopf h1 { animation: feh-titel 0.5s var(--kurve-raus) both; }
  /* Das Deckblatt tritt nicht mit auf: Beim Verschieben blitzte darunter das Papier (Neuaufbau 15.11.2026) */
  html.feh-auftritt .seite > :not(.kopf):not(.kacheln):not(.deckblatt), html.feh-auftritt .kacheln > * {
    animation: feh-auftauchen 0.46s var(--kurve-raus) both; }
  html.feh-auftritt .seite > :nth-child(3), html.feh-auftritt .kacheln > :nth-child(2) { animation-delay: 40ms; }
  html.feh-auftritt .seite > :nth-child(4), html.feh-auftritt .kacheln > :nth-child(3) { animation-delay: 80ms; }
  html.feh-auftritt .seite > :nth-child(5), html.feh-auftritt .kacheln > :nth-child(4) { animation-delay: 120ms; }
  html.feh-auftritt .seite > :nth-child(6), html.feh-auftritt .kacheln > :nth-child(5) { animation-delay: 160ms; }
  html.feh-auftritt .seite > :nth-child(7), html.feh-auftritt .kacheln > :nth-child(6) { animation-delay: 200ms; }
  html.feh-auftritt .seite > :nth-child(n+8), html.feh-auftritt .kacheln > :nth-child(n+7) { animation-delay: 240ms; }
  /* Verläufe zeichnen sich von links nach rechts, Balken wachsen aus der Grundlinie, Punkte ploppen auf */
  html.feh-auftritt .verlauf-diagramm, details.feh-auftritt .verlauf-diagramm {
    animation: feh-zeichnen 0.75s var(--kurve-raus) 0.12s both; }
  html.feh-auftritt .verlauf-diagramm rect, details.feh-auftritt .verlauf-diagramm rect {
    transform-box: fill-box; transform-origin: 50% 100%; animation: feh-wachsen 0.6s var(--kurve-feder) 0.15s both; }
  html.feh-auftritt .verlauf-diagramm circle, details.feh-auftritt .verlauf-diagramm circle {
    transform-box: fill-box; transform-origin: center; animation: feh-ploppen 0.4s var(--kurve-feder) 0.3s both; }
  details.feh-auftritt > :not(summary) { animation: feh-aufklappen 0.32s var(--kurve-raus) both; }
  .meldungen > * { animation: feh-meldung 0.5s var(--kurve-feder) both; }
  dialog.aktionsblatt[open] { animation: aktionsblatt-rein var(--dauer-mittel) var(--kurve-raus); }
  .klapp-zeile > summary > .ikon:last-child { transition: transform 0.2s ease; }
  /* Der Knopf „Werte von Polar abrufen“ dreht sein Symbol beim Tippen */
  .auffrischen button:active .ikon { transform: rotate(180deg); transition: transform 0.4s var(--kurve-raus); }
  /* Ziehen zum Aktualisieren (feh.js): Der Pfeil blendet ein und dreht sich beim Neuladen */
  .ziehen-anzeige { transition: opacity var(--dauer-kurz) ease, color var(--dauer-kurz) ease; }
  .ziehen-anzeige.laedt svg { animation: ziehen-dreht 0.8s linear infinite; }
  /* Die Markierung der Leiste gleitet beim Seitenwechsel zum neuen Bereich (View Transitions, wechsel.js) */
  .leiste a[aria-current="page"] { view-transition-name: leiste-aktiv; }
  ::view-transition-group(leiste-aktiv) { animation-duration: 0.38s; animation-timing-function: var(--kurve-feder); }
  /* Am PC hebt sich, was man antippen kann */
  @media (hover: hover) {
    .kachel-link, .auswahl-karte { transition: transform 0.22s var(--kurve-raus), box-shadow 0.22s var(--kurve-raus); }
    .kachel-link:hover, .auswahl-karte:hover { transform: translateY(-2px); box-shadow: 0 10px 28px var(--schatten); }
  }
}
@keyframes feh-auftauchen { from { opacity: 0; transform: translateY(12px) scale(0.985); } }
@keyframes feh-titel { from { opacity: 0; transform: translateX(-10px); } }
@keyframes feh-zeichnen { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes feh-wachsen { from { transform: scaleY(0); } }
@keyframes feh-ploppen { from { transform: scale(0); } }
@keyframes feh-aufklappen { from { opacity: 0; transform: translateY(-6px); } }
@keyframes feh-meldung { from { opacity: 0; transform: translateY(-14px) scale(0.96); } }

/* Essen › Woche (neues Design 17.10.2026). Tagesleiste Mo bis So in einer Karte, Zellen 62 px. Heute dunkel, vergangene
   Tage leise, ein Punkt 5 px in Orange, wenn ein Abendessen geplant ist */
.tagesleiste { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 6px;
  border-radius: var(--radius-gross); }
.tag-zelle { min-height: 62px; border-radius: 11px; color: var(--text); text-decoration: none; display: flex;
  flex-direction: column; align-items: center; justify-content: center; gap: 2px; -webkit-tap-highlight-color: transparent; }
.tag-zelle.vorbei { color: var(--leise); }
.tag-zelle.heute { background: var(--tinte); color: var(--auf-tinte); }
.tag-kurz { font-size: var(--t-caption1); font-weight: 600; opacity: 0.8; }
.tag-nr { font: 500 var(--t-body)/1.2 var(--schrift); }
.tag-punkt { width: 5px; height: 5px; border-radius: 50%; }
.tag-punkt.an { background: var(--orange); }
.tag-zelle:focus-visible { outline: 3px solid var(--ich); outline-offset: 1px; }
/* Heute Abend: Rezeptfoto 190 px, Radius 20, Plakette oben links, Name Title 2, Plaketten, zwei Knöpfe nebeneinander */
.karte.heute-abend { padding: 10px; border-radius: 20px; display: flex; flex-direction: column; gap: 14px; }
.heute-abend-bildrahmen { position: relative; height: 190px; border-radius: 12px; overflow: hidden;
  background: var(--orange-grund); }
.heute-abend-bild { display: block; width: 100%; height: 100%; object-fit: cover; }
.heute-abend-ohne-bild { position: absolute; inset: 0; display: grid; place-items: center; color: var(--orange); }
.heute-abend-ohne-bild .ikon { width: 34px; height: 34px; stroke-width: 1.6; }
.heute-abend-marke { position: absolute; left: 12px; top: 12px; padding: 5px 11px; background: var(--flaeche);
  color: var(--text); font-weight: 700; }
.heute-abend-text { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.heute-abend-text h2 { font: 500 var(--t-title2)/1.2 var(--schrift); letter-spacing: 0; }
.heute-abend-plaketten { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.heute-abend-plaketten .plakette { padding: 5px 10px; }
.heute-abend-knoepfe { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; padding: 0 2px 2px; }
.heute-abend-knoepfe:empty { display: none; }
@media (min-width: 960px) {
  .karte.heute-abend { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); align-items: center;
    column-gap: 18px; }
  .heute-abend-bildrahmen { grid-row: 1 / 3; height: 100%; min-height: 220px; }
  .heute-abend-knoepfe { padding: 0 8px 8px; }
}

/* Gesundheit › Nacht (neues Design 17.10.2026). Kopf mit „‹ Ich“, Karte „Letzte Nacht“: Pfeilknöpfe 44 px links und rechts,
   Titel und Datum mittig, Dauer 46 px groß mit Zeitspanne, Score-Ring 70 px, Hypnogramm (Balken 14 px, Radius 4) und
   vier Phasen-Kästchen mit Farbpunkt */
.karte.nacht { display: flex; flex-direction: column; gap: 16px; padding: 16px 18px 18px; }
.nacht-kopf { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rund-knopf { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: var(--flaeche2);
  color: var(--text2); display: grid; place-items: center; text-decoration: none; }
.rund-knopf .ikon { width: 16px; height: 16px; stroke-width: 2.2; }
.rund-knopf.aus { color: var(--linie); }
a.rund-knopf:active { transform: scale(0.94); }
.nacht-titel { display: flex; flex-direction: column; gap: 1px; text-align: center; min-width: 0; }
.karte .nacht-titel h2 { font-size: var(--t-subhead); letter-spacing: 0; }
.nacht-titel span { font-size: var(--t-caption1); font-weight: 500; color: var(--leise); }
.nacht-dauer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nacht-dauer-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nacht-zahl .zahl { font: 500 2.706rem/1 var(--schrift); letter-spacing: 0; }
.nacht-zahl .einheit { font: 600 var(--t-callout) var(--schrift); color: var(--leise); }
.nacht-spanne { font-size: var(--t-footnote); font-weight: 500; color: var(--text2); }
.ring.score-ring { width: 70px; height: 70px; }
.score-ring .ring-grund, .score-ring .ring-wert { stroke-width: 12; }
.score-ring .ring-mitte .zahl { font-size: var(--t-title3); }
.score-ring .ring-mitte .einheit { margin-top: 0; font-size: var(--t-caption2); }
.karte.nacht .hypno { margin: 0; }
.hypno .achse { font: 500 10.5px var(--schrift); }
.phasen-kaesten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px; }
.phasen-kaesten li { display: flex; flex-direction: column; gap: 3px; padding: 9px 8px; border-radius: 14px;
  background: var(--flaeche2); min-width: 0; }
.phase-name { display: flex; align-items: center; gap: 5px; font-size: var(--t-caption1); font-weight: 600; color: var(--leise); }
.phase-name::before { content: ""; width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }
.phasen-kaesten .tief .phase-name::before { background: var(--phase-tief); }
.phasen-kaesten .leicht .phase-name::before { background: var(--phase-leicht); }
.phasen-kaesten .rem .phase-name::before { background: var(--phase-rem); }
.phasen-kaesten .wach .phase-name::before { background: var(--phase-wach); }
/* Reihenfolge wie im Entwurf: Tief, Leicht, REM, Wach (die Daten kommen wie in Telegram als Tief, REM, Leicht, Wach) */
.phasen-kaesten .leicht { order: 1; } .phasen-kaesten .rem { order: 2; } .phasen-kaesten .wach { order: 3; }
.phase-dauer { font: 500 var(--t-callout) var(--schrift); }
/* Gegen die Nacht davor: Name, Wert, Differenz mit ▲/▼/= in Ampelfarbe. Farbe nie allein, immer mit Pfeil */
.vergleich-zeile { min-height: 46px; gap: 10px; padding: 4px 0; }
.vergleich-name { flex: 1; min-width: 0; font-size: var(--t-subhead); font-weight: 500; }
.vergleich-wert { font: 500 var(--t-subhead) var(--schrift); white-space: nowrap; }
.vergleich-diff { min-width: 74px; text-align: right; font-size: var(--t-footnote); font-weight: 700; color: var(--leise);
  white-space: nowrap; }
.vergleich-diff.gut { color: var(--ampel-gruen); }
.vergleich-diff.schlecht { color: var(--ampel-rot); }
/* Halbe Karten mit großer Zahl: Erholung und Belastung */
.zahl-karte { gap: 8px; color: inherit; text-decoration: none; }
.zahl-karte .halb-etikett { color: var(--leise); }
.halb-zahl { font: 500 var(--t-title1)/1 var(--schrift); }
.halb-zahl small { font: 600 var(--t-subhead) var(--schrift); color: var(--leise); }
.zahl-karte .klein { font-size: var(--t-caption1); font-weight: 500; color: var(--text2); }
.zahl-karte .plakette { padding: 3px 9px; font-size: var(--t-caption1); }
a.zahl-karte:active { transform: scale(0.98); }
/* „Mehr zur Nacht“: Klappliste in einer Karte, je Zeile Symbolquadrat 34 px, Name, Kurzinfo und Pfeil nach unten */
.mehr-nacht { display: flex; flex-direction: column; gap: 8px; }
.mehr-nacht > .abschnitt-titel { margin: 0 4px; }
.karte.klappliste { padding: 0 14px; border-radius: var(--radius-mittel); }
.klapp-zeile + .klapp-zeile { border-top: 1px solid var(--linie); }
.klapp-zeile > summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 6px 0;
  cursor: pointer; -webkit-tap-highlight-color: transparent; }
.klapp-zeile > summary::-webkit-details-marker { display: none; }
.klapp-zeile > summary .symbolquadrat { width: 34px; height: 34px; }
.klapp-zeile > summary .symbolquadrat .ikon { width: 18px; height: 18px; }
.klapp-zeile > summary > .ikon:last-child { width: 16px; height: 16px; color: var(--leise); stroke-width: 2; }
.klapp-zeile[open] > summary > .ikon:last-child { transform: rotate(180deg); }
.klapp-zeile > summary:focus-visible { outline: 3px solid var(--ich); outline-offset: -2px; border-radius: 12px; }
.klapp-zeile > :not(summary) { margin-bottom: 12px; }
.klapp-zeile > p + p, .klapp-zeile > p + dl, .klapp-zeile > dl + p { margin-top: 8px; }
/* Gesundheit › Langzeit (17.10.2026, nach „Healthspan“ bei WHOOP): Woche gegen Woche, 30 Tage gegen sechs Monate, je
   Wert ein kleiner Monatsverlauf. Der laufende Monat in der Personenfarbe, die Monate davor neutral */
.langzeit-kopf { flex-direction: column; align-items: flex-start; gap: 2px; margin: 0; padding: 12px 0 6px; }
.langzeit-tage { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 0 14px; margin: 0;
  border-top: 1px solid var(--linie); }
.langzeit-bilanz { display: flex; flex-direction: column; gap: 8px; }
.langzeit-bilanz .langzeit-tage { border-top: 0; padding: 2px 0; }
.langzeit-zeile { gap: 10px; }
.langzeit-pdf { align-self: flex-start; margin-top: 4px; }
.langzeit-pdf .ikon { width: 18px; height: 18px; }
/* Heute: Gesundheitsdaten als PDF (30.10.2026), Text links, Knopf rechts, schmal untereinander */
/* Blatt „Gesundheitsdaten“ (Heute, Ordner oben rechts, 05.11.2026): so hoch wie sein Inhalt, unten angesetzt */
.blatt.export-blatt { inset: auto 0 0 0; max-height: calc(100dvh - 74px); }
@media (min-width: 960px) { .blatt.export-blatt { inset: 16px 16px auto auto; max-height: calc(100dvh - 32px); } }
.export-formular { display: flex; flex-direction: column; gap: 12px; }
.export-formular .stufen { margin: 8px 0 0; }
.export-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.export-knoepfe .knopf { flex: 1 1 140px; margin-top: 0; }
.export-knoepfe .ikon { width: 18px; height: 18px; }
.export-hinweis { margin: 0; }

/* Ziehen zum Aktualisieren (feh.js, nur als App vom Home-Bildschirm): ein runder Pfeil wandert unter der Statusleiste
   mit dem Finger herunter, ab der Schwelle in der Akzentfarbe. Bewegung unter „Bewegung mit Zweck“ */
.ziehen-anzeige { position: fixed; z-index: 30; left: 50%; top: calc(env(safe-area-inset-top) - 36px); width: 36px;
  height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--flaeche); color: var(--leise);
  box-shadow: var(--schatten-blatt); opacity: 0; transform: translate(-50%, 0); pointer-events: none; }
.ziehen-anzeige svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
  stroke-linejoin: round; }
.ziehen-anzeige.bereit, .ziehen-anzeige.laedt { color: var(--ich); }
.ziehen-anzeige.laedt { opacity: 1; }
@keyframes ziehen-dreht { to { transform: rotate(360deg); } }
.langzeit-balken { width: 84px; height: 32px; flex-shrink: 0; }
.langzeit-balken .frueher { fill: var(--blass); opacity: 0.55; }
.langzeit-balken .jetzt { fill: var(--ich); }
.langzeit-wert { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 76px;
  text-align: right; }
.langzeit-wert .vergleich-diff { min-width: 0; font-size: var(--t-caption1); }
@media (max-width: 359px) { .langzeit-balken { display: none; } }
/* Pulszonen je Training (Polar liefert sie mit): Zone 1 bis 5 von ruhig bis hart, ein schmaler Balken */
.geraete li:has(.pulszonen) { flex-wrap: wrap; }
.pulszonen { flex-basis: 100%; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; display: block; }
.pulszonen .zone-1 { fill: var(--blass); } .pulszonen .zone-2 { fill: var(--blau); }
.pulszonen .zone-3 { fill: var(--ampel-gruen); } .pulszonen .zone-4 { fill: var(--gelb); }
.pulszonen .zone-5 { fill: var(--ampel-rot); }
.zonen-legende { margin: 0 0 12px; }
.zonen-legende .zone-1::before { background: var(--blass); } .zonen-legende .zone-2::before { background: var(--blau); }
.zonen-legende .zone-3::before { background: var(--ampel-gruen); } .zonen-legende .zone-4::before { background: var(--gelb); }
.zonen-legende .zone-5::before { background: var(--ampel-rot); }
.tage-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 22px;
  background: var(--flaeche2); color: var(--text); font-weight: 600; text-decoration: none; }
.tage-nav a:active { transform: scale(0.96); }

/* Bestätigung vor dem Löschen als Aktionsblatt von unten (HIG alerts.md, action-sheets.md): oben die Frage, darunter die
   destruktive Aktion in Rot, getrennt davon „Abbrechen“. feh.js baut es für jedes Formular mit data-bestaetigen. Ohne
   JavaScript löscht der Knopf wie bisher direkt */
dialog.aktionsblatt { position: fixed; inset: auto 0 0 0; width: 100%; max-width: 560px; margin: 0 auto; border: 0;
  padding: 8px max(8px, env(safe-area-inset-right)) calc(max(8px, env(safe-area-inset-bottom)) + 4px)
    max(8px, env(safe-area-inset-left)); background: transparent; color: var(--text); overflow: visible; }
dialog.aktionsblatt[open] { display: flex; flex-direction: column; gap: 8px; }
dialog.aktionsblatt::backdrop { background: var(--dimm); }
.aktionsblatt-gruppe { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: var(--material); -webkit-backdrop-filter: var(--material-unschaerfe);
  backdrop-filter: var(--material-unschaerfe); }
.aktionsblatt-frage { margin: 0; padding: 14px 16px; text-align: center; font-size: var(--t-footnote); font-weight: 500;
  color: var(--leise); }
.aktionsblatt button { min-height: 56px; padding: 0 16px; border: 0; border-top: 0.5px solid var(--linie);
  background: none; color: var(--ich); font-size: var(--t-title3); cursor: pointer; }
.aktionsblatt button.destruktiv { color: var(--ampel-rot); }
.aktionsblatt button.abbrechen { border: 0; border-radius: 16px; background: var(--flaeche); font-weight: 600; }
.aktionsblatt button:focus-visible { outline: 3px solid var(--ich); outline-offset: -3px; }
@keyframes aktionsblatt-rein { from { transform: translateY(30%); opacity: 0; } }
/* Destruktive Knöpfe in Listen: rot, nie als Hauptaktion (HIG buttons.md) */
[data-bestaetigen] .knopf.zweitrangig, .knopf.zweitrangig.destruktiv { background: var(--rot-grund); color: var(--ampel-rot); }

/* Am PC: Navigationsleiste und Meldungen neben der Seitenleiste */
@media (min-width: 960px) {
  .navleiste, .statusleiste { left: 257px; }
  .meldungen { left: 280px; right: 24px; bottom: 24px; }
}

/* „Kontrast erhöhen“ (HIG accessibility.md): kräftigere Linien, Nebentexte und Feldränder */
@media (prefers-contrast: more) {
  :root {
    --linie: light-dark(#8A8272, #6E675B);
    --feldrand: light-dark(#46413A, #C9C2B4);
    --leise: light-dark(#46413A, #C9C2B4);
    --text2: light-dark(#26231F, #E8E3D8);
    --material: light-dark(#FAF7F1, #181614);
  }
  .karte, .listenkarte, .leiste, .meldungen li { outline: 1px solid var(--linie); outline-offset: -1px; }
}
/* „Transparenz reduzieren“: Leisten, Blätter und Meldungen deckend */
@media (prefers-reduced-transparency: reduce) {
  :root { --material: light-dark(#FAF7F1, #181614); --material-unschaerfe: none; }
}

/* Übersicht der Komponenten (nur in der Entwicklung, kern/komponenten.html) */
.komponenten-schrift { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 0; }
.komponenten-schrift div { display: flex; flex-direction: column; gap: 0; }
.komponenten-schrift dt { font-size: var(--t-caption1); color: var(--leise); }
.komponenten-schrift dd { margin: 0; }
.k-large { font-size: var(--t-large); font-weight: 700; } .k-title1 { font-size: var(--t-title1); font-weight: 700; }
.k-title2 { font-size: var(--t-title2); font-weight: 700; } .k-title3 { font-size: var(--t-title3); font-weight: 600; }
.k-headline { font-size: var(--t-headline); font-weight: 600; } .k-body { font-size: var(--t-body); }
.k-subhead { font-size: var(--t-subhead); } .k-footnote { font-size: var(--t-footnote); }
.k-caption2 { font-size: var(--t-caption2); } .k-zahl { font-size: var(--t-title1); font-weight: 600; }
.komponenten-farben { list-style: none; margin: 12px 0 0; padding: 0; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.komponenten-farben li { padding: 12px; border-radius: var(--radius-klein); font-weight: 600; font-size: var(--t-subhead); }
.f-ich { background: var(--ich-grund); color: var(--ich); } .f-lila { background: var(--lila-grund); color: var(--lila); }
.f-gelb { background: var(--gelb-grund); color: var(--gelb); } .f-orange { background: var(--orange-grund); color: var(--orange); }
.f-gruen { background: color-mix(in srgb, var(--ampel-gruen) 14%, var(--flaeche)); color: var(--ampel-gruen); }
.f-rot { background: var(--rot-grund); color: var(--ampel-rot); }
.f-tuerkis { background: var(--tuerkis-grund); color: var(--tuerkis); } .f-blau { background: var(--blau-grund); color: var(--blau); }
.komponenten-stapel { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 12px; }
.komponenten-stapel form { margin: 0; }

/* ---------------------------------------------------------------------------------------------------------------
   Neubau 13.11.2026 „Papier und Tinte“ (docs/design/papier-und-tinte.md): Schriftbild. Titel, Abschnittstitel und große
   Zahlen stehen in der Serifenschrift des Systems, kleine Etiketten über Zahlen und Gruppen gesperrt in Großbuchstaben.
   Die Regeln oben setzen die Schrift oft in der Kurzform font, deshalb hier gesammelt und zuletzt.
   --------------------------------------------------------------------------------------------------------------- */
.karte h2, .abschnitt-titel, .abschnitt-kopf h2, .heute-abend-text h2, .bewerten h2, .anmeldung h1, .navleiste-titel,
.blatt-ich strong, .marke, .marke-gross { font-family: var(--schrift-titel); letter-spacing: -0.005em; }
.kachel-wert .zahl, .nacht-zahl .zahl, .halb-zahl, .kennzahlen dd, .werte dd, .ring-mitte .zahl, .messwert .zahl,
.kurz .zahl, .tag-nr, .datum-kasten .nr, .phase-dauer, .durchschnitt dd, .avatar, .k-zahl {
  font-family: var(--schrift-zahl); font-variant-numeric: tabular-nums lining-nums; }
.kennzahlen dd small, .werte dd small, .halb-zahl small { font-family: var(--schrift); }
.kachel-titel, .fn-gruppe, .schnell-unter, .leiste-unter-titel, .halb-etikett, .tipp-marke, .planen-gruppe-titel,
.blatt-gruppe h2 .art, .werte dt, .kennzahlen dt, .durchschnitt dt {
  text-transform: uppercase; letter-spacing: 0.07em !important; }
.marke-gross { font-weight: 600; letter-spacing: -0.02em; }
/* Karten in Karten (Erholung in „Mein Tag“, halbe Karten in Listen) tragen keinen zweiten Rand */
.karte .karte, .mein-tag > .erholung { border: 0; }
@media (max-width: 959.98px) { .leiste a.plus { gap: 1px; } }
.blatt-gruppe h2, .schnell-kopf h2, .fn-text strong { font-family: var(--schrift-titel); }
.fn-text strong, .listen-text strong, .gruppe-text strong { letter-spacing: -0.005em; }
/* Ein Reiter mit kurzem Namen („Alle“ bei fünf Reitern) war 38 px breit: Tippfläche auch in der Breite 44 pt */
.unterseiten-segmente a { min-width: var(--tipp); }

/* ---------------------------------------------------------------------------------------------------------------
   Neuaufbau 15.11.2026 „Blatt“ (docs/design/blatt.md). Peter: den gesamten Aufbau und die Visualisierung neu denken.
   Eine Seite ist ein Blatt, kein Stapel Karten: Abschnitte stehen flach auf dem Papier, getrennt durch einen Strich in
   Tinte und Weißraum. Umrandete Flächen bleiben für einzelne Dinge (Hinweise, halbe Karten, Kacheln). Oben auf Heute
   und Nacht steht ein Deckblatt über die ganze Breite, im hellen Modell in Tinte, mit den Zahlen als Bild: Bogen,
   Phasenband, Wochen-Balken. Farben, Schrift und Maße weiter aus den Tokens von „Papier und Tinte“.
   --------------------------------------------------------------------------------------------------------------- */

/* Abschnitt statt Karte: jede Karte direkt auf der Seite, außer den Dingen, die eine Fläche brauchen */
.seite > :is(section, details, fieldset, form).karte:not(.handeln, .leer, .kachel-klein, .halbe-karte, .kurz, .planen-spalte, .tipp-karte, .faellig-karte, .auswahl-jetzt, .ki-ergebnis, .heute-abend, .bewerten-karte),
.seite > .kacheln > section.karte:not(.handeln, .leer, .kachel-klein, .halbe-karte, .kurz, .tipp-karte, .faellig-karte, .heute-abend) {
  margin-top: var(--a-3); padding: var(--a-3) 0 0; background: none; border: 0; border-top: 2px solid var(--text);
  border-radius: 0; }
.seite > :is(section, details, fieldset, form).karte h2, .abschnitt-titel, .schnell-kopf h2 { font-size: var(--t-title3); }
.seite > .schnell, .seite > .mehr-nacht { margin-top: var(--a-3); padding-top: var(--a-3);
  border-top: 2px solid var(--text); }
.seite > .schnell .schnell-kopf, .seite > .mehr-nacht > .abschnitt-titel { padding: 0; margin: 0; }
.seite > .karte.zu-tun .karten-kopf { padding: 0 0 6px; }
.seite > .karte.listenkarte > h2 { padding: 0 0 6px; }

/* Deckblatt: über die ganze Breite, schließt an den Kopf an, wenn es direkt darunter steht. Im hellen Modell rechnen
   Kopf und Deckblatt ihre Farben dunkel (die Tokens stehen in light-dark() und lösen sich je Element auf), so stimmen
   Kontraste und Ampelfarben ohne eigene Werte. Im dunklen Modell ist es eine Fläche: Eine helle würde nachts blenden */
.deckblatt { position: relative; display: flex; flex-direction: column;
  margin: 0 calc(-1 * var(--seite-rechts)) 0 calc(-1 * var(--seite-links));
  padding: var(--a-2) var(--seite-rechts) var(--a-5) var(--seite-links);
  background: var(--flaeche); color: var(--text); border-bottom: 1px solid var(--linie); }
.kopf:has(+ .deckblatt), .kopf:has(+ .meldungen + .deckblatt) {
  margin: calc(-1 * var(--seite-oben)) calc(-1 * var(--seite-rechts)) calc(-1 * var(--a-4)) calc(-1 * var(--seite-links));
  padding: var(--seite-oben) var(--seite-rechts) var(--a-3) var(--seite-links); background: var(--flaeche); }
@media (prefers-color-scheme: light) {
  .deckblatt { color-scheme: dark; background: var(--bg); color: var(--text); border-color: transparent; }
  .kopf:has(+ .deckblatt), .kopf:has(+ .meldungen + .deckblatt) { color-scheme: dark; background: var(--bg);
    color: var(--text); }
}
/* Schmaler als der Bildschirm (iPad hochkant): Die Fläche reicht trotzdem bis an beide Ränder */
@media (max-width: 959.98px) {
  .deckblatt { box-shadow: 0 0 0 100vmax var(--bg); clip-path: inset(0 -100vmax); }
  .kopf:has(+ .deckblatt), .kopf:has(+ .meldungen + .deckblatt) { box-shadow: 0 0 0 100vmax var(--bg);
    clip-path: inset(-100vmax -100vmax 0 -100vmax); }
}
@media (max-width: 959.98px) and (prefers-color-scheme: dark) {
  .deckblatt, .kopf:has(+ .deckblatt), .kopf:has(+ .meldungen + .deckblatt) { box-shadow: 0 0 0 100vmax var(--flaeche); }
}
/* Die Uhrzeit des iPhones steht über dem Deckblatt, solange die Seite oben ist: kein Material darüber */
html:not(.feh-gescrollt) body:has(.kopf + .deckblatt) .statusleiste { background: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (min-width: 1280px) { .seite > .deckblatt { grid-column: 1 / -1; } }

/* „Mein Tag“ im Deckblatt: links der Bogen der Erholung, rechts Ampel, Satz und die Woche */
.deckblatt.mein-tag { gap: 0; }
.deckblatt > .erholung { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
  gap: var(--a-5); padding: var(--a-1) 0 var(--a-5); background: none; border: 0; border-radius: 0; }
.ring.bogen .ring-grund, .ring.bogen .ring-wert { stroke-width: 9; }
.deckblatt .ring.bogen { width: 138px; height: 138px; }
.deckblatt .ring.bogen .ring-mitte .zahl { font-size: 3.1rem; letter-spacing: -0.03em; }
.deckblatt .ring.bogen .ring-mitte .einheit { margin-top: 4px; font-size: var(--t-caption2); letter-spacing: 0.09em;
  text-transform: uppercase; }
.deckblatt .erholung-text { gap: var(--a-2); padding-right: var(--a-6); }
.erholung-woche { display: flex; align-items: flex-end; gap: var(--a-2); margin-top: 2px; }
.erholung-woche .halb-etikett { color: var(--leise); padding-bottom: 1px; }
.erholung-woche .verlauf { height: 28px; width: auto; }
.deckblatt .auffrischen { top: -10px; right: -12px; }
.deckblatt .auffrischen button > span { background: none; border: 1px solid var(--linie); }

/* Werte im Deckblatt: Zeilen mit Haarlinie statt Kästchen, Schlaf über die ganze Breite mit Phasenband, die übrigen
   zu zweit. Rechts neben der Zahl sieben Tage als Balken */
.deckblatt .werte-raster { column-gap: var(--a-6); row-gap: 0; }
.deckblatt .werte-raster > .kachel-klein { min-height: 0; padding: var(--a-3) 0 var(--a-4); gap: 6px;
  justify-content: flex-start; background: none; border: 0; border-top: 1px solid var(--linie); border-radius: 0; }
.deckblatt .werte-raster > .kachel-schlaf { grid-column: 1 / -1; }
.deckblatt .werte-raster > .kachel-klein:last-child, .deckblatt .werte-raster > .kachel-klein:nth-last-child(2):not(.kachel-schlaf) {
  padding-bottom: 0; }
.deckblatt .werte-raster .kachel-ziel::after { border-radius: 0; }
.deckblatt .kachel-wert .zahl { font-size: var(--t-title1); }
.kachel-zeile { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--a-2); }
.kachel-titel .kachel-spanne { margin-left: auto; font-weight: 500; font-variant-numeric: tabular-nums; }
.spark { flex: none; display: block; height: 26px; width: auto; }
.spark rect { fill: var(--feldrand); }
.spark .spark-heute { fill: var(--ich); }
.spark .spark-leer { fill: var(--linie); }
.kachel-schlaf .phasen.klein { height: 14px; margin: 4px 0 0; border-radius: 7px; }
.phasen-legende { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px var(--a-4);
  font-size: var(--t-caption1); font-weight: 500; color: var(--leise); font-variant-numeric: tabular-nums; }
.phasen-legende li { display: inline-flex; align-items: center; gap: 5px; }
.phasen-legende li::before { content: ""; width: 8px; height: 8px; border-radius: 3px; flex-shrink: 0; }
.phasen-legende .tief::before { background: var(--phase-tief); }
.phasen-legende .leicht::before { background: var(--phase-leicht); }
.phasen-legende .rem::before { background: var(--phase-rem); }
.phasen-legende .wach::before { background: var(--phase-wach); }
/* Gesundheit › Nacht im Deckblatt: blättern, Dauer groß, Score als Bogen, Hypnogramm, Band der Phasen mit Legende */
.deckblatt.nacht { gap: var(--a-4); padding-top: var(--a-4); margin-top: var(--a-2); }
.deckblatt .rund-knopf { background: none; border: 1px solid var(--linie); color: var(--text); }
.deckblatt .rund-knopf.aus { color: var(--linie); }
.deckblatt .nacht-zahl .zahl { font-size: 3.6rem; letter-spacing: -0.03em; }
.deckblatt .ring.bogen.score-ring { width: 100px; height: 100px; }
.deckblatt .ring.bogen.score-ring .ring-mitte .zahl { font-size: var(--t-title1); letter-spacing: -0.01em; }
.deckblatt .ring.bogen.score-ring .ring-mitte .einheit { margin-top: 0; }
.deckblatt.nacht .hypno { margin: 0; }
.phasen.band { height: 14px; margin: 0; border-radius: 7px; }
.phasen-legende.gross { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--a-2); }
.phasen-legende.gross li { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.phasen-legende.gross li::before { display: none; }
.phasen-legende.gross .phase-dauer { font-size: var(--t-title3); color: var(--text); }
.phasen-legende.gross .tief .phase-name::before { background: var(--phase-tief); }
.phasen-legende.gross .leicht .phase-name::before { background: var(--phase-leicht); }
.phasen-legende.gross .rem .phase-name::before { background: var(--phase-rem); }
.phasen-legende.gross .wach .phase-name::before { background: var(--phase-wach); }

/* Sieben Nächte: Balken je Nacht mit der Dauer darüber, die gewählte in der Akzentfarbe, gestrichelt der Schnitt.
   Über den Balken liegen sieben Links, je Spalte einer, mit dem Wochentag unten: mindestens 44 pt breit und hoch */
.wochen-balken { position: relative; padding-bottom: 26px; }
.wochen-balken svg { display: block; width: 100%; height: auto; overflow: visible; }
.wochen-balken .balken { fill: var(--feldrand); }
.wochen-balken .balken.gewaehlt { fill: var(--ich); }
.wochen-balken .achse { fill: var(--leise); font: 500 10.5px var(--schrift); text-anchor: middle;
  paint-order: stroke; stroke: var(--bg); stroke-width: 4px; stroke-linejoin: round; }
.nacht-woche > .wochen-balken + p { margin-top: var(--a-2); }
.wochen-balken .achse.gewaehlt { fill: var(--text); font-weight: 700; }
.wochen-tage { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.wochen-tage > * { display: flex; align-items: flex-end; justify-content: center; min-height: var(--tipp);
  font-size: var(--t-caption1); font-weight: 600; color: var(--leise); text-decoration: none;
  -webkit-tap-highlight-color: transparent; border-radius: var(--radius-klein); }
.wochen-tage a[aria-current="true"] { color: var(--text); }
.wochen-tage .aus { color: var(--feldrand); }
.wochen-tage a:active { background: var(--nav-aktiv); }

/* Gegen die Nacht davor: zwischen Name und Wert der Ausschlag von der Mitte, rechts mehr, links weniger */
.ausschlag { flex: 0 1 96px; min-width: 56px; height: 10px; display: block; }
.ausschlag .spur { fill: var(--linie); }
.ausschlag .mitte { fill: var(--feldrand); }
.ausschlag .gleich { fill: var(--feldrand); }
.ausschlag .gut { fill: var(--ampel-gruen); }
.ausschlag .schlecht { fill: var(--ampel-rot); }
.vergleich-wert { min-width: 3.4em; text-align: right; }

/* Notizen › Zwei Wochen: 14 Tage zum Antippen. Je Tag Wochentag, Zahl, die Punkte der Medikamente (gefüllt genommen,
   leer nicht genommen) und ein Strich, wenn eine Notiz erfasst ist. Der gewählte Tag trägt einen Rahmen in Tinte */
.wochen-raster { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--a-1); }
.wochen-raster a { min-height: 72px; padding: 6px 0 8px; display: flex; flex-direction: column; align-items: center;
  gap: 3px; border: 2px solid transparent; border-radius: var(--radius-mittel); color: var(--text);
  text-decoration: none; -webkit-tap-highlight-color: transparent; }
.wochen-raster a[aria-current="true"] { border-color: var(--text); }
.wochen-raster a.heute .nr { color: var(--ich); }
.wochen-raster a:active { background: var(--flaeche2); }
.wochen-raster .tag { font-size: var(--t-caption2); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--leise); }
.wochen-raster .nr { font: 500 var(--t-title3)/1.1 var(--schrift-zahl); font-variant-numeric: lining-nums; }
.med-punkte { display: flex; gap: 4px; min-height: 9px; }
.med-punkt { display: block; width: 9px; height: 9px; border-radius: 50%; border: 2px solid transparent;
  flex-shrink: 0; }
.med-punkt.an { background: var(--ich); }
.med-punkt.aus { border-color: var(--text); }
.notiz-strich { display: block; width: 18px; height: 2px; border-radius: 1px; background: none; }
.notiz-strich.an { background: var(--feldrand); }
.wochen-legende { margin: var(--a-2) 0 0; }
.wochen-legende li { display: inline-flex; align-items: center; gap: 6px; }
.wochen-legende li::before { display: none; }

/* Neuaufbau 15.11.2026, zweiter Teil: Deckblätter für Wir › Topf, Essen › Woche, Zuhause und Ich. Gemeinsame
   Bausteine: Etikett in Großbuchstaben, große Zahl in der Serife, Text daneben */
.deckblatt:is(.topf-deck, .pflanzen-deck, .auto-deck, .essen-deck) { gap: var(--a-4); padding-top: var(--a-4);
  margin-top: var(--a-2); }
.deck-etikett { margin: 0; font: 600 var(--t-caption1)/1.3 var(--schrift); letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--leise); }
.deck-zahl { margin: 0; }
.deck-zahl .zahl { font: 500 2.6rem/1.05 var(--schrift-zahl); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.deck-zahl .einheit { font: 600 var(--t-callout) var(--schrift); color: var(--leise); }
.deck-neben { margin: 0; text-align: right; font-size: var(--t-footnote); font-weight: 500; color: var(--text2);
  line-height: 1.45; }
.deckblatt .karten-kopf { margin: 0; align-items: center; }
.deckblatt .karten-kopf h2, .deckblatt .nacht-titel h2 { margin: 0; font: 600 var(--t-title3)/1.25 var(--schrift-titel); }
.deckblatt .knopf.zweitrangig { align-self: flex-start; }

/* Topf: der Bogen in der Farbe des Stands */
.topf-ring.gruen .ring-wert { stroke: var(--ampel-gruen); }
.topf-ring.gelb .ring-wert { stroke: var(--gelb); }
.topf-ring.rot .ring-wert { stroke: var(--ampel-rot); }

/* Essen: Tagesleiste und „Heute Abend“ ohne eigene Flächen, das Foto über die ganze Breite des Deckblatts */
.deckblatt .tagesleiste { padding: 0; background: none; border: 0; border-radius: 0; }
.deckblatt .karte.heute-abend { padding: 0; background: none; border: 0; border-radius: 0; }
.deckblatt .heute-abend-text, .deckblatt .heute-abend-knoepfe { padding: 0; }
.deckblatt .heute-abend-bildrahmen { height: 210px; border-radius: var(--radius-gross); }

/* Pflanzen: je Pflanze ein Punkt, fällige in Gelb */
.pflanzen-punkte { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pflanzen-punkte li { width: 12px; height: 12px; border-radius: 50%; background: var(--ampel-gruen); }
.pflanzen-punkte li.faellig { background: var(--gelb); }

/* Auto: die drei Werte im Deckblatt als Zeile mit Haarlinien statt Kästchen */
.deckblatt .werte { gap: 0 var(--a-4); margin: 0; }
.deckblatt .werte div { padding: var(--a-3) 0 0; background: none; border-radius: 0; border-top: 1px solid var(--linie); }
.deckblatt .geraete { margin: 0; }
/* Ladestand und Reichweite stehen schon groß darüber: darunter bleibt der Kilometerstand */
.auto-deck .nacht-dauer + .werte { grid-template-columns: minmax(0, 1fr); }
.auto-deck .nacht-dauer + .werte div:nth-child(-n+2) { display: none; }

/* Ich: die eigenen Bereiche als Deckblatt direkt unter dem Namen */
.deckblatt.ich-deck { padding-top: 0; }
.ich-deck .deck-etikett { padding: var(--a-2) 0 var(--a-1); }
.ich-deck .gruppe-zeile { min-height: 64px; }
.ich-deck .gruppe-text strong { font: 600 var(--t-title3)/1.25 var(--schrift-titel); }
.ich-deck .gruppe-chips a { background: none; border: 1px solid var(--feldrand); color: var(--text); }

/* Listen direkt auf der Seite (Einstellungen auf Ich, Links auf Zuhause) flach wie die Abschnitte */
.seite > nav.karte:is(.gruppe, .liste-links) { margin-top: var(--a-3); padding: var(--a-1) 0 0; background: none;
  border: 0; border-top: 2px solid var(--text); border-radius: 0; }
.seite > .abschnitt-titel { margin-top: var(--a-3); padding-top: var(--a-3); border-top: 2px solid var(--text); }
.seite > .abschnitt-titel + nav.karte { margin-top: calc(-1 * var(--a-2)); border-top: 0; }
.seite > section.abschnitt { margin-top: var(--a-3); padding-top: var(--a-3); border-top: 2px solid var(--text); }

/* Neuaufbau 15.11.2026, dritter Teil: Auf den Unterseiten wird der Stand der Seite zum Deckblatt (Klasse deck): die
   Woche im Verlauf, der Monat bei Ausgaben und Auto, die Prüfliste beim Einkauf, das Kalorienziel, das Budget der
   Versicherung, der Gesundheitsmonitor. Was darin steht, bleibt, wie es war: Die Bausteine nehmen ihre Farben aus den
   Tokens und stehen im hellen Modell von selbst in Tinte */
.deckblatt.deck { gap: var(--a-3); padding-top: var(--a-4); margin-top: var(--a-2); }
.deckblatt.deck > :is(p, ul, ol, dl, form, div, table, details).abstand { margin-top: 0; }
.deckblatt.deck.listenkarte { padding-left: var(--seite-links); padding-right: var(--seite-rechts); }
.deckblatt.deck.listenkarte > h2, .deckblatt.deck.listenkarte > .karten-kopf { padding: 0; }
.deckblatt.deck h2 { margin: 0; font: 600 var(--t-title3)/1.25 var(--schrift-titel); }
.deckblatt.deck .knopf.zweitrangig { align-self: auto; }
.deckblatt.deck details.aendern { margin: 0; }
/* Steht ein Deckblatt direkt unter dem Kopf (Körper, Ich), schließt es ohne Lücke an: Sonst blitzt Papier dazwischen */
.kopf + .deckblatt, .kopf + .meldungen + .deckblatt { margin-top: 0; padding-top: var(--a-2); }

/* Neuaufbau 15.11.2026, vierter Teil: letzte Blutdruck-Messung mit Balken vom unteren zum oberen Wert, Gewicht über
   dem Kalorienziel, das Raster der zwei Wochen auf der Seite Medikamente, die Wahl der Woche auf Planen */
.bd-reihe { flex: none; display: block; height: 60px; width: auto; max-width: 50%; }
.bd-reihe rect { fill: var(--feldrand); }
.bd-reihe rect.neu { fill: var(--ich); }
.deck-trenner { padding-bottom: var(--a-3); border-bottom: 1px solid var(--linie); }
.deckblatt.planen-deck { margin-bottom: var(--a-3); }
.planen-deck .planen-wochen { margin: 0; }
/* Steht nur ein Wert im Deckblatt auf Heute (ohne Polar-Uhr: das Gewicht), nimmt er die ganze Breite */
.deckblatt .werte-raster > .kachel-klein:only-child { grid-column: 1 / -1; }
