/* Rezeptfänger – Website zur App.
   Farben wie in der App: Tomate, Kraut und Honig auf Papier, dunkel Espresso. Young Serif für Überschriften
   (passt zur Serifenschrift der App), Figtree für Text.
   Oben eine dunkle Bühne: Ein Beitrag mit Rezept in der Beschreibung wird auf dem iPhone zum sauberen Rezept.
   Bewegung nur an zwei Stellen: die Szene oben (einmal, unter 5 Sekunden, Herzen mit Pause-Knopf) und der
   Teilen-Ablauf weiter unten (skripte/teilen.js). Ohne JavaScript und mit „Bewegung reduzieren“ steht das Endbild. */

@font-face { font-family: "Young Serif"; src: url("schriften/young-serif-latin-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("schriften/figtree-variable.woff2") format("woff2-variations"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;

  /* Farben der App (Gemeinsam/Farben.xcassets) */
  --tomate-hell: #B5381E;
  --tomate-dunkel: #FF8466;
  --kraut-hell: #2F6B3F;
  --kraut-dunkel: #8CCB98;
  --honig-hell: #E9A23B;
  --honig-dunkel: #F0B65A;
  --nacht-900: #14110E;
  --nacht-800: #1F1B17;
  --nacht-700: #2A241F;
  --nacht-600: #3A332C;
  --nacht-text: #F4EEE6;
  --nacht-weich: #C9BDAF;

  /* Bedeutungen, hell */
  --grund: #FAF6EF;
  --flaeche: #F3ECE1;
  --karte: #FFFFFF;
  --linie: #E6DCCF;
  --text: #211A14;
  --text-leise: #6A5F55;
  --akzent: var(--tomate-hell);
  --akzent-text: #9E2F18;
  --akzent-flaeche: #FBE5DD;
  --kraut: var(--kraut-hell);
  --kraut-flaeche: #E4EFE5;
  --link: #9E2F18;
  --kachel: #FBE5DD;
  --kachel-symbol: var(--tomate-hell);
  --ueberzeile-grund: #E4EFE5;
  --ueberzeile-text: #24532F;
  --fokus: var(--tomate-hell);
  --fliesen-linie: rgb(33 26 20 / 0.05);
  --markierung: rgb(233 162 59 / 0.55);
  --schatten-karte: 0 1px 2px rgb(33 26 20 / 0.06), 0 8px 24px -12px rgb(33 26 20 / 0.18);
  --schatten: 0 2px 4px rgb(33 26 20 / 0.06), 0 22px 44px -18px rgb(33 26 20 / 0.35);

  --schrift-titel: "Young Serif", ui-serif, Georgia, "Times New Roman", serif;
  --schrift-text: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --schrift-app: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Feines Rauschen für die dunklen Flächen */
  --rauschen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 -.32'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");

  @media (prefers-color-scheme: dark) {
    --grund: var(--nacht-900);
    --flaeche: #1A1612;
    --karte: var(--nacht-800);
    --linie: var(--nacht-600);
    --text: var(--nacht-text);
    --text-leise: #B3A89B;
    --akzent: var(--tomate-dunkel);
    --akzent-text: var(--tomate-dunkel);
    --akzent-flaeche: #3A1F18;
    --kraut: var(--kraut-dunkel);
    --kraut-flaeche: #1D2A20;
    --link: var(--tomate-dunkel);
    --kachel: #3A1F18;
    --kachel-symbol: var(--tomate-dunkel);
    --ueberzeile-grund: #1D2A20;
    --ueberzeile-text: var(--kraut-dunkel);
    --fokus: var(--honig-dunkel);
    --fliesen-linie: rgb(244 238 230 / 0.045);
    --markierung: rgb(240 182 90 / 0.4);
    --schatten-karte: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.6);
    --schatten: 0 2px 4px rgb(0 0 0 / 0.3), 0 22px 44px -18px rgb(0 0 0 / 0.8);
  }

  accent-color: var(--akzent);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift-text);
  font-size: 1.1875rem;
  line-height: 1.65;
  overflow-wrap: break-word;
  font-feature-settings: "kern", "liga";
}
@media (min-width: 48rem) { body { font-size: 1.25rem; } }

img { display: block; max-width: 100%; height: auto; }
svg { overflow: visible; }
picture { display: contents; }

a { color: var(--link); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 4px; }

:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 6px; }

