/* =====================================================================================
   Ziegelrot · Gestaltung, Bautyp „Fallinie“
   Aufbau wie das Haus: Grundlagen · Knöpfe (Blech) · First (Kopf) · Leiter · Dachfläche (erster Bildschirm)
   · Rinne (Zahlen) · Fassade (Tropfen, Leistungen, Dachcheck, Stimmen, Fragen) · Sockel (Preise)
   · Boden (Kontakt) · Fuß · Auftritte · schmale Bildschirme
   ===================================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--kopf) + 16px); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--schrift); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ul, ol, figure, blockquote, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
a { color: var(--accent-text); }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.first :focus-visible, .leiter :focus-visible, .dach :focus-visible, .rinne :focus-visible, .sockel :focus-visible, .boden :focus-visible, .fuss :focus-visible { outline-color: #fff; }
.behaelter { width: min(100% - 40px, var(--breite)); margin-inline: auto; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: var(--radius-klein); background: var(--first); color: #fff; }
.sprung:focus { top: 12px; }
.marke { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 14px; }
.marke-hell, .marke-licht { color: var(--accent-licht); }
.leise { color: var(--muted); }
.klein { font-size: 14px; }
h1 { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; text-wrap: balance; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.01em; font-weight: 650; }
.abschnitt-kopf { max-width: 640px; }
.abschnitt-kopf > p:not(.marke) { margin-top: 16px; }

/* ---------- Knöpfe: eckig, mit einer Kante wie geschnittenes Blech ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: var(--radius-klein); background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; box-shadow: var(--kante) var(--accent-tief), inset 0 1px 0 rgba(255, 255, 255, .22); transition: transform .15s, box-shadow .15s, background .2s; }
.knopf:hover { background: #c74a30; }
.knopf:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--accent-tief), inset 0 1px 0 rgba(255, 255, 255, .22); }
.knopf-klein { min-height: 44px; padding: 0 16px; font-size: 14px; }
.knopf-blech { background: var(--zink-licht); color: var(--text); box-shadow: var(--kante) #98a3a9, inset 0 1px 0 #fff; }
.knopf-blech:hover { background: #fff; }
.knopf-blech:active { box-shadow: 0 1px 0 0 #98a3a9, inset 0 1px 0 #fff; }

/* ---------- First: die Kopfleiste, unten die rote Kante des Firstziegels ---------- */
.first { position: sticky; top: 0; z-index: 30; height: var(--kopf); background: var(--first); color: #fff; border-bottom: 3px solid var(--accent); }
.first-innen { height: 100%; display: flex; align-items: center; gap: 22px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 750; font-size: 21px; letter-spacing: -.02em; }
.logo-zeichen { width: 30px; height: 30px; color: var(--accent-licht); }
.first-ort { font-size: 14px; color: var(--dach-leise); padding-left: 22px; border-left: 1px solid rgba(255, 255, 255, .14); }
.kopf-tel { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.punkt { width: 9px; height: 9px; border-radius: 50%; background: #3fbf6f; box-shadow: 0 0 0 4px rgba(63, 191, 111, .2); }

/* ---------- Die Leiter: Navigation rechts. Zwei Holme, eine Sprosse je Abschnitt, die aktuelle leuchtet. ---------- */
.leiter { position: fixed; right: 18px; top: 50%; z-index: 35; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; }
.leiter-aktuell { display: none; }
.sprossen { position: relative; display: grid; padding: 10px 0; }
.sprossen::before, .sprossen::after { content: ""; position: absolute; top: -6px; bottom: -6px; width: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--zink-hell), var(--zink-licht) 45%, var(--zink)); box-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.sprossen::before { left: 3px; }
.sprossen::after { right: 3px; }
.sprossen a { position: relative; display: flex; align-items: center; justify-content: center; width: 46px; height: 44px; text-decoration: none; }
.sprossen a::before { content: ""; width: 34px; height: 7px; border-radius: 3px; background: linear-gradient(180deg, #f3f6f8, var(--zink-licht) 60%, #b9c3c9); box-shadow: 0 2px 2px rgba(0, 0, 0, .35); transition: background .25s, box-shadow .25s, transform .25s; }
.sprossen a:hover::before { transform: scaleX(1.08); }
.sprossen a.ist-aktiv::before { background: linear-gradient(180deg, #f3a28b, var(--accent) 55%, var(--accent-tief)); box-shadow: 0 0 0 3px rgba(183, 64, 43, .22), 0 0 16px rgba(240, 138, 114, .75); }
.sprossen a span { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%); padding: 6px 11px; border-radius: var(--radius-klein); background: var(--first); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; box-shadow: 0 2px 0 0 #0d1316; transition: opacity .2s, transform .2s; }
.sprossen a:hover span, .sprossen a:focus-visible span { opacity: 1; transform: translate(0, -50%); }
.leiter-anruf { display: none; }
/* Zwischen 981 und 1400 px stünde die Leiter im Inhalt: Inhalt rückt nach links */
@media (min-width: 981px) and (max-width: 1400px) {
  .behaelter { width: min(100% - 40px - var(--leiter), var(--breite)); margin-left: 20px; margin-right: calc(var(--leiter) + 20px); }
  .first-innen.behaelter, .fuss .behaelter { margin-left: auto; }
}

/* =====================================================================================
   Dachfläche: erster Bildschirm. Schräge Oberkante, darüber Himmel. Links Text, rechts das Dach.
   ===================================================================================== */
.dach { --giebel: clamp(36px, 7vw, 120px); position: relative; color: var(--dach-text); background-color: var(--dach); background-image: repeating-linear-gradient(180deg, transparent 0 46px, rgba(255, 255, 255, .025) 46px 48px), radial-gradient(120% 90% at 72% 0%, #35434c 0%, var(--dach) 46%, var(--dach-2) 100%); clip-path: polygon(0 0, 100% var(--giebel), 100% 100%, 0 100%); }
.dach-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; min-height: calc(100vh - var(--kopf)); padding: calc(var(--giebel) + 36px) 0 64px; }
.held-text .einleitung { color: var(--dach-leise); font-size: 19px; max-width: 520px; margin: 22px 0 30px; }
.held-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.held-hinweis { margin-top: 28px; font-size: 14px; color: var(--dach-leise); display: flex; align-items: center; gap: 10px; }
.held-hinweis::before { content: ""; width: 26px; height: 2px; background: var(--accent-licht); }
.nur-finger { display: none; }
@media (hover: none) { .nur-maus { display: none; } .nur-finger { display: inline; } }

.dach-buehne { position: relative; }
.dach-bild { position: relative; aspect-ratio: 1000 / 700; }
.dach-svg, .treppe-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dach-svg { touch-action: pan-y; cursor: crosshair; }
.treppe-svg { opacity: 0; transform: translateY(14px); pointer-events: none; }
html.js .dach-svg, html.js .treppe-svg { transition: opacity .45s, transform .45s cubic-bezier(.2, .8, .2, 1); }
.dach-buehne.treppe .treppe-svg { opacity: 1; transform: none; pointer-events: auto; }
.dach-buehne.treppe .dach-svg { opacity: 0; pointer-events: none; }
/* Ohne JavaScript: Dach mit fertigem Ausschnitt, darunter die Treppe */
html:not(.js) .dach-bild { aspect-ratio: auto; }
html:not(.js) .dach-svg, html:not(.js) .treppe-svg { position: static; height: auto; opacity: 1; transform: none; }
html:not(.js) .treppe-svg { margin-top: 24px; }
html:not(.js) .umschalter { display: none; }

/* Die Ziegel: --h (0 bis 1) sagt, wie weit ein Ziegel hochgeklappt ist. Gekippt wird um die sichtbare Oberkante. */
.dach-svg .z { transform-box: fill-box; transform-origin: 50% 38%; transform: scaleY(calc(1 - .82 * var(--h, 0))); }
html[data-bewegung="mittel"] .dach-svg .z, html[data-bewegung="dynamisch"] .dach-svg .z { transition: transform .5s cubic-bezier(.2, .75, .25, 1); }
.dach-svg .ring { fill: none; stroke: rgba(20, 14, 10, .42); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.dach-svg .ring-aussen { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1.2; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; }
.dach-svg .schild line { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dach-svg .schild circle { fill: #fff; }
.dach-svg .schild rect { fill: rgba(255, 255, 255, .97); }
.dach-svg .schild text { font: 600 15px var(--schrift); fill: var(--text); }
.treppe-svg .stufe-name { font: 700 17px var(--schrift); fill: var(--dach-text); }
.treppe-svg .stufe-mass { font: 400 13px var(--schrift); fill: var(--dach-leise); }
.treppe-svg .stufe-strich { stroke: var(--dach-leise); stroke-width: 1.5; }
.treppe-svg .treppe-hinweis { font: 400 13px var(--schrift); fill: var(--dach-leise); }

/* Wolkenschatten, nur „dynamisch“ und nur solange das Dach zu sehen ist (Klasse dach-an aus js/ziegel.js) */
.wolke { position: absolute; inset: 0; overflow: hidden; pointer-events: none; display: none; }
.wolke::before { content: ""; position: absolute; inset: -10% -45%; background: linear-gradient(90deg, transparent 0 32%, rgba(6, 12, 16, .3) 46% 54%, transparent 68% 100%); will-change: transform; animation: wolke 24s linear infinite; }
html.js[data-bewegung="dynamisch"] .dach-buehne.dach-an:not(.treppe) .wolke { display: block; }
@keyframes wolke { from { transform: translate(-48%, 0); } to { transform: translate(48%, 0); } }

.dach-steuer { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 18px; }
.umschalter { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius-klein); background: var(--zink-licht); color: var(--text); font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; box-shadow: var(--kante) #98a3a9, inset 0 1px 0 #fff; transition: transform .15s, box-shadow .15s, background .2s, color .2s; }
.umschalter:hover { background: #fff; }
.umschalter:active { transform: translateY(2px); box-shadow: 0 1px 0 0 #98a3a9, inset 0 1px 0 #fff; }
.umschalter[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: var(--kante) var(--accent-tief), inset 0 1px 0 rgba(255, 255, 255, .22); }
.legende { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legende li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--dach-leise); }
.legende i { width: 14px; height: 14px; border-radius: 3px; background: var(--f); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }

/* =====================================================================================
   Rinne: ein schmales Band aus Zink mit den Zahlen, unten rund wie eine Hängerinne
   ===================================================================================== */
.rinne { position: relative; z-index: 2; color: var(--zink-text); background-color: var(--zink); background-image: linear-gradient(180deg, #65727a 0%, #56636a 40%, #4d595f 100%); border-radius: 0 0 28px 28px; box-shadow: 0 12px 28px rgba(20, 30, 36, .28); }
.rinne::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(180deg, var(--blech-licht), rgba(216, 223, 227, 0)); opacity: .7; }
.zahlen-liste { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 30px 0 34px; }
.zahlen-liste li { padding-left: 16px; border-left: 2px solid rgba(255, 255, 255, .2); }
.zahlen-liste b { display: block; font-size: 38px; font-weight: 700; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.zahlen-liste li > span { display: block; margin-top: 8px; font-size: 14px; color: #f1f4f6; }

/* =====================================================================================
   Fassade: die helle Wand
   ===================================================================================== */
.fassade { position: relative; background-color: var(--wand); }

/* ---------- Der Tropfen, klebend: links fünf Schritte, rechts der Schnitt ----------
   Ohne .tropfen-an (ohne JavaScript, „starr“, „Bewegung reduzieren“): Schritte als Karten, Szene zeigt die Rinne. */
.tropfen { padding-top: var(--abstand); }
.tropfen-kopf { max-width: 760px; margin-bottom: 44px; }
.tropfen-raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: start; padding-bottom: var(--abstand); }
.schritte { display: grid; gap: 16px; }
.schritt { padding: 26px 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.schritt-nr { font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-text); }
.schritt h3 { margin: 6px 0 10px; font-size: 24px; }
.schritt p { color: var(--muted); }
.schritt .schritt-wert { margin-top: 12px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.schritt .knopf { margin-top: 18px; }
.tropfen-buehne { position: relative; }
.tropfen-fenster { position: relative; overflow: hidden; aspect-ratio: 3 / 5; border-radius: var(--radius); background-color: #dfe9f0; background-image: linear-gradient(180deg, #c9dcea 0%, #e2ecf3 55%, #edf2f5 100%); box-shadow: inset 0 0 0 1px rgba(26, 32, 36, .14), 0 20px 50px rgba(26, 32, 36, .1); }
.schnitt-svg { display: block; width: 100%; height: auto; transform: translateY(-22%); will-change: transform; }
.schnitt-svg text { font: 500 15px var(--schrift); fill: var(--text); }
.schnitt-svg .teil line { stroke: var(--text); stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.schnitt-svg .teil circle { fill: var(--text); }
.schnitt-svg .teil rect { fill: rgba(255, 255, 255, .96); stroke: rgba(26, 32, 36, .18); stroke-width: 1; vector-effect: non-scaling-stroke; }
.schnitt-svg .teil .masslinie { stroke: var(--accent-text); stroke-width: 1.5; fill: none; vector-effect: non-scaling-stroke; }
.schnitt-svg .teil .einsatz { fill: rgba(255, 255, 255, .96); }
.schnitt-svg .teil .einsatz-titel { font-weight: 600; font-size: 14px; }
.schnitt-svg .teil .einsatz-wert { font-size: 14px; fill: var(--muted); }
.schnitt-svg .spritzer-ring { fill: none; stroke: var(--wasser); stroke-width: 2; vector-effect: non-scaling-stroke; }
.schnitt-svg .teil { opacity: 1; }
html.tropfen-an .schnitt-svg .teil { opacity: 0; transition: opacity .35s; }
html.tropfen-an .schnitt-svg .teil.an { opacity: 1; }
.fallinie { position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; border-radius: 1px; background: rgba(26, 32, 36, .14); display: none; }
.fallinie i { position: absolute; left: -1px; top: 0; width: 4px; height: 100%; border-radius: 2px; background: var(--wasser); transform-origin: 50% 0; transform: scaleY(0); }
html.tropfen-an .fallinie { display: block; }
/* Regen, nur „dynamisch“ und nur mit laufender Fahrt: ein Muster im Himmel der Zeichnung (Clip), wandert 60 Einheiten */
.schnitt-svg .regen-flaeche { display: none; opacity: .55; }
html.js[data-bewegung="dynamisch"].tropfen-an .schnitt-svg .regen-flaeche { display: block; will-change: transform; animation: regen 1s linear infinite; }
@keyframes regen { from { transform: translateY(0); } to { transform: translateY(60px); } }
/* Messgerät unten rechts in der Szene */
.messgeraet { position: absolute; right: 14px; bottom: 14px; width: 214px; padding: 12px 14px 10px; border-radius: var(--radius); background-color: rgba(31, 41, 47, .94); color: var(--dach-text); box-shadow: 0 3px 0 0 #0d1316, 0 14px 30px rgba(0, 0, 0, .28); }
.mess-schritt { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--dach-leise); }
.mess-schritt b { color: #fff; }
.mess-werte { margin-top: 6px; }
.mess-werte div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.mess-werte dt { color: var(--dach-leise); }
.mess-werte dd { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wasserwaage { width: 100%; height: 26px; margin-top: 8px; }
.ww-koerper { fill: #e2b23f; stroke: #8a6a1c; stroke-width: 1; }
.ww-glas { fill: #d6ecdf; stroke: #3d5a4a; stroke-width: 1; }
.ww-strich { stroke: #2b3b33; stroke-width: 1; }
.ww-blase { fill: #fff; stroke: #6f9b84; stroke-width: 1; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.messgeraet.ohne-waage .wasserwaage { display: none; }
.mess-hinweis { margin-top: 6px; font-size: 11px; color: var(--dach-leise); }

/* Mit Fahrt: Szene klebt rechts, Schritte laufen links vorbei, je Schritt eine Fensterhöhe */
html.tropfen-an .tropfen-raster { align-items: stretch; }
html.tropfen-an .schritte { gap: 0; padding-bottom: 50vh; }
html.tropfen-an .schritt { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; padding: 0 0 0 28px; border: 0; border-left: 3px solid var(--border); border-radius: 0; background: transparent; opacity: .36; transition: opacity .4s, border-color .4s; }
html.tropfen-an .schritt.ist-aktiv { opacity: 1; border-left-color: var(--accent); }
html.tropfen-an .tropfen-buehne { position: sticky; top: calc(var(--kopf) + 16px); height: calc(100vh - var(--kopf) - 32px); }
html.tropfen-an .tropfen-fenster { aspect-ratio: auto; height: 100%; }
html.tropfen-an .schnitt-svg { transform: none; }

/* ---------- Leistungen: fünf Karten, gestaffelt wie die Schichten eines Dachs ---------- */
.leistungen { padding: var(--abstand) 0; }
.schichten { display: grid; gap: 14px; margin-top: 44px; }
.schicht-karte { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 22px; align-items: start; padding: 24px 28px 24px 22px; background: var(--surface); border: 1px solid var(--border); border-left: 10px solid var(--f, var(--accent)); border-radius: var(--radius); }
.schicht-karte:nth-child(2) { margin-left: 34px; }
.schicht-karte:nth-child(3) { margin-left: 68px; }
.schicht-karte:nth-child(4) { margin-left: 102px; }
.schicht-karte:nth-child(5) { margin-left: 136px; }
.schicht-zeichen { width: 48px; height: 48px; color: var(--f, var(--accent)); margin-top: 2px; }
.schicht-karte p { color: var(--muted); margin-top: 8px; }
.schicht-karte .karte-zahl { margin-top: 10px; font-weight: 650; color: var(--accent-text); font-variant-numeric: tabular-nums; }

/* Bildplatzhalter: beschrifteter Rahmen, im Kundenprojekt ein Foto (img/BILDLISTE.md) */
.bild-platzhalter { display: grid; place-items: center; padding: 20px; text-align: center; border: 2px dashed var(--border); border-radius: var(--radius); background-color: var(--wand-2); background-image: repeating-linear-gradient(135deg, rgba(26, 32, 36, .035) 0 12px, transparent 12px 24px); }
.bild-platzhalter figcaption { font-size: 14px; color: var(--muted); max-width: 440px; }
.bild-breit { aspect-ratio: 16 / 9; margin-top: 44px; }
.bild-hoch { aspect-ratio: 4 / 5; max-width: 320px; margin-top: 28px; }
.bild-quer { aspect-ratio: 3 / 2; margin-top: 28px; }

/* ---------- Dachcheck: die Liste steht in einem Fenster mit Sprosse und Fensterbank aus Blech ---------- */
.dachcheck { padding: 0 0 var(--abstand); }
.dachcheck-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.dachcheck-preis { margin-top: 18px; color: var(--muted); }
.dachcheck-preis b { font-size: 26px; color: var(--text); margin-right: 8px; }
.dachcheck .abschnitt-kopf .knopf { margin-top: 22px; }
.fenster { position: relative; padding: 30px 34px; background-color: var(--fenster); background-image: linear-gradient(160deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 55%); border: 14px solid #fff; border-radius: 2px; box-shadow: 0 0 0 1px var(--border), inset 0 0 0 1px rgba(26, 32, 36, .08), 0 22px 44px rgba(26, 32, 36, .1); }
.fenster::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 14px; margin-left: -7px; background: #fff; box-shadow: inset 1px 0 0 var(--border), inset -1px 0 0 var(--border); }
.fenster::after { content: ""; position: absolute; left: -30px; right: -30px; bottom: -38px; height: 14px; border-radius: 0 0 3px 3px; background: linear-gradient(180deg, var(--blech-licht), var(--blech) 55%, var(--blech-tief)); box-shadow: 0 4px 10px rgba(26, 32, 36, .18); }
.haken-liste { display: grid; grid-template-columns: 1fr 1fr; column-gap: 46px; row-gap: 16px; }
.haken-liste li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.45; }
.haken { width: 22px; height: 22px; flex: none; margin-top: 1px; color: var(--accent-text); }
.haken path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }

/* ---------- Stimmen ---------- */
.stimmen { padding: 0 0 var(--abstand); }
.stimmen-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stimme { padding: 28px 30px; background: var(--surface); border: 1px solid var(--border); border-top: 6px solid var(--accent); border-radius: var(--radius); }
.stimme blockquote p { font-size: 19px; line-height: 1.5; font-weight: 450; }
.stimme figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- Fragen ---------- */
.fragen { padding: 0 0 var(--abstand); }
.fragen-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.fragen-liste details { border-bottom: 1px solid var(--border); }
.fragen-liste details:first-child { border-top: 1px solid var(--border); }
.fragen-liste summary { list-style: none; cursor: pointer; padding: 18px 44px 18px 0; position: relative; font-weight: 650; font-size: 18px; }
.fragen-liste summary::-webkit-details-marker { display: none; }
.fragen-liste summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--accent-text); border-bottom: 2px solid var(--accent-text); transform: rotate(45deg); transition: transform .25s; }
.fragen-liste details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.fragen-liste details p { padding: 0 0 20px; color: var(--muted); max-width: 620px; }

/* =====================================================================================
   Sockel: Preise, dunkles Zink mit heller Kante oben
   ===================================================================================== */
.sockel { padding: var(--abstand) 0; color: var(--sockel-text); background-color: var(--sockel); border-top: 8px solid var(--zink-hell); box-shadow: inset 0 8px 0 rgba(255, 255, 255, .06); }
.sockel-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.sockel-leise { color: var(--sockel-leise); }
.preis-liste { display: grid; gap: 8px; }
.preis-liste div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 20px; border-radius: var(--radius-klein); background-color: var(--sockel-2); border-left: 4px solid var(--accent); }
.preis-liste dt { color: var(--sockel-text); }
.preis-liste dd { font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; color: #fff; }

/* =====================================================================================
   Boden: Kontakt und Anfrage, dunkle Erde
   ===================================================================================== */
.boden { padding: var(--abstand) 0; color: var(--boden-text); background-color: var(--boden); }
.boden a { color: #fff; }
.boden-leise { color: var(--boden-leise); }
.kontakt-raster { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.kontakt-text > p:not(.marke) { margin-top: 16px; }
.kontakt-text address { margin-top: 24px; line-height: 1.7; }
.notdienst { padding: 14px 18px; background: var(--boden-2); border-left: 4px solid var(--accent-licht); border-radius: var(--radius-klein); }
.notdienst b { color: #fff; }
.boden .bild-platzhalter { background-color: var(--boden-2); border-color: rgba(255, 255, 255, .18); background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .04) 0 12px, transparent 12px 24px); }
.boden .bild-platzhalter figcaption { color: var(--boden-leise); }
.formular { display: grid; gap: 18px; padding: 30px; border-radius: var(--radius); background-color: var(--boden-2); border: 1px solid rgba(255, 255, 255, .1); }
.feld { display: grid; gap: 6px; }
.feld label { font-size: 14px; font-weight: 600; color: var(--boden-leise); }
.feld input, .feld select, .feld textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--radius-klein); background: #1c1a17; color: var(--boden-text); font: inherit; }
.feld textarea { min-height: 110px; resize: vertical; }
.feld select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--boden-leise) 50%), linear-gradient(135deg, var(--boden-leise) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.formular .knopf { width: 100%; margin-top: 4px; }
.formular-meldung { font-weight: 600; min-height: 1.6em; color: #fff; }
.formular-meldung:empty { display: none; }

/* =====================================================================================
   Fuß: ganz unten, die letzte Zeile mittig
   ===================================================================================== */
.fuss { padding: 56px 0 0; color: var(--boden-leise); background-color: var(--erde); font-size: 15px; }
.fuss-raster { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.fuss a { color: var(--boden-text); }
.fuss-logo { color: #fff; font-weight: 750; font-size: 20px; margin-bottom: 6px; }
.fuss-links a { margin-right: 16px; }
.fuss-demo { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.fuss-zeile { width: 100%; max-width: none; margin: 0; padding: 22px 20px 26px; text-align: center; font-size: 13px; color: #8d877d; }
.fuss-zeile a { color: #aaa399; }

/* =====================================================================================
   Auftritte beim Hereinscrollen (js/main.js setzt .ist-da). Je Abschnitt eine kleine Bewegung:
   Standard blendet von unten ein · schicht legt sich von oben auf · haken zeichnet sich ·
   band rollt von links aus · kippt klappt wie ein Ziegel herein. Nur transform, opacity, clip-path.
   ===================================================================================== */
html.js[data-bewegung="mittel"] [data-auftritt], html.js[data-bewegung="dynamisch"] [data-auftritt] { opacity: 0; transform: translateY(22px); transition: opacity .6s, transform .6s cubic-bezier(.2, .8, .2, 1); }
html.js[data-bewegung="mittel"] [data-auftritt="schicht"], html.js[data-bewegung="dynamisch"] [data-auftritt="schicht"] { transform: translateY(-18px); }
html.js[data-bewegung="mittel"] [data-auftritt="kippt"], html.js[data-bewegung="dynamisch"] [data-auftritt="kippt"] { transform: perspective(900px) rotateX(-16deg); transform-origin: 50% 0; }
html.js[data-bewegung="mittel"] [data-auftritt="band"], html.js[data-bewegung="dynamisch"] [data-auftritt="band"] { transform: none; opacity: 1; clip-path: inset(0 100% 0 0); transition: clip-path .6s cubic-bezier(.2, .8, .2, 1); }
html.js[data-bewegung="mittel"] [data-auftritt="haken"] .haken path, html.js[data-bewegung="dynamisch"] [data-auftritt="haken"] .haken path { stroke-dashoffset: 24; transition: stroke-dashoffset .5s ease-out .25s; }
html.js [data-auftritt].ist-da { opacity: 1 !important; transform: none !important; }
html.js [data-auftritt="band"].ist-da { clip-path: inset(0 0 0 0); }
html.js [data-auftritt="haken"].ist-da .haken path { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-auftritt] { opacity: 1 !important; transform: none !important; clip-path: none !important; transition: none !important; }
  html.js [data-auftritt="haken"] .haken path { stroke-dashoffset: 0 !important; transition: none !important; }
  .wolke, .regen { display: none !important; }
  .dach-svg .z, .dach-svg, .treppe-svg, .ww-blase, .sprossen a::before, .sprossen a span { transition: none !important; }
}

/* =====================================================================================
   Schmale Bildschirme
   ===================================================================================== */
@media (max-width: 980px) {
  body { padding-bottom: 64px; }
  .dach { --giebel: clamp(28px, 7vw, 70px); }
  .dach-raster { grid-template-columns: minmax(0, 1fr); gap: 36px; min-height: 0; padding-bottom: 56px; }
  .held-text .einleitung { max-width: none; }
  /* Die Leiter liegt am Handy als Leiste unten */
  .leiter { right: 0; left: 0; top: auto; bottom: 0; transform: none; flex-direction: row; align-items: center; gap: 10px; padding: 6px 12px 8px; background: rgba(31, 41, 47, .97); box-shadow: 0 -8px 24px rgba(0, 0, 0, .22); }
  .leiter-aktuell { display: block; flex: none; width: 92px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dach-leise); line-height: 1.2; }
  .sprossen { display: flex; flex: 1; justify-content: space-between; padding: 0 4px; }
  .sprossen::before { top: 50%; bottom: auto; left: 0; right: 0; width: auto; height: 5px; margin-top: -2.5px; background: linear-gradient(180deg, var(--zink-hell), var(--zink-licht) 45%, var(--zink)); }
  .sprossen::after { display: none; }
  .sprossen a { width: 34px; height: 44px; }
  .sprossen a::before { width: 7px; height: 26px; }
  .sprossen a span { display: none; }
  .leiter-anruf { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-klein); background: var(--accent); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; box-shadow: var(--kante) var(--accent-tief); }
  .leiter-anruf svg { width: 20px; height: 20px; flex: none; }
  .first-ort { display: none; }
  .tropfen-raster, .dachcheck-raster, .fragen-raster, .sockel-raster, .kontakt-raster { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .tropfen-buehne { order: -1; }
  /* Fahrt am Handy: Szene klebt oben, die Schritte laufen in der unteren Hälfte vorbei */
  html.tropfen-an .tropfen-buehne { top: calc(var(--kopf) + 8px); height: 46vh; z-index: 5; }
  html.tropfen-an .schritt { min-height: 100vh; justify-content: flex-start; padding: calc(46vh + 28px) 0 0 20px; }
  html.tropfen-an .schritte { padding-bottom: 40vh; }
  html.tropfen-an .schritt h3 { font-size: 21px; }
  /* Messgerät am Handy: schmaler Streifen am unteren Rand der Szene, damit die Zeichnung frei bleibt */
  .messgeraet { left: 10px; right: 10px; bottom: 10px; width: auto; padding: 8px 12px; }
  .mess-schritt { font-size: 11px; }
  .mess-werte { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 2px; }
  .mess-werte div { padding: 0; border: 0; gap: 6px; font-size: 13px; }
  .wasserwaage { width: 90px; height: 18px; margin: 4px 0 0; }
  .mess-hinweis { display: none; }
  .schichten { margin-top: 32px; }
  .schicht-karte:nth-child(n) { margin-left: 0; }
  .stimmen-raster { grid-template-columns: 1fr; }
  .fuss-raster { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .first-innen { gap: 14px; }
  .kopf-tel { display: none; }
  .first .knopf-klein { margin-left: auto; }
  .dach-raster { padding-top: calc(var(--giebel) + 28px); }
  .zahlen-liste { grid-template-columns: 1fr 1fr; gap: 22px 16px; padding: 26px 0 30px; }
  .zahlen-liste b { font-size: 32px; }
  .rinne { border-radius: 0 0 18px 18px; }
  .schritt { padding: 20px; }
  .schicht-karte { grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 20px 20px 20px 16px; }
  .schicht-zeichen { width: 38px; height: 38px; }
  .fenster { padding: 22px 20px; border-width: 10px; }
  .fenster::before { display: none; }
  .fenster::after { left: -20px; right: -20px; bottom: -30px; height: 12px; }
  .haken-liste { grid-template-columns: 1fr; row-gap: 14px; }
  .stimme blockquote p { font-size: 17px; }
  .formular { padding: 22px; }
  .preis-liste div { flex-direction: column; gap: 4px; }
  .fuss-zeile { padding-bottom: 30px; }
  /* Leiste unten: schmaler, damit sie auf 360 px passt */
  .leiter { gap: 8px; padding: 6px 10px 8px; }
  .leiter-aktuell { width: 66px; font-size: 10px; }
  .sprossen a { width: 28px; }
  .leiter-anruf { min-width: 44px; padding: 0 12px; }
  .leiter-anruf span { display: none; } /* der Link trägt aria-label */
}
