/* ============================================================
   Kübler Web & Design — Relaunch 2026
   Design-System „HOLO-WERKSTATT — Der leuchtende Bauplan“
   Dunkler Raum, Neon-Grün, Glas, Scan-Effekte. Stand 08/2026.
   Gesetz 1: Der Raum ist dunkel, das Handwerk leuchtet.
   Gesetz 2: Jede Bewegung erzählt Scannen, Projizieren oder Vermessen.
   Gesetz 3: Ohne JS/WebGL muss jede Seite als fertiges Design bestehen.
   Kontraste (Helios-geprüft): Neon/Raum 11,9:1 · Text/Raum 13,1:1 ·
   Weiß/Raum 17,6:1 · Muted/Raum 8,5:1 · Signal/Raum 7,0:1
   ============================================================ */

/* ---------- 1. Tokens ---------- */

:root {
  /* Raum & Flächen — Stand „Morgenlicht" 21.08.: wärmer und heller,
     Kontraste neu gerechnet: Text/Raum 13,3:1 · Muted/Raum 9,3:1 ·
     Neon/Raum 10,4:1 · Signal/Raum 6,1:1 · Text/Panel 10,4:1 */
  --c-raum: #0d1f18;          /* tiefster Grund: warmes Tannengrün statt Schwarz */
  --c-ebene: #12291f;         /* Wechselsektionen, leicht angehoben */
  --c-panel: rgba(32, 56, 45, 0.6);    /* Glas-Panels, wärmer */
  --c-panel-voll: #18342a;    /* opake Panel-Variante (Fallback, Formulare) */

  /* Licht */
  --c-neon: #57e389;          /* Kübler-Grün als Neon — Akzent, Glow, Maße */
  --c-neon-tief: #3fae66;     /* gedimmtes Neon für Flächen/Borders */
  --c-weiss: #f4fbf6;         /* Headlines */
  --c-text: #d5e7db;          /* Fließtext */
  --c-muted: #a3c7b1;         /* Sekundärtext, Eyebrows */
  --c-linie: rgba(87, 227, 137, 0.2);   /* Hairlines */
  --c-linie-still: rgba(213, 231, 219, 0.14); /* neutrale Hairlines */
  --c-signal: #ff6b4a;        /* NUR Formularfehler + Korrektur-Callouts */
  --c-markierung: rgba(87, 227, 137, 0.24); /* ::selection */
  --c-sonne: rgba(255, 214, 150, 0.07); /* warmes Streiflicht für Flächen-Verläufe */

  /* Glow */
  --glow-sm: 0 0 12px rgba(87, 227, 137, 0.35);
  --glow-md: 0 0 24px rgba(87, 227, 137, 0.3), 0 0 64px rgba(87, 227, 137, 0.12);
  --glow-text: 0 0 18px rgba(87, 227, 137, 0.45);

  /* Typografie */
  --f-display: "Space Grotesk", "Inter Display", system-ui, sans-serif;
  --f-zwischen: "Inter Display", "Inter", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, sans-serif;

  --t-h1: clamp(2.75rem, 5.5vw, 4.25rem);
  --t-h1-sub: clamp(2.1rem, 4.5vw, 3.2rem);
  --t-h2: clamp(2rem, 3.6vw, 2.5625rem);
  --t-h3: clamp(1.35rem, 2vw, 1.625rem);
  --t-card: 1.3125rem;
  --t-lead: clamp(1.125rem, 1.6vw, 1.3125rem);
  --t-body: 1.0625rem;
  --t-small: 0.9375rem;
  --t-eyebrow: 0.84375rem;
  --t-mess: 0.71875rem;

  /* Spacing (8px-Grundlinie) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 40px; --s-8: 56px; --s-9: 80px; --s-10: 120px;
  --sektion: clamp(4.5rem, 9vw, 8.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);

  /* Geometrie */
  --r-card: 14px;
  --r-frame: 12px;
  --r-btn: 10px;
  --r-input: 10px;
  --r-chip: 8px;

  /* Motion */
  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --e-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --d-micro: 200ms;
  --d-reveal: 600ms;
  --d-line: 600ms;
  --d-mode: 700ms;
}

/* ---------- 2. Reset & Basis ---------- */

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

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

body {
  font-family: var(--f-body);
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--c-text);
  background:
    radial-gradient(1100px 600px at 78% -10%, rgba(87, 227, 137, 0.09), transparent 60%),
    radial-gradient(760px 460px at 18% 4%, var(--c-sonne), transparent 65%),
    radial-gradient(900px 700px at -10% 108%, rgba(63, 174, 102, 0.06), transparent 60%),
    var(--c-raum);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

::selection { background: var(--c-markierung); color: var(--c-weiss); }

:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-panel-voll); color: var(--c-weiss);
  padding: 10px 16px; z-index: 200; border: 1px solid var(--c-neon);
}
.skip-link:focus { left: 12px; top: 12px; }

.container {
  width: min(1200px, calc(100vw - 2 * var(--gutter)));
  margin-inline: auto;
}
.container--schmal { width: min(880px, calc(100vw - 2 * var(--gutter))); }

.prosa { max-width: 68ch; }
.prosa--recht { max-width: 72ch; }

/* ---------- 3. Typografie ---------- */

h1, .t-h1 {
  font-family: var(--f-display);
  font-weight: 650;
  font-size: var(--t-h1);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--c-weiss);
  text-wrap: balance;
}
.t-h1-sub { font-size: var(--t-h1-sub); }

h2, .t-h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--t-h2);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--c-weiss);
  text-wrap: balance;
}

h3, .t-h3 {
  font-family: var(--f-zwischen);
  font-weight: 600;
  font-size: var(--t-h3);
  line-height: 1.25;
  color: var(--c-weiss);
}

h4, .t-h4 { font-family: var(--f-zwischen); font-weight: 600; font-size: var(--t-card); line-height: 1.3; color: var(--c-weiss); }

/* Neon-Betonung in Headlines — mit sanftem Glow */
h1 em, h2 em, .neon {
  font-style: normal;
  color: var(--c-neon);
  text-shadow: var(--glow-text);
}

.lead {
  font-family: var(--f-zwischen);
  font-weight: 600;
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--c-weiss);
}
.lead--leicht { font-family: var(--f-body); font-weight: 400; color: var(--c-text); }

p + p { margin-top: 1em; }

.muted { color: var(--c-muted); }
.small { font-size: var(--t-small); }

/* Mess-Typo (HUD-Labels): Maße, Eyebrows, Plankopf, Schriftfeld */
.mess {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-mess);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-eyebrow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-feature-settings: "tnum";
  color: var(--c-muted);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--c-neon);
  box-shadow: var(--glow-sm);
  flex: none;
}

