/* seite.css · lp-226 SUD Kaffeerösterei. Größen nur aus SCHRIFT.md: --g-* und --a*. */

@font-face { font-family: "Satoshi"; font-style: normal; font-weight: 300 900; font-display: swap;
  src: url("../fonts/satoshi-variable.woff2") format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin-ext-wght-normal.woff2") format("woff2");
  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; }
@font-face { font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  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: "Instrument Sans"; font-style: italic; font-weight: 400 700; font-display: swap;
  src: url("../fonts/instrument-sans-latin-wght-italic.woff2") format("woff2");
  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; }

:root {
  --milch: #F4F1EC; --espresso: #1C1411; --kirsche: #D4252D;
  --text-2: color-mix(in srgb, var(--espresso) 80%, var(--milch));
  --fokus: var(--kirsche);

  /* Fünf Größen, mehr nicht (SCHRIFT.md) */
  --g-wort: clamp(3rem, min(14vw, 22svh), 15rem);
  --g-zeile: clamp(2.25rem, min(6vw, 10svh), 6.5rem);
  --g-ueber: clamp(1.625rem, 2.6vw, 2.75rem);
  --g-text: clamp(1.0625rem, 1.05vw, 1.1875rem);
  --g-klein: 0.875rem;
  /* Abstände nur aus dieser Reihe */
  --a1: 8px; --a2: 16px; --a3: 24px; --a4: 40px; --a5: 64px; --a6: 104px; --a7: 168px;

  --inhalt: 1200px;
  --rand: clamp(16px, 5vw, 72px);
  --kante: max(var(--rand), calc((100% - var(--inhalt)) / 2));
  --schrift-display: "Satoshi", system-ui, "Segoe UI", sans-serif;
  --schrift-text: "Instrument Sans", system-ui, "Segoe UI", sans-serif;
  --aus: cubic-bezier(0.16, 1, 0.3, 1);
  --abschnitt: var(--a7);
}
@media (max-width: 700px) { :root { --abschnitt: var(--a6); } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--milch); -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; min-height: 100svh; background: var(--milch); color: var(--espresso); font-family: var(--schrift-text); font-size: var(--g-text); font-weight: 400; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2 { font-family: var(--schrift-display); font-weight: 700; line-height: 0.95; letter-spacing: -0.035em; margin: 0; text-wrap: balance; }
p { margin: 0; max-width: 58ch; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprung { position: fixed; left: var(--a2); top: -80px; z-index: 90; padding: var(--a2) var(--a3); background: var(--espresso); color: var(--milch); border-radius: 999px; text-decoration: none; font-weight: 600; }
.sprung:focus { top: var(--a2); }
.klein, .bsp { font-size: var(--g-klein); }
.innen { padding-inline: var(--kante); }
.ueber { font-size: var(--g-ueber); line-height: 1.1; letter-spacing: -0.01em; font-weight: 700; }

/* ---------- Kopfzeile: Logo auf der linken Inhaltskante, rechts eine kleine feste Pillen-Leiste */
.kopfzeile { position: fixed; z-index: 50; top: var(--a2); left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--a2); padding-inline: var(--kante); pointer-events: none; }
.kopfzeile > * { pointer-events: auto; }
.marke { min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--a3); border-radius: 999px; background: var(--milch); box-shadow: 0 0 0 1px color-mix(in srgb, var(--espresso) 12%, transparent); font-family: var(--schrift-display); font-weight: 800; font-size: var(--g-ueber); letter-spacing: -0.02em; text-decoration: none; color: var(--espresso); transition: color 0.25s ease; }
.pille { display: flex; align-items: center; gap: var(--a1); padding: 4px 4px 4px var(--a3); border-radius: 999px; background: var(--milch); box-shadow: 0 0 0 1px color-mix(in srgb, var(--espresso) 12%, transparent); }
.menue { display: flex; gap: var(--a1); }
.menue a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--a1); font-size: var(--g-text); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .menue a:hover { color: var(--kirsche); } }
@media (max-width: 700px) { .menue { display: none; } .pille { padding: 4px; } }

