/* JSC – Vorschlag Startseite. Tokens = Live-Seite (Logo-Farben), plus „Nacht“ und „Wärme“ für die Szene. */

@font-face { font-family: 'Inter'; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-var.woff2') format('woff2'); }
@font-face { font-family: 'Sora';  font-weight: 100 900; font-display: swap; src: url('../fonts/sora-var.woff2') format('woff2'); }

:root {
  --bg: #FFFFFF;
  --tint: #F1F4F1;
  --text: #2B313A;
  --muted: #56606D;
  --line: rgba(57,64,74,.16);
  --green: #1B6B34;
  --green-l: #22823F;
  --green-ink: #175C2C;
  --gold: #8A6A15;
  --gold-l: #C9A227;
  --night: #20252C;          /* Anthrazit des Logos, abgedunkelt */
  --night-2: #2B313A;
  --on-night: #E9EDF0;
  --on-night-muted: #B4BDC7; /* 8,6:1 auf --night */
  --heat: #F2A33A;
  --heat-hot: #EC6A2E;
  --fresh: #6FD08F;
  --forest: #123B21;          /* QMB-Welt: Blattgrün, tief */
  --on-forest: #EAF3EC;
  --on-forest-muted: #B9D0BF; /* 9:1 auf --forest */
  --gold-hi: #E3BE4A;
  --head: 'Sora', 'Inter', 'Segoe UI', sans-serif;
  --body: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --z-nav: 100;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); }
