/* =====================================================================================
   Vorlage 21 Installateur · Aussehen
   Farben und Maße stehen in tokens.css. Aufbau: weiß, große weiche Flächen in Wasser-,
   Minz- und Wärmeton, runde Kacheln in verschiedenen Größen, ein klebender Abschnitt.
   ===================================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--schrift); font-size: 18px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; font-weight: 640; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(38px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.022em; }
h2 { font-size: clamp(32px, 3.3vw, 44px); line-height: 1.08; letter-spacing: -0.018em; }
h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-tief); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
address { font-style: normal; }

.behaelter { width: min(100% - 40px, var(--breite)); margin-inline: auto; }
.sprung { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--text); color: #fff; border-radius: 999px; }
.sprung:focus { top: 12px; }
.marke { margin: 0 0 14px; font-size: 15px; font-weight: 650; letter-spacing: .02em; color: var(--accent); }
.marke-hell { color: #7fd0e8; }
.leise { color: var(--muted); }
.klein { font-size: 16px; }
.abschnitt-kopf { max-width: var(--spalte); margin-bottom: 44px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: inherit; font-size: 17px; font-weight: 650;
  text-decoration: none; transition: background-color .2s, transform .15s;
}
.knopf:hover { background: var(--accent-tief); color: var(--on-accent); }
.knopf-klein { min-height: 42px; padding: 0 18px; font-size: 16px; }
.knopf-hell { background: #fff; color: var(--text); }
.knopf-hell:hover { background: var(--accent-hell); color: var(--text); }
.textlink { font-weight: 650; text-decoration: none; color: var(--text); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.textlink:hover { color: var(--accent-tief); }

/* ---------- Kopf: bleibt oben, Milchglas mit festem Grund als Ausweichlösung ---------- */
.kopf { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid transparent; transition: border-color .2s, height .2s; }
@supports (backdrop-filter: blur(1px)) { .kopf { background: rgba(255,255,255,.82); backdrop-filter: saturate(1.6) blur(14px); } }
.kopf.ist-klein { border-bottom-color: var(--border); }
.kopf-innen { display: flex; align-items: center; gap: 28px; height: var(--kopf); }
/* „dynamisch“: die Kopfzeile behält ihre Höhe (sonst rutscht die ganze Seite), nur das Zeichen wird kleiner */
.logo-zeichen { transition: transform .25s; transform-origin: left center; }
.kopf.ist-klein .logo-zeichen { transform: scale(.82); }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 750; font-size: 21px; letter-spacing: -0.02em; }
.logo-zeichen { width: 30px; height: 30px; color: var(--accent); }
.menue { display: flex; gap: 26px; margin-left: 12px; }
.menue a { color: var(--text); text-decoration: none; font-size: 16px; font-weight: 520; }
.menue a:hover { color: var(--accent); }
.kopf-tel { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 650; font-size: 16px; font-variant-numeric: tabular-nums; }
.punkt { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 4px rgba(31,157,85,.16); }
@media (max-width: 980px) { .menue { display: none; } }
@media (max-width: 560px) { .kopf-tel { display: none; } .kopf-innen > .knopf { margin-left: auto; } }