/* ---------- Knopf: ein gefüllter Typ, kirschrot */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--a4); border: 0; border-radius: 999px; background: var(--kirsche); color: var(--milch); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform 0.18s var(--aus), background-color 0.2s ease; }
.knopf--klein { min-height: 44px; padding: 0 var(--a3); }
@media (hover: hover) and (pointer: fine) { .knopf:hover { background: #b81e26; } }
.knopf:active { transform: scale(0.97); }
.knopf:disabled { opacity: 0.6; cursor: default; }


/* =====================================================================
   Grundfassung (ohne JavaScript und bei „Bewegung reduzieren“): Stationen untereinander
   ===================================================================== */
.fahrt, .buehne { position: relative; }
.st { position: relative; }
.anker { position: absolute; left: 0; top: 0; width: 1px; height: 1px; pointer-events: none; }

/* Station 1: erster Bildschirm, in beiden Fassungen gleich aufgebaut */
.st1 { min-height: 100svh; overflow: clip; --fw: max(calc(var(--sw, 100vw) * 1.06), calc(100svh * 1.8)); --fh: calc(var(--fw) * 0.5625); --fl: calc((var(--sw, 100vw) - var(--fw)) * 0.7); --ft: calc((100svh - var(--fh)) * 0.35); }
@media (max-width: 700px) and (min-height: 641px) {
  .st1 { --fw: calc(var(--sw, 100vw) * 1.7); --fl: calc(var(--sw, 100vw) - var(--fw)); --ft: clamp(270px, 38svh, 340px); }
  .foto-schieb::before, .foto-schieb::after { content: ""; position: absolute; left: 0; right: 0; z-index: 2; pointer-events: none; height: calc(var(--fh) * 0.24 + 4px); }
  .foto-schieb::before { top: calc(var(--ft) - 4px); background: linear-gradient(to bottom, var(--milch), rgba(244, 241, 236, 0)); }
  .foto-schieb::after { top: calc(var(--ft) + var(--fh) * 0.76); background: linear-gradient(to top, var(--milch), rgba(244, 241, 236, 0)); }
}
.foto-schieb { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: var(--milch); translate: calc(var(--mx, 0) * -10px) calc(var(--my, 0) * -6px); }
.foto { position: absolute; left: var(--fl); top: var(--ft); width: var(--fw); height: var(--fh); transform-origin: calc(0.792 * var(--fw)) calc(0.3872 * var(--fh)); }
.foto img { width: 100%; height: 100%; }
/* Vorgeschmack: die Kirsche schimmert mit 8 % in der Kaffeeoberfläche (Lage aus Messung: Mitte 79,2 % / 38,7 %, Halbachsen 19,6 % / 9,5 % der Bildbreite) */
.vorgeschmack { position: absolute; left: 59.6%; top: 21.8%; width: 39.2%; height: 33.8%; border-radius: 50%; overflow: hidden; opacity: 0.08; pointer-events: none; }
.vorgeschmack img { width: 130%; max-width: none; height: 130%; margin: -15% 0 0 -15%; translate: calc(var(--mx, 0) * 22px) calc(var(--my, 0) * 12px); object-fit: cover; }
.dampf { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0)); opacity: 0.22; translate: calc(var(--mx, 0) * 14px) calc(var(--my, 0) * 8px); }
.dampf-ebene { position: absolute; inset: 0; pointer-events: none; }
.dampf-1 { left: 66%; top: 6%; width: 15%; height: 30%; }
.dampf-2 { left: 78%; top: 2%; width: 13%; height: 28%; }

.st1-text { position: absolute; z-index: 7; left: var(--kante); top: calc(88px + var(--a3)); width: min(30rem, calc(100% - var(--kante) - var(--rand))); display: grid; gap: var(--a2); justify-items: start; }
.zeile { font-size: var(--g-text); font-weight: 500; max-width: 28ch; }
.beleg { font-size: var(--g-text); color: var(--text-2); }
.beleg strong { color: var(--espresso); font-weight: 600; }
.handlung { display: grid; gap: var(--a2); justify-items: start; margin-top: var(--a1); }
.beruhigung { font-size: var(--g-klein); color: var(--text-2); max-width: 36ch; }
.titel { position: absolute; z-index: 3; left: var(--kante); right: var(--rand); bottom: clamp(var(--a1), 12svh, var(--a6)); font-size: var(--g-zeile); text-wrap: balance; overflow-wrap: normal; }
.bohnen { position: absolute; z-index: 2; left: -5%; width: 110%; bottom: 0; translate: calc(var(--mx, 0) * 34px) calc(var(--my, 0) * 10px + 55%); pointer-events: none; }
.bohnen img { width: 100%; }

