/* seite.css · Kreislauf Haustechnik (Beispiel), lp-204.
 * Kobaltblau der Blauen Stunde, ein Akzent Kupfer (die Kältemittelrohre), Cyan nur als Bedeutung „kalt“.
 * Hinter Kopf und Kreislauf-Bühne liegt eine feste Leinwand mit der Wärmepumpe (js/pumpe3d.js); alle anderen Abschnitte decken sie zu.
 * Jeder Abschnitt hat eine eigene laufende Bewegung: Frost taut, Kältemittel fließt, Punkte fließen in die Summe,
 * Punkt wandert über die Heizkurve, Welle über das Lineal, Glanz über das Typenschild, Thermometer füllen sich, Rohr fließt. */

@font-face { font-family: "Mona Sans Wdth"; src: url("../fonts/mona-sans-wdth-var.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Karla"; src: url("../fonts/karla-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --kalt: #8fe3ff;                 /* nur für „kalt“: Zahlen und Fluss, nie als zweiter Akzent für Knöpfe */
  --nacht: #163659;
  --schnee: #eef3f9;
  --t-h2: clamp(2rem, 1.3rem + 2.3vw, 3.5rem);
}
h1, h2, h3 { font-stretch: 112.5%; }
h2 { font-size: var(--t-h2); font-weight: 650; letter-spacing: -0.025em; }
h3 { font-weight: 620; }
.abschnitt-satz { max-width: 38rem; margin-top: 20px; color: var(--text-2); font-size: var(--t-mittel); line-height: 1.45; }
strong { font-weight: 600; color: var(--text); }

/* ---------- Bühne hinter der Seite */
.himmel { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 72% 16%, #3b72ac 0%, #2a5a90 42%, #1c4371 100%); }
.welt { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity 0.9s ease; }
.ist-3d.welt-an .welt { opacity: 1; }
main, .fuss { position: relative; z-index: 1; }
.fuss { background: var(--nacht); border-top-color: #2b4f7c; }

/* Flächen: Schnee (hell) und Nacht (dunkel) im Wechsel mit dem Kobalt des Kopfes */
.flaeche-schnee { --text: #132a4a; --text-2: #34496a; --text-3: #4b5f7e; --linie: #c9d6e6; --akzent: #a8501f; --auf-akzent: #ffffff; --grund-2: #e2eaf3; --linie-feld: #6f839f; background: var(--schnee); color: var(--text); }
.flaeche-nacht { --grund-2: #0f2a4b; --linie: #2f5482; background: var(--nacht); }
.leise, .fragen { background: var(--grund); }

/* ---------- Kopf (D32) */
.anfang { align-items: center; padding-bottom: 40px; }
.anfang-bild { position: absolute; inset: 0; z-index: -1; }
.anfang-bild img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.ist-3d .anfang-bild { visibility: hidden; }
.anfang-text { max-width: 35rem; }
.titel { position: relative; font-size: clamp(2.6rem, 1.3rem + 3.9vw, 5rem); font-weight: 690; line-height: 0.98; letter-spacing: -0.03em; }
.wort--warm { color: var(--akzent); }
.frost { position: absolute; left: -0.25em; top: -0.25em; width: calc(100% + 0.5em); height: calc(100% + 0.5em); pointer-events: none; }
.unterzeile { max-width: 31rem; }
.beleg strong { color: var(--text); }
.gehaeuse-knopf { display: none; position: absolute; right: var(--kante); bottom: 36px; }
@media (min-width: 861px) { .ist-3d .gehaeuse-knopf { display: inline-flex; } }
.teil-marke, .schritt-marke { position: fixed; left: 0; top: 0; z-index: 40; margin: 0; pointer-events: none; opacity: 0; transition: opacity 0.25s ease; will-change: transform; }
.teil-marke { display: grid; gap: 2px; max-width: 17rem; padding: 10px 14px 11px; border-radius: 12px; background: rgba(12, 31, 56, 0.9); box-shadow: 0 14px 34px -14px rgba(3, 10, 22, 0.7); font-size: 0.92rem; line-height: 1.35; }
.teil-marke strong { font-family: var(--schrift-display); font-weight: 650; font-stretch: 112.5%; }
.teil-marke span { color: var(--text-2); }
.schritt-marke { translate: -50% -150%; padding: 7px 16px; border-radius: var(--rund-knopf); background: var(--akzent); color: var(--auf-akzent); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.teil-marke.ist-da, .schritt-marke.ist-da { opacity: 1; }
@media (max-width: 860px) {
  .anfang { align-items: end; padding-bottom: 28px; }
  .ist-3d .anfang-text { padding-top: 34svh; }
  .ist-3d .anfang::before { content: ""; position: absolute; inset: 42% 0 0 0; z-index: -1; pointer-events: none; background: linear-gradient(to top, #24507f 0 62%, rgba(36, 80, 127, 0)); }
}

/* ---------- Kreislauf: angeheftete Bühne mit 3D, sonst eine Liste */
.kreislauf { position: relative; }
.kreislauf-buehne { padding-block: var(--abstand); }
.kreislauf-text { display: grid; align-content: center; }
.kreislauf-satz { max-width: 27rem; margin-top: 16px; color: var(--text-2); }
.schritte { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 44px; }
.schritt { max-width: 27rem; }
.schritt-zahl { font-family: var(--schrift-display); font-size: clamp(3rem, 2rem + 2.6vw, 4.6rem); font-weight: 700; font-stretch: 112.5%; line-height: 1; letter-spacing: -0.035em; color: var(--akzent); font-variant-numeric: tabular-nums; }
.schritt-zahl--kalt { color: var(--kalt); }
.schritt h3 { margin-top: 12px; font-size: var(--t-mittel); }
.schritt p:last-child { margin-top: 10px; color: var(--text-2); }
.ist-3d .kreislauf { height: 520svh; }
.ist-3d .kreislauf-buehne { position: sticky; top: 0; height: 100svh; padding: calc(var(--kopf-hoehe) + 16px) 0 32px; display: grid; }
.ist-3d .kreislauf-buehne::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(31, 70, 113, 0.92) 0%, rgba(31, 70, 113, 0.7) 30%, rgba(31, 70, 113, 0) 52%); }
.ist-3d .kreislauf-text { position: relative; }
.ist-3d .schritte { gap: 0; grid-template-areas: "s"; }
.js.ist-3d .schritt { grid-area: s; opacity: 0; transform: translateY(26px); transition: opacity 0.45s ease, transform 0.6s var(--aus); }
.js.ist-3d .schritt.ist-aktiv { opacity: 1; transform: none; }
@media (max-width: 860px) {
  .ist-3d .kreislauf-text { align-content: end; width: 100%; padding: 90px var(--rand) 4px; margin: 0; background: linear-gradient(to top, #24507f 0 58%, rgba(36, 80, 127, 0)); }
  .ist-3d .kreislauf-satz { display: none; }
  .ist-3d .schritte { margin-top: 14px; }
  .schritt-zahl { font-size: 2.6rem; }
}

/* ---------- Strom: die Gleichung, Punkte fließen in die Summe */
.strom h2 { max-width: 17ch; }
.gleichung { position: relative; width: fit-content; max-width: 100%; margin-top: clamp(40px, 6vw, 84px); padding-bottom: 46px; display: grid; grid-template-columns: repeat(5, auto); align-items: end; gap: 0 clamp(14px, 3vw, 44px); }
.glied, .zeichen { margin: 0; }
.glied { display: grid; gap: 10px; }
.glied-zahl { font-family: var(--schrift-display); font-size: clamp(4.2rem, 2rem + 7vw, 8.5rem); font-weight: 720; font-stretch: 112.5%; line-height: 0.86; letter-spacing: -0.045em; }
.glied--strom .glied-zahl { color: var(--akzent); }
.glied--luft .glied-zahl { color: #0b6c97; }
.glied-text { max-width: 9rem; color: var(--text-2); font-size: var(--t-klein); line-height: 1.3; }
.zeichen { align-self: center; padding-bottom: 1.6rem; font-family: var(--schrift-display); font-size: clamp(2rem, 1.4rem + 2vw, 3.6rem); color: var(--text-3); }
.fluss { position: absolute; left: 0; right: 0; bottom: 12px; height: 8px; container-type: inline-size; border-radius: 4px; background: #dbe5f0; overflow: hidden; }
.fluss i { position: absolute; left: 0; top: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--akzent); --von: 0cqw; animation: fliessen 4.8s linear infinite; }
.fluss i:nth-child(even) { background: #0b8bc2; --von: 34cqw; }
.fluss i:nth-child(2) { animation-delay: -0.4s; } .fluss i:nth-child(3) { animation-delay: -0.8s; } .fluss i:nth-child(4) { animation-delay: -1.2s; }
.fluss i:nth-child(5) { animation-delay: -1.6s; } .fluss i:nth-child(6) { animation-delay: -2s; } .fluss i:nth-child(7) { animation-delay: -2.4s; }
.fluss i:nth-child(8) { animation-delay: -2.8s; } .fluss i:nth-child(9) { animation-delay: -3.2s; } .fluss i:nth-child(10) { animation-delay: -3.6s; }
.fluss i:nth-child(11) { animation-delay: -4s; } .fluss i:nth-child(12) { animation-delay: -4.4s; }
@keyframes fliessen { from { transform: translateX(var(--von)); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { transform: translateX(calc(100cqw - 6px)); opacity: 0; } }
.strom-raster { display: grid; gap: 20px 56px; max-width: 62rem; margin-top: 40px; color: var(--text-2); }
@media (min-width: 860px) { .strom-raster { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .gleichung { grid-template-columns: auto auto auto; row-gap: 22px; }
  .glied--summe { grid-column: 1 / -1; }
  .zeichen:nth-of-type(4) { display: none; }
}

/* ---------- Heizkurve (Effekt 326 Regelkreis, neu gebaut): Punkt wandert, Maus oder Regler setzen die Außentemperatur */
.kurve-raster { display: grid; gap: 44px; }
@media (min-width: 960px) { .kurve-raster { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: center; } }
.kurve-wahl { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.wahl { min-height: 44px; padding: 0 20px; border: 1.5px solid var(--linie-feld); border-radius: var(--rund-knopf); background: transparent; color: var(--text); font: inherit; font-weight: 560; cursor: pointer; transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.wahl[aria-pressed="true"] { background: var(--akzent); border-color: var(--akzent); color: var(--auf-akzent); }
@media (hover: hover) and (pointer: fine) { .wahl:hover { border-color: var(--akzent); } }
.anzeige { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0 0; }
.anzeige div { padding: 14px 16px; border-radius: var(--rund-feld); background: var(--grund-2); }
.anzeige dt { color: var(--text-3); font-size: var(--t-klein); }
.anzeige dd { margin: 4px 0 0; font-family: var(--schrift-display); font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem); font-weight: 650; font-stretch: 112.5%; font-variant-numeric: tabular-nums; line-height: 1.15; }
.kurve-bild { margin: 0; }
.kurve-flaeche { position: relative; aspect-ratio: 16 / 10; border-radius: var(--rund-bild); background: #0f2a4b; touch-action: pan-y; cursor: ew-resize; }
.kurve-flaeche svg { display: block; width: 100%; height: 100%; }
.regler { display: grid; gap: 6px; margin-top: 16px; color: var(--text-2); font-size: var(--t-klein); }
.regler input { width: 100%; min-height: 44px; margin: 0; padding: 0 12px; border: 1.5px solid var(--linie-feld); border-radius: var(--rund-knopf); background: var(--grund-2); accent-color: var(--akzent); }
.kurve-bild figcaption { margin-top: 10px; color: var(--text-3); font-size: var(--t-klein); }
.kurve-tabelle { margin-top: 18px; border-collapse: collapse; font-size: var(--t-klein); }
.kurve-tabelle caption { text-align: left; color: var(--text-2); padding-bottom: 6px; }
.kurve-tabelle th, .kurve-tabelle td { padding: 6px 14px 6px 0; text-align: left; border-bottom: 1px solid var(--linie); }
.js .kurve-tabelle { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .kurve-flaeche, html:not(.js) .regler, html:not(.js) .kurve-wahl, html:not(.js) .anzeige { display: none; }
@media (max-width: 560px) { .anzeige { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Lautstärke-Lineal: eine Welle läuft entlang */
.lineal { position: relative; margin-top: clamp(56px, 7vw, 96px); padding: 64px 0 74px; }
.lineal-band { position: relative; height: 14px; border-radius: 7px; overflow: hidden; background: linear-gradient(90deg, #3e6ea3, #5b88bb 50%, #8aa9cc); }
.lineal-band::after { content: ""; position: absolute; top: 0; bottom: 0; left: 35%; width: 6.67%; border-radius: 7px; background: var(--akzent); }
.lineal-welle { position: absolute; inset: 0 auto 0 0; width: 200%; background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, 0.28) 22px 25px); animation: welle 7s linear infinite; }
@keyframes welle { to { transform: translateX(-50%); } }
.punkt, .geraet { position: absolute; margin: 0; translate: -50% 0; display: grid; justify-items: center; text-align: center; font-size: var(--t-klein); line-height: 1.25; color: var(--text-2); hyphens: manual; }
.punkt { bottom: calc(100% - 52px); max-width: 7.5rem; }
.punkt b, .geraet b { font-family: var(--schrift-display); font-size: 1.35rem; font-weight: 650; font-stretch: 112.5%; color: var(--text); }
.punkt::after { content: ""; width: 2px; height: 10px; margin-top: 6px; background: var(--text-3); border-radius: 1px; }
.punkt--20 { left: 16.67%; } .punkt--30 { left: 33.33%; } .punkt--40 { left: 50%; } .punkt--50 { left: 66.67%; } .punkt--60 { left: 83.33%; }
.geraet { top: calc(64px + 24px); color: var(--text); }
.geraet b { color: #ffb07f; }
.geraet--nacht { left: 35%; translate: -100% 0; justify-items: end; text-align: right; padding-right: 8px; }
.geraet--tag { left: 41.67%; translate: 0 0; justify-items: start; text-align: left; padding-left: 8px; }
@media (max-width: 560px) { .punkt--50 { display: none; } .punkt { font-size: 0.78rem; max-width: 4.4rem; } .punkt b, .geraet b { font-size: 1.1rem; } }

/* ---------- Preise als Typenschild: Glanz läuft beim Scrollen über das Blech */
.preise-raster { display: grid; gap: 40px; }
@media (min-width: 980px) { .preise-raster { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); align-items: start; } }
.schild { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 50px) clamp(22px, 4vw, 52px); border-radius: var(--rund-bild); color: #1c2a39;
  background: linear-gradient(128deg, #e4e9ee 0%, #c6cfd7 38%, #e9edf1 56%, #bcc6cf 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 -2px 0 rgba(20, 35, 55, 0.12), 0 34px 70px -34px rgba(19, 42, 74, 0.55); }
.schild::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.1) 0 1px, rgba(30, 45, 60, 0.035) 1px 3px); }
.schild::after { content: ""; position: absolute; top: -40%; bottom: -40%; left: 0; width: 34%; pointer-events: none; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0)); transform: translateX(calc(-110% + var(--p, 0.55) * 400%)) rotate(10deg); }
.schild > * { position: relative; z-index: 1; }
.schild-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-bottom: 16px; border-bottom: 2px solid rgba(28, 42, 57, 0.28); font-family: var(--schrift-display); font-weight: 680; font-stretch: 125%; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.08em; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); }
.schild-kopf span { font-weight: 520; font-size: 0.85rem; color: #3c4c5e; }
.schild-zeilen { margin: 0; }
.schild-zeilen div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid rgba(28, 42, 57, 0.18); }
.schild-zeilen dt { grid-column: 1; font-weight: 600; font-size: 1.08rem; }
.schild-was { grid-column: 1; margin: 0; color: #3a4a5c; font-size: var(--t-klein); }
.schild-preis { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; display: grid; justify-items: end; font-family: var(--schrift-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 680; font-stretch: 112.5%; font-variant-numeric: tabular-nums; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7); white-space: nowrap; }
.schild-preis small { font-family: var(--schrift-text); font-size: 0.8rem; font-weight: 500; color: #3a4a5c; text-shadow: none; }
.schild-fuss { padding-top: 18px; font-weight: 600; }
.schild-niete { position: absolute; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff 0 18%, #aab4be 45%, #7c8894 100%); box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25); }
.schild-niete:nth-of-type(1) { top: 12px; left: 12px; } .schild-niete:nth-of-type(2) { top: 12px; right: 12px; }
.schild-niete:nth-of-type(3) { bottom: 12px; left: 12px; } .schild-niete:nth-of-type(4) { bottom: 12px; right: 12px; }
@media (max-width: 560px) { .schild-zeilen div { grid-template-columns: minmax(0, 1fr); } .schild-preis { grid-column: 1; grid-row: auto; justify-items: start; margin-top: 6px; } }

/* ---------- Fragen: links die Frage, rechts die Antwort, ein Thermometer füllt sich beim Scrollen */
.fragen-liste { margin-top: 44px; display: grid; }
.frage { position: relative; display: grid; gap: 10px 56px; padding: 26px 0 26px 26px; border-top: 1px solid var(--linie); }
.frage:last-child { border-bottom: 1px solid var(--linie); }
@media (min-width: 860px) { .frage { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.frage::before { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.frage::after { content: ""; position: absolute; left: 0; top: 26px; bottom: 26px; width: 5px; border-radius: 3px; background: linear-gradient(to top, var(--kalt), var(--akzent)); transform-origin: 50% 100%; transform: scaleY(calc(0.08 + 0.92 * min(1, var(--p, 1) * 1.8))); }
.frage h3 { font-size: var(--t-mittel); line-height: 1.2; }
.frage p { color: var(--text-2); }

/* ---------- Kontakt: oben läuft das Rohr weiter */
.kontakt { position: relative; }
.kontakt-rohr { position: absolute; left: 0; right: 0; top: 0; height: 8px; overflow: hidden; background: #a85a31; }
.kontakt-rohr::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 200%; background: repeating-linear-gradient(90deg, rgba(255, 210, 170, 0) 0 60px, rgba(255, 210, 170, 0.75) 60px 80px, rgba(255, 210, 170, 0) 80px 140px); animation: welle 5s linear infinite; }

/* ---------- Standbild für standbild.mjs: nur Himmel und Szene, ohne Bildlaufleiste */
html.standbild-modus { scrollbar-width: none; scrollbar-gutter: auto; }
html.standbild-modus body { overflow: clip; }
.standbild-modus .kopfzeile, .standbild-modus .anfang-text, .standbild-modus .gehaeuse-knopf, .standbild-modus main > section:not(.anfang), .standbild-modus .fuss, .standbild-modus .sprung { visibility: hidden; }
