/* Huber Baumanagement – Entwurf Seetalwebsites */

:root {
  --beton: #e9e7e3;
  --papier: #f4f3f0;
  --weiss: #fbfaf8;
  --linie: rgba(29, 31, 33, .12);
  --linie-2: rgba(29, 31, 33, .26);
  --anthrazit: #1d1f21;
  --anthrazit-2: #2a2d30;
  --text-2: #50555a;
  --text-3: #6f7479;
  --planblau: #1f3a5f;
  --planblau-tief: #162b47;
  --plan-weiss: #e6eef8;
  --plan-leise: rgba(230, 238, 248, .62);
  --plan-linie: rgba(230, 238, 248, .2);
  --signal: #e4572e;
  --signal-tief: #b5401c;

  --grotesk: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-plan: cubic-bezier(.65, 0, .35, 1);
  --rand: clamp(1rem, 4vw, 3rem);
  --breite: 1320px;
  --abstand: clamp(5rem, 3.5rem + 6vw, 9.5rem);
  --kopf-h: 76px;
  --grund: var(--beton);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kopf-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--beton);
  color: var(--anthrazit);
  font-family: var(--grotesk);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* feines Korn wie auf Planpapier */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: .07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='k'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23k)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 700; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--signal); color: #fff; }
:focus-visible { outline: 2px solid var(--signal-tief); outline-offset: 3px; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 100;
  background: var(--anthrazit); color: var(--beton); padding: .7rem 1rem; text-decoration: none;
}
.skip:focus { top: 1rem; }

.rahmen { width: min(100% - 2 * var(--rand), var(--breite)); margin-inline: auto; }
main, .fuss { position: relative; z-index: 1; }

/* ---------- Raster im Hintergrund ---------- */
.raster {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: linear-gradient(to bottom, rgba(29, 31, 33, .045) 1px, transparent 1px);
  background-size: 100% 96px;
  background-position: 0 var(--raster-y, 0px);
}
.raster::before {
  content: "";
  position: absolute;
  inset: 0;
  width: min(100% - 2 * var(--rand), var(--breite));
  margin-inline: auto;
  border-right: 1px solid rgba(29, 31, 33, .05);
  background-image: linear-gradient(to right, rgba(29, 31, 33, .05) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
}

/* ---------- Messband (Fortschritt) ---------- */
.messband {
  position: fixed;
  inset: 0 0 auto;
  height: 4px;
  z-index: 70;
  pointer-events: none;
}
.messband::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(29, 31, 33, .38) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg, rgba(29, 31, 33, .2) 0 1px, transparent 1px 12px);
  background-size: 100% 4px, 100% 2px;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
}
.messband-fuellung {
  position: absolute;
  inset: 0;
  background: var(--signal);
  transform-origin: left;
  transform: scaleX(var(--p, 0));
}

/* ---------- Kopf ---------- */
.kopf {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--kopf-h);
  background: rgba(233, 231, 227, .86);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: transform .5s var(--ease), border-color .3s;
}
.kopf.gescrollt { border-bottom-color: var(--linie); }
.kopf.versteckt { transform: translateY(-100%); }
.kopf-innen { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.marke { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; }
.marke-zeichen { width: 36px; height: 36px; flex: none; fill: none; stroke-width: 3.2; stroke-linecap: square; }
.marke-haus { stroke: var(--anthrazit); }
.marke-steg { stroke: var(--signal); }
.marke-text { display: grid; line-height: 1; }
.marke-name { font-weight: 800; font-stretch: 112%; font-size: 1.28rem; letter-spacing: .06em; text-transform: uppercase; }
.marke-zusatz { font-family: var(--mono); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--text-2); margin-top: .3rem; }

.nav { display: flex; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav a {
  position: relative;
  text-decoration: none;
  font-size: .98rem;
  font-weight: 500;
  padding-block: .4rem;
}
.nav-nr { font-family: var(--mono); font-size: .62rem; color: var(--text-3); margin-right: .35rem; vertical-align: .45em; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--anthrazit);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease);
}
.nav a:hover::after, .nav a.aktiv::after { transform: scaleX(1); transform-origin: left; }
.nav a.aktiv .nav-nr { color: var(--signal-tief); }

.kopf-aktion { display: flex; align-items: center; gap: .75rem; }
.menue {
  display: none;
  align-items: center;
  gap: .6rem;
  background: none;
  border: 1px solid var(--linie-2);
  border-radius: 2px;
  padding: .55rem .8rem;
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.menue-striche { position: relative; width: 16px; height: 10px; }
.menue-striche::before, .menue-striche::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.menue-striche::before { top: 1px; }
.menue-striche::after { top: 7px; }
.nav-offen .menue-striche::before { top: 4px; transform: rotate(45deg); }
.nav-offen .menue-striche::after { top: 4px; transform: rotate(-45deg); }

/* ---------- Knöpfe ---------- */
.knopf {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: 1rem 1.45rem;
  border: 1px solid var(--anthrazit);
  border-radius: 2px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: color .35s var(--ease), background-color .35s var(--ease), transform .35s var(--ease);
}
.knopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .45s var(--ease); }
.knopf:hover svg { transform: translateX(4px); }
.knopf[href="#ablauf"]:hover svg { transform: translateY(3px); }
.knopf::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--signal-tief);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.knopf:hover::before { transform: scaleX(1); transform-origin: left; }
.knopf-voll { background: var(--anthrazit); color: var(--beton); }
.knopf-voll:hover { border-color: var(--signal-tief); }
.knopf-linie { background: transparent; color: var(--anthrazit); }
.knopf-linie::before { background: var(--anthrazit); }
.knopf-linie:hover { color: var(--beton); }
.knopf-klein { padding: .72rem 1.05rem; font-size: .92rem; }
.knopf-klein svg { width: 16px; height: 16px; }

/* ---------- Beschriftungen ---------- */
.blatt-label {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-2);
}
.blatt-nr { color: var(--signal-tief); font-weight: 500; white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: .9rem; }
.blatt-nr::after { content: ""; width: 2.4rem; height: 1px; background: currentColor; opacity: .6; }

.titel {
  font-size: clamp(2.5rem, 1.3rem + 4.2vw, 5.2rem);
  font-weight: 800;
  font-stretch: 76%;
  line-height: .96;
  letter-spacing: -.02em;
  margin-top: 1.4rem;
  text-wrap: balance;
}
.leicht { font-weight: 300; color: var(--text-2); }
.blatt-intro { max-width: 36rem; margin-top: 1.6rem; color: var(--text-2); }

