/* Smutje · smutje-app.de
   Hell, warm, papierig. Rost handelt, Grün ist da.

   Abstände: alles im Vierer-Raster (4, 8, 12, 16, 20, 24, 32, 40, 48 …).
   Seitenrhythmus: zwischen zwei Abschnitten liegen immer 2 × --abschnitt
   (mobil 96 px, Desktop 144 px). Linker Rand von Kopf, Inhalt und Fuß ist
   überall derselbe (--rand). */

:root {
  --grund: #F2EDE5;
  --karte: #FDF9F2;
  --hinweis: #F6E4DA;
  --ton: #F5DDD2;
  --rost: #C24A26;
  --rost-text: #B03F1D;
  --auf-rost: #FFF8EE;
  --gruen: #2F6B4A;
  --gruen-hell: #E3EEE6;
  --tinte: #1C1F24;
  --gedaempft: #625D57;
  --linie: #E4DDD2;
  --badge: #000;
  --badge-text: #fff;
  --phone: #EFE8DC;
  --rahmen: #1C1F24;

  --serif: ui-serif, "New York", Charter, "Bitstream Charter", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --kurve: cubic-bezier(0.2, 0.85, 0.3, 1);
  --schnell: 0.16s;
  --bewegen: 0.28s;
  --reisen: 0.45s;

  --r-klein: 12px;
  --r-zeile: 16px;
  --r-karte: 24px;

  --breite: 1080px;   /* inklusive Rand */
  --rand: 20px;       /* seitlicher Rand */
  --abschnitt: 48px;  /* halber Abstand zwischen zwei Abschnitten */
  --kopf-luft: 32px;  /* Kopfzeile bis erster Inhalt */

  color-scheme: light;
}

@media (min-width: 880px) {
  :root { --rand: 32px; --abschnitt: 56px; --kopf-luft: 56px; }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --grund: #171412;
  --karte: #221D1A;
  --hinweis: #33221B;
  --ton: #3A251C;
  --rost: #E0724A;
  --rost-text: #EE8C66;
  --auf-rost: #1A110C;
  --gruen: #86C49E;
  --gruen-hell: #1E2E25;
  --tinte: #F3ECE2;
  --gedaempft: #ADA398;
  --linie: #352E29;
  --phone: #201B18;
  --rahmen: #3B342F;
}

@media (prefers-contrast: more) {
  :root { --gedaempft: var(--tinte); --linie: var(--gedaempft); }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--grund);
  color: var(--tinte);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--rost);
  outline-offset: 4px;
  border-radius: 8px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: var(--rand); top: -64px; z-index: 10;
  background: var(--karte); padding: 8px 16px; border-radius: var(--r-klein);
}
.skip:focus { top: 16px; }

/* ---------- Kopf und Fuß ---------- */

.site-header {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 20px var(--rand) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.brand svg { width: 32px; height: 32px; border-radius: 8px; }

/* Umschalter hell/dunkel: nur mit JavaScript sichtbar */
.theme-toggle {
  display: none;
  place-items: center;
  width: 40px; height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--linie);
  background: var(--karte);
  color: var(--tinte);
  cursor: pointer;
  transition: background var(--schnell), border-color var(--schnell);
}
.js .theme-toggle { display: grid; }
.theme-toggle:hover { border-color: var(--gedaempft); }
.theme-toggle svg { width: 20px; height: 20px; grid-area: 1 / 1; }
.theme-toggle .sonne { display: none; }
:root[data-theme="dark"] .theme-toggle .mond { display: none; }
:root[data-theme="dark"] .theme-toggle .sonne { display: block; }

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--linie);
  color: var(--gedaempft);
  font-size: 0.9375rem;
}
.site-footer .inner {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
}
.site-footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---------- Typo ---------- */

h1, h2, .dish, .serif {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin: 0;
}

h1 { font-size: clamp(2.5rem, 7.2vw, 4.25rem); }
h2 { font-size: clamp(1.875rem, 4.4vw, 2.75rem); }

.lead {
  margin: 16px 0 0;
  font-size: clamp(1.125rem, 2.2vw, 1.3125rem);
  color: var(--gedaempft);
  max-width: 30ch;
}

