/* „Was gibt es heute?“ – Aussehen (seit v1.14.1 aus index.html ausgelagert; Abschnitte 1–10, siehe CLAUDE.md) */
/* ==========================================================================
   1. DESIGN-TOKENS (Farben, Radien, Schrift) – hell & dunkel
   ========================================================================== */
:root {   /* Design „Kochbuch“ (docs/DESIGN.md): Standard = Farbwelt „Tomate“ hell; die gewählte Farbwelt setzt applyLook() per JavaScript */
  --bg: #F7F1E6; --surface: #FCF8F1; --surface-2: #EFE6D8;
  --ink: #2A2119; --ink-soft: #6E6052; --ink-3: #73655A; --line: #DCCFBA; --line-2: #E9DFCE;
  --primary: #B23A26; --primary-ink: #B23A26; --primary-t: #FFF8F0; --primary-deep: #86281A; --primary-soft: #F0DDD0; --primary-soft-2: #E7C9B8;
  --sage: #E6E8D3; --sage-ink: #566628;
  --peach: #F3D9CF; --peach-ink: #8A2E1C;
  --butter: #F3E8CC; --sky: #E4E6E8;
  --shadow: 0 6px 18px rgba(70, 45, 20, .10);
  --r-sheet: 22px; --r-card: 14px; --r-row: 12px; --r-pill: 999px;
  /* Nur Systemschriften von iPhone/Mac (keine Schriftdateien): Charter für Titel + Gerichte, Hoefler kursiv für Unterzeilen, Avenir für Bedienung + Zahlen */
  --font-display: Charter, "Charter BT", Georgia, serif;
  --font-italic: "Hoefler Text", Georgia, serif;
  --font-body: "Avenir Next", -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
  box-sizing: border-box;
  --unten: env(safe-area-inset-bottom, 0px);   /* v1.32.3: Rand für den Home-Balken; bei offener Tastatur 0 (Klasse „tastatur“) */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: var(--unten);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1F1A16; --surface: #2A231D; --surface-2: #352D25;
    --ink: #F1E7D7; --ink-soft: #B9AA94; --ink-3: #9A8B78; --line: #40362C; --line-2: #352D25;
    --primary: #E37A5E; --primary-ink: #E37A5E; --primary-t: #1F1A16; --primary-deep: #A9503A; --primary-soft: #3A2A22; --primary-soft-2: #4A3328;
    --sage: #2F3522; --sage-ink: #A9B873;
    --peach: #4A2B22; --peach-ink: #F2B39F;
    --butter: #3D3423; --sky: #2A2F33;
    --shadow: 0 6px 18px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #1F1A16; --surface: #2A231D; --surface-2: #352D25;
    --ink: #F1E7D7; --ink-soft: #B9AA94; --ink-3: #9A8B78; --line: #40362C; --line-2: #352D25;
    --primary: #E37A5E; --primary-ink: #E37A5E; --primary-t: #1F1A16; --primary-deep: #A9503A; --primary-soft: #3A2A22; --primary-soft-2: #4A3328;
    --sage: #2F3522; --sage-ink: #A9B873;
    --peach: #4A2B22; --peach-ink: #F2B39F;
    --butter: #3D3423; --sky: #2A2F33;
    --shadow: 0 6px 18px rgba(0, 0, 0, .35);
    color-scheme: dark;
}

/* ==========================================================================
   2. BASIS
   ========================================================================== */
*, *::before, *::after { box-sizing: inherit; }
html { height: 100%; scroll-padding-top: env(safe-area-inset-top, 0px); }
body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--ink);
  font: 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
/* Homescreen-App am iPhone (v1.32.2, im iOS-Simulator gemessen mit werkzeug/messen.js – Leon 27.11.2026):
   1. Fensterhöhe: iOS 26/27 (WebKit-Fehler) verkürzt die Fläche der App um die Statusleiste (844 → 797 Punkte) und lässt unten einen
      leeren Streifen – bis die Seite mindestens bildschirmhoch ist; dann wächst das Fenster auf die volle Höhe. Deshalb ist die Seite
      von Anfang an so hoch wie der Bildschirm (100lvh = volle Höhe, auch solange das Fenster noch zu kurz ist).
   2. Rand unter der Uhrzeit: iOS färbt ihn (weicher Verlauf) mit der Hintergrund-FARBE von body – dieselbe Farbe zeigt es beim
      Nachfedern über das Seitenende und hinter der Leiste über der Tastatur. Solange der Deckel steht, ist sie Deckel-Grau (.lb-zu);
      sobald er aufgeht, wandert sie weich zur Seitenfarbe (Übergang auf der FARBE, die sichtbare Seitenfarbe liegt als Bildebene
      darüber und gilt sofort). So erscheint über dem Deckel kein heller (bzw. im Dunklen dunkler) Streifen mehr.
      Dauerhaft Grau wurde verworfen: grauer Streifen beim Nachfedern und an der Tastatur.
   Nur in der Homescreen-App (Klasse .homescreen, Kopf-Skript index.html). */
html.homescreen { min-height: 100lvh; }
/* Zeitpunkt aus der Aufnahme im Simulator: der Deckel bewegt sich sichtbar erst ≈ 0,6 s nach .durch und ist nach ≈ 0,9 s oben weg */
.homescreen body { background: linear-gradient(var(--bg), var(--bg)) var(--bg); transition: background-color .4s ease-in-out .55s; }
/* Solange der Deckel geschlossen steht (Klasse .lb-zu – setzt das Kopf-Skript vor dem ersten Bild, Ladebild.durch() nimmt sie weg),
   ist die Seite Deckel-Grau (wie --lb-grau, Startbild und Manifest) und die App darunter unsichtbar – sonst schimmert sie beim
   Einblenden des Deckels durch (v1.32.0). Sobald der Deckel sich bewegt, gilt wieder die Seitenfarbe */
html.lb-zu body { background: #4B4D46; }
html.lb-zu body > :not(#ladebild) { visibility: hidden; }
/* LADEBILD-ANFANG (werkzeug/startbild.mjs liest diesen Block für das iOS-Startbild)
   v1.17.0 (Leon): Buchdeckel in Slate Grey, öffnet sich an der linken Kante, danach blättern vier Seiten weg; darunter liegt die App.
   26.11.2026 (Leon, Variante B „reich an Details“ + Lesebändchen aus A): Halbleder-Einband – Rücken und Ecken in dunklem Leder mit Kapital (Streifen oben/unten am Rücken),
   Leinen in Slate Grey (#4B4D46), blind geprägter Doppelrahmen mit Eckzier, Teller in einem geprägten Medaillon, Titel in Messing.
   Innen: Vorsatzpapier mit gestreuten Küchenzeichnungen, Titelblatt mit Kräuterbund, zwei Rezeptseiten mit Buchschnitt; schmales Lesebändchen in Ochsenblut auf dem Vorsatz.
   Nur CSS-Animationen (laufen auf dem Grafikchip, ruckelfrei); Ladebild.blaettern() setzt .auf und räumt danach ab.
   Keine Filter über die ganze Fläche, keine Bilddateien: Strukturen sind Verläufe, Zeichnungen inline-SVG im Markup (index.html). */
#ladebild { position: fixed; inset: 0; z-index: 9999;
  overflow: hidden; contain: strict; perspective: 1700px; perspective-origin: 0 50%;
  --halt: .8s;   /* Leon 26.11.2026: geschlossener Deckel steht ≈ 0,8 s, bevor er aufgeht (gleicher Wert in js/1-grundlagen.js Ladebild.HALT – beide zusammen ändern) */
  --lb-grau: #4B4D46; --lb-seite: var(--bg, #F7F1E6); --lb-schrift: #E9E6DF; --lb-tinte: var(--ink, #2A2119); }
#ladebild .lb-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#ladebild .blatt, #ladebild .lb-s { position: absolute; inset: 0; transform-origin: 0 50%; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
#ladebild .lb-s { display: block; overflow: hidden; }
#ladebild .lb-s:nth-of-type(1) { --lb-seite: color-mix(in srgb, var(--bg, #F7F1E6), #000 2%); }
/* Licht: je weiter das Blatt sich aufstellt, desto dunkler (::after) – gibt der Drehung Tiefe */
#ladebild .blatt::after, #ladebild .lb-s::after { content: ""; position: absolute; inset: 0; z-index: 5; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,.4)); }
/* Schatten auf dem Blatt darunter (::before): dunkel, solange das obere Blatt flach liegt – hellt auf, während es sich hebt */
#ladebild .lb-s::before { content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: .75;
  background: linear-gradient(90deg, rgba(0,0,0,.28), rgba(0,0,0,.06) 70%); }
#ladebild.auf .lb-s::before { animation: lbHell var(--d2) var(--t2) ease-in forwards; }
@keyframes lbHell { to { opacity: 0; } }
#ladebild.auf .blatt, #ladebild.auf .lb-s { animation: lbAuf var(--d) var(--t) cubic-bezier(.5,.05,.35,1) forwards; }
#ladebild.auf .blatt::after, #ladebild.auf .lb-s::after { animation: lbLicht var(--d) var(--t) cubic-bezier(.5,.05,.35,1) forwards; }
#ladebild .blatt { --t: calc(var(--halt) + .12s); --d: 1s; }                           /* Deckel: schwer, langsam */
#ladebild .lb-s:nth-of-type(4) { --t: calc(var(--halt) + .78s); --d: .62s; --t2: calc(var(--halt) + .12s); --d2: .85s; }          /* oberste Seite zuerst */
#ladebild .lb-s:nth-of-type(3) { --t: calc(var(--halt) + .96s); --d: .6s; --t2: calc(var(--halt) + .78s); --d2: .45s; }
#ladebild .lb-s:nth-of-type(2) { --t: calc(var(--halt) + 1.13s); --d: .6s; --t2: calc(var(--halt) + .96s); --d2: .45s; }
#ladebild .lb-s:nth-of-type(1) { --t: calc(var(--halt) + 1.3s); --d: .72s; --t2: calc(var(--halt) + 1.13s); --d2: .45s; }           /* letzte Seite gibt die App frei (Ende ≈ 0,8 + 2,0 s) */
@keyframes lbAuf { to { transform: rotateY(-100deg); } }
@keyframes lbLicht { to { opacity: 1; } }
#ladebild .lb-inhalt { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--lb-schrift); text-align: center; }
#ladebild .lb-inhalt .ic { width: 52px; height: 52px; stroke-width: 1.3; color: var(--lb-schrift); opacity: .9; }
#ladebild .lb-name { margin-top: 14px; font: 700 26px/1.15 Charter, "Charter BT", Georgia, serif; letter-spacing: .01em; }
#ladebild .lb-punkte { display: flex; justify-content: center; gap: 7px; margin-top: 18px; height: 7px; opacity: 0; animation: lbZeigen .3s 2.2s forwards; }   /* nur wenn es dauert */
#ladebild .lb-punkte i { width: 6px; height: 6px; border-radius: 50%; background: var(--lb-schrift); opacity: .3; animation: lbPunkt 1.2s infinite ease-in-out; }
#ladebild .lb-punkte i:nth-child(2) { animation-delay: .2s; } #ladebild .lb-punkte i:nth-child(3) { animation-delay: .4s; }
@keyframes lbPunkt { 0%, 100% { opacity: .2; transform: translateY(0); } 40% { opacity: .75; transform: translateY(-3px); } }
@keyframes lbZeigen { to { opacity: 1; } }
#ladebild.durch { pointer-events: none; }   /* erst wenn der Deckel aufgeht – vorher kein Tippen „blind“ in die verdeckte App */
#ladebild.auf .lb-punkte { visibility: hidden; }
#ladebild.weg { opacity: 0; transition: opacity .35s ease; pointer-events: none; }
/* v1.32.0 (Leon 27.11.2026, „wie Heimblick“): das iOS-Startbild ist nur noch eine deckelgraue Fläche (Manifest background_color gleich);
   der Deckel blendet darauf sanft ein – nichts muss mehr deckungsgleich zu einem Foto sein, während iOS das Fenster noch vergrößert.
   Ohne Füllmodus: danach gilt wieder die normale Deckkraft (Ausblenden über .weg bleibt möglich) */
#ladebild { animation: lbEin .35s ease-out; }
@keyframes lbEin { from { opacity: 0; } }
/* Homescreen-App: Deckel immer bildschirmhoch, auch solange iOS das Fenster noch zu kurz hält (siehe BASIS) */
.homescreen #ladebild { bottom: auto; height: 100lvh; }
@media (prefers-reduced-motion: reduce) { #ladebild .lb-punkte i { animation: none; } }
/* Zeichnungen: nur Striche in Tinte (Farbe je Variante über color) */
#ladebild .lb-zeich { position: absolute; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
/* Seitensatz wie im Kochbuch: Kolumnentitel, Titel, Zutaten mit Mengen-Spalte, Schritte mit kursiven Nummern – nur in blasser Tinte */
#ladebild .lb-seite { position: absolute; inset: 0; padding: 88px 30px 0 40px; color: var(--lb-t2); font: 400 13.5px/1.55 Charter, "Charter BT", Georgia, serif; text-align: left; }
#ladebild .lb-kopf { display: flex; justify-content: space-between; padding-bottom: 9px; margin-bottom: 34px; border-bottom: .5px solid var(--lb-t3);
  font: 600 9.5px/1 "Avenir Next", -apple-system, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
#ladebild .lb-titel { font: 700 28px/1.08 Charter, "Charter BT", Georgia, serif; letter-spacing: -.012em; color: var(--lb-t1); margin-bottom: 6px; }
#ladebild .lb-unter { font: italic 15px/1.3 "Hoefler Text", Georgia, serif; margin-bottom: 22px; }
#ladebild .lb-zut { display: grid; grid-template-columns: 62px 1fr; column-gap: 12px; padding: 9px 0; margin-bottom: 22px; border-top: .5px solid var(--lb-t3); border-bottom: .5px solid var(--lb-t3);
  font: 500 12.5px/1.95 "Avenir Next", -apple-system, sans-serif; }
#ladebild .lb-zut b { font-weight: 600; text-align: right; }
#ladebild .lb-schritt { display: grid; grid-template-columns: 22px 1fr; margin-bottom: 9px; }
#ladebild .lb-schritt i { font: italic 17px/1.25 "Hoefler Text", Georgia, serif; color: var(--lb-t1); }
#ladebild .lb-zahl { position: absolute; left: 0; right: 0; bottom: 46px; text-align: center; font: italic 14px "Hoefler Text", Georgia, serif; }

#ladebild .blatt { background:
    radial-gradient(140% 95% at 62% 44%, rgba(0,0,0,0) 55%, rgba(0,0,0,.22)),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 1px, rgba(0,0,0,0) 1px 3px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.06) 0 1px, rgba(0,0,0,0) 1px 3px),
    var(--lb-grau);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
