/* Maßstab, Variante 2: Schicht für Schicht zur Klarheit.
   Dunkle Messraum-Optik, Bernstein als einzige Farbe, Ebenen und Messwertanzeigen als Leitmotiv. */

@font-face { font-family: "Mona Sans"; src: url("fonts/mona-sans-var.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0B0D11;
  --bg-oben: #10141B;
  --bg2: #12161D;
  --bg3: #171B23;
  --tx: #E9E6E0;
  --mu: #9AA0AB;
  --fa: #7B818E;
  --li: rgba(233, 230, 224, .12);
  --li2: rgba(233, 230, 224, .26);
  --am: #FFA63D;
  --am-tief: #D98A1E;
  --f-text: "Mona Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, Consolas, monospace;
  --rand: clamp(20px, 4.6vw, 72px);
  --kopf-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; color: var(--tx); font: 400 17px/1.55 var(--f-text); overflow-x: clip;
  background: linear-gradient(180deg, var(--bg-oben) 0, var(--bg) 30%, #07080B 100%);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--f-text); font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: clamp(2.1rem, 4.4vw, 4.2rem); line-height: 1.02; }
dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--am); color: #0B0D11; }
:focus-visible { outline: 3px solid var(--am); outline-offset: 3px; }
.sprung { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--am); color: #0B0D11; padding: 10px 16px; }
.sprung:focus { left: 8px; }

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px;
  border: 1px solid var(--am); background: var(--am); color: #0B0D11;
  font: 600 1rem/1 var(--f-text); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.knopf:hover { background: var(--tx); border-color: var(--tx); }
.knopf:active { transform: translateY(1px); }
.knopf--leise { background: transparent; color: var(--tx); border-color: var(--li2); }
.knopf--leise:hover { background: var(--tx); color: #0B0D11; border-color: var(--tx); }
.knopf--klein { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.textlink { display: inline-block; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--am); padding-bottom: 1px; }
.textlink:hover { color: var(--am); }
.textlink[hidden] { display: none; }

/* ---------- Kopf und Tiefenanzeige ---------- */
.kopf {
  position: fixed; inset: 0 0 auto 0; height: var(--kopf-h); z-index: 50; display: flex; align-items: center; gap: 28px;
  padding: 0 var(--rand); background: rgba(11, 13, 17, .78); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.kopf.ist-gescrollt { border-bottom-color: var(--li); background: rgba(11, 13, 17, .93); }
.marke { font: 700 1.5rem/1 var(--f-text); letter-spacing: -.03em; text-decoration: none; }
.menue { display: flex; gap: clamp(18px, 2.4vw, 34px); margin-left: auto; font-size: .95rem; }
.menue a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.menue a:hover, .menue a.ist { border-bottom-color: var(--am); }
.menue .menue__cta { display: none; }
.menueknopf { display: none; }

.tiefe { position: fixed; right: 4px; top: 50%; transform: translateY(-50%); width: 58px; height: min(54vh, 460px); z-index: 40; pointer-events: none; display: none; opacity: 0; transition: opacity .5s; }
.tiefe.sichtbar { opacity: 1; }
.tiefe__skala { position: absolute; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding-right: 8px; border-right: 1px solid var(--li2); font: 400 .6rem/1 var(--f-mono); color: var(--fa); }
.tiefe__marke { position: absolute; right: -1px; top: 0; width: 18px; height: 2px; background: var(--am); transform: translateY(calc(var(--p, 0) * 100%)); }
.tiefe__marke b { display: none; position: absolute; right: 22px; top: -6px; white-space: nowrap; font: 500 .66rem/1 var(--f-mono); color: var(--am); }
@media (min-width: 1280px) { .tiefe { display: block; } }

/* ---------- 1 · Einstieg ---------- */
.start {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 3vw, 56px); align-items: center; padding: calc(var(--kopf-h) + 14px) var(--rand) 36px;
}
.start__text { position: relative; z-index: 2; }
.start h1 { font-size: clamp(2.6rem, 5.2vw, 5.6rem); line-height: .98; font-weight: 650; letter-spacing: -.04em; margin: 0 0 clamp(18px, 2vw, 30px); }
.start h1 span { display: block; }
.start__sub { max-width: 34ch; font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.5; color: #C9C6C0; margin: 0 0 clamp(22px, 2.6vw, 38px); }
.start__aktion { display: flex; flex-wrap: wrap; gap: 12px; }

.scan { margin: 0; min-width: 0; }
.scan__rahmen {
  --l: 40%; --r: 44%; --c: 48%;
  position: relative; margin-left: auto; overflow: hidden; touch-action: pan-y; cursor: crosshair;
  width: min(100%, calc((100svh - 150px) * 1.339)); aspect-ratio: 2336 / 1744; background: #0e1118;
}
.scan__foto, .scan__thermo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.scan__thermo { clip-path: inset(0 var(--r) 0 var(--l)); }
.scan__rahmen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, var(--bg-oben) 0, rgba(16, 20, 27, 0) 9%), linear-gradient(180deg, var(--bg-oben) 0, rgba(16, 20, 27, 0) 13%); }
.scan__kante { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--am); z-index: 2; pointer-events: none; }
.scan__kante--a { left: var(--l); }
.scan__kante--b { left: calc(100% - var(--r)); }
.scan__anzeige {
  position: absolute; z-index: 3; top: 15%; left: var(--c); transform: translateX(-50%); display: flex; gap: 16px; white-space: nowrap;
  padding: 7px 11px; background: rgba(11, 13, 17, .9); border: 1px solid var(--am); font: 400 .72rem/1 var(--f-mono); color: var(--mu); pointer-events: none;
}
.scan__anzeige b { font-weight: 500; color: var(--tx); font-variant-numeric: tabular-nums; }
.scan__skala { position: absolute; z-index: 3; right: 2.2%; top: 26%; height: 44%; width: 9px; pointer-events: none; }
.scan__skala i { position: absolute; inset: 0; background: linear-gradient(to top, #00000e 0, #18003e 10%, #580082 26%, #9e1276 40%, #d42c38 54%, #f16e0e 68%, #fdbc18 82%, #ffee7a 93%, #fffff0 100%); outline: 1px solid rgba(233, 230, 224, .3); }
.scan__skala span { position: absolute; right: 16px; font: 400 .62rem/1 var(--f-mono); color: var(--mu); white-space: nowrap; }
.scan__skala span:nth-of-type(1) { top: -3px; }
.scan__skala span:nth-of-type(2) { bottom: -3px; }
.scan figcaption { margin-top: 12px; max-width: min(100%, calc((100svh - 150px) * 1.339)); margin-left: auto; font: 400 .74rem/1.45 var(--f-mono); color: var(--fa); }

/* Der Einstieg wird abgetastet: Text und Foto werden von links nach rechts freigelegt */
.scan__foto { clip-path: inset(0 calc(100% - var(--rev, 100%)) 0 0); }
.anim .start h1 span { clip-path: inset(-.2em 100% -.3em -.1em); }
.anim .start__sub, .anim .start__aktion { clip-path: inset(-10px 100% -10px 0); }
.anim.geladen .start h1 span { clip-path: inset(-.2em -.1em -.3em -.1em); transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1); transition-delay: calc(var(--i, 0) * 150ms + 250ms); }
.anim.geladen .start__sub { clip-path: inset(-10px -10px -10px 0); transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1) .95s; }
.anim.geladen .start__aktion { clip-path: inset(-10px -10px -10px 0); transition: clip-path 1.1s cubic-bezier(.65, 0, .35, 1) 1.1s; }

/* ---------- 2 · Ausgangslage ---------- */
.lage { padding: clamp(80px, 11vw, 170px) var(--rand) clamp(70px, 9vw, 130px); }
.lage__kopf h2 { max-width: 14em; }
.lage__kopf p { max-width: 50ch; margin: clamp(18px, 2vw, 30px) 0 0; color: var(--mu); font-size: 1.14rem; }
.durchleuchtet { margin-top: clamp(48px, 7vw, 100px); border-top: 1px solid var(--li2); }
.dl { display: block; padding: clamp(22px, 3vw, 42px) 0 clamp(26px, 3.4vw, 46px); border-bottom: 1px solid var(--li); }
.dl__sicht { margin: 0 0 clamp(8px, 1vw, 14px); font: 500 clamp(1.1rem, 1.7vw, 1.6rem)/1.3 var(--f-text); color: var(--mu); }
.dl__sicht i { display: block; margin-bottom: 8px; font: 400 .72rem/1 var(--f-mono); font-style: normal; color: var(--fa); }
.dl__frage { position: relative; margin: 0; max-width: 16em; font: 600 clamp(1.9rem, 4.6vw, 4.4rem)/1.03 var(--f-text); letter-spacing: -.035em; }
.dl__frage span { display: block; }
.dl__frage::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--am); opacity: 0; pointer-events: none; }
@keyframes enthuellen { from { clip-path: inset(-.2em 100% -.3em 0); } to { clip-path: inset(-.2em -.1em -.3em -.1em); } }
@keyframes abtasten { from { left: 0; opacity: 1; } 88% { opacity: 1; } to { left: 100%; opacity: 0; } }
.anim .dl__frage span { clip-path: inset(-.2em 100% -.3em 0); }
.anim .dl.ein .dl__frage span { animation: enthuellen 1.15s cubic-bezier(.65, 0, .35, 1) both; }
.anim .dl.ein .dl__frage::after { animation: abtasten 1.15s cubic-bezier(.65, 0, .35, 1) both; }