.blatt { position: relative; padding-block: var(--abstand); border-top: 1px solid var(--linie); }
/* Passkreuze an den Blatt-Ecken */
.blatt::before, .blatt::after {
  content: "";
  position: absolute;
  top: -8px;
  width: 15px;
  height: 15px;
  background:
    linear-gradient(var(--anthrazit), var(--anthrazit)) center / 1px 100% no-repeat,
    linear-gradient(var(--anthrazit), var(--anthrazit)) center / 100% 1px no-repeat;
  left: calc((100% - min(100% - 2 * var(--rand), var(--breite))) / 2 - 7px);
}
.blatt::after { left: auto; right: calc((100% - min(100% - 2 * var(--rand), var(--breite))) / 2 - 7px); }

.blatt-kopf-zwei { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem 4rem; align-items: end; }
.blatt-kopf-zwei .blatt-intro { margin-top: 0; }

.masslinie { position: relative; height: 24px; margin-top: 3rem; display: flex; justify-content: center; align-items: center; }
.masslinie::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: var(--anthrazit);
  transform: scaleX(var(--m, 1));
  transition: transform 1.4s var(--ease-plan) .2s;
}
.masslinie::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--anthrazit), var(--anthrazit)) left center / 1px 100% no-repeat,
    linear-gradient(var(--anthrazit), var(--anthrazit)) right center / 1px 100% no-repeat;
}
.masslinie span {
  position: relative;
  z-index: 1;
  background: var(--grund);
  padding-inline: .8rem;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.js .masslinie:not(.sichtbar) { --m: 0; }

/* ---------- Einblenden ---------- */
.js .zeige { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.js .zeige.sichtbar { opacity: 1; transform: none; }

/* ---------- Blatt 01 · Einstieg ---------- */
.einstieg { padding-top: calc(var(--kopf-h) + clamp(2rem, 5vw, 4.5rem)); position: relative; }
.einstieg-raster { display: grid; grid-template-columns: minmax(0, 5.1fr) minmax(0, 6.9fr); gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.einstieg-titel {
  margin-top: 1.8rem;
  font-size: clamp(3.1rem, 1.4rem + 5.4vw, 6.6rem);
  font-weight: 800;
  font-stretch: 74%;
  line-height: .92;
  letter-spacing: -.025em;
}
.zeile { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.zeile > span { display: block; }
.zeile-leicht { font-size: .44em; font-weight: 400; font-stretch: 88%; letter-spacing: -.01em; line-height: 1.12; color: var(--text-2); }
.zeile-leicht:nth-child(3) { margin-top: .9em; }
.einstieg-unter { margin-top: 1.8rem; max-width: 30rem; color: var(--text-2); }
.einstieg-knoepfe { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.einstieg-fakt {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-top: 2.4rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.punkt { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 rgba(228, 87, 46, .5); animation: puls 2.4s var(--ease) infinite; }
@keyframes puls { 0% { box-shadow: 0 0 0 0 rgba(228, 87, 46, .5); } 70%, 100% { box-shadow: 0 0 0 10px rgba(228, 87, 46, 0); } }

.einstieg-bild {
  position: relative;
  margin-right: calc((min(100vw - 2 * var(--rand), var(--breite)) - 100vw) / 2);
}
.einstieg-bild-innen {
  position: relative;
  height: clamp(460px, 78vh, 800px);
  overflow: hidden;
  background: var(--planblau);
}
.einstieg-bild-innen img { width: 100%; height: 100%; object-fit: cover; }
.plan { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; filter: drop-shadow(0 0 1.5px rgba(22, 43, 71, .75)); }
.plan * { vector-effect: non-scaling-stroke; }
.plan-linien path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.plan-achsen line { stroke: #fff; stroke-width: 1; stroke-dasharray: 14 8 2 8; opacity: .55; }
.plan-knoten circle { fill: var(--signal); stroke: #fff; stroke-width: 1.5; }
.plan-kote path { fill: #fff; }
.plan-kote line, .plan-mass line { stroke: #fff; stroke-width: 1.2; }
.plan text { fill: #fff; font-family: var(--mono); font-size: 26px; letter-spacing: .12em; }

.fadenkreuz { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; }
.fadenkreuz.an { opacity: 1; }
.fk-h, .fk-v { position: absolute; background: rgba(255, 255, 255, .75); }
.fk-h { left: 0; right: 0; top: 0; height: 1px; transform: translateY(var(--y, 0)); }
.fk-v { top: 0; bottom: 0; left: 0; width: 1px; transform: translateX(var(--x, 0)); }
.fk-wert {
  position: absolute;
  left: 0; top: 0;
  transform: translate(calc(var(--x, 0px) + 14px), calc(var(--y, 0px) + 14px));
  background: var(--anthrazit);
  color: #fff;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  padding: .25rem .5rem;
  white-space: nowrap;
}
.fadenkreuz.links .fk-wert { transform: translate(calc(var(--x, 0px) - 100% - 14px), calc(var(--y, 0px) + 14px)); }
.fadenkreuz.oben .fk-wert { transform: translate(calc(var(--x, 0px) + 14px), calc(var(--y, 0px) - 100% - 14px)); }
.fadenkreuz.links.oben .fk-wert { transform: translate(calc(var(--x, 0px) - 100% - 14px), calc(var(--y, 0px) - 100% - 14px)); }

.schriftfeld { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--anthrazit); background: var(--weiss); }
.schriftfeld > div { grid-column: span 2; padding: .5rem .8rem .55rem; border-bottom: 1px solid var(--anthrazit); }
.schriftfeld > div:last-child, .schriftfeld > .sf-halb:nth-last-child(2) { border-bottom: 0; }
.schriftfeld > .sf-halb { grid-column: span 1; }
.schriftfeld > .sf-halb + .sf-halb { border-left: 1px solid var(--anthrazit); }
.schriftfeld dt { font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }
.schriftfeld dd { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.einstieg-bild .schriftfeld {
  position: absolute;
  left: clamp(-3rem, -3vw, -1rem);
  bottom: -2.2rem;
  width: min(330px, 80%);
  box-shadow: 0 24px 50px -24px rgba(29, 31, 33, .45);
}

/* Kennzahlen */
.kennzahlen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: clamp(4.5rem, 8vw, 7rem);
  border-top: 1px solid var(--anthrazit);
  border-bottom: 1px solid var(--linie-2);
}
.kennzahl { display: flex; align-items: center; gap: 1.3rem; padding: 1.8rem 1.5rem 1.8rem 0; }
.kennzahl + .kennzahl { padding-left: 1.8rem; border-left: 1px solid var(--linie-2); }
.zaehlwerk, .kennzahl-wort {
  font-size: clamp(3.4rem, 2.4rem + 3vw, 5.4rem);
  font-weight: 800;
  font-stretch: 70%;
  line-height: 1;
  letter-spacing: -.02em;
}
.kennzahl-wort { font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); font-stretch: 72%; }
.zaehlwerk { display: inline-block; height: 1em; overflow: hidden; }
.zw-band { display: flex; flex-direction: column; transform: translateY(calc(var(--pos, 0) * -1em)); transition: transform 2s cubic-bezier(.7, 0, .15, 1) var(--d, 0s); }
.zw-band span { height: 1em; }
.kennzahl-text { font-size: 1rem; line-height: 1.45; color: var(--text-2); max-width: 15rem; }
.kennzahl-text strong { display: block; color: var(--anthrazit); font-size: 1.15rem; }

/* ---------- Blatt 02 · Leistungen ---------- */
.leistungen { margin-top: 1.5rem; }
.leistung {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 5fr) minmax(0, 4fr) 8.5rem;
  gap: 1.5rem 2.2rem;
  align-items: center;
  padding: 2.3rem 1.2rem 2.3rem 0;
  border-bottom: 1px solid var(--linie-2);
}
.leistung::before {
  content: "";
  position: absolute;
  inset: 0 calc(-1 * clamp(.5rem, 1.5vw, 1.4rem));
  z-index: -1;
  background: var(--weiss);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .55s var(--ease);
}
.leistung:hover::before { transform: scaleY(1); transform-origin: top; }
.leistung-nr { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--text-3); transition: color .3s; align-self: start; padding-top: .7rem; }
.leistung:hover .leistung-nr { color: var(--signal-tief); }
.leistung-titel {
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.9rem);
  font-weight: 700;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -.015em;
  transition: transform .55s var(--ease);
}
.leistung:hover .leistung-titel { transform: translateX(.5rem); }
.leistung-frage { margin-top: .7rem; color: var(--text-2); font-size: 1.05rem; transition: transform .55s var(--ease) .04s; }
.leistung:hover .leistung-frage { transform: translateX(.5rem); }
.leistung-punkte { display: grid; gap: .35rem; font-size: .98rem; }
.leistung-punkte li { position: relative; padding-left: 1.3rem; }
.leistung-punkte li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7rem; height: 1px; background: var(--anthrazit); }
.leistung-skizze { width: 100%; height: auto; fill: none; stroke: var(--text-3); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .55; transition: opacity .3s, stroke .3s; }
.leistung-skizze :not([stroke-dasharray]) { stroke-dasharray: 1; stroke-dashoffset: 0; }
.leistung:hover .leistung-skizze { opacity: 1; stroke: var(--signal-tief); }
.leistung:hover .leistung-skizze :not([stroke-dasharray]) { animation: zeichnen 1s var(--ease-plan) both; }
.leistung:hover .leistung-skizze :nth-child(2) { animation-delay: .12s; }
.leistung:hover .leistung-skizze :nth-child(3) { animation-delay: .24s; }
.leistung:hover .leistung-skizze :nth-child(n+4) { animation-delay: .36s; }
@keyframes zeichnen { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.leistung-bild { display: none; }

.vorschau {
  position: fixed;
  left: 0; top: 0;
  z-index: 40;
  width: 300px;
  height: 220px;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(50% 0 50% 0);
  transition: opacity .3s, clip-path .6s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(29, 31, 33, .5);
}
.vorschau.an { opacity: 1; clip-path: inset(0 0 0 0); }
.vorschau img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform .9s var(--ease); }
.vorschau.an img { transform: scale(1); }

/* ---------- Blatt 03 · Prinzip ---------- */
.schalter {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 3rem;
  padding: 4px;
  border: 1px solid var(--anthrazit);
  border-radius: 2px;
  background: var(--weiss);
}
.schalter button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: .8rem 1.3rem;
  font-weight: 600;
  font-size: .98rem;
  transition: color .4s var(--ease);
}
.schalter button[aria-pressed="true"] { color: var(--beton); }
.schalter-marke {
  position: absolute;
  top: 4px; bottom: 4px; left: 4px;
  width: calc(50% - 4px);
  background: var(--anthrazit);
  transition: transform .6s var(--ease), background-color .4s;
}
.schalter.mit .schalter-marke { transform: translateX(100%); background: var(--planblau); }

.netz {
  --grund: var(--weiss);
  position: relative;
  margin-top: 1.5rem;
  aspect-ratio: 16 / 7.6;
  border: 1px solid var(--linie-2);
  background-color: var(--weiss);
  background-image:
    linear-gradient(to right, var(--linie) 1px, transparent 1px),
    linear-gradient(to bottom, var(--linie) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  overflow: hidden;
}
.netz-linien { position: absolute; inset: 0; width: 100%; height: 100%; }
.netz-linien path { fill: none; vector-effect: non-scaling-stroke; }
.netz-linien .nl { stroke: var(--signal); stroke-width: 1.4; stroke-dasharray: 5 5; opacity: .85; transition: stroke .6s, opacity .6s; animation: ameisen 1.2s linear infinite; }
.netz[data-modus="mit"] .netz-linien .nl { stroke: var(--planblau); stroke-dasharray: none; opacity: .45; animation: none; }
.netz-linien .nl-haupt { stroke: var(--planblau); stroke-width: 3.5; opacity: 0; transition: opacity .5s .5s; }
.netz[data-modus="mit"] .netz-linien .nl-haupt { opacity: 1; }
@keyframes ameisen { to { stroke-dashoffset: -20; } }

.netz-beteiligte li, .netz-knoten, .netz-mitte {
  position: absolute;
  transform: translate(-50%, -50%);
}
.netz-beteiligte li {
  background: var(--beton);
  border: 1px solid var(--linie-2);
  padding: .38rem .8rem;
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: border-color .5s, background-color .5s;
}
.netz[data-modus="ohne"] .netz-beteiligte li { border-color: rgba(228, 87, 46, .5); }
.netz-sie {
  left: 50%; top: 88%;
  display: grid;
  justify-items: center;
  background: var(--anthrazit);
  color: var(--beton);
  padding: .55rem 1.2rem .6rem;
  line-height: 1.2;
  z-index: 2;
}
.netz-sie strong { font-size: 1.25rem; font-stretch: 80%; }
.netz-zahl { font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.netz[data-modus="ohne"] .netz-sie { animation: stress 2.4s ease-in-out infinite; }
@keyframes stress {
  0%, 100% { box-shadow: 0 0 0 0 rgba(228, 87, 46, .55); }
  50% { box-shadow: 0 0 0 12px rgba(228, 87, 46, 0); }
}
.netz-huber {
  left: 50%; top: 44%;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: var(--planblau);
  color: #fff;
  padding: .7rem 1.1rem .7rem .7rem;
  font-weight: 700;
  font-size: 1rem;
  z-index: 2;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
  transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.netz-huber-zeichen { display: grid; place-items: center; width: 30px; height: 30px; background: var(--signal); font-weight: 800; }
.netz[data-modus="mit"] .netz-huber { opacity: 1; transform: translate(-50%, -50%) scale(1); transition-delay: .25s; }
.netz-mitte { left: 50%; top: 44%; }
.netz-leer { display: block; width: 74px; height: 74px; border: 1.5px dashed var(--signal); border-radius: 50%; opacity: .7; transition: opacity .4s, transform .6s var(--ease); }
.netz-leer::after { content: "?"; display: grid; place-items: center; height: 100%; font-weight: 800; font-size: 1.8rem; color: var(--signal-tief); }
.netz[data-modus="mit"] .netz-leer { opacity: 0; transform: scale(.5); }

.netz-text { position: relative; margin-top: 1.4rem; max-width: 44rem; min-height: 3.6em; }
.netz-text p { color: var(--text-2); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.netz-text strong { color: var(--anthrazit); }
.netz-text-mit { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(8px); }
.prinzip.mit .netz-text-ohne { opacity: 0; transform: translateY(-8px); }
.prinzip.mit .netz-text-mit { opacity: 1; transform: none; }

/* ---------- Blatt 04 · Ablauf (Blaupause) ---------- */
.ablauf {
  --grund: var(--planblau);
  position: relative;
  padding-block: var(--abstand);
  background: var(--planblau);
  color: var(--plan-weiss);
  overflow: clip;
}
.ablauf-raster {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(230, 238, 248, .09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(230, 238, 248, .09) 1px, transparent 1px),
    linear-gradient(to right, rgba(230, 238, 248, .04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(230, 238, 248, .04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: 0 var(--blau-y, 0px);
}
.ablauf .rahmen { position: relative; }
.ablauf .blatt-label { color: var(--plan-leise); }
.ablauf .blatt-nr { color: #ff8a63; }
.ablauf .leicht, .ablauf .blatt-intro { color: var(--plan-leise); }

.ablauf-raster-inhalt { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 6rem); margin-top: clamp(3rem, 6vw, 5rem); }
.ablauf-zeichnung {
  position: sticky;
  top: 12vh;
  align-self: start;
  border: 1px solid var(--plan-linie);
  padding: 1.1rem 1.2rem .9rem;
  background: rgba(22, 43, 71, .35);
}
.ablauf-zeichnung::before, .ablauf-zeichnung::after {
  content: "";
  position: absolute;
  width: 15px; height: 15px;
  background:
    linear-gradient(var(--plan-weiss), var(--plan-weiss)) center / 1px 100% no-repeat,
    linear-gradient(var(--plan-weiss), var(--plan-weiss)) center / 100% 1px no-repeat;
  top: -8px; left: -8px;
}
.ablauf-zeichnung::after { top: auto; left: auto; bottom: -8px; right: -8px; }
.zeichnung-kopf, .zeichnung-fuss {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--plan-leise);
}
.zeichnung-kopf { padding-bottom: .8rem; border-bottom: 1px solid var(--plan-linie); }
#zeichnung-name { color: #fff; font-weight: 500; }
.zeichnung-fuss { padding-top: .7rem; border-top: 1px solid var(--plan-linie); font-size: .64rem; }
.haus { width: 100%; height: auto; max-height: 62vh; margin-inline: auto; fill: none; stroke: var(--plan-weiss); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.haus text { fill: var(--plan-leise); stroke: none; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; }
.haus .gestrichelt { stroke-dasharray: 7 6; }
.haus .strichpunkt { stroke-dasharray: 18 6 3 6; stroke-width: 1; opacity: .8; }
.haus .schraffur { stroke-width: 1; opacity: .5; }
.haus .dick { stroke-width: 3.4; }
.haus .duenn { stroke-width: 1; }
.haus .kran { stroke-width: 1.4; transition: opacity .6s; }
.haus .offerte-gewaehlt, .haus .haken, .haus .schluessel { stroke: #ff8a63; }
.haus .haken { stroke-width: 3; }
.haus .licht { fill: var(--signal); stroke: none; filter: drop-shadow(0 0 10px rgba(255, 138, 99, .8)); }
.haus circle { fill: none; }

.phasen { position: relative; padding-left: 3.2rem; }
.phasen::before, .phasen::after {
  content: "";
  position: absolute;
  left: 11px; top: 0; bottom: 0;
  width: 2px;
  background: var(--plan-linie);
}
.phasen::after { background: var(--signal); transform-origin: top; transform: scaleY(var(--fuell, 0)); }
.phase {
  position: relative;
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 2rem;
  opacity: .34;
  transition: opacity .5s var(--ease);
}
.phase.aktiv { opacity: 1; }
.phase::before {
  content: "";
  position: absolute;
  left: calc(-3.2rem + 4px);
  top: 50%;
  width: 16px; height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--planblau);
  border: 2px solid var(--plan-weiss);
  z-index: 1;
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.phase.aktiv::before, .phase.fertig::before { background: var(--signal); border-color: var(--signal); }
.phase.aktiv::before { box-shadow: 0 0 0 6px rgba(228, 87, 46, .25), 0 0 24px rgba(255, 138, 99, .7); }
.phase-nr { display: flex; align-items: center; gap: .9rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--plan-leise); }
.phase-nr span { color: #fff; font-weight: 500; padding: .15rem .45rem; border: 1px solid var(--plan-linie); }
.phase.aktiv .phase-nr span { background: var(--signal); border-color: var(--signal); }
.phase-titel { margin-top: 1rem; font-size: clamp(2.6rem, 1.8rem + 2.8vw, 4.4rem); font-weight: 800; font-stretch: 74%; line-height: .95; letter-spacing: -.02em; color: #fff; }
.phase-frage { margin-top: .9rem; font-size: 1.2rem; color: var(--plan-weiss); }
.phase-rollen { display: grid; gap: .8rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--plan-linie); }
.phase-rollen div { display: grid; grid-template-columns: 3.2rem 1fr; gap: 1rem; }
.phase-rollen dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #ff8a63; padding-top: .3rem; }
.phase-rollen dd { color: var(--plan-leise); font-size: 1.02rem; }

/* ---------- Blatt 05 · Warum wir ---------- */
.warum-raster { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.karte {
  --grund: var(--weiss);
  position: relative;
  background: var(--weiss);
  border: 1px solid var(--linie-2);
  padding: clamp(1.5rem, 2.5vw, 2.3rem);
}
.karte::before, .karte::after {
  content: "";
  position: absolute;
  width: 13px; height: 13px;
  background:
    linear-gradient(var(--anthrazit), var(--anthrazit)) center / 1px 100% no-repeat,
    linear-gradient(var(--anthrazit), var(--anthrazit)) center / 100% 1px no-repeat;
  top: -7px; left: -7px;
}
.karte::after { top: auto; left: auto; right: -7px; bottom: -7px; }
.karte > p:not(.karte-nr):not(.eins) { color: var(--text-2); margin-top: .8rem; font-size: 1.02rem; }
.karte-nr { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--signal-tief); }
.karte-titel { margin-top: .9rem; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.3rem); font-weight: 700; font-stretch: 80%; line-height: 1.02; letter-spacing: -.01em; }
.karte-kosten { grid-column: 1 / 8; }
.karte-karte { grid-column: 8 / 13; display: flex; flex-direction: column; }
.karte-karte .seetal { margin-block: auto 0; }
.karte-eins { grid-column: 1 / 13; }

.kosten { margin-top: 2rem; border: 1px solid var(--anthrazit); background: #fff; }
.kosten-kopf {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--anthrazit);
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.kosten-beispiel { color: var(--signal-tief); }
.kosten-zeilen { padding: .6rem 1rem 1rem; display: grid; gap: .95rem; }
.kosten-zeilen li { display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: baseline; }
.kz-name { font-weight: 600; font-size: .98rem; }
.kz-zahl { font-family: var(--mono); font-size: .88rem; font-variant-numeric: tabular-nums; }
.kz-balken { grid-column: 1 / -1; height: 10px; background: var(--beton); position: relative; overflow: hidden; }
.kz-balken i { position: absolute; inset: 0; background: var(--anthrazit); transform-origin: left; transform: scaleX(var(--wert)); transition: transform 1.6s var(--ease-plan) var(--d, .2s); }
.kz-rahmen { background: transparent; outline: 1px solid var(--anthrazit); outline-offset: -1px; }
.kz-rahmen i { background: repeating-linear-gradient(-45deg, var(--linie-2) 0 1px, transparent 1px 6px); }
.kz-signal i { background: var(--signal); }
.kz-leise i { background: var(--planblau); }
.js .karte-kosten:not(.sichtbar) .kz-balken i { transform: scaleX(0); }
.kosten-zeilen li:nth-child(2) { --d: .35s; }
.kosten-zeilen li:nth-child(3) { --d: .5s; }
.kosten-zeilen li:nth-child(4) { --d: .65s; }
.kosten-termine { border-top: 1px solid var(--linie-2); }
.kosten-termine li { display: flex; align-items: center; gap: .8rem; padding: .7rem 1rem; font-size: .95rem; }
.kosten-termine li + li { border-top: 1px solid var(--linie); }
.kt-status { width: 20px; height: 20px; border: 1.5px solid var(--anthrazit); border-radius: 50%; display: grid; place-items: center; flex: none; }
.kt-status svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 3; }
.kt-ok { background: var(--anthrazit); }
.kt-wann { margin-left: auto; font-family: var(--mono); font-size: .75rem; color: var(--text-2); }

.seetal { width: 100%; height: auto; margin-top: 1rem; overflow: visible; }
.seetal .see { fill: rgba(31, 58, 95, .14); stroke: var(--planblau); stroke-width: 1.2; }
.seetal .see-name { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; fill: var(--planblau); }
.seetal .strasse { fill: none; stroke: var(--signal); stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2s var(--ease-plan) .3s; }
.js .karte-karte:not(.sichtbar) .strasse { stroke-dashoffset: 1; }
.seetal .ort circle { fill: var(--anthrazit); }
.seetal .ort text { font-size: 11px; font-weight: 500; fill: var(--text-2); }
.seetal .ort-haupt text { font-size: 15px; font-weight: 800; fill: var(--anthrazit); }
.seetal .ort-haupt circle:not(.puls) { fill: var(--signal); stroke: #fff; stroke-width: 2; }
.seetal .puls { fill: var(--signal); opacity: .3; transform-origin: 150px 194px; animation: kartenpuls 2.4s var(--ease) infinite; }
@keyframes kartenpuls { 0% { transform: scale(.5); opacity: .5; } 100% { transform: scale(2.2); opacity: 0; } }
.seetal .radius { fill: none; stroke: var(--linie-2); stroke-dasharray: 4 5; }

.karte-eins { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 1rem clamp(2rem, 5vw, 5rem); align-items: end; }
.karte-eins .karte-nr { grid-column: 1 / -1; }
.karte-eins .eins { grid-row: 2 / 4; margin-top: .4rem; }
.karte-eins .karte-titel { margin-top: 0; }
.karte-eins > p:last-child { margin-top: 0; }
.eins {
  font-size: clamp(5rem, 3rem + 6vw, 8.5rem);
  font-weight: 800;
  font-stretch: 66%;
  line-height: .85;
  letter-spacing: -.03em;
  margin-top: 1rem;
  background: linear-gradient(90deg, var(--anthrazit) 0 42%, var(--signal) 42% 58%, var(--anthrazit) 58%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: max-content;
}

/* ---------- Blatt 06 · Projekte ---------- */
.blaetter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 3rem; }
.leerblatt {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  aspect-ratio: 4 / 3.3;
  min-width: 0;
  border: 1px dashed var(--linie-2);
  background: repeating-linear-gradient(-45deg, rgba(29, 31, 33, .035) 0 1px, transparent 1px 11px);
  padding: 1.5rem 1.5rem 3.6rem;
}
.leerblatt svg { width: 62%; fill: none; stroke: var(--text-3); stroke-width: 1.4; stroke-dasharray: 6 5; stroke-linejoin: round; }
.leerblatt:hover svg path { animation: ameisen 1s linear infinite; }
.leerblatt-fuss {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  padding: .7rem 1rem;
  border-top: 1px dashed var(--linie-2);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}
.leerblatt-ihres { border: 1px solid var(--anthrazit); background: var(--weiss); gap: 1.6rem; text-align: center; }
.leerblatt-ihres .leerblatt-fuss { border-top: 1px solid var(--anthrazit); color: var(--anthrazit); }
.leerblatt-satz { font-size: clamp(1.8rem, 1.2rem + 1.5vw, 2.6rem); font-weight: 700; font-stretch: 78%; line-height: 1.02; letter-spacing: -.01em; max-width: 12ch; }
.leerblatt-satz em { font-style: normal; color: var(--signal-tief); }

/* ---------- Blatt 07 · Team ---------- */
.team-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: end; }
.personen { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.portraet {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--linie-2);
  background-color: var(--weiss);
  background-image:
    linear-gradient(to right, var(--linie) 1px, transparent 1px),
    linear-gradient(to bottom, var(--linie) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
}
.portraet svg { position: absolute; inset: 12% 10% 0; width: 80%; height: 88%; fill: none; stroke: var(--text-3); stroke-width: 1.4; stroke-dasharray: 6 5; }
.portraet::before, .portraet::after { content: ""; position: absolute; background: rgba(228, 87, 46, .5); }
.portraet::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.portraet::after { top: 37%; left: 0; right: 0; height: 1px; }
.portraet-label {
  position: absolute;
  left: .8rem; bottom: .8rem;
  background: var(--anthrazit);
  color: var(--beton);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .3rem .55rem;
}
.person-rolle { margin-top: 1.1rem; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--signal-tief); }
.person-name { margin-top: .3rem; font-size: clamp(1.4rem, 1.1rem + .9vw, 1.9rem); font-weight: 700; font-stretch: 82%; line-height: 1.05; }

/* ---------- Blatt 08 · Fragen ---------- */
.fragen-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem clamp(2rem, 5vw, 5rem); align-items: start; }
.fragen .blatt-kopf { position: sticky; top: calc(var(--kopf-h) + 2rem); }
.akkordeon { border-top: 1px solid var(--anthrazit); margin-top: 1.4rem; }
.frage { border-bottom: 1px solid var(--linie-2); }
.frage button {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.45rem 0;
  font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem);
  font-weight: 600;
  line-height: 1.3;
}
.frage-nr { font-family: var(--mono); font-size: .7rem; font-weight: 400; letter-spacing: .1em; color: var(--text-3); min-width: 3.4rem; }
.frage-zeichen { position: relative; flex: none; width: 34px; height: 34px; margin-left: auto; border: 1px solid var(--linie-2); border-radius: 50%; transition: background-color .3s, border-color .3s; }
.frage-zeichen::before, .frage-zeichen::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: currentColor; transition: transform .45s var(--ease); }
.frage-zeichen::after { transform: rotate(90deg); }
.frage button[aria-expanded="true"] .frage-zeichen { background: var(--anthrazit); border-color: var(--anthrazit); color: var(--beton); }
.frage button[aria-expanded="true"] .frage-zeichen::after { transform: rotate(0); }
.frage button:hover .frage-zeichen { border-color: var(--anthrazit); }
.antwort { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .55s var(--ease), visibility 0s; }
.antwort > div { overflow: hidden; }
.antwort p { padding: 0 3.4rem 1.6rem 4.4rem; color: var(--text-2); }
.antwort.zu { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .55s var(--ease), visibility 0s .55s; }

/* ---------- Band ---------- */
.band { position: relative; height: clamp(440px, 72vh, 760px); overflow: hidden; color: #fff; display: flex; align-items: flex-end; }
.band-bild { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; transform: translate3d(0, var(--py, 0px), 0); }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22, 43, 71, .86), rgba(22, 43, 71, .4) 50%, transparent 82%); }
.band-inhalt { position: relative; z-index: 1; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.band-koord { text-shadow: 0 1px 8px rgba(0, 0, 0, .4); font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.band-satz { margin-top: 1rem; font-size: clamp(2.8rem, 1.4rem + 5vw, 6.4rem); font-weight: 800; font-stretch: 74%; line-height: .94; letter-spacing: -.02em; max-width: 14ch; }
.band-satz span { display: block; font-weight: 300; opacity: .85; }

/* ---------- Blatt 09 · Kontakt ---------- */
.kontakt { --grund: var(--beton); }
.kontakt-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(2rem, 5vw, 5rem); align-items: start; }
.kontakt-daten { margin-top: 2.6rem; border-top: 1px solid var(--anthrazit); }
.kontakt-daten > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--linie-2); }
.kontakt-daten dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); padding-top: .3rem; }
.kontakt-daten dd { font-weight: 500; line-height: 1.45; }
.kontakt-mail { word-break: break-all; }
.marke-beispiel { display: inline-block; margin-left: .3rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--signal-tief); border: 1px solid currentColor; padding: .05rem .35rem; vertical-align: .15em; }
.leise { color: var(--text-3); }

.formular {
  --grund: var(--weiss);
  position: relative;
  background: var(--weiss);
  border: 1px solid var(--anthrazit);
  padding: clamp(1.4rem, 3vw, 2.6rem);
  min-height: 31rem;
  box-shadow: 14px 14px 0 -1px var(--beton), 14px 14px 0 0 var(--linie-2);
}
.schritte-mass { position: relative; height: 44px; margin-bottom: 1.2rem; }
.schritte-mass::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 1px; background: var(--linie-2); }
.schritte-fuellung { position: absolute; left: 0; top: 5px; height: 3px; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--schritt, 0)); transition: transform .7s var(--ease-plan); }
.sm-punkt { position: absolute; top: 20px; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); transform: translateX(-50%); white-space: nowrap; transition: color .3s; }
.sm-punkt::before { content: ""; position: absolute; left: 50%; top: -18px; width: 1px; height: 11px; background: var(--anthrazit); }
.sm-punkt:nth-child(2) { left: 0; transform: none; }
.sm-punkt:nth-child(2)::before { left: 0; }
.sm-punkt:nth-child(3) { left: 33.333%; }
.sm-punkt:nth-child(4) { left: 66.666%; }
.sm-punkt:nth-child(5) { left: 100%; transform: translateX(-100%); }
.sm-punkt:nth-child(5)::before { left: auto; right: 0; }
.sm-punkt.aktiv { color: var(--anthrazit); font-weight: 500; }
.schritt-zaehler { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.schritt { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.schritt.aktiv { display: block; animation: einschieben .6s var(--ease) both; }
.schritt.zurueck-anim { animation-name: einschieben-links; }
@keyframes einschieben { from { opacity: 0; transform: translateX(28px); } }
@keyframes einschieben-links { from { opacity: 0; transform: translateX(-28px); } }
.schritt legend { padding: 0; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); font-weight: 800; font-stretch: 78%; line-height: 1.05; letter-spacing: -.01em; margin-bottom: 1.5rem; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.kachel, .chip { position: relative; cursor: pointer; }
.kachel input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kachel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 8.2rem;
  padding: 1rem 1rem .9rem;
  border: 1px solid var(--linie-2);
  background: #fff;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  transition: border-color .25s, background-color .3s, color .3s, transform .3s var(--ease);
}
.kachel svg { width: 42px; height: 42px; fill: none; stroke: var(--anthrazit); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; transition: stroke .3s, transform .5s var(--ease); }
.kachel:hover { border-color: var(--anthrazit); transform: translateY(-3px); }
.kachel:hover svg { transform: translateY(-2px) scale(1.06); }
.kachel:has(input:checked) { background: var(--anthrazit); border-color: var(--anthrazit); color: var(--beton); }
.kachel:has(input:checked) svg { stroke: var(--signal); }
.kachel:has(input:focus-visible), .chip:has(input:focus-visible) { outline: 2px solid var(--signal-tief); outline-offset: 3px; }

.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip span { display: inline-block; padding: .75rem 1.1rem; border: 1px solid var(--linie-2); background: #fff; font-weight: 500; font-size: 1rem; transition: border-color .25s, background-color .3s, color .3s; }
.chip:hover span { border-color: var(--anthrazit); }
.chip:has(input:checked) span { background: var(--anthrazit); border-color: var(--anthrazit); color: var(--beton); }

.feld { display: grid; gap: .35rem; margin-top: 1.6rem; }
.feld > span { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.feld input, .feld textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--anthrazit);
  border-radius: 0;
  background: transparent;
  padding: .6rem 0;
  font-size: 1.05rem;
  transition: border-color .25s, box-shadow .25s;
}
.feld textarea { resize: vertical; min-height: 5rem; }
.feld input:focus, .feld textarea:focus { outline: none; border-bottom-color: var(--signal-tief); box-shadow: 0 1px 0 var(--signal-tief); }
.feld input[aria-invalid="true"] { border-bottom-color: var(--signal-tief); }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.felder .feld { margin-top: 1.1rem; }
.feld-breit { grid-column: 1 / -1; }
.schritt-knoepfe { margin-top: 2rem; display: flex; justify-content: flex-end; }
.formular-fehler { margin-top: 1rem; color: var(--signal-tief); font-size: .95rem; min-height: 1.4em; }
.zurueck {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.6rem;
  background: none;
  border: 0;
  padding: .4rem 0;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}
.zurueck svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .35s var(--ease); }
.zurueck:hover { color: var(--anthrazit); }
.zurueck:hover svg { transform: translateX(-3px); }
.danke:focus { outline: none; }
.danke:not([hidden]) { animation: einschieben .6s var(--ease) both; }
.danke-titel { font-size: clamp(2.4rem, 1.6rem + 2.4vw, 3.6rem); font-weight: 800; font-stretch: 74%; line-height: 1; letter-spacing: -.02em; margin-bottom: 1rem; }
.danke > p:not(.danke-titel) { color: var(--text-2); }
.schriftfeld-klein { margin: 1.4rem 0 1rem; }
.schriftfeld-klein > div:nth-last-child(2) { border-bottom: 1px solid var(--anthrazit); }
.schriftfeld-klein > div:last-child { border-bottom: 0; }