.text p { margin: 16px 0 0; color: var(--gedaempft); max-width: 36ch; font-size: 1.125rem; }
.text p.also { margin-top: 12px; }

/* ---------- Abschnitte ---------- */

main { display: block; }

.section {
  max-width: var(--breite);
  margin: 0 auto;
  padding: var(--abschnitt) var(--rand);
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 880px) {
  .section { grid-template-columns: 1fr 1fr; gap: 64px; }
  .section.flip .text { order: 2; }
  .section .scene { justify-self: end; }
  .section.flip .scene { justify-self: start; }
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

.hero { padding-top: var(--kopf-luft); }

.kicker { display: block; margin: 0 0 12px; font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: 0; line-height: 1.5; color: var(--rost-text); max-width: 30ch; }
.h1-main { display: block; }
.hero .lead { max-width: 34ch; }

.cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }

/* App-Store-Badge (Platzhalter bis zum offiziellen Badge) */
.badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 52px;
  padding: 8px 20px;
  border-radius: 12px;
  background: var(--badge);
  color: var(--badge-text);
  text-decoration: none;
  line-height: 1.05;
  border: 1px solid #A6A6A6;
}
.badge:hover { text-decoration: none; }
.badge .s { font-size: 0.6875rem; letter-spacing: 0.01em; }
.badge .b { font-size: 1.3125rem; font-weight: 600; letter-spacing: -0.01em; }

/* Offizielles Badge, sobald eingebunden */
.badge-img { display: inline-block; border-radius: 12px; }
.badge-img img { height: 52px; width: auto; }

/* Start im App Store */
.launch,
.text p.launch {
  margin: 0;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px;
  border-radius: 16px;
  background: var(--karte);
  border: 1px solid var(--linie);
  color: var(--tinte);
  max-width: none;
  font-size: inherit;
  line-height: 1.3;
}
.launch strong { font-size: 1.0625rem; font-weight: 600; }
.launch span { font-size: 0.875rem; color: var(--gedaempft); }

.price { margin: 0; color: var(--gedaempft); }

/* Kapitel: Weniger wegwerfen. Außen- und Innenabstand gleich groß,
   damit die Kante genau in der Mitte des Abstands liegt. */
.band {
  background: var(--hinweis);
  margin: 16px 0;
}
.band .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(var(--abschnitt) + 16px) var(--rand);
  text-align: center;
}
.band .eyebrow { font-size: 0.9375rem; font-weight: 600; margin: 0 auto 24px; }
.band h2 { font-size: clamp(1.5rem, 3.6vw, 2.125rem); line-height: 1.25; max-width: 24ch; margin: 0 auto; }
.band .stat {
  display: block;
  font-size: clamp(5rem, 17vw, 9rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--rost-text);
  margin-bottom: 24px;
}
.band p { margin: 20px auto 0; max-width: 36ch; font-size: 1.125rem; color: var(--gedaempft); }
.band .src { margin-top: 24px; font-size: 0.8125rem; }
.band .src a { color: inherit; }

/* Ruhe und Abschluss: gleicher Rhythmus wie die Abschnitte */
.ruhe,
.abschluss {
  max-width: 640px;
  margin: 0 auto;
  padding: var(--abschnitt) var(--rand);
  text-align: center;
}
.ruhe p { margin: 16px auto 0; color: var(--gedaempft); font-size: 1.125rem; max-width: 34ch; }
.ruhe .link { display: inline-block; margin-top: 20px; color: var(--rost-text); font-weight: 600; }

.abschluss { display: flex; flex-direction: column; align-items: center; }
.abschluss .mark { width: 88px; height: 88px; color: var(--rost); margin-bottom: 24px; }
.abschluss .cta { justify-content: center; }
.abschluss .launch { align-items: center; }

/* ---------- Bausteine aus der App ---------- */

.scene {
  margin: 0;
  width: 100%;
  max-width: 400px;
  display: grid;
  gap: 12px;
}

.stack { display: grid; gap: 12px; }

