/* Maßstab, Variante 1: Vom Schaden zur belastbaren Beweislage.
   Helle Dossier-Optik, Kobaltblau als einzige Farbe, Maßlinien als Leitmotiv. */

@font-face { font-family: "Archivo"; src: url("fonts/archivo-var.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("fonts/hanken-grotesk-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --papier: #F4F4F1;
  --karton: #E8E8E3;
  --tinte: #14161B;
  --grau: #5C6068;
  --haar: rgba(20, 22, 27, .16);
  --haar2: rgba(20, 22, 27, .08);
  --kobalt: #2D45E0;
  --kobalt-tief: #1E31B5;
  --f-kopf: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-text: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex 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 { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--papier); color: var(--tinte);
  font: 400 17px/1.55 var(--f-text); overflow-x: clip;
  -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-kopf); font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.2vw, 3.9rem); line-height: 1.04; font-stretch: 108%; }
dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--kobalt); color: #fff; }
:focus-visible { outline: 3px solid var(--kobalt); outline-offset: 3px; }

.sprung { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--tinte); color: #fff; 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(--kobalt); background: var(--kobalt); color: #fff;
  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(--tinte); border-color: var(--tinte); }
.knopf:active { transform: translateY(1px); }
.knopf--leise { background: transparent; color: var(--tinte); border-color: var(--tinte); }
.knopf--leise:hover { background: var(--tinte); color: #fff; }
.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(--kobalt); padding-bottom: 1px; margin-top: 4px; }
.textlink:hover { color: var(--kobalt); }

/* ---------- Kopf ---------- */
.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(244, 244, 241, .94); border-bottom: 1px solid transparent; transition: border-color .3s;
}
.kopf.ist-gescrollt { border-bottom-color: var(--haar); }
.marke { display: grid; text-decoration: none; }
.marke__wort { font: 700 1.5rem/1 var(--f-kopf); font-stretch: 112%; letter-spacing: -.02em; }
.marke__skala {
  height: 8px; margin-top: 5px;
  background:
    repeating-linear-gradient(90deg, var(--tinte) 0 1px, transparent 1px 25px) left bottom / 100% 8px no-repeat,
    repeating-linear-gradient(90deg, var(--tinte) 0 1px, transparent 1px 5px) left bottom / 100% 4px no-repeat;
}
.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(--kobalt); }
.menue .menue__cta { display: none; }
.menueknopf { display: none; }