.tnum { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

strong { font-weight: 600; color: var(--c-weiss); }

/* Textlinks */
.textlink, .prosa a, .merksatz a {
  color: var(--c-neon);
  font-weight: 500;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--d-micro) var(--e-out), text-shadow var(--d-micro) var(--e-out);
  padding-bottom: 1px;
}
.textlink:hover, .prosa a:hover, .merksatz a:hover { background-size: 100% 1px; text-shadow: var(--glow-text); }

/* ---------- 4. Sektionen & Planrand ---------- */

main { display: block; }

.sek { padding-block: var(--sektion); position: relative; }
.sek--karton {                                         /* „Ebene“: leicht angehobener Raum mit Streiflicht */
  background:
    radial-gradient(900px 420px at 82% 0%, var(--c-sonne), transparent 62%),
    var(--c-ebene);
}
.sek--dunkel { background: #0a1912; }                  /* tiefste Bühne (Referenzen, Kontakt) */
.sek--kompakt { padding-block: calc(var(--sektion) * 0.55); }

.sek-kopf { max-width: 720px; margin-bottom: var(--s-8); }
.sek-kopf .lead--leicht { margin-top: var(--s-4); }

/* Planrand: 56px-Randspalte links, nur ≥ 1200px — jetzt als HUD-Schiene */
@media (min-width: 1200px) {
  body::before {
    content: "";
    position: fixed;
    left: 56px; top: 0; bottom: 0;
    width: 1px;
    background:
      repeating-linear-gradient(
        to bottom,
        rgba(87, 227, 137, 0.25) 0 1px,
        transparent 1px 160px
      ),
      linear-gradient(rgba(87, 227, 137, 0.1), rgba(87, 227, 137, 0.1));
    background-size: 7px 100%, 1px 100%;
    background-repeat: repeat-y, no-repeat;
    background-position: 0 0, 3px 0;
    z-index: 1;
    pointer-events: none;
  }
  .sek[data-nr]::before {
    content: attr(data-nr);
    position: absolute;
    left: max(12px, calc((100vw - 1200px) / 2 - 88px));
    top: var(--sektion);
    font-family: var(--f-body);
    font-weight: 500;
    font-size: var(--t-mess);
    letter-spacing: 0.08em;
    font-feature-settings: "tnum";
    color: var(--c-neon);
    opacity: 0.7;
    text-shadow: var(--glow-sm);
  }
}
@media (max-width: 1199.98px) {
  body::before { content: none; }
}

/* ---------- 5. Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: 72px;
  z-index: 50;
  background: rgba(7, 13, 9, 0.72);
  box-shadow: 0 1px 0 var(--c-linie);
}
@supports (backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px)) {
  .header { -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
}
@supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .header { background: rgba(7, 13, 9, 0.96); }
}

.header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: var(--s-5);
}

.header__logo { flex: none; display: inline-flex; align-items: center; }
.header__logo img { height: 32px; width: auto; }

.header__nav {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  margin-inline: auto;
}
.header__nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--c-text);
  padding: 8px 2px;
  background-image: linear-gradient(var(--c-neon), var(--c-neon));
  background-size: 0% 2px;
  background-position: 0 calc(100% - 4px);
  background-repeat: no-repeat;
  transition: background-size var(--d-micro) var(--e-out), color var(--d-micro) var(--e-out), text-shadow var(--d-micro) var(--e-out);
}
.header__nav a:hover,
.header__nav a[aria-current="page"] { color: var(--c-neon); background-size: 100% 2px; text-shadow: var(--glow-text); }

.header__tel {
  display: none;
  font-weight: 500;
  font-size: 0.9375rem;
  font-feature-settings: "tnum";
  letter-spacing: 0.04em;
  color: var(--c-weiss);
  white-space: nowrap;
}
@media (min-width: 1100px) { .header__tel { display: inline-block; } }
.header__tel:hover { color: var(--c-neon); text-shadow: var(--glow-text); }

/* Bauplan-Schalter (HUD-Taste) */
.plan-schalter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(87, 227, 137, 0.35);
  background: rgba(87, 227, 137, 0.06);
  color: var(--c-neon);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-mess);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 9px 14px;
  border-radius: var(--r-btn);
  cursor: pointer;
  transition: border-color var(--d-micro) var(--e-out), background var(--d-micro) var(--e-out),
              color var(--d-micro) var(--e-out), box-shadow var(--d-micro) var(--e-out);
}
.plan-schalter svg { width: 14px; height: 14px; stroke: currentColor; }
.plan-schalter:hover { border-color: var(--c-neon); box-shadow: var(--glow-sm); }
.plan-schalter[aria-pressed="true"] {
  background: var(--c-neon);
  border-color: var(--c-neon);
  color: #071208;
  box-shadow: var(--glow-md);
}

/* Lineal-Fortschritt: 2px Neon-Progress + Ticks bei 25/50/75 % */
.lineal {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 7px;
  pointer-events: none;
}
.lineal__tick { position: absolute; top: 0; width: 1px; height: 6px; background: var(--c-linie); }
.lineal__tick:nth-child(1) { left: 25%; }
.lineal__tick:nth-child(2) { left: 50%; }
.lineal__tick:nth-child(3) { left: 75%; }
.lineal__balken {
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--c-neon-tief), var(--c-neon));
  box-shadow: var(--glow-sm);
  transform-origin: 0 0;
  transform: scaleX(var(--scroll-p, 0));
}

/* Burger (mobil) */
.header__burger {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  color: var(--c-weiss);
}
.header__burger svg { width: 22px; height: 22px; }

@media (max-width: 899.98px) {
  .header__inner .header__nav,
  .header__inner .header__cta,
  .header__inner .plan-schalter--header,
  .header__inner .header__tel { display: none; }
  .header__burger { display: inline-flex; }
  .header__inner { justify-content: space-between; }
}

/* Mobile Nav-Overlay */
.nav-overlay {
  position: fixed; inset: 0;
  z-index: 60;
  background:
    radial-gradient(800px 500px at 80% 0%, rgba(87, 227, 137, 0.08), transparent 60%),
    #0a1912;
  color: var(--c-weiss);
  display: flex;
  flex-direction: column;
  padding: max(24px, env(safe-area-inset-top)) var(--gutter) max(32px, env(safe-area-inset-bottom));
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--e-inout), visibility 0s 300ms;
}
.nav-overlay.offen { opacity: 1; visibility: visible; transition: opacity 300ms var(--e-inout); }