/* Szenen sind Bilder, keine Bedienelemente */
.scene [aria-hidden="true"] { pointer-events: none; user-select: none; -webkit-user-select: none; }

.card {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: var(--r-karte);
  padding: 20px;
}

.hint {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--hinweis);
  border-radius: var(--r-zeile);
  padding: 12px 16px;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.hint svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--rost); }
.hint p { margin: 0; }

.eyebrow { margin: 0 0 8px; font-size: 0.875rem; color: var(--rost-text); font-weight: 500; }
.dish { font-size: 1.75rem; line-height: 1.15; }
.meta { margin: 8px 0 0; color: var(--gedaempft); font-size: 0.9375rem; }

.lbl { margin: 0; font-weight: 600; font-size: 1rem; }
.lbl.gruen { color: var(--gruen); }
.lbl.rost { color: var(--rost-text); }
.block { margin-top: 16px; }
.block p:not(.lbl) { margin: 4px 0 0; }

.btns { display: grid; gap: 8px; margin-top: 20px; }
.btn {
  display: flex; align-items: center; justify-content: center;
  min-height: 48px; border-radius: 999px; font-weight: 600; font-size: 1.0625rem;
}
.btn.primary { background: var(--rost); color: var(--auf-rost); }
.btn.tonal { background: var(--ton); color: var(--rost-text); }

.macros { margin: 16px 0 0; font-size: 0.9375rem; color: var(--gedaempft); }
.macros strong { color: var(--tinte); font-weight: 600; }

.chip {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--karte);
  border: 1px solid var(--linie);
  font-size: 0.9375rem;
  line-height: 1.2;
  white-space: nowrap;
}

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 999px; font-size: 0.875rem; font-weight: 500;
}
.pill.gruen { background: var(--gruen-hell); color: var(--gruen); }
.pill.rost { background: var(--hinweis); color: var(--rost-text); }

.rows { list-style: none; margin: 0; padding: 0; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--linie);
}
.rows > li:last-child .row, .rows > li.last .row { border-bottom: 0; }
.row .name { flex: 1; }
.row .amt { color: var(--gedaempft); font-size: 0.9375rem; }
.row small { display: block; color: var(--gedaempft); font-size: 0.8125rem; }

.check {
  width: 24px; height: 24px; flex: none;
  border-radius: 50%;
  border: 2px solid var(--gedaempft);
  display: grid; place-items: center;
  transition: background var(--bewegen) var(--kurve), border-color var(--bewegen) var(--kurve);
}
.check svg { width: 12px; height: 12px; color: var(--karte); opacity: 0; transition: opacity var(--schnell); }
.is-checked .check { background: var(--gruen); border-color: var(--gruen); }
.is-checked .check svg { opacity: 1; }
.is-checked .name { text-decoration: line-through; color: var(--gedaempft); }

.tag-have {
  font-size: 0.75rem; font-weight: 600; color: var(--gruen);
  background: var(--gruen-hell); border-radius: 999px; padding: 4px 8px; line-height: 1;
}

/* Zusammenklappen */
.fold {
  display: grid;
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows var(--reisen) var(--kurve), opacity var(--bewegen) var(--kurve);
}
.fold > div { overflow: hidden; min-height: 0; }
.fold.closed { grid-template-rows: 0fr; opacity: 0; }

/* Stapeln zum Überblenden */
.swap { display: grid; }
.swap > * { grid-area: 1 / 1; transition: opacity var(--reisen) var(--kurve), transform var(--reisen) var(--kurve); }

.fade { transition: opacity var(--reisen) var(--kurve), transform var(--reisen) var(--kurve); }

/* ---------- Szene 1: Heute ---------- */
.s-held .card { box-shadow: 0 24px 60px -32px rgba(60, 30, 10, 0.35); }

.motion [data-scene="held"][data-step="0"] .h1,
.motion [data-scene="held"][data-step="0"] .h2,
.motion [data-scene="held"][data-step="0"] .h3,
.motion [data-scene="held"][data-step="1"] .h2,
.motion [data-scene="held"][data-step="1"] .h3,
.motion [data-scene="held"][data-step="2"] .h3 { opacity: 0; transform: translateY(8px); }