/* ---------- 1 · Einstieg ---------- */
.held { height: 205vh; position: relative; }
.held__rahmen {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 560px;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 3.4vw, 64px); align-items: center;
  padding: calc(var(--kopf-h) + 10px) var(--rand) 22px; overflow: clip;
}
.held__titel { font-size: clamp(2.5rem, 4.6vw, 5rem); line-height: 1.02; font-stretch: 108%; margin: 0 0 clamp(18px, 2vw, 30px); }
.zeile { display: block; overflow: hidden; padding-bottom: .07em; }
.zeile > span { display: block; }
.held__sub { max-width: 31ch; font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.5; margin: 0 0 clamp(22px, 2.6vw, 38px); color: #2b2e36; }
.held__aktion { display: flex; flex-wrap: wrap; gap: 12px; }

.held__foto { margin: 0; min-width: 0; }
.held__bild {
  position: relative; margin-left: auto; overflow: hidden; background: #cfcfca;
  width: min(100%, calc((100svh - 178px) * 1.25)); aspect-ratio: 1488 / 1190;
}
.held__img { position: absolute; max-width: none; width: 137.634%; height: 114.286%; left: -37.634%; top: -14.286%; }
.held__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spur, .spur-halo { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.spur { stroke: var(--kobalt); stroke-width: 5.5; }
.spur-halo { stroke: #fff; stroke-width: 12; stroke-opacity: .8; }
.spur-start { fill: #fff; stroke: var(--kobalt); stroke-width: 3; }

.lupe {
  --ld: clamp(150px, 13.5vw, 200px);
  position: absolute; left: 0; top: 0; width: var(--ld); height: var(--ld); margin: calc(var(--ld) / -2) 0 0 calc(var(--ld) / -2);
  pointer-events: none; will-change: transform; transform: translate3d(-999px, -999px, 0); transition: opacity .3s;
}
.lupe__glas {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #cfcfca;
  border: 2px solid var(--kobalt); box-shadow: 0 0 0 7px rgba(255, 255, 255, .6), 0 22px 46px rgba(20, 22, 27, .32);
}
.lupe__glas img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; }
.lupe__kreuz {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px;
  background:
    linear-gradient(var(--kobalt), var(--kobalt)) 50% 0 / 1px 11px no-repeat,
    linear-gradient(var(--kobalt), var(--kobalt)) 50% 100% / 1px 11px no-repeat,
    linear-gradient(var(--kobalt), var(--kobalt)) 0 50% / 11px 1px no-repeat,
    linear-gradient(var(--kobalt), var(--kobalt)) 100% 50% / 11px 1px no-repeat;
}
.lupe__zettel {
  position: absolute; left: calc(100% + 16px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  background: #fff; border: 1px solid var(--kobalt); padding: 8px 10px; font: 500 .78rem/1 var(--f-mono);
}
.lupe--links .lupe__zettel { left: auto; right: calc(100% + 16px); }
.lupe--unten .lupe__zettel { left: 50%; top: calc(100% + 12px); transform: translateX(-50%); }

.held__unter {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 12px;
  font: 400 .76rem/1.45 var(--f-mono); color: var(--grau);
}
.messleiste { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.messleiste b { color: var(--tinte); font-weight: 500; font-variant-numeric: tabular-nums; }

/* Einstiegsbewegung: nur wenn Skript läuft und Bewegung erlaubt ist */
.anim .zeile > span { transform: translateY(112%); }
.anim .held__sub, .anim .held__aktion { clip-path: inset(-10px 100% -10px 0); }
.anim .held__bild { clip-path: inset(0 0 0 100%); }
.anim .held__unter { opacity: 0; }
.anim .lupe { opacity: 0; }
.anim.geladen .zeile > span { transform: none; transition: transform 1.05s var(--ease); transition-delay: calc(var(--i, 0) * 110ms + 150ms); }
.anim.geladen .held__sub, .anim.geladen .held__aktion { clip-path: inset(-10px -10px -10px 0); transition: clip-path 1s cubic-bezier(.65, 0, .35, 1) .8s; }
.anim.geladen .held__aktion { transition-delay: .98s; }
.anim.geladen .held__bild { clip-path: inset(0); transition: clip-path 1.25s var(--ease) .25s; }
.anim.geladen .held__unter { opacity: 1; transition: opacity .6s ease 1.2s; }
.anim.geladen .lupe { opacity: 1; }

/* ---------- 2 · Ausgangslage ---------- */
.lage { padding: clamp(80px, 11vw, 170px) var(--rand) clamp(80px, 10vw, 150px); border-top: 1px solid var(--haar); }
.lage__kopf h2 { max-width: 17em; }
.lage__kopf p { max-width: 44ch; margin: clamp(18px, 2vw, 30px) 0 0; color: var(--grau); font-size: 1.14rem; }
.aussagen { margin: clamp(56px, 8vw, 120px) 0 0; }
.aussage { padding: clamp(16px, 2.2vw, 30px) 0 clamp(24px, 3.2vw, 44px); }
.aussage--ein { padding-left: clamp(0px, 15vw, 250px); }
.aussage__satz { margin: 0; max-width: 16em; font: 600 clamp(1.9rem, 5.4vw, 5.4rem)/1.03 var(--f-kopf); font-stretch: 104%; letter-spacing: -.035em; text-wrap: balance; }
.massband {
  display: flex; align-items: center; width: min(100%, 36rem); margin-top: clamp(12px, 1.4vw, 20px);
  color: var(--haar); font: 400 .86rem/1 var(--f-mono); transition: color .5s;
}
.massband i { flex: 1; height: 15px; position: relative; }
.massband i::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: currentColor; }
.massband i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1px; background: currentColor; }
.massband i:first-child::after { left: 0; }
.massband i:last-child::after { right: 0; }
.massband b { font-weight: 400; padding: 0 14px; white-space: nowrap; color: var(--tinte); }
.lage__schluss { margin: clamp(40px, 6vw, 90px) 0 0; max-width: 20em; font: 600 clamp(1.5rem, 2.8vw, 2.7rem)/1.18 var(--f-kopf); letter-spacing: -.02em; color: var(--kobalt); }

.anim .massband i { transform: scaleX(0); }
.anim .massband i:first-child { transform-origin: left; }
.anim .massband i:last-child { transform-origin: right; }
.anim .massband b { opacity: 0; }
.anim .aussage.ein .massband i { transform: none; transition: transform .9s var(--ease); }
.anim .aussage.ein .massband b { opacity: 1; transition: opacity .5s ease .55s; }
.massband { color: var(--grau); }
.aussage.aktiv .massband { color: var(--kobalt); }
.aussage.aktiv .massband b { color: var(--kobalt); }

/* ---------- 3 · Leistungen ---------- */
.leist { padding: clamp(80px, 10vw, 150px) var(--rand); border-top: 1px solid var(--haar); }
.leist__kopf p { max-width: 46ch; margin: clamp(16px, 2vw, 26px) 0 0; color: var(--grau); font-size: 1.12rem; }
.leist__feld { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(32px, 6vw, 110px); margin-top: clamp(40px, 6vw, 90px); align-items: start; }
.deck { position: sticky; top: calc(var(--kopf-h) + 28px); }
.deck__blatt {
  background: #fff; border: 1px solid var(--haar); padding: clamp(22px, 2.6vw, 40px); min-height: min(560px, calc(100svh - 150px));
  display: flex; flex-direction: column; box-shadow: 0 44px 70px -42px rgba(20, 22, 27, .42);
}
.deck__kopf { display: flex; justify-content: space-between; margin: 0 0 clamp(18px, 2.4vw, 34px); padding-bottom: 12px; border-bottom: 1px solid var(--haar); font: 500 .74rem/1 var(--f-mono); color: var(--grau); }
.deck__titel { font: 700 clamp(1.5rem, 2.3vw, 2.2rem)/1.08 var(--f-kopf); font-stretch: 106%; margin: 0 0 clamp(16px, 2vw, 26px); }
.deck__felder { display: grid; gap: 16px; }
.deck__felder dt { font: 500 .72rem/1 var(--f-mono); color: var(--kobalt); margin-bottom: 5px; }
.deck__felder dd { font-size: .98rem; line-height: 1.42; }
.deck__zeit { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--haar); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 400 .8rem/1.3 var(--f-mono); color: var(--grau); }
.deck__zeit b { color: var(--tinte); font-weight: 500; }
.deck__zeit span { margin: 0; }
@keyframes aufdecken { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
.deck__blatt.wechsel .deck__titel, .deck__blatt.wechsel dd, .deck__blatt.wechsel .deck__zeit b { animation: aufdecken .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--k, 0) * 65ms); }

.leistliste { border-top: 1px solid var(--tinte); }
.leistung { border-bottom: 1px solid var(--haar); position: relative; }
.leistung::before { content: ""; position: absolute; left: -18px; top: 18px; bottom: 18px; width: 3px; background: var(--kobalt); transform: scaleY(0); transition: transform .35s var(--ease); }
.leistung.ist::before { transform: scaleY(1); }
.leistung__kopf {
  display: grid; grid-template-columns: 3.2rem 1fr; grid-template-areas: "nr name" "nr kurz"; column-gap: 8px; width: 100%;
  padding: clamp(16px, 1.8vw, 26px) 0; background: none; border: 0; text-align: left; cursor: pointer;
}
.leistung__nr { grid-area: nr; font: 500 .85rem/2.4 var(--f-mono); color: var(--grau); }
.leistung__name { grid-area: name; font: 600 clamp(1.4rem, 2.5vw, 2.3rem)/1.1 var(--f-kopf); font-stretch: 104%; letter-spacing: -.025em; transition: color .25s; }
.leistung__kurz { grid-area: kurz; color: var(--grau); font-size: .98rem; margin-top: 4px; }
.leistung.ist .leistung__name, .leistung__kopf:hover .leistung__name { color: var(--kobalt); }
.leistung.ist .leistung__nr { color: var(--kobalt); }
.leistung__detail { display: none; }
.leist__fuss { margin: clamp(28px, 3vw, 44px) 0 0; max-width: 62ch; color: var(--grau); font-size: .95rem; }
.leist__fuss a { font-weight: 600; color: var(--tinte); text-decoration: none; border-bottom: 2px solid var(--kobalt); white-space: nowrap; }

/* ---------- 4 · Der Befund entsteht ---------- */
.befund { padding-top: clamp(80px, 10vw, 150px); border-top: 1px solid var(--haar); }
.befund__kopf { padding: 0 var(--rand) clamp(34px, 4vw, 60px); }
.befund__kopf p { max-width: 52ch; margin: clamp(16px, 2vw, 26px) 0 0; color: var(--grau); font-size: 1.12rem; }
.befund__lauf { height: 470vh; position: relative; }
.befund__rahmen {
  position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 600px;
  display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 56px); align-items: center;
  padding: calc(var(--kopf-h) + 14px) var(--rand) 22px; background: var(--papier); overflow: clip;
}
.befund__links { min-width: 0; }
.schritte { display: flex; gap: clamp(14px, 2vw, 30px); margin: 0 0 14px; font: 500 .8rem/1 var(--f-mono); }
.schritte li { padding-bottom: 9px; border-bottom: 2px solid var(--haar); color: var(--grau); transition: color .3s, border-color .3s; }
.schritte li.ist { color: var(--tinte); border-color: var(--kobalt); }
.schritte li.fertig { color: var(--tinte); border-color: var(--tinte); }
.befund__fig { margin: 0; }
.befund__bild { position: relative; aspect-ratio: 3 / 2; width: min(100%, calc((100svh - 214px) * 1.5)); background: #c9c9c4; overflow: hidden; }
.befund__bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.befund__bild svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.befund__fig figcaption { margin-top: 12px; font: 400 .76rem/1.45 var(--f-mono); color: var(--grau); }
#befund-svg text { font-family: var(--f-mono); font-weight: 500; }
.b-linie { stroke: var(--kobalt); fill: none; stroke-width: 2; }
.b-gitter { stroke: var(--kobalt); stroke-opacity: .34; stroke-width: 2.2; }
.b-tag rect { fill: #fff; stroke: var(--kobalt); stroke-width: 2; }
.b-tag text { fill: var(--tinte); font-size: 34px; }
.b-punkt circle { stroke: var(--kobalt); stroke-width: 3.4; }
.b-punkt text { fill: var(--tinte); font-size: 33px; paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 8px; }

.blatt {
  position: relative; min-width: 0; background: #fff; border: 1px solid var(--haar); padding: clamp(18px, 2.2vw, 32px);
  box-shadow: 0 40px 66px -42px rgba(20, 22, 27, .5); display: flex; flex-direction: column; gap: 10px; font-size: .9rem;
  max-height: calc(100svh - 112px); overflow: hidden;
}
.blatt__kopf { display: flex; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--haar); font: 500 .72rem/1 var(--f-mono); }
.blatt__objekt { margin: 0; font-size: .86rem; color: var(--grau); line-height: 1.4; }
.blatt__objekt span { display: block; margin-bottom: 2px; font: 500 .68rem/1 var(--f-mono); color: var(--kobalt); }
.blatt__zeilen { display: grid; gap: 11px; padding-bottom: 66px; }
.blatt__zeilen li { transition: clip-path .8s cubic-bezier(.65, 0, .35, 1); }
.anim .blatt__zeilen li { clip-path: inset(-4px 100% -4px 0); }
.anim .blatt__zeilen li.an { clip-path: inset(-4px -4px -4px 0); }
.blatt__zeilen h3 { font: 600 .76rem/1 var(--f-mono); color: var(--kobalt); letter-spacing: 0; margin: 0 0 4px; }
.blatt__zeilen p { margin: 0 0 4px; line-height: 1.4; }
.blatt__tab { width: 100%; border-collapse: collapse; }
.blatt__tab th, .blatt__tab td { padding: 3px 0; font-size: .84rem; border-bottom: 1px solid var(--haar2); text-align: left; font-weight: 400; }
.blatt__tab td { font-family: var(--f-mono); text-align: right; }
.blatt__fuss { margin: auto 0 0; padding-top: 8px; font: 400 .7rem/1.3 var(--f-mono); color: var(--grau); }
.stempel {
  position: absolute; right: 6%; bottom: 52px; padding: 8px 14px; text-align: center; color: var(--kobalt);
  border: 2px solid var(--kobalt); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px var(--kobalt); background: rgba(255, 255, 255, .88);
  font: 700 .95rem/1.1 var(--f-kopf); text-transform: uppercase; letter-spacing: .06em;
  transform: rotate(-9deg) scale(1.7); opacity: 0; transform-origin: 60% 60%;
}
.stempel small { display: block; margin-top: 3px; font: 500 .68rem/1 var(--f-mono); letter-spacing: .05em; }
.stempel.an { opacity: .94; transform: rotate(-9deg) scale(1); transition: transform .3s cubic-bezier(.2, 1.5, .4, 1), opacity .12s; }
.ruhig .stempel { opacity: .94; transform: rotate(-9deg); }

/* ---------- 5 · Fundstücke werden zum Gutachten ---------- */
.akte { height: 380vh; position: relative; border-top: 1px solid var(--haar); }
.akte__rahmen { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 600px; background: var(--karton); overflow: clip; }
.akte__tisch { position: absolute; inset: 0; }
.akte__text { position: absolute; left: var(--rand); top: 50%; transform: translateY(-50%); width: min(31%, 27rem); z-index: 6; }
.akte__text h2 { font-size: clamp(1.8rem, 3.3vw, 3.3rem); }
.akte__text p { color: #3d4048; margin: clamp(14px, 1.6vw, 22px) 0 0; font-size: 1.02rem; }
.akte__zaehler { font: 500 .85rem/1 var(--f-mono); }
.akte__zaehler b { color: var(--kobalt); font: 700 2.4rem/1 var(--f-kopf); margin-right: 6px; font-variant-numeric: tabular-nums; }

.seite {
  position: absolute; right: calc(var(--rand) + 2.5vw); top: calc(50% + var(--kopf-h) / 2); transform: translateY(-50%);
  height: min(calc(100svh - 150px), 960px); aspect-ratio: 1 / 1.414; container-type: size;
  background: #fff; box-shadow: 0 34px 80px -32px rgba(20, 22, 27, .5);
  padding: calc(var(--su, 5px) * 5.4) calc(var(--su, 5px) * 6.2) calc(var(--su, 5px) * 3.6); display: grid; grid-template-rows: auto 1.22fr .86fr .86fr .8fr auto; gap: calc(var(--su, 5px) * 2.6); z-index: 2;
}
.seite__kopf { display: flex; flex-direction: column; gap: .8cqw; padding-bottom: 2cqw; border-bottom: 1px solid var(--tinte); }
.seite__kopf b { font: 700 3cqw/1.1 var(--f-kopf); letter-spacing: -.01em; }
.seite__kopf span { font: 400 1.9cqw/1.3 var(--f-mono); color: var(--grau); }
.seite__teil { display: flex; flex-direction: column; min-height: 0; transition: opacity .5s; }
.seite__teil h3 { font: 600 1.9cqw/1 var(--f-mono); letter-spacing: 0; color: var(--kobalt); margin: 0 0 1.4cqw; }
.seite__zeilen { margin: 0 0 1.6cqw; }
.seite__zeilen i { display: block; height: .75cqw; background: var(--haar); margin: .9cqw 0; }
.seite__zeilen i:nth-child(2) { width: 86%; }
.seite__zeilen i:nth-child(3) { width: 64%; }
.seite__paar { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1.25fr; gap: 2cqw; }
.seite__fotos { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2cqw; }
.slot { min-height: 0; position: relative; }
.slot--breit { flex: 1; }
.seite__fuss { display: flex; justify-content: space-between; padding-top: 1.4cqw; border-top: 1px solid var(--haar); font: 400 1.7cqw/1 var(--f-mono); color: var(--grau); }
.anim .seite__teil h3, .anim .seite__zeilen { opacity: 0; }
.seite__teil.an h3, .seite__teil.an .seite__zeilen { opacity: 1; transition: opacity .6s; }
.ruhig .seite__teil h3, .ruhig .seite__zeilen { opacity: 1; }

.fund {
  --sch: 1; position: absolute; left: 0; top: 0; margin: 0; background: #fff; overflow: hidden; z-index: 4;
  container-type: inline-size; transform-origin: 50% 50%; will-change: transform;
  box-shadow: 0 calc(var(--sch) * 26px) calc(var(--sch) * 40px) calc(var(--sch) * -10px) rgba(20, 22, 27, calc(var(--sch) * .38)), 0 0 0 1px var(--haar);
}
.fund b { display: block; font: 600 calc(var(--u) * 5.4)/1.2 var(--f-kopf); margin-bottom: calc(var(--u) * 3); letter-spacing: 0; }
.fund--foto { padding: calc(var(--u) * 4.6) calc(var(--u) * 4.6) calc(var(--u) * 3); display: flex; flex-direction: column; }
.fund--foto img { flex: 1; min-height: 0; width: 100%; object-fit: cover; }
.fund--foto figcaption { font: 500 calc(var(--u) * 6.2)/1 var(--f-mono); color: var(--grau); padding-top: calc(var(--u) * 3.4); }
.fund--notiz { padding: calc(var(--u) * 6.5) calc(var(--u) * 7); border-left: calc(var(--u) * .9) solid var(--kobalt); }
.fund--notiz p { font: 400 calc(var(--u) * 4.5)/1.4 var(--f-mono); margin: 0; }
.fund--mail { padding: calc(var(--u) * 6) calc(var(--u) * 6.5); }
.fund--mail dl { display: grid; grid-template-columns: auto 1fr; gap: calc(var(--u) * 1) calc(var(--u) * 3.4); font: 400 calc(var(--u) * 4.1)/1.3 var(--f-mono); margin-bottom: calc(var(--u) * 2.6); padding-bottom: calc(var(--u) * 2.4); border-bottom: 1px solid var(--haar); }
.fund--mail dt { color: var(--grau); }
.fund--mail p { font-size: calc(var(--u) * 4.4); line-height: 1.36; margin: 0; }
.fund--mess, .fund--angebot { padding: calc(var(--u) * 2.8) calc(var(--u) * 4.2); font: 400 calc(var(--u) * 2.05)/1.42 var(--f-mono); }
.fund--mess b, .fund--angebot b { font-size: calc(var(--u) * 2.7); margin-bottom: calc(var(--u) * 1); }
.fund table { width: 100%; border-collapse: collapse; }
.fund th, .fund td { padding: calc(var(--u) * .35) 0; border-bottom: 1px solid var(--haar2); text-align: left; font-weight: 400; }
.fund td:last-child { text-align: right; }
.fund .summe td { font-weight: 500; border-bottom: 0; border-top: 1px solid var(--tinte); }

/* ---------- 6 · Ablauf ---------- */
.ablauf { padding: clamp(80px, 11vw, 170px) var(--rand); border-top: 1px solid var(--haar); }
.ablauf__kopf p { max-width: 46ch; margin: clamp(16px, 2vw, 26px) 0 0; color: var(--grau); font-size: 1.12rem; }
.ablauf__feld { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: clamp(24px, 6vw, 100px); margin-top: clamp(40px, 6vw, 100px); }
.zaehler { position: sticky; top: calc(var(--kopf-h) + 40px); align-self: start; display: flex; gap: clamp(18px, 3vw, 44px); }
.zaehler__zahl { display: flex; flex-direction: column; min-width: 0; }
.zaehler__zahl span { font: 500 .88rem/1 var(--f-mono); color: var(--grau); margin-bottom: 10px; }
.zaehler__zahl b { font: 700 clamp(5.5rem, 13vw, 13rem)/.82 var(--f-kopf); font-stretch: 100%; letter-spacing: -.05em; font-variant-numeric: tabular-nums; min-width: 2ch; }
.lineal { --h: min(62svh, 560px); position: relative; width: 46px; height: var(--h); flex: none; }
.lineal__skala {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(180deg, var(--tinte) 0 2px, transparent 2px calc(var(--h) / 16)) 0 0 / 30px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--tinte) 0 1px, transparent 1px calc(var(--h) / 80)) 0 0 / 14px 100% no-repeat;
}
.lineal__marke { position: absolute; left: 0; top: 0; width: 46px; height: 3px; background: var(--kobalt); transform: translateY(calc(var(--d, 0) * var(--h))); transition: transform .7s var(--ease); }
.lineal__marke::after { content: ""; position: absolute; right: 0; top: -4px; border: 5.5px solid transparent; border-right: 0; border-left: 9px solid var(--kobalt); }
.schrittliste { border-top: 1px solid var(--tinte); }
.schritt { position: relative; min-height: 30vh; padding: clamp(22px, 3.4vw, 48px) 0; border-bottom: 1px solid var(--haar); opacity: .36; transition: opacity .45s; }
.schritt.ist { opacity: 1; }
.schritt h3 { font: 600 clamp(1.8rem, 3.6vw, 3.5rem)/1.04 var(--f-kopf); font-stretch: 104%; letter-spacing: -.03em; margin: 0 0 12px; }
.schritt p { max-width: 42ch; margin: 0 0 8px; font-size: 1.1rem; }
.schritt__tag { display: inline-block; margin-top: 6px; font: 500 .82rem/1 var(--f-mono); color: var(--kobalt); }
.schritt .textlink { display: block; width: fit-content; margin: 4px 0 8px; }

