/* BauView – Stylesheet
   Farben aus dem Logo, Schrift: Archivo (lokal, SIL Open Font License) */

@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-var.woff2") format("woff2-variations"),
       url("../assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --nacht: #0F2C4A;
  --nacht-tief: #0A1F35;
  --gruen: #8BBF41;
  --gruen-hell: #A6D35E;
  --beton: #EEF0EE;
  --weiss: #FFFFFF;
  --stahl: #556474;
  --linie: #CBD2D8;
  --text: #0A1F35;

  --schrift: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --breit: 115%;

  --s-1: 0.875rem;
  --s0: 1.0625rem;
  --s1: 1.25rem;
  --s2: 1.625rem;
  --s3: clamp(1.875rem, 3.2vw, 2.625rem);
  --s4: clamp(2.25rem, 5vw, 3.75rem);
  --s5: clamp(2.75rem, 8.4vw, 7rem);

  --rand: clamp(1rem, 4vw, 3rem);
  --max: 1240px;
  --abschnitt: clamp(4.5rem, 10vw, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--beton);
  color: var(--text);
  font-family: var(--schrift);
  font-size: var(--s0);
  line-height: 1.6;
  font-kerning: normal;
}

img, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }

:focus-visible { outline: 3px solid var(--gruen); outline-offset: 3px; }

h1, h2, h3 {
  overflow-wrap: break-word;
  font-stretch: var(--breit);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h2 { font-size: var(--s4); }
h3 { font-size: var(--s2); line-height: 1.15; }
p { margin: 0 0 1em; max-width: 66ch; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--gruen); color: var(--nacht-tief); padding: 0.6rem 1rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--rand); }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  color: var(--weiss);
}
.kopf--fest { position: sticky; top: 0; background: var(--nacht); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 6.25rem; }

.marke { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }
.marke img { width: 50px; height: 50px; border-radius: 50%; }
.kopf .marke img {
  width: 62px; height: 62px;
  box-shadow: 0 0 0 2px rgb(255 255 255 / 0.85), 0 0 0 5px rgb(139 191 65 / 0.55);
}
.marke span { font-size: 1.5rem; font-weight: 700; font-stretch: var(--breit); letter-spacing: -0.01em; }
.kopf .marke span { font-size: clamp(1.625rem, 2.2vw, 2rem); font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.35rem; }
.nav a { display: block; padding: 0.6rem 0.9rem; text-decoration: none; font-size: 1.125rem; font-weight: 500; border-radius: 4px; }
.nav a:hover { background: rgb(255 255 255 / 0.1); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--gruen); border-radius: 0; }

.menue-knopf {
  display: none; background: none; border: 1px solid rgb(255 255 255 / 0.4); color: inherit;
  font: inherit; font-size: 0.95rem; padding: 0.45rem 0.9rem; border-radius: 4px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 4px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.knopf--gruen { background: var(--gruen); color: var(--nacht-tief); }
.knopf--gruen:hover { background: var(--gruen-hell); }
.knopf--linie { border-color: currentColor; color: inherit; background: transparent; }
.knopf--linie:hover { background: rgb(255 255 255 / 0.12); }
.knopf--nacht { background: var(--nacht); color: var(--weiss); }
.knopf--nacht:hover { background: var(--nacht-tief); }
.nav .knopf { padding: 0.75rem 1.3rem; margin-left: 0.75rem; font-weight: 700; }
.nav .knopf:hover { background: var(--gruen-hell); }

/* ---------- Hero / Kamerasucher ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  background: var(--nacht-tief); color: var(--weiss); overflow: hidden;
}
.hero video, .hero .hero-bild {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* Zwei Videos übereinander: am Ende blendet das eine weich in den Anfang des anderen über */
.hero .hero-film { opacity: 0; transition: opacity 1.4s ease-in-out; }
.hero .hero-film.aktiv { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgb(10 31 53 / 0.88) 0%, rgb(10 31 53 / 0.35) 45%, rgb(10 31 53 / 0.1) 70%, rgb(10 31 53 / 0.5) 100%);
}
.sucher {
  position: absolute; z-index: 2; pointer-events: none;
  inset: clamp(7rem, 13vh, 8.5rem) var(--rand) clamp(1rem, 3vh, 2rem);
}
.sucher i {
  position: absolute; width: clamp(28px, 4vw, 52px); height: clamp(28px, 4vw, 52px);
  border: 0 solid rgb(255 255 255 / 0.8);
}
.sucher i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.sucher i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.sucher i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.sucher i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.sucher::before, .sucher::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: rgb(255 255 255 / 0.55);
}
.sucher::before { width: 22px; height: 1px; transform: translate(-50%, -50%); }
.sucher::after { width: 1px; height: 22px; transform: translate(-50%, -50%); }