/* ---------- Fuss ---------- */
.fuss { background: var(--anthrazit); color: var(--beton); padding-block: clamp(3.5rem, 7vw, 6rem) 2rem; }
.fuss-oben { display: flex; justify-content: space-between; align-items: flex-end; gap: 2.5rem; flex-wrap: wrap; padding-bottom: 3rem; }
.fuss-marke { display: flex; align-items: center; gap: .8rem; font-weight: 800; font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; font-size: 1.1rem; }
.fuss .marke-haus { stroke: var(--beton); }
.fuss-satz { margin-top: 1.4rem; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); font-weight: 800; font-stretch: 74%; line-height: .98; letter-spacing: -.02em; max-width: 18ch; }
.fuss-satz span { display: block; font-weight: 300; color: rgba(233, 231, 227, .6); }
.fuss-nav { display: grid; grid-template-columns: repeat(2, auto); gap: .5rem 2.5rem; }
.fuss-nav a { text-decoration: none; color: rgba(233, 231, 227, .78); transition: color .25s; }
.fuss-nav a:hover { color: #fff; }
.schriftfeld-fuss {
  grid-template-columns: 1.4fr 1.6fr 1.6fr 1.3fr .9fr .8fr .8fr;
  background: transparent;
  border-color: rgba(233, 231, 227, .35);
}
.schriftfeld-fuss > div { grid-column: auto; border-bottom: 0; border-right: 1px solid rgba(233, 231, 227, .35); }
.schriftfeld-fuss > div:last-child { border-right: 0; }
.schriftfeld-fuss dt { color: rgba(233, 231, 227, .55); }
.schriftfeld-fuss dd { font-size: .88rem; font-weight: 500; }
.fuss-unten { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 2rem; margin-top: 1.4rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: rgba(233, 231, 227, .6); }

/* ---------- Leiste (Handy) ---------- */
.leiste {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: none;
  padding: .7rem var(--rand) calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(233, 231, 227, .92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--linie-2);
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.leiste .knopf { width: 100%; }
.leiste.sichtbar { transform: none; }

/* ---------- Einstieg-Animation ---------- */
.js .einstieg-titel .zeile > span { transform: translateY(108%); }
.js .einstieg-label, .js .einstieg-unter, .js .einstieg-knoepfe, .js .einstieg-fakt { opacity: 0; transform: translateY(16px); }
.js .einstieg-bild-innen { clip-path: inset(0 100% 0 0); }
.js .einstieg-bild-innen img { transform: scale(1.14); }
.js .plan-linien path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .plan-achsen, .js .plan-kote, .js .plan-mass { opacity: 0; }
.js .plan-knoten circle { transform: scale(0); transform-box: fill-box; transform-origin: center; }
.js .einstieg-bild .schriftfeld > div { opacity: 0; transform: translateY(8px); }
.js .einstieg-bild .schriftfeld { clip-path: inset(0 0 100% 0); }

.bereit .einstieg-titel .zeile > span { transform: none; transition: transform 1.15s var(--ease); }
.bereit .einstieg-titel .zeile:nth-child(1) > span { transition-delay: .1s; }
.bereit .einstieg-titel .zeile:nth-child(2) > span { transition-delay: .2s; }
.bereit .einstieg-titel .zeile:nth-child(3) > span { transition-delay: .38s; }
.bereit .einstieg-titel .zeile:nth-child(4) > span { transition-delay: .46s; }
.bereit .einstieg-label, .bereit .einstieg-unter, .bereit .einstieg-knoepfe, .bereit .einstieg-fakt { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1s var(--ease); }
.bereit .einstieg-label { transition-delay: 0s; }
.bereit .einstieg-unter { transition-delay: .6s; }
.bereit .einstieg-knoepfe { transition-delay: .72s; }
.bereit .einstieg-fakt { transition-delay: .84s; }
.bereit .einstieg-bild-innen { clip-path: inset(0 0 0 0); transition: clip-path 1.5s var(--ease-plan) .2s; }
.bereit .einstieg-bild-innen img { transform: scale(1); transition: transform 2.6s var(--ease) .2s; }
.einstieg-bild-innen::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 2px;
  background: var(--signal);
  opacity: 0;
  pointer-events: none;
}
.bereit .einstieg-bild-innen::after { animation: aufrollen 1.5s var(--ease-plan) .2s both; }
@keyframes aufrollen { 0% { left: 0; opacity: 1; } 92% { left: calc(100% - 2px); opacity: 1; } 100% { left: calc(100% - 2px); opacity: 0; } }
.bereit .plan-linien path { animation: zeichnen 1.5s var(--ease-plan) forwards; animation-delay: calc(1.3s + var(--i) * .16s); }
.bereit .plan-achsen { opacity: 1; transition: opacity 1s 1.2s; }
.bereit .plan-knoten circle { transform: scale(1); transition: transform .6s var(--ease) calc(2.3s + var(--i) * .1s); }
.bereit .plan-kote, .bereit .plan-mass { opacity: 1; transition: opacity 1s 2.5s; }
.bereit .einstieg-bild .schriftfeld { clip-path: inset(0 0 0 0); transition: clip-path .8s var(--ease-plan) 1.4s; }
.bereit .einstieg-bild .schriftfeld > div { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.bereit .einstieg-bild .schriftfeld > div:nth-child(1) { transition-delay: 1.7s; }
.bereit .einstieg-bild .schriftfeld > div:nth-child(2) { transition-delay: 1.82s; }
.bereit .einstieg-bild .schriftfeld > div:nth-child(3) { transition-delay: 1.94s; }
.bereit .einstieg-bild .schriftfeld > div:nth-child(4) { transition-delay: 2.06s; }
.bereit .einstieg-bild .schriftfeld > div:nth-child(5) { transition-delay: 2.12s; }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .nav {
    position: fixed;
    top: var(--kopf-h);
    left: 0; right: 0;
    display: grid;
    gap: 0;
    padding: .5rem var(--rand) 1.5rem;
    background: var(--beton);
    border-bottom: 1px solid var(--linie-2);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s var(--ease), transform .45s var(--ease), visibility 0s .45s;
  }
  .nav a { font-size: 1.6rem; font-weight: 700; font-stretch: 80%; padding: .75rem 0; border-bottom: 1px solid var(--linie); }
  .nav a::after { display: none; }
  .nav-offen .nav { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .menue { display: inline-flex; }
  .leistung { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1fr); }
  .leistung-skizze { display: none; }
}

@media (max-width: 900px) {
  :root { --kopf-h: 66px; }
  body { font-size: 1.125rem; }
  .kopf-aktion .knopf { display: none; }
  .einstieg-raster { grid-template-columns: minmax(0, 1fr); }
  .einstieg-bild { margin-right: calc(-1 * var(--rand)); margin-left: calc(-1 * var(--rand)); }
  .einstieg-bild-innen { height: auto; aspect-ratio: 4 / 3.4; }
  .einstieg-bild .schriftfeld { position: relative; left: auto; bottom: auto; width: auto; margin: -2rem var(--rand) 0; }
  .einstieg-bild .schriftfeld > div:nth-child(-n+2) { grid-column: span 1; }
  .einstieg-bild .schriftfeld > div:nth-child(2) { border-left: 1px solid var(--anthrazit); }
  .einstieg-bild .schriftfeld > div:nth-child(3) { display: none; }
  .plan text { font-size: 44px; }
  .kennzahlen { grid-template-columns: 1fr; margin-top: 3.5rem; }
  .kennzahl, .kennzahl + .kennzahl { padding: 1.3rem 0; border-left: 0; }
  .kennzahl + .kennzahl { border-top: 1px solid var(--linie-2); }
  .zaehlwerk, .kennzahl-wort { min-width: 2.2ch; }
  .kennzahl-wort { min-width: 0; }
  .blatt-kopf-zwei { grid-template-columns: 1fr; }

  .leistung { grid-template-columns: 1fr; gap: 1rem; padding: 1.8rem 0; }
  .leistung-nr { padding-top: 0; }
  .leistung-bild { display: block; order: -1; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
  .leistung:hover .leistung-titel, .leistung:hover .leistung-frage { transform: none; }
  .vorschau { display: none; }

  .schalter { display: grid; width: 100%; }
  .schalter button { padding: .75rem .6rem; font-size: .88rem; line-height: 1.25; }
  .netz { aspect-ratio: 3 / 4.1; }
  .netz-beteiligte li { font-size: .74rem; padding: .25rem .5rem; }
  .netz-huber { font-size: .85rem; padding: .5rem .8rem .5rem .5rem; }
  .netz-huber-zeichen { width: 24px; height: 24px; }
  .nh-lang { display: none; }
  .netz-leer { width: 56px; height: 56px; }

  .ablauf-raster-inhalt { grid-template-columns: 1fr; gap: 0; }
  .ablauf-zeichnung { top: .6rem; z-index: 2; background: var(--planblau-tief); padding: .7rem .8rem .6rem; }
  .haus { max-height: 25vh; }
  .zeichnung-fuss { display: none; }
  .phasen { padding-left: 2.6rem; }
  .phase { min-height: 64vh; }
  .phase::before { left: calc(-2.6rem + 4px); }

  .warum-raster { grid-template-columns: 1fr; }
  .karte-kosten, .karte-karte, .karte-eins { grid-column: auto; grid-row: auto; }
  .karte-karte { order: -2; }
  .karte-eins { order: -1; grid-template-columns: 1fr; }
  .karte-eins .eins { grid-row: auto; }

  .blaetter { grid-template-columns: 1fr; }
  .leerblatt { aspect-ratio: auto; min-height: 15rem; }
  .leerblatt svg { width: min(62%, 220px); }
  .team-raster, .fragen-raster, .kontakt-raster { grid-template-columns: minmax(0, 1fr); }
  .fragen .blatt-kopf { position: static; }
  .antwort p { padding: 0 0 1.4rem; }
  .schriftfeld-fuss { grid-template-columns: 1fr 1fr; }
  .schriftfeld-fuss > div { border-bottom: 1px solid rgba(233, 231, 227, .35); }
  .schriftfeld-fuss > div:nth-child(2n) { border-right: 0; }
  .schriftfeld-fuss > div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .leiste { display: block; }
  .fuss { padding-bottom: 6rem; }
}

@media (max-width: 560px) {
  .einstieg-knoepfe .knopf { flex: 1 1 100%; }
  .personen { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .felder { grid-template-columns: 1fr; }
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kachel { min-height: 7rem; font-size: .95rem; hyphens: auto; overflow-wrap: anywhere; }
  .kontakt-daten > div { grid-template-columns: 1fr; gap: .2rem; }
  .sm-punkt { font-size: .56rem; letter-spacing: .06em; }
  .formular { box-shadow: none; }
  .plan-mass text { display: none; }
}

@media (hover: none) {
  .leistung:hover::before { transform: scaleY(0); }
}

/* ---------- Bewegung reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .zeige, .js .einstieg-titel .zeile > span, .js .einstieg-label, .js .einstieg-unter, .js .einstieg-knoepfe, .js .einstieg-fakt { opacity: 1; transform: none; }
  .js .einstieg-bild-innen, .js .einstieg-bild .schriftfeld { clip-path: none; }
  .js .einstieg-bild-innen img { transform: none; }
  .js .plan-linien path { stroke-dashoffset: 0; }
  .js .plan-achsen, .js .plan-kote, .js .plan-mass, .js .einstieg-bild .schriftfeld > div { opacity: 1; transform: none; }
  .js .plan-knoten circle { transform: none; }
  .band-bild { transform: none; }
  .netz-linien .nl { animation: none; }
}