/* ---------- 7 · Ergebnis ---------- */
.ergebnis { padding: clamp(80px, 10vw, 150px) var(--rand); border-top: 1px solid var(--haar); }
.ergebnis__kopf p { max-width: 50ch; margin: clamp(16px, 2vw, 26px) 0 0; color: var(--grau); font-size: 1.12rem; }
.ergebnis__feld { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 90px); margin-top: clamp(40px, 6vw, 90px); align-items: start; }
.reiter { border-top: 1px solid var(--tinte); }
.reiter button { display: grid; width: 100%; text-align: left; padding: clamp(16px, 1.6vw, 24px) 0; background: none; border: 0; border-bottom: 1px solid var(--haar); cursor: pointer; position: relative; }
.reiter button b { font: 600 clamp(1.3rem, 2.3vw, 2.1rem)/1.1 var(--f-kopf); font-stretch: 104%; letter-spacing: -.025em; transition: color .25s; }
.reiter button span { display: block; max-height: 0; overflow: hidden; opacity: 0; color: var(--grau); font-size: .98rem; line-height: 1.45; max-width: 44ch; transition: max-height .4s var(--ease), opacity .3s, margin .3s; }
.reiter button[aria-selected="true"] b, .reiter button:hover b { color: var(--kobalt); }
.reiter button[aria-selected="true"] span { max-height: 6em; opacity: 1; margin-top: 8px; }
.reiter button::before { content: ""; position: absolute; left: -18px; top: 16px; bottom: 16px; width: 3px; background: var(--kobalt); transform: scaleY(0); transition: transform .35s var(--ease); }
.reiter button[aria-selected="true"]::before { transform: scaleY(1); }

