/* seite.css · Polarluft (Beispiel), Klimageräte für Dachgeschoßwohnungen in Wien.
 * Hell, Eisweiß und Tiefsee, ein Akzent Tomatenrot aus Liegestuhl, Kissen und Handtuch. Türkis nur im Wasser.
 * Schrift: Unbounded (Überschriften, Zahlen wie auf einem Thermostat), Nunito Sans (Text). Ecken: Knöpfe rund,
 * Bilder 14 px, Felder 10 px. Regelbruch (D26): die Zahl 22° in der Überschrift, beim Laden kurz 34° in Tomatenrot.
 * Bewegung: jeder Abschnitt hat seine eigene, leise Scroll-Bewegung über --p (js/bewegung.js), alles in einem Block
 * unter „prefers-reduced-motion: no-preference“ und .js; ruhig und ohne JavaScript steht alles im Endzustand. */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root { --tiefsee-grad: #0f3a4f; interpolate-size: allow-keywords; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.035em; }
.marke { font-weight: 700; letter-spacing: -0.03em; }
.knopf { font-weight: 700; }
.abschnitt h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.3rem); line-height: 1.08; max-width: 19ch; }
.abschnitt-satz { margin-top: 20px; max-width: 38rem; color: var(--text-2); font-size: var(--t-mittel); line-height: 1.5; }

/* ---------- 1 · Kopf: Foto randlos, Schrift oben links im Himmel */
.anfang { display: block; padding-top: 0; min-height: 100svh; overflow: clip; isolation: isolate; }
.anfang-bild { position: absolute; inset: 0; z-index: -1; background: var(--grund); }
.anfang-foto, .anfang-szene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
.anfang-szene { opacity: 0; transition: opacity 0.6s ease; }
.anfang-szene.bereit { opacity: 1; }
/* heller Schleier nur links oben, damit Text über Dächern und Mauer sicher lesbar bleibt (kein Glas, keine Unschärfe) */
.anfang-schleier { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(245, 249, 250, 0.55) 0, rgba(245, 249, 250, 0) 120px),
              linear-gradient(100deg, rgba(245, 249, 250, 0.8) 0%, rgba(245, 249, 250, 0.58) 30%, rgba(245, 249, 250, 0) 56%); }