.nav-overlay__kopf { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.nav-overlay__kopf img { height: 30px; width: auto; }
.nav-overlay__zu {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.nav-overlay__zu svg { width: 22px; height: 22px; }

.nav-overlay__links {
  margin-block: auto;
  display: grid;
  gap: var(--s-4);
  list-style: none;
}
.nav-overlay__links a {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2rem, 8vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}
.nav-overlay__links a:hover { color: var(--c-neon); text-shadow: var(--glow-text); }
.nav-overlay__links .mess { color: var(--c-neon); opacity: 0.7; }
.nav-overlay.offen .nav-overlay__links li {
  animation: nav-setzen var(--d-reveal) var(--e-out) both;
  animation-delay: calc(var(--d, 0) * 80ms + 80ms);
}
@keyframes nav-setzen {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.nav-overlay__fuss { display: grid; gap: var(--s-4); }
.nav-overlay__tel {
  font-family: var(--f-zwischen);
  font-weight: 600;
  font-size: 1.4rem;
  font-feature-settings: "tnum";
  color: var(--c-weiss);
}

/* Sticky Bottom-Action-Bar (mobil) */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 45;
  display: none;
  grid-template-columns: 1fr 1fr 1fr;
  background: rgba(10, 18, 13, 0.92);
  box-shadow: 0 -1px 0 var(--c-linie);
  padding-bottom: env(safe-area-inset-bottom);
  transform: translateY(110%);
  transition: transform 300ms var(--e-out);
}
@supports (backdrop-filter: blur(12px)) {
  .action-bar { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
.action-bar.sichtbar { transform: none; }
.action-bar a {
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--c-weiss);
  border-left: 1px solid var(--c-linie-still);
}
.action-bar a:first-child { border-left: 0; }
.action-bar svg { width: 17px; height: 17px; flex: none; stroke: var(--c-neon); }
@media (max-width: 899.98px) {
  .action-bar { display: grid; }
  body.hat-actionbar { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* ---------- 6. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  padding: 15px 24px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--d-micro) var(--e-out), color var(--d-micro) var(--e-out),
              border-color var(--d-micro) var(--e-out), box-shadow var(--d-micro) var(--e-out),
              transform var(--d-micro) var(--e-out);
}

/* Primär: Neon, glüht */
.btn--primaer {
  background: linear-gradient(135deg, #6ff09c, var(--c-neon) 45%, var(--c-neon-tief));
  color: #071208;
  box-shadow: var(--glow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primaer:hover {
  box-shadow: var(--glow-md), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

/* Sekundär: Glas mit Neon-Kante */
.btn--sekundaer {
  background: rgba(87, 227, 137, 0.05);
  color: var(--c-weiss);
  border-color: rgba(87, 227, 137, 0.35);
  position: relative;
}
.btn--sekundaer:hover { border-color: var(--c-neon); color: var(--c-neon); box-shadow: var(--glow-sm); }
.btn--sekundaer.tnum { font-feature-settings: "tnum"; letter-spacing: 0.04em; }

/* Eck-Anfasser für Sekundär-Hover */
.btn--sekundaer::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: calc(var(--r-btn) + 4px);
  background:
    linear-gradient(var(--c-neon) 0 0) top left / 8px 2px,
    linear-gradient(var(--c-neon) 0 0) top left / 2px 8px,
    linear-gradient(var(--c-neon) 0 0) top right / 8px 2px,
    linear-gradient(var(--c-neon) 0 0) top right / 2px 8px,
    linear-gradient(var(--c-neon) 0 0) bottom left / 8px 2px,
    linear-gradient(var(--c-neon) 0 0) bottom left / 2px 8px,
    linear-gradient(var(--c-neon) 0 0) bottom right / 8px 2px,
    linear-gradient(var(--c-neon) 0 0) bottom right / 2px 8px;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity var(--d-micro) var(--e-out);
  pointer-events: none;
}
.btn--sekundaer:hover::after { opacity: 1; }

.btn-zeile { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- 7. Cards: Glas-Panels + Eck-Anfasser ---------- */

.card {
  background: linear-gradient(var(--c-panel), var(--c-panel)) padding-box,
              linear-gradient(150deg, rgba(87, 227, 137, 0.45), rgba(87, 227, 137, 0.08) 40%, rgba(194, 216, 202, 0.1)) border-box;
  border: 1px solid transparent;
  border-radius: var(--r-card);
  padding: clamp(20px, 3vw, 32px);
  position: relative;
  transition: transform var(--d-micro) var(--e-out), box-shadow var(--d-micro) var(--e-out);
}
@supports (backdrop-filter: blur(10px)) {
  .card { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
.card > * + * { margin-top: var(--s-3); }
.card h3, .card h4 { font-size: var(--t-card); }

.card--hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-md);
}

/* Die Hover-Signatur: vier leuchtende L-Anfasser */
.anfasser::after,
.card--hover::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: calc(var(--r-card) + 5px);
  background:
    linear-gradient(var(--c-neon) 0 0) top left / 12px 2px,
    linear-gradient(var(--c-neon) 0 0) top left / 2px 12px,
    linear-gradient(var(--c-neon) 0 0) top right / 12px 2px,
    linear-gradient(var(--c-neon) 0 0) top right / 2px 12px,
    linear-gradient(var(--c-neon) 0 0) bottom left / 12px 2px,
    linear-gradient(var(--c-neon) 0 0) bottom left / 2px 12px,
    linear-gradient(var(--c-neon) 0 0) bottom right / 12px 2px,
    linear-gradient(var(--c-neon) 0 0) bottom right / 2px 12px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 6px rgba(87, 227, 137, 0.6));
  opacity: 0;
  transition: opacity var(--d-micro) var(--e-out);
  pointer-events: none;
}
.card--hover:hover::after,
.anfasser.an::after,
.anfasser--fest::after { opacity: 1; }

.karten-raster {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}

/* Scan-Sweep: leuchtende Linie fährt beim Reveal einmal durchs Panel */
.scan { overflow: hidden; }
.scan::before {
  content: "";
  position: absolute;
  left: -10%; right: -10%;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--c-neon), transparent);
  box-shadow: 0 0 16px rgba(87, 227, 137, 0.8);
  opacity: 0;
  pointer-events: none;
}
.scan.on::before { animation: scan-fahrt 900ms var(--e-inout) 120ms; }
@keyframes scan-fahrt {
  0% { opacity: 0; top: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; top: calc(100% - 2px); }
}

/* ---------- 8. Listen ---------- */

.hakenliste { list-style: none; display: grid; gap: var(--s-3); }
.hakenliste li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.hakenliste svg {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 5px;
  stroke: var(--c-neon);
  filter: drop-shadow(0 0 4px rgba(87, 227, 137, 0.5));
}
.hakenliste svg path {
  stroke-dasharray: 20;
  stroke-dashoffset: 0;
}
[data-reveal]:not(.on) .hakenliste svg path { stroke-dashoffset: 20; }
.on .hakenliste svg path,
.hakenliste.on svg path { transition: stroke-dashoffset 300ms var(--e-out) 200ms; stroke-dashoffset: 0; }

/* Chips */
.chip-zeile { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--c-linie);
  background: rgba(87, 227, 137, 0.04);
  border-radius: var(--r-chip);
  padding: 8px 14px;
  font-size: var(--t-small);
  font-weight: 500;
  color: var(--c-text);
  transition: border-color var(--d-micro) var(--e-out), color var(--d-micro) var(--e-out), box-shadow var(--d-micro) var(--e-out);
}
a.chip:hover { border-color: var(--c-neon); color: var(--c-neon); box-shadow: var(--glow-sm); }
.chip .mess { color: var(--c-muted); }

/* ---------- 9. Stückliste (Preise als HUD-Tabelle) ---------- */

.stueckliste {
  background: linear-gradient(var(--c-panel), var(--c-panel)) padding-box,
              linear-gradient(150deg, rgba(87, 227, 137, 0.4), rgba(87, 227, 137, 0.08) 45%, rgba(194, 216, 202, 0.1)) border-box;
  border: 1px solid transparent;
  border-radius: var(--r-card);
  overflow: hidden;
}
.stueckliste__zeile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--s-5);
  align-items: baseline;
  padding: clamp(18px, 2.5vw, 26px) clamp(18px, 3vw, 32px);
  border-top: 1px solid var(--c-linie-still);
  position: relative;
}
.stueckliste__zeile:first-child { border-top: 0; }
.stueckliste__pos { color: var(--c-muted); }
.stueckliste__was h3 { font-size: var(--t-card); margin-bottom: 4px; }
.stueckliste__was p { color: var(--c-muted); font-size: var(--t-small); max-width: 52ch; }
.stueckliste__preis {
  font-family: var(--f-zwischen);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-feature-settings: "tnum";
  white-space: nowrap;
  text-align: right;
  color: var(--c-neon);
  text-shadow: var(--glow-text);
}
.stueckliste__preis .mess { display: block; color: var(--c-muted); margin-top: 2px; text-align: right; text-shadow: none; }

