/* Midwife — Nachtblau trägt, warmes Licht heißt „jetzt", Grün heißt „erledigt".
   Seit 20.09.2026 im „Liquid Glass"-Look (Bastis Wunsch): alles, was man bedient, schwebt als Glas über dem
   Inhalt — Kopf-Kapseln, Dock, Fortschrittsleiste, Knöpfe. Licht fällt von oben links: helle Kante dort,
   leise Kante gegenüber, dazu eine leichte Wölbung (innen oben hell, innen unten schattig).
   KEIN backdrop-filter, nirgends: gemessen am 20.09.2026 kostete er beim Scrollen 70–95 % mehr Rechenzeit pro Bild
   (allein das Dock +45 %), auf Bastis Handy ruckelte es sofort. Das Glas entsteht deshalb aus Durchsicht auf die
   ohnehin weichen Lichter, Kanten, Wölbung und Schatten (alles steht still, kostet nichts); damit Text unter Kopf
   und Dock nicht scharf durchschlägt, läuft der Inhalt dort weich in den Grund aus (.kopf::before, body::after). */

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

/* ------------------------------------------------------------------ Farben */
:root {
  --grund: #f4f6fb;
  --flaeche: #ffffff;
  --tinte: #131a33;
  --leise: #5b6584;
  --linie: rgba(36, 57, 143, .11);
  --akzent: #24398f;
  --akzent-sanft: #e8ecf9;
  --auf-akzent: #ffffff;
  --jetzt: #eaa520;
  --jetzt-text: #8a5a00;
  --jetzt-sanft: #fdf3dc;
  --gut: #1b8a55;
  --gut-sanft: #e3f4ea;
  --fehler: #b3261e;
  /* Glas: Füllung oben/unten, schwebende Teile mit und ohne Weichzeichner, Kontur, Lichtkanten, Schatten */
  --glas-a: rgba(255, 255, 255, .42);
  --glas-b: rgba(255, 255, 255, .14);
  --glas-chrom: rgba(255, 255, 255, .42);
  --glas-kontur: rgba(36, 57, 143, .13);
  --kante-hell: #fff;
  --kante-leise: rgba(255, 255, 255, .60);
  --glanz: rgba(255, 255, 255, .60);
  --woelbung: inset 0 12px 14px -12px rgba(255, 255, 255, .95), inset 0 -12px 16px -12px rgba(36, 57, 143, .20);
  --glas-schatten: 0 1px 1px rgba(19, 26, 51, .04), 0 16px 34px -20px rgba(19, 26, 51, .32);
  --chrom-schatten: 0 2px 6px rgba(19, 26, 51, .07), 0 18px 40px -16px rgba(19, 26, 51, .40);
  --linse: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .62));
  --linse-schatten: 0 1px 2px rgba(19, 26, 51, .10), 0 6px 16px -6px rgba(36, 57, 143, .35);
  --mulde: rgba(36, 57, 143, .07);
  --dicke: inset 0 0 14px -5px rgba(36, 57, 143, .22);
  --licht-warm: rgba(244, 172, 50, .55);
  --licht-blau: rgba(84, 120, 255, .46);
  --licht-violett: rgba(164, 110, 255, .40);
  --glas-farbe: linear-gradient(115deg, rgba(84, 120, 255, .10), rgba(164, 110, 255, .06) 55%, rgba(244, 172, 50, .12));
  --punkt: #2f449b;
  --punkt-leer: rgba(47, 68, 155, .15);
  --band-aussen: #edf0f9;
  --band-innen: #dae0f3;
  --band-linie: #98a5d0;
  --gitter: #e9ecf5;
  --kurve: #24398f;
  --dock: #ffffff;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --grund: #0b1120;
  --flaeche: #131b30;
  --tinte: #e9edf7;
  --leise: #8f9ab8;
  --linie: rgba(255, 255, 255, .075);
  --akzent: #a9bbff;
  --akzent-sanft: #1b2646;
  --auf-akzent: #0b1120;
  --jetzt: #f5be50;
  --jetzt-text: #f5be50;
  --jetzt-sanft: #2b2414;
  --gut: #5acb92;
  --gut-sanft: #12291f;
  --fehler: #ff8f86;
  --glas-a: rgba(170, 188, 255, .075);
  --glas-b: rgba(170, 188, 255, .012);
  --glas-chrom: rgba(44, 58, 108, .34);
  --glas-kontur: rgba(255, 255, 255, .08);
  --kante-hell: rgba(255, 255, 255, .40);
  --kante-leise: rgba(255, 255, 255, .10);
  --glanz: rgba(255, 255, 255, .08);
  --woelbung: inset 0 12px 14px -12px rgba(255, 255, 255, .26), inset 0 -14px 18px -12px rgba(0, 0, 0, .50);
  --glas-schatten: 0 18px 40px -22px rgba(0, 0, 0, .8);
  --chrom-schatten: 0 2px 8px rgba(0, 0, 0, .28), 0 22px 46px -16px rgba(0, 0, 0, .85);
  --linse: linear-gradient(180deg, rgba(196, 210, 255, .26), rgba(150, 172, 255, .09));
  --linse-schatten: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 18px -8px rgba(0, 0, 0, .7);
  --mulde: rgba(0, 0, 0, .24);
  --dicke: inset 0 0 16px -5px rgba(190, 205, 255, .30);
  --licht-warm: rgba(245, 176, 64, .30);
  --licht-blau: rgba(70, 104, 255, .62);
  --licht-violett: rgba(150, 96, 255, .48);
  --glas-farbe: linear-gradient(115deg, rgba(96, 128, 255, .26), rgba(150, 96, 255, .13) 55%, rgba(245, 176, 64, .12));
  --punkt: #8ea3f5;
  --punkt-leer: rgba(150, 170, 245, .17);
  --band-aussen: #161f39;
  --band-innen: #212c50;
  --band-linie: #5565a0;
  --gitter: #1a2340;
  --kurve: #a9bbff;
  --dock: #141c32;
  color-scheme: dark;
}