/* Einmaliger Lade-Moment: Sucher stellt scharf, dann erscheint die Headline */
@keyframes fokus { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes auftauchen { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
.hero .sucher { animation: fokus 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.hero .hero-inhalt { animation: auftauchen 0.9s 0.7s cubic-bezier(.2, .7, .2, 1) both; }

.hero-inhalt {
  position: relative; z-index: 3; width: 100%;
  padding-bottom: clamp(3rem, 9vh, 6rem);
  padding-inline: calc(var(--rand) + clamp(1.25rem, 3vw, 3rem));
  max-width: calc(var(--max) + 2 * var(--rand));
}
.hero h1 {
  font-size: var(--s5); font-stretch: 125%; font-weight: 800; line-height: 0.95;
  letter-spacing: -0.03em; margin-bottom: 0.35em; max-width: 11ch;
}
.hero p { font-size: var(--s1); max-width: 40ch; color: rgb(255 255 255 / 0.9); margin-bottom: 1.75rem; }
.hero-aktionen { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.video-pause {
  position: absolute; z-index: 4; right: calc(var(--rand) + 1rem); bottom: calc(clamp(1rem, 3vh, 2rem) + 1rem);
  background: rgb(10 31 53 / 0.55); color: var(--weiss); border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: 4px; font: inherit; font-size: var(--s-1); padding: 0.4rem 0.75rem; cursor: pointer;
}

/* Seitenkopf für Unterseiten */
.seitenkopf {
  position: relative; background: var(--nacht); color: var(--weiss);
  padding-block: clamp(9rem, 18vw, 12rem) clamp(3rem, 7vw, 5rem); overflow: hidden;
}
.seitenkopf--bild { min-height: 70svh; display: flex; align-items: flex-end; }
.seitenkopf--bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.seitenkopf--bild::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(10 31 53 / 0.9), rgb(10 31 53 / 0.25) 60%, rgb(10 31 53 / 0.55));
}
.seitenkopf .wrap { position: relative; z-index: 2; }
.seitenkopf h1 { font-size: min(var(--s4), 8.4vw); max-width: 18ch; margin-bottom: 0.4em; }
.seitenkopf p { font-size: var(--s1); color: rgb(255 255 255 / 0.88); max-width: 46ch; margin: 0; }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: var(--abschnitt); overflow-x: clip; }
.abschnitt--weiss { background: var(--weiss); }
.abschnitt--nacht { background: var(--nacht); color: var(--weiss); }
.abschnitt--nacht p { color: rgb(255 255 255 / 0.85); }
.abschnitt-kopf { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; }
.abschnitt-kopf p { font-size: var(--s1); color: var(--stahl); }
.abschnitt--nacht .abschnitt-kopf p { color: rgb(255 255 255 / 0.78); }

.leitsatz {
  font-size: var(--s3); font-stretch: var(--breit); font-weight: 600; line-height: 1.2;
  letter-spacing: -0.015em; max-width: 30ch; margin: 0; text-wrap: balance;
}

/* Leistungen: dunkler Bereich mit hohen Bildkacheln */
.abschnitt--tief { background: var(--nacht-tief); color: var(--weiss); }
.leistungen-kopf {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem clamp(2rem, 6vw, 6rem);
  align-items: end; margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.leistungen-kopf h2 { margin: 0; max-width: 12ch; }
.leistungen-kopf p { margin: 0; font-size: var(--s1); color: rgb(255 255 255 / 0.75); max-width: 42ch; }
.zitat { font-style: italic; }
.zitat-zeichen { color: var(--gruen); font-style: normal; font-weight: 700; font-size: 1.3em; line-height: 0; }

/* Gemeinsames Zeilenraster: Titel, Text und Link stehen in allen Kacheln auf gleicher Höhe */
.kacheln {
  display: grid; grid-template-columns: repeat(3, 1fr);
  grid-template-rows: minmax(clamp(12rem, 24vw, 22rem), 1fr) auto auto auto;
  column-gap: clamp(0.75rem, 1.5vw, 1.25rem); row-gap: 0;
}
.kachel {
  position: relative; isolation: isolate; overflow: hidden; border-radius: 6px;
  display: grid; grid-row: span 4; grid-template-rows: subgrid;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  color: var(--weiss); text-decoration: none; background: var(--nacht);
}
.kachel h3 { grid-row: 2; }
.kachel p { grid-row: 3; }
.kachel-link { grid-row: 4; }
.kachel img, .kachel video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}
.kachel::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgb(10 31 53 / 0.95) 0%, rgb(10 31 53 / 0.55) 45%, rgb(10 31 53 / 0.05) 75%);
}
.kachel h3 { font-size: clamp(1.375rem, 1.95vw, 1.75rem); font-stretch: 108%; margin-bottom: 0.4em; white-space: nowrap; }
.kachel p { color: rgb(255 255 255 / 0.82); margin-bottom: 1.25rem; max-width: 34ch; }
.kachel-link {
  align-self: flex-start; justify-self: start; font-weight: 600; padding-bottom: 0.2rem;
  border-bottom: 2px solid var(--gruen);
}
/* Sucher-Ecken erscheinen, sobald man auf die Kachel zeigt */
.ecken::before, .ecken::after {
  content: ""; position: absolute; top: 1.25rem; width: 28px; height: 28px;
  border: 0 solid var(--weiss); opacity: 0; transition: opacity 0.3s, transform 0.4s;
}
.ecken::before { left: 1.25rem; border-top-width: 2px; border-left-width: 2px; transform: translate(-6px, -6px); }
.ecken::after { right: 1.25rem; border-top-width: 2px; border-right-width: 2px; transform: translate(6px, -6px); }
/* Beim Zeigen: Bild hellt sich auf (Verlauf wird schwächer), kein Zoom – so bleibt auch das laufende Video ruhig */
.kachel::before { transition: opacity 0.5s ease; }
.kachel:hover::before, .kachel:focus-visible::before { opacity: 0.72; }
.kachel-link { transition: box-shadow 0.3s; }
.kachel:hover .kachel-link, .kachel:focus-visible .kachel-link { box-shadow: 0 2px 0 var(--gruen); }
.kachel:hover .ecken::before, .kachel:hover .ecken::after,
.kachel:focus-visible .ecken::before, .kachel:focus-visible .ecken::after { opacity: 1; transform: none; }
.kachel:focus-visible { outline-offset: 4px; }