.stueckliste__zeile--empfohlen { background: rgba(87, 227, 137, 0.08); }
.stueckliste__zeile--empfohlen::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 8px;
  background:
    linear-gradient(var(--c-neon) 0 0) top left / 12px 2px,
    linear-gradient(var(--c-neon) 0 0) top left / 2px 12px,
    linear-gradient(var(--c-neon) 0 0) top right / 12px 2px,
    linear-gradient(var(--c-neon) 0 0) top right / 2px 12px,
    linear-gradient(var(--c-neon) 0 0) bottom left / 12px 2px,
    linear-gradient(var(--c-neon) 0 0) bottom left / 2px 12px,
    linear-gradient(var(--c-neon) 0 0) bottom right / 12px 2px,
    linear-gradient(var(--c-neon) 0 0) bottom right / 2px 12px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 6px rgba(87, 227, 137, 0.5));
  pointer-events: none;
}
.stueckliste__badge {
  position: absolute;
  top: 14px; right: 14px;
  color: var(--c-neon);
}
@media (max-width: 640px) {
  .stueckliste__zeile { grid-template-columns: 1fr auto; }
  .stueckliste__pos { display: none; }
}

/* ---------- 10. FAQ ---------- */

.faq { display: grid; gap: 0; border-top: 1px solid var(--c-linie-still); }
.faq details { border-bottom: 1px solid var(--c-linie-still); }
.faq summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: var(--s-4);
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  font-family: var(--f-zwischen);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--c-weiss);
  transition: color var(--d-micro) var(--e-out), text-shadow var(--d-micro) var(--e-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c-neon); text-shadow: var(--glow-text); }
.faq summary .mess { color: var(--c-muted); }
.faq summary .faq__marker {
  align-self: center;
  width: 16px; height: 16px;
  position: relative;
  transition: transform 350ms var(--e-inout);
}
.faq__marker::before, .faq__marker::after {
  content: "";
  position: absolute;
  background: var(--c-neon);
  box-shadow: 0 0 6px rgba(87, 227, 137, 0.6);
}
.faq__marker::before { left: 0; right: 0; top: 7px; height: 2px; }
.faq__marker::after { top: 0; bottom: 0; left: 7px; width: 2px; }
.faq details[open] .faq__marker { transform: rotate(45deg); }
.faq details[open] summary { color: var(--c-neon); }

.faq__inhalt {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 350ms var(--e-inout);
}
.faq details[open] .faq__inhalt { grid-template-rows: 1fr; }
.faq__inhalt > div { overflow: hidden; }
.faq__inhalt p, .faq__inhalt ul {
  margin: 0 0 20px;
  padding-left: 40px;
  max-width: 68ch;
  color: var(--c-text);
  border-left: 2px solid var(--c-neon);
  margin-left: 2px;
}
.faq__inhalt ul { list-style-position: inside; }
.faq__inhalt p + p { margin-top: -8px; }
@media (max-width: 640px) {
  .faq__inhalt p, .faq__inhalt ul { padding-left: 16px; }
}

/* ---------- 11. Formular (Glas-HUD) ---------- */

.feld { display: grid; gap: 8px; }
.feld label {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-mess);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-muted);
}
.feld label .pflicht { color: var(--c-neon); }

.feld input[type="text"],
.feld input[type="email"],
.feld input[type="tel"],
.feld select,
.feld textarea {
  width: 100%;
  font: inherit;
  color: var(--c-weiss);
  background: rgba(7, 13, 9, 0.6);
  border: 1px solid var(--c-linie-still);
  border-radius: var(--r-input);
  padding: 14px 16px;
  transition: border-color var(--d-micro) var(--e-out), box-shadow var(--d-micro) var(--e-out);
  appearance: none;
}
.feld textarea { min-height: 150px; resize: vertical; }
.feld select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238fb39d' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.feld select option { background: var(--c-panel-voll); color: var(--c-weiss); }

.feld { position: relative; }
.feld .bodenlinie {
  position: absolute;
  left: 1px; right: 1px; bottom: 1px;
  height: 2px;
  border-radius: 0 0 var(--r-input) var(--r-input);
  background: var(--c-neon);
  box-shadow: var(--glow-sm);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 250ms var(--e-out);
  pointer-events: none;
}
.feld:focus-within .bodenlinie { transform: scaleX(1); }
.feld:focus-within input, .feld:focus-within textarea, .feld:focus-within select {
  border-color: rgba(87, 227, 137, 0.4);
  outline: none;
}

/* Fehler: Signal */
.feld.fehler input, .feld.fehler textarea, .feld.fehler select { border-color: var(--c-signal); }
.feld__fehler {
  display: none;
  color: var(--c-signal);
  font-size: var(--t-small);
  font-weight: 500;
}
.feld.fehler .feld__fehler { display: block; }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--t-small);
  color: var(--c-muted);
}
.check input {
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--c-neon);
}