.anfang-text { padding-top: calc(var(--kopf-hoehe) + clamp(20px, 6vh, 72px)); padding-bottom: 48px; }
.titel { font-size: clamp(2rem, 1.1rem + 2.9vw, 3.5rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 13em; }
.titel-zeile { display: block; }
.titel-zeile--grad { display: flex; align-items: baseline; gap: 0.28em; margin-top: 0.06em; }
.grad { display: inline-flex; align-items: flex-start; font-size: clamp(4.6rem, 1.6rem + 8.4vw, 10.4rem); line-height: 0.86; letter-spacing: -0.06em;
  color: color-mix(in oklab, var(--tomate) calc(var(--heiss, 0) * 100%), var(--tiefsee-grad)); }
.grad-zahl { display: inline-block; min-width: 1.42em; text-align: right; font-variant-numeric: tabular-nums; }
.grad-zeichen { font-size: 0.62em; margin-left: 0.02em; line-height: 1; }
.anfang .unterzeile { max-width: 33rem; margin-top: 20px; color: var(--text); font-size: clamp(1.06rem, 0.95rem + 0.45vw, 1.32rem); }
.anfang .handlung { flex-direction: column; align-items: flex-start; gap: 12px; }
.anfang .beleg { color: var(--text); }
.anfang .beruhigung { max-width: 30rem; color: var(--text-2); }

/* Handy hochkant: Text oben auf Eisweiß, Foto darunter bis zum Rand */
@media (max-width: 759px) and (min-height: 561px) {
  .anfang { display: flex; flex-direction: column; align-items: stretch; }
  .anfang-text { order: 1; padding-bottom: 0; padding-top: calc(var(--kopf-hoehe) + 8px); }
  .anfang-bild { position: relative; inset: auto; order: 2; flex: 1 0 auto; min-height: 42svh; margin-top: 18px; z-index: 0; background: var(--grund); }
  .anfang-foto, .anfang-szene { object-position: 72% 40%; }
  .anfang-schleier { inset: -3px 0 0 0; background: linear-gradient(180deg, var(--grund) 3px, rgba(245, 249, 250, 0) 22%); }
  .titel { font-size: clamp(1.75rem, 1.1rem + 3.2vw, 2.4rem); }
  .grad { font-size: clamp(4rem, 2rem + 9vw, 6rem); }
  .anfang .unterzeile { font-size: 1.06rem; margin-top: 12px; }
  .anfang .beleg { margin-top: 10px; }
  .anfang .handlung { margin-top: 16px; }
}
/* Flache Fenster (Handy quer, kleines Laptopfenster): Text links auf Eisweiß, Foto rechts */
@media (max-height: 560px) {
  .anfang { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: stretch; }
  .anfang-text { width: auto; margin: 0 24px 0 var(--kante); padding-top: calc(var(--kopf-hoehe) + 4px); padding-bottom: 16px; }
  .anfang-bild { position: relative; inset: auto; grid-column: 2; grid-row: 1; z-index: 0; background: var(--grund); }
  .anfang-foto, .anfang-szene { object-position: 74% 40%; }
  .anfang-schleier { inset: 0 0 0 -3px; background: linear-gradient(90deg, var(--grund) 3px, rgba(245, 249, 250, 0) 16%); }
  .titel { font-size: clamp(1.35rem, 0.9rem + 1.6vw, 2rem); }
  .grad { font-size: clamp(2.8rem, 1.6rem + 4vw, 4.4rem); }
  .anfang .unterzeile { font-size: 0.98rem; margin-top: 8px; line-height: 1.4; }
  .anfang .beleg { margin-top: 6px; font-size: 0.85rem; }
  .anfang .handlung { margin-top: 10px; gap: 6px; }
  .anfang .knopf { min-height: 46px; }
  .anfang .beruhigung { font-size: 0.82rem; line-height: 1.4; }
}

/* ---------- 2 · Hitze: zwei große Zahlen, daneben das Haus als Wärmebild */
.hitze-raster { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
@media (min-width: 960px) { .hitze-raster { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); } }
.hitze-zahlen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); margin-top: clamp(32px, 5vw, 56px); }
.zahl { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 2px solid var(--text); }
.zahl-wert { font-family: var(--schrift-display); font-weight: 500; font-size: clamp(2.6rem, 1.7rem + 2.8vw, 4.3rem); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.zahl-wert > span { color: var(--akzent); }
.zahl-text { color: var(--text-2); font-size: 1rem; line-height: 1.45; max-width: 18rem; }
.haus { margin: 0; padding: clamp(20px, 3vw, 32px); border-radius: var(--rund-bild); background: #fbfdfd; box-shadow: 0 1px 0 var(--linie), 0 24px 48px -36px rgba(15, 42, 56, 0.45); }
.haus figcaption { font-size: var(--t-klein); color: var(--text-3); line-height: 1.45; max-width: 30rem; }
.haus-etagen { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.etage { display: grid; grid-template-columns: 7.2rem minmax(0, 1fr) 3.4rem; align-items: center; gap: 14px; font-size: 0.95rem; }
.etage-name { color: var(--text-2); }
.etage-wert { font-family: var(--schrift-display); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.etage-balken { height: 38px; border-radius: 8px; background: linear-gradient(90deg, #2d6f93 0%, #2fb8c4 34%, #f3b4a2 70%, #e2432d 100%) left / calc(100% / var(--w)) 100% no-repeat;
  clip-path: inset(0 calc(100% - var(--w) * 100%) 0 0 round 8px); }
.etage--1 { --w: 0.44; --d: 0; } .etage--2 { --w: 0.47; --d: 0.05; } .etage--3 { --w: 0.53; --d: 0.1; } .etage--4 { --w: 0.66; --d: 0.15; } .etage--5 { --w: 1; --d: 0.2; }
.etage--5 .etage-name, .etage--5 .etage-wert { color: var(--text); font-weight: 700; }
@media (max-width: 520px) { .hitze-zahlen { grid-template-columns: minmax(0, 1fr); } .etage { grid-template-columns: 6rem minmax(0, 1fr) 2.8rem; gap: 10px; font-size: 0.9rem; } }

/* ---------- 3 · Ein Tag unterm Dach: angeheftete Bühne, links die Wohnung, rechts Uhr und Zahl */
.tag { position: relative; background: var(--grund); }
.tag-buehne { position: relative; min-height: 100svh; display: grid; }
.tag-bild { position: relative; overflow: hidden; min-height: 56svh; background: #e9eef0; }
.tag-rahmen { position: absolute; top: 50%; left: 42%; width: max(100%, calc(56svh * 1.3334)); aspect-ratio: 1152 / 864; transform: translate(-42%, -50%); }
.tag-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tag-foto--warm { filter: sepia(0.42) saturate(1.4) hue-rotate(-14deg) brightness(1.03); opacity: 0; will-change: opacity; }
/* Sonnenfleck aus dem Dachfenster: weich, warm, schräg wie das Fenster; wandert mit der Uhrzeit die Wand herunter */
.tag-licht { position: absolute; left: 56%; top: 4%; width: 26%; height: 34%; opacity: 0; filter: blur(12px); will-change: transform, opacity;
  background: radial-gradient(closest-side, rgba(255, 238, 210, 0.85), rgba(255, 238, 210, 0.45) 55%, rgba(255, 236, 205, 0)); }
.tag-luft { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tag-luft path { fill: none; stroke: url(#luftverlauf); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 96 84; stroke-dashoffset: 0; opacity: 0.9; }
.tag-text { position: relative; padding: clamp(28px, 4vw, 48px) var(--kante) clamp(28px, 4vw, 48px); display: grid; align-content: center; gap: 18px; }
.tag-text h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.1rem); }
.tag-hinweis { color: var(--text-2); max-width: 30rem; }
.tag-anzeige { display: flex; align-items: baseline; gap: 24px; margin-top: 8px; }
.tag-uhr { font-family: var(--schrift-display); font-weight: 500; font-size: clamp(1.4rem, 1rem + 1.2vw, 2.1rem); color: var(--text-2); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.tag-grad { font-family: var(--schrift-display); font-weight: 500; font-size: clamp(3.6rem, 2.2rem + 4vw, 6.4rem); line-height: 0.9; letter-spacing: -0.06em; font-variant-numeric: tabular-nums;
  color: color-mix(in oklab, var(--tomate) calc(var(--heiss, 0) * 100%), var(--tiefsee-grad)); }
.tag-zustaende { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 28rem; }
.tag-zustaende strong { color: var(--text); }
.tag-zustaende li { color: var(--text-2); }
.tag-leiste { list-style: none; margin: 8px 0 0; padding: 18px 0 0; display: flex; justify-content: space-between; gap: 6px; position: relative; font-size: 0.8rem; color: var(--text-3); font-variant-numeric: tabular-nums; max-width: 30rem; }
.tag-leiste::before, .tag-leiste::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--linie); }
.tag-leiste::after { background: var(--text); transform-origin: left; transform: scaleX(var(--p, 1)); }
@media (min-width: 960px) {
  .tag-buehne { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
  .tag-bild { min-height: 100svh; }
  .tag-rahmen { width: max(100%, calc(100svh * 1.3334)); }
  .tag-text { padding-left: clamp(32px, 4vw, 64px); }
}

/* ---------- 4 · Technik: Außengerät groß, Luft strömt um die Überschrift */
.technik { background: var(--grund-2); overflow-x: clip; }
.technik-raster { display: grid; gap: clamp(36px, 5vw, 80px); align-items: center; }
@media (min-width: 900px) { .technik-raster { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.technik-bild { margin: 0; }
.technik-bild img { width: 100%; border-radius: var(--rund-bild); }
.technik-bild figcaption { margin-top: 12px; font-size: var(--t-klein); color: var(--text-3); }
.stroemung { position: relative; }
.stroemung-flaeche { position: absolute; inset: -36px -28px; width: calc(100% + 56px); height: calc(100% + 72px); pointer-events: none; opacity: 0; transition: opacity 0.8s ease; }
.stroemung-flaeche.bereit { opacity: 1; }
.stroemung h2 { position: relative; }
.angaben { margin: clamp(28px, 4vw, 44px) 0 0; display: grid; gap: 22px; position: relative; padding-left: 26px; }
.angaben::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 2px; background: var(--akzent); transform-origin: top; }
.angaben div { display: grid; gap: 4px; }
.angaben dt { font-family: var(--schrift-display); font-weight: 500; font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); letter-spacing: -0.04em; }
.angaben dd { margin: 0; color: var(--text-2); max-width: 30rem; }

/* ---------- 5 · Ablauf: vier Schritte quer, Grund wie Poolfliesen */
.ablauf { background-color: var(--grund);
  background-image: linear-gradient(rgba(47, 184, 196, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 184, 196, 0.1) 1px, transparent 1px);
  background-size: 32px 32px; background-position: center top; overflow-x: clip; }
.schritte { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; gap: 28px; position: relative; }
.schritte::before { content: ""; position: absolute; background: var(--text); transform-origin: left top; }
.schritt { position: relative; display: grid; gap: 10px; align-content: start; }
.schritt-nr { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--grund); border: 2px solid var(--akzent); color: var(--akzent); font-family: var(--schrift-display); font-weight: 700; position: relative; }
.schritt h3 { font-size: 1.2rem; letter-spacing: -0.03em; margin-top: 8px; }
.schritt p { color: var(--text-2); }
.schritt:nth-child(1) { --i: 0; } .schritt:nth-child(2) { --i: 1; } .schritt:nth-child(3) { --i: 2; } .schritt:nth-child(4) { --i: 3; }
@media (min-width: 900px) {
  .schritte { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
  .schritte::before { left: 24px; right: 0; top: 23px; height: 2px; }
}
@media (max-width: 899px) { .schritte { padding-left: 0; } .schritte::before { left: 23px; top: 24px; bottom: 24px; width: 2px; transform-origin: top; } .schritt { grid-template-columns: 48px minmax(0, 1fr); column-gap: 18px; } .schritt h3, .schritt p { grid-column: 2; } .schritt-nr { grid-row: 1 / span 2; } .schritt h3 { margin-top: 10px; } }

/* ---------- 6 · Preise als Lamellen */
.lamellen { list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0; display: grid; gap: 12px; perspective: 1100px; }
.lamelle { display: grid; grid-template-columns: minmax(10rem, 0.9fr) minmax(0, 1.4fr) auto; align-items: center; gap: 12px 28px; padding: 26px clamp(20px, 3vw, 36px);
  border-radius: 14px; border: 1px solid var(--linie); background: linear-gradient(180deg, #ffffff 0%, #ffffff 62%, #edf5f6 100%);
  box-shadow: inset 0 1px 0 #ffffff, 0 14px 26px -22px rgba(15, 42, 56, 0.55); transform-origin: 50% 0; position: relative; }
.lamelle::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 7px; height: 1px; background: var(--linie); }
.lamelle:nth-child(1) { --i: 0; } .lamelle:nth-child(2) { --i: 1; } .lamelle:nth-child(3) { --i: 2; }
.lamelle-name { font-family: var(--schrift-display); font-weight: 500; font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); letter-spacing: -0.03em; }
.lamelle-was { color: var(--text-2); }
.lamelle-preis { font-family: var(--schrift-display); font-weight: 700; font-size: clamp(1.3rem, 1.05rem + 0.8vw, 1.8rem); letter-spacing: -0.04em; white-space: nowrap; }
.lamelle:nth-child(3) .lamelle-preis { color: var(--akzent); }
.preise-fuss { margin-top: 24px; color: var(--text-2); max-width: 44rem; }
.preise-fuss strong { color: var(--text); }
@media (max-width: 720px) { .lamelle { grid-template-columns: minmax(0, 1fr) auto; } .lamelle-was { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- 7 · Fragen */
.fragen-raster { display: grid; gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
@media (min-width: 900px) { .fragen-raster { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.fragen-liste { border-top: 1px solid var(--linie); }
.fragen-liste details { border-bottom: 1px solid var(--linie); }
.fragen-liste summary { list-style: none; cursor: pointer; min-height: 64px; padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-weight: 700; font-size: 1.12rem; border-radius: 6px; }
.fragen-liste summary::-webkit-details-marker { display: none; }
.fragen-liste summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--linie-feld); font-family: var(--schrift-display); font-weight: 500; transition: transform 0.3s var(--aus), background-color 0.3s ease; }
.fragen-liste details[open] summary::after { transform: rotate(45deg); background: var(--grund-2); }
@media (hover: hover) and (pointer: fine) { .fragen-liste summary:hover::after { border-color: var(--akzent); } }
.fragen-liste details p { padding: 0 0 22px; color: var(--text-2); max-width: 36rem; }
.fragen-liste details::details-content { block-size: 0; overflow: hidden; transition: block-size 0.38s var(--aus), content-visibility 0.38s allow-discrete; }
.fragen-liste details[open]::details-content { block-size: auto; }

/* ---------- 8 · Kontakt */
.kontakt { background: var(--grund-2); overflow-x: clip; }
.kontakt-buehne { display: grid; gap: clamp(36px, 5vw, 80px); align-items: start; }
@media (min-width: 900px) { .kontakt-buehne { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); } }
.kontakt-bild { margin: 0; border-radius: var(--rund-bild); overflow: hidden; aspect-ratio: 3 / 4; }
.kontakt-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%; }
.kontakt h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.3rem); max-width: 16ch; }
.kontakt .abschnitt-satz { margin-bottom: 28px; }
.feld-paar { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .feld-paar { grid-template-columns: minmax(0, 1fr); } }
.kontakt .feld input, .kontakt .feld select { background-color: #fbfdfd; }
.kontakt .direkt { margin-top: 32px; }
@media (max-width: 899px) { .kontakt-bild { aspect-ratio: 4 / 3; } .kontakt-bild img { object-position: 45% 30%; } }

/* ---------- Bewegung (nur mit JavaScript und ohne „Bewegung reduzieren“) */
@media (prefers-reduced-motion: no-preference) {
  /* Kopf: Schrift zieht beim Scrollen nach oben und wird blass, das Foto fährt in js/pool.js heran */
  .js .anfang-text { transform: translate3d(0, calc(var(--p, 0) * -90px), 0); opacity: calc(1 - var(--p, 0) * 1.3); }

  /* Hitze: Balken füllen sich von unten nach oben, die Zahlen zählen (js/zahlen.js) */
  .js .etage-balken { --q: clamp(0, (var(--p, 1) - 0.06 - var(--d) * 0.8) * 5, 1); clip-path: inset(0 calc(100% - var(--w) * var(--q) * 100%) 0 0 round 8px); }
  .js .hitze-zahlen { transform: translate3d(0, calc((0.5 - var(--p, 0.5)) * 40px), 0); }

  /* Ein Tag: angeheftet, Werte setzt js/tag.js */
  .js .tag { height: 340svh; }
  .js .tag-buehne { position: sticky; top: 0; height: 100svh; min-height: 0; }
  .js .tag-bild { min-height: 0; }
  .js .tag-rahmen { transform: translate(-42%, -50%) scale(calc(1.02 + var(--p, 1) * 0.05)); }
  .js .tag-foto--warm { opacity: var(--hitze, 0); }
  .js .tag-licht { opacity: var(--licht-a, 0); transform: translate3d(calc(var(--licht, 1) * -105%), calc(var(--licht, 1) * 120%), 0) skewX(-24deg) rotate(8deg); }
  .js .tag-luft path { stroke-dashoffset: calc(var(--luft, 1) * -900); opacity: var(--luft-a, 0.9); }
  .js .tag-luft path:nth-of-type(2) { stroke-dashoffset: calc(-60 + var(--luft, 1) * -960); }
  .js .tag-luft path:nth-of-type(3) { stroke-dashoffset: calc(-120 + var(--luft, 1) * -860); }
  .js .tag-luft path:nth-of-type(4) { stroke-dashoffset: calc(-30 + var(--luft, 1) * -1000); }
  .js .tag-zustaende { grid-template-areas: "eins"; min-height: 4.8em; }
  .js .tag-zustaende li { grid-area: eins; opacity: 0; transform: translate3d(0, 10px, 0); transition: opacity 0.35s ease, transform 0.35s var(--aus); }
  .js .tag[data-zustand="1"] [data-schritt="1"], .js .tag[data-zustand="2"] [data-schritt="2"], .js .tag[data-zustand="3"] [data-schritt="3"],
  .js .tag[data-zustand="4"] [data-schritt="4"], .js .tag[data-zustand="5"] [data-schritt="5"], .js .tag[data-zustand="6"] [data-schritt="6"],
  .js .tag:not([data-zustand]) [data-schritt="6"] { opacity: 1; transform: none; }

  /* Technik: Bild gleitet im Rahmen, die Linie der Angaben zeichnet sich */
  .js .technik-bild { overflow: hidden; border-radius: var(--rund-bild); }
  .js .technik-bild img { transform: translate3d(0, calc((0.5 - var(--p, 0.5)) * 7%), 0) scale(1.1); }
  .js .technik-bild figcaption { display: none; }
  .js .angaben::before { transform: scaleY(clamp(0, (var(--p, 1) - 0.2) * 2.6, 1)); }
  .js .angaben div { transform: translate3d(calc((1 - clamp(0, (var(--p, 1) - 0.22) * 2.6, 1)) * 20px), 0, 0); }

  /* Ablauf: Linie wächst, Schritte rücken nacheinander ein */
  .js .schritte::before { transform: scale(clamp(0, (var(--p, 1) - 0.16) * 2.4, 1), 1); }
  .js .schritt { --q: clamp(0, (var(--p, 1) - 0.16 - var(--i) * 0.08) * 4.5, 1); transform: translate3d(calc((1 - var(--q)) * 56px), 0, 0); opacity: calc(0.35 + var(--q) * 0.65); }

  /* Preise: Lamellen klappen nacheinander auf */
  .js .lamelle { --q: clamp(0, (var(--p, 1) - 0.14 - var(--i) * 0.07) * 4.4, 1); transform: rotateX(calc((1 - var(--q)) * -74deg)); opacity: calc(0.35 + var(--q) * 0.65); }

  /* Fragen: die zwei Spalten gleiten gegeneinander */
  .js .fragen h2 { transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * -50px), 0); }
  .js .fragen-liste { transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * 34px), 0); }

  /* Kontakt: das Abendbild steigt leicht im Rahmen */
  .js .kontakt-bild img { transform: translate3d(0, calc((1 - var(--p, 1)) * 9%), 0) scale(1.12); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 899px) {
  .js .schritte::before { transform: scale(1, clamp(0, (var(--p, 1) - 0.12) * 2.2, 1)); }
  .js .schritt { transform: translate3d(0, calc((1 - var(--q)) * 30px), 0); }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 959px) {
  .js .tag-buehne { grid-template-rows: 52svh minmax(0, 1fr); }
  .js .tag-text { align-content: start; padding-top: 20px; gap: 10px; }
  .js .tag-hinweis { display: none; }
  .tag-rahmen { width: max(100%, calc(52svh * 1.3334)); }
}