/* Ablauf / Phasen: echte Reihenfolge */
.schritte {
  list-style: none; margin: 0; padding: 0; counter-reset: schritt;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.schritte li {
  counter-increment: schritt; position: relative;
  padding: 2.75rem 1.5rem 0 0; border-top: 2px solid rgb(255 255 255 / 0.25);
}
.schritte li::before {
  content: counter(schritt); position: absolute; top: -1.05rem; left: 0;
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--gruen); color: var(--nacht-tief); font-weight: 700; font-size: 0.95rem;
}
.schritte h3 { font-size: var(--s1); margin-bottom: 0.4em; }
.schritte p { font-size: 0.975rem; margin: 0; }
.abschnitt:not(.abschnitt--nacht) .schritte li { border-top-color: var(--linie); }
.abschnitt:not(.abschnitt--nacht) .schritte p { color: var(--stahl); }

/* Ablauf als Flugbahn (Startseite) */
.ablauf { position: relative; --icon: 4rem; --p: 0; }
.ablauf ol {
  list-style: none; margin: 0; padding: 0; position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem);
}
/* Gemeinsames Raster: Icon, Nummer, Titel und Text stehen in allen Schritten auf gleicher Höhe */
.ablauf ol { grid-template-rows: auto auto auto 1fr; row-gap: 0; }
.ablauf-schritt { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
.ablauf-schritt .ablauf-icon { margin-bottom: 1.25rem; }
.ablauf-schritt .ablauf-karte { grid-row: 2 / span 3; display: grid; grid-template-rows: subgrid; align-content: start; }
.ablauf-icon {
  width: var(--icon); height: var(--icon); flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--weiss); border: 2px solid var(--linie);
  transition: background-color 0.4s, border-color 0.4s, transform 0.4s cubic-bezier(.2, .7, .2, 1), box-shadow 0.4s;
}
.ablauf-icon svg, .flugbahn-drohne svg {
  width: 45%; height: 45%; fill: none; stroke: var(--nacht); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.4s;
}
.ablauf-karte {
  position: relative; overflow: hidden; flex: 1;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  transition: transform 0.45s cubic-bezier(.2, .7, .2, 1), box-shadow 0.45s, border-color 0.45s;
}
.ablauf-nr {
  display: block; margin-bottom: 0.75rem;
  font-size: clamp(2.5rem, 3.6vw, 3.25rem); font-weight: 800; font-stretch: 125%; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px var(--linie); transition: -webkit-text-stroke-color 0.4s;
}
.ablauf-karte h3 { font-size: var(--s1); margin-bottom: 0.5em; position: relative; }
.ablauf-karte p { color: var(--stahl); font-size: 0.975rem; margin: 0; position: relative; }
/* grüne Kante oben, die beim Aktivieren aufläuft */
.ablauf-karte::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%;
  background: var(--gruen); transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s cubic-bezier(.2, .7, .2, 1);
}