/* Formular-Blatt: Glas-Panel mit HUD-Kopfzeile */
.blatt {
  background: linear-gradient(rgba(16, 27, 20, 0.85), rgba(16, 27, 20, 0.85)) padding-box,
              linear-gradient(150deg, rgba(87, 227, 137, 0.5), rgba(87, 227, 137, 0.1) 45%, rgba(194, 216, 202, 0.12)) border-box;
  border: 1px solid transparent;
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
}
@supports (backdrop-filter: blur(14px)) {
  .blatt { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
.blatt__kopf {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  justify-content: space-between;
  padding: 14px clamp(18px, 3vw, 32px);
  border-bottom: 1px solid var(--c-linie);
  color: var(--c-neon);
}
.blatt__inhalt { padding: clamp(20px, 3.5vw, 36px); display: grid; gap: var(--s-6); }
.blatt fieldset { border: 0; display: grid; gap: var(--s-4); min-width: 0; }
.blatt legend {
  font-family: var(--f-zwischen);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--c-weiss);
  margin-bottom: var(--s-3);
  padding: 0;
}
.blatt legend .mess { color: var(--c-neon); margin-right: 10px; }

.feld-zeile { display: grid; gap: var(--s-4); }
@media (min-width: 640px) { .feld-zeile--2 { grid-template-columns: 1fr 1fr; } }

/* Stempel EINGEGANGEN */
.stempel {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(7, 13, 9, 0.82);
  z-index: 5;
}
.blatt.eingegangen .stempel { display: flex; }
.stempel span {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: 0.12em;
  color: var(--c-neon);
  text-shadow: var(--glow-text);
  border: 3px solid var(--c-neon);
  border-radius: 6px;
  padding: 14px 28px;
  box-shadow: var(--glow-md), inset 0 0 24px rgba(87, 227, 137, 0.15);
  transform: rotate(-8deg);
  animation: stempel-setzen 250ms var(--e-out) both;
}
@keyframes stempel-setzen {
  from { transform: rotate(-8deg) scale(1.15); opacity: 0; }
  to { transform: rotate(-8deg) scale(1); opacity: 1; }
}

.form-status { font-size: var(--t-small); font-weight: 500; }
.form-status.ok { color: var(--c-neon); }
.form-status.fehler { color: var(--c-signal); }

/* ---------- 12. Referenz-Karten (Projektions-Frames) ---------- */

.browser-frame {
  border-radius: var(--r-frame);
  background: linear-gradient(rgba(12, 21, 16, 0.9), rgba(12, 21, 16, 0.9)) padding-box,
              linear-gradient(150deg, rgba(87, 227, 137, 0.5), rgba(87, 227, 137, 0.12) 50%, rgba(194, 216, 202, 0.14)) border-box;
  border: 1px solid transparent;
  overflow: hidden;
  transition: box-shadow var(--d-micro) var(--e-out);
}
.referenz-karte:hover .browser-frame { box-shadow: var(--glow-md); }

.browser-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-linie);
}
.browser-frame__bar i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(87, 227, 137, 0.35);
}
.browser-frame__bar span {
  margin-left: 8px;
  font-size: var(--t-mess);
  letter-spacing: 0.06em;
  color: var(--c-muted);
  font-feature-settings: "tnum";
}

.browser-frame__view {
  aspect-ratio: 16 / 11;
  overflow: hidden;
  position: relative;
  container-type: size;
}
.browser-frame__view::after {
  /* Projektions-Glanz über dem Screenshot */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.1), transparent 30%, transparent 75%, rgba(87, 227, 137, 0.08));
  pointer-events: none;
}
.browser-frame__view img {
  width: 100%;
  height: auto;
  transition: transform 4.5s var(--e-inout);
}
.referenz-karte:hover .browser-frame__view img,
.browser-frame--rollt:hover .browser-frame__view img {
  transform: translateY(calc(-1 * max(0px, 100% - 100cqh)));
}
@supports not (height: 100cqh) {
  .referenz-karte:hover .browser-frame__view img,
  .browser-frame--rollt:hover .browser-frame__view img { transform: translateY(-55%); }
}

.referenz-karte { display: grid; gap: var(--s-4); }
.referenz-karte__meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); align-items: baseline; justify-content: space-between; }
.referenz-karte h3 { font-size: var(--t-card); }
.referenz-karte__links { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.referenz-karte__links a { font-weight: 500; font-size: var(--t-small); color: var(--c-weiss); }
.referenz-karte__links a:hover { color: var(--c-neon); text-shadow: var(--glow-text); }
.referenz-karte__links .pfeil { color: var(--c-neon); }

.masslinie-dunkel {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-muted);
}
.masslinie-dunkel::before, .masslinie-dunkel::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(87, 227, 137, 0.35);
  box-shadow: 0 0 8px rgba(87, 227, 137, 0.25);
}

/* ---------- 13. Merksatz-Box (HUD-Hinweis) ---------- */

.merksatz {
  position: relative;
  background: rgba(87, 227, 137, 0.07);
  border: 1px dashed rgba(87, 227, 137, 0.5);
  border-radius: 6px;
  padding: clamp(18px, 3vw, 26px);
  max-width: 68ch;
  color: var(--c-text);
}
.merksatz::after {
  content: "";
  position: absolute;
  inset: -5px;
  background:
    linear-gradient(var(--c-neon) 0 0) top left / 10px 2px,
    linear-gradient(var(--c-neon) 0 0) top left / 2px 10px,
    linear-gradient(var(--c-neon) 0 0) top right / 10px 2px,
    linear-gradient(var(--c-neon) 0 0) top right / 2px 10px,
    linear-gradient(var(--c-neon) 0 0) bottom left / 10px 2px,
    linear-gradient(var(--c-neon) 0 0) bottom left / 2px 10px,
    linear-gradient(var(--c-neon) 0 0) bottom right / 10px 2px,
    linear-gradient(var(--c-neon) 0 0) bottom right / 2px 10px;
  background-repeat: no-repeat;
  pointer-events: none;
}
.merksatz .mess { display: block; color: var(--c-neon); margin-bottom: 8px; }
.merksatz p { margin: 0; }

/* Korrektur-Callout (nur Case Studies) */
.korrektur {
  border-left: 3px solid var(--c-signal);
  padding: 4px 0 4px 16px;
  color: var(--c-text);
}
.korrektur .mess { color: var(--c-signal); display: block; margin-bottom: 4px; }

/* ---------- 14. Tabellen ---------- */

.tabelle-scroller { overflow-x: auto; }
table.plan-tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-small);
}
.plan-tabelle th {
  text-align: left;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-mess);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-neon);
  padding: 12px 16px;
  border-bottom: 1px solid rgba(87, 227, 137, 0.4);
}
.plan-tabelle td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-linie-still);
  vertical-align: top;
  color: var(--c-text);
}
.plan-tabelle td:first-child { font-weight: 500; color: var(--c-weiss); }

/* ---------- 15. Kontakt-Panel (global) ---------- */

.kontakt-panel { position: relative; overflow: hidden; }
.kontakt-panel .konturen,
.footer .konturen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.1;
  pointer-events: none;
}
.kontakt-panel__raster {
  display: grid;
  gap: var(--s-7);
  position: relative;
}
@media (min-width: 1000px) { .kontakt-panel__raster { grid-template-columns: 1.1fr 1fr; align-items: start; } }

.kontakt-panel h2 { color: var(--c-weiss); }

