/* Klimascanner – Landingpage. Broschürenwelt: Schiefer trägt, Limette markiert, Blau–Rot nur für Klimadaten. */
:root {
  --schiefer: #48545c;
  --schiefer-tief: #3a444b;
  --schiefer-nacht: #2f383e;
  --schiefer-linie: #5d6a72;
  --schiene-schrift: #f1f3f2;
  --schiene-leise: #c5ccd0;
  --limette: #8dbf46;
  --limette-hell: #b8da74;
  --limette-tinte: #1e2a12;
  --oliv: #4e7a16;
  --grund: #f2f3f3;
  --flaeche: #ffffff;
  --linie: #d1d3d5;
  --linie-weich: #e4e6e7;
  --tinte: #222b30;
  --tinte-2: #353f45;
  --tinte-3: #4f5a61;
  --neutral-streifen: #e6eaef;
  --kuehl: #1c5fa3;
  --warm: #b0171d;
  --aus: cubic-bezier(0.23, 1, 0.32, 1);
  --rand: clamp(18px, 5vw, 72px);
  --breite: 1280px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; font-size: 18px; line-height: 1.55; color: var(--tinte-2); background: var(--flaeche); font-variant-numeric: tabular-nums; }
::selection { background: #dcebc2; color: var(--tinte); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { color: var(--tinte); line-height: 1.1; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: -0.022em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--oliv); text-underline-offset: 3px; }
.klein { font-size: 15px; color: var(--tinte-3); }
:focus-visible { outline: 2px solid var(--oliv); outline-offset: 3px; border-radius: 4px; }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--flaeche); color: var(--tinte); padding: 8px 14px; border-radius: 6px; }
.sprung:focus { top: 12px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease; }
.knopf:active { transform: scale(0.97); }
.knopf.gross { min-height: 52px; padding: 0 24px; font-size: 17px; border-radius: 10px; }
.knopf.limette { background: var(--limette); color: var(--limette-tinte); }
.knopf.schiefer { background: var(--schiefer); color: #fff; }
.knopf.geist { background: transparent; color: var(--schiene-schrift); border-color: var(--schiefer-linie); }
@media (hover: hover) {
  .knopf.limette:hover { background: #9dcb59; }
  .knopf.schiefer:hover { background: var(--schiefer-tief); }
  .knopf.geist:hover { border-color: var(--schiene-leise); background: rgba(255,255,255,.06); }
}
.knopf[disabled] { opacity: .55; cursor: progress; }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; padding: 13px var(--rand); background: var(--schiefer); color: var(--schiene-schrift); border-bottom: 1px solid rgba(255,255,255,.07); }
.marke { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.marke img { width: 28px; height: auto; }
.wortmarke { display: flex; flex-direction: column; line-height: 1; }
.wortmarke b { font-size: 14.5px; letter-spacing: 0.07em; }
.wortmarke span { font-size: 12.5px; letter-spacing: 0.09em; color: #dfe4e7; margin-top: 2px; }
.navi { display: flex; gap: 26px; margin-left: 14px; }
.navi a, .link-hell { color: #dfe4e7; text-decoration: none; font-size: 16px; font-weight: 600; transition: color 140ms ease; }
@media (hover: hover) { .navi a:hover, .link-hell:hover { color: #fff; } }
.kopf-aktionen { margin-left: auto; display: flex; align-items: center; gap: 22px; }

/* Bühne */
.buehne { background: var(--schiefer); color: var(--schiene-schrift); padding: clamp(40px, 6vw, 88px) var(--rand) clamp(48px, 6vw, 88px); }
.buehne-kopf { max-width: var(--breite); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px clamp(32px, 5vw, 72px); align-items: end; }
.buehne h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.9rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.0; }
.buehne h1 span { display: block; color: var(--schiene-leise); font-weight: 600; }
.lead { margin: 0 0 24px; font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--schiene-leise); }

.scan { max-width: var(--breite); margin: clamp(32px, 4vw, 56px) auto 0; }
.scan-bild { position: relative; aspect-ratio: 21 / 9; border-radius: 18px; overflow: hidden; background: #e9ecee; box-shadow: 0 30px 80px rgba(12,18,22,.38), 0 0 0 1px rgba(255,255,255,.06); }
/* Ausschnitt auf die Planung (in der Aufnahme bei etwa 36 % / 55 %): Bild breiter als die Bühne, verschoben */
.scan-bild img { position: absolute; width: 130%; height: auto; max-width: none; left: 0; top: -93%; }
/* Ausschnitt in Bühnenkoordinaten (wie die Linie), nicht am breiteren Bild */
.scan-ausschnitt { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--scan, 0%)) 0 0); }
.scan-linie { position: absolute; top: 0; bottom: 0; left: var(--scan, 0%); width: 2px; margin-left: -1px; background: var(--limette); box-shadow: 0 0 0 1px rgba(141,191,70,.25), 0 0 24px 4px rgba(141,191,70,.45); opacity: 0; transition: opacity 300ms ease; }
.scan.laeuft .scan-linie { opacity: 1; }
.scan-marke { position: absolute; left: 16px; top: 16px; padding: 6px 11px; border-radius: 999px; background: rgba(34,43,48,.78); color: #fff; font-size: 13.5px; font-weight: 650; opacity: 0; transition: opacity 400ms var(--aus); }
.scan.fertig .scan-marke { opacity: 1; }

.zeitachse { margin-top: 22px; display: block; }
.za-skala { position: relative; height: 20px; margin: 0 0 2px 220px; font-size: 12.5px; color: var(--schiene-leise); }
.za-skala span { position: absolute; left: calc(var(--p) * 100%); transform: translateX(-50%); white-space: nowrap; }
.za-skala span:first-child { transform: none; }
.za-skala::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; border-bottom: 1px dashed var(--schiefer-linie); }
.za-spur { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: center; padding: 11px 0; border-bottom: 1px solid #56626a; }
.za-name { display: flex; flex-direction: column; line-height: 1.25; padding-right: 14px; }
.za-name b { font-size: 16px; color: #fff; }
.za-name span { font-size: 13.5px; color: var(--schiene-leise); }
.za-bahn { position: relative; height: 24px; }
.za-balken { position: absolute; left: 0; top: 4px; height: 16px; border-radius: 4px; }
.za-balken.lang { width: 95%; background: repeating-linear-gradient(135deg, #6e7a81 0 6px, #606c73 6px 12px); }
.za-balken.kurz { width: 0; background: var(--limette); }
.za-ende { position: absolute; top: 1px; font-size: 15px; font-weight: 700; color: #fff; white-space: nowrap; }
[data-spur="gutachten"] .za-ende { right: 0; }
[data-spur="scanner"] .za-ende { left: calc(var(--w, 0%) + 10px); color: var(--limette-hell); }
.za-fuss { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px 28px; align-items: center; margin-top: 18px; }
.za-zahl { display: flex; flex-direction: column; line-height: 1.2; opacity: 0; transition: opacity 400ms var(--aus); }
.za-zahl.da { opacity: 1; }
.za-zahl b { font-size: 1.9rem; color: #fff; letter-spacing: -0.01em; }
.za-zahl span { font-size: 14px; color: var(--schiene-leise); }
.za-nochmal { font: inherit; font-size: 14px; font-weight: 600; color: var(--limette-hell); background: none; border: 1px solid var(--schiefer-linie); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
@media (hover: hover) { .za-nochmal:hover { border-color: var(--limette-hell); } }
.za-quelle { margin-top: 12px; font-size: 13.5px; color: var(--schiene-leise); }

/* Klimastreifen */
.streifen { display: flex; height: 22px; border-radius: 5px; overflow: hidden; background: var(--neutral-streifen); box-shadow: inset 0 0 0 1px rgba(13,27,46,.10); }
.za-ergebnis .streifen { height: 34px; }
.streifen > span { flex-grow: 0; flex-basis: 0; min-width: 0; transition: flex-grow 900ms var(--aus); }
.streifen.da > span { flex-grow: var(--a); min-width: 3px; }
.streifen-achse { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--schiene-leise); margin-top: 6px; }

/* Belege */
.belege { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: clamp(36px, 5vw, 56px) var(--rand); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 56px; align-items: center; border-bottom: 1px solid var(--linie-weich); }
.belege dl { margin: 0; display: flex; gap: clamp(22px, 3.4vw, 48px); }
.belege div { display: flex; flex-direction: column-reverse; }
.belege dt { font-size: 14.5px; color: var(--tinte-3); }
.belege dd { margin: 0; font-size: clamp(2rem, 3.2vw, 2.6rem); font-weight: 700; color: var(--tinte); line-height: 1.05; letter-spacing: -0.02em; }
.belege > p { color: var(--tinte-3); max-width: 34em; font-size: 16.5px; }

/* Abschnitte */
.abschnitt { padding: clamp(64px, 8vw, 112px) var(--rand); max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; }
.abschnitt-kopf { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 60px; align-items: end; margin-bottom: 36px; }
.abschnitt-kopf p { color: var(--tinte-3); max-width: 36em; }

/* Vergleich */
.groessen { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--grund); border: 1px solid var(--linie-weich); margin-bottom: 18px; }
.groessen button { font: inherit; font-size: 15.5px; font-weight: 650; border: 0; border-radius: 999px; padding: 8px 18px; background: transparent; color: var(--tinte-3); cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.groessen button[aria-checked="true"] { background: var(--schiefer); color: #fff; }
@media (hover: hover) { .groessen button[aria-checked="false"]:hover { color: var(--tinte); background: var(--flaeche); } }
.schieber { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #e9ecee; touch-action: pan-y; user-select: none; cursor: ew-resize; box-shadow: 0 2px 6px rgba(13,27,46,.08), 0 18px 50px rgba(13,27,46,.14); }
.schieber img { position: absolute; width: 150%; height: auto; max-width: none; left: -4%; top: -76%; pointer-events: none; transition: opacity 220ms ease; }
.schieber.wechselt img { opacity: .35; }
/* Ausschnitt in Schieberkoordinaten (wie der Griff), nicht am breiteren Bild */
.schieber-ausschnitt { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); pointer-events: none; }
.schieber-etikett { position: absolute; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(34,43,48,.8); color: #fff; font-size: 14px; font-weight: 650; pointer-events: none; }
.schieber-etikett.links { left: 16px; }
.schieber-etikett.rechts { right: 16px; }
.schieber-griff { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px; display: grid; place-items: center; cursor: ew-resize; }
.schieber-griff::before { content: ""; position: absolute; top: 0; bottom: 0; left: 21px; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(13,27,46,.18); }
.schieber-griff span { position: relative; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(13,27,46,.28); transition: transform 160ms var(--aus); }
.schieber-griff span::before, .schieber-griff span::after { content: ""; position: absolute; top: 14px; width: 0; height: 0; border: 6px solid transparent; }
.schieber-griff span::before { left: 6px; border-right-color: var(--schiefer); }
.schieber-griff span::after { right: 6px; border-left-color: var(--schiefer); }
.schieber-griff:focus-visible { outline: none; }
.schieber-griff:focus-visible span { outline: 2px solid var(--oliv); outline-offset: 3px; }
.schieber.zieht .schieber-griff span { transform: scale(1.08); }
.varianten { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 22px; }
.variante { display: flex; flex-direction: column; gap: 10px; }
.variante-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.variante-kopf h3 { font-size: 1.2rem; }
.delta { font-size: 1.35rem; font-weight: 700; white-space: nowrap; }
.delta.kuehl { color: var(--kuehl); }
.delta.warm { color: var(--warm); }
.delta.gleich { color: var(--tinte-3); }
.variante .streifen-achse { color: var(--tinte-3); }
.variante-urteil { font-size: 15.5px; color: var(--tinte-3); }
.variante-urteil b { color: var(--tinte); }
.legende { list-style: none; padding: 0; margin: 22px 0 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--tinte-3); }
.legende li { display: flex; align-items: center; gap: 6px; }
.legende i { width: 12px; height: 12px; border-radius: 3px; background: var(--f); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }

/* XPlan */
.xplan { background: var(--grund); padding: clamp(64px, 8vw, 112px) var(--rand); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; border-top: 1px solid var(--linie-weich); border-bottom: 1px solid var(--linie-weich); }
.xplan > * { min-width: 0; }
.lead-dunkel { margin: 18px 0 26px; color: var(--tinte-3); font-size: 1.1rem; max-width: 34em; }
.schritte { list-style: none; counter-reset: s; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.schritte li { counter-increment: s; position: relative; padding-left: 44px; font-size: 16.5px; }
.schritte li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--schiefer); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.schritte b { color: var(--tinte); }
.xplan-bilder { position: relative; padding-bottom: 18%; }
.xplan-bilder figure { margin: 0; }
.xplan-bilder img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 2px 6px rgba(13,27,46,.08), 0 22px 60px rgba(13,27,46,.18); }
.xplan-bilder figcaption { font-size: 14px; color: var(--tinte-3); margin-top: 8px; }
.xplan-3d { position: absolute; right: -2%; bottom: 0; width: 44%; }
.xplan-3d img { aspect-ratio: 4 / 3; object-fit: cover; border: 4px solid var(--flaeche); }

/* Ablauf */
.ablauf { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: schritt; border-top: 2px solid var(--schiefer); }
.ablauf > li { counter-increment: schritt; padding: 26px 24px 4px 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.ablauf > li + li { padding-left: 24px; border-left: 1px solid var(--linie-weich); }
.ablauf > li::before { content: counter(schritt); position: absolute; top: -15px; left: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--schiefer); color: #fff; font-size: 14px; font-weight: 700; display: grid; place-items: center; }
.ablauf > li + li::before { left: 24px; }
.ablauf p { font-size: 16.5px; }

/* Atlas */
.atlas { background: var(--schiefer); color: var(--schiene-schrift); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); padding: clamp(64px, 8vw, 112px) var(--rand); align-items: start; }
.atlas > * { min-width: 0; }
.atlas h2 { color: #fff; }
.atlas-text > p { margin-top: 18px; color: var(--schiene-leise); max-width: 34em; }
.gebietsliste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin: 30px 0; }
.gebietsliste h3 { font-size: 14px; font-weight: 650; color: var(--schiene-leise); margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--schiefer-linie); }
.gebietsliste ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 18px; }
.gebietsliste li { break-inside: avoid; }
.gebietsliste button { font: inherit; font-size: 15.5px; background: none; border: 0; padding: 3px 0; color: var(--schiene-schrift); cursor: pointer; text-align: left; }
.gebietsliste button[aria-pressed="true"] { color: #fff; text-decoration: underline; text-decoration-color: var(--limette); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (hover: hover) { .gebietsliste button:hover { color: #fff; } }
.atlas-karte { position: sticky; top: 90px; }
.atlas-karte svg { width: 100%; height: auto; overflow: visible; }
.atlas-karte .punkte { stroke: #a9b4ba; stroke-width: 3; stroke-linecap: round; fill: none; }
.atlas-karte .punkte.land-at { stroke: #8e9aa1; }
.atlas-karte .punkte.land-ch { stroke: #c3ccd1; }
.atlas-karte .punkte.land-lu { stroke: #8e9aa1; }
.atlas-karte .grenzen { fill: none; stroke: #dfe4e7; stroke-width: 0.9; stroke-opacity: .55; stroke-linejoin: round; }
.atlas-karte .nachbarpunkte { stroke: #56626a; stroke-width: 2; stroke-linecap: round; fill: none; }
.atlas-karte .gebiet { fill: var(--limette); fill-opacity: .92; stroke: var(--limette-hell); stroke-width: 1.2; stroke-linejoin: round; transition: fill 140ms ease, fill-opacity 140ms ease; }
.atlas-karte .treffer { fill: transparent; cursor: pointer; }
.atlas-karte .ring { fill: none; stroke: #fff; stroke-width: 1.6; opacity: 0; transition: opacity 160ms ease; pointer-events: none; }
.atlas-karte g.an .gebiet { fill: #fff; fill-opacity: 1; }
.atlas-karte g.an .ring { opacity: 1; }
.atlas-karte .landname { fill: #aeb8be; font-size: 11px; letter-spacing: 0.16em; font-weight: 700; }
.atlas-tipp { position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 12px)); padding: 6px 11px; border-radius: 8px; background: var(--flaeche); color: var(--tinte); font-size: 14.5px; font-weight: 650; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 6px rgba(13,27,46,.18), 0 10px 26px rgba(13,27,46,.24); }
.atlas-tipp span { color: var(--tinte-3); font-weight: 400; }

/* Für wen */
.wer-spalten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.wer-spalten > div { border-top: 1px solid var(--linie); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.wer-spalten p { font-size: 16.5px; }
.preise { margin-top: 36px; font-weight: 650; color: var(--tinte); }

/* Anfrage */
.anfrage { background: var(--grund); padding: clamp(64px, 8vw, 112px) var(--rand); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); border-top: 1px solid var(--linie-weich); }
.anfrage > * { min-width: 0; }
.anfrage-text { display: flex; flex-direction: column; gap: 16px; }
.anfrage-text > p:not(.klein) { color: var(--tinte-3); max-width: 30em; }
.formular { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; background: var(--flaeche); border: 1px solid var(--linie-weich); border-radius: 16px; padding: clamp(20px, 3vw, 32px); }
.formular .breit, .formular .art { grid-column: 1 / -1; }
.art { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.art legend { font-size: 15px; font-weight: 650; color: var(--tinte); margin-bottom: 8px; padding: 0; }
.art label { position: relative; }
.art input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.art span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--linie); font-size: 15.5px; font-weight: 600; color: var(--tinte-2); transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease; }
.art input:checked + span { background: var(--schiefer); border-color: var(--schiefer); color: #fff; }
.art input:focus-visible + span { outline: 2px solid var(--oliv); outline-offset: 2px; }
.feld { display: flex; flex-direction: column; gap: 6px; }
.feld label { font-size: 15px; font-weight: 650; color: var(--tinte); }
.feld label span { font-weight: 400; color: var(--tinte-3); }
.feld input, .feld textarea { font: inherit; font-size: 16.5px; color: var(--tinte); background: var(--flaeche); border: 1px solid var(--linie); border-radius: 8px; padding: 10px 12px; min-height: 46px; caret-color: var(--oliv); transition: border-color 140ms ease, box-shadow 140ms ease; }
.feld textarea { resize: vertical; min-height: 110px; }
.feld input:focus, .feld textarea:focus { outline: none; border-color: var(--oliv); box-shadow: 0 0 0 3px rgba(78,122,22,.18); }
.feld input[aria-invalid="true"] { border-color: #a8231c; }
.falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hinweis { font-size: 14px; color: var(--tinte-3); }
.senden { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.status { font-size: 15.5px; color: var(--tinte-2); }
.status.ok { color: #1f6f3a; font-weight: 650; }
.status.fehler { color: #a8231c; }
.formular.gesendet .feld, .formular.gesendet .art, .formular.gesendet .hinweis, .formular.gesendet button { display: none; }

/* Fuß */
.fuss { background: var(--schiefer-nacht); color: var(--schiene-leise); padding: 28px var(--rand); display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; font-size: 15px; }
.fuss-marke { display: flex; align-items: center; gap: 10px; }
.fuss nav { display: flex; gap: 22px; margin-left: auto; }
.fuss a { color: var(--schiene-schrift); text-decoration: none; }
@media (hover: hover) { .fuss a:hover { text-decoration: underline; } }
.fuss-quelle { width: 100%; font-size: 13px; color: #a3aeb4; }

/* Rechtliche Seiten */
.seite-text { max-width: 760px; margin: 0 auto; padding: 64px var(--rand) 96px; }
.seite-text h1 { font-size: 2.2rem; margin-bottom: 20px; }
.seite-text p { margin-bottom: 12px; }

/* Schmal */
@media (max-width: 1080px) {
  .navi { display: none; }
  .buehne-kopf, .atlas, .anfrage, .xplan, .belege { grid-template-columns: minmax(0, 1fr); }
  .scan-bild { aspect-ratio: 16 / 10; }
  .scan-bild img { width: 140%; left: -0.4%; top: -78%; }
  .atlas-karte { position: static; order: -1; max-width: 600px; }
  .ablauf { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .ablauf > li:nth-child(3) { padding-left: 0; border-left: 0; }
  .ablauf > li:nth-child(3)::before { left: 0; }
  .abschnitt-kopf { grid-template-columns: minmax(0, 1fr); }
  .belege dl { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .kopf { gap: 10px; padding: 10px 14px; }
  .kopf-aktionen { gap: 12px; }
  .kopf .knopf { min-height: 38px; padding: 0 12px; font-size: 15px; }
  .buehne { padding-top: 26px; }
  .buehne h1 { font-size: 2.3rem; }
  /* Telefon: erst der Beweis (Scan und Zeitachse), dann Text und Knöpfe */
  .buehne { display: flex; flex-direction: column; }
  .buehne-kopf, .buehne-neben { display: contents; }
  .buehne h1 { order: 0; }
  .scan { order: 1; margin-top: 20px; }
  .buehne-neben .lead { order: 2; margin: 26px 0 18px; }
  .buehne-neben .knopfreihe { order: 3; }
  .scan-bild { aspect-ratio: 4 / 3; border-radius: 12px; }
  .scan-bild img { width: 180%; left: -14.8%; top: -63%; }
  .za-skala { margin-left: 0; }
  .za-spur { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 8px 0; }
  .za-name { flex-direction: row; align-items: baseline; gap: 8px; }
  .za-name span { font-size: 13px; }
  .za-skala span:nth-child(2), .za-skala span:nth-child(4) { display: none; }
  .za-fuss { grid-template-columns: minmax(0, 1fr) auto; }
  .za-ergebnis { grid-column: 1 / -1; }
  .ablauf, .varianten, .wer-spalten, .formular, .gebietsliste { grid-template-columns: minmax(0, 1fr); }
  .ablauf > li, .ablauf > li + li { padding: 22px 0 4px; border-left: 0; }
  .ablauf > li + li::before { left: 0; }
  .ablauf > li + li { border-top: 1px solid var(--linie-weich); }
  .groessen { display: flex; overflow-x: auto; }
  .groessen button { padding: 8px 12px; font-size: 14.5px; white-space: nowrap; }
  .schieber { aspect-ratio: 4 / 5; }
  .schieber img { width: 200%; left: -22%; top: -25.6%; }
  .schieber-etikett { font-size: 12.5px; top: 10px; }
  .schieber-etikett.links { left: 10px; }
  .schieber-etikett.rechts { right: 10px; }
  .xplan-bilder { padding-bottom: 0; display: flex; flex-direction: column; gap: 18px; }
  .xplan-3d { position: static; width: 100%; }
  .fuss nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .streifen > span, .za-zahl, .scan-marke, .schieber img, .scan-linie { transition: none; }
}

/* ── Bewegung (nach Emil Kowalski): ein gestalteter Moment, sonst Rückmeldung und Zustand ── */
/* Erster Eindruck: Überschrift Zeile für Zeile aus der Unschärfe (einmalig, beim Laden) */
@media (prefers-reduced-motion: no-preference) {
  .buehne h1, .buehne h1 span, .buehne-neben { animation: auftauchen 620ms var(--aus) both; }
  .buehne h1 span { animation-delay: 90ms; }
  .buehne-neben { animation-delay: 180ms; }
  .scan { animation: auftauchen 700ms var(--aus) 240ms both; }
}
@keyframes auftauchen { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }

/* Scan: weicher Saum hinter der Linie, damit sich das Ergebnis „entwickelt“ */
.scan-linie::before { content: ""; position: absolute; top: 0; bottom: 0; right: 1px; width: 90px; background: linear-gradient(90deg, rgba(141,191,70,0), rgba(141,191,70,.22)); }

/* Kopf: Schatten erst nach dem Scrollen; aktiver Abschnitt in der Navigation */
.kopf { transition: box-shadow 200ms ease; }
.kopf.gescrollt { box-shadow: 0 1px 0 rgba(0,0,0,.12), 0 8px 24px rgba(12,18,22,.18); }
.navi a { position: relative; }
.navi a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--limette); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--aus); }
.navi a[aria-current="true"] { color: #fff; }
.navi a[aria-current="true"]::after { transform: scaleX(1); }

/* Wechsel der Klimagröße: Blur verbindet die beiden Zustände */
.schieber img { transition: opacity 220ms ease, filter 220ms ease; }
.schieber.wechselt img { opacity: .35; filter: blur(2px); }
@media (hover: hover) { .schieber-griff:hover span { transform: scale(1.06); } }

/* Bilder einmalig von unten enthüllen (nur mit JS gesetzt; ohne JS sofort sichtbar) */
.enthuellen.vor { clip-path: inset(0 0 100% 0 round 16px); }
.enthuellen { transition: clip-path 900ms cubic-bezier(0.77, 0, 0.175, 1); }

/* Atlas: Gebiete wachsen gestaffelt aus ihrer Mitte */
.atlas-karte .gebiet { transform-box: fill-box; transform-origin: center; }
.atlas-karte.vor .gebiet { opacity: 0; transform: scale(.4); }
.atlas-karte .gebiet { transition: fill 140ms ease, fill-opacity 140ms ease, opacity 420ms var(--aus) var(--v, 0ms), transform 520ms var(--aus) var(--v, 0ms); }
.atlas-tipp { transition: opacity 140ms var(--aus), transform 140ms var(--aus); }
.atlas-tipp.neu { opacity: 0; transform: translate(-50%, calc(-100% - 12px)) scale(.97); }
.atlas-tipp.sofort { transition: none; }

/* Formular: Ladezustand im Knopf, Erfolg mit gezeichnetem Häkchen */
.knopf .dreher { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: dreh 700ms linear infinite; }
@keyframes dreh { to { transform: rotate(360deg); } }
.erfolg { grid-column: 1 / -1; display: none; align-items: center; gap: 14px; padding: 8px 0; }
.formular.gesendet .erfolg { display: flex; }
.formular.gesendet .status { display: none; }
.erfolg svg { width: 44px; height: 44px; flex: none; }
.erfolg circle { fill: #eef5e3; }
.erfolg path { fill: none; stroke: var(--oliv); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
.formular.gesendet .erfolg path { animation: haken 420ms var(--aus) 120ms forwards; }
@keyframes haken { to { stroke-dashoffset: 0; } }
.erfolg p { font-size: 17px; color: var(--tinte); }
.erfolg p b { display: block; }

@media (prefers-reduced-motion: reduce) {
  .enthuellen.vor { clip-path: none; }
  .enthuellen, .atlas-karte .gebiet, .atlas-tipp, .navi a::after { transition: none; }
  .atlas-karte.vor .gebiet { opacity: 1; transform: none; }
  .formular.gesendet .erfolg path { animation: none; stroke-dashoffset: 0; }
  .knopf .dreher { animation-duration: 1.6s; }
}