.buch {
  position: sticky; top: calc(var(--kopf-h) + 24px); aspect-ratio: 1 / 1.22; max-height: calc(100svh - 110px); justify-self: end; width: min(100%, calc((100svh - 110px) / 1.22));
  background: #fff; border: 1px solid var(--haar); box-shadow: 0 44px 80px -40px rgba(20, 22, 27, .5); container-type: size; overflow: hidden;
}
.blattseite { position: absolute; inset: 0; padding: 5.6cqw 6.4cqw 4cqw; display: flex; flex-direction: column; gap: 2.2cqw; font-size: 2.3cqw; line-height: 1.45; background: #fff; }
.blattseite[hidden] { display: none; }
.blattseite.kommt { z-index: 3; animation: seitekommt .62s cubic-bezier(.2, .7, .2, 1) both; }
.blattseite.geht { z-index: 1; }
@keyframes seitekommt { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
.blattseite__kopf { display: flex; justify-content: space-between; padding-bottom: 1.6cqw; border-bottom: 1px solid var(--tinte); font: 400 1.7cqw/1.2 var(--f-mono); color: var(--grau); }
.blattseite__kopf b { color: var(--tinte); font-weight: 500; }
.blattseite__fuss { margin-top: auto; padding-top: 1.4cqw; border-top: 1px solid var(--haar); font: 400 1.6cqw/1 var(--f-mono); color: var(--grau); }
.blattseite__notiz { margin: 0; font: 400 1.9cqw/1.5 var(--f-mono); color: var(--grau); }
.blattseite h3 { font: 600 1.9cqw/1 var(--f-mono); letter-spacing: 0; color: var(--kobalt); margin: 1cqw 0 0; }
.blattseite p { margin: 0; }
.fotoraster { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2.4cqw; }
.fotoraster figure { margin: 0; display: flex; flex-direction: column; min-height: 0; }
.fotoraster img { flex: 1; min-height: 0; width: 100%; object-fit: cover; background: #ccc; }
.fotoraster .schnitt-fleck { object-position: 18% 82%; transform: scale(1); }
.fotoraster figcaption { padding-top: 1cqw; font: 400 1.6cqw/1.3 var(--f-mono); color: var(--grau); }
.messtab { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 1.85cqw; }
.messtab th { text-align: left; font: 500 1.6cqw/1.2 var(--f-mono); color: var(--grau); padding: 1cqw 1cqw 1.2cqw 0; border-bottom: 1px solid var(--tinte); }
.messtab td { padding: 1.5cqw 1cqw 1.5cqw 0; border-bottom: 1px solid var(--haar); vertical-align: top; }
.messtab td:nth-child(3) { font-family: var(--f-mono); white-space: nowrap; }
.balken { display: block; height: .9cqw; margin-top: .8cqw; background: linear-gradient(var(--kobalt), var(--kobalt)) 0 0 / var(--w) 100% no-repeat, var(--haar2); }
.skala { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 1.6cqw; }
.skala li { padding: 1.7cqw 1.4cqw; border: 1px solid var(--haar); margin-left: -1px; font: 500 1.7cqw/1.2 var(--f-mono); color: var(--grau); }
.skala li.ist { background: var(--kobalt); border-color: var(--kobalt); color: #fff; }
.kurz { font: 600 4cqw/1.22 var(--f-kopf); letter-spacing: -.02em; margin: 1.6cqw 0 2cqw; }
.kurzwerte { display: grid; gap: 0; }
.kurzwerte div { display: grid; grid-template-columns: 17cqw 1fr; gap: 2cqw; padding: 1.8cqw 0; border-top: 1px solid var(--haar); }
.kurzwerte dt { font: 500 1.7cqw/1.5 var(--f-mono); color: var(--kobalt); }
.kurzwerte dd { font-size: 2.2cqw; }
.hinweis { margin-top: 1.4cqw; padding: 1.6cqw 2.2cqw; border-left: .7cqw solid var(--kobalt); background: var(--papier); font-size: 2.1cqw; line-height: 1.45; }
.hinweis b { display: block; margin-bottom: .4cqw; font-weight: 600; }
.abzug { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8cqw 1.4cqw; margin-top: 1cqw; }
.abzug figure { margin: 0; }
.abzug img { width: 100%; aspect-ratio: 1.3; object-fit: cover; background: #ccc; }
.abzug figcaption { padding-top: .7cqw; font: 400 1.5cqw/1 var(--f-mono); color: var(--grau); }
.profil { display: grid; gap: 1.1cqw; margin-top: 1.2cqw; }
.profil li { display: grid; grid-template-columns: 8cqw 1fr 6cqw; align-items: center; gap: 2cqw; font: 400 1.9cqw/1.2 var(--f-mono); }
.profil i { display: block; height: 2.2cqw; width: var(--w); background: var(--kobalt); }
.profil li:nth-child(n+4) i { background: var(--tinte); opacity: .45; }
.profil b { font-weight: 500; text-align: right; }
.schnell { counter-reset: s; display: grid; gap: 0; margin-top: 1cqw; }
.schnell li { counter-increment: s; display: grid; grid-template-columns: 5cqw 1fr; padding: 1.6cqw 0; border-top: 1px solid var(--haar); font-size: 2.2cqw; }
.schnell li::before { content: counter(s); font: 500 2cqw/1.5 var(--f-mono); color: var(--kobalt); }
.massnahmen { counter-reset: m; display: grid; gap: 0; }
.massnahmen li { counter-increment: m; display: grid; grid-template-columns: 7cqw 1fr; padding: 2cqw 0; border-top: 1px solid var(--haar); }
.massnahmen li::before { content: counter(m); grid-row: span 2; font: 700 5cqw/1 var(--f-kopf); color: var(--kobalt); }
.massnahmen b { font-weight: 600; font-size: 2.4cqw; }
.massnahmen span { color: var(--grau); font-size: 2cqw; }
.anlagen { display: grid; gap: 0; }
.anlagen li { display: grid; grid-template-columns: 8cqw 1fr; padding: 2cqw 0; border-top: 1px solid var(--haar); font-size: 2.3cqw; }
.anlagen b { font: 500 2cqw/1.5 var(--f-mono); color: var(--kobalt); }

/* ---------- 8 · Vertrauen ---------- */
.vertrauen { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 6vw, 110px); padding: clamp(80px, 10vw, 150px) var(--rand); border-top: 1px solid var(--haar); align-items: start; }
.vertrauen__foto { margin: 0; position: sticky; top: calc(var(--kopf-h) + 30px); }
.vertrauen__foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 20%; background: #cfcfca; }
.vertrauen__text h2 { max-width: 12em; }
.vertrauen__lead { margin: clamp(18px, 2vw, 28px) 0 clamp(36px, 4vw, 60px); max-width: 38ch; font-size: 1.25rem; line-height: 1.45; color: #2b2e36; }
.grundsaetze { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 3vw, 48px) clamp(24px, 3vw, 48px); }
.grundsaetze div { border-top: 1px solid var(--tinte); padding-top: 14px; }
.grundsaetze dt { font: 600 1.45rem/1.1 var(--f-kopf); letter-spacing: -.02em; margin-bottom: 8px; }
.grundsaetze dd { color: #3d4048; font-size: .98rem; line-height: 1.5; }
.vertrauen__titel { margin: clamp(40px, 5vw, 70px) 0 0; max-width: 56ch; padding-top: 18px; border-top: 1px solid var(--haar); color: var(--grau); font-size: .96rem; }
.vertrauen__titel b { color: var(--tinte); }
.anim .vertrauen__foto img { clip-path: inset(0 0 100% 0); }
.anim .vertrauen__foto.ein img { clip-path: inset(0); transition: clip-path 1.2s var(--ease); }

/* ---------- 9 · Fälle ---------- */
.faelle { padding: clamp(80px, 10vw, 150px) var(--rand); border-top: 1px solid var(--haar); }
.faelle__kopf p { margin: clamp(14px, 1.6vw, 22px) 0 0; color: var(--grau); font-size: 1.12rem; }
.faelle__feld { margin-top: clamp(36px, 5vw, 70px); }
.aktenreiter { display: flex; flex-wrap: wrap; align-items: flex-end; }
.aktenreiter button { margin: 0 -1px -1px 0; padding: 14px 20px 13px; background: var(--karton); border: 1px solid var(--haar); border-bottom-color: var(--tinte); cursor: pointer; font: 600 .96rem/1.2 var(--f-text); transition: background .2s; position: relative; }
.aktenreiter button:hover { background: #fff; }
.aktenreiter button[aria-selected="true"] { background: #fff; border-color: var(--tinte); border-bottom-color: #fff; z-index: 2; padding-top: 18px; }
.aktenreiter button[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--kobalt); }
.fallblatt { position: relative; background: #fff; border: 1px solid var(--tinte); }
.fall { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: clamp(420px, 44vw, 560px); }
.fall[hidden] { display: none; }
.fall.kommt { animation: seitekommt .65s cubic-bezier(.2, .7, .2, 1) both; }
.fall__text { padding: clamp(22px, 3.2vw, 52px); display: flex; flex-direction: column; }
.fall__text h3 { font: 700 clamp(1.6rem, 2.8vw, 2.7rem)/1.06 var(--f-kopf); font-stretch: 106%; margin-bottom: clamp(18px, 2.4vw, 32px); }
.fall__text dl { display: grid; gap: 14px; }
.fall__text dt { font: 500 .74rem/1 var(--f-mono); color: var(--kobalt); margin-bottom: 4px; }
.fall__text dd { font-size: 1rem; line-height: 1.5; max-width: 52ch; }
.fall__zahlen { margin: auto 0 0; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 6px 28px; font: 400 .82rem/1.4 var(--f-mono); color: var(--grau); }
.fall__zahlen b { color: var(--tinte); font-weight: 500; }
.fall__bild { position: relative; min-height: 320px; overflow: hidden; background: #cfcfca; }
.fall__bild > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fall__bild--riss > img { object-position: 78% 70%; transform: scale(1.5); transform-origin: 70% 75%; }
.fall__bild--haus > img { object-position: 50% 62%; }
.fall__bild--kauf > img { object-position: 50% 30%; filter: brightness(.9); }
.fall__bild--dach > img { object-position: 50% 6%; transform: scale(1.35); transform-origin: 50% 0; }
.risslineal { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: flex-end; gap: 12px; padding: 12px 14px 8px; background: #fff; border: 1px solid var(--tinte); }
.risslineal span { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.risslineal span::before { content: ""; width: var(--b); height: 46px; background: var(--tinte); }
.risslineal i { font: 400 .68rem/1 var(--f-mono); font-style: normal; color: var(--grau); }
.marker { position: absolute; inset: 0; }
.marker li { position: absolute; transform: translate(-6px, -50%); display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; background: #fff; border: 1px solid var(--tinte); font: 500 .78rem/1 var(--f-mono); }
.marker b { display: grid; place-items: center; width: 22px; height: 22px; background: var(--kobalt); color: #fff; font-weight: 500; }
.preisreihe { position: absolute; left: 18px; right: 18px; bottom: 18px; display: grid; gap: 8px; padding: 14px 16px; background: #fff; border: 1px solid var(--tinte); }
.preisreihe dt { font: 400 .74rem/1.2 var(--f-mono); color: var(--grau); margin-bottom: 4px; }
.preisreihe dd { display: flex; align-items: center; gap: 12px; }
.preisreihe i { height: 12px; width: var(--w); min-width: 2px; background: var(--kobalt); flex: none; max-width: calc(100% - 100px); }
.preisreihe div:nth-child(n+2) i { background: var(--tinte); }
.preisreihe b { font: 500 .85rem/1 var(--f-mono); white-space: nowrap; }
.fall__bild--abnahme { background: var(--karton); display: grid; place-items: center; padding: 28px; }
.maengel { width: min(100%, 360px); }
.maengel__zahl { margin: 0 0 14px; display: flex; align-items: baseline; gap: 12px; }
.maengel__zahl b { font: 700 clamp(5rem, 9vw, 8rem)/.9 var(--f-kopf); letter-spacing: -.05em; }
.maengel__zahl span { font: 500 .9rem/1 var(--f-mono); color: var(--grau); }
.maengel__reihe { display: grid; grid-template-columns: repeat(auto-fill, minmax(20px, 1fr)); gap: 6px; margin: 0 0 14px; }
.maengel__reihe i { height: 34px; background: var(--tinte); opacity: .24; }
.maengel__reihe i.w { background: var(--kobalt); opacity: 1; }
.maengel__legende { display: flex; gap: 22px; margin: 0; font: 400 .78rem/1 var(--f-mono); color: var(--grau); }
.maengel__legende i { display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--tinte); opacity: .24; }
.maengel__legende i.w { background: var(--kobalt); opacity: 1; }

/* ---------- 10 · 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(--haar); }
.fragen h2 { align-self: start; position: sticky; top: calc(var(--kopf-h) + 30px); }
.fragenliste { border-bottom: 1px solid var(--haar); }
.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(--haar); text-align: left; cursor: pointer; font: 600 clamp(1.15rem, 1.7vw, 1.55rem)/1.25 var(--f-kopf); letter-spacing: -.015em; }
.frage button::after {
  content: ""; flex: none; width: 16px; height: 16px; transition: background-size .3s var(--ease), transform .3s;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat;
}
.frage button:hover { color: var(--kobalt); }
.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: #3d4048; font-size: 1.05rem; }
.frage.offen .frage__antwort { grid-template-rows: 1fr; }

/* ---------- 11 · Kontakt ---------- */
.kontakt { 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(--tinte); }
.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: #2b2e36; font-size: 1.15rem; }
.kontakt__daten { display: grid; gap: 0; border-top: 1px solid var(--haar); }
.kontakt__daten div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--haar); }
.kontakt__daten dt { font: 500 .8rem/1.7 var(--f-mono); color: var(--grau); }
.kontakt__daten a { text-decoration: none; border-bottom: 2px solid var(--kobalt); 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; font: 500 .8rem/1.2 var(--f-mono); margin-bottom: 8px; padding: 0; }
.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(--tinte); background: #fff; font: 500 .92rem/1.1 var(--f-text); cursor: pointer; transition: background .15s, color .15s; }
.chips input:checked + span { background: var(--kobalt); border-color: var(--kobalt); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--kobalt); outline-offset: 3px; }
.feld input, .feld textarea { width: 100%; padding: 14px; border: 1px solid var(--tinte); border-radius: 0; background: #fff; font: 400 1rem/1.4 var(--f-text); color: var(--tinte); }
.feld textarea { resize: vertical; min-height: 120px; }
.feld input:focus, .feld textarea:focus { outline: 3px solid var(--kobalt); outline-offset: 0; border-color: var(--kobalt); }
.feld.fehler input { border-color: var(--kobalt); border-width: 2px; }
.feld__fehler { margin: 8px 0 0; padding-left: 10px; border-left: 3px solid var(--kobalt); font-weight: 600; font-size: .92rem; }
.feld__hilfe { margin: 8px 0 0; font-size: .88rem; color: var(--grau); }
.formular .knopf { justify-self: start; min-width: 240px; }
.formular__danke { position: absolute; inset: 0; background: var(--papier); 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(--kobalt); }
.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(--grau); margin-top: 10px !important; }

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

/* ---------- Fassung ohne Bewegung ---------- */
.ruhig .held, .ruhig .befund__lauf, .ruhig .akte { height: auto; }
.ruhig .held__rahmen, .ruhig .befund__rahmen, .ruhig .akte__rahmen { position: relative; height: auto; min-height: 0; overflow: visible; }
.ruhig .akte__rahmen { min-height: 100svh; overflow: clip; }
.ruhig * { transition-duration: 0s !important; animation: none !important; }
.ruhig .schritt { opacity: 1; }
.ruhig .blatt__zeilen li { display: block !important; }

/* ---------- Anpassung an Bildschirmgrößen ---------- */
@media (max-height: 800px) and (min-width: 901px) {
  .blatt { font-size: .8rem; padding: 18px 22px; gap: 7px; }
  .blatt__zeilen { gap: 8px; }
  .blatt__tab th, .blatt__tab td { padding: 1px 0; font-size: .78rem; }
  .befund__bild { width: min(100%, calc((100svh - 196px) * 1.5)); }
}

@media (max-width: 1100px) {
  .grundsaetze { 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(--tinte); 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(--papier); padding: 24px var(--rand); gap: 0; font-size: 1.6rem; font-family: var(--f-kopf); font-weight: 600; z-index: 49; }
  .kopf.ist-offen .menue a { padding: 16px 0; border-bottom: 1px solid var(--haar); }
  .kopf.ist-offen .menue .menue__cta { display: flex; justify-content: center; margin-top: 28px; padding: 18px; background: var(--kobalt); color: #fff; border: 0; font: 600 1.05rem/1 var(--f-text); }

  .held { height: auto; }
  .held__rahmen { position: relative; height: auto; min-height: 0; grid-template-columns: 1fr; gap: 26px; padding-top: calc(var(--kopf-h) + 24px); padding-bottom: 36px; overflow: visible; }
  .held__titel { font-size: clamp(2.4rem, 11vw, 3.6rem); }
  .held__bild { width: 100%; margin: 0; }
  .lupe { --ld: 128px; }
  .lupe__zettel { font-size: .72rem; padding: 6px 8px; left: calc(100% + 10px); }
  .lupe--links .lupe__zettel { right: calc(100% + 10px); }

  .aussage--ein { padding-left: 0; }
  .leist__feld { grid-template-columns: 1fr; }
  .deck { display: none; }
  .leistung::before { left: -12px; }
  .leistung__detail { display: block; max-height: 0; overflow: hidden; transition: max-height .45s var(--ease); }
  .leistung.ist .leistung__detail { max-height: 26em; }
  .leistung__detail dl { display: grid; gap: 10px; padding: 0 0 20px 3.2rem; }
  .leistung__detail dt { font: 500 .7rem/1 var(--f-mono); color: var(--kobalt); margin-bottom: 3px; }
  .leistung__detail dd { font-size: .95rem; line-height: 1.4; }

  .befund__rahmen { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: center; gap: 12px; padding-top: calc(var(--kopf-h) + 10px); }
  .befund__bild { width: 100%; }
  .schritte { gap: 12px; font-size: .7rem; margin-bottom: 10px; overflow: hidden; }
  .blatt { max-height: none; padding: 16px 18px; gap: 8px; }
  .blatt__zeilen { padding-bottom: 50px; }
  .blatt__zeilen li { display: none; }
  .blatt__zeilen li.ist { display: block; }
  .blatt__objekt, .blatt__fuss { display: none; }
  .blatt__tab th, .blatt__tab td { font-size: .8rem; }
  .stempel { bottom: 16px; right: 12px; font-size: .78rem; padding: 6px 10px; }

  .akte__tisch { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-top: var(--kopf-h); }
  .akte__text { position: relative; left: auto; top: auto; transform: none; width: auto; margin: 0 var(--rand); }
  .akte__text h2 { font-size: 1.55rem; }
  .akte__text p { display: none; }
  .akte__zaehler { margin: 8px 0 0; }
  .seite { position: relative; right: auto; top: auto; transform: none; margin: 0 auto; height: min(calc(100svh - 200px), 123vw); grid-template-rows: auto 1.15fr .85fr 1fr .85fr auto; }

  .ablauf__feld { grid-template-columns: 1fr; gap: 0; }
  .zaehler { top: var(--kopf-h); z-index: 5; background: var(--papier); padding: 12px 0; border-bottom: 1px solid var(--haar); align-items: center; }
  .zaehler__zahl { flex-direction: row; align-items: baseline; gap: 12px; }
  .zaehler__zahl span { margin: 0; }
  .zaehler__zahl b { font-size: 3.6rem; min-width: 0; }
  .lineal { --h: 40px; width: auto; flex: 1; height: 40px; }
  .lineal__skala { background:
      repeating-linear-gradient(90deg, var(--tinte) 0 2px, transparent 2px calc(100% / 16)) 0 100% / 100% 20px no-repeat,
      repeating-linear-gradient(90deg, var(--tinte) 0 1px, transparent 1px calc(100% / 80)) 0 100% / 100% 10px no-repeat; }
  .lineal__marke { width: 3px; height: 100%; transform: translateX(calc(var(--d, 0) * (100vw - 2 * var(--rand) - 7.5rem))); left: 0; }
  .lineal__marke::after { display: none; }
  .schritt { min-height: 0; }

  .ergebnis__feld { grid-template-columns: 1fr; }
  .buch { position: relative; top: 0; width: 100%; max-height: none; justify-self: stretch; order: 2; }
  .blattseite { font-size: 2.6cqw; }
  .reiter button::before { left: -12px; }
  .vertrauen { grid-template-columns: 1fr; }
  .vertrauen__foto { position: relative; top: 0; }
  .vertrauen__foto img { aspect-ratio: 5 / 4; object-position: 40% 25%; }
  .grundsaetze { grid-template-columns: 1fr 1fr; }
  .fall { grid-template-columns: 1fr; }
  .fall__bild { min-height: 280px; order: -1; }
  .aktenreiter button { flex: 1 1 auto; padding: 12px 12px; font-size: .88rem; }
  .fragen { grid-template-columns: 1fr; }
  .fragen h2 { position: relative; top: 0; }
  .kontakt { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .grundsaetze { grid-template-columns: 1fr; }
  .kontakt__daten div { grid-template-columns: 1fr; gap: 2px; }
  .held__aktion .knopf { flex: 1 1 100%; }
  .formular .knopf { justify-self: stretch; }
  .blattseite { padding: 6cqw 6cqw 4cqw; font-size: 3cqw; }
  .blattseite__kopf, .blattseite__fuss { font-size: 2.3cqw; }
  .fotoraster figcaption { font-size: 2.1cqw; }
  .messtab { font-size: 2.6cqw; }
  .messtab th { font-size: 2.1cqw; }
  .kurzwerte dd { font-size: 3cqw; }
  .kurzwerte dt { font-size: 2.2cqw; }
  .massnahmen b { font-size: 3.2cqw; }
  .massnahmen span { font-size: 2.6cqw; }
  .anlagen li { font-size: 3cqw; }
  .skala li { font-size: 2.2cqw; }
  .blattseite__notiz { font-size: 2.4cqw; }
}