/* Gemeinsame Bausteine. --rand-glas: Lichtkanten (Licht von oben links) + leichte Wölbung. --rand-chrom: dasselbe
   für die schwebenden Teile, zusätzlich mit Glasdicke. Alles unbewegte Schatten — gemessen ohne Kosten beim Scrollen. */
:root {
  --rand-glas: inset 1px 1px 0 var(--kante-hell), inset -1px -1px 0 var(--kante-leise), var(--woelbung);
  --rand-chrom: var(--rand-glas), var(--dicke);
  --feder: cubic-bezier(.3, 1.45, .45, 1);
}

/* ------------------------------------------------------------------ Grundgerüst */
*, *::before, *::after { box-sizing: border-box; }

html {
  /* Grundschrift 17 statt 16 px (Basti 20.09.2026: „Fonts grenzwertig klein") — in %, damit die Schriftgröße des Handys weiter gilt. */
  font-size: 106.25%;
  background: var(--grund);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
  color: var(--tinte);
  font: 350 1rem/1.55 "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-feature-settings: "kern";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Leerlauf: Lichter wandern langsam hinter dem Inhalt — warm oben links, kühl dagegen. Nur transform wird animiert
   (läuft auf der Grafikkarte, schont den Akku). Seit 20.09.2026 klar umrissene Flecken (feste Radien in px) statt großer
   Schleier: Durchsicht nimmt man nur wahr, wenn hinter dem Glas etwas Erkennbares liegt und unter der Kante weiterläuft
   (Basti: „die erhöhte Transparenz ist nicht wahrnehmbar" — über gleichmäßigem Grund sieht klares Glas aus wie keins). */
.lichter { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.lichter > i { position: absolute; inset: -18%; will-change: transform; }
.lichter > i:nth-child(1) { background: radial-gradient(circle at 20% 17%, var(--licht-warm), transparent 210px), radial-gradient(circle at 34% 78%, var(--licht-violett), transparent 230px), radial-gradient(circle at 74% 96%, var(--licht-blau), transparent 180px); animation: licht-a 23s ease-in-out infinite alternate; }
.lichter > i:nth-child(2) { background: radial-gradient(circle at 78% 40%, var(--licht-blau), transparent 250px), radial-gradient(circle at 60% 12%, var(--licht-violett), transparent 170px); animation: licht-b 29s ease-in-out infinite alternate; }
/* Glühwürmchen: steigen langsam auf und funkeln. Position, Tempo und Größe kommen je Funke aus dem Markup. */
.funke { position: absolute; left: var(--x); top: var(--y); width: var(--g, 4px); height: var(--g, 4px); border-radius: 50%; background: var(--jetzt); box-shadow: 0 0 8px 1px var(--jetzt); opacity: 0; will-change: transform, opacity; animation: steigen var(--t, 14s) ease-in-out var(--v, 0s) infinite; }
@keyframes steigen { 0% { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; } 12% { opacity: .85; } 45% { transform: translate3d(var(--drift, 14px), -60px, 0) scale(1); opacity: .35; } 62% { opacity: .9; } 100% { transform: translate3d(calc(var(--drift, 14px) * -1), -150px, 0) scale(.5); opacity: 0; } }
.korn { position: absolute; inset: 0; opacity: .035; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E"); }
@keyframes licht-a { from { transform: translate3d(-9%, -7%, 0); } to { transform: translate3d(11%, 10%, 0); } }
@keyframes licht-b { from { transform: translate3d(10%, 8%, 0); } to { transform: translate3d(-12%, -11%, 0); } }

main { max-width: 680px; margin: 0 auto; padding: 8px 20px 24px; }

a { color: var(--akzent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 6px; }
svg.icon { width: 1.375rem; height: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Schriftstufen bei 17 px Grundschrift: 13.8 · 14.9 · 17 · 19 · 24.4 · 31.9 — nichts Lesbares unter 13.8, Dock 12.2 */
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.2; font-weight: 600; }
.seitentitel { font-size: 1.4375rem; font-weight: 600; margin: 14px 0 18px; }
.seitentitel, .auftakt h1 { animation: titel .32s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes titel { from { opacity: 0; transform: translateY(8px); } }
.abschnitt { margin-top: 30px; }
.abschnitt > h2 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.abschnitt > h2 small { font-weight: 400; font-size: .8125rem; color: var(--leise); letter-spacing: 0; }
.leise { color: var(--leise); }
.klein { font-size: .875rem; }
.fein { font-size: .8125rem; color: var(--leise); }
.zahl { font-variant-numeric: tabular-nums; }

.verweis { display: inline-flex; align-items: center; gap: 2px; margin-top: 12px; font-size: .875rem; font-weight: 600; text-decoration: none; }
.verweis svg.icon { width: 1rem; height: 1rem; transition: transform .2s ease; }
.verweis:hover svg.icon { transform: translateX(3px); }

/* ------------------------------------------------------------------ Kopf */
.kopf {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  pointer-events: none;                              /* zwischen den Kapseln bleibt der Inhalt antippbar */
}
/* Oberkante: der Inhalt läuft weich aus, statt an einem Balken abzubrechen. */
.kopf::before { content: ""; position: absolute; z-index: -1; inset: 0 0 -30px; pointer-events: none; background: linear-gradient(var(--grund) 30%, color-mix(in srgb, var(--grund) 90%, transparent) 58%, transparent); }
/* Dasselbe unten: unter dem Dock läuft der Inhalt in den Grund aus. Eine stehende Ebene, kein Weichzeichner. */
body:not(.anmeldeseite):not(.rahmenseite)::after { content: ""; position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; height: calc(126px + env(safe-area-inset-bottom)); pointer-events: none; background: linear-gradient(transparent, color-mix(in srgb, var(--grund) 90%, transparent) 40%, color-mix(in srgb, var(--grund) 97%, transparent)); }
.marke, .kopf-rechts {
  pointer-events: auto; height: 46px; border-radius: 999px;
  background: var(--glas-farbe), var(--glas-chrom); border: 1px solid var(--glas-kontur);
  box-shadow: var(--rand-chrom), var(--chrom-schatten);
}
.marke { display: inline-flex; align-items: center; gap: 9px; padding: 0 18px 0 8px; color: var(--tinte); text-decoration: none; font-weight: 600; font-size: 1.0625rem; letter-spacing: -.025em; transition: transform .25s var(--feder); }
.marke:active { transform: scale(.95); }
.kopf-rechts { display: flex; align-items: center; gap: 0; padding: 0 3px; }
.knopf-rund {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  color: var(--leise); background: none; border: 0; border-radius: 50%; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s, transform .15s;
}
.knopf-rund:hover { background: var(--akzent-sanft); color: var(--akzent); }
.knopf-rund:active { transform: scale(.9); }
.knopf-rund.aktiv { color: var(--akzent); }
/* Der Schalter zeigt die gewählte Einstellung: Automatisch, Hell oder Dunkel. */
#thema > span { display: none; }
:root[data-thema-wahl="auto"] #thema .auto, :root[data-thema-wahl="light"] #thema .sonne, :root[data-thema-wahl="dark"] #thema .mond { display: block; }

/* Das Zeichen: warmer Kern, zwei Bögen, die ihn halten. Jeder Teil ist ein eigenes kleines SVG —
   so dreht die Grafikkarte fertige Bilder, statt dass der Browser das Innenleben pro Bild neu malt. */
.zeichen { position: relative; display: inline-block; width: 30px; height: 30px; flex: none; }
.zeichen svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; will-change: transform; }
.zeichen circle { fill: none; stroke: var(--akzent); stroke-width: 1.55; stroke-linecap: round; }
.zeichen .bogen-a { --start: 20deg; transform: rotate(var(--start)); animation: drehen 12s linear infinite; }
.zeichen .bogen-b { --start: 200deg; transform: rotate(var(--start)); animation: drehen 19s linear infinite reverse; opacity: .42; }
.zeichen .kern circle { fill: var(--jetzt); stroke: none; }
.zeichen .kern { filter: drop-shadow(0 0 3px var(--jetzt)); animation: glimmen 2.4s ease-in-out infinite alternate; }
.zeichen.gross { width: 64px; height: 64px; }
@keyframes drehen { from { transform: rotate(var(--start)); } to { transform: rotate(calc(var(--start) + 360deg)); } }
@keyframes glimmen { from { transform: scale(.84); opacity: .8; } to { transform: scale(1.16); opacity: 1; } }

/* ------------------------------------------------------------------ Flächen und Zeilen */
/* Glas ohne Weichzeichner: die Lichter dahinter sind schon weich, das spart dem Handy die Rechenarbeit.
   Schräger Glanz oben links, helle Kante dort, leise Kante gegenüber, weicher Schlagschatten. */
.flaeche {
  background: linear-gradient(135deg, var(--glanz), transparent 42%), linear-gradient(180deg, var(--glas-a), var(--glas-b));
  border: 1px solid var(--glas-kontur); border-radius: 24px;
  box-shadow: var(--rand-glas), var(--glas-schatten);
}
a.flaeche, a.flaeche.innen { transition: transform .3s var(--feder); }
a.flaeche:active { transform: scale(.975); }
.flaeche.innen { padding: 17px 20px; }

.liste { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.liste > li { padding: 13px 18px; border-top: 1px solid var(--linie); }
.liste > li:first-child, .liste > li.folge { border-top: 0; }
.liste > li.folge { padding-top: 0; }

.marke-tag {
  display: inline-block; margin-bottom: 4px; padding: 1px 9px; border-radius: 999px;
  font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--akzent); background: var(--akzent-sanft);
}
.marke-tag.jetzt { color: var(--jetzt-text); background: var(--jetzt-sanft); }

.zeile-titel { display: block; font-weight: 400; }
.zeile-titel strong { font-weight: 550; }
.zeile-detail { display: block; margin-top: 2px; font-size: .875rem; color: var(--leise); }
.zeile-detail strong { font-weight: 600; color: inherit; }
/* Klappzeile: zu = Titel + Pfeil im Kreis, auf = Pfeil gedreht und eingefärbt, Einzelheiten darunter. */
.liste > li.hat-klappe { padding: 0; }
.klappe > summary { display: flex; align-items: center; gap: 12px; padding: 13px 14px 13px 18px; cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent; }
.klappe > summary::-webkit-details-marker { display: none; }
.klappe-kopf { flex: 1; min-width: 0; }
.klappe-pfeil { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--akzent); background: var(--linse); box-shadow: var(--rand-glas), var(--linse-schatten); transition: transform .3s cubic-bezier(.3, 1.3, .5, 1); }
.klappe-pfeil svg.icon { width: 1.0625rem; height: 1.0625rem; stroke-width: 2.1; }
details[open] > summary .klappe-pfeil { transform: rotate(90deg); color: var(--auf-akzent); background: linear-gradient(180deg, color-mix(in srgb, var(--akzent) 82%, #fff), var(--akzent)); }
.klappe > summary:active .klappe-pfeil { transform: scale(.88); }
.klappe[open] > summary .zeile-titel { font-weight: 550; }
.klappe .zeile-detail { margin: 0; padding: 0 18px 15px; }
/* Klappen springen auf, nur der Inhalt blendet ein. Eine animierte Höhe hieße: pro Bild die ganze Seite neu setzen und
   alle Flächen darunter neu malen — gemessen 28 Layout-Läufe und 176 Paints je Klappe, auf dem Handy „übelst am Ruckeln"
   (Basti 20.09.2026). So ist es ein Layout-Lauf, danach bewegt nur noch die Grafikkarte. */
.klappe[open] > .zeile-detail, .rezept[open] > .rezept-innen, details.archiv[open] > section { animation: klapp-auf .26s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes klapp-auf { from { opacity: 0; transform: translate3d(0, -8px, 0); } }
.liste > li.hat-klappe:has(> .klappe[open]) { background: color-mix(in srgb, var(--akzent-sanft) 45%, transparent); }
li.abgehakt { display: flex; gap: 10px; align-items: flex-start; color: var(--leise); }
li.abgehakt svg.icon { color: var(--gut); width: 1.125rem; height: 1.125rem; margin-top: 3px; }

details.archiv { margin-top: 30px; }
details.archiv > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 14px 13px 18px; cursor: pointer; list-style: none; font-weight: 500; }
details.archiv > summary::-webkit-details-marker { display: none; }
details.archiv > summary small { display: block; font-size: .8125rem; font-weight: 350; color: var(--leise); }

/* ------------------------------------------------------------------ Start */
.auftakt { padding: 18px 0 4px; }
.auftakt h1 { font-size: 1.875rem; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; margin-top: 4px; }
/* Kein Lichtstreif mehr über der Überschrift: der animierte Verlauf ließ beim Ankommen 3 s lang die ganze Seite neu malen
   (gemessen 165 Paints). Die hochzählende Zahl bekommt in effekte.js eine eigene kleine Ebene und feste Breite. */
.auftakt .alter { font-size: 1.125rem; font-weight: 300; color: var(--leise); margin: 6px 0 0; }

.trimester { margin-top: 24px; max-width: 360px; }
.raster { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, auto); grid-template-columns: repeat(13, 1fr); gap: 7px; }
.raster i { display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--punkt-leer); }
.raster i.gelebt { background: var(--punkt); }
.raster i.heute { background: var(--jetzt); position: relative; }
.raster i.heute::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--jetzt); animation: puls 2.2s ease-out infinite; }
.raster i.ziel { background: none; box-shadow: inset 0 0 0 2px var(--jetzt); }
/* Das Raster kommt als Ganzes an (eine Ebene) — früher 91 einzeln animierte Punkte, das waren 91 Ebenen beim Ankommen. */
.raster { animation: raster-auf .5s cubic-bezier(.2, .8, .3, 1) both; transform-origin: 0 50%; }
@keyframes raster-auf { from { opacity: 0; transform: scale(.94); } }
@keyframes puls { 0% { transform: scale(.7); opacity: .95; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
/* Die Welle: ein einziges schräges Lichtband fegt übers Raster. Die Maske (ein Kreis je Rasterzelle) lässt es
   nur auf den Punkten aufleuchten. Zwei Ebenen statt vierzig einzeln animierter Punkte. */
.raster { position: relative; }
raster-welle { position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  -webkit-mask: radial-gradient(circle closest-side at calc(50% - 3.5px) calc(50% - 3.5px), #000 calc(100% - .5px), transparent) 0 0 / calc((100% + 7px) / 13) calc((100% + 7px) / 7);
  mask: radial-gradient(circle closest-side at calc(50% - 3.5px) calc(50% - 3.5px), #000 calc(100% - .5px), transparent) 0 0 / calc((100% + 7px) / 13) calc((100% + 7px) / 7); }
raster-licht { position: absolute; top: -60%; left: 0; width: 42%; height: 220%; will-change: transform; background: linear-gradient(90deg, transparent, var(--wellenlicht, rgba(255, 255, 255, .6)), transparent); animation: fegen 5.4s ease-in-out 1.3s infinite backwards; }
@keyframes fegen { 0% { transform: translate3d(-140%, 0, 0) rotate(22deg); } 48%, 100% { transform: translate3d(340%, 0, 0) rotate(22deg); } }
.raster i { cursor: pointer; }
.raster i.gewaehlt { outline: 2px solid var(--tinte); outline-offset: 2px; }
.raster i.stoss { animation: stoss .7s cubic-bezier(.3, 1.5, .5, 1) both !important; animation-delay: calc(var(--abstand) * 55ms) !important; }
@keyframes stoss { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
#raster-info { margin: 10px 0 0; font-size: .875rem; color: var(--leise); }
#raster-info.neu { color: var(--tinte); }
#raster-info.neu { animation: titel .45s cubic-bezier(.2, .8, .3, 1) both; }
.raster-achse { display: flex; justify-content: space-between; margin-top: 7px; }
.legende { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8125rem; color: var(--leise); }
.legende li { display: flex; align-items: center; gap: 7px; }
.legende i { width: 10px; height: 10px; border-radius: 50%; background: var(--punkt); flex: none; }
.legende i.heute { background: var(--jetzt); }
.legende i.ziel { background: none; box-shadow: inset 0 0 0 2px var(--jetzt); }

.werte { display: grid; grid-template-columns: repeat(3, 1fr); margin: 24px 0 0; text-decoration: none; color: inherit; overflow: hidden; transition: border-color .2s; }
/* Leuchtrand: ein Lichtbogen kreist um die Fläche — auf dem, was gerade zählt, überall mit eigenem Tempo.
   Technik: effekte.js setzt <leucht-rand><leucht-licht> ein. Die Maske (nur der 1,5-px-Rand) steht still, dahinter
   dreht sich ein fertiges Verlaufsbild per transform. Früher war der Verlauf selbst animiert — das zwang den
   Browser, jede dieser Flächen 60× pro Sekunde neu zu malen. */
:where(.leuchtrand) { position: relative; }
leucht-rand { position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
leucht-licht { position: absolute; left: 50%; top: 50%; width: var(--d, 400px); height: var(--d, 400px); margin: calc(var(--d, 400px) / -2) 0 0 calc(var(--d, 400px) / -2); will-change: transform;
  background: conic-gradient(transparent 0 58%, var(--rand-a, var(--jetzt)) 76%, var(--rand-b, var(--akzent)) 90%, transparent 100%);
  animation: rund var(--rand-tempo, 5.5s) linear var(--rand-start, 0s) infinite; }
@keyframes rund { to { transform: rotate(360deg); } }
.leuchtrand.gericht { --rand-tempo: 7s; --rand-start: -2.5s; }
.leuchtrand.wochenplan { --rand-tempo: 9s; --rand-start: -4s; }
.leuchtrand.fortschritt { --rand-a: var(--gut); --rand-b: var(--jetzt); --rand-tempo: 6s; }
.dock { --rand-tempo: 10s; --rand-start: -6s; }
.werte > div { padding: 13px 14px 12px; border-left: 1px solid var(--linie); min-width: 0; }
.werte > div:first-child { border-left: 0; }
.werte .bez { font-size: .8125rem; color: var(--leise); }
.werte .zahlwert { margin: 1px 0 0; font-size: 1.375rem; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.werte .zahlwert span { font-size: .875rem; font-weight: 500; color: var(--leise); margin-left: 2px; letter-spacing: 0; }
.werte .rand { font-size: .8125rem; color: var(--leise); }

.gericht-titel { font-size: 1.125rem; font-weight: 500; letter-spacing: -.01em; margin: 0; line-height: 1.3; }

.artefakt { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.artefakt-bild { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--linse); box-shadow: var(--rand-glas), var(--linse-schatten); font-size: 1.375rem; flex: none; }
.artefakt-text { flex: 1; min-width: 0; }
.artefakt-text strong { display: block; font-weight: 600; }
.artefakt-text small { display: block; font-size: .875rem; color: var(--leise); }
.artefakt > svg.icon { color: var(--leise); width: 1.125rem; height: 1.125rem; transition: transform .2s; }
.artefakt:hover > svg.icon { transform: translateX(3px); color: var(--akzent); }

/* ------------------------------------------------------------------ Küche */
.plan > li { position: relative; padding: 0; }
.planzeile { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; align-items: center; padding: 13px 14px 13px 18px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.planzeile > svg.icon { width: 1.125rem; height: 1.125rem; color: var(--leise); transition: transform .2s, color .2s; }
a.planzeile:hover > svg.icon, a.planzeile:active > svg.icon { transform: translateX(3px); color: var(--akzent); }
a.planzeile:active { background: var(--akzent-sanft); }
.plan .marke-tag { margin: 0; justify-self: start; grid-column: 1; }
.planzeile > span:nth-child(2) { grid-column: 1; }
.planzeile > svg.icon { grid-column: 2; grid-row: 1 / span 2; }
.plan > li.heute::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--jetzt); box-shadow: 0 0 10px var(--jetzt); animation: glimm-balken 2.6s ease-in-out infinite alternate; }
@keyframes glimm-balken { from { opacity: .4; } to { opacity: 1; } }

.filter { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--mulde); box-shadow: inset 0 1px 2px rgba(8, 14, 40, .14), inset 0 -1px 0 var(--kante-leise); font-size: .8125rem; font-weight: 600; }
.filter a { padding: 5px 14px; border-radius: 999px; text-decoration: none; color: var(--leise); transition: color .2s, background .2s; }
.filter a.aktiv { background: var(--linse); color: var(--akzent); box-shadow: var(--rand-glas), var(--linse-schatten); }

.rezept { border-top: 1px solid var(--linie); }
.rezept:first-child { border-top: 0; }
.rezept { scroll-margin-top: 70px; }
.rezept.gezeigt { animation: aufleuchten 1.6s ease-out; }
@keyframes aufleuchten { 0%, 25% { background: var(--jetzt-sanft); } 100% { background: transparent; } }
.rezept > summary { display: flex; align-items: baseline; gap: 12px; padding: 14px 18px; cursor: pointer; list-style: none; }
.rezept > summary::-webkit-details-marker { display: none; }
.rezept-nr { width: 1.6em; text-align: right; font-size: .8125rem; color: var(--leise); font-variant-numeric: tabular-nums; flex: none; }
.rezept-titel { flex: 1; font-weight: 400; }
.rezept-titel small { display: block; font-size: .8125rem; color: var(--leise); font-weight: 350; margin-top: 1px; }
.rezept-titel .rezept-marke { display: inline-block; margin-top: 5px; }
.rezept[open] .rezept-titel { font-weight: 550; }
.rezept-marke { font-size: .8125rem; font-weight: 600; padding: 1px 8px; border-radius: 999px; white-space: nowrap; align-self: center; }
.rezept-marke.gemocht { color: var(--gut); background: var(--gut-sanft); }
.rezept-marke.liebling { color: var(--jetzt-text); background: var(--jetzt-sanft); }
.rezept-marke.nein { color: var(--leise); background: var(--akzent-sanft); }
.rezept > summary > svg.icon { align-self: center; width: 1.125rem; height: 1.125rem; color: var(--leise); transition: transform .3s cubic-bezier(.3, 1.3, .5, 1); }
.rezept[open] > summary > svg.icon { transform: rotate(90deg); }
.rezept-innen { padding: 0 18px 20px calc(18px + 1.6em + 12px); }
.rezept-eck { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rezept-eck span { font-size: .8125rem; padding: 2px 10px; border-radius: 999px; background: var(--mulde); color: var(--leise); }
.zutaten { list-style: none; margin: 0 0 16px; padding: 0; columns: 2 150px; column-gap: 22px; font-size: .9375rem; }
.zutaten li { padding: 4px 0; border-bottom: 1px solid var(--linie); break-inside: avoid; }

/* ------------------------------------------------------------------ Fließtext */
.fliesstext { font-size: .9375rem; max-width: 68ch; overflow-wrap: anywhere; }
.fliesstext > :first-child { margin-top: 0; }
.fliesstext > :last-child { margin-bottom: 0; }
.fliesstext p { margin: 0 0 .8em; }
.rezept-innen .fliesstext > p:first-child { color: var(--leise); font-size: .875rem; }
.fliesstext ul, .fliesstext ol { margin: 0 0 .9em; padding-left: 1.3em; }
.fliesstext li { margin-bottom: .45em; padding-left: .2em; }
.fliesstext ol { list-style: none; counter-reset: schritt; padding-left: 0; }
.fliesstext ol > li { counter-increment: schritt; position: relative; padding-left: 2.1em; }
.fliesstext ol > li::before { content: counter(schritt); position: absolute; left: 0; top: .1em; width: 1.5em; height: 1.5em; display: grid; place-items: center; border-radius: 50%; font-size: .8125rem; font-weight: 700; color: var(--akzent); background: var(--akzent-sanft); }
.fliesstext strong { font-weight: 650; }
.fliesstext h1, .fliesstext h2, .fliesstext h3 { font-size: 1rem; font-weight: 700; margin: 1.5em 0 .5em; }
.fliesstext code { font-size: .875em; padding: 1px 5px; border-radius: 5px; background: var(--akzent-sanft); }
.fliesstext del { color: var(--leise); }
.fliesstext table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.fliesstext th, .fliesstext td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--linie); vertical-align: top; }

/* ------------------------------------------------------------------ Kurven */
.kurvenbox { margin: 0 0 22px; }
.kurvenbox:last-of-type { margin-bottom: 10px; }
.kurve { width: 100%; height: auto; display: block; overflow: visible; }
.kurve text { font-family: inherit; }
.kurventitel { font-size: 15px; font-weight: 700; fill: var(--tinte); }
/* SVG-Einheiten ≈ Bildschirm-px (chart.py: BREITE 330 ≈ Breite der Fläche am Handy) — vorher 9,5 Einheiten bei Maßstab 0,74 = 7 px. */
.achse { font-size: 13px; fill: var(--leise); font-weight: 400; font-variant-numeric: tabular-nums; }
/* Jede Kurve kommt als Ganzes an (transform + opacity). Früher „zeichnete" sich die Linie und die Punkte blendeten einzeln
   ein — SVG-Innenleben, also 1,6 s lang jedes Bild die ganze Seite neu gemalt (gemessen 79 Paints beim Ankommen). */
.kurvenbox { animation: titel .45s cubic-bezier(.2, .8, .3, 1) both; }
.kurvenbox:nth-of-type(2) { animation-delay: .07s; }
.kurvenbox:nth-of-type(3) { animation-delay: .14s; }
.kurve .letzter { transform-box: fill-box; transform-origin: center; animation: ring 2.2s ease-out .7s infinite; }
@keyframes ring { 0% { transform: scale(.8); opacity: 1; } 70%, 100% { transform: scale(1.9); opacity: 0; } }
.kurven-legende { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; font-size: .8125rem; color: var(--leise); }
.kurven-legende span { display: inline-flex; align-items: center; gap: 7px; }
.kurven-legende i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; background: var(--kurve); }
.kurven-legende i.band { height: 10px; border-radius: 3px; background: var(--band-innen); }
.kurven-legende i.median { height: 0; border-top: 2px dashed var(--band-linie); background: none; }

.rahmen { overflow-x: auto; }
table.tabelle { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
table.tabelle th { font-size: .8125rem; font-weight: 600; color: var(--leise); text-align: right; padding: 12px 10px 8px; white-space: nowrap; }
table.tabelle td { padding: 9px 10px; border-top: 1px solid var(--linie); text-align: right; white-space: nowrap; }
table.tabelle th:first-child, table.tabelle td:first-child { text-align: left; padding-left: 18px; }
table.tabelle th:last-child, table.tabelle td:last-child { padding-right: 18px; }
table.tabelle td.leer { color: var(--leise); opacity: .5; }
table.tabelle tbody tr:first-child td { font-weight: 650; }

/* ------------------------------------------------------------------ Einkauf */
/* Schwebt unter den Kopf-Kapseln über der Liste. Liegt im Auslauf des Kopfs, der Text darunter ist dort schon blass. */
.einkauf-kopf { position: sticky; top: calc(max(10px, env(safe-area-inset-top)) + 54px); z-index: 5; margin: 0 0 10px; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--glas-kontur); background: linear-gradient(var(--glas-chrom), var(--glas-chrom)), color-mix(in srgb, var(--grund) 92%, transparent); box-shadow: var(--rand-chrom), var(--chrom-schatten); }
.fortschritt { display: flex; align-items: center; gap: 12px; }
.einkauf-kopf > .fortschritt { flex: 1; min-width: 0; }     /* sonst schrumpft der Balken auf null */
.balken { flex: 1; height: 7px; background: var(--mulde); box-shadow: inset 0 1px 2px rgba(8, 14, 40, .18); border-radius: 999px; overflow: hidden; }
.balken div { position: relative; overflow: hidden; height: 100%; border-radius: 999px; background: var(--gut); transition: width .5s cubic-bezier(.3, 1.2, .4, 1); }
.balken div::after { content: ""; position: absolute; inset: 0; width: 60px; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); will-change: transform; animation: glanz 2.8s linear infinite; }
@keyframes glanz { from { transform: translate3d(-80px, 0, 0); } to { transform: translate3d(400px, 0, 0); } }
#zaehler { font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--leise); white-space: nowrap; }
.live { position: relative; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--punkt-leer); }
.live.an::before { background: var(--gut); }
.live.an::after { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; border: 1.5px solid var(--gut); will-change: transform, opacity; animation: funk 2.4s ease-out infinite; }
@keyframes funk { from { transform: scale(1); opacity: .9; } 80%, to { transform: scale(3); opacity: 0; } }

.gruppentitel { font-size: .875rem; font-weight: 600; color: var(--leise); margin: 24px 0 8px 4px; letter-spacing: 0; }
ul.posten { list-style: none; margin: 0; padding: 0; overflow: hidden; }
ul.posten li { display: flex; align-items: center; border-top: 1px solid var(--linie); }
ul.posten li:first-child { border-top: 0; }
ul.posten label { flex: 1; display: flex; align-items: center; gap: 13px; padding: 13px 16px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
ul.posten input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 25px; height: 25px; border-radius: 50%; border: 1.75px solid var(--band-linie); cursor: pointer;
  box-shadow: inset 0 1px 2px rgba(8, 14, 40, .12);
  background: var(--mulde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.2 4.2 8.8-9.4'/%3E%3C/svg%3E") center / 0 no-repeat;
  transition: background-size .32s cubic-bezier(.2, 1.7, .4, 1), background-color .18s, border-color .18s, transform .15s;
}
ul.posten input[type="checkbox"]:active { transform: scale(.86); }
ul.posten input[type="checkbox"]:checked { background-color: var(--gut); border-color: var(--gut); background-size: 70%; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 -2px 3px rgba(0, 0, 0, .14), 0 4px 10px -4px var(--gut); }
ul.posten label span { background: linear-gradient(currentColor, currentColor) no-repeat 0 56% / 0 1.5px; transition: background-size .35s ease, color .3s; }
ul.posten label.erledigt span { color: var(--leise); background-size: 100% 1.5px; }
.weg { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--leise); font-size: 1.25rem; cursor: pointer; }

.neu { display: flex; gap: 8px; margin-top: 10px; }
.neu input { flex: 1; min-width: 0; padding: 12px 18px; font: inherit; color: var(--tinte); background: linear-gradient(180deg, var(--glas-b), var(--glas-a)); border: 1px solid var(--glas-kontur); border-radius: 999px; box-shadow: inset 0 1px 3px rgba(8, 14, 40, .14), inset 0 -1px 0 var(--kante-leise); }
.neu input::placeholder { color: var(--leise); }
.neu input:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
/* Knöpfe: getöntes Glas in Kapselform — Glanz oben, Schatten in der eigenen Farbe. */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; font: inherit; font-weight: 600; color: var(--auf-akzent); background: linear-gradient(180deg, color-mix(in srgb, var(--akzent) 80%, #fff), var(--akzent) 62%); border: 0; border-radius: 999px; box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, .45), inset 0 -1px 0 rgba(0, 0, 0, .16), 0 10px 22px -12px var(--akzent); cursor: pointer; text-decoration: none; transition: transform .28s var(--feder), filter .2s; }
.knopf:active { transform: scale(.94); }
.knopf:hover { filter: brightness(1.06); }
.knopf.still { color: var(--leise); background: linear-gradient(180deg, var(--glas-a), var(--glas-b)); border: 1px solid var(--glas-kontur); box-shadow: var(--rand-glas), var(--glas-schatten); font-weight: 500; }
.knopf.breit { width: 100%; margin-top: 22px; }

/* ------------------------------------------------------------------ Dock */
.dock {
  position: fixed; z-index: 40;
  left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(430px, calc(100vw - 24px));
  display: grid; grid-template-columns: repeat(5, 1fr); padding: 5px;
  background: var(--glas-farbe), var(--glas-chrom); border: 1px solid var(--glas-kontur); border-radius: 999px;
  box-shadow: var(--rand-chrom), var(--chrom-schatten);
}
.dock a { letter-spacing: -.01em; height: 54px; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 999px; text-decoration: none; color: var(--leise); font-size: .71875rem; font-weight: 500; transition: color .2s, transform .28s var(--feder); -webkit-tap-highlight-color: transparent; }
.dock a:active { transform: scale(.93); }
.dock a > span, .dock a > svg.icon { position: relative; z-index: 1; }
.dock a.aktiv { color: var(--akzent); font-weight: 650; }
/* Die Linse: ein Glastropfen auf dem aktiven Bereich. Beim Antippen eines anderen erscheint dort schon einer. */
.dock a.aktiv::before, .dock a:not(.aktiv):active::before { content: ""; position: absolute; inset: 0; border-radius: 999px; background: radial-gradient(70% 46% at 50% 0, var(--kante-leise), transparent 70%), var(--linse); box-shadow: var(--rand-glas), var(--linse-schatten); }
/* Beim Ankommen gleitet die Linse vom vorher aktiven Bereich herüber: base.html setzt --von (Abstand in Dock-Plätzen).
   Reines transform auf der neuen Seite — kein Seitenübergang mit Bildschirmfotos nötig. */
.dock a.aktiv::before { animation: linse-gleitet .36s var(--feder) both; }
@keyframes linse-gleitet { from { transform: translate3d(calc(var(--von, 0) * 100%), 0, 0); } }
.dock a:not(.aktiv):active::before { opacity: .55; }
.dock a.aktiv::after { content: ""; position: absolute; inset: 0; border-radius: 999px; background: radial-gradient(60% 70% at 50% 100%, color-mix(in srgb, var(--akzent) 38%, transparent), transparent 70%); will-change: opacity; animation: pille 3.4s ease-in-out infinite alternate; }
@keyframes pille { from { opacity: .15; } to { opacity: 1; } }

/* ------------------------------------------------------------------ Anmelden */
.anmeldeseite { padding: 0; min-height: 100svh; display: grid; place-items: center; }
.anmelden { width: calc(100% - 32px); max-width: 380px; padding: 30px 26px 26px; border-radius: 32px; border: 1px solid var(--glas-kontur); background: linear-gradient(135deg, var(--glanz), transparent 42%), linear-gradient(180deg, var(--glas-a), var(--glas-b)); box-shadow: var(--rand-glas), var(--chrom-schatten); }
.anmelden h1 { font-size: 1.875rem; font-weight: 700; letter-spacing: -.03em; margin-top: 18px; }
.anmelden form { margin-top: 26px; display: grid; gap: 14px; }
.anmelden label { display: grid; gap: 6px; font-size: .875rem; color: var(--leise); }
.anmelden input { padding: 13px 18px; font: inherit; color: var(--tinte); background: linear-gradient(180deg, var(--glas-b), var(--glas-a)); border: 1px solid var(--glas-kontur); border-radius: 999px; box-shadow: inset 0 1px 3px rgba(8, 14, 40, .14), inset 0 -1px 0 var(--kante-leise); }
.anmelden input:focus { outline: 2px solid var(--akzent); outline-offset: 1px; }
.meldung { margin: 18px 0 0; padding: 11px 16px; border-radius: 18px; font-size: .875rem; color: var(--fehler); background: color-mix(in srgb, var(--fehler) 10%, transparent); }

/* ------------------------------------------------------------------ Artefakt im Rahmen */
.rahmenseite { padding: 0; height: 100dvh; display: flex; flex-direction: column; }
.rahmenleiste { display: flex; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top)) 14px 8px 10px; border-bottom: 1px solid var(--linie); background: var(--grund); }
.rahmenleiste .knopf-rund { background: var(--linse); box-shadow: var(--rand-glas), var(--linse-schatten); color: var(--akzent); }
.rahmenleiste strong { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rahmenseite iframe { flex: 1; width: 100%; border: 0; background: #fff; }

/* ------------------------------------------------------------------ Antworten auf Berührung */
.tippbar { position: relative; overflow: hidden; }
.dock a tipp-welle { display: none; }
tipp-welle { display: block; position: absolute !important; z-index: 0; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--akzent) 26%, transparent), transparent); transform: scale(0); animation: tippwelle .65s ease-out forwards; }
@keyframes tippwelle { to { transform: scale(1); opacity: 0; } }

.teilchen { position: fixed; z-index: 90; width: 0; height: 0; pointer-events: none; }
.teilchen i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; animation: fliegen 700ms cubic-bezier(.15, .7, .3, 1) forwards; }
@keyframes fliegen { 0% { transform: translate(0, 0) scale(1); opacity: 1; } 70% { opacity: 1; } 100% { transform: translate(var(--dx), calc(var(--dy) + var(--fall))) rotate(var(--dreh)) scale(.3); opacity: 0; } }

.neu-hinweis { position: fixed; z-index: 95; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 58px); transform: translateX(-50%); padding: 9px 18px; border-radius: 999px; font-size: .8125rem; font-weight: 550; white-space: nowrap; color: var(--tinte); background: linear-gradient(var(--glas-chrom), var(--glas-chrom)), color-mix(in srgb, var(--grund) 88%, transparent); border: 1px solid var(--glas-kontur); box-shadow: var(--rand-chrom), var(--chrom-schatten); animation: hinweis .4s cubic-bezier(.3, 1.5, .5, 1) both; }
@keyframes hinweis { from { opacity: 0; transform: translate(-50%, -16px) scale(.9); } }
#zaehler.huepf { animation: huepf .4s cubic-bezier(.3, 1.8, .5, 1); }
@keyframes huepf { 40% { transform: scale(1.28); color: var(--gut); } }
ul.posten li.blitz { animation: blitz .7s ease-out; }
@keyframes blitz { 0% { background: var(--gut-sanft); } 100% { background: transparent; } }

.kurve .treffer { fill: transparent; cursor: pointer; }
.kurve .treffer.an { fill: color-mix(in srgb, var(--jetzt) 30%, transparent); stroke: var(--jetzt); stroke-width: 1.5; }
.kurven-tipp { position: absolute; z-index: 60; display: grid; gap: 1px; padding: 8px 15px; border-radius: 17px; font-size: .8125rem; color: var(--tinte); background: linear-gradient(var(--glas-chrom), var(--glas-chrom)), color-mix(in srgb, var(--grund) 88%, transparent); border: 1px solid var(--glas-kontur); box-shadow: var(--rand-chrom), var(--chrom-schatten); animation: tipp-auf .28s cubic-bezier(.3, 1.5, .5, 1) both; transform-origin: 50% 100%; pointer-events: none; }
.kurven-tipp strong { font-weight: 600; font-size: .9375rem; font-variant-numeric: tabular-nums; }
@keyframes tipp-auf { from { opacity: 0; transform: translateY(6px) scale(.8); } }

/* Das Icon des aktiven Bereichs federt beim Ankommen herein (transform — das frühere Nachzeichnen der Striche malte). */
.dock a.aktiv svg.icon { animation: icon-kommt .42s var(--feder) both; }
@keyframes icon-kommt { from { transform: translate3d(0, 4px, 0) scale(.78); } }
.dock a svg.icon { transition: transform .25s cubic-bezier(.3, 1.8, .5, 1); }
.dock a:active svg.icon { transform: translateY(-2px) scale(1.1); }

/* Beim Scrollen: Abschnitte tauchen auf, die Kopfleiste verdichtet sich. Nur wo der Browser es kann. */
@supports (animation-timeline: view()) {
  .abschnitt, .einkaufsgruppe { animation: auftauchen linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
  @keyframes auftauchen { from { opacity: 0; transform: translate3d(0, 22px, 0); } }
}

/* ------------------------------------------------------------------ Seitenwechsel
   Bewusst KEIN Seitenübergang (@view-transition) mehr: dafür fotografiert der Browser alte und neue Seite in voller
   Größe und blendet sie über, während die neue Seite gleichzeitig aufbaut — auf dem Handy ruckelte das „seit eh und je"
   (Basti 20.09.2026). Der Browser hält die alte Seite ohnehin, bis die neue ihr erstes Bild hat; Kopf und Dock stehen
   an derselben Stelle, also wechselt nur der Inhalt. Das Gleiten der Linse übernimmt .dock a.aktiv::before. */

/* Hell/Dunkel: die neue Fassung öffnet sich kreisförmig vom Schalter aus. */
.themenwechsel::view-transition-old(root) { animation: none; z-index: 0; }
.themenwechsel::view-transition-new(root) { animation: oeffnen .55s cubic-bezier(.4, 0, .2, 1) both; z-index: 1; }
@keyframes oeffnen { from { clip-path: circle(0 at var(--tx, 90%) var(--ty, 30px)); } to { clip-path: circle(150vmax at var(--tx, 90%) var(--ty, 30px)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .lichter, tipp-welle, .teilchen, leucht-rand, raster-welle { display: none; }
}