.kontakt-wege { display: grid; gap: var(--s-4); margin-top: var(--s-6); }
.kontakt-wege a {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-zwischen);
  font-weight: 600;
  font-size: 1.25rem;
  font-feature-settings: "tnum";
  color: var(--c-weiss);
  transition: color var(--d-micro) var(--e-out), text-shadow var(--d-micro) var(--e-out);
}
.kontakt-wege a:hover { color: var(--c-neon); text-shadow: var(--glow-text); }
.kontakt-wege svg { width: 20px; height: 20px; flex: none; stroke: var(--c-neon); filter: drop-shadow(0 0 6px rgba(87, 227, 137, 0.5)); }
.kontakt-wege .mess { color: var(--c-muted); }

/* ---------- 16. Footer = HUD-Schriftfeld ---------- */

.footer {
  background: #0a1912;
  color: var(--c-text);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 var(--c-linie);
}
.footer a:hover { color: var(--c-neon); text-shadow: var(--glow-text); }

.footer__spalten {
  position: relative;
  display: grid;
  gap: var(--s-6);
  padding-block: var(--s-8);
  border-bottom: 1px solid var(--c-linie-still);
}
@media (min-width: 800px) { .footer__spalten { grid-template-columns: repeat(4, 1fr); } }
.footer__spalte h3 {
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-mess);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-neon);
  margin-bottom: var(--s-4);
}
.footer__spalte ul { list-style: none; display: grid; gap: 10px; }
.footer__spalte a { font-size: var(--t-small); color: var(--c-text); }
.footer__spalte img { height: 34px; width: auto; margin-bottom: var(--s-4); }
.footer__spalte p { font-size: var(--t-small); color: var(--c-muted); }

/* Schriftfeld-Tabelle (DIN-Plankopf als HUD) */
.schriftfeld {
  position: relative;
  display: grid;
  border: 1px solid rgba(87, 227, 137, 0.3);
  border-radius: 6px;
  overflow: hidden;
  margin-block: var(--s-6);
  font-feature-settings: "tnum";
  background: rgba(87, 227, 137, 0.03);
}
@media (min-width: 800px) { .schriftfeld { grid-template-columns: repeat(6, auto); } }
.schriftfeld > div {
  padding: 12px 18px;
  border-top: 1px solid var(--c-linie);
}
@media (min-width: 800px) {
  .schriftfeld > div { border-top: 0; border-left: 1px solid var(--c-linie); }
  .schriftfeld > div:first-child { border-left: 0; }
}
.schriftfeld dt {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 2px;
}
.schriftfeld dd { font-size: var(--t-small); color: var(--c-weiss); }

.footer__rechtszeile {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  align-items: baseline;
  padding-bottom: calc(var(--s-6) + 8px);
  font-size: 0.8125rem;
  color: var(--c-muted);
}
.footer__rechtszeile a { color: var(--c-text); }
.footer__rechtszeile .ki-hinweis { margin-left: auto; }
@media (max-width: 640px) { .footer__rechtszeile .ki-hinweis { margin-left: 0; } }

/* ---------- 17. Reveals: PROJIZIEREN ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--d-reveal) var(--e-out), transform var(--d-reveal) var(--e-out);
  transition-delay: calc(var(--d, 0) * 80ms);
}
[data-reveal].on { opacity: 1; transform: none; }
html.kein-js [data-reveal] { opacity: 1; transform: none; }

/* Headline-Zeilen: maskierter Reveal */
.zeilen .zeile { display: block; overflow: hidden; }
.zeilen .zeile > span { display: block; transform: translateY(118%); transition: transform 700ms var(--e-out); transition-delay: calc(var(--z, 0) * 80ms); }
.zeilen.on .zeile > span, html.kein-js .zeilen .zeile > span { transform: none; }

.zaehler { font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }

/* ---------- 18. Vermessungs-Flick ---------- */

.flick {
  display: block;
  width: min(180px, 40vw);
  height: 14px;
  margin-bottom: var(--s-3);
  overflow: visible;
}
.flick line {
  stroke: var(--c-neon);
  stroke-width: 1;
  stroke-dasharray: var(--flen, 180);
  stroke-dashoffset: var(--flen, 180);
  filter: drop-shadow(0 0 4px rgba(87, 227, 137, 0.6));
}
.flick text {
  font-family: var(--f-body);
  font-size: 10px;
  letter-spacing: 0.08em;
  fill: var(--c-muted);
  opacity: 0;
}
.flick.an line { transition: stroke-dashoffset var(--d-line) var(--e-out); stroke-dashoffset: 0; }
.flick.an text { transition: opacity 300ms var(--e-out) 400ms; opacity: 1; }
.flick.aus line, .flick.aus text { transition: opacity 600ms var(--e-out); opacity: 0.25; }
html.kein-js .flick line { stroke-dashoffset: 0; opacity: 0.25; }
html.kein-js .flick text { opacity: 0.25; }

/* Atmende Maßlinie unter der Hero-H1 */
.masslinie-atmend {
  width: min(220px, 50vw);
  height: 9px;
  margin-top: var(--s-4);
  opacity: 0.5;
  animation: atmen 4s ease-in-out infinite;
}
.masslinie-atmend line {
  stroke: var(--c-neon);
  stroke-width: 1;
  filter: drop-shadow(0 0 5px rgba(87, 227, 137, 0.7));
}
@keyframes atmen { 0%, 100% { opacity: 0.3; } 50% { opacity: 0.65; } }

/* ---------- 19. Bauplan-Modus (Holo-Zustand) ---------- */

html.bauplan body {
  background:
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(87, 227, 137, 0.05) 31px 32px),
    repeating-linear-gradient(to right, transparent 0 calc(100% / 12 - 1px), rgba(87, 227, 137, 0.04) calc(100% / 12 - 1px) calc(100% / 12)),
    var(--c-raum);
}
html.bauplan img:not(.konturen), html.bauplan video { filter: saturate(0.35) brightness(0.85); }
html.bauplan .card, html.bauplan .card--hover:hover { box-shadow: none !important; transform: none; }

/* Plankopf (HUD, nur im Modus) */
.plankopf {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 48;
  display: none;
  background: rgba(7, 13, 9, 0.9);
  border: 1px solid rgba(87, 227, 137, 0.5);
  border-radius: 4px;
  padding: 10px 16px;
  color: var(--c-text);
  box-shadow: var(--glow-sm);
  max-width: min(420px, calc(100vw - 32px));
}
@supports (backdrop-filter: blur(10px)) {
  .plankopf { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
}
html.bauplan .plankopf { display: block; }
.plankopf .mess { display: block; line-height: 1.9; }
.plankopf .mess:first-child { color: var(--c-neon); }
@media (max-width: 899.98px) { .plankopf { bottom: calc(64px + env(safe-area-inset-bottom)); } }

/* Canvas-Ebenen */
#plan {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  transform: translateZ(0);
}
#holo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- 20. Custom Cursor (Scanner-Punkt) ---------- */