body { font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.12; text-wrap: balance; letter-spacing: -.02em; }
h2 { font-size: clamp(1.85rem, 3.9vw, 3.05rem); font-weight: 650; margin-bottom: 1.2rem; }
h3 { font-size: 1.1rem; font-weight: 650; letter-spacing: -.01em; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; top: -60px; left: 1rem; z-index: calc(var(--z-nav) + 1); background: var(--green); color: #fff; padding: .7rem 1.1rem; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 1rem; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.narrow { max-width: 760px; }
.wrap.narrow { max-width: 820px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .8rem 1.5rem; border-radius: 10px; border: 1.5px solid transparent; font: 600 .97rem var(--body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background .25s, border-color .25s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-l); color: #fff; }
.btn-primary:hover { background: var(--green); transform: translateY(-2px); }
.btn-line { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-line:hover { border-color: #fff; background: rgba(255,255,255,.06); }

.more { color: var(--green-ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.more::after { content: ' →'; }
.more:hover { text-decoration-color: var(--gold-l); }

/* ── Kampagnen-Leiste ────────────────────────────────── */
.kampagne { background: var(--gold-l); color: #1d2227; font-size: .9rem; font-weight: 550; }
.kampagne .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.3rem; min-height: 40px; padding-block: .45rem; }
.kampagne .short { display: none; }
.kampagne a { padding-block: .55rem; font-weight: 700; text-underline-offset: 3px; text-decoration-thickness: 1.5px; white-space: nowrap; }
.kampagne a::after { content: ' →'; }
.kampagne a:hover { text-decoration-color: transparent; }
.btn-gold { background: var(--gold-hi); color: #1d2227; }
.btn-gold:hover { background: #F0CF63; transform: translateY(-2px); }

/* ── Navigation ──────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: var(--z-nav); height: var(--nav-h); background: #fff; border-bottom: 1px solid var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; gap: .8rem; text-decoration: none; margin-right: auto; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo span { font: 600 .74rem var(--head); color: var(--green-ink); line-height: 1.25; max-width: 7rem; }
.nav-links { display: flex; gap: 1.3rem; list-style: none; white-space: nowrap; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem 0; }
.nav-links a:hover { color: var(--green-ink); }
.nav-tel { font-weight: 650; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap; }
.nav-tel:hover { color: var(--green-ink); }
.nav-call, .menu { display: none; }
.nav-call { border-color: var(--green-l); color: var(--green-ink); min-height: 44px; padding: .5rem 1rem; }
.menu summary { list-style: none; cursor: pointer; font: 600 .95rem var(--body); min-height: 44px; display: inline-flex; align-items: center; padding: 0 .9rem; border: 1.5px solid var(--line); border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: none; }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; display: grid; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -24px rgba(31,38,48,.4); padding: .4rem clamp(1.25rem, 4vw, 2.5rem) 1rem; }
.menu nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 550; }

/* ── Szene ───────────────────────────────────────────── */
.scene { background: radial-gradient(70% 60% at 74% 42%, #2D3541 0%, var(--night) 62%, #191D23 100%); color: var(--on-night); }
.scene-pin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 4.5rem); align-items: center; padding-block: clamp(2rem, 5vh, 4rem); }
.steps { display: grid; gap: 4rem; }
.step h1 span { display: block; }
.step h1 span:last-child { color: var(--heat); }
.step h1 .kicker { font: 600 clamp(.85rem, 1.2vw, 1rem)/1.4 var(--body); letter-spacing: 0; color: var(--on-night-muted); margin-bottom: .9rem; }
.step h1 { font-size: clamp(2.1rem, min(3.9vw, 6.4vh), 3.6rem); font-weight: 680; letter-spacing: -.03em; margin-bottom: 1.4rem; color: #fff; }
.step h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.8rem); }
.step p { color: var(--on-night-muted); max-width: 34rem; line-height: 1.7; }
.step p + p { margin-top: 1rem; }
.lead { font-size: 1.12rem; }
.step-no { font-weight: 600; font-size: .95rem; color: var(--heat) !important; margin-bottom: .9rem; }
.scene[data-step="4"] .step-no { color: var(--fresh) !important; }
.fine { font-size: .88rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem !important; }
@media (max-height: 760px) { .js .scroll-hint { display: none; } .step h1 { margin-bottom: .9rem; } .step h1 .kicker { margin-bottom: .5rem; } .actions { margin-top: 1.1rem !important; } .eingaenge { margin-top: .7rem !important; } }
.eingaenge { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin-top: 1.3rem !important; font-size: .9rem; }
.eingaenge a { color: #fff; font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--heat); padding-block: .35rem; }
.eingaenge a:hover { color: var(--heat); }
.scroll-hint { display: none; margin-top: 1.6rem !important; font-size: .9rem; }
.scroll-hint::before { content: '↓'; display: inline-block; margin-right: .6rem; color: var(--heat); animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

.house { min-width: 0; }
.house svg { width: 100%; height: auto; max-height: 72vh; overflow: visible; }
.house figcaption { font-size: .8rem; color: var(--on-night-muted); text-align: center; margin-top: .4rem; }
.rail { display: none; }

/* Pin-Modus nur mit JS: ohne JS stehen die Schritte einfach untereinander. */
.js .scene { height: 340vh; }
.js .scene-pin { position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h) - 40px); height: calc(100svh - var(--nav-h) - 40px); grid-template-rows: minmax(0, 1fr) auto; row-gap: 1rem; padding-block: 1.5rem .9rem; }
.js .house svg { max-height: calc(100vh - var(--nav-h) - 190px); max-height: calc(100svh - var(--nav-h) - 190px); }
.js .steps { gap: 0; }
.js .step { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateY(18px); filter: blur(6px); pointer-events: none; transition: opacity .55s var(--ease), transform .7s var(--ease), filter .55s var(--ease); }
.js .step.is-on { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-delay: .12s; }
.js .scroll-hint { display: block; }
.js .rail { grid-column: 1 / -1; display: flex; gap: .4rem; border-top: 1px solid rgba(255,255,255,.14); position: relative; }
.rail::before { content: ''; position: absolute; top: -1px; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--heat-hot), var(--heat) 55%, var(--fresh)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.rail button { flex: 1; min-height: 44px; background: none; border: 0; color: var(--on-night-muted); font: 500 .85rem var(--body); text-align: left; padding: .8rem 0 0; cursor: pointer; transition: color .3s; }
.rail button:hover, .rail button[aria-current="true"] { color: #fff; }

/* Haus: Zeichnung */
.house svg * { vector-effect: non-scaling-stroke; }
.ground { stroke: rgba(255,255,255,.28); stroke-width: 1.5; }
.earth { fill: rgba(0,0,0,.24); }
.stars circle { fill: #fff; opacity: .4; }
.hud path { fill: none; stroke: rgba(255,255,255,.34); stroke-width: 1.5; }
.house .hud text { font: 600 10.5px var(--body); letter-spacing: .06em; fill: var(--on-night-muted); text-transform: uppercase; }
.room { fill: url(#warm); transition: opacity 1s var(--ease); opacity: .85; }
.mullion { fill: none; stroke: rgba(32,37,44,.55); stroke-width: 1.5; }
.leaks { mix-blend-mode: screen; }
.leaks :is(ellipse, circle) { fill: url(#leak); transform-box: fill-box; transform-origin: center; animation: breathe 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); transition: opacity .9s var(--ease); transition-delay: calc(var(--i) * .16s); }
@keyframes breathe { 50% { transform: scale(1.14); } }
.inner path { fill: none; stroke: rgba(255,255,255,.3); stroke-width: 1.5; }
.shell { fill: none; stroke: rgba(255,255,255,.88); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .9s var(--ease), stroke-width .9s var(--ease); }
.win, .door { stroke: rgba(255,255,255,.7); stroke-width: 1.5; transition: fill .9s var(--ease); }
.win { fill: #F2B04E; }
.door { fill: rgba(242,163,58,.4); }
.boiler rect { fill: rgba(236,106,46,.7); stroke: var(--heat-hot); stroke-width: 1.5; transition: fill .9s, stroke .9s; }
.boiler path { stroke: var(--heat-hot); stroke-width: 3; transition: stroke .9s; }
.house text { font: 500 13px var(--body); fill: var(--on-night); }

.heat { transition: opacity 1s var(--ease); }
.heat use { fill: none; stroke: var(--heat); stroke-linecap: round; }
.heat .glow { stroke-width: 12; opacity: .3; filter: blur(6px); }
.heat .flow { stroke-width: 4; stroke-dasharray: 3 8; animation: flow 1.5s linear infinite; }
.heat .flue { stroke: var(--heat-hot); }
@keyframes flow { to { stroke-dashoffset: -22; } }

.doc, .scan, .probes, .after { opacity: 0; transition: opacity .7s var(--ease); }
.doc rect { fill: rgba(201,162,39,.12); stroke: var(--gold-l); stroke-width: 1.5; }
.doc .ok { fill: var(--gold-l); font-weight: 650; }
.scan { fill: var(--gold-l); filter: drop-shadow(0 0 6px var(--gold-l)); }
.probes circle { fill: var(--night); stroke: var(--gold-l); stroke-width: 2; transform-box: fill-box; transform-origin: center; transform: scale(.45); transition: transform .6s var(--ease), fill .6s, stroke .6s; }
.probes g:nth-child(2) circle { transition-delay: .08s; } .probes g:nth-child(3) circle { transition-delay: .16s; }
.probes g:nth-child(4) circle { transition-delay: .24s; } .probes g:nth-child(5) circle { transition-delay: .32s; }
.probes .n { text-anchor: middle; font-weight: 700; fill: var(--gold-l); opacity: 0; transition: opacity .4s .3s, fill .6s; }
.probes .l { fill: var(--on-night-muted); font-size: 12.5px; }
.after rect, .after circle, .after path { fill: none; stroke: var(--fresh); stroke-width: 2; stroke-linecap: round; }
.after .pv { stroke-width: 7; stroke-dasharray: 27 3; stroke-linecap: butt; }
.after text { fill: var(--fresh); }

.scale .bars rect { y: 512px; width: 36px; height: 18px; rx: 3px; }
.scale .letters text { font: 700 11px var(--body); fill: #1d2227; text-anchor: middle; transform: translateY(525px); }
.scale .marker { fill: #fff; transition: transform 1.2s var(--ease); }

/* Zustände */
.scene[data-step="1"] .doc { opacity: 1; }
.scene[data-step="2"] .doc, .scene[data-step="3"] .doc, .scene[data-step="4"] .doc { opacity: .45; }
.scene[data-step="2"] .scan { opacity: 1; animation: scan 2.6s var(--ease) infinite alternate; }
@keyframes scan { to { transform: translateY(385px); } }
.scene[data-step="2"] .probes, .scene[data-step="3"] .probes, .scene[data-step="4"] .probes { opacity: 1; }
.scene[data-step="3"] .probes circle, .scene[data-step="4"] .probes circle { transform: none; }
.scene[data-step="3"] .probes .n, .scene[data-step="4"] .probes .n { opacity: 1; }
.scene[data-step="3"] .heat { opacity: .5; }
.scene[data-step="3"] .leaks :is(ellipse, circle) { opacity: .6; }
.scene[data-step="4"] .leaks :is(ellipse, circle) { opacity: 0; animation-play-state: paused; }
.scene[data-step="4"] .room { opacity: 1; }
.scene[data-step="4"] .heat { opacity: 0; }
.scene[data-step="4"] .shell { stroke: var(--fresh); stroke-width: 5; }
.scene[data-step="4"] .win { fill: #F6C56B; }
.scene[data-step="4"] .boiler rect { fill: transparent; stroke: rgba(255,255,255,.25); }
.scene[data-step="4"] .boiler path { stroke: rgba(255,255,255,.25); }
.scene[data-step="4"] .probes circle { fill: var(--fresh); stroke: var(--fresh); }
.scene[data-step="4"] .probes .n { fill: var(--night); }
.scene[data-step="4"] .probes g:last-child .l { opacity: 0; }
.scene[data-step="4"] .after { opacity: 1; transition-delay: .3s; }
.scene[data-step="4"] .marker { transform: translateX(-190px); }

/* ── Inhalts-Sektionen ───────────────────────────────── */
.sec { padding-block: clamp(4.5rem, 9vw, 8rem); }
.sec-tint { background: var(--tint); }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.lead-dark { color: var(--muted); font-size: 1.05rem; max-width: 62ch; }
.lead-dark + .lead-dark, .lead-dark + p { margin-top: 1.1rem; }
.sub { margin: 2.2rem 0 .8rem; }
.lead-dark strong { color: var(--text); }
.col-lead { color: var(--muted); padding: .8rem 0 .4rem; }
.note { margin-top: 1.6rem; font-size: .9rem; color: var(--muted); max-width: 68ch; }

.split.flip { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.split.flip > :first-child { order: 2; }

/* Vor Ort */
.kampagne-orte h2 { max-width: 18ch; }
.orte { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); margin-top: 2.6rem; }
.orte a { display: grid; gap: .9rem; align-content: start; padding: 1.6rem 0 1.8rem; border-top: 4px solid var(--gold-l); text-decoration: none; transition: border-color .3s; }
.orte .ort { font: 680 clamp(2rem, 4.4vw, 3.4rem)/1.05 var(--head); letter-spacing: -.03em; color: var(--text); transition: color .3s; }
.orte .txt { color: var(--muted); max-width: 44ch; font-size: 1.05rem; }
.orte .go { font-weight: 650; color: var(--green-ink); }
.orte .go::after { content: '→'; display: inline-block; margin-left: .5rem; transition: transform .35s var(--ease); }
.orte a:hover { border-color: var(--green-l); }
.orte a:hover .ort { color: var(--green-ink); }
.orte a:hover .go::after { transform: translateX(8px); }

/* „Beleg“: Rechner, Check, Formular */
.beleg { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.4rem, 3vw, 2.2rem); display: grid; gap: 1.1rem; box-shadow: 0 24px 50px -30px rgba(31,38,48,.35); color: var(--text); }
.bon { filter: drop-shadow(0 22px 28px rgba(31,38,48,.2)); }
.bon .beleg { border: 0; border-radius: 14px 14px 0 0; box-shadow: none; padding-bottom: 2.6rem;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 18px 100%; }
.pegel { position: relative; height: 12px; border-radius: 6px; background: var(--tint); margin-bottom: 1.2rem; }
.pegel i { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(90deg, var(--green-l), var(--gold-l) 62%, var(--heat-hot) 80%); clip-path: inset(0 calc(100% - var(--w, 0%)) 0 0 round 6px); transition: clip-path .6s var(--ease); }
.pegel b { position: absolute; left: 70%; top: -5px; height: 22px; border-left: 2px solid var(--text); padding-left: .4rem; font: 600 .75rem/2.6 var(--body); white-space: nowrap; transform: translateY(12px); }
.beleg fieldset { border: 0; display: grid; gap: .5rem; }
.beleg legend, .beleg-title { font: 650 1.05rem var(--head); margin-bottom: .6rem; }
.beleg label { display: grid; gap: .4rem; font-weight: 550; font-size: .95rem; }
.beleg label span { font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: -.3rem; }
.beleg fieldset label, .beleg .check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 450; min-height: 32px; }
.beleg .check span { margin: 0; font-size: .85rem; }
.beleg input[type="radio"], .beleg input[type="checkbox"] { accent-color: var(--green-l); width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; }
.beleg input[type="range"] { accent-color: var(--green-l); width: 100%; height: 32px; }
.beleg input[type="number"], .beleg input[type="text"], .beleg select, .beleg textarea { font: 400 1rem var(--body); color: var(--text); padding: .75rem .9rem; border: 1px solid rgba(57,64,74,.35); border-radius: 8px; background: #fff; width: 100%; }
.beleg ::placeholder { color: #68727F; }
.beleg input:focus-visible, .beleg select:focus-visible, .beleg textarea:focus-visible { outline: 2px solid var(--green-l); outline-offset: 1px; border-color: var(--green-l); }
.beleg dl { display: grid; font-variant-numeric: tabular-nums; }
.beleg dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--line); }
.beleg dd { font-weight: 600; }
.beleg dl div:nth-child(2) dd { color: var(--green-ink); }
.beleg .sum { border-bottom: 0; border-top: 2px solid var(--text); margin-top: .3rem; padding-top: 1rem; }
.beleg .sum dt { font-weight: 650; }
.beleg .sum dd { font: 700 clamp(1.7rem, 3vw, 2.2rem) var(--head); letter-spacing: -.02em; }
.beleg .fine { color: var(--muted); }
.beleg output { font-weight: 600; line-height: 1.45; padding: .9rem 1rem; border-radius: 8px; background: var(--tint); }
.beleg output:empty { display: none; }
.beleg output[data-state="ja"] { background: #FBEFD9; color: #6B3D06; }
.beleg output[data-state="knapp"] { background: #F7F1DA; color: #5C4708; }
.beleg output[data-state="nein"], .beleg output[data-state="ok"] { background: #E4F2E8; color: var(--green-ink); }
.beleg output[data-state="fehler"] { background: #FBE9E4; color: #7A2413; }

.frist { display: inline-block; background: var(--night); color: var(--on-night); border-radius: 8px; padding: .55rem .9rem; margin-bottom: 1.4rem; font-size: .95rem; }
.frist strong { color: var(--heat); font-variant-numeric: tabular-nums; }

/* QMB */
.qmb { background: radial-gradient(80% 70% at 12% 0%, #1B5230 0%, var(--forest) 60%); color: var(--on-forest); }
.qmb h2 { color: #fff; max-width: 22ch; }
.qmb h3 { color: #fff; font-size: 1.2rem; margin-bottom: 1.1rem; }
.qmb-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(1.5rem, 5vw, 5rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 5rem); }
.qmb-head p { color: var(--on-forest-muted); font-size: 1.08rem; padding-bottom: 1.2rem; }
.aufgaben { list-style: none; columns: 2; column-gap: 2.5rem; }
.aufgaben li { break-inside: avoid; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.16); font-weight: 550; }
.klartext { margin-top: 1.8rem; color: var(--on-forest-muted); max-width: 58ch; }
.qmb .fine { color: var(--on-forest-muted); max-width: 72ch; }
.monat { display: grid; gap: 1.2rem; padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 14px; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.16); }
.monat fieldset { border: 0; }
.monat legend { font: 650 1.2rem var(--head); color: #fff; margin-bottom: 1rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pills input { position: absolute; opacity: 0; }
.pills span { display: inline-flex; align-items: center; min-height: 44px; padding: .5rem 1.05rem; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.34); font-weight: 600; font-size: .92rem; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.pills span:hover { border-color: #fff; }
.pills input:checked + span { background: var(--gold-hi); border-color: var(--gold-hi); color: #1d2227; }
.pills input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.kalender { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; }
.kalender b { font: 600 .75rem var(--body); color: var(--on-forest-muted); padding-bottom: .1rem; }
.kalender i { height: clamp(30px, 4.2vw, 44px); border-radius: 7px; background: rgba(255,255,255,.07); transition: background .45s var(--ease), box-shadow .45s var(--ease); }
.kalender i[data-s="full"] { background: var(--gold-hi); }
.kalender i[data-s="half"] { background: linear-gradient(90deg, var(--gold-hi) 50%, rgba(227,190,74,.16) 50%); box-shadow: inset 0 0 0 1.5px var(--gold-hi); }
.kalender i[data-s="max"] { background: rgba(227,190,74,.16); box-shadow: inset 0 0 0 1.5px var(--gold-hi); }
.monat output { font-weight: 600; color: #fff; line-height: 1.45; }
.zeit-titel { margin-top: clamp(3.5rem, 7vw, 6rem); max-width: 30ch; font-size: clamp(1.3rem, 2.4vw, 1.8rem) !important; }
.zeit { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 2.2rem 1.4rem; position: relative; }
.zeit::before { content: ''; position: absolute; top: 6px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--gold-hi), rgba(227,190,74,.25)); transform-origin: left; transition: transform 1.6s var(--ease); }
.js .zeit:not(.in)::before { transform: scaleX(0); }
.zeit li { position: relative; padding: 1.8rem 1.5rem 0 0; display: grid; gap: .3rem; align-content: start; }
.zeit li::before { content: ''; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--forest); border: 3px solid var(--gold-hi); }
.zeit li:first-child::before { background: var(--gold-hi); }
.zeit time { font: 680 clamp(1.3rem, 2.6vw, 2rem) var(--head); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.zeit span { color: var(--on-forest-muted); max-width: 26ch; }
.qmb .actions { align-items: center; gap: 1rem 1.8rem; margin-top: 2.4rem !important; }
.qmb .more { color: #fff; }

/* Tabelle */
.table-scroll { overflow-x: auto; margin-top: 2.2rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 520px; }
th, td { text-align: right; padding: 1rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child { text-align: left; padding-left: 0; }
thead th { font-size: .85rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid var(--text); }
tbody th { font-weight: 600; }
tbody td { font: 600 clamp(1rem, 1.8vw, 1.3rem) var(--head); }
td.bar { background: linear-gradient(90deg, transparent calc(100% - var(--v) * .7), rgba(34,130,63,.13) 0) no-repeat 0 50% / 100% 56%; min-width: 9rem; }

/* Leistungen */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(2rem, 4vw, 3.5rem); margin-block: 2.2rem 2.6rem; }
.cols h3 { padding-bottom: .8rem; border-bottom: 2px solid var(--text); margin-bottom: .4rem; }
.cols ul { list-style: none; }
.cols li { padding: .75rem 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.cols li a { color: var(--green-ink); font-weight: 600; text-underline-offset: 3px; }

/* Über mich */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.foto { aspect-ratio: 4 / 5; border-radius: 14px; border: 2px dashed rgba(57,64,74,.4); background: var(--tint); display: grid; place-items: center; text-align: center; padding: 2rem; color: var(--muted); font-size: .95rem; }
.facts { list-style: none; margin-top: 1.8rem; border-top: 2px solid var(--text); }
.facts li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-weight: 550; }
.vorort { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: var(--muted); }

/* FAQ */
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 1.25rem 2.5rem 1.25rem 0; font: 600 1.08rem var(--head); position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: .3rem; top: 50%; translate: 0 -50%; font: 400 1.6rem var(--body); color: var(--green-ink); transition: rotate .3s var(--ease); }
details[open] summary::after { rotate: 45deg; }
details p { color: var(--muted); padding-bottom: 1.4rem; max-width: 68ch; }
#faq .more { display: inline-block; margin-top: 2rem; }

/* Kontakt */
.kontakt { background: var(--night); color: var(--on-night); }
.kontakt h2 { color: #fff; }
.kontakt .lead { color: var(--on-night-muted); max-width: 32rem; }
.big-tel { display: inline-block; margin-top: 2rem; font: 680 clamp(2rem, 5vw, 3.6rem) var(--head); letter-spacing: -.03em; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.big-tel:hover { color: var(--heat); }
.adr { margin-top: 1rem; color: var(--on-night-muted); line-height: 1.9; }
.adr a { color: #fff; text-underline-offset: 4px; }
.kontakt .beleg .btn { width: 100%; }

.foot { background: var(--bg); padding-block: 3.5rem 2rem; font-size: .92rem; color: var(--muted); border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem clamp(2rem, 5vw, 5rem); }
.foot img { height: 64px; width: auto; margin-bottom: 1rem; }
.foot address { font-style: normal; line-height: 1.8; }
.foot h2 { font: 650 .95rem var(--head); letter-spacing: 0; color: var(--text); margin-bottom: .7rem; }
.foot nav { display: grid; align-content: start; }
.foot nav a { padding: .4rem 0; text-underline-offset: 3px; }
.foot a:hover { color: var(--green-ink); }
.copy { margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .85rem; }

/* ── Schmal ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .foot-in { grid-template-columns: 1fr; }
  .split, .about, .qmb-head { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .qmb-head p { padding-bottom: 0; }
  .foto { max-width: 320px; }
}
@media (max-width: 820px) {
  .js .scene { height: auto; }
  .scene-pin, .js .scene-pin { position: static; height: auto; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding-block: 0 3rem; }
  .house { order: -1; position: sticky; top: var(--nav-h); z-index: 1; margin-inline: calc(-1 * clamp(1.25rem, 4vw, 2.5rem)); padding: .6rem 1rem .4rem; background: linear-gradient(var(--night) 88%, transparent); }
  .house svg, .js .house svg { max-height: 36vh; max-height: 36svh; margin-inline: auto; }
  .house figcaption { display: none; }
  .house text { font-size: 16px; }
  .steps, .js .steps { gap: 0; }
  .js .step { grid-area: auto; opacity: 1; transform: none; filter: none; pointer-events: auto; }
  .step { padding-block: 1.6rem 3.2rem; min-height: 46vh; min-height: 46svh; }
  .step:first-child { min-height: 0; padding-top: .8rem; }
  .step h1 { font-size: clamp(1.8rem, 7.4vw, 2.4rem); margin-bottom: .8rem; }
  .step h2 { font-size: clamp(1.4rem, 5.6vw, 1.8rem); margin-bottom: .7rem; }
  .lead { font-size: 1rem; }
  .js .rail, .js .scroll-hint { display: none; }
}
@media (max-width: 1100px) { .nav-links { display: none; } .menu { display: block; } }
@media (max-width: 1340px) { .nav-tel { display: none; } .nav-call { display: inline-flex; } }
@media (max-width: 640px) {
  .kampagne .long { display: none; }
  .kampagne .short { display: inline; }
  .aufgaben { columns: 1; }
  .zeit { grid-template-columns: 1fr; gap: 1.6rem; }
  .zeit::before { top: 0; bottom: 0; left: 6px; right: auto; width: 2px; height: auto; transform-origin: top; }
  .js .zeit:not(.in)::before { transform: scaleY(0); }
  .zeit li { padding: 0 0 0 2.2rem; }
  td.bar { min-width: 0; }
}
@media (max-width: 520px) {
  table { min-width: 0; }
  th, td { padding: .8rem .25rem; }
  thead th, tbody th { white-space: normal; }
  thead th { font-size: .75rem; }
  tbody th { font-size: .9rem; }
  .nav-tel { display: none; }
  .nav-logo span, .nav-cta { display: none; }
  .nav-in { gap: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .step { filter: none; transform: none; }
}