/* Lederrücken mit Kapital: Streifen (Ochsenblut/Creme) oben und unten, Messinglinie am Übergang zum Leinen */
#ladebild .lb-ruecken { position: absolute; top: 0; bottom: 0; left: 0; width: 30px; z-index: 1;
  background:
    repeating-linear-gradient(0deg, #7A2A1F 0 2px, #D9CBB0 2px 3.5px) 0 0 / 100% 7px no-repeat,
    repeating-linear-gradient(0deg, #7A2A1F 0 2px, #D9CBB0 2px 3.5px) 0 100% / 100% 7px no-repeat,
    linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.05) 55%, rgba(0,0,0,.2)),
    #2F302C;
  box-shadow: 1px 0 0 #A8946A, 2px 0 0 rgba(0,0,0,.35); }
/* Lederecken rechts oben/unten (Dreiecke), feine Messinglinie an der Schnittkante */
#ladebild .lb-ecke { position: absolute; right: 0; width: 58px; height: 58px; z-index: 1;
  background: linear-gradient(225deg, #2F302C 0 calc(50% - 1px), #A8946A calc(50% - 1px) 50%, rgba(0,0,0,.35) 50% calc(50% + 1px), rgba(0,0,0,0) calc(50% + 1px)); }
#ladebild .lb-ecke.o { top: 0; } #ladebild .lb-ecke.u { bottom: 0; transform: scaleY(-1); }
/* Blindrahmen: zwei eingeprägte Linien (Schatten + Lichtkante), Eckzier in den Innenecken */
#ladebild .lb-rahmen { position: absolute; top: 30px; bottom: 30px; left: 48px; right: 24px; z-index: 1;
  border: 1.5px solid rgba(0,0,0,.3); box-shadow: 0 1px 0 rgba(255,255,255,.08), inset 0 1px 0 rgba(255,255,255,.08); }
#ladebild .lb-rahmen::before { content: ""; position: absolute; inset: 5px; border: 1px solid rgba(0,0,0,.24); box-shadow: 0 1px 0 rgba(255,255,255,.07); }
#ladebild .lb-ez { position: absolute; width: 26px; height: 26px; fill: none; stroke: rgba(0,0,0,.3); stroke-width: 1.2; }
#ladebild .lb-ez.lo { left: 9px; top: 9px; } #ladebild .lb-ez.ro { right: 9px; top: 9px; transform: scaleX(-1); }
#ladebild .lb-ez.lu { left: 9px; bottom: 9px; transform: scaleY(-1); } #ladebild .lb-ez.ru { right: 9px; bottom: 9px; transform: scale(-1); }
#ladebild .lb-inhalt { padding-left: 24px; }
/* Medaillon: runde Vertiefung, darin der Teller in Messing */
#ladebild .lb-medaillon { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%;
  box-shadow: inset 0 2px 3px rgba(0,0,0,.38), inset 0 -1px 0 rgba(255,255,255,.08), 0 1px 0 rgba(255,255,255,.07), 0 0 0 7px rgba(0,0,0,.06); }
#ladebild .lb-medaillon .ic { width: 56px; height: 56px; stroke-width: 1.4; opacity: 1; color: #C7B385; }
#ladebild .lb-name { margin-top: 26px; color: #CDB98A; font-size: 27px; text-shadow: 0 1px 0 rgba(0,0,0,.4), 0 -1px 0 rgba(255,236,190,.12); }
#ladebild .lb-zeile { margin-top: 12px; color: rgba(205,185,138,.8); font: 600 9.5px/1 "Avenir Next", -apple-system, sans-serif; letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 1px 0 rgba(0,0,0,.35); }
#ladebild .lb-punkte i { background: #CDB98A; }
/* Seiten */
#ladebild .lb-s { --lb-t1: color-mix(in srgb, var(--lb-tinte) 32%, transparent); --lb-t2: color-mix(in srgb, var(--lb-tinte) 23%, transparent);
  --lb-t3: color-mix(in srgb, var(--lb-tinte) 15%, transparent); color: var(--lb-t2);
  background:
    linear-gradient(90deg, rgba(0,0,0,.1), rgba(0,0,0,0) 8%),
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--lb-tinte) 17%, transparent) 0 1px, rgba(0,0,0,0) 1px 2.5px) right 0 top 0 / 7px 100% no-repeat,
    repeating-linear-gradient(0deg, color-mix(in srgb, var(--lb-tinte) 2%, transparent) 0 1px, rgba(0,0,0,0) 1px 3px),
    var(--lb-seite); }
#ladebild .lb-zeich { right: 28px; bottom: 82px; color: var(--lb-t1); }
/* Vorsatzpapier: getöntes Papier mit Muster aus kleinen Zeichnungen (SVG-Muster, eine Fläche) */
#ladebild .lb-vorsatz { background: linear-gradient(90deg, rgba(0,0,0,.12), rgba(0,0,0,0) 8%), color-mix(in srgb, var(--lb-seite), var(--lb-tinte) 7%); }
#ladebild .lb-muster { position: absolute; inset: 0; }
/* Musterinhalt erbt Füllung/Strich vom <pattern> (in .lb-defs), nicht von der Fläche */
#ladebild .lb-defs pattern { fill: none; stroke: color-mix(in srgb, var(--lb-tinte) 26%, transparent); stroke-width: .9; stroke-linecap: round; stroke-linejoin: round; }
/* Titelblatt */
#ladebild .lb-titelblatt .lb-seite { display: flex; flex-direction: column; align-items: center; padding: 0 30px 0 40px; justify-content: center; text-align: center; }
#ladebild .lb-zeich.gross { position: static; margin-bottom: 26px; }
#ladebild .lb-tb-titel { font: 700 30px/1.1 Charter, "Charter BT", Georgia, serif; color: var(--lb-t1); }
#ladebild .lb-tb-unter { margin-top: 10px; font: italic 17px/1.3 "Hoefler Text", Georgia, serif; }
#ladebild .lb-tb-linie { width: 44px; height: .5px; margin: 26px 0; background: var(--lb-t1); }
#ladebild .lb-tb-fuss { font: 600 9.5px/1 "Avenir Next", -apple-system, sans-serif; letter-spacing: .22em; text-transform: uppercase; }
/* Lesebändchen: schmales Ripsband in Ochsenblut, Ende schräg eingeschnitten, eigener Schatten daneben.
   Liegt auf der obersten Seite (Vorsatz): sichtbar, sobald der Deckel aufgeht, und dreht mit dieser Seite weg (wie in Variante A) */
/* Jede Seite eigene Ebene: das Bändchen (z-index 2) bleibt in seiner Seite – sonst liegt es ohne Animation (Startbild, „Bewegung reduzieren“) über dem Deckel */
#ladebild .lb-s { isolation: isolate; }
#ladebild .lb-band, #ladebild .lb-band-s { position: absolute; top: -4px; left: 69%; width: 12px; height: 71%; z-index: 2; transform: rotate(3.5deg); transform-origin: 50% 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 9px), 0 100%); }
#ladebild .lb-band { background: repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, rgba(0,0,0,0) 1px 2px), linear-gradient(90deg, #6A1F17, #8C3024 45%, #6E2219); }
#ladebild .lb-band-s { margin-left: 3px; background: rgba(0,0,0,.13); }
/* LADEBILD-ENDE */
/* Hintergrund hinter der iPhone-Statusleiste. Seit v1.31.1 reicht die Homescreen-App bis ganz oben (black-translucent in index.html,
   sonst springt der Deckel vom Startbild unter die Leiste – Leon 27.11.2026). iOS zeigt Uhrzeit/Akku dann immer weiß →
   im Hellen ein dunkler Buchkopf-Streifen in Leinen-Grau wie der Deckel (Leon), im Dunklen die Seitenfarbe */
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10;
  background: var(--kopfstreifen, #4B4D46);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --kopfstreifen: var(--bg); } }
:root[data-theme="dark"] { --kopfstreifen: var(--bg); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; margin: 0; line-height: 1.12; letter-spacing: -.01em; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: var(--ink); }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ==========================================================================
   3. LAYOUT: Kopfzeile, Inhalt, Tab-Leiste
   ========================================================================== */
.app { max-width: 560px; margin: 0 auto; padding: 0 18px calc(96px + var(--unten));
  padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }   /* iPhone quer: Notch/Dynamic Island */
/* Kopf wie ein Buchkopf: schmale Zeile (Datum + „…“) mit Doppellinie, darunter der Titel in Charter (scrollt mit) */
.topbar { padding: 8px 0 6px; }
/* v1.31.2 (Leon: oberste Zeile „Kapitel · Datum“ am iPhone verwaschen): iOS 26 zeichnet unter der Statusleiste einen weichen
   Rand-Effekt (Unschärfe/Schatten) über den Inhalt – der Buchkopf rückt in der Homescreen-App aus dieser Zone heraus */
.homescreen .topbar { padding-top: 16px; }   /* 24 px war scharf, wirkte aber zu weit (Leon) */
.mast[hidden] + .tb-row { padding-top: 14px; }
.tb-acts .more-btn { margin-bottom: -4px; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; position: relative;
  border-bottom: 1px solid var(--ink); margin-bottom: 18px; }
.mast::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; border-bottom: .5px solid var(--ink); }
.mast-k { font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--primary-ink); }
.more-btn { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; }
.more-btn:active { background: var(--primary-soft); }
.tb-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.tb-t { min-width: 0; }
.topbar h1 { font-size: 34px; line-height: 1.04; letter-spacing: -.02em; }
.topbar h1:empty, .topbar .sub:empty { display: none; }
.topbar .sub { color: var(--ink-soft); font: italic 400 17px/1.25 var(--font-italic); margin-top: 6px; }
.tb-acts:empty { display: none; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-size: 20px;
  background: var(--surface); box-shadow: var(--shadow); flex: none;
}
/* Tab-Leiste: ruhig wie ein Buchrücken – Papier mit Haarlinie, aktiver Bereich in der Akzentfarbe (nur Navigation) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6;
  padding: 4px 18px calc(4px + var(--unten));
  background: color-mix(in srgb, var(--bg) 92%, transparent); border-top: .5px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.tabbar nav { max-width: 420px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.tab {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 50px; justify-content: center;
  font: 500 11px/1 var(--font-body); letter-spacing: .02em; color: var(--ink-soft); position: relative;
}
.tab[aria-current="page"] { color: var(--primary-ink); font-weight: 600; }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: -4px; left: 30%; right: 30%; height: 2px; border-radius: 0 0 2px 2px; background: var(--primary); }
.banner {
  background: var(--butter); border-radius: var(--r-row); padding: 12px 14px;
  font-size: 15px; margin-bottom: 14px;
}

/* ==========================================================================
   4. BAUSTEINE: Buttons, Chips, Eingaben, Sheet, Toast
   ========================================================================== */