@media (pointer: fine) and (hover: hover) {
  .cursor-punkt {
    position: fixed;
    left: 0; top: 0;
    z-index: 90;
    width: 8px; height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--c-neon);
    box-shadow: var(--glow-sm);
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms var(--e-out), width 200ms var(--e-out), height 200ms var(--e-out), margin 200ms var(--e-out), background 200ms var(--e-out);
  }
  .cursor-punkt.da { opacity: 1; }
  .cursor-punkt.fadenkreuz {
    width: 26px; height: 26px;
    margin: -13px 0 0 -13px;
    background: transparent;
    box-shadow: none;
  }
  .cursor-punkt.fadenkreuz::before, .cursor-punkt.fadenkreuz::after {
    content: "";
    position: absolute;
    background: var(--c-neon);
    box-shadow: 0 0 6px rgba(87, 227, 137, 0.8);
  }
  .cursor-punkt.fadenkreuz::before { left: 0; right: 0; top: 12px; height: 1px; }
  .cursor-punkt.fadenkreuz::after { top: 0; bottom: 0; left: 12px; width: 1px; }
  .cursor-punkt .cursor-label {
    position: absolute;
    left: 20px; top: 16px;
    font-family: var(--f-body);
    font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--c-neon);
    background: rgba(7, 13, 9, 0.9);
    border: 1px solid rgba(87, 227, 137, 0.4);
    border-radius: 6px;
    padding: 3px 8px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 200ms var(--e-out);
  }
  .cursor-punkt.fadenkreuz .cursor-label { opacity: 1; }
}

/* ---------- 21. T4: Dokument-Seiten ---------- */

.dok-kopf { padding-top: calc(72px + var(--s-8)); padding-bottom: var(--s-8); position: relative; }
.brotkrumen {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-bottom: var(--s-5);
  font-size: var(--t-small);
}
.brotkrumen li { display: inline-flex; align-items: center; gap: 8px; color: var(--c-muted); }
.brotkrumen li + li::before { content: "/"; color: rgba(143, 179, 157, 0.4); }
.brotkrumen a { color: var(--c-muted); }
.brotkrumen a:hover { color: var(--c-neon); }
.brotkrumen [aria-current] { color: var(--c-weiss); }

.dok-kopf__raster { display: grid; gap: var(--s-7); align-items: center; }
@media (min-width: 980px) { .dok-kopf__raster { grid-template-columns: 1.2fr 0.8fr; } }

/* Harz-Konturkarte (Holo-Projektion) */
.konturkarte {
  background: linear-gradient(var(--c-panel), var(--c-panel)) padding-box,
              linear-gradient(150deg, rgba(87, 227, 137, 0.45), rgba(87, 227, 137, 0.08) 45%, rgba(194, 216, 202, 0.1)) border-box;
  border: 1px solid transparent;
  border-radius: var(--r-card);
  padding: 8px;
}
.konturkarte svg, .konturkarte img { width: 100%; height: auto; border-radius: 8px; }
.konturkarte figcaption {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 10px 8px 4px;
  color: var(--c-muted);
}
.konturkarte__flaeche { position: relative; }
.konturkarte__pin {
  position: absolute;
  left: var(--pin-x, 50%);
  top: var(--pin-y, 50%);
  width: 22px; height: 22px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.konturkarte__pin::before, .konturkarte__pin::after {
  content: "";
  position: absolute;
  background: var(--c-neon);
  box-shadow: 0 0 8px rgba(87, 227, 137, 0.8);
}
.konturkarte__pin::before { left: 0; right: 0; top: 10px; height: 2px; }
.konturkarte__pin::after { top: 0; bottom: 0; left: 10px; width: 2px; }
.konturkarte__pin span {
  position: absolute;
  left: 26px; top: 2px;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-mess);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-neon);
  background: rgba(7, 13, 9, 0.9);
  border: 1px solid rgba(87, 227, 137, 0.4);
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}
.konturkarte__pin--links span { left: auto; right: 26px; }

/* Dokument-Körper mit Legende */
.dok-koerper { display: grid; gap: var(--s-7); }
@media (min-width: 1280px) {
  .dok-koerper { grid-template-columns: minmax(0, 1fr) 260px; align-items: start; }
}
.dok-koerper .prosa h2 { margin-top: var(--s-8); margin-bottom: var(--s-4); font-size: clamp(1.5rem, 2.6vw, 1.875rem); }
.dok-koerper .prosa h2:first-of-type { margin-top: 0; }
.dok-koerper .prosa h3 { margin-top: var(--s-6); margin-bottom: var(--s-3); }
.dok-koerper .prosa ul, .dok-koerper .prosa ol { padding-left: 1.2em; margin-block: var(--s-4); }
.dok-koerper .prosa li + li { margin-top: 8px; }
.dok-koerper .merksatz { margin-block: var(--s-6); }

.legende {
  display: none;
  position: sticky;
  top: 104px;
  border-left: 1px solid var(--c-linie-still);
  padding-left: var(--s-5);
}
@media (min-width: 1280px) { .legende { display: block; } }
.legende h2 { font-size: var(--t-mess); font-family: var(--f-body); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-neon); margin-bottom: var(--s-4); }
.legende ul { list-style: none; display: grid; gap: 10px; }
.legende a {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--c-muted);
  padding-left: 14px;
  position: relative;
}
.legende a::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 6px; height: 1px;
  background: var(--c-linie-still);
  transition: background var(--d-micro) var(--e-out), width var(--d-micro) var(--e-out), box-shadow var(--d-micro) var(--e-out);
}
.legende a:hover { color: var(--c-weiss); }
.legende a.aktiv { color: var(--c-neon); font-weight: 500; }
.legende a.aktiv::before { background: var(--c-neon); width: 9px; box-shadow: 0 0 6px rgba(87, 227, 137, 0.8); }

/* Zwischen-CTA-Band */
.zwischen-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  align-items: center;
  justify-content: space-between;
  border-block: 1px solid var(--c-linie);
  padding-block: var(--s-5);
  margin-block: var(--s-7);
}
.zwischen-cta p { font-family: var(--f-zwischen); font-weight: 600; font-size: 1.0625rem; margin: 0; color: var(--c-weiss); }

/* Verweise-Chips */
.verweise { margin-top: var(--s-7); }
.verweise h2 { font-size: var(--t-mess); font-family: var(--f-body); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-neon); margin-bottom: var(--s-4); }

/* ---------- 22. Ablauf-Maßkette ---------- */