/* Stationen 2 bis 6 untereinander */
.st2, .st3, .st4, .st5, .st6 { display: grid; gap: var(--a4); justify-items: start; padding: var(--abschnitt) var(--kante); }
.st2 { background: var(--espresso); color: var(--milch); --fokus: var(--milch); }
.st3 { background: var(--kirsche); color: var(--milch); --fokus: var(--milch); }
.st4 { background: var(--espresso); color: var(--milch); --fokus: var(--milch); }
.st5, .st6 { background: var(--milch); color: var(--espresso); }
.kreis { position: relative; width: min(100%, 34rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.kreis picture, .kreis img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st2 .kreis { order: 2; }
.st2-text, .st-text { display: grid; gap: var(--a2); }
.st2-text { order: 1; }
.wort { font-size: var(--g-wort); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; }
.herkunft { font-size: var(--g-klein); font-style: italic; }
.grund { display: none; }
.st6 .kreis { width: 100%; aspect-ratio: 16 / 9; border-radius: 0; margin-inline: calc(var(--kante) * -1); width: calc(100% + 2 * var(--kante)); }
.zeile6 { font-size: var(--g-zeile); }
.satz6 { font-size: var(--g-ueber); line-height: 1.25; font-weight: 500; max-width: 26ch; }

/* ---------- Drei Sorten: drei große Kreise, versetzt in der Höhe */
.sorten { padding: var(--abschnitt) 0; background: var(--milch); overflow-x: clip; }
.sorten-kopf { display: grid; gap: var(--a2); justify-items: start; margin-bottom: var(--a5); }
.sorten-reihe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2vw; padding-inline: 2vw; align-items: start; }
.sorte { display: grid; gap: var(--a3); justify-items: start; align-content: start; }
.sorte--1 { margin-top: 0; }
.sorte--2 { margin-top: 9vw; }
.sorte--3 { margin-top: 3vw; }
.scheibe { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--espresso); }
.sorte--1 .scheibe { width: 104%; }
.sorte--2 .scheibe { width: 96%; }
.scheibe picture, .scheibe img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sorte-text { display: grid; gap: var(--a1); padding-inline: var(--a2); }
.sorte-text .ueber { margin-bottom: var(--a1); }
.rost { font-weight: 600; color: var(--kirsche); }
.geschmack { font-size: var(--g-text); }
.sorte-text .herkunft { color: var(--text-2); }
@media (max-width: 700px) {
  .sorten-reihe { grid-template-columns: minmax(0, 1fr); gap: var(--a5); padding-inline: 0; }
  .sorte--1, .sorte--2, .sorte--3 { margin-top: 0; }
  .scheibe, .sorte--1 .scheibe, .sorte--2 .scheibe { width: 90vw; }
  .sorte--1 .scheibe { margin-left: 0; }
  .sorte--2 .scheibe { margin-left: 10vw; }
  .sorte--3 .scheibe { margin-left: 5vw; }
  .sorte-text { padding-inline: var(--rand); }
  .sorte--2 .sorte-text { padding-left: calc(10vw + var(--a2)); }
}

