/* FÜNDIG Leckortung (Beispiel), lp-270. Farben = Skala der Wärmebildkamera: kalt (Indigo) bis heiß (Gelb).
   Grundzustand ohne Skript und in der ruhigen Fassung: alles steht still und ist lesbar.
   html.lebt (gesetzt in js/frueh.js): angeheftete Stufen, Bewegung am Scroll. */

@font-face { font-family: "Chakra Petch"; src: url("../fonts/chakra-petch-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-var.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }

:root {
  --nacht: #0d0935;
  --kalt: #150f52;
  --violett: #8e1596;
  --pink: #d6249f;
  --orange: #f4511e;
  --gelb: #ffc928;
  --hell: #fff6dc;
  --tinte: #150f52;
  --u: min(1vw, 16px);
  --seite: max(0px, (100vw - 1600px) / 2);
  --rand: calc(var(--seite) + clamp(20px, 4.4vw, 70px));
  --titel: "Chakra Petch", "Arial Narrow", Arial, sans-serif;
  --text: "Figtree", system-ui, "Segoe UI", Arial, sans-serif;
  --g-h1: clamp(2rem, calc(4.5 * var(--u)), 4.5rem);
  --g-h2: clamp(1.7rem, calc(3 * var(--u)), 3rem);
  --bh: 16vh;
  --mh: 46vh;
  --leiste: 64px;
}
@supports (height: 1svh) { :root { --bh: 16svh; --mh: 46svh; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--leiste); }
body { margin: 0; background: var(--kalt); color: #fff; font: 400 1.0625rem/1.5 var(--text); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--titel); font-weight: 700; line-height: 1.04; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: var(--g-h1); }
h2 { font-size: var(--g-h2); }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; border-radius: 4px; }
.anfrage :focus-visible, .stelle :focus-visible, .zeichen-band :focus-visible { outline-color: var(--tinte); }
.sprung { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--gelb); color: var(--tinte); padding: 12px 16px; border-radius: 8px; font-weight: 700; }
.sprung:focus { top: 12px; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.innen { padding-left: var(--rand); padding-right: var(--rand); }
.leise { opacity: .78; font-weight: 400; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 8px; background: var(--gelb); color: var(--tinte); font: 700 1.0625rem/1 var(--titel); letter-spacing: .01em; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: transform .18s ease-out, color .25s ease; }
.knopf::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.knopf:hover::before, .knopf:focus-visible::before { transform: scaleX(1); }
.knopf:active { transform: scale(.97); }
.knopf.klein { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.knopf.dunkel { background: var(--tinte); color: var(--gelb); }
.knopf.dunkel:hover, .knopf.dunkel:focus-visible { color: var(--tinte); }
.ruf { font: 700 1.1rem/1 var(--titel); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; border-bottom: 2px solid currentColor; }
.ruf:hover { color: var(--gelb); }
.ruf.gross { font-size: clamp(1.6rem, calc(2.6 * var(--u)), 2.6rem); min-height: 56px; }
.anfrage .ruf:hover { color: var(--violett); }

/* ---------- Kopfzeile ---------- */
.leiste { position: fixed; left: 0; right: 0; top: 0; z-index: 50; height: var(--leiste); color: #fff; transition: background-color .3s ease; }
.leiste.fest { background: var(--nacht); }
.leiste-innen { height: 100%; display: flex; align-items: center; gap: clamp(12px, 2vw, 30px); padding: 0 var(--rand); }
.marke { font: 700 1.35rem/1 var(--titel); letter-spacing: .02em; text-decoration: none; display: inline-flex; align-items: baseline; gap: 8px; min-height: 44px; align-items: center; }
.marke span { font: 600 .82rem/1 var(--text); letter-spacing: 0; opacity: .85; }
.leiste-wege { display: flex; gap: clamp(10px, 1.6vw, 26px); margin-left: auto; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.leiste.fest .leiste-wege, html:not(.lebt) .leiste-wege { opacity: 1; pointer-events: auto; }
.leiste-wege a { font-weight: 600; font-size: .95rem; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.leiste-wege a:hover { color: var(--gelb); }
.feld { display: none; align-items: center; gap: 10px; font: 700 .9rem/1 var(--titel); padding: 0 12px; height: 40px; border-radius: 8px; background: var(--nacht); border: 1px solid rgba(255, 255, 255, .22); white-space: nowrap; }
.lebt .feld { display: inline-flex; }
.feld-wort { color: var(--gelb); min-width: 4.6em; }
.feld-zahl { min-width: 5.4em; text-align: right; }
.feld-skala { width: 74px; height: 8px; border-radius: 4px; position: relative; background: linear-gradient(90deg, #2a1c9a, #8e1596 35%, #d6249f 55%, #f4511e 75%, #ffc928); }
.feld-skala i { position: absolute; top: -4px; left: 0; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: #fff; transform: translateX(calc(var(--hitze, 0) * 74px)); transition: transform .4s ease; }

/* ---------- Stufen (angeheftete Kapitel) ---------- */
.stufe { position: relative; }
.haft { position: relative; min-height: 100vh; overflow: hidden; }
@supports (height: 1svh) { .haft { min-height: 100svh; } }
.lebt .stufe .haft { position: sticky; top: 0; height: 100vh; min-height: 0; }
@supports (height: 1svh) { .lebt .stufe .haft { height: 100svh; } }
.lebt .kopf { height: 440vh; z-index: 1; }
.lebt .horchen { height: 420vh; margin-top: -100vh; z-index: 2; }
.lebt .gas { height: 400vh; margin-top: -100vh; z-index: 3; }
.lebt .stelle { height: 420vh; margin-top: -100vh; z-index: 4; }
@supports (height: 1svh) {
  .lebt .kopf { height: 440svh; }
  .lebt .horchen { height: 420svh; margin-top: -100svh; }
  .lebt .gas { height: 400svh; margin-top: -100svh; }
  .lebt .stelle { height: 420svh; margin-top: -100svh; }
}
.horchen .haft { background: var(--violett); box-shadow: 0 -3px 0 var(--gelb); }
.gas .haft { background: var(--orange); color: var(--tinte); }
.stelle .haft { background: var(--gelb); color: var(--tinte); }
.aufbau, .bericht, .zeichen-band, .preise, .anfrage, .fuss { position: relative; z-index: 5; }

.riesen { position: absolute; left: 0; right: 0; top: 11vh; z-index: 1; text-align: center; white-space: nowrap; font: 700 20vw/.86 var(--titel); letter-spacing: -0.02em; pointer-events: none; user-select: none; }
@supports (height: 1svh) { .riesen { top: 11svh; } }
.horchen .riesen { color: #b02cb6; z-index: 2; }
.gas .riesen { color: #ff7a35; text-align: left; padding-left: calc(var(--rand) - .04em); }
.stelle .riesen { color: #f7a700; }

.kap { position: absolute; z-index: 7; left: var(--rand); bottom: calc(var(--bh) + 11vh); width: min(34vw, 500px); }
.kap-nr { font: 700 .9rem/1.2 var(--titel); letter-spacing: .02em; margin-bottom: 14px; display: inline-block; padding: 7px 10px; border-radius: 6px; background: var(--nacht); color: var(--gelb); }
.kap h2 { margin-bottom: 14px; }
.kap p { max-width: 46ch; }
.kap .kap-zahl { margin-top: 14px; font: 700 1.2rem/1.25 var(--titel); }
.kap .kap-zahl b { color: var(--gelb); }
.gas .kap .kap-zahl b { color: #fff; }
.live { display: flex; align-items: baseline; gap: 10px; margin-top: 12px; font: 700 1rem/1 var(--titel); }
.live b { font-size: clamp(2.6rem, calc(4.6 * var(--u)), 4.6rem); line-height: .9; color: var(--gelb); min-width: 1.5em; font-variant-numeric: tabular-nums; }
.gas .live b { color: #fff; min-width: 1.9em; }
.boden { position: absolute; left: 0; right: 0; bottom: 0; height: var(--bh); z-index: 3; }
.horchen .boden { background: #5f0c6b; }
.gas .boden { background: #c53a0c; }

/* ---------- Kopf ---------- */
.kopf .haft { background: var(--kalt); }
.schau { position: relative; height: 100vh; overflow: hidden; }
@supports (height: 1svh) { .schau { height: 100svh; } }
.lebt .schau { position: absolute; inset: 0; height: auto; }
.bild { position: absolute; inset: 0; transform-origin: 0 0; will-change: transform; }
.bild img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 72% 100%; }
.waerme { position: absolute; inset: 0; --scan: .485; clip-path: inset(0 0 0 calc(var(--scan) * 100%)); }
.scanlinie { position: absolute; top: 0; bottom: 0; left: 48.5%; width: 3px; margin-left: -1px; background: var(--gelb); box-shadow: 0 0 0 9px rgba(255, 201, 40, .16); }
.lebt .scanlinie { left: 0; transform: translateX(calc(var(--scanpx, 0) * 1px)); will-change: transform; }
.scanlinie i { position: absolute; left: -5px; top: 0; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.lebt .bereit .scanlinie i, .lebt.bereit .scanlinie i { animation: wandern 3.4s ease-in-out infinite alternate; }
@keyframes wandern { from { transform: translateY(18vh); } to { transform: translateY(86vh); } }
.blick { position: absolute; top: calc(var(--leiste) + 18px); z-index: 4; font: 700 .9rem/1 var(--titel); padding: 9px 12px; border-radius: 6px; white-space: nowrap; }
.blick-l { right: calc(51.5% + 14px); background: var(--nacht); color: #fff; }
.blick-r { left: calc(48.5% + 14px); background: var(--gelb); color: var(--tinte); }
.kreuz { position: absolute; left: 0; top: 0; z-index: 5; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 3px solid var(--nacht); border-radius: 50%; box-shadow: 0 0 0 2px #fff; pointer-events: none; display: none; }
.kreuz::before, .kreuz::after { content: ""; position: absolute; background: var(--nacht); }
.kreuz::before { left: 50%; top: -13px; bottom: -13px; width: 3px; margin-left: -1.5px; }
.kreuz::after { top: 50%; left: -13px; right: -13px; height: 3px; margin-top: -1.5px; }
.kreuz b { position: absolute; left: 38px; top: -34px; z-index: 1; font: 700 1rem/1 var(--titel); background: var(--gelb); color: var(--tinte); padding: 8px 10px; border-radius: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lebt .kreuz { display: block; will-change: transform; }
.klammer { position: absolute; z-index: 4; left: 0; top: 0; width: 100px; height: 100px; pointer-events: none; display: none; }
.lebt .klammer { display: block; }
.klammer i { position: absolute; width: 26px; height: 26px; border: 0 solid var(--gelb); }
.klammer i:nth-child(1) { left: 0; top: 0; border-left-width: 4px; border-top-width: 4px; }
.klammer i:nth-child(2) { right: 0; top: 0; border-right-width: 4px; border-top-width: 4px; }
.klammer i:nth-child(3) { left: 0; bottom: 0; border-left-width: 4px; border-bottom-width: 4px; }
.klammer i:nth-child(4) { right: 0; bottom: 0; border-right-width: 4px; border-bottom-width: 4px; }
.klammer span { position: absolute; left: 0; bottom: -38px; font: 700 .95rem/1 var(--titel); background: var(--nacht); color: var(--gelb); padding: 8px 10px; border-radius: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.kopf-text { position: absolute; z-index: 6; left: var(--rand); top: 50vh; transform: translateY(-54%); width: min(43.5vw, 690px); }
.kopf-text h1 { margin-bottom: 18px; }
.unterzeile { font-size: 1.15rem; max-width: 34ch; margin-bottom: 22px; }
.kopf-knopf { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 14px; }
.ruhe { font-size: .98rem; margin-bottom: 18px; max-width: 40ch; }
.beleg { font-size: .98rem; max-width: 40ch; padding-top: 14px; border-top: 2px solid rgba(255, 255, 255, .35); }
.beleg b { font: 700 1.15rem/1 var(--titel); color: var(--gelb); }
.kap-kopf { position: relative; left: auto; bottom: auto; width: auto; padding: 44px var(--rand) 60px; background: var(--kalt); }
.lebt .kap-kopf { position: absolute; left: var(--rand); top: calc(var(--leiste) + 8vh); bottom: auto; width: min(34vw, 480px); padding: 26px 28px 28px; border-radius: 12px; background: var(--nacht); }
.hinweis { display: none; }
.lebt .hinweis { display: block; position: absolute; z-index: 6; left: 50%; bottom: 22px; transform: translateX(-50%); font: 700 .9rem/1 var(--titel); padding: 10px 14px; border-radius: 6px; background: var(--nacht); color: #fff; white-space: nowrap; }

/* Startbild ohne Springen: bis das Skript zum ersten Mal gezeichnet hat, steht nur der erste Bildschirm */
.lebt .waerme { --scan: 1; }
.lebt .scanlinie, .lebt .blick, .lebt .kreuz, .lebt .klammer, .lebt .kap-kopf, .lebt .hinweis { opacity: 0; }
.lebt:not(.bereit) .horchen, .lebt:not(.bereit) .gas, .lebt:not(.bereit) .stelle { visibility: hidden; }
.lebt.bereit .scanlinie { opacity: 1; }
.lebt.bereit .blick, .lebt.bereit .hinweis { opacity: var(--vorn, 1); transition: opacity .5s ease .9s; }
.lebt.bereit .kreuz { opacity: var(--kreuz, 0); transition: opacity .4s ease; }
.lebt.bereit .klammer { opacity: var(--klammer, 0); }
.lebt.bereit .kap-kopf { opacity: var(--k1, 0); transform: translateY(calc((1 - var(--k1, 0)) * 18px)); }
.lebt .kopf-text { opacity: var(--vorn, 1); }
.lebt .blick-l { right: auto; left: 0; transform: translateX(calc(var(--scanpx, 0) * 1px - 100% - 14px)); }
.lebt .blick-r { left: 0; transform: translateX(calc(var(--scanpx, 0) * 1px + 14px)); }

/* ---------- Horchen ---------- */
.horchen { --x1: .60; --x2: .77; --x3: .935; }
.pegel { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: calc(100% - var(--bh)); z-index: 1; }
.pegel-vorn { height: 100%; z-index: 9; pointer-events: none; }
html:not(.lebt) .pegel-vorn { display: none; }
.mann { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.pose { position: absolute; bottom: calc(var(--bh) - 2.4vh); width: auto; max-width: none; transition: opacity .28s ease; will-change: opacity, transform; }
.pose-a { height: var(--mh); left: calc(var(--x1) * 100vw - var(--mh) * .7475); }
.pose-b { height: calc(var(--mh) * .9698); left: calc(var(--x2) * 100vw - var(--mh) * 1.0078); }
.pose-c { height: calc(var(--mh) * 1.0172); left: calc(var(--x3) * 100vw - var(--mh) * .7731); }
html:not(.lebt) .pose-a, html:not(.lebt) .pose-b { display: none; }
.lebt .pose { opacity: 0; }
.lebt .horchen[data-stand="1"] .pose-a, .lebt .horchen[data-stand="2"] .pose-b, .lebt .horchen[data-stand="3"] .pose-c { opacity: 1; }
.marken li { position: absolute; z-index: 4; bottom: calc(var(--bh) - 7.4vh); transform: translateX(-50%); font: 700 .95rem/1 var(--titel); padding: 8px 10px; border-radius: 6px; background: var(--nacht); color: #fff; white-space: nowrap; transition: opacity .3s ease, transform .3s ease; }
.marken li::before { content: ""; position: absolute; left: 50%; top: -9px; width: 2px; height: 9px; margin-left: -1px; background: #fff; }
.marken li:nth-child(1) { left: calc(var(--x1) * 100vw); }
.marken li:nth-child(2) { left: calc(var(--x2) * 100vw); }
.marken li:nth-child(3) { left: calc(var(--x3) * 100vw); background: var(--gelb); color: var(--tinte); }
.lebt .marken li { opacity: 0; transform: translateX(-50%) translateY(8px); }
.lebt .horchen[data-stand="2"] .marken li:nth-child(1), .lebt .horchen[data-stand="3"] .marken li:nth-child(-n+2), .lebt .horchen[data-fund="1"] .marken li { opacity: 1; transform: translateX(-50%); }

/* ---------- Spürgas ---------- */
.gas { --sx: .82; --sh: 50vh; }
@supports (height: 1svh) { .gas { --sh: 50svh; } }
.sonde { position: absolute; z-index: 5; bottom: calc(var(--bh) - 1.6vh); left: calc(var(--sx) * 100vw); height: var(--sh); width: calc(var(--sh) * .27743); margin-left: calc(var(--sh) * -.13871); will-change: transform; }
.sonde img { width: 100%; height: 100%; }
.anzeige { position: absolute; left: 21.46%; top: 7.24%; width: 56.34%; height: 23.49%; border-radius: 4px; background: #0a0d16; color: var(--gelb); display: grid; grid-template-rows: auto 1fr auto auto; padding: 8% 9% 9%; font-family: var(--titel); font-weight: 700; overflow: hidden; }
.anzeige-kopf { font-size: calc(var(--sh) * .022); line-height: 1; color: #fff; }
.anzeige b { align-self: end; font-size: calc(var(--sh) * .058); line-height: .95; font-variant-numeric: tabular-nums; }
.anzeige-einheit { font-size: calc(var(--sh) * .022); line-height: 1.2; color: #fff; }
.anzeige-balken { display: block; height: calc(var(--sh) * .012); margin-top: 6%; border-radius: 2px; background: #2a2f45; overflow: hidden; }
.anzeige-balken i { display: block; height: 100%; background: var(--gelb); transform-origin: 0 50%; transform: scaleX(var(--ppm, 1)); }
.ringe { position: absolute; z-index: 4; left: calc(var(--sx) * 100vw); bottom: calc(var(--bh) - 1.2vh); width: 0; height: 0; }
.ringe i { position: absolute; left: 0; top: 0; width: 58vw; height: 13vw; margin: -6.5vw 0 0 -29vw; border: 5px solid var(--gelb); border-radius: 50%; opacity: 0; }
.ringe i:nth-child(1) { transform: scale(.22); opacity: .95; }
.ringe i:nth-child(2) { transform: scale(.48); opacity: .7; }
.ringe i:nth-child(3) { transform: scale(.74); opacity: .45; }
.ringe i:nth-child(4) { transform: scale(1); opacity: .25; }
.lebt .ringe { opacity: var(--ringe, 0); }
.lebt .gas.riecht .ringe i { animation: ring 2.8s linear infinite; opacity: 0; }
.lebt .gas.riecht .ringe i:nth-child(2) { animation-delay: -.7s; }
.lebt .gas.riecht .ringe i:nth-child(3) { animation-delay: -1.4s; }
.lebt .gas.riecht .ringe i:nth-child(4) { animation-delay: -2.1s; }
@keyframes ring { 0% { transform: scale(.06); opacity: 0; } 12% { opacity: .95; } 100% { transform: scale(1); opacity: 0; } }
.iris { display: none; }
.lebt .iris { display: block; position: absolute; inset: 0; z-index: 9; background: var(--gelb); clip-path: circle(0 at 50% 50%); pointer-events: none; }

/* ---------- Die Stelle ---------- */
.stelle .kap { bottom: 9vh; }
.vergleich { display: flex; gap: 14px 34px; margin-top: 18px; flex-wrap: wrap; }
.vergleich p { display: grid; gap: 4px; font-size: .95rem; font-weight: 600; max-width: none; min-width: max-content; }
.vergleich span { max-width: 17ch; }
.vergleich b { font: 700 clamp(2rem, calc(3.4 * var(--u)), 3.4rem)/.95 var(--titel); white-space: nowrap; }
.vergleich .alt b { text-decoration: line-through; text-decoration-thickness: 4px; color: #b3470a; }
.flaeche-raum { position: absolute; z-index: 5; right: calc(var(--rand) + 1vw); top: 54%; width: min(45vw, 74vh); aspect-ratio: 1; transform: translateY(-50%); perspective: 1700px; }
.flaeche { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; border-radius: 6px; box-shadow: 0 30px 0 -18px rgba(120, 70, 0, .28); }
.flaeche > img { position: absolute; max-width: none; }
.f-offen, .f-zu { inset: 0; width: 100%; height: 100%; border-radius: 6px; }
.f-zu { display: none; }
.f-deckel, .f-schatten { display: none; left: 33.008%; top: 32.129%; width: 34.57%; height: 34.766%; }
.f-schatten { position: absolute; background: rgba(10, 6, 40, .5); border-radius: 2px; }
.lebt .f-zu, .lebt .f-deckel, .lebt .f-schatten { display: block; }
.lebt .f-deckel { will-change: transform, opacity; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.zettel { position: absolute; z-index: 3; font: 500 .82rem/1.25 var(--text); background: var(--nacht); color: #fff; padding: 8px 11px 9px; border-radius: 6px; white-space: nowrap; transition: opacity .35s ease, transform .35s ease; }
.zettel b { display: block; font: 700 .95rem/1.2 var(--titel); color: var(--gelb); }
.zettel::before { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--gelb); border: 3px solid var(--nacht); }
.z1 { left: 52.4%; top: 53.5%; } .z1::before { left: -9px; top: -9px; }
.z2 { left: 3%; top: 41%; } .z2::before { right: -52px; top: 62%; }
.z2::after { content: ""; position: absolute; right: -46px; top: calc(62% + 5px); width: 46px; height: 2px; background: var(--nacht); }
.z3 { left: 44%; top: 22.5%; } .z3::before { left: 20px; bottom: -20px; }
.lebt .zettel { opacity: 0; transform: translateY(10px); }
.lebt .stelle[data-zettel="1"] .z1, .lebt .stelle[data-zettel="2"] .z1, .lebt .stelle[data-zettel="2"] .z2, .lebt .stelle[data-zettel="3"] .zettel { opacity: 1; transform: none; }

/* ---------- Bodenaufbau ---------- */
.aufbau { background: var(--kalt); padding: clamp(80px, 13vh, 150px) 0; }
.aufbau-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 90px); align-items: center; }
.aufbau-text h2 { margin-bottom: 20px; }
.aufbau-text p { max-width: 50ch; margin-bottom: 14px; }
.schichtliste { margin: 26px 0 18px; counter-reset: s; border-top: 2px solid rgba(255, 255, 255, .25); }
.schichtliste li { counter-increment: s; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 11px 0; border-bottom: 2px solid rgba(255, 255, 255, .25); transition: color .3s ease, border-color .3s ease; }
.schichtliste li::before { content: counter(s); font: 700 1rem/1 var(--titel); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--tinte); transition: background-color .3s ease; }
.schichtliste b { font-weight: 600; }
.schichtliste span { font: 700 1rem/1 var(--titel); white-space: nowrap; }
.lebt .schichtliste li { color: rgba(255, 255, 255, .5); }
.lebt .schichtliste li::before { background: rgba(255, 255, 255, .5); }
.lebt .schichtliste li.an { color: #fff; border-color: var(--gelb); }
.lebt .schichtliste li.an::before { background: var(--gelb); }
.legende { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; font-size: .92rem; font-weight: 600; }
.legende span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.rohr { width: 22px; height: 8px; border-radius: 4px; display: inline-block; }
.rohr.rot { background: #e0302a; } .rohr.blau { background: #2f6fe0; } .rohr.gelb { background: var(--gelb); }
.stapel { position: relative; justify-self: center; width: min(100%, 600px, 74vh); aspect-ratio: 1496 / 1710; }
.schicht { position: absolute; max-width: none; height: auto; will-change: transform; }
.s1 { left: .267%; top: .234%; width: 99.332%; }
.s2 { left: .267%; top: 16.257%; width: 99.465%; }
.s3 { left: .468%; top: 37.719%; width: 98.997%; }
.s4 { left: .267%; top: 48.947%; width: 99.398%; }
.s5 { left: .267%; top: 67.018%; width: 99.465%; }
.nass-raum { position: absolute; inset: 0; pointer-events: none; }
.nass-flaeche { position: absolute; inset: 0; background: rgba(255, 201, 40, .62); clip-path: polygon(19.65% 37.13%, 49.73% 43.33%, 75.33% 38.36%, 93.18% 41.29%, 93.18% 42.75%, 49.73% 50.35%, 19.65% 44.91%); }
.tropf { position: absolute; left: 21.66%; top: 35.4%; width: 6px; height: 4.6%; margin-left: -3px; border-radius: 3px; background: var(--gelb); transform-origin: 50% 0; }
.nass-ende { position: absolute; left: 93.5%; top: 42%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--gelb); border: 4px solid var(--nacht); transition: opacity .3s ease; }
.lebt .nass-raum { clip-path: inset(0 calc((1 - var(--nass, 0)) * 100%) 0 0); }
.lebt .tropf { transform: scaleY(var(--tropf, 0)); }
.lebt .nass-ende { opacity: 0; }
.lebt .stapel.nass .nass-ende { opacity: 1; }
.schicht-nrn li { position: absolute; right: -4%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; display: grid; place-items: center; font: 700 1rem/1 var(--titel); background: var(--gelb); color: var(--tinte); }
.schicht-nrn li:nth-child(1) { top: 13%; } .schicht-nrn li:nth-child(2) { top: 31%; } .schicht-nrn li:nth-child(3) { top: 47%; } .schicht-nrn li:nth-child(4) { top: 61%; } .schicht-nrn li:nth-child(5) { top: 84%; }
.fleck-zettel { position: absolute; left: 60%; top: 45.5%; font: 700 .95rem/1.25 var(--titel); background: var(--gelb); color: var(--tinte); padding: 9px 12px; border-radius: 6px; transition: opacity .35s ease, transform .35s ease; }
.lebt .fleck-zettel { opacity: 0; transform: translateY(8px); }
.lebt .stapel.nass .fleck-zettel { opacity: 1; transform: none; }

/* ---------- Bericht ---------- */
.bericht { background: var(--violett); padding: clamp(80px, 13vh, 150px) 0 0; overflow: hidden; }
.bericht-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 90px); align-items: start; }
.bericht-text { padding-bottom: clamp(60px, 10vh, 120px); }
.bericht-text h2 { margin-bottom: 20px; }
.bericht-text p { max-width: 48ch; margin-bottom: 14px; }
.schlitz { border-top: 8px solid var(--nacht); overflow: hidden; padding: 0 4% 0; }
.blatt { position: relative; background: var(--hell); color: var(--tinte); padding: clamp(20px, 3vw, 40px); padding-bottom: 96px; border-radius: 0 0 4px 4px; will-change: transform; }
.lebt .blatt { transform: translateY(calc((var(--blatt, 0) - 1) * 72%)); }
.blatt-kopf { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 16px; border-bottom: 3px solid var(--tinte); margin-bottom: 18px; }
.blatt-marke { font: 700 1.5rem/1 var(--titel); display: grid; gap: 4px; }
.blatt-marke span { font: 600 .8rem/1 var(--text); }
.blatt-nr { font-size: .9rem; font-weight: 600; text-align: right; }
.blatt-bilder { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.blatt-bilder img { width: 100%; border-radius: 3px; }
.blatt-bilder figcaption { font-size: .8rem; font-weight: 600; margin-top: 6px; }
.blatt-werte div { display: grid; grid-template-columns: minmax(0, .42fr) minmax(0, 1fr); gap: 14px; padding: 9px 0; border-bottom: 1px solid rgba(21, 15, 82, .28); transition: opacity .3s ease, transform .3s ease; }
.blatt-werte dt { font-weight: 700; }
.blatt-werte dd { font: 700 1rem/1.3 var(--titel); }
.lebt .blatt-werte div { opacity: 0; transform: translateX(-12px); }
.lebt .blatt-werte div.an { opacity: 1; transform: none; }
.stempel { position: absolute; right: 6%; bottom: 22px; font: 700 clamp(1.4rem, calc(2.6 * var(--u)), 2.4rem)/1 var(--titel); letter-spacing: .06em; color: var(--orange); border: 5px solid var(--orange); border-radius: 8px; padding: 10px 16px; transform: rotate(-9deg); transition: opacity .2s ease, transform .35s cubic-bezier(.2, 1.5, .4, 1); }
.lebt .stempel { opacity: 0; transform: rotate(-9deg) scale(1.9); }
.lebt .stempel.an { opacity: 1; transform: rotate(-9deg) scale(1); }

/* ---------- Laufband ---------- */
.zeichen-band { background: var(--orange); color: var(--tinte); padding: clamp(60px, 10vh, 110px) 0; overflow: hidden; }
.zeichen-band h2 { margin-bottom: clamp(26px, 5vh, 50px); max-width: 1200px; }
.band { overflow: hidden; }
.band p { display: inline-flex; align-items: center; gap: clamp(18px, 2.4vw, 40px); white-space: nowrap; font: 700 clamp(1.7rem, calc(4.4 * var(--u)), 4.4rem)/1.25 var(--titel); will-change: transform; transform: translateX(calc(var(--lauf, 0) * -1px)); padding-left: var(--rand); }
.band-b p { color: #fff; transform: translateX(calc(var(--lauf, 0) * 1px - 34%)); }
.band i { flex: none; width: .42em; height: .42em; border-radius: 50%; background: var(--gelb); }
.band-b i { background: var(--tinte); }
html:not(.lebt) .band { display: none; }
html:not(.lebt) .zeichen-band .nur-vorleser { position: static; width: auto; height: auto; clip-path: none; white-space: normal; padding: 0 var(--rand); font: 700 1.3rem/1.5 var(--titel); }

/* ---------- Preise ---------- */
.preise { background: var(--kalt); padding: clamp(80px, 13vh, 150px) 0; }
.preise h2 { margin-bottom: clamp(26px, 5vh, 54px); max-width: 18ch; }
.preisliste { border-top: 2px solid rgba(255, 255, 255, .3); }
.preis { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: clamp(18px, 2.6vh, 30px) clamp(10px, 1.6vw, 26px); border-bottom: 2px solid rgba(255, 255, 255, .3); transition: color .3s ease; }
.preis::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.preis::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; z-index: -1; background: var(--violett); }
.preis:nth-child(2)::after { background: var(--pink); } .preis:nth-child(3)::after { background: var(--orange); } .preis:nth-child(4)::after { background: var(--gelb); }
.preis:hover::before, .preis:focus-visible::before { transform: scaleX(1); }
.preis:hover, .preis:focus-visible { color: var(--tinte); }
.preis h3 { font-size: clamp(1.25rem, calc(2 * var(--u)), 2rem); margin-bottom: 6px; }
.preis div p { max-width: 54ch; }
.betrag { display: flex; align-items: baseline; gap: 10px; font: 700 clamp(2rem, calc(4 * var(--u)), 4rem)/1 var(--titel); color: var(--gelb); white-space: nowrap; transition: color .3s ease; }
.betrag span { font-size: .4em; }
.preis:hover .betrag, .preis:focus-visible .betrag { color: var(--tinte); }
.preis-fuss { margin-top: 22px; max-width: 70ch; opacity: .9; }

/* ---------- Anfrage ---------- */
.anfrage { background: var(--gelb); color: var(--tinte); padding: clamp(80px, 13vh, 150px) 0; }
.anfrage-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 90px); align-items: start; }
.anfrage-text h2 { font-size: clamp(2.2rem, calc(5 * var(--u)), 5rem); margin-bottom: 18px; }
.anfrage-text > p { max-width: 36ch; font-size: 1.15rem; }
.sofort { margin-top: clamp(26px, 5vh, 50px); padding-top: 20px; border-top: 3px solid var(--tinte); display: grid; gap: 6px; justify-items: start; }
.sofort p:first-child { font: 700 1.2rem/1.2 var(--titel); }
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.orte { grid-column: 1 / -1; }
.orte legend, .feld-z label { display: block; font-weight: 700; margin-bottom: 8px; }
.ort-reihe { display: flex; flex-wrap: wrap; gap: 10px; }
.ort-reihe label { position: relative; cursor: pointer; }
.ort-reihe input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ort-reihe span { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 8px; border: 2px solid var(--tinte); font: 700 1rem/1 var(--titel); transition: background-color .2s ease, color .2s ease, transform .15s ease-out; }
.ort-reihe input:checked + span { background: var(--tinte); color: var(--gelb); }
.ort-reihe input:focus-visible + span { outline: 3px solid var(--tinte); outline-offset: 3px; }
.ort-reihe label:active span { transform: scale(.96); }
.ort-tipp { margin-top: 12px; min-height: 3em; font-weight: 600; max-width: 56ch; }
.feld-z.breit { grid-column: 1 / -1; }
.feld-z input, .feld-z textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--tinte); border-radius: 8px; background: var(--hell); color: var(--tinte); font: 500 1.0625rem/1.4 var(--text); }
.feld-z textarea { resize: vertical; }
.feld-z input:focus-visible, .feld-z textarea:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; }
.feld-z input[aria-invalid="true"] { border-color: #a11308; background: #fff; }
.fehler { min-height: 1.4em; font-size: .9rem; font-weight: 700; color: #8a1107; margin-top: 4px; }
.absenden { display: grid; gap: 8px; justify-items: start; }
.formular-ruhe { font-size: .95rem; font-weight: 600; }
.formular-status { min-height: 3.2em; font-weight: 700; max-width: 56ch; }

/* ---------- Fuß ---------- */
.fuss { background: var(--nacht); padding: clamp(50px, 9vh, 100px) 0 34px; overflow: hidden; }
.fuss-wort { font: 700 clamp(4rem, calc(21 * var(--u)), 21rem)/.9 var(--titel); letter-spacing: -0.02em; display: flex; margin: 0 0 clamp(26px, 5vh, 50px) -0.04em; }
.fuss-wort span { display: inline-block; transition: transform .7s cubic-bezier(.2, .8, .2, 1), opacity .5s ease; }
.fuss-wort span:nth-child(1) { color: #4a35d6; } .fuss-wort span:nth-child(2) { color: #8e1596; } .fuss-wort span:nth-child(3) { color: #d6249f; }
.fuss-wort span:nth-child(4) { color: #f4511e; } .fuss-wort span:nth-child(5) { color: #ff8f1f; } .fuss-wort span:nth-child(6) { color: #ffc928; }
.lebt .fuss-wort span { transform: translateY(70%); opacity: 0; }
.lebt .fuss-wort.da span { transform: none; opacity: 1; }
.fuss-wort span:nth-child(2) { transition-delay: .07s; } .fuss-wort span:nth-child(3) { transition-delay: .14s; } .fuss-wort span:nth-child(4) { transition-delay: .21s; } .fuss-wort span:nth-child(5) { transition-delay: .28s; } .fuss-wort span:nth-child(6) { transition-delay: .35s; }
.fuss-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; }
.fuss-raster p { margin-bottom: 10px; }
.fuss-name { font: 700 1.15rem/1.2 var(--titel); }
.fuss a { text-underline-offset: 3px; display: inline-flex; min-height: 44px; align-items: center; }
.fuss a:hover { color: var(--gelb); }
.zeichen-reihe { display: flex; gap: 6px; }
.zeichen-link { width: 44px; height: 44px; display: grid !important; place-items: center; border-radius: 8px; transition: transform .15s ease-out, color .2s ease; }
.zeichen-link:active { transform: scale(.92); }
.zeichen { width: 22px; height: 22px; }
.fein { margin-top: 26px; font-size: .85rem; opacity: .75; max-width: 80ch; }

/* ---------- Einblenden beim Scrollen ---------- */
.lebt [data-auf] { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1), color .3s ease; }
.lebt [data-auf].da { opacity: 1; transform: none; }

/* ---------- Schmale und flache Fenster ---------- */
@media (max-width: 1100px) {
  .leiste-wege { display: none; }
  .feld { margin-left: auto; }
}
@media (max-height: 620px) and (min-width: 761px) {
  :root { --g-h1: clamp(1.6rem, 5.4vh, 2.4rem); --g-h2: clamp(1.3rem, 4.6vh, 2rem); --leiste: 54px; }
  body { font-size: .95rem; }
  .unterzeile { font-size: 1rem; margin-bottom: 12px; }
  .kopf-text h1 { margin-bottom: 10px; }
  .beleg { display: none; }
  .ruhe { margin-bottom: 0; }
  .kap h2 { margin-bottom: 8px; }
  .kap-nr { margin-bottom: 8px; }
  .kap { width: min(40vw, 500px); bottom: calc(var(--bh) + 2vh); }
  .lebt .kap-kopf { top: calc(var(--leiste) + 3vh); padding: 16px 18px; }
  .live b { font-size: 2rem; }
  .vergleich { margin-top: 8px; }
  .vergleich b { font-size: 1.6rem; }
  .stelle .kap { bottom: 4vh; }
}

@media (max-width: 760px) {
  :root { --g-h1: 1.85rem; --g-h2: 1.5rem; --leiste: 56px; --bh: 12vh; --mh: 31vh; }
  @supports (height: 1svh) { :root { --bh: 12svh; --mh: 31svh; } }
  body { font-size: .95rem; }
  .marke { font-size: 1rem; }
  .marke span { display: none; }
  .leiste-innen { gap: 8px; padding: 0 14px; }
  .feld { height: 36px; padding: 0 8px; gap: 6px; font-size: .78rem; }
  .feld-wort { min-width: 0; }
  .feld-zahl { min-width: 4.6em; }
  .feld-skala { display: none; }
  .knopf.klein { min-height: 44px; padding: 0 12px; font-size: .85rem; }
  .knopf { min-height: 48px; padding: 0 20px; font-size: 1rem; }

  .schau { height: 56vh; }
  .lebt .schau { inset: 0 0 auto 0; height: 56vh; }
  @supports (height: 1svh) { .schau, .lebt .schau { height: 56svh; } }
  .kopf-text { position: relative; top: auto; left: auto; transform: none; width: auto; padding: 18px 20px 30px; }
  .lebt .kopf-text { position: absolute; left: 0; right: 0; top: 56vh; padding: 16px 20px 0; }
  @supports (height: 1svh) { .lebt .kopf-text { top: 56svh; } }
  .kopf-text h1 { margin-bottom: 10px; }
  .unterzeile { font-size: .95rem; margin-bottom: 12px; max-width: none; }
  .kopf-knopf { gap: 8px 18px; margin-bottom: 8px; }
  .ruhe { font-size: .88rem; margin-bottom: 8px; }
  .beleg { font-size: .88rem; padding-top: 8px; }
  .beleg b { font-size: 1rem; }
  .ruf { font-size: 1rem; }
  .lebt .kap-kopf { left: 0; right: 0; top: 56vh; width: auto; padding: 18px 20px 0; border-radius: 0; background: none; }
  @supports (height: 1svh) { .lebt .kap-kopf { top: 56svh; } }
  .blick { top: calc(var(--leiste) + 10px); font-size: .78rem; padding: 7px 9px; }
  .lebt .hinweis { bottom: auto; top: calc(56vh - 46px); font-size: .78rem; }
  @supports (height: 1svh) { .lebt .hinweis { top: calc(56svh - 46px); } }
  .kreuz b { left: auto; right: 30px; top: -38px; font-size: .9rem; }
  .klammer span { font-size: .82rem; left: auto; right: 0; }

  .riesen { top: calc(var(--leiste) + 1vh); }
  .gas .riesen { text-align: center; padding-left: 0; }
  .kap { left: 20px; right: 20px; width: auto; bottom: auto; top: calc(var(--leiste) + 17vw + 3vh); }
  .kap p { max-width: none; }
  .kap-nr { font-size: .78rem; margin-bottom: 8px; }
  .kap h2 { margin-bottom: 8px; }
  .kap .kap-zahl { margin-top: 8px; font-size: 1rem; }
  .live { margin-top: 6px; }
  .live b { font-size: 2.2rem; }
  .horchen { --x1: .78; --x2: .86; --x3: .9; }
  .marken li { font-size: .78rem; padding: 6px 7px; bottom: calc(var(--bh) - 6.6vh); }
  .marken li:nth-child(1) { left: 14vw; } .marken li:nth-child(2) { left: 40vw; } .marken li:nth-child(3) { left: 70vw; }
  .gas { --sx: .72; --sh: 40vh; }
  @supports (height: 1svh) { .gas { --sh: 40svh; } }
  .ringe i { width: 80vw; height: 16vw; margin: -8vw 0 0 -40vw; }
  .stelle .kap { top: calc(var(--leiste) + 17vw + 3vh); bottom: auto; }
  .z2 { display: none; }
  .vergleich { gap: 16px; margin-top: 8px; }
  .vergleich b { font-size: 1.6rem; }
  .vergleich p { font-size: .82rem; }
  .flaeche-raum { right: auto; left: 50%; top: auto; bottom: 3vh; width: min(88vw, 42vh); transform: translateX(-50%); }
  .zettel { font-size: .68rem; padding: 5px 7px 6px; }
  .zettel b { font-size: .76rem; }
  .z1 { left: 40%; top: 55%; } .z2 { left: 1%; top: 36%; } .z2::before { right: 14px; top: auto; bottom: -20px; } .z2::after { display: none; } .z3 { left: 30%; top: 10%; }

  .aufbau-raster, .bericht-raster, .anfrage-raster { grid-template-columns: minmax(0, 1fr); }
  .stapel { width: min(86%, 420px); margin-top: 10px; }
  .schicht-nrn li { right: -9%; width: 26px; height: 26px; }
  .fleck-zettel { left: 44%; top: 52%; font-size: .78rem; padding: 6px 8px; }
  .schichtliste li { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .bericht-text { padding-bottom: 30px; }
  .schlitz { padding: 0; }
  .blatt-kopf { flex-direction: column; gap: 8px; }
  .blatt-nr { text-align: left; }
  .blatt-werte div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .preis { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .formular { grid-template-columns: minmax(0, 1fr); }
  .ort-reihe span { min-height: 44px; padding: 0 14px; font-size: .92rem; }
  .fuss-raster { grid-template-columns: minmax(0, 1fr); }
}

/* Kleines, flaches Fenster (Handy quer, kleines Browserfenster): Erklärtext der Stufen weicht, Bild und Zahl bleiben */
@media (max-width: 760px) and (max-height: 560px) {
  :root { --mh: 44vh; --bh: 14vh; }
  .lebt .stufe .kap:not(.kap-kopf) { right: 46%; }
  .lebt .stufe .kap:not(.kap-kopf) > p:not(.kap-nr):not(.live):not(.kap-zahl) { display: none; }
  .lebt .vergleich .alt { display: none; }
  .lebt .kopf-text .ruhe, .lebt .kopf-text .beleg { display: none; }
  .lebt .unterzeile { margin-bottom: 8px; }
  .lebt .kap-kopf p:not(.kap-nr):not(.kap-zahl) { display: none; }
  .gas { --sh: 58vh; --sx: .78; }
  .flaeche-raum { left: auto; right: 4%; transform: none; bottom: 4vh; width: min(44vw, 62vh); }
  .live span { font-size: .8rem; }
}

/* Ohne Skript und in der ruhigen Fassung: Kopfzeile immer deckend, das Riesenwort der Stelle weicht dem Bild */
html:not(.lebt) .leiste { background: var(--nacht); }
html:not(.lebt) .stelle .riesen { display: none; }

/* ---------- Rechtliches: ruhige Leseseite ---------- */
body.recht { background: var(--hell); color: var(--tinte); }
body.recht .leiste { position: absolute; background: var(--nacht); color: #fff; }
body.recht .leiste .knopf { margin-left: auto; }
.lesetext { max-width: 780px; margin: 0 auto; padding: 130px clamp(20px, 4vw, 40px) 90px; }
.lesetext h1 { margin-bottom: 26px; }
.lesetext h2 { font-size: 1.5rem; margin: 44px 0 12px; }
.lesetext p { margin-bottom: 14px; }
.daten div { display: grid; grid-template-columns: minmax(0, .4fr) minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(21, 15, 82, .25); }
.daten dt { font-weight: 700; }
.offen { color: #8a2c0d; font-weight: 700; }
.offen.block { padding: 14px 18px; border-left: 4px solid var(--orange); background: #ffe6d4; border-radius: 0 12px 12px 0; color: var(--tinte); }
.zurueck { margin-top: 40px; }

/* ---------- Ruhige Fassung (weniger Bewegung): alles steht, nichts ist angeheftet ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