.masskette { position: relative; display: grid; gap: var(--s-6); }
.masskette__schritt {
  position: relative;
  padding-left: 64px;
}
.masskette__schritt::before {
  content: "";
  position: absolute;
  left: 19px; top: 44px; bottom: calc(-1 * var(--s-6));
  width: 2px;
  background: var(--c-linie-still);
}
.masskette__schritt:last-child::before { display: none; }
.masskette__schritt.an::before { background: linear-gradient(var(--c-neon) 0 var(--kette, 0%), var(--c-linie-still) var(--kette, 0%)); box-shadow: 0 0 8px rgba(87, 227, 137, 0.3); }
.masskette__nr {
  position: absolute;
  left: 0; top: 0;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--c-linie-still);
  border-radius: 50%;
  background: var(--c-panel-voll);
  font-family: var(--f-body);
  font-weight: 500;
  font-size: var(--t-mess);
  letter-spacing: 0.06em;
  font-feature-settings: "tnum";
  color: var(--c-text);
}
.masskette__schritt.an .masskette__nr { border-color: var(--c-neon); color: var(--c-neon); box-shadow: var(--glow-sm); }
.masskette__schritt h3 { margin-bottom: var(--s-2); }
.masskette__schritt p { color: var(--c-text); max-width: 60ch; }

/* Horizontaler Ablauf-Teaser */
.ablauf-teaser {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 900px) { .ablauf-teaser { grid-template-columns: repeat(4, 1fr); } }
.ablauf-teaser__schritt { position: relative; padding-top: var(--s-5); }
.ablauf-teaser__schritt::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  right: calc(-1 * var(--s-6));
  height: 1px;
  background: var(--c-linie-still);
}
.ablauf-teaser__schritt:last-child::before { right: 0; }
.ablauf-teaser__schritt::after {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 1px; height: 9px;
  background: var(--c-neon);
  box-shadow: 0 0 6px rgba(87, 227, 137, 0.8);
}
.ablauf-teaser__schritt .mess { color: var(--c-neon); }
.ablauf-teaser__schritt h3 { font-size: 1.125rem; margin-block: var(--s-2); }
.ablauf-teaser__schritt p { font-size: var(--t-small); color: var(--c-muted); }

/* ---------- 23. Case Study: Vorher/Nachher ---------- */

.vergleich { position: relative; }
.vergleich__buehne {
  position: relative;
  border-radius: var(--r-frame);
  overflow: hidden;
  border: 1px solid var(--c-linie);
}
.vergleich__buehne img, .vergleich__buehne svg { width: 100%; height: auto; display: block; }
.vergleich__nachher {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--x, 50%)) 0 0);
}
.vergleich__kante {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--x, 50%);
  width: 2px;
  background: var(--c-neon);
  box-shadow: 0 0 12px rgba(87, 227, 137, 0.8);
  pointer-events: none;
}
.vergleich__regler {
  width: 100%;
  margin-top: var(--s-4);
  appearance: none;
  height: 28px;
  background: transparent;
  cursor: ew-resize;
}
.vergleich__regler::-webkit-slider-runnable-track { height: 2px; background: var(--c-linie-still); }
.vergleich__regler::-webkit-slider-thumb {
  appearance: none;
  width: 22px; height: 22px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--c-neon);
  border: 2px solid #071208;
  box-shadow: var(--glow-sm);
}
.vergleich__regler::-moz-range-track { height: 2px; background: var(--c-linie-still); }
.vergleich__regler::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--c-neon);
  border: 2px solid #071208;
  box-shadow: var(--glow-sm);
}
.vergleich__labels { display: flex; justify-content: space-between; margin-top: 4px; color: var(--c-muted); }

/* Wireframe-Überblendung */
.ueberblendung { position: relative; }
.ueberblendung .wireframe {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 var(--blende, 0%) 0);
  background: var(--c-raum);
}

/* ---------- 24. Kleinkram ---------- */

.portrait-rahmen {
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--c-linie);
}

.stat-zeile { display: flex; flex-wrap: wrap; gap: var(--s-6) var(--s-8); }
.stat { display: grid; gap: 4px; }
.stat b {
  font-family: var(--f-zwischen);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-feature-settings: "tnum";
  line-height: 1;
  color: var(--c-neon);
  text-shadow: var(--glow-text);
}
.stat .mess { color: var(--c-muted); }

.trust-zeile {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  list-style: none;
  color: var(--c-muted);
  margin-top: var(--s-6);
}
.trust-zeile li { display: inline-flex; align-items: center; gap: 8px; }
.trust-zeile li::before { content: ""; width: 5px; height: 5px; background: var(--c-neon); box-shadow: 0 0 6px rgba(87, 227, 137, 0.8); flex: none; }

hr.hairline { border: 0; height: 1px; background: var(--c-linie-still); margin-block: var(--s-7); }

/* Tools-Raster (Startseite) */
.tools-raster {
  display: grid;
  gap: 1px;
  background: var(--c-linie-still);
  border: 1px solid var(--c-linie-still);
  border-radius: var(--r-card);
  overflow: hidden;
}
@media (min-width: 640px) { .tools-raster { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .tools-raster { grid-template-columns: repeat(3, 1fr); } }
.tools-raster > div { background: var(--c-panel-voll); padding: var(--s-5); transition: background var(--d-micro) var(--e-out); }
.tools-raster > div:hover { background: #14231a; }
.tools-raster h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.tools-raster p { font-size: var(--t-small); color: var(--c-muted); }

/* WhatsApp-Float (Desktop) */
.whatsapp-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 44;
  display: none;
  width: 52px; height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--c-panel-voll);
  border: 1px solid rgba(87, 227, 137, 0.35);
  color: var(--c-neon);
  transition: border-color var(--d-micro) var(--e-out), transform var(--d-micro) var(--e-out), box-shadow var(--d-micro) var(--e-out);
}
.whatsapp-float:hover { border-color: var(--c-neon); transform: translateY(-2px); box-shadow: var(--glow-sm); }
.whatsapp-float svg { width: 24px; height: 24px; }
@media (min-width: 900px) { .whatsapp-float { display: inline-flex; } }

/* ---------- 25. View Transitions ---------- */

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-aus 250ms var(--e-out) both; }
  ::view-transition-new(root) { animation: vt-ein 250ms var(--e-out) both; }
  @keyframes vt-aus { to { opacity: 0; } }
  @keyframes vt-ein { from { opacity: 0; } }
}

/* ---------- 26. Reduced Motion (verbindlich) ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { transform: none; transition: opacity 150ms linear; }
  .zeilen .zeile > span { transform: none; transition: none; }
  .flick line { transition: none; stroke-dashoffset: 0; opacity: 0.25; }
  .flick text { transition: none; opacity: 0.25; }
  .masslinie-atmend { animation: none; opacity: 0.35; }
  .scan.on::before { animation: none; }
  .nav-overlay.offen .nav-overlay__links li { animation-duration: 1ms; animation-delay: 0ms; }
  .stempel span { animation-duration: 1ms; }
  .browser-frame__view img { transition: none !important; }
  .card--hover:hover { transform: none; }
  .action-bar { transition: none; }
  .faq__inhalt, .faq summary .faq__marker { transition: none; }
  .feld .bodenlinie { transition: none; }
}