/* ---------- Szene 2: Kombüse ---------- */
.s-kombuese .card { position: relative; }
.s-kombuese .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.s-kombuese .chip { transition: transform 0.9s var(--kurve); }
.s-kombuese .result { border-top: 1px solid var(--linie); margin-top: 20px; padding-top: 16px; }
.s-kombuese .small { margin: 0; font-size: 0.875rem; color: var(--gedaempft); }
.s-kombuese .result .small { margin-bottom: 4px; }

.motion [data-scene="kombuese"][data-step="0"] .chip {
  transform: translate(var(--x), var(--y)) rotate(var(--r));
}
.motion [data-scene="kombuese"][data-step="0"] .result,
.motion [data-scene="kombuese"][data-step="1"] .result { opacity: 0; transform: translateY(8px); }

/* ---------- Szene 3: Bald verbrauchen ---------- */
.s-bald .sec { margin: 0 0 4px; font-weight: 600; color: var(--rost-text); display: flex; align-items: center; gap: 8px; }
.s-bald .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rost); flex: none; }
.s-bald .row { border-bottom: 0; padding-bottom: 0; }
.s-bald .stepper {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--gruen-hell); color: var(--gruen);
  border-radius: 999px; padding: 4px 16px; font-size: 0.9375rem; font-weight: 500;
}
.s-bald .because { margin: 8px 0 0; color: var(--gruen); font-size: 0.9375rem; }

.motion [data-scene="bald"][data-step="0"] .b { opacity: 0; transform: translateY(8px); }
[data-scene="bald"] .a { opacity: 0; transform: translateY(-8px); }
.motion [data-scene="bald"][data-step="0"] .a { opacity: 1; transform: none; }
.motion [data-scene="bald"][data-step="1"] .dot { animation: puls 1.2s var(--kurve) 2; }
@keyframes puls { 50% { transform: scale(1.8); } }

/* ---------- Szene 4: Zettel ---------- */
.s-zettel .title { margin: 0 0 4px; font-weight: 600; }
.s-zettel .title.gruen { color: var(--gruen); }
.s-zettel .note { margin: 8px 0 0; font-size: 0.875rem; color: var(--gruen); }
.s-zettel .caption { margin: 0; text-align: center; font-size: 0.875rem; color: var(--gedaempft); }
.s-zettel .box .row { border-bottom: 0; }

/* Endzustand: Vorhandenes rausgerechnet, Paprika eingeräumt */
[data-scene="zettel"] .have { grid-template-rows: 0fr; opacity: 0; }
[data-scene="zettel"] .list .move { grid-template-rows: 0fr; opacity: 0; }

.motion [data-scene="zettel"][data-step="0"] .have { grid-template-rows: 1fr; opacity: 1; }
.motion [data-scene="zettel"]:is([data-step="0"], [data-step="1"], [data-step="2"]) .list .move { grid-template-rows: 1fr; opacity: 1; }
.motion [data-scene="zettel"]:is([data-step="0"], [data-step="1"]) .list .move .check { background: transparent; border-color: var(--gedaempft); }
.motion [data-scene="zettel"]:is([data-step="0"], [data-step="1"]) .list .move .check svg { opacity: 0; }
.motion [data-scene="zettel"]:is([data-step="0"], [data-step="1"]) .list .move .name { text-decoration: none; color: inherit; }
.motion [data-scene="zettel"]:is([data-step="0"], [data-step="1"], [data-step="2"]) .box .fold { grid-template-rows: 0fr; opacity: 0; }
.motion [data-scene="zettel"][data-step="0"] .note { opacity: 0; }
.motion [data-scene="zettel"]:is([data-step="0"], [data-step="1"], [data-step="2"]) .caption { opacity: 0; }