.ablauf-schritt.aktiv .ablauf-icon {
  background: var(--gruen); border-color: var(--gruen); transform: scale(1.06);
  box-shadow: 0 0 0 7px rgb(139 191 65 / 0.18);
}
.ablauf-schritt.aktiv .ablauf-icon svg { stroke: var(--nacht-tief); }
.ablauf-schritt.aktiv .ablauf-karte {
  transform: translateY(-6px); border-color: rgb(139 191 65 / 0.55);
  box-shadow: 0 18px 40px -22px rgb(15 44 74 / 0.45);
}
.ablauf-schritt.aktiv .ablauf-karte::before { transform: scaleX(1); }
.ablauf-schritt.aktiv .ablauf-nr { -webkit-text-stroke-color: var(--gruen); }

/* Flugbahn: gestrichelte Route, grüne Füllung und Drohne (Lage per JS) */
.flugbahn {
  position: absolute; z-index: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgb(85 100 116 / 0.55) 50%, transparent 50%);
  background-size: 12px 2px; background-repeat: repeat-x; background-position: left center;
}
.flugbahn.senkrecht {
  background-image: linear-gradient(180deg, rgb(85 100 116 / 0.55) 50%, transparent 50%);
  background-size: 2px 12px; background-repeat: repeat-y; background-position: center top;
}
.flugbahn-fuellung {
  position: absolute; left: 0; top: 50%; height: 3px; width: 100%; margin-top: -1.5px;
  background: var(--gruen); transform-origin: left; transform: scaleX(var(--p));
}
.flugbahn.senkrecht .flugbahn-fuellung {
  top: 0; left: 50%; width: 3px; height: 100%; margin: 0 0 0 -1.5px;
  transform-origin: top; transform: scaleY(var(--p));
}
.flugbahn-drohne {
  position: absolute; left: calc(var(--p) * 100%); top: 50%;
  width: 2.5rem; height: 2.5rem; margin: -1.25rem 0 0 -1.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--nacht);
  box-shadow: 0 6px 16px -6px rgb(15 44 74 / 0.6);
}
.flugbahn-drohne svg { width: 60%; height: 60%; stroke: var(--gruen); }
.flugbahn.senkrecht .flugbahn-drohne { left: 50%; top: calc(var(--p) * 100%); }

/* Über uns */
.ueber { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.ueber-text p { font-size: 1.125rem; }
/* Überschrift und Logo als zentrierte Einheit */
.ueber-kopf { display: flex; flex-direction: column; align-items: center; width: fit-content; }
.ueber-kopf h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.ueber-text p { font-size: clamp(1.125rem, 1.65vw, 1.5rem); line-height: 1.55; max-width: 48ch; }
.abschnitt--nacht .ueber { align-items: center; }

/* Logo mit umlaufendem Flugbahn-Ring */
.ueber-logo { position: relative; width: clamp(10rem, 18vw, 15rem); aspect-ratio: 1; margin-top: 1.5rem; }
.ueber-logo img { width: 100%; height: 100%; border-radius: 50%; }
.umlauf {
  position: absolute; inset: -14%; width: 128%; height: 128%; overflow: visible;
  animation: umlauf 18s linear infinite;
}
.umlauf circle {
  fill: none; stroke: var(--gruen); stroke-width: 1; stroke-linecap: round;
  stroke-dasharray: 70 232; opacity: 0.9;
}
@keyframes umlauf { to { transform: rotate(360deg); } }

/* Werte: drei hervorgehobene Felder */
.werte {
  grid-column: 1 / -1; list-style: none; margin: clamp(1rem, 3vw, 2rem) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.werte li {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  border: 1px solid rgb(255 255 255 / 0.16); border-radius: 6px;
  background: rgb(255 255 255 / 0.04);
  transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), border-color 0.35s, box-shadow 0.35s;
}
/* grüne Füllung, die beim Zeigen von links hereinläuft */
.werte li::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, rgb(139 191 65 / 0.22), rgb(139 191 65 / 0.04) 70%);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(.2, .7, .2, 1);
}
/* grüne Linie, die beim Hineinscrollen gezeichnet wird */
.werte li::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: var(--gruen); transform: scaleX(0); transform-origin: left;
  transition: transform 0.9s cubic-bezier(.2, .7, .2, 1);
}
.werte svg {
  grid-row: span 2; width: 2.75rem; height: 2.75rem; padding: 0.55rem; border-radius: 50%;
  background: rgb(139 191 65 / 0.14); fill: none; stroke: var(--gruen); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; transition: transform 0.4s, background-color 0.4s;
}
.werte strong { font-size: var(--s1); font-stretch: var(--breit); font-weight: 700; color: var(--weiss); }
.werte span { font-size: 1rem; color: rgb(255 255 255 / 0.7); }
.werte li:hover {
  transform: translateY(-4px); border-color: rgb(139 191 65 / 0.6);
  box-shadow: 0 14px 34px -14px rgb(139 191 65 / 0.45);
}
.werte li:hover::before { transform: scaleX(1); }
.werte li:hover svg { transform: rotate(-8deg) scale(1.08); background: var(--gruen); stroke: var(--nacht-tief); }