/* ---------- So läuft das Abo: Foto groß, vier Schritte, ein roter Punkt wandert */
.ablauf { display: grid; grid-template-columns: 56% minmax(0, 1fr); background: var(--milch); padding-bottom: var(--abschnitt); }
.ablauf-foto { position: sticky; top: 0; height: 100svh; align-self: start; overflow: hidden; }
.ablauf-foto picture, .ablauf-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.ablauf-text { display: grid; align-content: start; gap: var(--a5); padding: var(--abschnitt) var(--rand) 0 var(--a5); }
.schritte-halter { position: relative; padding-left: var(--a5); }
.spur { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: color-mix(in srgb, var(--espresso) 18%, transparent); }
.punkt { position: absolute; left: -7px; top: 0; width: 16px; height: 100%; display: block; transform: translateY(calc((100% - 16px) * var(--t, 0))); }
.punkt::before { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--kirsche); }
.schritte { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--a6); }
.schritt { display: grid; gap: var(--a1); }
.tag { font-family: var(--schrift-display); font-weight: 700; font-size: var(--g-ueber); line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
@media (max-width: 900px) {
  .ablauf { grid-template-columns: minmax(0, 1fr); }
  .ablauf-foto { position: relative; height: auto; aspect-ratio: 4 / 3; }
  .ablauf-text { padding: var(--a5) var(--rand) 0; }
}

/* ---------- Abo: Kirschrot, Foto der Beutel, Formular */
.abo { background: var(--kirsche); color: var(--milch); --fokus: var(--milch); }
.abo-foto { position: relative; aspect-ratio: 16 / 9; max-height: 92svh; overflow: hidden; background: var(--milch); }
.abo-foto picture, .abo-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.abo-innen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--a5); padding-top: var(--a6); padding-bottom: var(--abschnitt); align-items: start; }
.abo-kopf { display: grid; gap: var(--a2); position: sticky; top: 120px; }
.abo-kopf .ueber { font-size: var(--g-ueber); }
.formular { display: grid; gap: var(--a4); }
.feld { display: grid; gap: var(--a1); margin: 0; padding: 0; border: 0; min-width: 0; }
.etikett { font-weight: 600; font-size: var(--g-text); padding: 0; }
.abo select, .abo input[type="email"] { width: 100%; min-height: 56px; padding: 0 var(--a4) 0 var(--a3); border: 0; border-radius: 999px; background: var(--milch); color: var(--espresso); font: inherit; }
.abo select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--espresso) 50%), linear-gradient(135deg, var(--espresso) 50%, transparent 50%); background-position: calc(100% - 28px) 50%, calc(100% - 22px) 50%; background-size: 6px 6px; background-repeat: no-repeat; background-color: var(--milch); }
.abo input::placeholder { color: color-mix(in srgb, var(--espresso) 60%, var(--milch)); }
.abo [aria-invalid="true"] { box-shadow: 0 0 0 3px var(--espresso); }
.fehler { min-height: 1.5em; font-size: var(--g-klein); font-weight: 600; margin: 0; }
.mengen { gap: var(--a1); }
.mengen .etikett { margin-bottom: var(--a1); }
.menge, .pillwahl { position: relative; display: block; cursor: pointer; }
.menge input, .pillwahl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.menge span { display: flex; align-items: baseline; justify-content: space-between; gap: var(--a2); min-height: 64px; padding: 0 var(--a3); align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--milch); transition: background-color 0.2s ease, color 0.2s ease; }
.menge b { font-family: var(--schrift-display); font-weight: 700; font-size: var(--g-ueber); letter-spacing: -0.01em; }
.menge i { font-style: normal; font-weight: 600; font-size: var(--g-text); }
.menge input:checked + span { background: var(--milch); color: var(--espresso); }
.mahl { display: flex; flex-wrap: wrap; gap: var(--a1); }
.mahl .etikett { flex: 0 0 100%; margin-bottom: var(--a1); }
.pillwahl span { display: flex; align-items: center; min-height: 48px; padding: 0 var(--a3); border-radius: 999px; box-shadow: inset 0 0 0 2px var(--milch); font-weight: 600; transition: background-color 0.2s ease, color 0.2s ease; }
.pillwahl input:checked + span { background: var(--milch); color: var(--espresso); }
.menge input:focus-visible + span, .pillwahl input:focus-visible + span { outline: 3px solid var(--milch); outline-offset: 3px; }
.absenden { display: grid; gap: var(--a2); justify-items: start; }
.abo .knopf { background: var(--milch); color: var(--espresso); min-height: 56px; }
@media (hover: hover) and (pointer: fine) { .abo .knopf:hover { background: #FBF8F3; } }
.abo .beruhigung { color: var(--milch); font-size: var(--g-text); max-width: 40ch; }
.formular-meldung { min-height: 1.5em; font-weight: 600; margin: 0; }
.formular-meldung:focus { outline: none; }
.abo .bsp { font-weight: 400; }
@media (max-width: 900px) {
  .abo-foto { aspect-ratio: 4 / 3; }
  .abo-foto img { object-position: 50% 50%; }
  .abo-innen { grid-template-columns: minmax(0, 1fr); gap: var(--a4); padding-top: var(--a5); }
  .abo-kopf { position: static; }
}

.fuss { padding: var(--a5) 0 var(--a4); background: var(--espresso); color: color-mix(in srgb, var(--milch) 78%, var(--espresso)); }
.fuss-innen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--a4); align-items: end; }
.fuss-innen > div { display: grid; gap: var(--a2); align-content: start; }
.fuss-marke { font-family: var(--schrift-display); font-weight: 800; font-size: var(--g-ueber); color: var(--milch); }
.fuss .klein { max-width: 52ch; }
.fuss a { text-underline-offset: 4px; display: inline-block; min-height: 44px; line-height: 44px; }
@media (max-width: 700px) { .fuss-innen { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   Fahrt in die Tasse: angeheftete Bühne, alles aus der Scroll-Zahl --p (bewegung.js)
   Zeitplan (Anteile von p, Laptop 980 vh = rund 9 Bildschirmhöhen Fahrt; Handy 640 vh):
     .01 bis .16  Zoom in die Tasse, bis die Kaffeeoberfläche den ganzen Bildschirm füllt
     .10 bis .17  Makro der Oberfläche blendet über (Rand folgt dem Kaffee), .19 bis .27 Text „Ein Schluck. Drei Orte.“
     .26 bis .32  Iris (Kreis wächst aus der Mitte) mit der Kirsche · .32 Grund hart Kirschrot · .32 bis .37 Kreis zur Seite, BEERE
     .37 bis .43  Text Beere · .43 bis .46 Kirsche schließt sich
     .44 bis .50  Iris Kakao · .50 Grund hart Espresso · .50 bis .55 Kreis nach links, KAKAO · .55 bis .62 Text · .62 bis .65 schließt sich
     .63 bis .69  Iris Nuss · .69 Grund hart Milchschaum · .69 bis .74 Kreis nach rechts, NUSS · .74 bis .81 Text
     .795 bis .845  Iris Hand: Kreis füllt den Bildschirm · .835 bis .90 Riesenzeile und Satz
     .90 bis .99  Kamera fährt zurück: Hand schrumpft zum Kreis und landet als Kaffeeoberfläche in der Tasse
   Alle Verläufe sind reine Zahlen aus --p; bewegt wird nur transform, opacity und clip-path.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  html.js .fahrt { height: 980svh; --vw1: calc(var(--sw, 100vw) / 100); }
  html.js .buehne {
    position: sticky; top: 0; height: 100svh; overflow: clip; isolation: isolate; background: var(--milch);
    /* Lage und Größe der Fotofläche (gleiche Formel wie in .st1) und die Kaffeeoberfläche darin */
    --fw: max(calc(var(--vw1) * 106), calc(100svh * 1.8));
    --fh: calc(var(--fw) * 0.5625);
    --fl: calc((var(--vw1) * 100 - var(--fw)) * 0.7);
    --ft: calc((100svh - var(--fh)) * 0.35);
    --cx: calc(var(--fl) + 0.792 * var(--fw));
    --cy: calc(var(--ft) + 0.3872 * var(--fh));
    --a0: calc(0.196 * var(--fw) * 0.96);
    --b0: calc(0.095 * var(--fw) * 0.96);
    /* Zoom bis die Oberfläche den Bildschirm füllt (Laptop 3,7 nötig, Handy 6,9) */
    --s-end: 4;
    /* Kreise: Zielgröße der Iris in der Mitte, dann Größe und Ort je Station */
    --R0: min(30svh, calc(var(--vw1) * 24));
    --Rb: min(24svh, calc(var(--vw1) * 18)); --Xb: calc(var(--vw1) * 100 - var(--rand) - var(--Rb)); --Yb: calc(var(--Yb2) + 0.8 * var(--Rb));
    --Rc: min(26svh, calc(var(--vw1) * 18)); --Xc: calc(var(--rand) + var(--Rc) + var(--vw1) * 4); --Yc: 40svh;
    --Rn: min(28svh, calc(var(--vw1) * 20)); --Xn: calc(var(--vw1) * 100 - var(--rand) - var(--Rn)); --Yn: 42svh;
    --Rv: calc(var(--vw1) * 50 + 50svh);
    --Yb2: calc(var(--g-wort) * 0.45 + 72px); --Yc2: calc(var(--Yc) + var(--Rc) + 0.18 * var(--g-wort)); --Yn2: calc(var(--Yn) + var(--Rn) + 0.18 * var(--g-wort));
    --zi: clamp(0, calc((var(--p, 0) - 0.01) / 0.15), 1);
    --zie: calc(var(--zi) * var(--zi) * (3 - 2 * var(--zi)));
    --zo: clamp(0, calc((var(--p, 0) - 0.9) / 0.09), 1);
    --zoe: calc(var(--zo) * var(--zo) * (3 - 2 * var(--zo)));
    --qt: calc(var(--zie) * (1 - var(--zoe)));
    --sf: calc(1 + (var(--s-end) - 1) * var(--qt));
    --ta: clamp(0, calc((var(--p, 0) - 0.1) / 0.07), 1);
    --hr: clamp(0, calc((var(--p, 0) - 0.32) * 500), 1);
    --he: clamp(0, calc((var(--p, 0) - 0.5) * 500), 1);
    --hm: clamp(0, calc((var(--p, 0) - 0.69) * 500), 1);
    --hout: clamp(0, calc((var(--p, 0) - 0.835) * 500), 1);
    --fa: clamp(0, calc((var(--p, 0) - 0.94) / 0.045), 1);
    --t1: clamp(0, calc((var(--p, 0) - 0) / 0.04), 1);
    --ti: clamp(0, calc((var(--p, 0) - 0.03) / 0.08), 1);
    --bo: clamp(0, calc((var(--p, 0) - 0) / 0.06), 1);
    --s2i: clamp(0, calc((var(--p, 0) - 0.16) / 0.03), 1);
    --s2o: clamp(0, calc((var(--p, 0) - 0.25) / 0.02), 1);
    --ib: clamp(0, calc((var(--p, 0) - 0.26) / 0.06), 1);
    --ibe: calc(var(--ib) * var(--ib) * (3 - 2 * var(--ib)));
    --mb: clamp(0, calc((var(--p, 0) - 0.32) / 0.05), 1);
    --mbe: calc(var(--mb) * var(--mb) * (3 - 2 * var(--mb)));
    --wbi: clamp(0, calc((var(--p, 0) - 0.33) / 0.04), 1);
    --tbi: clamp(0, calc((var(--p, 0) - 0.37) / 0.03), 1);
    --tbo: clamp(0, calc((var(--p, 0) - 0.42) / 0.02), 1);
    --wbo: clamp(0, calc((var(--p, 0) - 0.42) / 0.03), 1);
    --sb: clamp(0, calc((var(--p, 0) - 0.43) / 0.03), 1);
    --sbe: calc(var(--sb) * var(--sb) * (3 - 2 * var(--sb)));
    --ic: clamp(0, calc((var(--p, 0) - 0.44) / 0.06), 1);
    --ice: calc(var(--ic) * var(--ic) * (3 - 2 * var(--ic)));
    --mc: clamp(0, calc((var(--p, 0) - 0.5) / 0.05), 1);
    --mce: calc(var(--mc) * var(--mc) * (3 - 2 * var(--mc)));
    --wci: clamp(0, calc((var(--p, 0) - 0.51) / 0.04), 1);
    --tci: clamp(0, calc((var(--p, 0) - 0.55) / 0.03), 1);
    --tco: clamp(0, calc((var(--p, 0) - 0.61) / 0.02), 1);
    --wco: clamp(0, calc((var(--p, 0) - 0.61) / 0.03), 1);
    --sc: clamp(0, calc((var(--p, 0) - 0.62) / 0.03), 1);
    --sce: calc(var(--sc) * var(--sc) * (3 - 2 * var(--sc)));
    --inn: clamp(0, calc((var(--p, 0) - 0.63) / 0.06), 1);
    --inne: calc(var(--inn) * var(--inn) * (3 - 2 * var(--inn)));
    --mn: clamp(0, calc((var(--p, 0) - 0.69) / 0.05), 1);
    --mne: calc(var(--mn) * var(--mn) * (3 - 2 * var(--mn)));
    --wni: clamp(0, calc((var(--p, 0) - 0.7) / 0.04), 1);
    --tni: clamp(0, calc((var(--p, 0) - 0.73) / 0.03), 1);
    --tno: clamp(0, calc((var(--p, 0) - 0.78) / 0.015), 1);
    --wno: clamp(0, calc((var(--p, 0) - 0.78) / 0.02), 1);
    --id: clamp(0, calc((var(--p, 0) - 0.795) / 0.05), 1);
    --ide: calc(var(--id) * var(--id) * (3 - 2 * var(--id)));
    --thi: clamp(0, calc((var(--p, 0) - 0.835) / 0.025), 1);
    --tho: clamp(0, calc((var(--p, 0) - 0.885) / 0.015), 1);
  }
  @media (max-width: 700px) and (min-height: 641px) {
    html.js .fahrt { height: 640svh; }
    html.js .buehne {
      --fw: calc(var(--vw1) * 170);
      --fl: calc(var(--vw1) * 100 - var(--fw));
      --ft: clamp(270px, 38svh, 340px);
      --s-end: 7.5;
      --R0: calc(var(--vw1) * 42);
      --Rb: calc(var(--vw1) * 42); --Xb: calc(var(--vw1) * 54); --Yb: 52svh;
      --Rc: calc(var(--vw1) * 42); --Xc: calc(var(--vw1) * 46); --Yc: 52svh;
      --Rn: calc(var(--vw1) * 42); --Xn: calc(var(--vw1) * 53); --Yn: 52svh;
      --Yb2: 22svh; --Yc2: 22svh; --Yn2: 22svh;
    }
  }
  html.js .anker { top: 281svh; }
  @media (max-width: 700px) and (min-height: 641px) { html.js .anker { top: 173svh; } }

  html.js .st { position: absolute; inset: 0; min-height: 0; padding: 0; display: block; overflow: visible; background: none; }
  html.js .st2, html.js .st3, html.js .st4 { color: var(--milch); }
  html.js .st5, html.js .st6 { color: var(--espresso); }
  html.js .st1 { color: var(--espresso); }

  /* Foto: zoomt um die Mitte der Kaffeeoberfläche und schiebt sie in die Bildmitte; am Ende fährt es zurück */
  html.js .foto { will-change: transform;
    transform: translate(calc((var(--vw1) * 50 - var(--cx)) * var(--qt)), calc((50svh - var(--cy)) * var(--qt))) scale(var(--sf)); }
  html.js .foto-schieb::before, html.js .foto-schieb::after { opacity: calc(1 - clamp(0, calc(var(--qt) * 12), 1)); }
  html.js .dampf-ebene { opacity: calc(1 - var(--qt)); }
  html.js .dampf { animation: dampf 7s ease-in-out infinite; }
  html.js .dampf-2 { animation-delay: -3.5s; animation-duration: 8.5s; }
  html.js.dampf-aus .dampf { animation-play-state: paused; }
  @keyframes dampf {
    0% { transform: translateY(18%) scale(0.8); opacity: 0; }
    30% { opacity: 0.55; }
    100% { transform: translateY(-70%) scale(1.5); opacity: 0; }
  }

  html.js .st1-text { opacity: calc(1 - var(--t1)); transform: translateY(calc(var(--t1) * -28px)); }
  html.js .titel { opacity: calc(1 - var(--ti)); }
  html.js .bohnen { opacity: calc(1 - var(--bo)); }

  /* Kreise: volle Bühnenfläche mit Maske, Mitte wandert mit */
  html.js .kreis { position: absolute; inset: 0; width: auto; aspect-ratio: auto; border-radius: 0; overflow: visible; margin: 0; }
  html.js .kreis picture, html.js .kreis img { object-fit: cover; }
  html.js [data-aus] { visibility: hidden; }

  /* Kaffeeoberfläche (Makro): Ellipse der Tasse, wächst mit dem Zoom, ganz am Ende wieder klein */
  html.js .kreis--a { z-index: 4;
    transform: translate(calc((var(--cx) - var(--vw1) * 50) * (1 - var(--qt))), calc((var(--cy) - 50svh) * (1 - var(--qt))));
    clip-path: ellipse(calc(var(--a0) * var(--sf)) calc(var(--b0) * var(--sf)) at 50% 50%);
    opacity: calc(var(--ta) * (1 - var(--hr)) + var(--hout) * (1 - var(--fa))); }
  /* Iris Kirsche */
  html.js .kreis--b { z-index: 5;
    transform: translate(calc((var(--Xb) - var(--vw1) * 50) * var(--mbe)), calc((var(--Yb) - 50svh) * var(--mbe)));
    clip-path: circle(calc((var(--R0) + (var(--Rb) - var(--R0)) * var(--mbe)) * var(--ibe) * (1 - var(--sbe))) at 50% 50%); }
  /* Iris Kakao */
  html.js .kreis--c { z-index: 5;
    transform: translate(calc((var(--Xc) - var(--vw1) * 50) * var(--mce)), calc((var(--Yc) - 50svh) * var(--mce)));
    clip-path: circle(calc((var(--R0) + (var(--Rc) - var(--R0)) * var(--mce)) * var(--ice) * (1 - var(--sce))) at 50% 50%); }
  /* Iris Nuss */
  html.js .kreis--n { z-index: 5;
    transform: translate(calc((var(--Xn) - var(--vw1) * 50) * var(--mne)), calc((var(--Yn) - 50svh) * var(--mne)));
    clip-path: circle(calc((var(--R0) + (var(--Rn) - var(--R0)) * var(--mne)) * var(--inne)) at 50% 50%); }
  /* Iris Hand: füllt den Bildschirm, am Ende schrumpft sie zur Kaffeeoberfläche der Tasse und löst sich dort auf */
  html.js .kreis--d { z-index: 6;
    transform: translate(calc((var(--cx) - var(--vw1) * 50) * (1 - var(--qt))), calc((var(--cy) - 50svh) * (1 - var(--qt))));
    clip-path: ellipse(calc((var(--Rv) * (1 - var(--zoe)) + var(--a0) * var(--sf) * var(--zoe)) * var(--ide)) calc((var(--Rv) * (1 - var(--zoe)) + var(--b0) * var(--sf) * var(--zoe)) * var(--ide)) at 50% 50%);
    opacity: calc(1 - var(--fa)); }

  /* Flächen: wechseln hart (Schritt über rund 15 px Scrollweg), spätere liegen über früheren */
  html.js .grund { display: block; position: absolute; inset: 0; z-index: 2; }
  html.js .grund--rot { background: var(--kirsche); opacity: var(--hr); }
  html.js .grund--esp { background: var(--espresso); opacity: var(--he); }
  html.js .grund--milch { background: var(--milch); opacity: var(--hm); }

  /* Riesenwörter: stehen hinter den Kreisen */
  html.js .wort { position: absolute; z-index: 3; left: var(--kante); line-height: 0.9; white-space: nowrap; }
  html.js .wort--b { top: calc(var(--Yb2) - 0.45em); opacity: calc(var(--wbi) * (1 - var(--wbo)));
    translate: calc((1 - var(--wbi)) * var(--vw1) * 14 + (0.45 - var(--p, 0)) * var(--vw1) * -6) 0; }
  html.js .wort--c { top: calc(var(--Yc2) - 0.45em); opacity: calc(var(--wci) * (1 - var(--wco)));
    translate: calc((1 - var(--wci)) * var(--vw1) * -14 + (var(--p, 0) - 0.55) * var(--vw1) * 6) 0; }
  html.js .wort--n { top: calc(var(--Yn2) - 0.45em); opacity: calc(var(--wni) * (1 - var(--wno)));
    translate: calc((1 - var(--wni)) * var(--vw1) * 14 + (0.7 - var(--p, 0)) * var(--vw1) * -6) 0; }

  /* Texte */
  html.js .st2-text { position: absolute; z-index: 7; left: var(--kante); bottom: 5svh; width: min(24rem, calc(100% - var(--kante) - var(--rand))); gap: var(--a2);
    opacity: calc(var(--s2i) * (1 - var(--s2o))); transform: translateY(calc((1 - var(--s2i)) * 24px)); }
  html.js .st-text { position: absolute; z-index: 7; width: min(24rem, calc(100% - var(--kante) - var(--rand))); gap: var(--a2); }
  html.js .st3-text { left: var(--kante); bottom: 7svh;
    opacity: calc(var(--tbi) * (1 - var(--tbo))); transform: translateY(calc((1 - var(--tbi)) * 24px)); }
  html.js .st4-text { left: auto; right: var(--rand); top: 17svh; width: min(24rem, calc(100% - var(--Xc) - var(--Rc) - var(--a3) - var(--rand)));
    opacity: calc(var(--tci) * (1 - var(--tco))); transform: translateY(calc((1 - var(--tci)) * 24px)); }
  html.js .st5-text { left: var(--kante); top: 17svh; width: min(24rem, calc(var(--Xn) - var(--Rn) - var(--a3) - var(--kante)));
    opacity: calc(var(--tni) * (1 - var(--tno))); transform: translateY(calc((1 - var(--tni)) * 24px)); }
  html.js .zeile6 { position: absolute; z-index: 8; left: var(--kante); bottom: 5svh; max-width: calc(100% - var(--kante) - var(--rand));
    opacity: calc(var(--thi) * (1 - var(--tho))); transform: translateY(calc((1 - var(--thi)) * 30px)); }
  html.js .satz6 { position: absolute; z-index: 8; right: var(--rand); bottom: 5svh; width: min(22rem, calc(100% - var(--kante) - var(--rand)));
    opacity: calc(var(--thi) * (1 - var(--tho))); transform: translateY(calc((1 - var(--thi)) * 20px)); }
  html.js .zeile6, html.js .satz6 { text-shadow: 0 0 18px rgba(244, 241, 236, 0.9), 0 0 4px rgba(244, 241, 236, 0.7); }
  @media (max-width: 700px) and (min-height: 641px) {
    html.js .st2-text, html.js .st-text { left: var(--rand); right: auto; top: auto; bottom: 4svh; width: calc(100% - 2 * var(--rand)); }
    html.js .wort { left: var(--rand); }
    html.js .satz6 { right: auto; left: var(--rand); bottom: calc(4svh + 112px); width: calc(100% - 2 * var(--rand)); }
    html.js .zeile6 { bottom: 4svh; }
  }

  /* Drei Sorten und Abo: leise Bewegung beim Scrollen, nur transform */
  html.js .scheibe { transform: translateY(calc((0.5 - var(--p, 0.5)) * 70px)); }
  html.js .sorte--2 .scheibe { transform: translateY(calc((var(--p, 0.5) - 0.5) * 50px)); }
  html.js .sorte--3 .scheibe { transform: translateY(calc((0.5 - var(--p, 0.5)) * 30px)); }
  html.js .schritte-halter { --t: clamp(0, calc((var(--p, 0) - 0.3) / 0.4), 1); }
  html.js .punkt { will-change: transform; }
}
@media (prefers-reduced-motion: reduce) {
  .punkt { transform: none; }
  .punkt::before { display: none; }
}
@media (max-width: 700px) {
  html.js .scheibe { transform: none; }
}

/* ---------- Rechtliches (eigene Seite, ohne JavaScript) */
.rechtlich .kopfzeile { position: absolute; }
.recht { padding-inline: var(--rand); display: grid; gap: var(--a5); padding-top: calc(88px + var(--a5)); padding-bottom: var(--abschnitt); max-width: 52rem; margin-inline: auto; justify-items: start; }
.recht-titel { font-size: var(--g-ueber); font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.recht section { display: grid; gap: var(--a2); }
.recht .bsp-hinweis { font-size: var(--g-klein); color: var(--text-2); }
.rechtlich .fuss .klein { max-width: 60ch; }

/* ---------- Flache Fenster (Höhe bis 640 px, Breite über 700): Kopf kompakter, Text und Riesenzeile bleiben getrennt */
@media (max-height: 640px) {
  :root { --g-zeile: clamp(2.25rem, min(6vw, 9svh), 6.5rem); }
  .st1-text { top: 72px; gap: var(--a1); width: min(26rem, 50vw); }
  .handlung { grid-auto-flow: column; align-items: center; gap: var(--a2); margin-top: 0; justify-content: start; }
  .handlung .beruhigung { max-width: 24ch; }
  .zeile { max-width: 40ch; }
  html.js .satz6 { top: 14svh; bottom: auto; }
}
@media (max-height: 640px) and (prefers-reduced-motion: reduce) { .st1 { min-height: 640px; } }
/* Sehr flach (Höhe bis 520 px): Riesenzeile zweizeilig und klein, Knopf und Satz untereinander, links neben der Tasse */
@media (max-height: 520px) {
  :root { --g-zeile: clamp(2rem, min(6vw, 8svh), 6.5rem); }
  .handlung { grid-auto-flow: row; align-items: start; gap: var(--a1); }
  .handlung .beruhigung { max-width: 34ch; }
  .zeile { max-width: 34ch; }
  .titel { bottom: var(--a5); }
}
/* Hand-Szene bei mittlerer Höhe: Satz oben rechts, damit er die Riesenzeile unten nie berührt */
@media (max-height: 800px) and (min-width: 701px) { html.js .satz6 { top: 14svh; bottom: auto; } }