/* ---------- Szene 5: Preis ---------- */
.s-preis .levels { display: flex; gap: 8px; }
.s-preis .levels .chip { min-width: 52px; justify-content: center; font-weight: 600; }
.s-preis .levels .on { background: var(--rost); border-color: var(--rost); color: var(--auf-rost); }
.s-preis .big { font-family: var(--serif); font-weight: 700; font-size: 2.75rem; line-height: 1.1; margin-top: 12px; }
.s-preis .big small { font-family: var(--sans); font-weight: 400; font-size: 1rem; color: var(--gedaempft); margin-left: 8px; }
.s-preis .old { margin: 8px 0 0; color: var(--gedaempft); text-decoration: line-through; font-size: 0.9375rem; }
.s-preis .because { margin: 4px 0 0; color: var(--gruen); font-size: 0.9375rem; }

[data-scene="preis"] .a { opacity: 0; transform: translateY(-12px); }
.motion [data-scene="preis"][data-step="0"] .a { opacity: 1; transform: none; }
.motion [data-scene="preis"][data-step="0"] .b { opacity: 0; transform: translateY(12px); }
.motion [data-scene="preis"][data-step="0"] :is(.old, .because) { opacity: 0; }

/* ---------- Szene 6: Woche ---------- */
.s-woche .head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.s-woche .day { font-family: var(--serif); font-weight: 700; font-size: 1.625rem; }
.s-woche .date { color: var(--gedaempft); }
.s-woche .status { margin-left: auto; display: grid; }
.s-woche .status > * { grid-area: 1 / 1; justify-self: end; transition: opacity var(--bewegen) var(--kurve); }
.s-woche .carousel { overflow: hidden; border-radius: var(--r-karte); }
.s-woche .track {
  --i: 1;
  display: flex; gap: 12px; align-items: flex-start;
  transform: translateX(calc(var(--i) * (-100% - 12px)));
  transition: transform 0.7s var(--kurve);
}
.s-woche .track .card { flex: 0 0 100%; transition: border-color var(--bewegen) var(--kurve); }
.s-woche .track .card.pick { border-color: var(--gruen); border-width: 2px; padding: 19px; }
.s-woche .dots { display: flex; gap: 8px; justify-content: center; }
.s-woche .dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--linie); transition: background var(--bewegen); }
.s-woche .dots i:nth-child(2) { background: var(--rost); }
.s-woche .shared { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.875rem; color: var(--gedaempft); }
.s-woche .shared .chip { font-size: 0.8125rem; padding: 4px 12px; transition: background var(--bewegen), border-color var(--bewegen); }

[data-scene="woche"] .vorschlag { opacity: 0; }
.motion [data-scene="woche"]:is([data-step="0"], [data-step="1"], [data-step="2"]) .vorschlag { opacity: 1; }
.motion [data-scene="woche"]:is([data-step="0"], [data-step="1"], [data-step="2"]) .fest { opacity: 0; }
.motion [data-scene="woche"][data-step="0"] .track { --i: 0; }
.motion [data-scene="woche"][data-step="2"] .track { --i: 2; }
.motion [data-scene="woche"]:is([data-step="0"], [data-step="1"], [data-step="2"]) .card.pick { border-color: var(--linie); }
.motion [data-scene="woche"][data-step="0"] .dots i:nth-child(2),
.motion [data-scene="woche"][data-step="2"] .dots i:nth-child(2) { background: var(--linie); }
.motion [data-scene="woche"][data-step="0"] .dots i:nth-child(1),
.motion [data-scene="woche"][data-step="2"] .dots i:nth-child(3) { background: var(--rost); }
.motion [data-scene="woche"]:is([data-step="1"], [data-step="2"]) .shared .chip { background: var(--gruen-hell); border-color: var(--gruen-hell); color: var(--gruen); }