/* Einblenden nacheinander, sobald der Bereich sichtbar wird (nur mit JS) */
.js .werte li { opacity: 0; transform: translateY(1.5rem); }
.js .werte.sichtbar li { opacity: 1; transform: none; transition: opacity 0.7s, transform 0.7s cubic-bezier(.2, .7, .2, 1), border-color 0.35s, box-shadow 0.35s; }
.js .werte.sichtbar li:nth-child(2) { transition-delay: 0.12s; }
.js .werte.sichtbar li:nth-child(3) { transition-delay: 0.24s; }
.werte.sichtbar li::after { transform: scaleX(1); }
.werte.sichtbar li:nth-child(2)::after { transition-delay: 0.3s; }
.werte.sichtbar li:nth-child(3)::after { transition-delay: 0.45s; }
.js .werte.sichtbar li:hover { transform: translateY(-4px); transition-delay: 0s; }

/* Bildstreifen */
.bildstreifen { display: grid; grid-template-columns: 3fr 2fr; gap: 4px; background: var(--nacht-tief); }
.bildstreifen figure { margin: 0; position: relative; }
.bildstreifen img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.bildstreifen figcaption {
  position: absolute; left: 1rem; bottom: 1rem; color: var(--weiss); font-size: var(--s-1);
  background: rgb(10 31 53 / 0.6); padding: 0.3rem 0.65rem; border-radius: 3px;
}

/* Kompaktere Varianten für Seiten mit wenig Text */
.seitenkopf--kompakt { padding-block: clamp(7.5rem, 12vw, 9rem) clamp(2rem, 4vw, 3rem); }
.abschnitt--etwas-kompakt { padding-block: clamp(3.5rem, 7vw, 6rem); }
.abschnitt--kompakt { padding-block: clamp(3rem, 6vw, 5rem); }
.seitenkopf--flach { min-height: 52svh; }
.fakten.fakten--abstand { margin-top: clamp(2.5rem, 5vw, 4rem); }
.haken--zweispaltig { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2rem; }
.bildstreifen--breit img { aspect-ratio: 21 / 9; }

/* Vorteile als Karten mit Icon */
.fakten {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto 1fr;
  column-gap: clamp(1rem, 2vw, 1.5rem); row-gap: 0;
}
.fakten li {
  display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start;
  position: relative; overflow: hidden;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), box-shadow 0.4s, border-color 0.4s;
}
.fakten li::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--gruen);
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s cubic-bezier(.2, .7, .2, 1);
}
.fakt-icon {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; margin-bottom: 1.25rem;
  border-radius: 12px; background: rgb(139 191 65 / 0.16);
  transition: background-color 0.4s, transform 0.4s;
}
.fakt-icon svg {
  width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--nacht); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
.fakten h3 { font-size: var(--s1); margin-bottom: 0.4em; }
.fakten p { margin: 0; color: var(--stahl); }
.fakten li:hover {
  transform: translateY(-5px); border-color: rgb(139 191 65 / 0.6);
  box-shadow: 0 20px 40px -24px rgb(15 44 74 / 0.45);
}
.fakten li:hover::after { transform: scaleX(1); }
.fakten li:hover .fakt-icon { background: var(--gruen); transform: rotate(-6deg); }