/* Knöpfe „K1 Kapsel“: Hauptknopf gefüllt mit Lichtkante oben + weichem Schatten, Zweitknöpfe getönt gefüllt
   (nie nur umrandet – Knöpfe sollen auf einen Blick wie Knöpfe aussehen); gedrückt sinkt der Knopf ein */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--r-pill);
  font-weight: 600; background: var(--primary-soft); color: var(--primary-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
  transition: transform .08s ease, background-color .12s ease, box-shadow .12s ease;
}
.btn:active:not(:disabled) { background: var(--primary-soft-2); box-shadow: inset 0 2px 4px rgba(60, 30, 10, .18); transform: translateY(1px); }
.btn.primary { background: linear-gradient(to bottom, color-mix(in srgb, var(--primary) 88%, #fff), var(--primary) 55%); color: var(--primary-t);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 1px 1px rgba(40, 15, 5, .28), 0 8px 16px -8px color-mix(in srgb, var(--primary-deep) 85%, transparent); }
.btn.primary:active:not(:disabled) { background: var(--primary-deep); box-shadow: inset 0 2px 5px rgba(0, 0, 0, .3); }
.btn.soft { background: var(--primary-soft); color: var(--primary-ink); }
.btn.danger { background: var(--peach); color: var(--peach-ink); }
.btn.danger:active:not(:disabled) { background: color-mix(in srgb, var(--peach) 80%, var(--peach-ink)); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.row-btns .btn { flex: 1; white-space: nowrap; }
/* drei Knöpfe nebeneinander („Hinzufügen“ der Sammlung) – eine Zeile, ohne Symbole (passt sonst auf keinem iPhone) */
.row-btns.drei { flex-wrap: nowrap; gap: 8px; }
.row-btns.drei .btn { min-width: 0; padding: 0 12px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-btns.drei .btn .ic { display: none; }
@media (min-width: 560px) { .row-btns.drei .btn .ic { display: inline-block; } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 7px 14px; border-radius: var(--r-pill); min-height: 44px;   /* Fingergröße 44 px */
  background: var(--surface); font-size: 15px; font-weight: 500; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--sage); color: var(--sage-ink); }
.tag { display: inline-block; padding: 2px 9px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--ink-soft); }
.tag.peach { background: var(--peach); color: var(--peach-ink); }
.recipe-note { display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left; margin: 12px 0 4px; padding: 10px 12px; min-height: 44px;
  border-radius: var(--r-row); background: var(--butter); color: var(--ink); font-size: 15px; line-height: 1.35; white-space: pre-line; }   /* Rezept-Notiz */
.recipe-note .ic { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.tag .ic { width: 12px; height: 12px; vertical-align: -1px; margin-right: 2px; }   /* Stecknadel bei „bald“ */
.tag.sage { background: var(--sage); color: var(--sage-ink); }

.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 16px;
  border: 2px solid transparent; border-radius: var(--r-row);
  background: var(--surface-2);
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2.nicht-haupt .nur-haupt, .issues.nicht-haupt .nur-haupt { display: none; }
.grid2 .field.voll { grid-column: 1 / -1; }   /* Rezept-Art ≠ Hauptgericht: Protein/Beilage gelten nicht */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.search {
  display: flex; align-items: center; gap: 10px; background: var(--surface);
  border-radius: var(--r-pill); padding: 0 6px 0 18px; box-shadow: var(--shadow); margin-bottom: 12px;
}
.search input { flex: 1; min-width: 0; border: 0; background: none; min-height: 52px; outline: none; }
.search .btn { min-height: 44px; padding: 0 14px; flex: none; }

.sheet-wrap { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; padding: 0 env(safe-area-inset-right, 0px) 0 env(safe-area-inset-left, 0px); }
.backdrop { position: absolute; inset: 0; background: rgba(40, 32, 70, .35); animation: fade .2s ease; }
.sheet {
  position: relative; width: 100%; max-width: 560px; max-height: calc(100% - env(safe-area-inset-top, 0px) - 24px);
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding: 10px 20px calc(24px + var(--unten));
  animation: rise .26s cubic-bezier(.2, .8, .2, 1);
}
.sheet-top { position: sticky; top: 0; height: 0; z-index: 3; display: flex; justify-content: flex-end; pointer-events: none; }
.sheet-top .sheet-close { pointer-events: auto; }
.sheet-close { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink-soft); box-shadow: var(--shadow); margin-right: -6px; }
.grabber { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.sheet h2 { font-size: 22px; margin-bottom: 14px; padding-right: 44px; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 30;
  bottom: calc(124px + var(--unten));   /* über der Eingabe/Suche unten */
  display: flex; align-items: center; gap: 14px; width: max-content; max-width: calc(100% - 36px);
  background: var(--primary-soft); color: var(--ink); border-radius: var(--r-pill);   /* in der Farbwelt getönt */
  padding: 10px 10px 10px 20px; font-size: 15px;
  border: 1.5px solid color-mix(in srgb, var(--primary) 55%, transparent); box-shadow: 0 10px 28px rgba(0, 0, 0, .28);   /* hebt sich von Karten/Fenster ab */
  animation: rise .2s ease;
}
/* bei offenem Fenster ganz unten (Fensterkopf mit Zurück/X bleibt frei); liegt über dem Fenster */
.sheet-wrap:not([hidden]) ~ #toastHost .toast { bottom: calc(16px + var(--unten)); }
/* solange ein Hinweis steht, bekommt das Fenster unten Platz dafür – die untersten Menüpunkte rücken darüber (statt verdeckt zu sein) */
.sheet { transition: padding-bottom .2s ease; }
body:has(#toastHost .toast) .sheet { padding-bottom: calc(96px + var(--unten)); }
.toast button { flex: none; min-height: 44px; background: var(--primary); color: var(--surface); padding: 8px 16px; border-radius: var(--r-pill); font-weight: 600; }
/* Rückfrage (v1.33.1, Leon „Kleines Fenster mittig“, frage() in js/2): Zettel mittig über allem – Fenster 20, Kochmodus 45, Kamera 50 */
.frage-wrap { position: fixed; inset: 0; z-index: 55; display: flex; align-items: center; justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px)); }
.tastatur .frage-wrap { bottom: var(--kb, 0px); }   /* Timer-Eingabe: Zettel über der Tastatur (wie .sheet-wrap) */
.frage-hg { position: absolute; inset: 0; background: rgba(40, 30, 20, .45); animation: fade .15s ease; touch-action: none; }
.frage { position: relative; width: 100%; max-width: 340px; max-height: 100%; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .3); padding: 22px 20px 18px; animation: frage-auf .18s cubic-bezier(.2, .8, .2, 1); }
.frage p { margin: 0 0 18px; font: 400 18px/1.4 var(--font-display); overflow-wrap: anywhere; }
.frage .input { margin: -4px 0 18px; font-size: 17px; }
.frage-knoepfe { display: flex; gap: 10px; }
.frage-knoepfe .btn { flex: 1 1 0; min-width: 0; padding: 0 12px; }
@keyframes frage-auf { from { transform: scale(.96); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .frage, .frage-hg { animation: none; } }
.empty { text-align: center; color: var(--ink-soft); padding: 40px 20px; }
.empty .big { font-size: 44px; display: block; margin-bottom: 8px; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   5. WOCHENPLAN – der „Teller“ ist das prägende Element
   ========================================================================== */
.segment { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border-radius: var(--r-pill); padding: 5px; margin-bottom: 16px; box-shadow: var(--shadow); }
.segment button { min-height: 44px; padding: 9px 0; border-radius: var(--r-pill); font-weight: 600; color: var(--ink-soft); }   /* Umschalter mindestens 44 px hoch */
.days { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--ink); }
.day { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 0; text-align: left; background: none; border-radius: 0; border-bottom: .5px solid var(--line); }
.plate {
  flex: none; width: 70px; height: 70px; border-radius: 50%;
  display: grid; place-items: center; font-size: 30px; overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 0 0 6px var(--bg), 0 0 0 8px var(--line);   /* Tellerrand */
  margin: 8px;
}
.plate img { width: 100%; height: 100%; object-fit: cover; }
.plate.empty-plate { background: none; border: 2px dashed var(--line); box-shadow: none; font-size: 22px; color: var(--ink-soft); }
.day-info { flex: 1; min-width: 0; }
.day-date { font: 600 12px/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.day.today .day-date { color: var(--primary); }
.day-title { margin-top: 2px; font: 400 19px/1.25 var(--font-display); overflow-wrap: anywhere; hyphens: manual; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.day-title.placeholder { font: italic 400 16px/1.3 var(--font-italic); color: var(--ink-3); }
.day-tags { display: flex; gap: 6px; margin-top: 5px; flex-wrap: wrap; }
/* Reste-Hinweis unter einer Tageskarte */
.day-hint { display: flex; gap: 6px; margin: 0 0 6px; }
.hint-btn { flex: 1; text-align: left; background: var(--peach); color: var(--peach-ink); border-radius: 0 0 10px 10px; padding: 12px 14px 8px; font-size: 13px; font-weight: 600; }
.hint-x { width: 40px; background: var(--peach); color: var(--peach-ink); border-radius: 0 0 10px 10px; padding-top: 4px; }
/* Makro-Übersicht der Woche */
.week-macros { margin-top: 18px; padding: 14px 0 0; background: none; border-top: 1px solid var(--ink); border-radius: 0; }
.week-macros h3 { font-size: 20px; }
.week-macros .macros { margin: 12px 0 8px; }
.week-macros .macro { background: var(--surface-2); }
.week-actions { margin-top: 18px; display: grid; gap: 10px; }
.check-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border-radius: var(--r-row); margin-bottom: 8px; }
.check-row input { width: 22px; height: 22px; accent-color: var(--sage-ink); flex: none; }
.check-row .muted { color: var(--ink-soft); font-size: 13px; }

/* ==========================================================================
   6. REZEPTE
   ========================================================================== */
.hero-img { margin: 0 -20px 16px; aspect-ratio: 16 / 10; background: var(--surface-2); display: grid; place-items: center; font-size: 64px; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img.flach { aspect-ratio: auto; height: 96px; }   /* ohne Foto keine große leere Fläche */
.macros { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 6px; }
.macro { background: var(--surface); border-radius: var(--r-row); padding: 10px 6px; text-align: center; }
.macro b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.macro small { color: var(--ink-soft); font-size: 12px; }
.note { font-size: 13px; color: var(--ink-soft); }
.note.lead { margin-top: -8px; margin-bottom: 12px; }   /* Unterzeile direkt unter einer Überschrift (statt Einzelwerten im Code) */
.stepper { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border-radius: var(--r-pill); padding: 4px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); font-size: 20px; font-weight: 600; }
.stepper output { min-width: 54px; text-align: center; font-weight: 600; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 22px 0 10px; }
.section-head h3 { font-size: 20px; }
.ing-list, .step-list { margin: 0; padding: 0; list-style: none; background: none; border-radius: 0; }
.ing-list li { display: flex; gap: 14px; padding: 9px 0; border-bottom: .5px solid var(--line); font: 400 16.5px/1.3 var(--font-display); }
.ing-list li:last-child, .step-list li:last-child { border-bottom: 0; }
.ing-list .qty { flex: none; width: 64px; font: 600 13.5px/1.6 var(--font-body); color: var(--ink); text-align: right; }
.step-list { counter-reset: step; }
.ing-edit { display: grid; grid-template-columns: 1fr 1fr 44px; grid-template-areas: "name name name" "qty unit del"; gap: 6px; margin-bottom: 18px; }   /* Name in voller Breite */
@media (min-width: 480px) { .ing-edit { grid-template-columns: 1fr 84px 96px 44px; grid-template-areas: "name qty unit del"; margin-bottom: 6px; } }
.ing-edit [data-k=name] { grid-area: name; } .ing-edit [data-k=qty] { grid-area: qty; } .ing-edit [data-k=unit] { grid-area: unit; } .ing-edit button { grid-area: del; border-radius: 50%; background: var(--surface-2); }
.ing-edit .input, .ing-edit .select { min-height: 44px; padding: 8px 10px; }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: .5px solid var(--line); }
.pick { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 10px 2px; text-align: left; background: none; border-radius: 0; border-bottom: .5px solid var(--line); }
.pick .mini { display: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden; background: var(--surface-2); place-items: center; font-size: 22px; flex: none; }
.pick .mini img { width: 100%; height: 100%; object-fit: cover; }
.pick b { font: 400 18px/1.25 var(--font-display); overflow-wrap: anywhere; hyphens: manual; }   /* Gerichtsname einheitlich */
.menu { display: grid; gap: 0; }

/* ==========================================================================
   7. EINKAUFSLISTE
   ========================================================================== */
.suggest { list-style: none; margin: -4px 0 12px; padding: 6px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow); }
.suggest button { width: 100%; display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-row); text-align: left; }
.suggest button:hover, .suggest button:focus-visible { background: var(--surface-2); }
.cat { margin: 18px 0 8px; font-family: var(--font-display); font-weight: 500; font-size: 15px; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.items { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 6px 10px 6px 8px; border-bottom: 1px solid var(--line); transition: opacity .22s, transform .22s; }
.item:last-child { border-bottom: 0; }
.item.leaving { opacity: 0; transform: translateX(24px); }
.check { width: 52px; height: 52px; flex: none; display: grid; place-items: center; }   /* im Laden leichter zu treffen */
.check::before { content: ""; width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--line); }
.item.leaving .check::before { background: var(--sage-ink); border-color: var(--sage-ink); }
.item .ico { width: 28px; display: grid; place-items: center; flex: none; }
.item .name { flex: 1; min-width: 0; font-weight: 500; }
.item .amount { padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-2); font-size: 15px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
/* Artikel-Zeile mit Details */
.item-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; padding: 6px 0; min-height: 44px; }
.item-main .txt { flex: 1; min-width: 0; }
.item .sub { display: block; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .thumb-sm { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; flex: none; }
.item-photo { margin: 0 0 14px; border-radius: var(--r-card); overflow: hidden; max-height: 240px; }
.item-photo img { width: 100%; object-fit: cover; }
/* Einstellungen */
.set-list { list-style: none; margin: 0 0 16px; padding: 0; background: var(--surface); border: .5px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.set-list li + li { border-top: 1px solid var(--line); }
.set-row { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; min-height: 56px; }
.set-row .ico { font-size: 22px; width: 28px; text-align: center; flex: none; }
.set-row .txt { flex: 1; min-width: 0; font: 400 17px/1.25 var(--font-display); }
.set-row .txt small { display: block; color: var(--ink-soft); font-family: var(--font-body); font-size: 13px; }
.set-row .chev { color: var(--ink-soft); font-size: 20px; }
.set-row select { width: auto; min-height: 44px; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 15px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch:checked { background: var(--sage-ink); }
.switch:checked::after { transform: translateX(20px); }
.back { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--primary); margin-bottom: 10px; min-height: 44px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: #fff; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.staple-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.staple-chips .chip { display: inline-flex; gap: 8px; align-items: center; }
.suggest-head { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--ink-soft); margin: 4px 0 8px; }
/* „Was kochen?“ – Zeile „Aus ‚Alles da‘“ (Pfeil dreht beim Aufklappen), abgewählte Zutaten blass, Stufen mit Abstand */
.koch-da { padding-left: 0; margin-bottom: 4px; }
.koch-da > .ic:last-child { transition: transform .2s; }
.koch-da.auf > .ic:last-child { transform: rotate(90deg); }
.chip.aus { background: transparent; border: 1.5px dashed var(--line, currentColor); color: var(--ink-soft); }   /* lesbar statt blass */
.koch-stufe { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.koch-stufe .anz { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
/* Eigene Symbole */
.ic { width: 1.3em; height: 1.3em; flex: none; vertical-align: -0.28em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic .f { fill: color-mix(in srgb, currentColor 16%, transparent); }
.btn .ic, .chip .ic { width: 1.25em; height: 1.25em; }
.plate .ic { width: 34px; height: 34px; color: var(--primary); }
.mini .ic { width: 24px; height: 24px; color: var(--primary); }
.hero-img .ic { width: 52px; height: 52px; color: var(--primary); }
.empty .big .ic { width: 48px; height: 48px; color: var(--primary); }
.tab .ic { width: 24px; height: 24px; }
/* Wochen-Navigation & Kalender */
.week-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.week-nav .nav-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.week-label { flex: 1; min-height: 48px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.week-label .ic { color: var(--primary); }
.today-chip { display: block; margin: -6px auto 14px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; font-size: 15px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; padding-right: 48px; }   /* Platz fürs Schließen-X */
.cal-head h2 { margin: 0; white-space: nowrap; font-size: 20px; }
.cal-head button { width: 44px; height: 44px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-soft); padding: 4px 0; }
.cal button { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; position: relative; font-weight: 500; background: var(--surface); }
.cal button.sel { background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }
.cal button.today { box-shadow: 0 0 0 2px var(--primary) inset; }
.cal button.has::after { content: ""; position: absolute; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
/* Einkaufs-Ansicht: Liste / Kacheln */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { position: relative; background: var(--surface); border-radius: var(--r-card); aspect-ratio: 1; transition: opacity .22s, transform .22s; }
.tile > .tile-main { width: 100%; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 6px; text-align: center; border-radius: inherit; }
.tile .ic { width: 38px; height: 38px; color: var(--primary); }
.tile img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.tile .name { flex: none; font-weight: 600; font-size: 15px; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tile .qty { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.tile .more { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-soft); }
.tile .more .ic { width: 18px; height: 18px; color: var(--ink-soft); }
.tile.leaving { opacity: 0; transform: scale(.85); }
/* Farbpaletten-Auswahl */
.palettes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.pal { border-radius: var(--r-card); padding: 12px; text-align: left; background: var(--surface); box-shadow: 0 0 0 2px transparent inset; }
.pal[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--primary) inset; }
.pal .sw { display: flex; gap: 4px; margin-bottom: 8px; }
.pal .sw span { flex: 1; height: 28px; border-radius: 8px; }
.pal b { display: block; font-size: 15px; }
.pal small { color: var(--ink-soft); font-size: 12px; }
.item .ico .ic { width: 26px; height: 26px; color: var(--primary); }
.suggest .ic, .cat .ic, .set-row .ico .ic { color: var(--primary); }
/* Prüf-Warteschlange & Schnellprüfung */
.queue-banner { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: var(--primary-soft); color: var(--primary-ink); border-radius: var(--r-card); padding: 14px 16px; margin-bottom: 14px; font-weight: 600; }
.queue-banner .ic { width: 26px; height: 26px; }
.issues { list-style: none; margin: 0 0 14px; padding: 12px 14px; background: var(--butter); border-radius: var(--r-row); font-size: 15px; display: grid; gap: 4px; }
.issues li { display: flex; gap: 8px; align-items: baseline; }
.issues.ok { background: var(--sage); color: var(--sage-ink); }
/* Kategorie braucht mehr Platz als die Einheit („Brot & Backwaren“) */
/* Prüfen-Fenster: Hinweise + Vorschaubild nebeneinander, antippen = Foto über die volle Breite */
.pruef-kopf { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; }
.pruef-kopf .issues { flex: 1; margin: 0; }
.pruef-foto { flex: none; width: 72px; height: 96px; padding: 0; border-radius: var(--r-row); overflow: hidden; border: .5px solid var(--line); background: var(--surface); }
.pruef-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pruef-kopf.gross { flex-direction: column-reverse; }
.pruef-kopf.gross .pruef-foto { width: 100%; height: auto; }
.pruef-kopf.gross .pruef-foto img { height: auto; object-fit: contain; }
.pruef-kap { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; }
.pruef-kap .suggest-head { margin: 0; }
.pruef-kap .tlink { min-height: 40px; }
.pruef-schritte { margin: 0 0 8px; }
.pruef-schritte li { font-size: 15px; padding: 8px 0; }
.warn { box-shadow: 0 0 0 2px var(--peach-ink) inset; }
.ing-compact { list-style: none; margin: 0 0 14px; padding: 0; background: var(--surface); border-radius: var(--r-card); font-size: 15px; }
.ing-compact li { display: flex; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); }
.ing-compact li:last-child { border-bottom: 0; }
.ing-compact li.bad { color: var(--peach-ink); font-weight: 600; }
.ing-compact .qty { width: 76px; flex: none; text-align: right; color: var(--ink-soft); }
.progress { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; margin: 14px 0; }
.progress span { display: block; height: 100%; background: var(--primary); transition: width .3s; }
.order-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; }
.order-row .txt { flex: 1; display: flex; gap: 10px; align-items: center; }
.order-row button { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.order-row button:disabled { opacity: .3; }
.rot-up .ic { transform: rotate(90deg); } .rot-down .ic { transform: rotate(-90deg); }
/* Anmeldung (eigene Version) */
.login { position: fixed; inset: 0; z-index: 40; background: var(--bg); display: flex; align-items: center; justify-content: center; padding: 24px; padding-top: calc(24px + env(safe-area-inset-top, 0px)); }
.login-card { width: 100%; max-width: 380px; }
.login-logo { width: 84px; height: 84px; border-radius: 50%; background: var(--primary-soft); display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 0 0 8px var(--bg), 0 0 0 10px var(--line); }
.login-logo .ic { width: 42px; height: 42px; color: var(--primary); }
.login h1 { text-align: center; font-size: 28px; margin-bottom: 4px; }
.login .note { text-align: center; margin-bottom: 22px; }
.login .err { color: var(--peach-ink); background: var(--peach); border-radius: var(--r-row); padding: 10px 14px; font-size: 15px; margin-bottom: 12px; }
/* Bewertung & Barcode */
.rate { display: flex; gap: 10px; align-items: center; margin: 14px 0 4px; }
.rate button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); background: var(--surface); font-weight: 600; color: var(--ink-soft); }
.rate button[aria-pressed="true"].up { background: var(--sage); color: var(--sage-ink); }
.rate button[aria-pressed="true"].down { background: var(--peach); color: var(--peach-ink); }
.scan-panel { background: var(--surface); border-radius: var(--r-card); padding: 14px; margin: 8px 0 10px; display: grid; gap: 10px; }
.scan-panel .row-btns .btn { min-height: 44px; }
.ing-edit.scanned .input[data-k=name] { box-shadow: 0 0 0 2px var(--sage) inset; }
/* Live-Scanner (Kamera) */
.live { position: fixed; inset: 0; z-index: 50; background: #000; color: #fff; }
.live video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-frame { position: absolute; left: 12%; right: 12%; top: 38%; height: 22%; border: 3px solid #fff; border-radius: 18px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); }
.live-frame::after { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: #F7A273; animation: scanline 1.6s ease-in-out infinite alternate; }
@keyframes scanline { from { transform: translateY(-40px); } to { transform: translateY(40px); } }
.live-top { position: absolute; left: 0; right: 0; top: 0; padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 0; text-align: center; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.live-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 20px calc(20px + var(--unten)); display: grid; gap: 10px; }
.live-bar .row-btns .btn { background: rgba(255, 255, 255, .92); color: #3E2A22; }
.live-bar .btn.close { background: rgba(255, 255, 255, .2); color: #fff; }
.live-msg { background: rgba(0, 0, 0, .55); border-radius: 14px; padding: 10px 14px; font-size: 15px; text-align: center; }
/* Kochmodus */
.cook { position: fixed; inset: 0; z-index: 45; background: var(--bg); display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) calc(16px + var(--unten)) max(20px, env(safe-area-inset-left, 0px)); }
/* Kopf, Zutaten, Timer und Zurück/Weiter behalten ihre Höhe; nur ein langer Schritt scrollt in sich */
.cook-head { flex: none; display: flex; align-items: center; gap: 12px; }
.cook-head h2 { flex: 1; font-size: 24px; }
/* Zutaten als Liste mit Haarlinien */
.cook-ings { flex: none; margin: 12px 0; min-height: 96px; max-height: 30vh; overflow-y: auto; background: none; border-radius: 0; border-top: 1px solid var(--ink); border-bottom: .5px solid var(--line); }
.cook-ings button { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 9px 2px; text-align: left; border-bottom: .5px solid var(--line); font: 400 16px/1.3 var(--font-display); }
.cook-ings button[aria-pressed="true"] { opacity: .45; text-decoration: line-through; }
/* Schritt groß in Charter */
.cook-step { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; justify-content: safe center; text-align: center; padding: 10px 6px; }
.cook-step .num { margin-bottom: 10px; font: italic 400 20px/1 var(--font-italic); color: var(--primary-ink); }
.cook-step p { margin: 0; font: 400 27px/1.38 var(--font-display); letter-spacing: -.01em; }
/* Kochmodus am Mac nicht über die ganze Breite – Lesebreite wie die App */
.cook > * { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }
/* iPad (Leon 26.11.2026: „iPad auch“): breitere Spalte statt 800 px Leere; eigenes iPad-Layout (zwei Spalten) später als eigener Schritt */
@media (min-width: 760px) { .app, .cook > *, .sheet { max-width: 720px; } }   /* ab iPad hochkant (768/810/820/834) */
/* Kochmodus quer am iPhone (≈ 375 hoch): Schritt bekommt den Platz – Schrift kleiner, Kopf/Zutaten/Knöpfe knapper */
@media (max-height: 500px) {
  .cook { padding-top: calc(6px + env(safe-area-inset-top, 0px)); padding-bottom: calc(6px + var(--unten)); }
  .cook-step p { font-size: 21px; line-height: 1.3; } .cook-step.lang p { font-size: 18px; }
  .cook-zut { margin-top: 4px; } .cook-tb { margin: 2px auto 6px; } #cookNote { display: none; }
}
.cook-timers { flex: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cook-timers .chip { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; background: var(--primary-soft); color: var(--primary-ink); font-weight: 600; }
.cook-timers .chip.done { background: var(--peach); color: var(--peach-ink); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.timer-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.cook-nav { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cook-nav .btn { min-height: 56px; }
/* Papierkorb, Läden, Hilfe, Neuigkeiten */
.text-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 8px 12px; font-size: 15px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.faq details { background: var(--surface); border-radius: var(--r-row); padding: 12px 16px; margin-bottom: 8px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15px; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; background: var(--surface); border-radius: var(--r-card); padding: 14px 16px; margin-bottom: 14px; font-size: 15px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend .ic { color: var(--primary); }
.news li { margin-bottom: 6px; }
/* Heute-Karte (Variante C) & Wochenleiste */
/* Sammlung auf der Startseite */
.coll-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.coll { min-width: 0; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 0; background: none; border-radius: 0; border-bottom: .5px solid var(--line); }
.coll .plate { width: 54px; height: 54px; margin: 6px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 6px var(--line); }
.coll .plate .ic { width: 28px; height: 28px; }
.coll .day-title { font-size: 18px; -webkit-line-clamp: 3; }   /* Platz für lange Namen */
.coll-hint .ic, .coll-empty .ic { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
.coll-empty { margin-top: 4px; padding: 6px 0 0; background: none; border-radius: var(--r-card); }
.coll-empty h3 { font-size: 20px; margin-bottom: 6px; }
.coll-empty .row-btns { margin-top: 14px; }
.tag.butter { background: var(--butter); color: var(--ink); }
.link-btn { display: inline-flex; align-items: center; min-height: 44px; margin: 14px auto 0; padding: 0 4px; color: var(--primary); font-size: 15px; font-weight: 600; }   /* Abstand oben für den Anmelde-Link */
.link-btn .ic { width: 18px; height: 18px; }   /* erbte margin-top 14px vom Anmelde-Link → saß tiefer als „Diese Woche“ */
.back-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-bottom: 12px; padding: 0 4px 0 0; border-radius: var(--r-pill); background: none; box-shadow: none; color: var(--primary); font: italic 400 17px/1 var(--font-italic); }
.back-chip .ic { width: 18px; height: 18px; }
.today-card { margin: 0 0 26px; background: none; border-radius: 0; box-shadow: none; overflow: visible; }   /* keine Karte – das Gericht steht wie eine Buchüberschrift */
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; touch-action: pan-y; user-select: none; -webkit-user-select: none; }   /* Ziehen & Ablegen */
.strip-day { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; font-size: 12px; font-weight: 600; color: var(--ink-soft); position: relative; background: none; border: .5px solid var(--line); border-radius: 10px; }
.strip-day::after { content: ""; position: absolute; inset: 0 -3px; }   /* Tippfläche unsichtbar auf ≥ 44 px Breite */
.strip-day.today { color: var(--primary-ink); font-weight: 600; background: var(--primary-soft); border-color: transparent; }
.strip-day .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--surface); }
.strip-day.today .dot { background: var(--surface); }
.strip-day .dot.none { background: none; border: 2px dashed var(--line); box-sizing: border-box; }
.strip-day .dot .ic { width: 18px; height: 18px; color: var(--primary); }
.strip-day .dot img { width: 100%; height: 100%; object-fit: cover; }
/* Feinschliff für schmale Bildschirme (z. B. iPhone SE): „Liste leeren“ bis 400 px nur als Papierkorb, damit der Ladenname nicht gekürzt wird */
@media (max-width: 400px) { .text-btn .long { display: none; } }
@media (max-width: 360px) {
  .week-label { font-size: 13px; gap: 6px; }
  .text-btn { padding: 8px 6px; }
}
/* Ziehen & Ablegen in der Wochenleiste */
.strip-day.dragging { opacity: .35; }
.strip-day.drop { box-shadow: 0 0 0 2.5px var(--primary) inset; }
.drag-ghost { position: fixed; z-index: 60; pointer-events: none; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); box-shadow: 0 10px 28px rgba(0,0,0,.25); display: grid; place-items: center; overflow: hidden; transform: translate(-50%, -70%) scale(1.15); }
.drag-ghost .ic { width: 24px; height: 24px; color: var(--primary); }
.drag-ghost img { width: 100%; height: 100%; object-fit: cover; }
.strip-hint { font-size: 12px; color: var(--ink-soft); text-align: center; margin: -8px 0 12px; }
/* Vorschläge prüfen, neu würfeln, übernehmen */
.sug-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; background: none; border-radius: 0; border-bottom: .5px solid var(--line); }
.sug-row.skip { opacity: .55; }
.sug-row .mini { display: none; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); place-items: center; flex: none; overflow: hidden; }
.sug-row .mini .ic { width: 22px; height: 22px; color: var(--primary); }
.sug-row .mini img { width: 100%; height: 100%; object-fit: cover; }
.sug-row .txt { flex: 1; min-width: 0; }
.sug-row .txt b { display: block; font: 400 18px/1.25 var(--font-display); overflow-wrap: anywhere; }
.sug-row .day { font-size: 12px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: .04em; }
.sug-row .mini-btn { width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; flex: none; }
.sug-row .mini-btn.dice { background: var(--primary-soft); color: var(--primary-ink); }

/* ==========================================================================
   8. KOCHBUCH (v1.15.0, docs/DESIGN.md): Startseite, Woche als Inhaltsverzeichnis, Sammlung als ruhige Liste
   ========================================================================== */
.btn.mini { position: relative; min-height: 36px; padding: 0 14px; font-size: 15px; gap: 6px; flex: none; }
.btn.mini .ic { width: 16px; height: 16px; }
.tlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; font: italic 400 17px/1.2 var(--font-italic); color: var(--primary-ink); text-align: left; }
.tlink .ic { width: 16px; height: 16px; }
.tlink:active { text-decoration: underline; }
/* Heute-Karte */
.today-card .deck { margin: 0 0 4px; font: italic 400 19px/1.2 var(--font-italic); color: var(--ink-soft); }
.today-card .hero { display: block; text-align: left; font: 700 44px/1.02 var(--font-display); letter-spacing: -.025em; color: var(--ink); overflow-wrap: anywhere; margin: 0; }
.today-card .hero-meta { display: flex; flex-wrap: wrap; gap: 0 10px; margin: 10px 0 18px; font: 500 14px/1.4 var(--font-body); color: var(--ink-soft); }
.today-card .hero-meta span + span::before { content: "·"; margin-right: 10px; color: var(--ink-3); }
.today-card .rest { font: italic 400 16px/1.4 var(--font-italic); color: var(--sage-ink); }
.hero-act { display: flex; gap: 10px; align-items: center; }
.hero-act .btn { flex: none; }
.hero-act .btn.primary { padding: 0 24px; }
/* Woche als Inhaltsverzeichnis */
.toc { margin: 0 0 8px; }
.toc-h { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.toc-h h3 { font-size: 22px; }
.toc-h .link-btn { font-size: 14px; margin: 0; padding-right: 0; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc-r { width: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; min-height: 48px; padding: 12px 0 10px; text-align: left; border-bottom: .5px solid var(--line); }
.toc-d { flex: none; width: 46px; font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.toc-d em { font-style: normal; margin-left: 5px; letter-spacing: 0; }
.toc-n { min-width: 0; font: 400 17px/1.25 var(--font-display); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-n i { font-family: var(--font-italic); color: var(--sage-ink); }
.toc-lead { flex: 1; min-width: 12px; border-bottom: 1.5px dotted var(--line); transform: translateY(-4px); }
.toc-m { flex: none; font: 500 13px/1 var(--font-body); color: var(--ink-soft); }
.toc-frei { flex: 1; font: italic 400 16px/1.2 var(--font-italic); color: var(--ink-3); }
.toc-plus { flex: none; color: var(--primary-ink); align-self: center; }
.toc-plus .ic { width: 20px; height: 20px; }
.toc-r.jetzt .toc-d { color: var(--primary-ink); }
.toc-r.jetzt .toc-n { font-weight: 700; }
.toc-r.jetzt .toc-m { color: var(--primary-ink); font-weight: 600; }
.toc-r.vorbei .toc-n, .toc-r.vorbei .toc-d { color: var(--ink-3); }
.toc-r:active { background: var(--primary-soft); }
/* Leise Zeilen „Sammlung ›“ und „Diese Woche ›“ */
.samm-link, .woche-hw { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 56px; margin: 22px 0 6px; padding: 0; text-align: left;
  border: 0; border-top: 1px solid var(--ink); border-bottom: .5px solid var(--line); border-radius: 0; background: none; }   /* Kapitelzeile statt Kasten */
.samm-l, .woche-l { font: 700 19px/1 var(--font-display); }
.samm-n, .woche-n { flex: 1; font: 500 14px/1 var(--font-body); color: var(--ink-soft); }
.samm-link .ic, .woche-hw .ic { color: var(--ink-soft); transition: transform .2s; }
.samm-link[aria-expanded="true"] > .ic { transform: rotate(90deg); }
/* Sammlung */
.samm-kopf { margin: 4px 0 10px; }
.samm-kopf h3 { font-size: 22px; }
.samm-unter { margin: 0; font: italic 400 17px/1.2 var(--font-italic); color: var(--ink-soft); }
.sec-label { display: flex; align-items: center; gap: 6px; margin: 16px 0 0; padding-bottom: 6px; border-bottom: 1px solid var(--ink);
  font: 600 12px/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.sec-label span { letter-spacing: 0; color: var(--ink-3); }
.sec-label.da { color: var(--sage-ink); }
.sec-label .ic { width: 14px; height: 14px; }
.coll-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 0; text-align: left; }
.coll-n { font: 400 19px/1.2 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.coll-m { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; font: 500 13px/1.35 var(--font-body); color: var(--ink-soft); }
.coll-m > * + *::before { content: "·"; margin-right: 8px; color: var(--ink-3); }
.coll-m .tag { padding: 0; background: none; border-radius: 0; font: inherit; color: inherit; }
.coll-m .tag.peach { color: var(--primary-ink); font-weight: 600; }
.coll-m .auf { color: var(--sage-ink); }
.kreis { flex: none; width: 44px; height: 44px; margin-left: -8px; display: grid; place-items: center; }
.kreis::before { content: ""; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ink-3); transition: background .15s; }
.kreis:active::before { background: var(--primary-soft); }
/* runde Symbol-Knöpfe rechts in der Abschnittszeile (Ideen, Zufall, Fehlendes auf die Liste mit Zahl) */
.sec-label:has(.sl-akt) { padding-bottom: 4px; min-height: 52px; }
.sl-akt { margin-left: auto; display: flex; gap: 8px; }
.sl-knopf { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--primary-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 1px 2px rgba(60, 30, 10, .12);
  transition: transform .08s ease, background-color .12s ease, box-shadow .12s ease; }
.sl-knopf:active { background: var(--primary-soft); box-shadow: inset 0 2px 4px rgba(60, 30, 10, .18); transform: translateY(1px); }
.sec-label .sl-knopf .ic { width: 20px; height: 20px; }
.sl-knopf b { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px;
  background: var(--primary); color: var(--primary-t); font: 700 11px/19px var(--font-body); letter-spacing: 0; text-align: center; }
.samm-add { display: flex; justify-content: flex-start; margin: 12px 0 4px; }
.coll-hint { margin: 10px 0 0; }
/* Rezepte aufräumen: je Gruppe eine Auswahl „behalten“ */
.aufr-gruppe { margin: 0 0 22px; }
.aufr-gruppe .set-list { margin-bottom: 10px; }
.aufr-wahl { cursor: pointer; }
.aufr-wahl input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--primary); }
/* Rezepte als Register */
.filter-w { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; margin: 2px -18px 4px; padding: 0 18px; border-bottom: .5px solid var(--line);
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }   /* Ausblend-Rand rechts zeigt, dass es weitergeht */
.filter-w::-webkit-scrollbar { display: none; }
#dsCarb { margin-bottom: 12px; }   /* Entdecken – zwei Reiterzeilen, Abstand zur Trefferzeile */
.sheet .filter-w { margin-inline: -20px; padding-inline: 20px; }   /* im Fenster bündig mit Suchfeld (Fenster-Rand 20 px) */
.fw { flex: none; min-width: 44px; min-height: 44px; padding: 0 4px; font: 500 15px/1 var(--font-body); color: var(--ink-soft); border-bottom: 2px solid transparent; margin-bottom: -.5px; white-space: nowrap; }
.fw[aria-pressed="true"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--primary); }
/* Rezeptliste: Art-Reiter oben in der Buchschrift mit Anzahl, Beilage-Zeile kleiner und leiser mit kursivem Vorsatz */
.filter-w.arten .fw { font: 400 18px/1 var(--font-display); }
.filter-w.arten .fw[aria-pressed="true"] { font-weight: 700; }
.fw small { font: 400 12px/1 var(--font-body); color: var(--ink-3); margin-left: 4px; }
.filter-w.beilagen .fw { font-size: 14px; color: var(--ink-3); }
.filter-w.beilagen .fw[aria-pressed="true"] { color: var(--ink); }
.fw-label { flex: none; align-self: center; font: italic 14px/1 var(--font-italic); color: var(--ink-3); }
.reg-list { list-style: none; margin: 0 0 8px; padding: 0; }
.reg-r { width: 100%; display: flex; align-items: baseline; gap: 10px; min-height: 48px; padding: 12px 0 10px; text-align: left; border-bottom: .5px solid var(--line); }
.reg-r:active { background: var(--primary-soft); }
.reg-b { flex: none; width: 26px; font: italic 400 30px/.6 var(--font-italic); color: var(--primary-ink); }
.reg-n { min-width: 0; font: 400 17px/1.25 var(--font-display); color: var(--ink); }
.reg-n .ic { width: 14px; height: 14px; color: var(--primary-ink); vertical-align: -1px; }
.reg-n small { display: block; font: 500 12px/1.4 var(--font-body); color: var(--ink-soft); }
.reg-m { flex: none; min-width: 22px; text-align: right; font: 500 13px/1 var(--font-body); color: var(--ink-soft); }
.reg-list li.neu .reg-r { padding-top: 16px; }
/* Suche unten über der Tab-Leiste (Daumen) */
.search.unten { position: fixed; z-index: 6; left: 50%; transform: translateX(-50%); width: min(524px, calc(100% - 36px)); margin: 0;
  bottom: calc(64px + var(--unten)); border: 1px solid var(--line); box-shadow: 0 8px 24px -10px rgba(70, 45, 20, .35); }
.search.unten input { min-height: 46px; }
#view-recipes { padding-bottom: 72px; }
/* Rezept wie eine Kochbuchseite */
.r-kick { margin: 4px 0 6px; font: 600 12px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--primary-ink); padding-right: 44px; }
.sheet h2.r-titel { font-size: 32px; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 14px; }
.r-fakten { display: grid; grid-template-columns: 1fr 1.3fr 1.2fr; border-top: 1px solid var(--ink); border-bottom: .5px solid var(--line); margin: 0 0 6px; }
.r-fakten > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 8px 4px; }
.r-fakten > div + div { border-left: .5px solid var(--line); }
.r-fakten b { font: 400 26px/1 var(--font-display); }
.r-fakten small { font: 600 10.5px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.r-port { display: flex; align-items: center; gap: 2px; }
.r-port button { width: 44px; height: 44px; font-size: 22px; color: var(--primary-ink); border-radius: 50%; }
.r-port button:active { background: var(--primary-soft); }
.r-rate { display: flex; gap: 2px; }
.r-rate button { display: inline-flex; align-items: center; gap: 3px; min-width: 44px; min-height: 44px; justify-content: center; border-radius: var(--r-pill); color: var(--ink-soft); }
.r-rate button .ic { width: 22px; height: 22px; }
.r-rate button i { font: 600 13px/1 var(--font-body); font-style: normal; }
.r-rate button[aria-pressed="true"].up { color: var(--primary-ink); background: var(--primary-soft); }
.r-rate button[aria-pressed="true"].down { color: var(--peach-ink); background: var(--peach); }
.r-kap { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 22px 0 0; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.r-kap h3 { font-size: 22px; }
.r-kap .note { font-size: 13px; }
/* Schritte: steht nach .pruef-schritte li (Prüfen-Fenster), damit Abstand und Schrift hier gelten */
.step-list li { counter-increment: step; display: flex; gap: 14px; padding: 12px 0; border-bottom: .5px solid var(--line); font: 400 16.5px/1.45 var(--font-display); }
.step-list li::before { content: counter(step); display: block; flex: none; width: 22px; height: auto; place-items: center; border-radius: 0; background: none; font: italic 400 26px/1 var(--font-italic); color: var(--primary-ink); }
.r-mehr { margin-top: 8px; }
.r-weg { color: var(--peach-ink); }
.r-leiste { position: sticky; bottom: calc(-24px - var(--unten)); z-index: 2; display: flex; gap: 10px; margin: 18px -20px calc(-24px - var(--unten));
  padding: 12px 20px calc(14px + var(--unten)); background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: .5px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.r-leiste .btn.primary { flex: 1; }
.btn.rund { width: 48px; padding: 0; flex: none; }
.macros .macro { background: var(--surface); }
/* Einkauf: Kopfzeile, Kategorien mit Linie, Zeile antippen = abhaken (durchgestrichen), Eingabe unten */
.shop-kopf { display: flex; align-items: center; gap: 10px; margin: -2px 0 4px; }
.store-w { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font: italic 400 18px/1 var(--font-italic); color: var(--primary-ink); white-space: nowrap; min-width: 0; }
.store-w .store-name { overflow: hidden; text-overflow: ellipsis; }
.store-w .ic, .dish-w .ic { width: 14px; height: 14px; transform: rotate(90deg); }
.shop-n { font: italic 400 17px/1 var(--font-italic); color: var(--ink-soft); white-space: nowrap; }   /* v1.31.1: Unterzeile in einer Schrift wie bei „Rezepte“ */
.shop-n:not(:empty)::after { content: " ·"; }
.shop-kopf { gap: 5px; }
.store-w { font-size: 17px; }
.dish-w { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 0; font: italic 400 17px/1 var(--font-italic); color: var(--primary-ink); }
.dish-w .store-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.dish-w[aria-pressed="true"] { color: var(--primary-ink); font-weight: 600; }
/* v1.31.1 (Leon, Variante A): Kategorien als Buch-Überschrift mit Tintenlinie wie „Zutaten“, Anzahl offener Dinge rechts */
#view-shop .cat { margin: 20px 0 0; padding-bottom: 3px; border-bottom: 1px solid var(--ink); font: 700 19px/1.2 var(--font-display); color: var(--ink); justify-content: space-between; align-items: baseline; }
#view-shop .cat .cat-n { font: 500 13px/1 var(--font-body); color: var(--ink-3); }
#view-shop .items { background: none; border-radius: 0; overflow: visible; }
#view-shop .item { padding: 0; border-bottom: .5px solid var(--line); -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
#view-shop .item-main { gap: 12px; min-height: 52px; padding: 4px 0; }
#view-shop .item-main:active { background: var(--primary-soft); }
#view-shop .item .check { width: 24px; height: 24px; display: block; flex: none; border-radius: 50%; border: 1.5px solid var(--ink-3); margin: 0 2px 0 0; }
#view-shop .item .check::before { content: none; }
#view-shop .item .ico { display: none; }
#view-shop .item .name { font: 400 17px/1.25 var(--font-display); }
#view-shop .item .sub { font: italic 400 14px/1.3 var(--font-italic); color: var(--ink-soft); }   /* Notiz kursiv wie überall */
#view-shop .item .amount { padding: 0; background: none; font: 600 13.5px/1.2 var(--font-body); color: var(--ink); text-align: right; }
#view-shop .item .amount .pck { display: block; margin-top: 4px; font: 500 12px/1 var(--font-body); color: var(--ink-3); }   /* Packungsgröße */
#view-shop .item.erledigt .check { background: var(--sage-ink); border-color: var(--sage-ink); position: relative; }
#view-shop .item.erledigt .check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--bg); border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
#view-shop .item.erledigt .name, #view-shop .item.erledigt .amount { text-decoration: line-through; color: var(--ink-3); }
.tile.erledigt { opacity: .45; }
/* v1.31.1: Kacheln ohne Karten – Raster aus Haarlinien, Symbole in Tinte (Akzent nur, wo man etwas tut) */
#view-shop .tiles { gap: 0; border-left: .5px solid var(--line); }
#view-shop .tile { background: none; border-radius: 0; border-right: .5px solid var(--line); border-bottom: .5px solid var(--line); }
#view-shop .tile > .tile-main:active { background: var(--primary-soft); }
#view-shop .tile .ic { width: 30px; height: 30px; color: var(--ink-soft); stroke-width: 1.4; }
#view-shop .tile .name { font: 400 17px/1.2 var(--font-display); }
#view-shop .tile .qty { font: 600 12.5px/1.2 var(--font-body); }
#view-shop .tile .more .ic { width: 18px; height: 18px; color: var(--ink-3); }
/* „Zuletzt gekauft“ wie ein Kapitel, Artikel als unterstrichene Wörter (wie die Wort-Knöpfe der Sammlung) */
.zul-kap { margin-top: 26px; }
.zul-kap h3 { font-size: 19px; }
.wort-liste { display: flex; flex-wrap: wrap; gap: 0 20px; }
.text-w { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font: italic 400 17px/1.2 var(--font-italic); color: var(--primary-ink);
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.text-w:active { opacity: .6; }
.text-w .ic { width: 16px; height: 16px; }
label.text-w { cursor: pointer; }
#view-shop .empty { font: italic 400 17px/1.4 var(--font-italic); }
#view-shop .empty .big .ic { color: var(--ink-3); stroke-width: 1.3; }
#view-shop { padding-bottom: 80px; }
#shopForm.unten { padding: 0 5px 0 14px; gap: 8px; }
#shopForm.unten > .ic { color: var(--ink-soft); width: 18px; height: 18px; }
/* nur für Vorleser (VoiceOver) – unsichtbar, aber erreichbar */
.nur-vorleser { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Rückgängig nach dem Abhaken als schmale Kapsel in der Eingabezeile – verdeckt keine Zeilen im Daumenbereich */
.shop-undo { flex: none; position: relative; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 44px; padding: 0 12px; border-radius: var(--r-pill); background: var(--primary-soft); color: var(--primary-ink);
  font: 600 14px/1 var(--font-body); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); animation: fade .15s ease; }
.shop-undo::after { content: ""; position: absolute; inset: -5px -2px; }   /* Trefferfläche ≥ 44 pt */
.shop-undo:active { background: var(--primary-soft-2); box-shadow: inset 0 2px 4px rgba(60, 30, 10, .18); }
#shopForm.mit-undo input { min-width: 0; }
#shopSuggest.oft-zeile { display: flex; align-items: center; gap: 8px; overflow-x: auto; flex-wrap: nowrap; max-height: none; padding: 6px 8px; scrollbar-width: none; }
#shopSuggest.oft-zeile::-webkit-scrollbar { display: none; }
#shopSuggest.oft-zeile li { flex: none; }
#shopSuggest.oft-zeile { gap: 16px; }
#shopSuggest.oft-zeile button { width: auto; min-height: 40px; padding: 0 2px; border-radius: 0; background: none; color: var(--primary-ink); font: 600 15px/1 var(--font-body); white-space: nowrap; position: relative;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }   /* v1.31.1: Wörter statt Kapseln */
#shopSuggest.oft-zeile button::after { content: ""; position: absolute; inset: -2px 0; }
#shopSuggest.oft-zeile .suggest-head.oft { margin: 0 2px 0 4px; white-space: nowrap; }
.suggest-head.oft { margin: 4px 8px 4px; font: italic 400 15px/1.3 var(--font-italic); color: var(--ink-soft); letter-spacing: 0; }
.suggest.unten { position: fixed; z-index: 7; left: 50%; transform: translateX(-50%); width: min(524px, calc(100% - 36px)); margin: 0;
  bottom: calc(118px + var(--unten)); max-height: 40vh; overflow-y: auto; border: 1px solid var(--line); }
/* v1.32.3: Bildschirm-Tastatur offen (Klasse „tastatur“, js/2 Abschnitt 6) – Tab-Leiste weg, Eingabe/Vorschläge direkt über die Tastatur
   (der Rand für den Home-Balken entfällt, solange die Tastatur da ist) */
:root.tastatur { --unten: 0px; }
.tastatur .tabbar { display: none; }
/* --kb (v1.32.4): so weit ragt die Tastatur über das Fenster hinaus – iOS verkleinert mal das Fenster, mal nur den sichtbaren Ausschnitt */
.tastatur .search.unten { bottom: calc(8px + var(--kb, 0px)); }
.tastatur .suggest.unten { bottom: calc(62px + var(--kb, 0px)); }
.tastatur .sheet-wrap { bottom: var(--kb, 0px); }
/* Ganze Woche, Blätter, Einstellungen im Kochbuch-Stil: Haarlinien statt Karten, keine Teller-Kreise, Menüs als ruhige Liste */
.week-label { font-size: 15px; }   /* steht nach @media (max-width: 360px) – gilt auch dort */
.day.today { box-shadow: none; }
.day > .plate, .day .plate { display: none; }
.day.today .day-title { font-weight: 700; }
.day-tags .tag { padding: 0; background: none; border-radius: 0; font: 500 13px/1.4 var(--font-body); color: var(--ink-soft); }
.day-tags .tag + .tag::before { content: "·"; margin-right: 6px; color: var(--ink-3); }
.day-tags .tag.sage { color: var(--sage-ink); } .day-tags .tag.peach { color: var(--primary-ink); font-weight: 600; } .day-tags .tag.butter { color: var(--ink); }
/* Menüs in Blättern: Zeilen mit Symbol und Haarlinie; die Hauptaktion bleibt ein Kapsel-Knopf */
.menu .btn { min-height: 52px; padding: 0 2px; gap: 14px; border-radius: 0; background: none; box-shadow: none; color: var(--ink); font: 400 17px/1.2 var(--font-display);
  border-bottom: .5px solid var(--line); justify-content: flex-start; }
.menu .btn .ic { color: var(--primary-ink); width: 20px; height: 20px; }
.menu .btn:active:not(:disabled) { background: var(--primary-soft); transform: none; box-shadow: none; }
.menu .btn.primary { margin-bottom: 8px; border-radius: var(--r-pill); justify-content: center; padding: 0 20px; color: var(--primary-t); font: 600 16px/1 var(--font-body); border: 0;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--primary) 88%, #fff), var(--primary) 55%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 1px 1px rgba(40, 15, 5, .28), 0 8px 16px -8px color-mix(in srgb, var(--primary-deep) 85%, transparent); }
.menu .btn.primary .ic { color: inherit; }
.menu .btn.danger { color: var(--peach-ink); background: none; }
.menu .btn.danger .ic { color: var(--peach-ink); }
.sheet .field > span { letter-spacing: .02em; }
/* Auswahl-Listen (Rezept wählen, „Was kochen?“, Vorschläge) wie das Register: Haarlinien, keine Teller-Symbole */
.pick:active { background: var(--primary-soft); }
.pick .note { font-size: 13px; }
.sheet .search { box-shadow: none; border: 1px solid var(--line); }
/* Kochmodus: Hinweis behält seine Höhe; ab ≈ 160 Zeichen kleinere Schrift */
#cookNote { flex: none; }
.cook-step.lang p { font-size: 21px; }
.cook-menge { font-weight: 700; color: var(--primary-ink); white-space: nowrap; }   /* Menge direkt im Schritttext */
.cook-tb { flex: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 6px auto 12px; }   /* Timer-Knöpfe fest über „Zurück/Weiter“, nicht mitten im Schritt */
/* Kochmodus: Zutaten eingeklappt, Timer als Chips in einer Zeile – der Schritttext behält den Platz */
.cook-zut { flex: none; margin: 10px auto 4px; border-bottom: .5px solid var(--line); }
.cook-zut summary { list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; justify-content: space-between;
  font: 600 15px/1.2 var(--font-body); color: var(--primary-ink); }
.cook-zut summary::-webkit-details-marker { display: none; }
.cook-zut summary::after { content: ""; width: 8px; height: 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .15s; }
.cook-zut[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.cook-zut .cook-ings { margin: 0 0 8px; max-height: 38vh; min-height: 0; }
.cook-tb .btn.mini { min-height: 44px; padding: 0 14px; }
/* Trefferflächen ≥ 44 pt auch bei kleinen Knöpfen (sichtbar 36 pt) */
.btn.mini::after { content: ""; position: absolute; inset: -4px -2px; }
.btn.rund.klein { width: 44px; height: 44px; min-height: 44px; }
.today-card .hero button { font: inherit; color: inherit; text-align: left; letter-spacing: inherit; }
.r-leiste .btn { flex: 1; padding: 0 12px; white-space: nowrap; }
/* Textgröße „Groß“/„Wie iPhone“ (html.gross, CSS zoom): knappe Zeilen dürfen umbrechen statt seitlich überzulaufen */
/* Wochenzeile darf 2 Zeilen haben; Rezept-Leiste „Sammlung“ statt „In die Sammlung“ */
html.gross .toc-n { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
html.gross .r-leiste .sl-lang { display: none; }
html.gross .r-leiste .btn { min-width: 0; white-space: normal; line-height: 1.15; text-align: center; }
html.gross .r-fakten small { letter-spacing: .03em; }
html.gross .r-fakten > div { min-width: 0; }
html.gross .week-label { min-width: 0; white-space: normal; text-align: center; line-height: 1.2; }
.sheet .row-btns .btn { padding: 0 12px; }
.pick.sugg { box-shadow: none; }
.pick.sugg b::before { content: "★ "; color: var(--primary-ink); font-size: .8em; }
.segment button[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary-ink); }
.today-card .hero-meta span { white-space: nowrap; }
@media (max-width: 340px) { .week-strip { gap: 3px; } .strip-day::after { inset: 0 -2px; } }
@media (max-height: 450px) and (orientation: landscape) {   /* Querformat – Eingabe/Suche nicht fest, Tab-Leiste schmaler */
  .search.unten { position: static; transform: none; width: auto; margin: 10px 0; }
  .suggest.unten { position: static; transform: none; width: auto; }
  .tab { min-height: 40px; flex-direction: row; gap: 6px; }
  #view-shop, #view-recipes { padding-bottom: 0; }
}

/* ==========================================================================
   Bedienung (Bestandsaufnahme v1.22.1, docs/entwurf/bestandsaufnahme-1.22.1.md)
   ========================================================================== */
/* „…“ oben im Rezept neben ✕ (springt zu „Mehr“) */
.r-mehr-oben { position: absolute; top: 10px; right: 64px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--ink-soft); box-shadow: var(--shadow); }
/* Papierkorb – Knöpfe unter dem Titel statt daneben (Titel war auf 4 Zeilen gequetscht) */
.korb-zeile { flex-wrap: wrap; row-gap: 8px; }
.korb-zeile .txt { flex: 1 1 100%; }
.korb-knoepfe { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.korb-knoepfe .btn.mini { min-height: 44px; }
/* Kalender – Tage anderer Monate lesbar (Kontrast ≈ 4,5:1 statt 2,4:1), aber zurückgenommen */
.cal button.out { opacity: 1; background: transparent; color: var(--ink-soft); font-weight: 400; }
/* Sammlung-Knöpfe mit kurzem Wort – Variante C: Symbol + unterstrichenes Wort als Textlink, ohne Kreis
   (Bilder docs/entwurf/sammlung-knoepfe/wort-A…C.png); Fingerfläche bleibt 44 px hoch */
.sl-akt:has(.sl-knopf.w) { gap: 16px; }
.sl-knopf.w { width: auto; height: 44px; border: 0; border-radius: 0; background: none; box-shadow: none; padding: 0 2px;
  display: inline-flex; gap: 5px; align-items: center; color: var(--primary-ink);
  font: 600 15px/1 var(--font-body); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.sl-knopf.w span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.sl-knopf.w:active { background: none; box-shadow: none; transform: none; opacity: .6; }
.sl-knopf.w b { position: static; margin-left: 2px; }
.sl-knopf.w .sl-lang { font-style: normal; }
html.gross .sl-knopf.w .sl-lang { display: none; }   /* große Schrift: „Liste“ statt „Auf die Liste“ – „Noch einkaufen“ bräche sonst um */

/* ==========================================================================
   Zusatz zum Tag (v1.27.0, Leon Variante A): leise Unterzeile „+ Name“ kursiv, Tag-Menü „Dazu“ mit Portionen in der Zeile
   ========================================================================== */
.zus-unter, .day-zus, .toc-zus { display: block; font: italic 14px/1.3 var(--font-italic); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-zus { margin-top: 3px; }
.toc-zus { flex-basis: 100%; padding-left: 56px; margin-top: -4px; }   /* bündig unter dem Gericht (Tag 46 px + Abstand 10 px) */
/* ::before – ::after ist die unsichtbare Tippfläche */
.strip-day.mit-zus::before { content: ""; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--primary); }
.today-card .hero-dazu { margin: -8px 0 16px; font: italic 16px/1.4 var(--font-italic); color: var(--ink-soft); }
.today-card .hero-dazu.nur { margin: 4px 0 16px; font: 400 26px/1.2 var(--font-display); color: var(--ink); }
.hero-dazu button { font: inherit; color: var(--primary-ink); min-height: 44px; text-align: left; }
.dazu { margin: 14px 0 6px; }
.dazu-h { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.dazu-h h3 { font-size: 19px; }
.dazu-r { display: flex; align-items: center; gap: 8px; border-bottom: .5px solid var(--line); }
.dazu-n { flex: 1; min-width: 0; min-height: 52px; text-align: left; display: flex; flex-direction: column; justify-content: center; }
.dazu-n b { font: 400 17px/1.25 var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.dazu-n small { font: 500 12px/1.3 var(--font-body); color: var(--ink-3); }
.dazu-r .r-port b { min-width: 22px; text-align: center; font: 600 16px/1 var(--font-body); }
.dazu .tlink { margin-top: 4px; }

/* ==========================================================================
   9. KOCHBUCH-KAPITEL auf „Heute“ (Leon 26.11.2026, Variante B ohne Randzeichnung; Entwurf docs/entwurf/charakter/)
   Woche = Kapitel, Tageszahl groß in Akzentfarbe, Zierlinie mit Rosmarinzweig; Gericht des Tages mittig mit Initiale
   ========================================================================== */
.kapitel { display: flex; flex-direction: column; align-items: center; margin: -4px 0 2px; }
.kapitel[hidden] { display: none; }
.kap-tag { font: italic 400 19px/1.2 var(--font-italic); color: var(--ink-soft); }
.kap-zahl { font: italic 400 70px/.92 var(--font-italic); color: var(--primary-ink); margin-top: 2px; }
.kap-mon { font: 600 11px/1 var(--font-body); letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.zier { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 12px auto; color: var(--ink-3); }
.zier i { width: 56px; border-top: .5px solid var(--ink-3); }
.zier-z { width: 74px; height: 32px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
body.kapitel-frei .tb-t { flex: 1; text-align: center; }
body.kapitel-frei #home .samm-kopf { justify-content: center; text-align: center; }
:is(body.kapitel-heute, body.kapitel-frei) .today-card, body.kapitel-heute .today-card .hero, body.kapitel-heute .today-card .hero button { text-align: center; }
body.kapitel-heute .today-card .hero-meta, :is(body.kapitel-heute, body.kapitel-frei) .today-card .hero-act { justify-content: center; }
/* kleine iPhones (SE): Kapitel-Kopf knapper, damit die Sammlung über dem Falz beginnt */
@media (max-height: 600px) { .kap-zahl { font-size: 48px; } .zier { margin: 6px auto; } }
/* v1.30.0: geschätzte Portionen/Zeit (KI) – leise Markierung am Feld */
.field .gesch { font: italic 400 13px/1 var(--font-italic); color: var(--primary-ink); text-transform: none; letter-spacing: 0; }

/* ==========================================================================
   10. EINKAUF IM KOCHBUCH (v1.31.1, Leon 27.11.2026, Variante A „nur angleichen“; Entwurf docs/entwurf/einkauf-design/a.png)
   Laden-Auswahl mit Haken, Artikel-Details als Kochbuchseite (Kicker, Titel, Fakten-Raster, Abschnitte mit Tintenlinie)
   ========================================================================== */
.menu .btn .laden-n { flex: 1; text-align: left; }
.menu .btn.laden-an .laden-n { font-weight: 700; }
.menu .btn.laden-an > .ic:last-child { color: var(--primary-ink); }
.i-titel { display: block; width: 100%; padding: 0 44px 0 0; border: 0; background: none; color: var(--ink); font: 700 32px/1.1 var(--font-display); letter-spacing: -.02em; }
.i-titel:focus { outline: none; border-bottom: 1px dashed var(--ink-3); }
.i-hinweis { margin: 2px 0 12px; font: italic 400 14px/1.3 var(--font-italic); color: var(--ink-3); }
.i-fakten { grid-template-columns: 1.6fr .9fr 1.2fr; }   /* Mengen-Spalte ≥ 140 px auch auf 375-pt-iPhones */
.i-fakten > label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 76px; padding: 8px 4px; border-left: .5px solid var(--line); }
.i-menge { display: flex; align-items: center; }
.i-menge button { width: 40px; height: 44px; font: 400 24px/1 var(--font-body); color: var(--primary-ink); }
.i-menge button:active { opacity: .5; }
.i-menge input { width: 58px; text-align: center; border: 0; background: none; font: 400 24px/1 var(--font-display); color: var(--ink); padding: 0; }
.i-wahl { width: 100%; border: 0; background: none; text-align: center; text-align-last: center; -webkit-appearance: none; appearance: none;
  font: italic 400 17px/1.2 var(--font-italic); color: var(--primary-ink); padding: 4px 2px; min-height: 36px; }
.i-notiz { display: block; width: 100%; min-height: 52px; margin: 0; padding: 12px 0; border: 0; border-bottom: .5px solid var(--line); background: none; resize: vertical;
  font: italic 400 17px/1.4 var(--font-italic); color: var(--ink); }
.i-notiz:focus { outline: none; border-bottom-color: var(--ink-3); }
.i-foto { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
.i-gerichte { list-style: none; margin: 0; padding: 0; }
.i-gerichte li { display: flex; align-items: center; min-height: 48px; border-bottom: .5px solid var(--line); font: 400 17px/1.25 var(--font-display); }
.i-gerichte li span { flex: 1; min-width: 0; }
.i-gerichte li.note { font: italic 400 15px/1.3 var(--font-italic); }
.i-gerichte li button { width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; color: var(--ink-3); }
.i-gerichte li button .ic { width: 18px; height: 18px; }
.i-zuordnen { position: relative; }
.i-zuordnen select { position: absolute; inset: 0; opacity: 0; width: 100%; font-size: 16px; }   /* unsichtbare Auswahl über dem Textknopf (iPhone öffnet die Liste) */
.i-knoepfe { margin-top: 18px; }

/* ==========================================================================
   11. iPAD ZWEI SPALTEN (v1.33.0, Leon 27.11.2026; Entwurf docs/entwurf/ipad/, Entscheidung in docs/ENTSCHEIDUNGEN.md)
   Grenzen wie BREIT / BREIT_QUER in js/2 Abschnitt 6 – Mindesthöhe 600, damit das iPhone quer einspaltig bleibt.
   ========================================================================== */
:root { --falz: inset 10px 0 14px -14px rgba(60, 40, 20, .35); --rz-l: 480px; --tab-h: calc(58px + var(--unten)); }
@media (min-width: 760px) and (min-height: 600px) {
  /* „Heute“ als Doppelseite: links Heute-Gericht + Woche, rechts die Sammlung (immer offen), Falz in der Mitte */
  body[data-view="week"] .app { max-width: 1120px; padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
  #view-week.doppel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr;
    grid-template-areas: "heute samm" "woche samm"; align-items: start; }
  #view-week.doppel > #todayCard { grid-area: heute; padding-right: 36px; }
  #view-week.doppel > #home:not([hidden]) { display: contents; }
  #view-week.doppel .toc { grid-area: woche; padding-right: 36px; }
  #view-week.doppel .samm-seite { grid-area: samm; align-self: stretch; min-height: 60vh; padding-left: 36px; border-left: 1px solid var(--line); box-shadow: var(--falz); }
  #view-week.doppel > :not(#todayCard):not(#home):not(.samm-seite) { grid-column: 1 / -1; }
  /* Fingergrößen: auf dem iPad ist Platz für volle 44 px (Bedien-Prüfung N3) */
  .btn.mini, .samm-add .btn, .tb-acts .btn { min-height: 44px; }
}
@media (min-width: 1000px) and (min-height: 600px) {
  /* Rezepte: Register links (Breite --rz-l), Rezept rechts aufgeschlagen – das Rezept-Fenster dockt an (html.rz-dock, js/2 dockPruefen) */
  body[data-view="recipes"] .app { max-width: none; margin: 0; padding-left: max(36px, env(safe-area-inset-left, 0px)); padding-right: calc(100% - var(--rz-l) + 24px); }
  body[data-view="recipes"] .search.unten { left: max(36px, env(safe-area-inset-left, 0px)); transform: none; width: calc(var(--rz-l) - 60px); }
  body[data-view="recipes"] #view-recipes::before { content: "Ein Rezept antippen – es schlägt sich hier auf."; position: fixed; left: var(--rz-l); right: 0; top: 0; bottom: var(--tab-h);
    display: flex; align-items: center; justify-content: center; padding: 0 40px; text-align: center; font: italic 400 20px/1.4 var(--font-italic); color: var(--ink-3);
    border-left: 1px solid var(--line); box-shadow: var(--falz); pointer-events: none; }
  html.rz-dock .sheet-wrap { left: var(--rz-l); bottom: var(--tab-h); padding: 0; align-items: stretch; pointer-events: none; }
  html.rz-dock .backdrop { display: none; }
  /* Meldung (Toast) bei angedocktem Rezept über der Tab-Leiste, mittig in der rechten Seite; Leiste „Kochen“ nicht anheben (Bedien-Prüfung H1) */
  html.rz-dock .sheet-wrap:not([hidden]) ~ #toastHost .toast { bottom: calc(var(--tab-h) + 88px); left: calc(var(--rz-l) + (100% - var(--rz-l)) / 2); max-width: calc(100% - var(--rz-l) - 48px); }
  html.rz-dock body:has(#toastHost .toast) .sheet { padding-bottom: 24px; }
  html.rz-dock.tastatur .sheet-wrap { bottom: var(--kb, 0px); }   /* Tastatur offen: Tab-Leiste ist weg (Abschnitt 10) – kein leerer Streifen */
  html.rz-dock .sheet { pointer-events: auto; max-width: none; max-height: none; height: 100%; border-radius: 0; animation: none; box-shadow: var(--falz);
    border-left: 1px solid var(--line); padding: calc(14px + env(safe-area-inset-top, 0px)) max(44px, env(safe-area-inset-right, 0px)) 24px 44px; }
  html.rz-dock .grabber { display: none; }
  html.rz-dock .r-mehr-oben { top: calc(14px + env(safe-area-inset-top, 0px)); right: 88px; }   /* neben ✕ (Abstand wie im Fenster: 44 + 6 px) */
  html.rz-dock .r-leiste { bottom: -24px; margin-bottom: -24px; padding-bottom: 14px; }
  html.rz-dock .reg-r[aria-current] { background: var(--primary-soft); box-shadow: -10px 0 0 var(--primary-soft), 10px 0 0 var(--primary-soft); }
  html.rz-dock .reg-r[aria-current] .reg-n { font-weight: 700; }
  /* Kochmodus quer: Zutaten immer links (aufgeklappt, js/4), Schritt rechts groß */
  .cook { display: grid; grid-template-columns: 340px minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto auto; column-gap: 0; }
  .cook > * { max-width: none; width: auto; margin-left: 0; margin-right: 0; }
  .cook-head { grid-column: 1 / -1; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
  .cook-zut { grid-column: 1; grid-row: 2 / -1; align-self: stretch; overflow-y: auto; padding-right: 28px; border-right: 1px solid var(--line); }
  .cook-zut .cook-ings { max-height: none; overflow: visible; }
  .cook-zut summary { pointer-events: none; } .cook-zut summary::after, .cook-zut summary .ic { display: none; }   /* immer offen (Bedien-Prüfung N4) */
  .cook > :not(.cook-head):not(.cook-zut) { grid-column: 2; padding-left: 44px; }
  .cook-step { align-self: center; }
}
