/* seite.css · Trommel (Beispiel), Röstkaffee aus Linz-Urfahr.
 * Design-Lesart: Röstprotokoll auf Kistengelb und Kohle. Maschinenschrift in Großbuchstaben, Handnotizen wie im Logbuch,
 * ein Temperaturschreiber, der durch die Seite läuft. Genau ein Akzent: das Gelb (Knopf, Kurve, Höhenzahlen).
 * Regler: Mut 8, Bewegung 9, Dichte 3. Ecken: Knopf rund (999 px), Felder 6 px, Fotos eckig.
 * Regelbruch (D26): die Tafel „Dunkel“ ragt rechts bis an den Bildschirmrand. */

@font-face { font-family: "Saira Condensed"; src: url("../fonts/saira-condensed-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira Condensed"; src: url("../fonts/saira-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Saira Condensed"; src: url("../fonts/saira-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Caveat Brush"; src: url("../fonts/caveat-brush-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root { --kante-px: max(var(--rand), calc((100vw - var(--inhalt)) / 2)); }

h1, h2, h3 { font-weight: 700; text-transform: uppercase; letter-spacing: 0; line-height: 0.92; }
.marke { font-size: 1.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.menue a { font-family: var(--schrift-display); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text); }
.knopf { font-family: var(--schrift-display); font-weight: 700; font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.07em; padding-inline: 30px; }
.knopf--klein { font-size: 1.05rem; padding-inline: 22px; }
.abschnitt-satz { margin-top: 20px; max-width: 38rem; color: var(--text-2); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.5; }
.beruhigung { color: var(--text-2); }

/* Dunkle Kapitel: dieselben Farbmarken, nur dunkel gelesen (light-dark in grund.css) */
.kohle { color-scheme: dark; background: var(--grund); color: var(--text); }

/* ---------- 1 · Kopf: Plakatschrift links, das Kühlsieb mit der Flamme rechts bis an den Rand */
.anfang { position: relative; z-index: 0; min-height: 100svh; display: flex; align-items: center; padding-top: calc(var(--kopf-hoehe) + 8px); overflow-x: clip; }
.anfang-raster { position: relative; z-index: 2; padding-block: clamp(20px, 4svh, 56px) clamp(28px, 6svh, 72px); }
.anfang-text { max-width: min(660px, calc(50vw - 28px - var(--kante-px))); }
.titel { font-size: clamp(3.2rem, min(10.6vw, 17.5svh), 11.5rem); line-height: 0.86; }
.titel .zeile { display: block; }
.unterzeile { max-width: 30rem; margin-top: clamp(14px, 2.6svh, 28px); font-size: clamp(1.1rem, 1rem + 0.45vw, 1.4rem); line-height: 1.42; color: var(--text); }
.beleg { margin-top: 14px; color: var(--text); font-size: 1.02rem; }
.beleg strong { font-weight: 700; }
.handlung { margin-top: clamp(18px, 3svh, 30px); }
.anfang-bild { position: absolute; z-index: 1; top: var(--kopf-hoehe); right: 0; bottom: 0; width: 50vw; }
.anfang-rahmen { position: absolute; inset: 0; overflow: hidden; background: #17110d; }
.anfang-rahmen img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 42%; transform-origin: 70% 55%; }

@media (max-width: 959px) {
  .anfang { flex-direction: column; align-items: stretch; min-height: 0; padding-top: 0; }
  .anfang-bild { position: relative; inset: auto; order: -1; width: 100%; height: clamp(190px, 30svh, 300px); margin-top: var(--kopf-hoehe); }
  .anfang-text { max-width: none; }
  .anfang-raster { padding-block: 22px 30px; }
  .titel { font-size: clamp(3rem, 15.2vw, 5.6rem); line-height: 0.88; }
  .titel .zeile { display: inline; }
  .unterzeile { margin-top: 14px; }
  .handlung .knopf { width: 100%; }
}

/* ---------- 2 · Schlüsselszene: Zwölf Minuten. Ein Knacker. */
.szene { position: relative; z-index: 1; }
.szene-buehne { min-height: 100svh; display: grid; align-content: center; gap: clamp(10px, 2.4svh, 26px); padding: calc(var(--kopf-hoehe) + 6px) 0 clamp(14px, 3svh, 30px); }
.szene-raster { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.szene-links { position: relative; display: grid; place-items: center; }
.szene-links::before { content: ""; position: absolute; width: 124%; aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 203, 5, 0.42), rgba(255, 203, 5, 0) 72%); opacity: calc(0.12 + var(--c, 1) * 0.88); pointer-events: none; }
.trommel { position: relative; width: min(100%, 64svh); aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: #17110d; box-shadow: 0 0 0 8px var(--grund), 0 0 0 11px rgba(246, 239, 227, 0.6); }
.trommel::after { content: ""; position: absolute; z-index: 2; top: 2.6%; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--akzent); }
.stufe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.stufe--4 { opacity: 1; }
.szene-rechts { min-width: 0; }
.szene h2 { font-size: clamp(2.3rem, min(5.4vw, 9.5svh), 6.2rem); }
.szene .abschnitt-satz { margin-top: clamp(10px, 1.8svh, 18px); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem); }
.kurve { position: relative; margin-top: clamp(10px, 2svh, 22px); }
.kurve-svg { display: block; width: 100%; height: auto; overflow: visible; }
.kurve-svg .raster line { stroke: var(--linie); stroke-width: 1; }
.achse { font-family: var(--schrift-display); font-weight: 500; font-size: 15px; letter-spacing: 0.05em; fill: var(--text-3); }
.achse--einheit { fill: var(--text-2); }
.kurve-spur { fill: none; stroke: var(--linie); stroke-width: 2; stroke-dasharray: 3 8; }
.kurve-linie { fill: none; stroke: var(--akzent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--c, 1)); }
.pin circle { fill: var(--akzent); }
.notiz { font-family: var(--schrift-hand); font-size: 25px; fill: var(--text); }
.kurve-punkt { fill: var(--akzent); stroke: var(--grund); stroke-width: 3; }
.knall { fill: none; stroke: var(--akzent); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
html:not(.js) .kurve-punkt, html:not(.js) .knall { display: none; }
.anzeige { position: absolute; right: 2%; bottom: 18%; margin: 0; display: grid; justify-items: end; font-family: var(--schrift-display); font-weight: 700; line-height: 0.9; pointer-events: none; }
.anzeige-zeit { font-size: clamp(2.6rem, min(5vw, 9svh), 5rem); font-variant-numeric: tabular-nums; }
.anzeige-temp { font-size: clamp(1.7rem, min(3.2vw, 6svh), 3.2rem); color: var(--akzent); font-variant-numeric: tabular-nums; }
.phase-text { min-height: 3em; margin-top: clamp(8px, 1.4svh, 16px); font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem); color: var(--text); }
.phasen { list-style: none; margin-block: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 24px); }
.phase { display: grid; gap: 2px; align-content: start; padding-top: 10px; border-top: 4px solid var(--linie); }
.phase b { font-family: var(--schrift-display); font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.phase-zahl { font-size: 0.9rem; color: var(--text-2); }
.phase-info { margin-top: 6px; font-size: 0.95rem; color: var(--text-2); }

/* Ohne Bewegung (ruhige Fassung, ohne JavaScript): die Bühne steht nicht fest, die fünf Phasen stehen mit Text untereinander bzw. nebeneinander */
.szene-buehne { padding-block: var(--abstand); }
@media (max-width: 959px) { .phasen { grid-template-columns: minmax(0, 1fr); gap: 18px; } .szene-raster { grid-template-columns: minmax(0, 1fr); } .trommel { width: min(100%, 420px); } }

@media (prefers-reduced-motion: no-preference) {
  /* Die Bühne bleibt stehen, während 460 Bildschirmhöhen lang gescrollt wird; --p läuft von 0 bis 1 */
  .js .szene { height: 460vh; }
  .js .szene-buehne { position: sticky; top: 0; height: 100svh; min-height: 0; padding: calc(var(--kopf-hoehe) + 6px) 0 clamp(14px, 3svh, 30px); overflow: clip; }
  .js .phase { opacity: 0.45; transition: opacity 0.3s ease, border-color 0.3s ease; }
  .js .phase.erreicht { opacity: 0.85; border-top-color: var(--text-3); }
  .js .phase.aktiv { opacity: 1; border-top-color: var(--akzent); }
  .js .phase-info { display: none; }
  .js .trommel { rotate: calc(var(--p, 1) * 300deg); will-change: rotate; }
  .js .stufe { scale: calc(1 + var(--c, 1) * 0.2); }
  .js .stufe--0 { opacity: clamp(0, calc(1 - max(var(--s, 4) - 0, 0 - var(--s, 4))), 1); }
  .js .stufe--1 { opacity: clamp(0, calc(1 - max(var(--s, 4) - 1, 1 - var(--s, 4))), 1); }
  .js .stufe--2 { opacity: clamp(0, calc(1 - max(var(--s, 4) - 2, 2 - var(--s, 4))), 1); }
  .js .stufe--3 { opacity: clamp(0, calc(1 - max(var(--s, 4) - 3, 3 - var(--s, 4))), 1); }
  .js .stufe--4 { opacity: clamp(0, calc(1 - max(var(--s, 4) - 4, 4 - var(--s, 4))), 1); }
  .js .pin { opacity: 0; transition: opacity 0.4s ease; }
  .js .pin.erreicht { opacity: 1; }
  .js .knackt .knall { animation: knall 1.2s ease-out; }
  @keyframes knall { from { opacity: 0.95; transform: scale(1); } to { opacity: 0; transform: scale(6); } }
}
@media (prefers-reduced-motion: reduce) { .pin { opacity: 1; } }

@media (max-width: 959px) {
  .szene h2 { font-size: clamp(2rem, 8.4vw, 3rem); max-width: none; }
  .achse { font-size: 26px; }
  .notiz { font-size: 32px; }
  .anzeige { bottom: 22%; }
  .anzeige-zeit { font-size: 2.3rem; }
  .anzeige-temp { font-size: 1.5rem; }
  .pin--wende .notiz, .pin--gelb .notiz { display: none; }
}
@media (max-width: 959px) and (prefers-reduced-motion: no-preference) {
  .js .szene-buehne { align-content: start; gap: 6px; padding-top: calc(var(--kopf-hoehe) + 4px); }
  .js .szene-raster { gap: 8px; }
  .js .trommel { width: min(54vw, 29svh); }
  .js .szene .abschnitt-satz { display: none; }
  .js .phasen { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .js .phase { padding-top: 6px; }
  .js .phase b { font-size: 1.15rem; }
  .js .phase-zahl { display: none; }
  .js .phase-text { min-height: 2.6em; font-size: 0.95rem; margin-top: 4px; }
  .js .kurve { margin-top: 16px; }
}

/* ---------- 3 · Sorten: drei Fototafeln in eigener Geschwindigkeit */
.sorten { position: relative; padding-block: var(--abstand); overflow-x: clip; }
.sorten-kopf h2 { font-size: clamp(2.6rem, 1rem + 6vw, 6.8rem); max-width: 14ch; }
.sorten-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 40px); margin-top: clamp(40px, 6vw, 96px); align-items: start; }
.sorte-bild { overflow: hidden; aspect-ratio: 4 / 5; background: #17110d; }
.sorte-bild img { width: 100%; height: 100%; object-fit: cover; }
.sorte h3 { margin-top: 18px; font-size: clamp(3.6rem, 1rem + 6.4vw, 8rem); line-height: 0.84; }
.sorte-zahl { margin-top: 14px; font-size: 1.1rem; }
.sorte-zahl strong { font-family: var(--schrift-display); font-size: 2.1rem; font-weight: 700; line-height: 1; margin-right: 6px; }
.sorte-text { margin-top: 6px; max-width: 24rem; color: var(--text-2); }
.sorte-preis { margin-top: 12px; font-family: var(--schrift-display); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.03em; text-transform: uppercase; }
.sorten-fuss { margin-top: clamp(72px, 10vw, 180px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.sorten-fuss .beruhigung { flex-basis: auto; }
/* Der Regelbruch: die dunkle Tafel läuft rechts über die Inhaltskante bis an den Bildschirmrand */
.sorte--dunkel .sorte-bild { margin-right: calc(-1 * var(--kante-px)); }
@media (max-width: 959px) {
  .sorten-raster { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .sorte-bild { aspect-ratio: 4 / 3; }
  .sorte--dunkel .sorte-bild { margin-right: calc(-1 * var(--rand)); }
  .sorte h3 { font-size: clamp(3.4rem, 18vw, 5.2rem); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .sorte--hell { translate: 0 calc((var(--p, 0.5) - 0.5) * -16svh); }
  .js .sorte--mittel { translate: 0 calc((var(--p, 0.5) - 0.5) * -46svh); }
  .js .sorte--dunkel { translate: 0 calc((var(--p, 0.5) - 0.5) * -82svh); }
  .js .sorte-bild img { scale: max(1, calc(1.6 - var(--p, 0.5) * 1.2)); }
}
@media (max-width: 959px) and (prefers-reduced-motion: no-preference) {
  .js .sorte--hell, .js .sorte--mittel, .js .sorte--dunkel { translate: 0 0; }
  .js .sorte--mittel .sorte-bild img { translate: calc((0.5 - var(--p, 0.5)) * 30%) 0; }
  .js .sorte-bild img { scale: max(1.12, calc(2 - var(--p, 0.5) * 1.8)); }
}

/* ---------- 4 · Herkunft: Vollbild-Foto, darunter drei Höhenstufen */
.herkunft { position: relative; overflow-x: clip; }
.herkunft-buehne { position: relative; isolation: isolate; min-height: min(96svh, 880px); display: grid; align-items: center; }
.herkunft-bild { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #17110d; }
.herkunft-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 58%; }
.herkunft-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 17, 13, 0.92) 0%, rgba(23, 17, 13, 0.7) 36%, rgba(23, 17, 13, 0) 70%); }
.herkunft-kopf { padding-block: calc(var(--kopf-hoehe) + 40px) 64px; }
.herkunft-kopf h2 { font-size: clamp(2.6rem, 1rem + 5.6vw, 6.4rem); max-width: 11ch; }
.herkunft-kopf .abschnitt-satz { max-width: 30rem; color: var(--text); }
.farmen { list-style: none; margin-block: 0; padding: clamp(32px, 4vw, 56px) 0 var(--abstand); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 48px); }
.farm { display: grid; gap: 4px; align-content: start; }
.farm::before { content: ""; display: block; height: 5px; margin-bottom: 14px; background: var(--akzent); transform-origin: left; }
.farm--2 { margin-top: clamp(32px, 5vw, 72px); }
.farm--3 { margin-top: clamp(64px, 10vw, 144px); }
.hoehe { font-family: var(--schrift-display); font-weight: 700; font-size: clamp(3.6rem, 1rem + 6.4vw, 8rem); line-height: 0.88; color: var(--akzent); }
.farm-name { font-family: var(--schrift-display); font-weight: 600; font-size: 1.6rem; letter-spacing: 0.03em; text-transform: uppercase; }
.farm-text { max-width: 22rem; color: var(--text-2); }
@media (max-width: 959px) {
  .herkunft-buehne { min-height: 0; align-items: end; }
  .herkunft-bild::after { background: linear-gradient(0deg, rgba(23, 17, 13, 0.94) 0%, rgba(23, 17, 13, 0.7) 45%, rgba(23, 17, 13, 0.1) 100%); }
  .herkunft-kopf { padding-block: calc(var(--kopf-hoehe) + 120px) 40px; }
  .farmen { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .farm--2, .farm--3 { margin-top: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .herkunft-bild img { scale: max(1, calc(1.7 - var(--p, 1) * 0.95)); translate: calc((var(--p, 1) - 0.4) * -5%) 0; transform-origin: 70% 60%; }
  .js .herkunft-kopf { translate: 0 calc((0.4 - var(--p, 1)) * 24svh); }
  .js .farm { --f: clamp(0, calc((var(--p, 1) - 0.42 - var(--i, 0) * 0.07) * 6), 1); translate: 0 calc((1 - var(--f)) * 14svh); opacity: calc(0.2 + var(--f) * 0.8); }
  .js .farm::before { scale: var(--f) 1; }
  .js .farm--1 { --i: 0; } .js .farm--2 { --i: 1; } .js .farm--3 { --i: 2; }
}

/* ---------- 5 · Wer: Foto der Hände, daneben das Röstprotokoll von Hand */
.wer { padding-block: var(--abstand); overflow-x: clip; }
.wer-raster { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.wer-bild { margin: 0; aspect-ratio: 3 / 4; overflow: hidden; background: #17110d; }
.wer-bild img { width: 100%; height: 100%; object-fit: cover; }
.wer h2 { font-size: clamp(2.6rem, 1rem + 5vw, 5.8rem); max-width: 11ch; }
.logbuch { position: relative; margin-top: 34px; max-width: 34rem; padding: 18px 28px 24px 34px; background-color: #f6efe3; color: #17110d; rotate: -1.4deg; box-shadow: 0 22px 34px -20px rgba(23, 17, 13, 0.6);
  background-image: linear-gradient(90deg, transparent 22px, rgba(143, 26, 18, 0.5) 22px 24px, transparent 24px), repeating-linear-gradient(transparent 0 calc(2.45rem - 1px), rgba(23, 17, 13, 0.18) calc(2.45rem - 1px) 2.45rem); background-position: 0 0, 0 18px; }
.lb { margin: 0; font-family: var(--schrift-hand); font-size: clamp(1.45rem, 1.1rem + 0.9vw, 2rem); line-height: 2.45rem; white-space: nowrap; }
.lb--6 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; text-decoration-color: rgba(143, 26, 18, 0.7); }
@media (max-width: 959px) { .wer-raster { grid-template-columns: minmax(0, 1fr); } .wer-bild { aspect-ratio: 4 / 3; } .lb { white-space: normal; } .logbuch { padding-inline: 30px 18px; } }
@media (prefers-reduced-motion: no-preference) {
  .js .wer-bild img { scale: max(1.02, calc(1.7 - var(--p, 1) * 1.1)); translate: 0 calc((0.5 - var(--p, 1)) * 28%); }
  .js .wer-bild { translate: 0 calc((0.5 - var(--p, 1)) * -12svh); }
  .js .lb { --l: clamp(0, calc((var(--p, 1) - 0.26 - var(--i, 0) * 0.05) * 8), 1); clip-path: inset(0 calc((1 - var(--l)) * 100%) 0 0); }
  .js .lb--1 { --i: 0; } .js .lb--2 { --i: 1; } .js .lb--3 { --i: 2; } .js .lb--4 { --i: 3; } .js .lb--5 { --i: 4; } .js .lb--6 { --i: 5; }
}

/* ---------- 6 · Fragen: Plakatzeilen, die abwechselnd von links und rechts einlaufen */
.fragen { padding-block: var(--abstand); overflow-x: clip; }
.fragen h2 { font-size: clamp(2.6rem, 1rem + 5vw, 5.8rem); max-width: 12ch; }
.fragen-liste { margin-top: clamp(28px, 4vw, 56px); }
.fragen details { position: relative; }
.fragen details::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--text-3); transform-origin: left; }
.fragen summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 44px; padding: clamp(18px, 2.4vw, 30px) 0; font-family: var(--schrift-display); font-weight: 700; font-size: clamp(1.7rem, 0.9rem + 2.9vw, 3.5rem); line-height: 1; text-transform: uppercase; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; flex: none; font-size: 1.3em; line-height: 1; color: var(--akzent); transition: rotate 0.3s var(--aus); }
.fragen details[open] summary::after { rotate: 45deg; }
.fragen details p { max-width: 46rem; padding-bottom: 28px; color: var(--text-2); font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); }
@media (prefers-reduced-motion: no-preference) {
  .js .fragen details { --f: clamp(0, calc((var(--p, 1) - 0.08) * 4.5), 1); --r: -1; translate: calc((1 - var(--f)) * var(--r) * 16vw) 0; opacity: calc(0.15 + var(--f) * 0.85); }
  .js .fragen details:nth-child(even) { --r: 1; }
  .js .fragen details::before { scale: var(--f) 1; }
}
@media (max-width: 959px) and (prefers-reduced-motion: no-preference) { .js .fragen details { translate: calc((1 - var(--f)) * var(--r) * 40vw) 0; } }

/* ---------- 7 · Bestellen: Foto der drei Beutel, Formular, Fahrplan von Donnerstag bis Samstag */
.bestellen { overflow-x: clip; }
.bestellen-kopf h2 { font-size: clamp(2.6rem, 1rem + 5.4vw, 6.4rem); max-width: 14ch; }
.set-bild { position: relative; margin-top: clamp(32px, 5vw, 64px); height: min(66svh, 620px); overflow: hidden; background: #17110d; }
.set-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 64%; }
.bestellen .kontakt-raster { margin-top: clamp(40px, 6vw, 88px); }
.formular { max-width: 34rem; }
.feld input, .feld textarea, .feld select { border-width: 2px; }
.feld label { color: var(--text); font-weight: 600; }
.fahrplan { position: relative; list-style: none; margin: 0 0 32px; padding: 0 0 0 38px; display: grid; gap: 22px; }
.fahrplan::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 5px; background: var(--text); transform-origin: top; scale: 1 var(--g, 1); }
.fahrplan li { position: relative; display: grid; grid-template-columns: 3.3rem 6.2rem minmax(0, 1fr); gap: 0 12px; align-items: baseline; }
.fahrplan li::before { content: ""; position: absolute; left: -38px; top: 0.55rem; width: 19px; height: 19px; box-sizing: border-box; border-radius: 50%; background: var(--grund); border: 5px solid var(--text); }
.fahrplan b { font-family: var(--schrift-display); font-weight: 700; font-size: 2.6rem; line-height: 0.9; text-transform: uppercase; }
.fp-zeit { font-family: var(--schrift-display); font-weight: 600; font-size: 1.4rem; letter-spacing: 0.04em; }
.fp-text { color: var(--text-2); }
.direkt p { margin-top: 10px; color: var(--text-2); }
@media (max-width: 959px) { .set-bild { height: 44svh; } .fahrplan li { grid-template-columns: 2.8rem 5.4rem minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .js .set-bild img { scale: max(1, calc(1.75 - var(--p, 1) * 1.5)); }
  .js .set-bild { clip-path: inset(0 calc((1 - clamp(0, calc((var(--p, 1) - 0.12) * 5), 1)) * 12%) 0 calc((1 - clamp(0, calc((var(--p, 1) - 0.12) * 5), 1)) * 12%)); }
  .js .fahrplan { --g: clamp(0, calc((var(--p, 1) - 0.18) * 3), 1); }
}

/* ---------- Fuß und Rechtliches */
.fuss { border-top: 4px solid var(--text); }
.rechtliches .seite-kopf h1 { font-size: clamp(2.6rem, 1rem + 5vw, 5.4rem); }
.rechtliches .lesetext h2 { font-size: 1.9rem; }

/* ---------- Der erste Moment (einmal): das Foto öffnet sich von rechts, die drei Zeilen steigen auf */
@media (prefers-reduced-motion: no-preference) {
  .js .anfang-bild { animation: oeffnen 1.3s var(--aus) backwards; }
  @keyframes oeffnen { from { clip-path: inset(0 0 0 100%); } }
  .js .titel .zeile { animation: steigt 0.95s var(--aus) backwards; }
  .js .titel .zeile:nth-child(1) { animation-delay: 0.1s; } .js .titel .zeile:nth-child(2) { animation-delay: 0.22s; } .js .titel .zeile:nth-child(3) { animation-delay: 0.34s; }
  @keyframes steigt { from { translate: 0 40%; opacity: 0; } }
  .js .unterzeile, .js .beleg, .js .handlung { animation: einblenden 0.9s var(--aus) 0.55s backwards; }
  @keyframes einblenden { from { translate: 0 16px; opacity: 0; } }

  /* beim Weiterscrollen: das Foto zoomt in die Flamme, der Rahmen bleibt zurück, die Schrift zieht nach oben weg */
  .js .anfang-bild { translate: 0 calc(var(--p, 0) * 16svh); }
  .js .anfang-rahmen img { scale: calc(1.02 + var(--p, 0) * 0.5); translate: calc(var(--p, 0) * -6%) calc(var(--p, 0) * -9%); }
  .js .anfang-text { translate: 0 calc(var(--p, 0) * -22svh); opacity: calc(1 - var(--p, 0) * 1.25); }
}
.einheit { text-transform: none; }

/* Handy: kleinere Flächen, darum stärkere Bewegung (mindestens rund ein Sechstel der Bildhöhe je Abschnitt) */
@media (max-width: 959px) and (prefers-reduced-motion: no-preference) {
  .js .anfang-rahmen img { scale: calc(1.02 + var(--p, 0) * 1.0); }
  .js .wer-bild img { scale: max(1.02, calc(2.2 - var(--p, 1) * 1.8)); }
  .js .set-bild img { scale: max(1, calc(2.3 - var(--p, 1) * 2.4)); }
  .js .szene .kurve-punkt { r: 12; }
}