/* Bauphasen: wachsendes Gebäude im Bauplan-Look */
.phasen {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
.phase {
  display: flex; flex-direction: column; padding: clamp(1rem, 1.6vw, 1.25rem);
  background: rgb(255 255 255 / 0.04); border: 1px solid rgb(255 255 255 / 0.14); border-radius: 12px;
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), border-color 0.4s, background-color 0.4s;
}
.phase-bild {
  border-radius: 8px; margin-bottom: 1.25rem; aspect-ratio: 4 / 3;
  background-color: rgb(10 31 53 / 0.55);
  background-image:
    linear-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.06) 1px, transparent 1px);
  background-size: 16px 16px;
}
.phase-bild svg { width: 100%; height: 100%; display: block; overflow: visible; }
.phase-bild .linie { fill: none; stroke: rgb(255 255 255 / 0.7); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phase-bild .flaeche { fill: rgb(255 255 255 / 0.7); }
.phase-bild .kran path { fill: none; stroke: rgb(255 255 255 / 0.7); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
/* Grün = immer das Gebäude (bereits vorhanden: "bau", in dieser Phase neu: "neu"); Weiß = Fenster, Kran, Umgebung */
.phase-bild .bau { fill: none; stroke: var(--gruen); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.phase-bild .bau-flaeche { fill: var(--gruen); }
.phase-bild .neu.hell { stroke: rgb(255 255 255 / 0.85); stroke-width: 1.6; }
.phase-bild .neu { fill: none; stroke: var(--gruen); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.phase-bild .neu-flaeche { fill: var(--gruen); }
.phase-bild .phase-haken { fill: none; stroke: var(--nacht-tief); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.phase h3 { font-size: var(--s1); margin-bottom: 0.4em; }
.phase p { font-size: 0.975rem; margin: 0 0 1.25rem; flex: 1; }
.phase-fortschritt {
  display: block; height: 4px; border-radius: 2px; background: rgb(255 255 255 / 0.12); overflow: hidden;
}
.phase-fortschritt::before {
  content: ""; display: block; height: 100%; width: calc(var(--anteil) * 100%);
  background: var(--gruen); border-radius: 2px;
}
.phase:hover { transform: translateY(-5px); border-color: rgb(139 191 65 / 0.55); background: rgb(255 255 255 / 0.07); }

/* Zeichnen beim Hineinscrollen (nur mit JS, ohne JS ist alles sofort sichtbar) */
.js .phasen .neu { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s cubic-bezier(.4, 0, .2, 1); }
.js .phasen .neu-flaeche { transform-box: fill-box; transform-origin: center bottom; transform: scaleY(0); transition: transform 0.7s cubic-bezier(.2, .7, .2, 1); }
.js .phasen .phase-siegel { transform-origin: center; transform: scale(0); }
.js .phasen .phase-haken { stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset 0.5s ease-out; }
.js .phasen .phase-fortschritt::before { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.js .phasen.sichtbar .neu, .js .phasen.sichtbar .phase-haken { stroke-dashoffset: 0; }
.js .phasen.sichtbar .neu-flaeche, .js .phasen.sichtbar .phase-fortschritt::before { transform: none; }
.js .phasen.sichtbar .phase:nth-child(2) :is(.neu, .neu-flaeche), .js .phasen.sichtbar .phase:nth-child(2) .phase-fortschritt::before { transition-delay: 0.35s; }
.js .phasen.sichtbar .phase:nth-child(3) :is(.neu, .neu-flaeche), .js .phasen.sichtbar .phase:nth-child(3) .phase-fortschritt::before { transition-delay: 0.7s; }
.js .phasen.sichtbar .phase:nth-child(4) :is(.neu-flaeche), .js .phasen.sichtbar .phase:nth-child(4) .phase-fortschritt::before { transition-delay: 1.05s; }
.js .phasen.sichtbar .phase:nth-child(4) .phase-haken { transition-delay: 1.5s; }

/* Zweispaltiger Fließtext auf Unterseiten */
.inhalt { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2rem, 6vw, 6rem); }
.inhalt h2 { font-size: var(--s3); }
.inhalt-text p { font-size: 1.125rem; }
.inhalt-text h3 { font-size: var(--s1); margin-top: 2rem; }

.haken { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.haken li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; max-width: 60ch; }
.haken li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.45em; width: 0.9rem; height: 0.5rem;
  border-left: 2.5px solid var(--gruen); border-bottom: 2.5px solid var(--gruen); transform: rotate(-45deg);
}

/* FAQ */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--linie); }
.faq details:first-child { border-top: 1px solid var(--linie); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem 3rem 1.35rem 0; position: relative;
  font-weight: 600; font-size: 1.125rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.7rem; height: 0.7rem;
  border-right: 2px solid var(--nacht); border-bottom: 2px solid var(--nacht);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--stahl); padding-bottom: 1.25rem; margin: 0; }

/* Abschluss-Aufruf */
.aufruf { background: var(--gruen); color: var(--nacht-tief); padding-block: clamp(2rem, 4vw, 3rem); }
.aufruf .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.aufruf h2 { font-size: var(--s3); margin: 0; max-width: 22ch; }
.aufruf p { margin: 0.4rem 0 0; font-size: 1.0625rem; }

/* Kontakt */
.kontakt { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.formular { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.feld { display: flex; flex-direction: column; gap: 0.4rem; }
.feld--voll { grid-column: 1 / -1; }
.feld label { font-weight: 600; font-size: 0.95rem; }
.feld .optional { font-weight: 400; color: var(--stahl); }
.feld input, .feld select, .feld textarea {
  font: inherit; color: var(--text); background: var(--weiss);
  border: 1.5px solid var(--linie); border-radius: 4px; padding: 0.75rem 0.85rem; width: 100%;
}
.feld textarea { min-height: 9rem; resize: vertical; }
.feld input:focus-visible, .feld select:focus-visible, .feld textarea:focus-visible {
  outline: 3px solid var(--gruen); outline-offset: 0; border-color: var(--nacht);
}
.einwilligung { grid-column: 1 / -1; display: flex; gap: 0.75rem; align-items: flex-start; font-size: 0.95rem; }
.einwilligung input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--nacht); flex: none; }
.formular-fehler { grid-column: 1 / -1; margin: 0; padding: 0.85rem 1rem; border-left: 4px solid #b3261e; background: #fdecea; color: #5c1410; border-radius: 4px; }
.versteckt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kontakt-info { background: var(--nacht); color: var(--weiss); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 4px; }
.kontakt-info h2 { font-size: var(--s2); }
.kontakt-info dl { margin: 0; }
.kontakt-info dt { color: rgb(255 255 255 / 0.7); font-size: var(--s-1); margin-top: 1.1rem; }
.kontakt-info dd { margin: 0.15rem 0 0; font-weight: 600; }

/* Rechtstexte */
.recht { max-width: 46rem; }
.recht h2 { font-size: var(--s2); margin-top: 2.5rem; }
.recht h3 { font-size: var(--s1); margin-top: 1.75rem; }
.platzhalter { background: #FFF3C4; padding: 0 0.25rem; border-radius: 2px; }

/* Preise */
.preise {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem);
}
.preise--drei { grid-template-columns: repeat(3, 1fr); }
.preis-karte {
  position: relative; display: flex; flex-direction: column;
  background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform 0.4s cubic-bezier(.2, .7, .2, 1), box-shadow 0.4s, border-color 0.4s;
}
.preis-karte:hover { transform: translateY(-5px); border-color: rgb(139 191 65 / 0.6); box-shadow: 0 20px 40px -24px rgb(15 44 74 / 0.45); }
.preis-karte--hervor { border: 2px solid var(--gruen); box-shadow: 0 20px 40px -26px rgb(15 44 74 / 0.5); }
.preis-marke {
  position: absolute; top: -0.8rem; left: clamp(1.5rem, 2.5vw, 2rem);
  background: var(--gruen); color: var(--nacht-tief); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 0.3rem 0.7rem; border-radius: 4px;
}
.preis-karte h3 { font-size: var(--s1); margin-bottom: 0.6rem; }
.preis-betrag { font-size: var(--s3); font-weight: 800; font-stretch: var(--breit); line-height: 1; margin: 0 0 0.5rem; letter-spacing: -0.02em; }
.preis-betrag small { font-size: 1rem; font-weight: 600; color: var(--stahl); letter-spacing: 0; margin-right: 0.15rem; }
.preis-kurz { font-weight: 600; margin: 0 0 1rem; }
.preis-karte .haken { margin: 0 0 1.5rem; flex: 1; }
.preis-karte .haken li { font-size: 0.975rem; margin-bottom: 0.55rem; }
.preis-karte .knopf { align-self: stretch; }
.abschnitt--nacht .preis-karte { background: rgb(255 255 255 / 0.05); border-color: rgb(255 255 255 / 0.14); }
.abschnitt--nacht .preis-karte--hervor { border-color: var(--gruen); background: rgb(255 255 255 / 0.08); }
.abschnitt--nacht .preis-karte:hover { border-color: rgb(139 191 65 / 0.6); background: rgb(255 255 255 / 0.08); }
.abschnitt--nacht .preis-betrag small { color: rgb(255 255 255 / 0.65); }
.abschnitt--nacht .preis-karte .haken li { color: rgb(255 255 255 / 0.85); }
.konditionen { margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.konditionen div { background: var(--weiss); border-radius: 12px; padding: 1.4rem 1.5rem; border-left: 4px solid var(--gruen); }
.konditionen dt { font-weight: 700; margin-bottom: 0.35rem; }
.konditionen dd { margin: 0; color: var(--stahl); }
.preis-steuer { margin: 2rem 0 0; font-size: var(--s-1); color: var(--stahl); }

/* ---------- Fußzeile ---------- */
.fuss { background: var(--nacht-tief); color: rgb(255 255 255 / 0.8); padding-block: 4rem 2rem; font-size: 0.95rem; }
.fuss-raster { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.fuss h2 { font-size: 1rem; font-stretch: 100%; letter-spacing: 0; color: var(--weiss); margin-bottom: 0.9rem; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 0.45rem; }
.fuss a { text-decoration: none; }
.fuss a:hover { text-decoration: underline; color: var(--weiss); }
.fuss .marke { margin-bottom: 1rem; color: var(--weiss); }
.fuss-unten { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / 0.15); font-size: var(--s-1); }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
  .kacheln { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 1rem; }
  .kachel { display: flex; flex-direction: column; justify-content: flex-end; grid-row: auto; min-height: 24rem; }
  .kachel h3 { font-size: clamp(1.375rem, 6.4vw, 1.875rem); }
  .leistungen-kopf { grid-template-columns: 1fr; }
  .ueber-kopf { flex-direction: row; justify-content: space-between; gap: 1.5rem; width: auto; }
  .ueber-kopf h2 { margin: 0; }
  .ueber-logo { width: 7rem; margin: 0 1rem 0 0; }
  .schritte { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .ueber, .inhalt, .kontakt { grid-template-columns: 1fr; }
  .fakten { grid-template-columns: 1fr; grid-template-rows: none; row-gap: 1rem; }
  .fakten li { display: block; grid-row: auto; }
  .phasen { grid-template-columns: 1fr 1fr; }
  .preise, .preise--drei, .konditionen { grid-template-columns: 1fr 1fr; }
  .fuss-raster { grid-template-columns: 1fr 1fr; }
  .fuss-raster > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .menue-knopf { display: inline-block; font-size: 1.05rem; padding: 0.55rem 1rem; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--nacht); display: none; padding: 0.5rem var(--rand) 1.5rem; }
  .nav.offen { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a { padding: 0.85rem 0.25rem; border-bottom: 1px solid rgb(255 255 255 / 0.12); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--gruen); padding-left: 0.75rem; }
  .nav .knopf { margin: 1rem 0 0; border: 0; justify-content: center; }
  .kopf.offen { background: var(--nacht); }
}

@media (max-width: 760px) {
  .ablauf { --icon: 3.25rem; }
  .ablauf ol { grid-template-columns: 1fr; grid-template-rows: none; gap: 1.25rem; }
  .ablauf-schritt { display: flex; flex-direction: row; align-items: flex-start; gap: 1rem; grid-row: auto; }
  .ablauf-schritt .ablauf-icon { margin-bottom: 0; }
  .ablauf-schritt .ablauf-karte { display: block; }
  .ablauf-nr { font-size: 2.25rem; }
  .ablauf-schritt.aktiv .ablauf-karte { transform: none; }
}

@media (max-width: 600px) {
  .schritte { grid-template-columns: 1fr; }
  .werte { grid-template-columns: 1fr; }
  .phasen { grid-template-columns: 1fr; }
  .preise, .preise--drei, .konditionen { grid-template-columns: 1fr; }
  .preise { row-gap: 1.75rem; }
  .haken--zweispaltig { grid-template-columns: 1fr; }
  .bildstreifen--breit img { aspect-ratio: 16 / 10; }
  .kopf .wrap { min-height: 5.25rem; }
  .kopf .marke img { width: 48px; height: 48px; }
  .kopf .marke span { font-size: 1.5rem; }
  .bildstreifen { grid-template-columns: 1fr; }
  .formular { grid-template-columns: 1fr; }
  .fuss-raster { grid-template-columns: 1fr; }
  .hero-inhalt { padding-inline: calc(var(--rand) + 1rem); }
  .knopf { width: 100%; }
  .nav .knopf, .video-pause { width: auto; }
  .video-pause { top: 6.5rem; bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