/* ---------- 3 · Prüfebenen ---------- */
.ebenen { padding: clamp(80px, 10vw, 150px) var(--rand); background: var(--bg2); border-top: 1px solid var(--li); border-bottom: 1px solid var(--li); }
.ebenen__kopf p { max-width: 50ch; margin: clamp(16px, 2vw, 26px) 0 0; color: var(--mu); font-size: 1.12rem; }
.zeilen { margin-top: clamp(40px, 6vw, 90px); border-top: 1px solid var(--li2); }
.zeile { border-bottom: 1px solid var(--li); }
.zeile__kopf {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .62fr) minmax(0, 1fr) 20px; align-items: center; gap: clamp(14px, 2.4vw, 40px);
  width: 100%; padding: clamp(20px, 2.2vw, 32px) 0; background: none; border: 0; text-align: left; cursor: pointer; position: relative;
}
.zeile__name { font: 600 clamp(1.3rem, 2.4vw, 2.3rem)/1.1 var(--f-text); letter-spacing: -.028em; transition: color .25s; }
.zeile__wert { display: flex; align-items: baseline; gap: 8px; font-family: var(--f-mono); }
.zeile__wert b { font: 600 clamp(1.6rem, 2.8vw, 2.7rem)/1 var(--f-text); color: var(--am); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.zeile__wert i { font-style: normal; font-size: .82rem; color: var(--mu); }
.zeile__meter em { display: block; margin-top: 12px; font: 400 .74rem/1.35 var(--f-mono); font-style: normal; color: var(--mu); }
.zeile__kopf::after {
  content: ""; width: 14px; height: 14px; transition: background-size .3s var(--ease);
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}
.zeile__kopf[aria-expanded="true"]::after { background-size: 100% 2px, 2px 0; }
.zeile__kopf:hover .zeile__name, .zeile__kopf[aria-expanded="true"] .zeile__name { color: var(--am); }
.zeile__detail { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.zeile__detail > div { overflow: hidden; min-height: 0; }
.zeile.offen .zeile__detail { grid-template-rows: 1fr; }
.zeile__detail dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(24px, 4vw, 64px); padding: 0 0 clamp(24px, 3vw, 38px); max-width: 64rem; }
.zeile__detail dt { font: 400 .72rem/1 var(--f-mono); color: var(--am); margin-bottom: 6px; }
.zeile__detail dd { font-size: 1rem; line-height: 1.45; }
.ebenen__fuss { margin: clamp(26px, 3vw, 40px) 0 0; color: var(--mu); font: 400 .8rem/1.5 var(--f-mono); }

/* Messanzeigen: Skala mit Teilstrichen und Marke */
.meter { --v: .5; display: block; position: relative; height: 12px; }
.meter::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--li2); }
.meter::after {
  content: ""; position: absolute; left: 0; top: 5px; height: 2px; width: calc(var(--v) * 100%); background: var(--am);
  transition: width 1.1s var(--ease);
}
.meter > i { display: none; }
.meter--grenze { background: linear-gradient(var(--tx), var(--tx)) calc(var(--g) * 100%) 0 / 1px 12px no-repeat; }
.meter--spanne::before { background: linear-gradient(90deg, transparent calc(var(--a) * 100%), rgba(255, 166, 61, .35) calc(var(--a) * 100%) calc(var(--b) * 100%), transparent calc(var(--b) * 100%)) 0 -3px / 100% 8px no-repeat, var(--li2); background-clip: border-box; }
.meter--spanne::after { width: 2px; left: calc(var(--v) * 100%); top: 0; height: 12px; }
.meter--teile { height: 14px; background: linear-gradient(90deg, var(--am) calc(var(--w) / var(--n) * 100%), var(--li2) 0); -webkit-mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--n) - 3px), transparent 0 calc(100% / var(--n))); mask: repeating-linear-gradient(90deg, #000 0 calc(100% / var(--n) - 3px), transparent 0 calc(100% / var(--n))); }
.meter--teile::before, .meter--teile::after { display: none; }
.anim .zeile:not(.sichtbar) .meter::after { width: 0; }

/* ---------- 4 · Analyse-Stapel ---------- */
.analyse { padding-top: clamp(80px, 10vw, 150px); }
.analyse__kopf { padding: 0 var(--rand) clamp(30px, 4vw, 56px); }
.analyse__kopf p { max-width: 56ch; margin: clamp(16px, 2vw, 26px) 0 0; color: var(--mu); font-size: 1.12rem; }
.analyse__lauf { height: 470vh; position: relative; }
.analyse__rahmen {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 600px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 56px); align-items: center; padding: calc(var(--kopf-h) + 6px) var(--rand) 18px; overflow: clip;
}
.buehne { position: relative; min-width: 0; perspective: 3200px; perspective-origin: 50% 40%; }
.szene {
  --rx: 0deg; --ry: 0deg; --sk: 1;
  position: relative; width: min(100%, calc((100svh - 150px) * 1.339)); aspect-ratio: 2336 / 1744; margin: 16px auto 0;
  transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--sk)); will-change: transform;
}
.ebene { position: absolute; inset: 0; opacity: 1; transform: translate3d(var(--tx, 0px), var(--ty, 0px), var(--tz, 0px)); }
.ebene img { position: absolute; inset: 0; width: 100%; height: 100%; user-select: none; }
.ebene::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(233, 230, 224, .2); transition: border-color .35s, box-shadow .35s; }
.ebene.ist::after { border-color: var(--am); box-shadow: 0 0 0 1px rgba(255, 166, 61, .3); }
.ebene--foto img { filter: brightness(.82) contrast(1.05); }
.ebene--befund { background: rgba(11, 13, 17, .0); }
.pin {
  position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--am); color: var(--am); font: 500 .68rem/1 var(--f-mono);
}
.ecke { position: absolute; width: 18px; height: 18px; border: 0 solid var(--tx); }
.ecke--a { left: 8px; top: 8px; border-width: 2px 0 0 2px; }
.ecke--b { right: 8px; top: 8px; border-width: 2px 2px 0 0; }
.ecke--c { left: 8px; bottom: 8px; border-width: 0 0 2px 2px; }
.ecke--d { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }
.befund__tag { position: absolute; left: 14px; bottom: 36px; padding: 5px 9px; background: rgba(11, 13, 17, .86); border: 1px solid var(--li2); font: 400 .64rem/1 var(--f-mono); color: var(--tx); }
.buehne__skala { position: absolute; right: -4px; top: 14%; height: 44%; width: 9px; opacity: 0; transition: opacity .4s; pointer-events: none; }
.buehne__skala.zeigt { opacity: 1; }
.buehne__skala i { position: absolute; inset: 0; background: linear-gradient(to top, #00000e 0, #18003e 10%, #580082 26%, #9e1276 40%, #d42c38 54%, #f16e0e 68%, #fdbc18 82%, #ffee7a 93%, #fffff0 100%); outline: 1px solid rgba(233, 230, 224, .3); }
.buehne__skala span { position: absolute; right: 16px; font: 400 .62rem/1 var(--f-mono); color: var(--mu); white-space: nowrap; }
.buehne__skala span:nth-of-type(1) { top: -3px; }
.buehne__skala span:nth-of-type(2) { bottom: -3px; }

.konsole { min-width: 0; }
.konsole__ebenen { border-top: 1px solid var(--li2); }
.konsole__ebenen li { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--li); color: var(--fa); transition: color .3s; }
.konsole__ebenen b { font-weight: 600; font-size: 1.02rem; }
.konsole__ebenen span { font: 400 .72rem/1 var(--f-mono); }
.konsole__ebenen li.ist { color: var(--tx); }
.konsole__ebenen li.ist b { color: var(--am); }
.konsole__ebenen li.fertig { color: var(--mu); }
.sw { display: block; width: 20px; height: 8px; opacity: .55; transition: opacity .3s; }
li.ist .sw, li.fertig .sw { opacity: 1; }
.sw--foto { background: #cfcfca; }
.sw--thermo { background: linear-gradient(90deg, #18003e, #9e1276, #f16e0e, #ffee7a); }
.sw--feuchte { background: #3b63ff; }
.sw--risse { background: var(--am); }
.sw--befund { border: 1px solid var(--tx); }
.konsole__detail { margin-top: clamp(16px, 2.2vw, 30px); min-height: 14.5rem; }
.konsole__detail h3 { font: 600 clamp(1.7rem, 2.8vw, 2.6rem)/1.05 var(--f-text); letter-spacing: -.03em; }
.konsole__sub { margin: 8px 0 12px; font: 400 .76rem/1.2 var(--f-mono); color: var(--am); }
.konsole__detail p { color: #C9C6C0; margin-bottom: 0; line-height: 1.5; }
.konsole__detail .konsole__sub { margin-bottom: 12px; }
.funde { margin-top: 16px; border-top: 1px solid var(--li); }
.funde li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--li); font-size: .95rem; animation: fundein .7s cubic-bezier(.65, 0, .35, 1) both; animation-delay: calc(var(--k, 0) * 90ms); }
.funde b { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--am); color: var(--am); font: 500 .68rem/1 var(--f-mono); }
.funde span:last-child { font: 500 .82rem/1 var(--f-mono); color: var(--am); white-space: nowrap; }
@keyframes fundein { from { clip-path: inset(-2px 100% -2px 0); } to { clip-path: inset(-2px -2px -2px 0); } }
.konsole__fuss { margin: 16px 0 0 !important; font: 400 .7rem/1.4 var(--f-mono); color: var(--fa) !important; }

/* ---------- 5 · Ablauf: Klarheitskurve ---------- */
.ablauf { padding-top: clamp(80px, 10vw, 150px); border-top: 1px solid var(--li); }
.ablauf__kopf { padding: 0 var(--rand) clamp(30px, 4vw, 56px); }
.ablauf__kopf p { max-width: 54ch; margin: clamp(16px, 2vw, 26px) 0 0; color: var(--mu); font-size: 1.12rem; }
.ablauf__lauf { height: 360vh; position: relative; }
.ablauf__rahmen { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px; display: flex; flex-direction: column; justify-content: center; gap: clamp(26px, 4vw, 54px); padding: calc(var(--kopf-h) + 10px) var(--rand) 24px; overflow: clip; }
.kurve { position: relative; height: min(44svh, 420px); margin-bottom: 38px; border-bottom: 1px solid var(--li2); }
.kurve canvas { width: 100%; height: 100%; display: block; }
.kurve__schritte { position: absolute; left: 0; right: 0; top: 100%; height: 34px; }
.kurve__schritte li { position: absolute; left: var(--x); transform: translateX(-50%); padding-top: 12px; font: 400 .72rem/1 var(--f-mono); color: var(--fa); white-space: nowrap; transition: color .3s; }
.kurve__schritte li::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 8px; background: var(--li2); transition: background .3s, height .3s; }
.kurve__schritte li.ist { color: var(--am); }
.kurve__schritte li.ist::before { background: var(--am); height: 12px; }
.kurve__schritte li.fertig { color: var(--mu); }
.ablauf__info { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 5vw, 90px); align-items: start; }
.unsicher { margin: 0; display: flex; flex-direction: column; }
.unsicher span { font: 400 .8rem/1 var(--f-mono); color: var(--mu); margin-bottom: 10px; }
.unsicher b { font: 600 clamp(4rem, 9vw, 8.5rem)/.85 var(--f-text); letter-spacing: -.05em; color: var(--am); font-variant-numeric: tabular-nums; }
.sd__tag { margin: 0 0 8px; font: 500 .8rem/1 var(--f-mono); color: var(--am); }
.sd h3 { font: 600 clamp(1.8rem, 3.4vw, 3.2rem)/1.04 var(--f-text); letter-spacing: -.03em; margin-bottom: 12px; }
.sd p { max-width: 46ch; font-size: 1.1rem; color: #C9C6C0; }
.sd .textlink { margin-top: 4px; }

/* ---------- 6 · Ergebnis ---------- */
.ergebnis { padding: clamp(80px, 10vw, 150px) var(--rand); border-top: 1px solid var(--li); }
.ergebnis__kopf p { max-width: 54ch; margin: clamp(16px, 2vw, 26px) 0 0; color: var(--mu); font-size: 1.12rem; }
.ergebnis__feld { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(24px, 5vw, 90px); margin-top: clamp(40px, 6vw, 90px); align-items: start; }
.inhalt { border-top: 1px solid var(--li2); }
.inhalt li { padding: 16px 0; border-bottom: 1px solid var(--li); cursor: default; position: relative; transition: padding-left .3s var(--ease); }
.inhalt li b { display: block; font: 600 clamp(1.2rem, 2vw, 1.8rem)/1.1 var(--f-text); letter-spacing: -.02em; transition: color .25s; }
.inhalt li span { display: block; margin-top: 4px; color: var(--mu); font-size: .96rem; }
.inhalt li:hover, .inhalt li:focus-visible, .inhalt li.ist { padding-left: 16px; }
.inhalt li:hover b, .inhalt li:focus-visible b, .inhalt li.ist b { color: var(--am); }
.inhalt li::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; background: var(--am); transform: scaleY(0); transition: transform .3s var(--ease); }
.inhalt li:hover::before, .inhalt li:focus-visible::before, .inhalt li.ist::before { transform: scaleY(1); }
.cockpit { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--li2); background: var(--bg3); position: sticky; top: calc(var(--kopf-h) + 22px); }
.cockpit__kopf { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--li2); font: 400 .72rem/1.3 var(--f-mono); color: var(--mu); }
.cockpit__kopf b { color: var(--tx); font-weight: 500; }
.cp { padding: clamp(16px, 2vw, 24px); border-top: 1px solid var(--li); transition: opacity .35s, box-shadow .35s; }
.cp h3 { font: 400 .72rem/1 var(--f-mono); letter-spacing: 0; color: var(--am); margin-bottom: 12px; }
.cp p { margin: 0; }
.cp--einschaetzung { grid-column: 1 / -1; border-top: 0; }
.cp--bewertung, .cp--messwerte { grid-column: 1 / 4; }
.cp--empfehlung, .cp--fotos { grid-column: 4 / 7; border-left: 1px solid var(--li); }
.cp--dokumentation { grid-column: 1 / -1; }
.cp__satz { font: 600 clamp(1.25rem, 2.2vw, 1.9rem)/1.2 var(--f-text); letter-spacing: -.02em; }
.cp--dokumentation p { color: #C9C6C0; font-size: .92rem; line-height: 1.5; }
.stufen { display: grid; grid-template-columns: repeat(3, 1fr); }
.stufen li { padding: 12px 8px; border: 1px solid var(--li2); margin-left: -1px; font: 400 .7rem/1.25 var(--f-mono); color: var(--mu); text-align: center; }
.stufen li:first-child { margin-left: 0; }
.stufen li.ist { background: var(--am); border-color: var(--am); color: #0B0D11; font-weight: 500; }
.spanne { --a: .2; --b: .8; --v: .5; position: relative; height: 34px; margin: 30px 0 6px; background: linear-gradient(90deg, transparent calc(var(--a) * 100%), rgba(255, 166, 61, .3) calc(var(--a) * 100%) calc(var(--b) * 100%), transparent calc(var(--b) * 100%)) 0 50% / 100% 14px no-repeat; border-bottom: 1px solid var(--li2); }
.spanne i { position: absolute; left: calc(var(--v) * 100%); top: 0; bottom: -1px; width: 2px; background: var(--am); }
.spanne b { position: absolute; left: calc(var(--v) * 100%); top: -2px; transform: translate(8px, -100%); font: 500 .8rem/1 var(--f-mono); color: var(--tx); white-space: nowrap; }
.spanne__achse { display: flex; justify-content: space-between; font: 400 .7rem/1 var(--f-mono); color: var(--mu); }
.cp table { width: 100%; border-collapse: collapse; }
.cp th, .cp td { padding: 8px 0; border-bottom: 1px solid var(--li); font-size: .88rem; text-align: left; font-weight: 400; }
.cp td { text-align: right; font-family: var(--f-mono); color: var(--am); }
.mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mini figure { margin: 0; }
.mini__bild { display: block; aspect-ratio: 1.1; background-size: cover; background-position: 50% 62%; background-repeat: no-repeat; outline: 1px solid var(--li2); }
.mini__bild--foto { background-image: url("img/haus-tag-1100.webp"); filter: brightness(.82); }
.mini__bild--thermo { background-image: url("img/thermo-flaeche-1100.webp"), url("img/haus-tag-1100.webp"); }
.mini__bild--feuchte { background-image: url("img/feuchte-1100.webp"), url("img/haus-tag-1100.webp"); }
.mini__bild--risse { background-image: url("img/risse-1100.webp"), url("img/haus-tag-1100.webp"); }
.mini figcaption { margin-top: 6px; font: 400 .64rem/1 var(--f-mono); color: var(--mu); }
.cockpit.fokus .cp { opacity: .3; }
.cockpit.fokus .cp.ist { opacity: 1; box-shadow: inset 0 0 0 1px var(--am); }

/* ---------- 7 · Vertrauen ---------- */
.vertrauen { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 100px); padding: clamp(80px, 10vw, 150px) var(--rand); border-top: 1px solid var(--li); align-items: start; }
.vertrauen__foto { margin: 0; position: sticky; top: calc(var(--kopf-h) + 30px); }
.vertrauen__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: #14171d; }
.vertrauen__text h2 { max-width: 11em; }
.vertrauen__lead { margin: clamp(18px, 2vw, 28px) 0 clamp(32px, 4vw, 54px); max-width: 38ch; font-size: 1.25rem; line-height: 1.45; color: #D4D1CB; }
.grund { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(26px, 3vw, 44px) clamp(22px, 3vw, 44px); }
.grund div { border-top: 1px solid var(--li2); padding-top: 14px; }
.grund dt { font: 600 1.35rem/1.1 var(--f-text); letter-spacing: -.02em; margin-bottom: 8px; color: var(--am); }
.grund dd { color: #B9B6B0; font-size: .97rem; line-height: 1.5; }
.vertrauen__titel { margin: clamp(36px, 5vw, 64px) 0 0; max-width: 56ch; padding-top: 18px; border-top: 1px solid var(--li); color: var(--mu); font-size: .95rem; }
.vertrauen__titel b { color: var(--tx); }
.anim .vertrauen__foto img { clip-path: inset(0 100% 0 0); }
.anim .vertrauen__foto.ein img { clip-path: inset(0); transition: clip-path 1.3s cubic-bezier(.65, 0, .35, 1); }

/* ---------- 8 · Fälle am Haus ---------- */
.faelle { padding: clamp(80px, 10vw, 150px) var(--rand); border-top: 1px solid var(--li); background: var(--bg2); }
.faelle__kopf p { margin: clamp(14px, 1.6vw, 22px) 0 0; color: var(--mu); font-size: 1.12rem; }
.explorer { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); margin-top: clamp(36px, 5vw, 70px); align-items: start; }
.explorer__bild { position: relative; aspect-ratio: 2336 / 1744; overflow: hidden; background: #14171d; }
.explorer__bild img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ex__foto { filter: brightness(.82) contrast(1.05); }
.ex__ebene { opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.ex__ebene.an { opacity: 1; }
.ex__ebene.halb { opacity: .55; }
.ex__rahmen { position: absolute; border: 1.5px solid var(--am); box-shadow: 0 0 0 100vmax rgba(11, 13, 17, .55); pointer-events: none; z-index: 2; transition: left .6s var(--ease), top .6s var(--ease), width .6s var(--ease), height .6s var(--ease); }
.spot { position: absolute; transform: translate(-50%, -50%); z-index: 4; width: 30px; height: 30px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--tx); color: var(--tx); cursor: pointer; font: 500 .8rem/1 var(--f-mono); transition: background .2s, color .2s, border-color .2s; }
.spot b { font-weight: 500; }
.spot:hover { border-color: var(--am); color: var(--am); }
.spot.ist { background: var(--am); border-color: var(--am); color: #0B0D11; }
.spot--haus { left: 94% !important; top: 7% !important; }
.explorer__seite { min-width: 0; }
.fallreiter { border-top: 1px solid var(--li2); }
.fallreiter button { display: grid; grid-template-columns: 34px 1fr; align-items: center; width: 100%; padding: 12px 0; background: none; border: 0; border-bottom: 1px solid var(--li); text-align: left; cursor: pointer; font: 600 1.05rem/1.2 var(--f-text); color: var(--mu); transition: color .25s; }
.fallreiter button b { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--li2); font: 500 .7rem/1 var(--f-mono); transition: background .2s, border-color .2s, color .2s; }
.fallreiter button:hover { color: var(--tx); }
.fallreiter button[aria-selected="true"] { color: var(--am); }
.fallreiter button[aria-selected="true"] b { background: var(--am); border-color: var(--am); color: #0B0D11; }
.fallseiten { margin-top: clamp(20px, 2.4vw, 32px); }
.fall[hidden] { display: none; }
.fall.kommt { animation: fallkommt .65s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes fallkommt { from { clip-path: inset(-4px 100% -4px 0); } to { clip-path: inset(-4px -4px -4px 0); } }
.fall h3 { font: 600 clamp(1.4rem, 2.2vw, 2rem)/1.1 var(--f-text); margin-bottom: 16px; }
.fall dl { display: grid; gap: 14px; }
.fall dt { font: 400 .72rem/1 var(--f-mono); color: var(--am); margin-bottom: 4px; }
.fall dd { font-size: .98rem; line-height: 1.5; color: #CFCCC6; }
.fall__zahlen { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--li); display: flex; flex-wrap: wrap; gap: 6px 26px; font: 400 .8rem/1.4 var(--f-mono); color: var(--mu); }
.fall__zahlen b { color: var(--tx); font-weight: 500; }

/* ---------- 9 · Fragen ---------- */
.fragen { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(24px, 6vw, 100px); padding: clamp(80px, 10vw, 150px) var(--rand); border-top: 1px solid var(--li); }
.fragen h2 { align-self: start; position: sticky; top: calc(var(--kopf-h) + 30px); }
.fragenliste { border-bottom: 1px solid var(--li); }
.frage h3 { font: inherit; letter-spacing: 0; }
.frage button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(20px, 2.2vw, 30px) 0; background: none; border: 0; border-top: 1px solid var(--li); text-align: left; cursor: pointer; font: 600 clamp(1.15rem, 1.7vw, 1.55rem)/1.25 var(--f-text); letter-spacing: -.02em; }
.frage button::after { content: ""; flex: none; width: 16px; height: 16px; transition: background-size .3s var(--ease); background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; }
.frage button:hover { color: var(--am); }
.frage button[aria-expanded="true"]::after { background-size: 100% 2px, 2px 0; }
.frage__antwort { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease); }
.frage__antwort > div { overflow: hidden; min-height: 0; }
.frage__antwort p { max-width: 62ch; margin: 0; padding: 0 0 28px; color: #C2BFB9; font-size: 1.05rem; }
.frage.offen .frage__antwort { grid-template-rows: 1fr; }

/* ---------- 10 · Kontakt ---------- */
.kontakt { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 120px); padding: clamp(80px, 10vw, 150px) var(--rand); border-top: 1px solid var(--li2); overflow: clip; isolation: isolate; }
.kontakt__bild { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0B0D11 0, rgba(11, 13, 17, .9) 42%, rgba(11, 13, 17, .62) 100%), url("img/haus-daemmerung-2048.webp") 50% 32% / cover no-repeat; }
.kontakt__links h2 { font-size: clamp(2.4rem, 5.4vw, 5rem); }
.kontakt__links > p { max-width: 40ch; margin: clamp(18px, 2vw, 28px) 0 clamp(28px, 4vw, 52px); color: #D4D1CB; font-size: 1.15rem; }
.kontakt__daten { border-top: 1px solid var(--li2); }
.kontakt__daten div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--li); }
.kontakt__daten dt { font: 400 .8rem/1.7 var(--f-mono); color: var(--mu); }
.kontakt__daten a { text-decoration: none; border-bottom: 2px solid var(--am); font-weight: 600; word-break: break-word; }
.formular { position: relative; display: grid; gap: 20px; align-content: start; }
.formular fieldset { border: 0; padding: 0; margin: 0; }
.formular legend, .feld label { display: block; margin: 0 0 8px; padding: 0; font: 400 .8rem/1.2 var(--f-mono); color: var(--mu); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { margin: 0; }
.chips span { display: inline-block; padding: 11px 16px; border: 1px solid var(--li2); background: rgba(11, 13, 17, .6); font: 500 .92rem/1.1 var(--f-text); color: var(--tx); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chips span:hover { border-color: var(--tx); }
.chips input:checked + span { background: var(--am); border-color: var(--am); color: #0B0D11; }
.chips input:focus-visible + span { outline: 3px solid var(--am); outline-offset: 3px; }
.feld input, .feld textarea { width: 100%; padding: 14px; border: 1px solid var(--li2); border-radius: 0; background: rgba(11, 13, 17, .72); font: 400 1rem/1.4 var(--f-text); color: var(--tx); }
.feld textarea { resize: vertical; min-height: 120px; }
.feld input:focus, .feld textarea:focus { outline: 2px solid var(--am); outline-offset: 0; border-color: var(--am); }
.feld.fehler input { border-color: var(--am); border-width: 2px; }
.feld__fehler { margin: 8px 0 0; padding-left: 10px; border-left: 3px solid var(--am); font-weight: 600; font-size: .92rem; }
.feld__hilfe { margin: 8px 0 0; font-size: .88rem; color: var(--mu); }
.formular .knopf { justify-self: start; min-width: 240px; }
.formular__danke { position: absolute; inset: 0; background: #0D1015; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 0 0 4px; }
.formular__danke[hidden] { display: none; }
.formular__danke h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); color: var(--am); }
.formular__danke p { max-width: 38ch; font-size: 1.12rem; margin: 0; }
.formular__danke b { white-space: nowrap; }
.formular__hinweis { font: 400 .82rem/1.4 var(--f-mono); color: var(--mu); margin-top: 10px !important; }

/* ---------- Fuß ---------- */
.fuss { padding: 30px var(--rand) 44px; border-top: 1px solid var(--li); font: 400 .8rem/1.7 var(--f-mono); color: var(--mu); }
.fuss p { margin: 0; }
.fuss b { color: var(--tx); font-weight: 500; }

/* ---------- Fassung ohne Bewegung ---------- */
.ruhig .analyse__lauf, .ruhig .ablauf__lauf { height: auto; }
.ruhig .analyse__rahmen, .ruhig .ablauf__rahmen { position: relative; height: auto; min-height: 0; overflow: visible; padding-top: 24px; padding-bottom: 60px; }
.ruhig * { transition-duration: 0s !important; animation: none !important; }
.ruhig .meter::after { width: calc(var(--v) * 100%); }

/* ---------- Bildschirmgrößen ---------- */
@media (max-height: 800px) and (min-width: 901px) {
  .konsole__detail { min-height: 12rem; }
  .konsole__ebenen li { padding: 8px 0; }
  .konsole__detail p { font-size: .94rem; }
  .szene { width: min(100%, calc((100svh - 130px) * 1.339)); }
}

@media (max-width: 1100px) {
  .grund { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --kopf-h: 58px; }
  body { font-size: 16.5px; }
  .menue { display: none; margin-left: 0; }
  .menueknopf { display: block; margin-left: auto; min-height: 42px; padding: 0 14px; background: transparent; border: 1px solid var(--li2); font-weight: 600; cursor: pointer; }
  .kopf .knopf--klein { display: none; }
  .kopf.ist-offen .menue { display: flex; flex-direction: column; position: fixed; inset: var(--kopf-h) 0 0 0; background: var(--bg); padding: 24px var(--rand); gap: 0; font-size: 1.6rem; font-weight: 600; z-index: 49; }
  .kopf.ist-offen .menue a { padding: 16px 0; border-bottom: 1px solid var(--li); }
  .kopf.ist-offen .menue .menue__cta { display: flex; justify-content: center; margin-top: 28px; padding: 18px; background: var(--am); color: #0B0D11; border: 0; font: 600 1.05rem/1 var(--f-text); }

  .start { grid-template-columns: 1fr; min-height: 0; gap: 26px; padding-top: calc(var(--kopf-h) + 24px); padding-bottom: 32px; }
  .start h1 { font-size: clamp(2.5rem, 11.5vw, 3.8rem); }
  .scan__rahmen { width: 100%; }
  .scan__anzeige { top: 12%; gap: 10px; padding: 6px 8px; font-size: .62rem; }
  .scan__skala { right: 3%; top: 24%; }
  .scan figcaption { max-width: none; }

  .zeile__kopf { grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "name plus" "wert wert" "meter meter"; row-gap: 12px; }
  .zeile__kopf::after { grid-area: plus; }
  .zeile__name { grid-area: name; }
  .zeile__wert { grid-area: wert; }
  .zeile__meter { grid-area: meter; }
  .zeile__detail dl { grid-template-columns: 1fr; }

  .analyse__rahmen { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 14px; padding-top: calc(var(--kopf-h) + 8px); }
  .szene { width: min(100%, 78svh); }
  .buehne { perspective: 1800px; }
  .konsole__ebenen { display: flex; justify-content: space-between; gap: 10px; border-top: 0; }
  .konsole__ebenen li { display: block; flex: 1 1 auto; padding: 8px 0 8px; border-bottom: 0; border-top: 2px solid var(--li); }
  .konsole__ebenen li.ist { border-top-color: var(--am); }
  .konsole__ebenen span, .sw { display: none; }
  .konsole__ebenen b { font-size: .78rem; }
  .konsole__detail { margin-top: 10px; min-height: 0; }
  .konsole__detail h3 { font-size: 1.5rem; }
  .konsole__detail p { font-size: .94rem; }
  .konsole__fuss { display: none; }
  .funde { margin-top: 10px; }
  .funde li { padding: 5px 0; font-size: .86rem; }
  .buehne__skala { display: none; }

  .kurve { height: 32svh; }
  .kurve__schritte li { font-size: .6rem; }
  .kurve__schritte li:nth-child(even) { display: none; }
  .ablauf__info { grid-template-columns: 1fr; gap: 12px; }
  .unsicher { flex-direction: row; align-items: baseline; gap: 14px; }
  .unsicher span { margin: 0; }
  .unsicher b { font-size: 3.4rem; }
  .sd h3 { font-size: 1.7rem; margin-bottom: 8px; }
  .sd p { font-size: 1rem; }

  .ergebnis__feld { grid-template-columns: 1fr; }
  .cockpit { position: relative; top: 0; order: 2; }
  .cp--bewertung, .cp--messwerte, .cp--empfehlung, .cp--fotos { grid-column: 1 / -1; border-left: 0; }
  .vertrauen { grid-template-columns: 1fr; }
  .vertrauen__foto { position: relative; top: 0; }
  .explorer { grid-template-columns: 1fr; }
  .fragen { grid-template-columns: 1fr; }
  .fragen h2 { position: relative; top: 0; }
  .kontakt { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grund { grid-template-columns: 1fr; }
  .kontakt__daten div { grid-template-columns: 1fr; gap: 2px; }
  .start__aktion .knopf { flex: 1 1 100%; }
  .formular .knopf { justify-self: stretch; }
  .mini { grid-template-columns: repeat(2, 1fr); }
  .spot { width: 28px; height: 28px; }
}