/* ---------- 1 · Erster Bildschirm: weiche Flächen wie Wasser im Licht ---------- */
.held { position: relative; padding: 56px 0 var(--abstand); overflow: hidden; }
.held::before, .held::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; }
.held::before { width: 760px; height: 760px; right: -180px; top: -260px; background: radial-gradient(closest-side, var(--accent-hell), rgba(226,241,246,0)); }
.held::after { width: 620px; height: 620px; left: -260px; bottom: -280px; background: radial-gradient(closest-side, var(--minze), rgba(229,243,236,0)); }
.held-raster { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 64px; align-items: center; }
.held-text h1 { max-width: 13em; }
.einleitung { max-width: 34em; margin-top: 24px; font-size: 20px; line-height: 1.55; color: var(--muted); }
.held-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 28px; margin-top: 34px; }
.held-bild { position: relative; }
.held-karte {
  position: absolute; background: #fff; border-radius: var(--radius); padding: 16px 20px;
  box-shadow: 0 1px 2px rgba(15,30,38,.06), 0 18px 40px -18px rgba(15,30,38,.28);
}
.held-karte p { margin: 0; }
.held-karte-oben { left: -36px; top: 44px; display: flex; align-items: center; gap: 14px; }
.held-karte-oben b { display: block; font-size: 17px; }
.held-karte-oben span:not(.karte-zeichen) { display: block; font-size: 15px; color: var(--muted); }
.karte-zeichen { flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--minze); position: relative; }
.karte-zeichen::after { content: ""; position: absolute; left: 13px; top: 10px; width: 9px; height: 15px; border: solid #1f7a4a; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.held-karte-unten { right: -28px; bottom: 56px; min-width: 230px; }
.karte-klein { font-size: 15px; color: var(--muted); }
.karte-gross { font-size: 24px; font-weight: 650; letter-spacing: -0.01em; margin: 2px 0 !important; }
@media (max-width: 900px) {
  .held { padding-top: 32px; }
  .held-raster { grid-template-columns: 1fr; gap: 44px; }
  .held-karte-oben { left: 12px; top: 12px; }
  .held-karte-unten { right: 12px; bottom: 12px; }
}

/* ---------- Bildplatzhalter: gewollt, ruhig, mit Wasserhauch ---------- */
.bild-platzhalter {
  position: relative; display: flex; align-items: flex-end; margin: 0; overflow: hidden;
  aspect-ratio: var(--format, 3 / 2); border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 80% 10%, rgba(255,255,255,.7), rgba(255,255,255,0) 60%),
    repeating-linear-gradient(135deg, rgba(10,106,138,.07) 0 1px, transparent 1px 14px),
    var(--accent-hell);
}
.bild-gross { border-radius: var(--radius-gross); }
.bild-platzhalter figcaption {
  margin: 20px; padding: 9px 13px; border-radius: var(--radius-klein); max-width: calc(100% - 40px);
  background: rgba(255,255,255,.92); color: var(--text); font-size: 15px; font-weight: 600; line-height: 1.35;
}