/* ---------- Szene 7: Portionen (interaktiv) ---------- */
.s-portionen .controls { display: grid; gap: 12px; margin-top: 16px; }
.s-portionen .count {
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 700;
}
.stepbtns { display: inline-flex; background: var(--grund); border-radius: 999px; padding: 4px; }
.stepbtns button {
  width: 44px; height: 36px; border: 0; background: transparent; color: var(--tinte);
  font-size: 1.375rem; line-height: 1; border-radius: 999px; cursor: pointer;
}
.stepbtns button:hover { background: var(--karte); }
.stepbtns button:disabled { color: var(--linie); cursor: default; background: transparent; }
.segment { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--grund); border-radius: 999px; padding: 4px; }
.segment button {
  min-height: 36px; border: 0; background: transparent; border-radius: 999px;
  color: var(--tinte); font: inherit; font-size: 0.9375rem; cursor: pointer;
  transition: background var(--schnell), box-shadow var(--schnell);
}
.segment button[aria-pressed="true"] { background: var(--karte); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.s-portionen .ingredients { margin-top: 8px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--linie); }
.switch-row label { font-size: 0.9375rem; color: var(--gedaempft); }
.switch {
  position: relative; width: 52px; height: 32px; border-radius: 999px; border: 0; padding: 0;
  background: var(--linie); cursor: pointer; flex: none;
  transition: background var(--bewegen) var(--kurve);
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform var(--bewegen) var(--kurve);
}
.switch[aria-checked="true"] { background: var(--gruen); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.s-portionen .macros[hidden] { display: none; }

/* ---------- Szene 8: Am Herd ---------- */
.s-herd { justify-items: center; }
.phone {
  width: 100%; max-width: 320px;
  border-radius: 48px 48px 0 0;
  border: 12px solid var(--rahmen);
  border-bottom: 0;
  background: var(--phone);
  padding: 48px 16px 0;
  height: 400px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { aspect-ratio: 1; border-radius: 12px; background: var(--linie); }
.widget {
  grid-column: 1 / -1;
  background: var(--karte);
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0 12px 32px -20px rgba(60, 30, 10, 0.4);
  min-height: 136px;
  border: 1px solid var(--linie);
}
.widget .top { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--gedaempft); }
.widget .top svg { width: 20px; height: 20px; border-radius: 4px; }
.widget .dish { font-size: 1.25rem; margin-top: 8px; }
.widget .step { margin: 4px 0 0; font-size: 0.8125rem; font-weight: 600; color: var(--rost-text); }
.widget .swap p { margin: 4px 0 0; font-size: 0.9375rem; line-height: 1.35; }
.widget .swap p.step { margin-top: 4px; }

[data-scene="herd"] .a { opacity: 0; transform: translateY(-8px); }
.motion [data-scene="herd"][data-step="0"] .a { opacity: 1; transform: none; }
.motion [data-scene="herd"][data-step="0"] .b { opacity: 0; transform: translateY(8px); }

/* ---------- Textseiten ---------- */

.doc {
  max-width: 560px; /* 520 Textspalte + Rand */
  margin: 0 auto;
  padding: var(--kopf-luft) var(--rand) var(--abschnitt);
}
.doc h1 { font-size: clamp(2.25rem, 6vw, 3rem); }
.doc .stand { margin: 12px 0 0; color: var(--gedaempft); }
.doc h2 { font-size: 1.625rem; margin: 48px 0 0; }
.doc h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 700; margin: 24px 0 0; letter-spacing: 0; }
.doc p, .doc address { margin: 8px 0 0; font-style: normal; }
.doc address.first { margin-top: 24px; }
.doc .kurz {
  margin-top: 32px; background: var(--hinweis); border-radius: var(--r-zeile); padding: 16px 20px;
}
.doc .kurz h2 { font-size: 1.25rem; margin: 0; }
.doc .kurz p { margin-top: 8px; }
.doc a { color: var(--rost-text); overflow-wrap: anywhere; }

.faq { margin-top: 32px; display: grid; gap: 12px; }
.faq details {
  background: var(--karte); border: 1px solid var(--linie); border-radius: var(--r-zeile);
  padding: 0 20px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--rost-text); font-weight: 400; font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--gedaempft); }

.contact {
  margin-top: 32px; background: var(--karte); border: 1px solid var(--linie);
  border-radius: var(--r-karte); padding: 20px;
}
.contact p { margin: 0 0 4px; }
.contact a { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; text-decoration: none; }

.lost { text-align: center; }
.lost .mark { width: 96px; height: 96px; margin: 0 auto 24px; color: var(--rost); }
.lost p { color: var(--gedaempft); }
.lost h1 + p { margin-top: 16px; }

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.site-footer .herz { color: var(--rost); }