.unsichtbar { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.symbole { position: absolute; width: 0; height: 0; overflow: hidden; }

.symbol {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.rahmen { width: min(100% - 2rem, 72rem); margin-inline: auto; }
@media (min-width: 40rem) { .rahmen { width: min(100% - 4rem, 72rem); } }
.schmal { max-width: 46rem; }

.sprung {
  position: absolute; left: 1rem; top: -5rem; z-index: 30;
  background: var(--honig-dunkel); color: var(--nacht-900);
  padding: 0.7rem 1.1rem; border-radius: 0.8rem; font-weight: 700;
}
.sprung:focus { top: 1rem; }

h1, h2, h3 { margin: 0 0 0.5em; text-wrap: balance; }
h1, h2 { font-family: var(--schrift-titel); font-weight: 400; letter-spacing: -0.01em; hyphens: auto; }
h1 { font-size: clamp(2.35rem, 4.4vw, 3.75rem); line-height: 1.06; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.14; }
h3 { font-size: 1.15em; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

.name { hyphens: none; white-space: nowrap; }
.von-hand { hyphens: manual; } /* nur an &shy; trennen, sonst „Datenschut-zerklärung“ */
.gross { font-size: 1.12em; color: var(--text-leise); }
.klein { font-size: 0.9em; color: var(--text-leise); }
.mitte { text-align: center; margin-inline: auto; }

.ueberzeile {
  display: inline-flex; align-items: center; gap: 0.5rem;
  margin: 0 0 1.1rem; padding: 0.3rem 0.95rem 0.3rem 0.75rem;
  border-radius: 99px; background: var(--ueberzeile-grund); color: var(--ueberzeile-text);
  font-size: 1rem; font-weight: 700; line-height: 1.35;
}
.ueberzeile.auf-dunkel { background: #1D2A20; color: var(--kraut-dunkel); }

/* ---------- Knöpfe (mindestens 52 px hoch) ---------- */

.knoepfe { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 1.8rem; }
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0.75rem 1.5rem;
  border-radius: 1rem; border: 2px solid transparent;
  font: inherit; font-size: 1.05rem; font-weight: 700; line-height: 1.3; text-align: center;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.knopf .symbol { width: 1.3em; height: 1.3em; }
.knopf-tomate { background: var(--tomate-hell); color: #FFFFFF; box-shadow: 0 10px 26px -12px rgb(181 56 30 / 0.8); }
.knopf-tomate:hover { background: #C8432A; }
.knopf-hell { background: var(--karte); color: var(--akzent-text); border-color: var(--akzent); }
.knopf-rand { background: transparent; color: var(--akzent-text); border-color: var(--akzent); }
.knopf-rand:hover, .knopf-hell:hover { background: var(--akzent-flaeche); }

/* ---------- Kopf ---------- */

:root { --kopf-hoehe: 4.75rem; }
.kopf .rahmen { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; min-height: var(--kopf-hoehe); }
.marke {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--nacht-text); text-decoration: none;
  font-family: var(--schrift-titel); font-weight: 400; font-size: 1.45rem; line-height: 1.1;
}
.marke img { width: 2.75rem; height: 2.75rem; flex: none; border-radius: 0.7rem; box-shadow: 0 6px 16px -8px rgb(0 0 0 / 0.8); }
.navigation ul { display: flex; gap: 0.3rem 1.6rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.navigation a { color: #E6DACA; font-weight: 600; text-decoration: none; }
.navigation a:hover { color: #FFFFFF; text-decoration: underline; text-decoration-color: var(--tomate-dunkel); }

.menue-knopf { display: none; }

@media (width >= 60rem) {
  .navigation[popover] {
    display: block; position: static; inset: auto; width: auto; height: auto;
    margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible;
  }
}

/* Schmal ohne Popover: alle Punkte unter der Marke */
@media (width < 60rem) {
  .kopf .rahmen { flex-direction: column; align-items: flex-start; gap: 0.4rem; padding-block: 0.8rem 0.4rem; }
  .navigation ul { gap: 0.2rem 1.1rem; }
}

/* Schmal mit Popover: Knopf „Menü“, die Liste klappt als Tafel auf */
@supports selector(:popover-open) {
  @media (width < 60rem) {
    .kopf .rahmen { flex-direction: row; align-items: center; padding-block: 0.5rem; }
    .menue-knopf {
      display: inline-flex; flex: none; align-items: center; gap: 0.5rem;
      min-height: 3rem; padding: 0 1.1rem 0 0.9rem;
      border: 1px solid rgb(244 238 230 / 0.3); border-radius: 99px;
      background: rgb(20 17 14 / 0.6); color: var(--nacht-text);
      font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer;
    }
    .menue-knopf svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
    .menue-knopf .symbol-auf { display: none; }
    .kopf:has(.navigation:popover-open) .menue-knopf .symbol-zu { display: none; }
    .kopf:has(.navigation:popover-open) .menue-knopf .symbol-auf { display: block; }
    .kopf:has(.navigation:popover-open) .menue-knopf { background: var(--nacht-700); }

    .navigation[popover] {
      position: fixed; inset: calc(var(--kopf-hoehe) + 0.2rem) 0.75rem auto; width: auto; height: auto; margin: 0;
      padding: 0.4rem; border: 1px solid rgb(244 238 230 / 0.14); border-radius: 1.2rem;
      background: rgb(31 27 23 / 0.98); color: var(--nacht-text);
      box-shadow: 0 1.4rem 3rem rgb(0 0 0 / 0.55);
    }
    .navigation ul { flex-direction: column; flex-wrap: nowrap; gap: 0; }
    .navigation li + li { border-top: 1px solid rgb(244 238 230 / 0.08); }
    .kopf .navigation[popover] a { display: block; padding: 0.9rem 1rem; border-radius: 0.8rem; font-size: 1.15rem; color: var(--nacht-text); }
    .kopf .navigation[popover] a:hover { background: rgb(255 255 255 / 0.06); }
  }
  @media (width < 60rem) and (prefers-reduced-motion: no-preference) {
    .navigation[popover] {
      opacity: 0; translate: 0 -0.5rem;
      transition-property: opacity, translate, display, overlay;
      transition-duration: 0.22s; transition-timing-function: ease-out;
      transition-behavior: allow-discrete;
    }
    .navigation[popover]:popover-open { opacity: 1; translate: 0 0; }
    @starting-style { .navigation[popover]:popover-open { opacity: 0; translate: 0 -0.5rem; } }
  }
}

/* ---------- Bühne: immer dunkel, warmes Tomatenlicht hinter dem iPhone ---------- */

.buehne {
  --fokus: var(--honig-dunkel);
  position: relative; isolation: isolate; overflow: clip;
  background: var(--nacht-900); color: var(--nacht-text);
}
.buehne-licht { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.buehne-licht {
  background:
    radial-gradient(42rem 34rem at 78% 44%, rgb(255 132 102 / 0.3), rgb(181 56 30 / 0.12) 46%, transparent 72%),
    radial-gradient(48rem 30rem at 4% -8%, rgb(47 107 63 / 0.38), transparent 66%),
    radial-gradient(36rem 20rem at 46% 110%, rgb(233 162 59 / 0.22), transparent 70%),
    linear-gradient(180deg, #1E1813 0%, var(--nacht-900) 72%);
}
/* Karopapier wie ein Rezeptblock, zur Mitte hin ausgeblendet */
.buehne-licht::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(244 238 230 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(244 238 230 / 0.05) 1px, transparent 1px);
  background-size: 1.6rem 1.6rem;
  mask-image: radial-gradient(60% 75% at 70% 42%, #000 0%, transparent 78%);
}
.buehne-licht::after { content: ""; position: absolute; inset: 0; background-image: var(--rauschen); opacity: 0.16; mix-blend-mode: soft-light; }
@media (width < 64rem) {
  .buehne-licht { background:
    radial-gradient(32rem 28rem at 60% 76%, rgb(255 132 102 / 0.3), rgb(181 56 30 / 0.12) 46%, transparent 72%),
    radial-gradient(38rem 24rem at 0% -4%, rgb(47 107 63 / 0.38), transparent 66%),
    linear-gradient(180deg, #1E1813 0%, var(--nacht-900) 72%); }
  .buehne-licht::before { mask-image: radial-gradient(80% 45% at 55% 74%, #000 0%, transparent 78%); }
}

.buehne-raster { display: grid; gap: 2.75rem; padding-block: 1.5rem 6rem; }
@media (min-width: 64rem) {
  .buehne-raster {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 3rem; align-items: center;
    min-height: min(54rem, calc(100svh - var(--kopf-hoehe))); padding-block: 1rem 6rem;
  }
}
.buehne-text { max-width: 36rem; }
.buehne h1 { color: var(--nacht-text); }
.unterstrichen { position: relative; display: inline-block; color: #FFB29E; }
.unterstrichen svg {
  position: absolute; left: 0; bottom: -0.16em; width: 100%; height: 0.3em;
  fill: none; stroke: var(--tomate-dunkel); stroke-width: 4; stroke-linecap: round; vector-effect: non-scaling-stroke;
}
.einleitung { font-size: 1.15em; color: #E3D7C6; max-width: 33rem; }
.einleitung strong { color: var(--nacht-text); }
.buehne .knopf-hell { background: transparent; color: var(--nacht-text); border-color: rgb(244 238 230 / 0.55); }
.buehne .knopf-hell:hover { background: rgb(244 238 230 / 0.08); border-color: var(--nacht-text); }

.bald {
  display: inline-flex; align-items: center; gap: 0.75rem;
  margin: 1.8rem 0 0; padding: 0.6rem 1.2rem 0.6rem 0.85rem;
  border-radius: 1rem; border: 1px solid rgb(244 238 230 / 0.22); background: rgb(255 255 255 / 0.04);
}
.bald .symbol { width: 1.8rem; height: 1.8rem; color: var(--tomate-dunkel); }
.bald span { display: grid; line-height: 1.25; }
.bald small { font-size: 0.85rem; color: var(--nacht-weich); }
.bald strong { font-size: 1.05rem; }

/* Szene: alle Maße in cqi, damit sie auf jedem Bildschirm gleich aussieht */
.szene {
  position: relative; margin: 0;
  width: min(100%, 38rem); justify-self: center;
  aspect-ratio: 100 / 104;
  container-type: inline-size;
}

/* Beitrag mit Rezept in der Beschreibung */
.beitrag {
  position: absolute; left: 0; top: 5cqi; width: 54cqi; z-index: 1;
  margin: 0; padding: 2.6cqi 2.6cqi 3cqi;
  border-radius: 3.6cqi; background: #FFFFFF; color: #211A14;
  font-family: var(--schrift-app); font-size: 2.85cqi; line-height: 1.42;
  rotate: -3.5deg;
  box-shadow: 0 0.6cqi 1.2cqi rgb(0 0 0 / 0.25), 0 6cqi 12cqi -3cqi rgb(0 0 0 / 0.55);
}
.beitrag p { margin: 0; }
.beitrag-kopf { display: flex; align-items: center; gap: 1.8cqi; margin-bottom: 2cqi !important; line-height: 1.2; }
.beitrag-kopf span:last-child { display: grid; }
.beitrag-kopf small { font-size: 2.3cqi; color: #6A5F55; }
.beitrag-bild {
  display: grid; place-items: center; width: 6.4cqi; height: 6.4cqi; border-radius: 50%;
  background: var(--honig-hell); color: #3A2306; font-weight: 800; font-size: 3cqi;
  box-shadow: 0 0 0 0.45cqi #FFFFFF, 0 0 0 0.8cqi var(--tomate-hell);
}
.beitrag-foto { position: relative; margin: 0 -2.6cqi; }
.beitrag-foto img { width: 100%; aspect-ratio: 900 / 603; object-fit: cover; }
.ki-schild {
  position: absolute; left: 1.6cqi; bottom: 1.6cqi;
  display: inline-flex; align-items: center; gap: 0.6cqi;
  padding: 0.5cqi 1.4cqi 0.5cqi 1cqi; border-radius: 99px;
  background: rgb(20 17 14 / 0.72); color: #FFFFFF; font-size: 2.1cqi; font-weight: 700; font-family: var(--schrift-text);
}
.ki-schild .symbol { width: 2.4cqi; height: 2.4cqi; }
.beitrag-leiste { display: flex; align-items: center; gap: 2.6cqi; padding-block: 1.8cqi 1.2cqi; }
.beitrag-leiste .symbol { width: 4.4cqi; height: 4.4cqi; stroke-width: 1.7; }
.beitrag-leiste .merken { margin-left: auto; }
.herz-knopf { position: relative; display: inline-flex; color: var(--tomate-hell); }
.herz-knopf > .symbol { fill: var(--tomate-hell); }
.herzen { position: absolute; left: 0; bottom: 60%; width: 4.4cqi; height: 22cqi; pointer-events: none; }
.herzen i {
  position: absolute; left: 0.6cqi; bottom: 0; width: 3.2cqi; height: 3.2cqi; opacity: 0;
  background: var(--tomate-dunkel);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-4.9-8-10.8A4.6 4.6 0 0 1 12 7.7a4.6 4.6 0 0 1 8 2.5C20 16.1 12 21 12 21Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.beitrag-text b { font-weight: 700; }
.beitrag-text .mehr { color: #8A7F75; }
.fang {
  background-image: linear-gradient(rgb(233 162 59 / 0.55), rgb(233 162 59 / 0.55));
  background-repeat: no-repeat; background-size: 100% 70%; background-position: 0 70%;
  border-radius: 0.4cqi; padding-inline: 0.3cqi; margin-inline: -0.3cqi;
}
.weg { opacity: 0.42; text-decoration: line-through; text-decoration-color: var(--tomate-hell); text-decoration-thickness: 0.35cqi; }

/* Zutaten fliegen zum Bildschirm und verschwinden davor (nur während der Bewegung zu sehen) */
.flug {
  position: absolute; z-index: 3; opacity: 0;
  padding: 0.7cqi 1.8cqi; border-radius: 99px;
  background: #FFF4E2; color: #3A2306; font: 700 2.7cqi/1.3 var(--schrift-app); white-space: nowrap;
  box-shadow: 0 0 0 0.3cqi var(--honig-hell), 0 2cqi 4cqi -1cqi rgb(0 0 0 / 0.6);
  pointer-events: none;
}
.flug-1 { left: 4cqi; top: 76cqi; }
.flug-2 { left: 4cqi; top: 80.3cqi; }
.flug-3 { left: 4cqi; top: 89cqi; }

/* Ergebnis unter dem Bildschirm */
.erkannt {
  position: absolute; left: 40cqi; bottom: -2cqi; z-index: 4;
  display: flex; align-items: center; gap: 1.6cqi; margin: 0;
  padding: 1.6cqi 2.6cqi 1.6cqi 1.8cqi; border-radius: 2.4cqi;
  background: #1D2A20; color: #E4EFE5; font-size: 2.9cqi; line-height: 1.3;
  border: 0.25cqi solid rgb(140 203 152 / 0.45);
  box-shadow: 0 3cqi 6cqi -2cqi rgb(0 0 0 / 0.7);
}
.erkannt .symbol { width: 5cqi; height: 5cqi; padding: 0.9cqi; border-radius: 50%; background: var(--kraut-dunkel); color: #12301A; stroke-width: 2.6; }
.erkannt span { display: grid; }
.erkannt b { font-size: 3.2cqi; color: #FFFFFF; }

/* ---------- Bildschirme: echte Bildschirmfotos ohne Gerät (bis zum Store-Start) ----------
   Apple verbietet nachgebaute Geräte, und Apples Gerätebilder (Product Bezels) dürfen erst gezeigt
   werden, wenn die App im App Store ist. Bis dahin steht jeder Bildschirm allein: Foto mit den runden
   Ecken des echten Bildschirms und einer feinen Kontur, damit sich helle Bildschirme vom Grund abheben.
   Keine Insel, keine Tasten, kein Rahmen, keine Spiegelung, keine Neigung, kein Schatten. Nichts liegt
   darauf (nur der kurze Tipp-Kreis im Teilen-Ablauf, er zeigt, wohin man auf dem Bildschirm tippt). */

.bildschirm {
  --kontur-bildschirm: rgb(22 32 28 / 0.18);
  position: relative; overflow: hidden;
  background: #000000;
  container-type: inline-size;
  box-shadow: 0 0 0 1px var(--kontur-bildschirm);
}
@media (prefers-color-scheme: dark) { .bildschirm { --kontur-bildschirm: rgb(228 234 238 / 0.2); } }
/* Bühne und Kochen-Band sind immer dunkel: dort immer die helle Kontur */
.buehne .bildschirm, .kochen .bildschirm { --kontur-bildschirm: rgb(228 234 238 / 0.2); }
/* Eckenradius des echten Bildschirms, gleich 130 px wie bei 1206 × 2622:
   iPhone Pro Max 1320 × 2868, iPad Pro 13 Zoll 2064 × 2752 (32 px) */
.bildschirm-iphone { aspect-ratio: 1320 / 2868; border-radius: 9.85% / 4.53%; }
.bildschirm-ipad { aspect-ratio: 2064 / 2752; border-radius: 1.55% / 1.16%; }
.bildschirm > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Auf der Bühne rechts neben dem Beitrag, mindestens 200 px breit */
.szene .bildschirm { position: absolute; right: 1cqi; top: 2cqi; width: 40cqi; z-index: 2; }
/* Schmal (Szene unter 500 px) wäre er so zu klein: Bildschirm 59 % breit, der Beitrag schmal links
   daneben, das Ergebnis unter dem Bildschirm. Die fliegenden Zutaten entfallen, sie hätten keinen Platz. */
@media (width < 34rem) {
  .szene { aspect-ratio: 100 / 146; }
  .szene .bildschirm { right: 0; top: 0; width: 59cqi; }
  .beitrag { width: 38.5cqi; top: 3cqi; padding: 2.2cqi 2.2cqi 2.6cqi; rotate: -1.5deg; }
  .beitrag-foto { margin-inline: -2.2cqi; }
  .flug { visibility: hidden; } /* nicht display: none, sonst bricht die Animation ab und „Nochmal ansehen“ kommt zu früh */
  .erkannt { left: auto; right: 0; top: 132cqi; bottom: auto; font-size: 3.4cqi; }
  .erkannt b { font-size: 3.8cqi; }
}

/* Steuerung der Bühne */
.szene-steuerung { position: absolute; left: 0; right: 0; bottom: -4.5rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.pause, .nochmal-oben {
  display: inline-flex; align-items: center; gap: 0.45rem;
  min-height: 2.75rem; padding: 0.4rem 0.95rem 0.4rem 0.75rem;
  border-radius: 99px; border: 1px solid rgb(244 238 230 / 0.3);
  background: rgb(20 17 14 / 0.7); color: #E9DFCD;
  font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
.pause:hover, .nochmal-oben:hover { color: #FFFFFF; border-color: rgb(244 238 230 / 0.6); }
.pause svg, .nochmal-oben svg { width: 1.05rem; height: 1.05rem; }
@media (width < 30rem) { .pause, .nochmal-oben { font-size: 0.88rem; padding-inline: 0.65rem 0.8rem; } }
.pause .zeichen-weiter { display: none; }
.angehalten .pause .zeichen-weiter { display: block; }
.angehalten .pause .zeichen-halt { display: none; }

/* ---------- Bewegung der Bühne: einmal, gut 4 Sekunden. Grundzustand ist das Endbild. ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .szene .beitrag { animation: hinlegen 0.8s cubic-bezier(0.2, 0.8, 0.25, 1.1) 0.1s backwards; }
  .js .szene .fang { animation: markieren 0.45s ease-out backwards; animation-delay: calc(0.85s + var(--n, 0) * 0.16s); }
  .js .szene .weg { animation: streichen 0.5s ease-out 1.5s backwards; }
  .js .szene .bildschirm { animation: hereinfahren 0.85s cubic-bezier(0.2, 0.7, 0.2, 1) 1.3s backwards; }
  .js .szene .flug { animation: fliegen 0.95s cubic-bezier(0.5, 0, 0.3, 1) 2.15s both; }
  .js .szene .flug-2 { animation-delay: 2.3s; }
  .js .szene .flug-3 { animation-delay: 2.45s; }
  .js .szene .bild-rezept img { animation: weiterscrollen 0.7s cubic-bezier(0.3, 0.7, 0.2, 1) 3.35s backwards; }
  .js .szene .erkannt { animation: aufploppen 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.4) 3.85s backwards; }
  .js .herzen i { animation: herzen 4.5s ease-out 4.5s infinite; }
  .js .herzen i:nth-child(2) { animation-delay: 6s; }
  .js .herzen i:nth-child(3) { animation-delay: 7.5s; }
  .buehne.angehalten .herzen i { animation-play-state: paused; }
}
/* Ohne Bewegung (oder ohne JavaScript) sind die fliegenden Zutaten nicht da */
@media (prefers-reduced-motion: reduce) { .flug, .herzen { display: none; } }

@keyframes hinlegen { from { opacity: 0; translate: -6cqi 5cqi; rotate: -12deg; } }
@keyframes markieren { from { background-size: 0% 70%; } }
@keyframes streichen { from { opacity: 1; text-decoration-color: transparent; } }
@keyframes hereinfahren { from { opacity: 0; translate: 10cqi 6cqi; } }
@keyframes fliegen {
  0% { opacity: 0; translate: 0 0; scale: 0.9; }
  15% { opacity: 1; scale: 1.05; }
  80% { opacity: 1; scale: 0.8; }
  100% { opacity: 0; translate: 34cqi -32cqi; scale: 0.5; }
}
@keyframes weiterscrollen { from { opacity: 0; translate: 0 14%; } }
@keyframes aufploppen { from { opacity: 0; scale: 0.6; } }
@keyframes herzen {
  0% { opacity: 0; translate: 0 0; scale: 0.6; }
  15% { opacity: 0.95; }
  100% { opacity: 0; translate: 3cqi -18cqi; scale: 1.25; }
}

/* ---------- Versprechen unter der Bühne ---------- */

.versprechen { position: relative; background: var(--flaeche); padding-block: 3rem; border-bottom: 1px solid var(--linie); }
.versprechen::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 0.5rem;
  background: repeating-linear-gradient(90deg, var(--tomate-hell) 0 1.5rem, transparent 1.5rem 2.25rem);
  opacity: 0.85;
}
.versprechen ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.6rem 2.5rem; }
@media (min-width: 52rem) { .versprechen ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.versprechen li { display: flex; gap: 1rem; align-items: flex-start; }
.versprechen h3 { margin-bottom: 0.25rem; }
.versprechen p { margin: 0; color: var(--text-leise); font-size: 0.95em; }

.kachel-symbol {
  flex: none; display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem; border-radius: 1rem;
  background: var(--kachel); color: var(--kachel-symbol);
}
.kachel-symbol .symbol { width: 1.65rem; height: 1.65rem; }
.klein-kachel { width: 2.9rem; height: 2.9rem; border-radius: 0.85rem; }
.klein-kachel .symbol { width: 1.45rem; height: 1.45rem; }

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

.abschnitt { padding-block: clamp(4rem, 9vw, 7.5rem); }
.abschnitt-kopf { max-width: 46rem; margin-bottom: 2.5rem; }
.abschnitt-kopf.mitte { text-align: center; }

.fliesen {
  background-color: var(--flaeche);
  background-image:
    linear-gradient(var(--fliesen-linie) 1px, transparent 1px),
    linear-gradient(90deg, var(--fliesen-linie) 1px, transparent 1px);
  background-size: 1.6rem 1.6rem;
  background-position: -1px -1px;
}

.raster-zwei { display: grid; gap: 3.5rem; }
@media (min-width: 64rem) { .raster-zwei { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 5rem; align-items: center; } }
/* Schmal steht der Text vor dem Bild */
@media (width < 64rem) { .raster-bild-links > figure { order: 2; } }

.merkliste { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.7rem; }
.merkliste li { display: flex; gap: 0.7rem; align-items: flex-start; }
.merkliste .symbol { margin-top: 0.2em; color: var(--kraut); stroke-width: 2.4; }
.merkliste + p { margin-top: 1.2rem; }

/* ---------- Teilen: Ablauf in vier echten Bildern ---------- */

.schritte { list-style: none; margin: 2rem 0 1.5rem; padding: 0; display: grid; gap: 0.6rem; counter-reset: none; }
.schritte li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 0.9rem 1.1rem; border-radius: 1.1rem; border: 2px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.schritte li div { display: grid; }
.schritte li span:not(.schritt-nummer) { color: var(--text-leise); font-size: 0.95em; }
.schritt-nummer {
  flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--tomate-hell); color: #FFFFFF; font-family: var(--schrift-titel); font-size: 1.15rem;
}
.schritte li.aktiv { background: var(--karte); border-color: var(--akzent); box-shadow: var(--schatten-karte); }

.teilen-szene { margin: 0; display: grid; justify-items: center; gap: 1.2rem; }
.teilen-szene .bildschirm { width: min(100%, 19rem); }
.teilen-szene figcaption { text-align: center; max-width: 24rem; }
.teilen-bild img { transition: opacity 0.45s ease; }
/* Grundzustand und ohne JavaScript: das letzte Bild, das Rezept in der App */
.teilen-bild:not(:last-of-type) img { opacity: 0; }
.laeuft .teilen-bild img { opacity: 0; }
.laeuft .teilen-bild.aktiv img { opacity: 1; }
.tipp {
  position: absolute; z-index: 4; left: var(--tipp-x, 50%); top: var(--tipp-y, 50%);
  width: 16cqi; height: 16cqi; margin: -8cqi 0 0 -8cqi; border-radius: 50%;
  border: 1.4cqi solid rgb(255 255 255 / 0.95); background: rgb(181 56 30 / 0.35);
  box-shadow: 0 0 0 1cqi rgb(0 0 0 / 0.25);
  opacity: 0; pointer-events: none;
}
.tipp.zeigen { animation: tippen 0.9s ease-out both; }
@keyframes tippen {
  0% { opacity: 0; scale: 1.6; }
  35% { opacity: 1; scale: 0.9; }
  60% { opacity: 1; scale: 1; }
  100% { opacity: 0; scale: 1.3; }
}

.wege-titel { margin-top: clamp(3rem, 7vw, 5rem); font-size: 1.25em; }
.wege { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 52rem) { .wege { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; } }
.wege li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.2rem; border-radius: 1.25rem; border: 1px solid var(--linie);
  background: var(--karte); box-shadow: var(--schatten-karte);
}
.wege li div { display: grid; gap: 0.2rem; }
.wege li span:not(.kachel-symbol) { color: var(--text-leise); font-size: 0.95em; line-height: 1.5; }

/* ---------- Ordnen: Beitragstext und Lupe auf das Ergebnis ---------- */

.ordnen-szene { margin: 0; position: relative; display: grid; gap: 1.2rem; }
.rohtext {
  position: relative; padding: 1.3rem 1.4rem 1.5rem; border-radius: 1.25rem;
  background: var(--karte); border: 1px solid var(--linie); box-shadow: var(--schatten-karte);
  font-family: var(--schrift-app); font-size: 0.9rem; line-height: 1.5; color: var(--text);
  rotate: -1.2deg; max-width: 30rem;
}
.rohtext p { margin: 0; }
.rohtext .rohtext-kopf { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.7rem; font-family: var(--schrift-text); font-weight: 700; color: var(--text-leise); }
.rohtext .weg { opacity: 0.5; text-decoration-color: var(--akzent); text-decoration-thickness: 2px; }
/* Ausschnitt aus der App als Karte (kein dunkler Rahmen, kein Glanz: soll nicht wie ein Gerät wirken) */
.lupe {
  position: relative; justify-self: end; width: min(100%, 27rem); margin-top: -2.2rem;
  border-radius: 1.25rem; overflow: hidden;
  border: 1px solid var(--linie);
  box-shadow: 0 0 0 0.25rem rgb(181 56 30 / 0.55), var(--schatten-karte);
  rotate: 1.5deg;
}
.lupe img { width: 100%; }
.lupe-schild {
  position: absolute; right: 0.8rem; top: 0.7rem; display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.25rem 0.75rem 0.25rem 0.55rem; border-radius: 99px;
  background: rgb(20 17 14 / 0.8); color: #FFFFFF; font-size: 0.8rem; font-weight: 700;
}
.ordnen-szene figcaption { max-width: 30rem; }
@media (min-width: 64rem) { .lupe { margin-right: -2.5rem; } }

/* ---------- Einkaufen ---------- */

.rechnungen { display: grid; gap: 0.6rem; margin: 1.6rem 0; }
.rechnungen p {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.6rem; margin: 0;
  padding: 0.8rem 1.1rem; border-radius: 1rem; background: var(--karte); border: 1px solid var(--linie);
  font-variant-numeric: tabular-nums;
}
.rechnungen .plus, .rechnungen .ist { color: var(--text-leise); font-weight: 700; }
.rechnungen b { color: var(--kraut); }
.einkauf-szene { margin: 0; display: grid; justify-items: center; }
.einkauf-szene .bildschirm { width: min(100%, 19rem); }
/* Ausschnitt neben (unter) dem Bildschirm: liegt nicht darauf, leicht gedreht wie im Abschnitt Ordnen */
.einkauf-szene { gap: 1.4rem; }
.lupe-neben { justify-self: center; width: min(100%, 21rem); margin-top: 0.6rem; rotate: -1.2deg; overflow: visible; }
.lupe-neben picture { display: block; border-radius: inherit; overflow: hidden; }
/* Schild auf der Kante, damit es nichts im Ausschnitt verdeckt */
.lupe-neben .lupe-schild { top: -0.95rem; right: 1rem; }
@media (min-width: 64rem) { .lupe-neben { margin-right: 0; } }

/* ---------- Kochen: dunkles Band mit dem iPad ---------- */

.kochen { position: relative; isolation: isolate; background: var(--nacht-900); color: var(--nacht-text); overflow: clip; }
.kochen::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50rem 30rem at 80% 30%, rgb(140 203 152 / 0.18), transparent 70%),
    radial-gradient(40rem 26rem at 10% 90%, rgb(255 132 102 / 0.16), transparent 70%);
}
.kochen::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--rauschen); opacity: 0.14; mix-blend-mode: soft-light; }
.kochen .gross { color: #E3D7C6; }
.kochen h2 { color: var(--nacht-text); }
.ipad-szene { margin: 0; display: grid; gap: 2rem; }
@media (min-width: 56rem) { .ipad-szene { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; align-items: center; } }
.ipad-szene .bildschirm { width: min(100%, 31rem); justify-self: center; }
.kochen-punkte { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.kochen-punkte li { display: flex; gap: 0.9rem; align-items: flex-start; color: #E3D7C6; font-size: 1.05em; }
.kochen-punkte .symbol { margin-top: 0.15em; color: var(--kraut-dunkel); }
.kochen-punkte b { display: block; color: var(--nacht-text); }

/* ---------- Preise ---------- */

.preise { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; }
@media (min-width: 40rem) { .preise { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
@media (min-width: 72rem) { .preise { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; } }
.preis {
  position: relative; padding: 1.6rem 1.5rem 1.8rem; border-radius: 1.4rem;
  background: var(--karte); border: 1px solid var(--linie); box-shadow: var(--schatten-karte);
}
.preis h3 { margin-bottom: 0.3rem; }
.betrag { margin: 0; font-family: var(--schrift-titel); font-size: 2.4rem; line-height: 1.1; }
.betrag small { font-family: var(--schrift-text); font-size: 1rem; color: var(--text-leise); }
.umgerechnet { margin: 0.3rem 0 0; color: var(--text-leise); font-size: 0.95em; }
.preis-pro { border: 2px solid var(--akzent); }
@media (min-width: 56rem) { .preis-pro { translate: 0 -0.8rem; } }
.etikett {
  position: absolute; top: -0.9rem; left: 1.4rem; margin: 0;
  padding: 0.2rem 0.85rem; border-radius: 99px; background: var(--kraut-hell); color: #FFFFFF;
  font-size: 0.9rem; font-weight: 800;
}
.preise-hinweis { margin-top: 2rem; max-width: 44rem; }

/* ---------- Fragen ---------- */

details { border-bottom: 1px solid var(--linie); }
details:first-of-type { border-top: 1px solid var(--linie); }
summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  min-height: 3.5rem; padding: 0.9rem 0.2rem; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.08em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 0.7rem; height: 0.7rem; margin-right: 0.3rem;
  border-right: 2.5px solid var(--akzent); border-bottom: 2.5px solid var(--akzent); rotate: 45deg; translate: 0 -0.2rem;
}
details[open] summary::after { rotate: -135deg; translate: 0 0.2rem; }
details p { color: var(--text-leise); padding-inline: 0.2rem; }
#fragen .klein { margin-top: 1.6rem; }

/* ---------- Schluss und Fuß ---------- */

.schluss { background: var(--akzent-flaeche); padding-block: clamp(3.5rem, 8vw, 6rem); }
.schluss-raster { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 48rem) { .schluss-raster { grid-template-columns: 8rem minmax(0, 1fr); gap: 2.5rem; } }
.schluss-icon { width: 7rem; height: 7rem; border-radius: 1.6rem; box-shadow: var(--schatten); }
@media (min-width: 48rem) { .schluss-icon { width: 8rem; height: 8rem; } }
.schluss h2 { margin-bottom: 0.3em; }
.schluss .gross { margin: 0; }

.fuss { padding-block: 2.5rem 3rem; background: var(--grund); border-top: 1px solid var(--linie); }
.fuss p { margin: 0 0 0.5rem; }

/* ---------- Textseiten (Hilfe, Datenschutz, Impressum) ---------- */

.textseite { padding-block: 2.5rem 5rem; background: var(--grund); color: var(--text); }
.textseite .rahmen { max-width: 46rem; }
.textseite h1 { font-size: clamp(2.2rem, 4vw, 3rem); margin-bottom: 0.6em; }
.textseite h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.textseite ul { padding-left: 1.3rem; }
.textseite li { margin-bottom: 0.5rem; }
.textseite .stand { color: var(--text-leise); }
.kopf-schmal { background: var(--nacht-900); }
.kopf-schmal .rahmen { min-height: var(--kopf-hoehe); }
.entwurf { margin-bottom: 2rem; padding: 1rem 1.2rem; border-radius: 1rem; border: 2px dashed var(--akzent); background: var(--akzent-flaeche); }
.entwurf p { margin: 0; }
.textseite .hervorgehoben { font-weight: 600; }
.offen { background: rgb(233 162 59 / 0.3); padding: 0.05rem 0.3rem; border-radius: 0.3rem; }

/* Film: Knopf in der Bühne (immer dunkel, Form wie .bald), Fenster per <dialog> */
.buehne-text .film-knopf { margin-left: 0.6rem; }
.film-knopf {
  display: inline-flex; align-items: center; gap: 0.8rem; vertical-align: top;
  margin-top: 1.8rem; padding: 0.45rem 1.2rem 0.45rem 0.45rem;
  border-radius: 1rem; border: 1px solid rgb(244 238 230 / 0.22);
  background: rgb(255 255 255 / 0.04); color: var(--nacht-text); text-decoration: none; line-height: 1.25;
}
.film-knopf:hover { border-color: rgb(244 238 230 / 0.55); background: rgb(255 255 255 / 0.08); }
.film-knopf svg { flex: none; width: 2.4rem; height: 2.4rem; }
.film-knopf circle { fill: var(--tomate-dunkel); }
.film-knopf path { fill: var(--nacht-900); }
.film-knopf span { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.film-knopf small { display: block; margin-top: 0.2rem; color: var(--nacht-weich); font-size: 0.85rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
@media (max-width: 30rem) { .buehne-text .film-knopf { margin-left: 0; margin-top: 0.8rem; } }
.film {
  width: min(100% - 2rem, 70rem, (100svh - 10rem) * 1.778);
  max-width: none; max-height: calc(100svh - 2rem);
  padding: 0; overflow: auto;
  border: 1px solid var(--nacht-600); border-radius: 1rem;
  background: var(--nacht-900); color: var(--nacht-text);
}
.film::backdrop { background: rgb(10 8 7 / 0.86); }
.film-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.6rem 0.6rem 1.25rem; }
.film-kopf h2 { margin: 0; font-family: var(--schrift-titel); font-weight: 400; font-size: 1.2rem; line-height: 1.3; color: var(--nacht-text); }
.film form { margin: 0; }
.film-zu {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  border-radius: 0.8rem; border: 1px solid rgb(244 238 230 / 0.28);
  background: transparent; color: var(--nacht-text); cursor: pointer;
}
.film-zu:hover { border-color: rgb(244 238 230 / 0.6); color: #FFFFFF; }
.film-zu svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.film :focus-visible, .film-knopf:focus-visible { outline: 3px solid var(--honig-dunkel); outline-offset: 3px; }
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000000; }
.film-text { margin: 0; padding: 0.9rem 1.25rem 1.15rem; color: var(--nacht-weich); font-size: 0.92rem; line-height: 1.5; }
html:has(.film[open]) { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .film[open] { animation: film-auf 0.25s ease-out; }
  .film[open]::backdrop { animation: film-grund 0.25s ease-out; }
}
@keyframes film-auf { from { opacity: 0; transform: translateY(0.5rem) scale(0.98); } }
@keyframes film-grund { from { opacity: 0; } }