/* ---------- 2 · Zahlen ---------- */
.zahlen { padding: 0 0 var(--abstand); }
.zahlen-liste { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.zahlen-liste li { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); }
.zahlen-liste b { display: block; font-size: clamp(40px, 4.4vw, 56px); font-weight: 640; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.zahlen-liste span { display: block; margin-top: 10px; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .zahlen-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 3 · Leistungen: Kacheln in verschiedenen Größen ---------- */
.leistungen { padding: 0 0 var(--abstand); }
.kacheln { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.kachel { border-radius: var(--radius-gross); padding: 32px; display: flex; flex-direction: column; min-width: 0; }
.kachel h3 { margin-bottom: 12px; }
.kachel p { color: var(--muted); }
.kachel-zahl { margin-top: auto !important; margin-bottom: 0 !important; padding-top: 10px; color: var(--text) !important; font-weight: 650; font-variant-numeric: tabular-nums; }
.kachel-bad { grid-column: span 7; grid-row: span 2; padding: 0; background: var(--surface); overflow: hidden; }
.kachel-bad .bild-platzhalter { border-radius: 0; }
.kachel-bad .kachel-text { padding: 30px 32px 32px; display: flex; flex-direction: column; flex: 1; }
.kachel-waerme { grid-column: span 5; background: var(--waerme); }
.kachel-wasser { grid-column: span 5; background: var(--accent-hell); }
.kachel-wartung { grid-column: span 5; background: var(--minze); }
.kachel-not { grid-column: span 7; background: var(--text); color: #fff; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.kachel-not h3 { color: #fff; flex-basis: 100%; margin-bottom: 0; }
.kachel-not p { color: var(--dunkel-leise); flex: 1 1 260px; margin: 0; }
@media (max-width: 900px) {
  .kachel-bad, .kachel-waerme, .kachel-wasser, .kachel-wartung, .kachel-not { grid-column: 1 / -1; grid-row: auto; }
  .kachel { padding: 26px; }
  .kachel-bad .kachel-text { padding: 24px 26px 26px; }
}

/* ---------- 4 · So verlegen wir: klebender Abschnitt mit Rohrnetz ---------- */
.verlegen { background: var(--surface); }
.rohr-buehne { padding: var(--abstand) 0; }
.rohr-raster { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.rohr-text h2 { margin-bottom: 30px; }
.rohr-schritte { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.rohr-schritte li { counter-increment: s; position: relative; padding: 16px 18px 16px 62px; border-radius: var(--radius); background: #fff; }
.rohr-schritte li::before {
  content: counter(s); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent-hell); color: var(--accent-tief); font-weight: 700; font-size: 16px;
}
.rohr-schritte b { display: block; font-size: 19px; }
.rohr-schritte span { display: block; color: var(--muted); font-size: 16px; line-height: 1.5; }
.rohr-bild { position: relative; border-radius: var(--radius-gross); background: #fff; overflow: hidden; aspect-ratio: 4 / 3; }
#rohr-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.rohr-hahn { position: absolute; z-index: 2; width: 46px; height: 46px; margin: -23px 0 0 -23px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; visibility: hidden; }
.rohr-legende { position: absolute; left: 18px; bottom: 16px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 8px 14px; list-style: none; border-radius: 999px; background: rgba(255,255,255,.9); font-size: 14px; color: var(--muted); }
.rohr-legende li { display: inline-flex; align-items: center; gap: 7px; }
.farbe { width: 18px; height: 6px; border-radius: 3px; }
.farbe-vl { background: var(--vorlauf); } .farbe-rl { background: var(--ruecklauf); } .farbe-tw { background: var(--trinkwasser); }

/* Mit JavaScript und Bewegung: die Bühne klebt, beim Scrollen läuft das Netz durch fünf Schritte */
html.js.fx-an .rohr-spur { height: 340vh; height: 340svh; }
html.js.fx-an .rohr-buehne { position: sticky; top: var(--kopf); height: calc(100vh - var(--kopf)); height: calc(100svh - var(--kopf)); display: flex; align-items: center; padding: 24px 0; }
html.js.fx-an .rohr-schritte li { transition: opacity .35s, background-color .35s; opacity: .45; background: transparent; }
html.js.fx-an .rohr-schritte li.ist-aktiv { opacity: 1; background: #fff; box-shadow: 0 14px 30px -22px rgba(15,30,38,.4); }
html.js.fx-an .rohr-schritte li.ist-fertig { opacity: .72; }
html.js.fx-an .rohr-schritte li.ist-fertig::before { content: "✓"; background: var(--accent); color: #fff; }
html.js.fx-an .rohr-bild { aspect-ratio: auto; height: min(70vh, 620px); }
@media (max-width: 900px) {
  .rohr-raster { grid-template-columns: 1fr; gap: 28px; }
  .rohr-bild { order: -1; }
  html.js.fx-an .rohr-buehne { align-items: stretch; padding: 12px 0; }
  html.js.fx-an .rohr-raster { grid-template-rows: auto auto; align-content: start; gap: 18px; height: 100%; }
  html.js.fx-an .rohr-bild { height: 46vh; height: 46svh; }
  html.js.fx-an .rohr-text h2 { font-size: 26px; margin-bottom: 12px; }
  html.js.fx-an .rohr-text .marke { margin-bottom: 6px; }
  /* am Handy steht nur der gerade aktive Schritt, die übrigen sind ausgeblendet */
  /* die übrigen bleiben im Zählwerk (sonst stünde überall „1"), sind aber unsichtbar übereinander */
  html.js.fx-an .rohr-schritte { display: block; position: relative; }
  html.js.fx-an .rohr-schritte li { position: absolute; left: 0; right: 0; top: 0; visibility: hidden; }
  html.js.fx-an .rohr-schritte li.ist-aktiv { position: relative; visibility: visible; }
  .rohr-legende { font-size: 13px; left: 10px; bottom: 10px; }
}

/* ---------- 5 · Fußbodenheizung, dunkel ---------- */
.heizung { background: var(--dunkel); color: var(--dunkel-text); padding: var(--abstand) 0; }
.heizung h2 { color: #fff; margin-bottom: 20px; }
.heizung-raster { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.heizung-text p { color: var(--dunkel-leise); }
.heizung-werte { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 30px 0 0; }
.heizung-werte div { padding: 16px 18px; border-radius: var(--radius); background: rgba(255,255,255,.06); }
.heizung-werte dt { font-size: 15px; color: var(--dunkel-leise); }
.heizung-werte dd { margin: 4px 0 0; font-size: 24px; font-weight: 650; color: #fff; font-variant-numeric: tabular-nums; }
.heizung-bild { position: relative; }
#waerme-fx { width: 100%; aspect-ratio: 16 / 11; border-radius: var(--radius-gross); background: #11222b; }
.heizung-hinweis { margin: 12px 0 0; font-size: 15px; color: var(--dunkel-leise); }
@media (max-width: 900px) {
  .heizung-raster { grid-template-columns: 1fr; gap: 32px; }
  .heizung-bild { order: -1; }          /* am Handy zuerst das Bild: es wird beim Scrollen warm */
  .heizung-werte dd { font-size: 20px; }
}

/* ---------- 6 · Preise ---------- */
.preise { padding: var(--abstand) 0; }
.preise-raster { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.preis-liste { margin: 0; border-radius: var(--radius-gross); background: var(--surface); padding: 12px 32px; }
.preis-liste div { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); }
.preis-liste div:last-child { border-bottom: 0; }
.preis-liste dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 900px) { .preise-raster { grid-template-columns: 1fr; gap: 0; } .preis-liste { padding: 6px 22px; } }

/* ---------- 7 · Stimmen ---------- */
.stimmen { padding: 0 0 var(--abstand); }
.stimmen-raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.stimme { margin: 0; padding: 34px; border-radius: var(--radius-gross); background: var(--accent-hell); }
.stimme:nth-child(2) { background: var(--minze); }
.stimme blockquote { margin: 0 0 18px; }
.stimme blockquote p { margin: 0; font-size: 23px; line-height: 1.4; font-weight: 520; letter-spacing: -0.01em; }
.stimme figcaption { color: var(--muted); font-size: 16px; }
@media (max-width: 760px) { .stimmen-raster { grid-template-columns: 1fr; } .stimme { padding: 26px; } .stimme blockquote p { font-size: 20px; } }

/* ---------- 8 · Fragen ---------- */
.fragen { padding: 0 0 var(--abstand); }
.fragen-raster { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; }
.fragen-liste details { border-bottom: 1px solid var(--border); }
.fragen-liste summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 20px; font-weight: 600; }
.fragen-liste summary::-webkit-details-marker { display: none; }
.fragen-liste summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--accent-tief); font-weight: 600; transition: transform .25s; }
.fragen-liste details[open] summary::after { transform: rotate(45deg); }
.fragen-liste details p { margin: 0 0 22px; color: var(--muted); max-width: 40em; }
@media (max-width: 900px) { .fragen-raster { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 9 · Kontakt ---------- */
.kontakt { padding: var(--abstand) 0; background: var(--surface); }
.kontakt-raster { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.kontakt-text address { margin: 24px 0; font-size: 19px; line-height: 1.7; }
.formular { padding: 32px; border-radius: var(--radius-gross); background: #fff; display: grid; gap: 18px; }
.feld label { display: block; margin-bottom: 7px; font-weight: 600; font-size: 16px; }
.feld input, .feld select, .feld textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--text); background: var(--bg);
  border: 1.5px solid var(--muted); border-radius: var(--radius-klein); padding: 12px 14px;
}
.feld input:focus, .feld select:focus, .feld textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.formular .knopf { justify-self: start; }
.formular-meldung { margin: 0; font-weight: 600; color: var(--accent-tief); }
.formular-meldung:empty { display: none; }
@media (max-width: 900px) { .kontakt-raster { grid-template-columns: 1fr; gap: 36px; } .formular { padding: 22px; } }

/* ---------- Fuß ---------- */
.fuss { background: var(--dunkel); color: var(--dunkel-text); padding: 64px 0 28px; font-size: 16px; }
.fuss a { color: var(--dunkel-text); }
.fuss-raster { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.fuss-raster p, .fuss-raster address { color: var(--dunkel-leise); margin: 0 0 10px; }
.fuss-logo { color: #fff !important; font-size: 22px; font-weight: 750; }
.fuss-links { display: flex; gap: 18px; }
.fuss-demo { margin: 40px 0 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: var(--dunkel-leise); }
.fuss-zeile { margin: 22px 0 0; width: 100%; max-width: none; text-align: center; font-size: 16px; color: var(--dunkel-leise); }
.fuss-zeile a { color: var(--dunkel-text); }
@media (max-width: 760px) { .fuss-raster { grid-template-columns: 1fr; } .fuss { padding-bottom: 92px; } }

/* ---------- Anruf-Leiste am Handy ---------- */
.anruf-leiste { display: none; }
@media (max-width: 760px) {
  .anruf-leiste {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; min-height: 54px;
    align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: #fff;
    font-weight: 700; text-decoration: none; box-shadow: 0 12px 30px -12px rgba(7,85,112,.6);
  }
  .anruf-leiste:hover { color: #fff; }
}

/* ---------- Bewegung ---------- */
html.js:not([data-bewegung="starr"]) [data-auftritt] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.8,.2,1); }
html.js:not([data-bewegung="starr"]) [data-auftritt].ist-sichtbar { opacity: 1; transform: none; }
html.js:not([data-bewegung="starr"]) .held-bild[data-auftritt] .bild-gross { transform: scale(1.04); transition: transform 1.1s cubic-bezier(.2,.8,.2,1); }
html.js:not([data-bewegung="starr"]) .held-bild.ist-sichtbar .bild-gross { transform: none; }
html:not([data-bewegung="starr"]) .knopf:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-auftritt] { opacity: 1 !important; transform: none !important; transition: none !important; }
  html.js .bild-gross { transform: none !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Röntgenblick im ersten Bildschirm (js/roentgen.js) ---------- */
.roentgen { position: relative; border-radius: var(--radius-gross); overflow: hidden; touch-action: pan-y; cursor: crosshair; }
.roentgen .bild-platzhalter { transition: opacity .6s; }
#roentgen-fx { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .7s; display: none; }
html.js #roentgen-fx { display: block; opacity: 0; }
html.js .roentgen.bereit #roentgen-fx { opacity: 1; }
.roentgen.bereit .bild-platzhalter { opacity: 0; }
.roentgen-schilder { position: absolute; inset: 0; pointer-events: none; }
.roentgen-schild {
  position: absolute; left: 0; top: 0; white-space: nowrap; margin: -14px 0 0 14px; padding: 5px 11px;
  border-radius: 999px; background: rgba(12,26,33,.86); color: #fff; font-size: 14px; font-weight: 600;
  display: none; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5);
}
.roentgen-schild::before { content: ""; position: absolute; left: -14px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(12,26,33,.55); }
.roentgen-schild.sichtbar { display: block; animation: schild-ein .25s ease-out; }
@keyframes schild-ein { from { opacity: 0; } to { opacity: 1; } }
.roentgen-schild.links { margin: -14px 0 0 -14px; translate: -100% 0; }
.roentgen-schild.links::before { left: auto; right: -14px; }
.roentgen-hinweis {
  position: absolute; left: 18px; top: 18px; z-index: 2; margin: 0; display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 15px; font-weight: 600; color: var(--text);
  box-shadow: 0 10px 24px -14px rgba(15,30,38,.45); display: none;
}
html.js .roentgen-hinweis { display: inline-flex; visibility: hidden; opacity: 0; transition: opacity .4s .3s, visibility 0s .7s; }
html.js .roentgen.bereit .roentgen-hinweis { visibility: visible; opacity: 1; transition: opacity .4s .3s, visibility 0s; }
html.js .roentgen.benutzt .roentgen-hinweis { opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.roentgen-punkt { width: 9px; height: 9px; border-radius: 50%; background: var(--trinkwasser); box-shadow: 0 0 0 4px rgba(21,146,184,.2); }
.nur-finger { display: none; }
@media (hover: none) { .nur-maus { display: none; } .nur-finger { display: inline; } }
@media (min-width: 901px) { .roentgen .bild-gross { max-height: calc(100vh - var(--kopf) - 90px); min-height: 520px; width: 100%; } }
@media (max-width: 900px) { .held-karte-unten { position: static; margin-top: 14px; display: inline-block; } }

/* ---------- Rohrfahrt (js/rohrfahrt.js) ---------- */
.fahrt { background: var(--dunkel); color: var(--dunkel-text); }
.fahrt-buehne { position: relative; padding: var(--abstand) 0; }
#fahrt-fx { display: none; }
.fahrt-etappen { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.fahrt-etappen li { padding: 28px; border-radius: var(--radius-gross); background: rgba(255,255,255,.06); }
.fahrt-etappen li:first-child { grid-column: 1 / -1; padding: 0 0 10px; background: none; }
.fahrt-etappen h2, .fahrt-etappen h3 { color: #fff; }
.fahrt-etappen h3 { font-size: 28px; margin-bottom: 10px; }
.fahrt-etappen p { color: var(--dunkel-leise); }
.fahrt-nr { margin: 0 0 8px; font-size: 15px; font-weight: 650; letter-spacing: .02em; color: #7fd0e8 !important; }
.fahrt-zahl { margin: 14px 0 0; font-size: 34px; font-weight: 650; color: #fff !important; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.fahrt-zahl span { display: block; font-size: 15px; font-weight: 500; color: var(--dunkel-leise); letter-spacing: 0; }
.fahrt-knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 18px; }
.textlink-hell { color: #fff; border-bottom-color: #7fd0e8; }
.textlink-hell:hover { color: #7fd0e8; }
.fahrt-punkte, .fahrt-hud, .fahrt-schilder { display: none; }
@media (max-width: 900px) { .fahrt-etappen { grid-template-columns: 1fr; } }

/* Mit Bewegung: lange Spur, die Bühne klebt über die ganze Fensterhöhe, die Kamera fährt durchs Rohr */
html.fahrt-an .fahrt-spur { height: 520vh; height: 520svh; }
html.fahrt-an .fahrt-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; padding: 0; overflow: hidden; }
html.fahrt-an #fahrt-fx, html.fahrt-still #fahrt-fx { display: block; }
html.fahrt-an #fahrt-fx { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s; }
html.fahrt-an #fahrt-fx.bereit { opacity: 1; }
html.fahrt-an .fahrt-raster { position: relative; height: 100%; }
html.fahrt-an .fahrt-etappen { display: block; position: absolute; left: 0; bottom: 12vh; width: min(480px, 100%); }
html.fahrt-an .fahrt-etappen li { position: absolute; left: 0; bottom: 0; width: 100%; padding: 26px 28px; background: rgba(8,16,20,.62); opacity: 0; transform: translateY(18px); transition: opacity .45s, transform .45s cubic-bezier(.2,.8,.2,1); pointer-events: none; }
@supports (backdrop-filter: blur(1px)) { html.fahrt-an .fahrt-etappen li { backdrop-filter: blur(10px); } }
html.fahrt-an .fahrt-etappen li:first-child { padding: 26px 28px; background: rgba(8,16,20,.62); }
html.fahrt-an .fahrt-etappen li.ist-aktiv { opacity: 1; transform: none; pointer-events: auto; }
html.fahrt-an .fahrt-punkte { display: flex; flex-direction: column; gap: 12px; position: absolute; right: 0; top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; }
html.fahrt-an .fahrt-punkte li { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .3s, transform .3s; }
html.fahrt-an .fahrt-punkte li.ist-fertig { background: #fff; opacity: .55; }
html.fahrt-an .fahrt-punkte li.ist-aktiv { background: #7fd0e8; transform: scale(1.6); box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
html.fahrt-an .fahrt-schilder { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fahrt-schild { position: absolute; left: 0; top: 0; padding: 6px 13px; border-radius: 999px; background: rgba(255,255,255,.93); color: var(--text);
  font-size: 15px; font-weight: 650; white-space: nowrap; display: none; box-shadow: 0 8px 22px -10px rgba(0,0,0,.6); }
.fahrt-schild.sichtbar { display: block; }
html.fahrt-an .fahrt-hud, html.fahrt-still .fahrt-hud { display: flex; flex-wrap: wrap; gap: 6px 18px; position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--kopf) + 16px); z-index: 2;
  padding: 8px 16px; border-radius: 10px; background: rgba(0,0,0,.45); color: #e8f2e8; font-size: 14px; font-weight: 600; letter-spacing: .03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
html.fahrt-still .fahrt-hud { position: static; transform: none; width: fit-content; max-width: calc(100% - 40px); margin: 0 auto 14px; white-space: normal; justify-content: center; }
.fahrt-rec::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #ff3b30; vertical-align: 1px; }
.fahrt-zaehler { min-width: 5.5em; text-align: right; }
@media (max-width: 900px) {
  html.fahrt-an .fahrt-etappen { bottom: 90px; }
  html.fahrt-an .fahrt-etappen li { padding: 20px 22px; }
  html.fahrt-an .fahrt-etappen h2 { font-size: 30px; }
  html.fahrt-an .fahrt-etappen h3 { font-size: 24px; }
  html.fahrt-an .fahrt-zahl { font-size: 28px; }
  html.fahrt-an .fahrt-punkte { right: 4px; }
}
/* starr: ein festes Bild aus der Leitung über den Karten */
html.fahrt-still #fahrt-fx { width: 100%; aspect-ratio: 21 / 9; border-radius: var(--radius-gross); margin: 0 auto 28px; max-width: var(--breite); }
@media (max-width: 900px) { html.fahrt-still #fahrt-fx { aspect-ratio: 4 / 3; width: calc(100% - 40px); } }

@media (max-width: 560px) { html.fahrt-an .fahrt-hud { font-size: 12px; gap: 4px 12px; max-width: calc(100% - 24px); white-space: normal; justify-content: center; } }
