@layer legacy;
@layer legacy{
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/schrift/InstrumentSans-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/schrift/InstrumentSans-Italic-Variable.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/schrift/Archivo-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/schrift/IBMPlexMono-normal-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("/assets/schrift/IBMPlexMono-normal-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Fallback";
  src: local("DejaVu Sans"), local("Arial");
  size-adjust: 92.5%;
  ascent-override: 97%;
  descent-override: 25%;
  line-gap-override: 0%;
}

:root {
  /* Marke Northlightframe: Obsidian + gebürstetes Silber, Gold nur als Akzent (BRAND-CONTRACT v=20261121d) */
  --bg: #0C0F13;
  --bg-alt: #13171F;
  --panel: #13171F;
  --panel-2: #181E28;
  --ink: #DDE3EC;
  --mute: #A9B2BF;
  --silver: #DDE3EC;
  --silver-2: #C4CCD8;
  --silver-3: #8C96A6;
  --signet: #DCE2EA;
  --line: rgba(221, 227, 236, 0.15);
  /* ≥ 3:1 gegen bg/panel (WCAG 1.4.11): dunkel 3,66:1 / 3,72:1 */
  --line-strong: rgba(221, 227, 236, 0.42);
  --gold: #D59B42;
  --gold-soft: rgba(213, 155, 66, 0.12);
  /* --mint bleibt als Name, ist jetzt gedämpftes Nordlicht-Eis statt Neon */
  --mint: #9BC4D8;
  --mint-soft: rgba(155, 196, 216, 0.13);
  --on-accent: #0C0F13;
  --glass: rgba(12, 15, 19, 0.90);
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.48);

  --display: "Archivo", "Instrument Sans", "Instrument Fallback", system-ui, -apple-system, sans-serif;
  --sans: "Instrument Sans", "Instrument Fallback", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gut: clamp(18px, 3.6vw, 56px);
  --maxw: 1380px;
  --r: 4px;
  --r-card: 6px;
  --nav-h: 60px;
  color-scheme: light dark;
  accent-color: var(--gold);
  --vf-wght: 560;
  --vf-aprt: 18;
  --vf-scroll-w: 600;
  --vf-scroll-a: 24;
}

html[data-theme="dark"] { color-scheme: dark; }
html[data-theme="light"],
html.is-chapter-light:not([data-user-theme="dark"]) {
  color-scheme: light;
  --bg: #F3F0E8;
  --bg-alt: #EAE5DA;
  --panel: #FAF8F3;
  --panel-2: #F6F3EC;
  --ink: #101316;
  --mute: #4B5360;
  --silver: #101316;
  --silver-2: #4B5360;
  --silver-3: #5E6673;
  --signet: #161A20;
  --line: rgba(16, 19, 22, 0.16);
  --line-strong: rgba(16, 19, 22, 0.52); /* hell 3,5:1 gegen bg/panel */
  --gold: #8E5D12;
  --gold-soft: rgba(142, 93, 18, 0.10);
  --mint: #2E5A6E;
  --mint-soft: rgba(46, 90, 110, 0.10);
  --on-accent: #FAF8F3;
  --glass: rgba(243, 240, 232, 0.92);
  --shadow-soft: 0 20px 50px rgba(16, 19, 24, 0.10);
}

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  scrollbar-color: var(--line-strong) var(--bg); /* bewusst nie in einer transition */
  overflow-x: clip;
}
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
html.is-still, html.lenis { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  min-height: 100svh;
  overflow-x: clip;
}
img, video, svg, canvas { display: block; max-width: 100%; }
img, svg { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }

.skip {
  position: fixed; left: -9999px; top: 12px; z-index: 200;
  background: var(--gold); color: var(--on-accent);
  padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none;
}
.skip:focus { left: 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header & Navigation */
.nav {
  position: sticky; top: 0; z-index: 90;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); min-height: calc(var(--nav-h) - 1px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand-mark { width: 18px; height: 18px; color: var(--signet); }
/* Markenzeichen: silbernes, oben rechts geöffnetes Quadrat (16×16) */
.brand-signet { width: 20px; height: 20px; color: var(--signet); flex-shrink: 0; display: block; shape-rendering: crispEdges; }
.brand:hover .brand-signet, .brand:focus-visible .brand-signet { color: var(--ink); }
.wordmark {
  font-family: var(--display); font-weight: 580;
  font-size: 18px; letter-spacing: -0.02em; white-space: nowrap;
}
.wordmark { color: var(--ink); }
.wordmark em { font-style: normal; color: inherit; } /* Altbestand: keine Gold-Spaltung mehr */

.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1 1 auto; justify-content: flex-end;
}
.nav-items { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nav-items a {
  text-decoration: none; font-size: 14px; color: var(--mute);
  padding: 6px clamp(6px, 0.8vw, 10px); border-radius: var(--r); white-space: nowrap;
}
.nav-cta { margin-left: 8px; flex-shrink: 0; }
.nav-items a:hover,
.nav-items a[aria-current="page"] { color: var(--ink); border-bottom: 1px solid var(--gold); }

.nav-prefs {
  display: flex; align-items: center; gap: 6px; margin-left: 10px;
  padding-left: 12px; border-left: 1px solid var(--line);
}
.ctrl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 10px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink);
  font-family: var(--mono); font-size: 12px; cursor: pointer; white-space: nowrap;
}
.ctrl-btn:hover { border-color: var(--gold); }
.ctrl-btn[aria-pressed="true"] { border-color: var(--mint); background: var(--mint-soft); }
.ctrl-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.ctrl-text { display: none; }
.btn-menu { display: none; }

/* Scroll-Fortschritt (2px): nur bei erlaubter Bewegung; JS setzt --rail nur ohne animation-timeline */
.scroll-rail { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .scroll-rail {
    display: block; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
    background: var(--gold); transform-origin: left; transform: scaleX(var(--rail, 0));
    pointer-events: none;
  }
  html.is-still .scroll-rail { display: none; }
  @supports (animation-timeline: scroll()) {
    .scroll-rail { animation: rail linear both; animation-timeline: scroll(); }
    @keyframes rail { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  }
}

/* Buttons & Typography */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px; border-radius: var(--r);
  border: 1px solid var(--gold); background: var(--gold); color: var(--on-accent);
  font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: transform 0.15s ease, filter 0.15s ease; }
  .btn:hover { transform: translateY(-1px); }
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 13px; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}
.kicker-dot { width: 7px; height: 7px; background: var(--mint); transform: rotate(45deg); flex-shrink: 0; }

.h1 {
  font-family: var(--display); font-weight: 580;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.02; letter-spacing: -0.025em; margin: 0;
}
.h2 {
  font-family: var(--display); font-weight: 580;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.06; letter-spacing: -0.02em; margin: 0;
}
.h3 {
  font-family: var(--display); font-weight: 540;
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.18; margin: 0;
}
.lead { font-size: clamp(17px, 1.45vw, 20px); color: var(--mute); max-width: 60ch; }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.mono { font-family: var(--mono); font-size: 13px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: clamp(46px, 6vw, 76px) 0; border-top: 1px solid var(--line); }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px; align-items: end; margin-bottom: clamp(24px, 3vw, 40px);
}
.sec-head p { margin: 0; color: var(--mute); }

/* 01 HERO — MONUMENTALES BILD- & TYPOGRAFIEMOTIV */
.hero {
  position: relative;
  min-height: clamp(600px, 90svh, 860px);
  display: grid;
  align-items: end;
  padding: clamp(34px, 4.5vw, 56px) 0 28px;
  overflow: hidden;
  border-top: 0;
}
.hero-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-poster, .hero-video, .hero-shader {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-shader { pointer-events: none; z-index: 1; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(96deg, rgba(7, 9, 12, 0.88) 0%, rgba(7, 9, 12, 0.56) 44%, rgba(7, 9, 12, 0.14) 100%),
              linear-gradient(180deg, rgba(7, 9, 12, 0.18) 0%, rgba(7, 9, 12, 0.78) 100%);
}
html[data-theme="light"] .hero-scrim,
html.is-chapter-light:not([data-user-theme="dark"]) .hero-scrim {
  background: linear-gradient(96deg, rgba(243, 239, 230, 0.90) 0%, rgba(243, 239, 230, 0.62) 48%, rgba(243, 239, 230, 0.22) 100%),
              linear-gradient(180deg, rgba(243, 239, 230, 0.18) 0%, rgba(243, 239, 230, 0.82) 100%);
}
html.is-still .hero-video { display: none; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

.hero-inner {
  position: relative; z-index: 3; max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gut); width: 100%; display: grid; gap: 22px;
}
.hero-h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(38px, 9.8vw, 146px);
  line-height: 0.94;
  letter-spacing: -0.03em;
  margin: 0;
  max-width: 100%;
}
.hero-h1 .vf-word { display: inline-block; white-space: nowrap; }
.hero-h1 .vf-ch { display: inline; }
.hero-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: end;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}
.hero-strip div { display: grid; gap: 3px; }
.hero-strip dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.hero-strip dd { margin: 0; font-size: 14px; color: var(--ink); }
.hero-still-ctrl { position: absolute; right: var(--gut); top: 18px; z-index: 4; }

/* 02 BETRIEBS-WERKBANK (OFFENES SPLIT OHNE RUNDKARTEN) */
.workbench-split {
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 28px; align-items: start;
}
.bench-stage { display: grid; gap: 12px; }
.bench-visual {
  position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt);
  border-top: 1px solid var(--gold); border-bottom: 1px solid var(--line); overflow: hidden;
}
.prisma-bg-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.62; }
.prisma-canvas { position: relative; z-index: 2; width: 100%; height: 100%; cursor: crosshair; touch-action: none; }
.bench-sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.range-wrap { display: grid; gap: 4px; }
.range-wrap label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mute); display: flex; justify-content: space-between;
}
.range-wrap input[type="range"] { width: 100%; accent-color: var(--gold); cursor: pointer; }

.bench-right { display: grid; gap: 16px; }
.branch-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink); font-size: 13px; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] {
  background: var(--gold); color: var(--on-accent); border-color: var(--gold); font-weight: 600;
}
.bench-satz { margin: 0; font-size: 19px; font-weight: 500; }
.bench-rows { display: grid; }
.bench-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 13px 0; border-top: 1px solid var(--line);
}
.bench-row strong { display: block; font-size: 15px; }
.bench-row small { display: block; font-size: 13px; color: var(--mute); }

/* 03 UEBERGROSSE TYPOGRAFIE STATT KARTEN */
.type-list { display: grid; }
.type-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1.1fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: clamp(20px, 3vw, 34px) 0;
  border-top: 1px solid var(--line);
}
.type-row:last-child { border-bottom: 1px solid var(--line); }
.type-num { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.type-big {
  font-family: var(--display); font-weight: 580;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 0.98; letter-spacing: -0.025em; margin: 0;
}
.type-row p { margin: 0; color: var(--mute); font-size: 15px; }

/* 04 ASYMMETRISCHES EDITORIAL-RASTER (KEINE RUNDKARTEN) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.asym-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px 18px;
}
.werk-item { display: grid; gap: 10px; align-content: start; }
.asym-grid .werk-item:nth-child(1) { grid-column: span 7; }
.asym-grid .werk-item:nth-child(2) { grid-column: span 5; }
.asym-grid .werk-item:nth-child(3) { grid-column: span 5; }
.asym-grid .werk-item:nth-child(4) { grid-column: span 7; }
.asym-grid .werk-item:nth-child(5) { grid-column: span 6; }
.asym-grid .werk-item:nth-child(6) { grid-column: span 6; }

.werke-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
}
.werk-item.is-hidden { display: none; }
.werk-media {
  position: relative; aspect-ratio: 16 / 10; background: var(--bg-alt);
  border-bottom: 1px solid var(--line-strong); overflow: hidden;
}
.werk-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.werk-item:hover .werk-media img { transform: scale(1.025); }
.werk-badge {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--line-strong); font-family: var(--mono);
  font-size: 11px; color: var(--gold);
}
.werk-caption { display: grid; gap: 6px; padding-top: 4px; }
.werk-caption p { margin: 0; font-size: 14px; color: var(--mute); }
.werk-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 2px; }

/* 05 RANDLOSES VOLLBREITEN-KAPITEL #1 (100vw 3D-UEBERBLICK) */
.sec-bleed {
  padding: clamp(44px, 5.5vw, 68px) 0 0;
  border-top: 1px solid var(--line);
}
.bleed-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: clamp(360px, 50svh, 520px);
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
#echtzeitCanvas { width: 100%; height: 100%; cursor: grab; touch-action: none; }
#echtzeitCanvas:active { cursor: grabbing; }
.bleed-hud {
  position: absolute; top: 16px; left: var(--gut); z-index: 3;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.stat-strip {
  max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gut) clamp(40px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px;
}
.stat-cell { border-top: 1px solid var(--gold); padding-top: 12px; display: grid; gap: 4px; }
.stat-cell strong { font-family: var(--display); font-size: 20px; color: var(--ink); }
.stat-cell span { font-size: 14px; color: var(--mute); }

/* 06 RANDLOSES VOLLBREITEN-KAPITEL #2 (SCROLL-HELLMODUS + MANIFEST + MUSTER) */
.sec-manifest {
  padding: clamp(54px, 7vw, 88px) 0;
  border-top: 1px solid var(--line);
}
.manifest-headline {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(32px, 5.1vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 14px 0 28px;
  max-width: 24ch;
}
.manifest-headline .mf-w { display: inline-block; transition: font-variation-settings 0.08s linear; }
.studien-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
}
.studie-card { text-decoration: none; display: grid; gap: 8px; align-content: start; }
.studie-card:nth-child(even) { margin-top: 20px; }
.studie-card img { aspect-ratio: 16 / 9; width: 100%; height: auto; object-fit: cover; border-bottom: 1px solid var(--line-strong); }
.studie-card strong { display: block; font-size: 16px; }
.studie-card span { font-size: 13px; color: var(--mute); }

/* 07 KUNDEN — INDEXLISTE + GROSSBUEHNE STATT 5 MINI-KARTEN */
.ref-split {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px; align-items: start;
}
.ref-index { display: grid; }
.ref-index-btn {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px; align-items: baseline; text-align: left;
  padding: 16px 4px; background: transparent; border: 0;
  border-top: 1px solid var(--line); cursor: pointer;
}
.ref-index-btn:last-child { border-bottom: 1px solid var(--line); }
.ref-index-btn[aria-current="true"] strong { color: var(--gold); }
.ref-index-btn .mono { color: var(--gold); }
.ref-index-btn strong { font-size: 20px; font-family: var(--display); }
.ref-index-btn small { font-size: 13px; color: var(--mute); }

.ref-stage { display: grid; gap: 12px; }
.ref-stage img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: 1px solid var(--line-strong); }
.ref-stage-body { display: grid; gap: 8px; }

/* 08 KONTAKT & FORMULAR */
.kontakt-grid {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 28px; align-items: start;
}
.form-panel { display: grid; gap: 14px; border-top: 1px solid var(--gold); padding-top: 20px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--r);
  border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); min-height: 44px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gold); }
.field textarea { min-height: 112px; resize: vertical; }
.kontakt-steps { display: grid; gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.form-note { color: var(--mute); }
.field-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }
.consent-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--mute); cursor: pointer; }
.consent-line input { margin-top: 1px; flex-shrink: 0; }

/* Gestylte Checkbox/Radio (ersetzt Browser-Blau; Tastaturring über .choice/.consent-line) */
.choice input[type="radio"], .choice input[type="checkbox"],
.consent-line input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; margin: 0;
  width: 20px; height: 20px; flex-shrink: 0;
  border: 1.5px solid var(--line-strong); background: var(--panel);
  display: inline-grid; place-content: center; cursor: pointer;
}
.choice input[type="radio"] { border-radius: 50%; }
.choice input[type="checkbox"], .consent-line input[type="checkbox"] { border-radius: var(--r); }
.choice input::before, .consent-line input::before { content: ""; width: 10px; height: 10px; transform: scale(0); background: var(--on-accent); }
.choice input[type="radio"]::before { border-radius: 50%; }
.choice input[type="checkbox"]::before, .consent-line input[type="checkbox"]::before {
  width: 12px; height: 12px;
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%);
}
.choice input:checked, .consent-line input:checked { background: var(--gold); border-color: var(--gold); }
.choice input:checked::before, .consent-line input:checked::before { transform: scale(1); }
.choice input:hover, .consent-line input:hover { border-color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .choice input::before, .consent-line input::before { transition: transform 0.12s ease; }
}
@media (forced-colors: active) {
  .choice input:checked::before, .consent-line input:checked::before { background: HighlightText; }
}
.consent-line:has(:focus-visible) { outline: 2px solid var(--mint); outline-offset: 3px; }
.consent-line input:focus-visible { outline: none; }

/* Auswahlkarte (Konfigurator): Zustand rein per CSS */
.choice {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--panel);
  cursor: pointer; color: var(--ink);
}
.choice > span { display: grid; gap: 2px; min-width: 0; }
.choice small { color: var(--mute); font-size: 13px; }
.choice:hover { border-color: var(--gold); }
.choice:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.choice:has(:focus-visible) { outline: 2px solid var(--mint); outline-offset: 3px; }
.choice input:focus-visible { outline: none; }
@supports not selector(:has(*)) {
  .choice input:focus-visible, .consent-line input:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
}
.konfig-col { display: grid; gap: 18px; }
.label-gold { font-family: var(--mono); font-size: 13px; color: var(--gold); }
.konfig-text { margin: 0; color: var(--mute); }
.konfig-note { color: var(--mute); }
fieldset.konfig-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 12px; }
fieldset.konfig-group > legend { padding: 0; margin-bottom: 10px; font-family: var(--mono); font-size: 13px; color: var(--gold); }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: minmax(0, 1fr); } }

/* Fallback ohne accent-color: Schieberegler selbst färben */
@supports not (accent-color: var(--gold)) {
  .range-wrap input[type="range"] { appearance: none; -webkit-appearance: none; height: 6px; background: var(--line-strong); border-radius: 3px; }
  .range-wrap input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 0; }
  .range-wrap input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--gold); border: 0; }
}
.form-status { padding: 12px 14px; border: 1px solid var(--mint); background: var(--panel-2); font-size: 14px; }
.form-status[hidden] { display: none; }

/* Marquee */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 11px 0; background: var(--bg-alt); }
.marquee-track {
  display: flex; gap: 32px; width: max-content; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); animation: marq 30s linear infinite;
}
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html.is-still .marquee-track { animation: none; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* Native Dialog */
dialog#werkDialog {
  width: min(1060px, calc(100vw - 24px)); max-height: calc(100svh - 24px); padding: 0;
  border: 1px solid var(--line-strong); border-radius: var(--r); background: var(--panel); color: var(--ink);
  box-shadow: var(--shadow-soft); margin: auto; opacity: 0; transform: translateY(10px) scale(0.985);
  transition: opacity 0.2s ease, transform 0.2s ease, overlay 0.2s ease allow-discrete, display 0.2s ease allow-discrete;
}
dialog#werkDialog[open] { opacity: 1; transform: none; }
@starting-style { dialog#werkDialog[open] { opacity: 0; transform: translateY(10px) scale(0.985); } }
dialog:modal { overscroll-behavior: contain; }
dialog::backdrop { background: rgba(4, 6, 9, 0.84); backdrop-filter: blur(8px); overflow: hidden; overscroll-behavior: contain; }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dlg-body { padding: 16px 18px 20px; display: grid; gap: 14px; }
.dlg-frame { width: 100%; height: min(68svh, 580px); border: 1px solid var(--line); background: var(--bg); }
.dlg-video, .dlg-img { width: 100%; max-height: 62svh; object-fit: contain; background: var(--bg); }

/* Subpages / Articles / Konfigurator */
.page-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); display: grid; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  background: var(--panel); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line);
  padding: 20px; display: grid; gap: 10px; align-content: start;
}
.card p { margin: 0; color: var(--mute); font-size: 15px; }
.prose { max-width: 74ch; display: grid; gap: 14px; }
.prose h2, .prose h3 { margin: 12px 0 2px; font-family: var(--display); }
.prose p, .prose li { color: var(--mute); }
/* Vollbreite Texturbilder in Unterseiten (software/, ki-unterstuetzung/): ohne Inline-Style auf Spaltenbreite */
.sec > .wrap > img[width="1280"][height="720"], .page-media img {
  width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-card);
}
.konfig-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 24px; align-items: start; }
.konfig-sum { position: sticky; top: calc(var(--nav-h) + 16px); background: var(--panel); border: 1px solid var(--gold); padding: 20px; display: grid; gap: 12px; }
.faq-list details { background: var(--panel); border-top: 1px solid var(--line); padding: 14px 16px; }
.faq-list summary { cursor: pointer; font-weight: 600; }
.faq-list p { margin: 10px 0 0; color: var(--mute); font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0 32px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.footer ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 2px; }
.footer a { text-decoration: none; color: var(--mute); font-size: 14px; }
.footer li a { display: inline-block; padding: 5px 0; }
.footer a:hover { color: var(--gold); }
.footer .brand { margin-bottom: 12px; }
.footer-claim { margin: 0; color: var(--mute); max-width: 34ch; font-size: 14px; }
.footer-head { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }
.footer-address { font-style: normal; margin: 10px 0 12px; color: var(--mute); font-size: 14px; line-height: 1.7; }
.footer-base {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--mute);
}

html.has-motion:not(.is-still) .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.42s ease, transform 0.42s ease; }
html.has-motion:not(.is-still) .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .hero-bottom, .workbench-split, .kontakt-grid, .konfig-grid, .sec-head, .ref-split { grid-template-columns: minmax(0, 1fr); }
  .type-row { grid-template-columns: 44px minmax(0, 1fr); }
  .type-row p, .type-row a { grid-column: 2; }
  .asym-grid .werk-item:nth-child(n) { grid-column: span 6; }
  .werke-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studien-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studie-card:nth-child(even) { margin-top: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Menü-Breakpoint 1180px: Marke (~190px) + 7 Punkte (~540px) + CTA (~150px) + 3 Schalter (~140px)
   + Gutter ergeben ~1100px Einzeilen-Bedarf; darunter würde die Leiste umbrechen. */
@media (max-width: 1180px) {
  .nav-links {
    display: none;
    position: fixed; left: 12px; right: 12px; top: calc(var(--nav-h) + 4px);
    max-height: calc(100svh - var(--nav-h) - 16px); overflow-y: auto; overscroll-behavior: contain;
    background: var(--panel); border: 1px solid var(--line-strong);
    padding: 16px; flex-direction: column; align-items: stretch; gap: 14px;
    z-index: 95; box-shadow: var(--shadow-soft);
  }
  .nav-links.is-open { display: flex; }
  .nav-items { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-items a { padding: 12px 8px; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-left: 0; min-height: 44px; }
  .nav-prefs {
    margin-left: 0; padding-left: 0; border-left: 0;
    padding-top: 12px; border-top: 1px solid var(--line-strong);
    flex-direction: column; align-items: stretch; gap: 8px;
  }
  .ctrl-btn { justify-content: flex-start; padding: 9px 12px; }
  .ctrl-text { display: inline; }
  .btn-menu { display: inline-flex; }
}

@media (max-width: 640px) {
  .hero-strip, .stat-strip, .asym-grid .werk-item:nth-child(n),
  .werke-grid, .grid-3, .grid-2, .studien-grid, .form-row,
  .bench-sliders, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .asym-grid .werk-item:nth-child(n) { grid-column: 1 / -1; }
  .hero { align-items: start; padding-top: 48px; }
  .hero-still-ctrl { top: 12px; }
  .hero-h1 { padding-top: 8px; }
  .btn { white-space: normal; text-align: center; }
}

/* === nlf-viz === */
/* Interaktive Architektur-Visuals A/B/C (Startseite + Leitseiten). Quelle: nlf-evolution-20261121/partials/viz.css */
.nlf-viz {
  container-type: inline-size;
  margin: 0;
  display: grid;
  gap: 14px;
  padding: clamp(14px, 2.2vw, 22px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card, 6px);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--sans);
  position: relative;
  isolation: isolate;
}
.nlf-viz-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.nlf-viz-kicker, .nlf-viz-tag, .nlf-viz-mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.nlf-viz-kicker { color: var(--gold); }
.nlf-viz-switch { display: inline-flex; flex-wrap: wrap; gap: 0; }
.nlf-viz-switch button {
  appearance: none;
  font: 500 13px/1 var(--sans);
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  margin-inline-start: -1px;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  position: relative;
}
.nlf-viz-switch button:first-child { margin-inline-start: 0; border-start-start-radius: var(--r, 4px); border-end-start-radius: var(--r, 4px); }
.nlf-viz-switch button:last-child { border-start-end-radius: var(--r, 4px); border-end-end-radius: var(--r, 4px); }
.nlf-viz-switch button:hover { background: var(--gold-soft); }
.nlf-viz-switch button[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-accent); z-index: 1; }
.nlf-viz-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; z-index: 2; }

/* Leinwand: Blaupausen-Raster mit Passermarken (kalibrierter Rahmen) */
.nlf-viz-canvas {
  position: relative;
  padding: clamp(14px, 2vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--r, 4px);
  background-color: var(--bg-alt);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: -1px -1px;
}
.nlf-viz-canvas::before, .nlf-viz-canvas::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 0 solid var(--gold);
  pointer-events: none;
}
.nlf-viz-canvas::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.nlf-viz-canvas::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.nlf-viz ol, .nlf-viz ul { list-style: none; margin: 0; padding: 0; }
.nlf-viz p { margin: 0; }
.nlf-viz-cap { font-size: 14px; line-height: 1.5; color: var(--mute); min-height: 3em; }
.nlf-viz [data-only][hidden] { display: none !important; }
/* Varianten übereinander stapeln: kein Höhensprung beim Umschalten */
.nlf-viz-stack { display: grid; }
.nlf-viz-stack > [data-only] { grid-area: 1 / 1; }
.nlf-viz .nlf-viz-stack > [data-only][hidden] { display: block !important; visibility: hidden; }

/* Karten; aktiv/inaktiv über Linie und Fläche statt Deckkraft (Kontrast bleibt) */
.nlf-viz-node, .nlf-viz-tech li, .nlf-viz-station, .nlf-viz-device {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r, 4px);
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.nlf-viz-node:not(.is-on), .nlf-viz-tech:not(.is-on) li { background: transparent; border-style: dashed; }
.nlf-viz-node:not(.is-on) strong { color: var(--mute); font-weight: 500; }
.nlf-viz-node.is-on { border-color: var(--gold); }
.nlf-viz-node strong { font: 600 15px/1.25 var(--display); }
.nlf-viz-node small { font-size: 13px; line-height: 1.4; color: var(--mute); }
.nlf-viz-goal.is-on { background: var(--gold-soft); }

/* Visual A — Website-Bauplan */
.nlf-viz-grid { display: grid; gap: 14px; }
.nlf-viz-route { display: grid; gap: 10px; }
.nlf-viz-tech { display: grid; gap: 10px; }
.nlf-viz-tech li { font-size: 13px; line-height: 1.4; }
.nlf-viz-tech.is-on li { border-color: var(--mint); }
@container (max-width: 639px) {
  .nlf-viz-a .nlf-viz-node:not(.is-on) { display: none; }
  .nlf-viz-a[data-state="technik"] .nlf-viz-route { display: none; }
  .nlf-viz-a:not([data-state="technik"]) .nlf-viz-tech { display: none; }
}
@container (min-width: 640px) {
  .nlf-viz-route { grid-template-columns: repeat(4, 1fr); }
  .nlf-viz-route > :first-child { grid-row: span 2; }
  .nlf-viz-route > :nth-child(n+2) { position: relative; }
  .nlf-viz-route > :nth-child(n+2)::before {
    content: ""; position: absolute; top: 50%; right: 100%; width: 10px; border-top: 1px solid var(--line-strong);
  }
  .nlf-viz-route > .is-on:nth-child(n+2)::before { border-top-color: var(--gold); }
  .nlf-viz-tech { grid-template-columns: repeat(4, 1fr); }
}

/* Visual B — Northcore, ein Datenstand */
.nlf-viz-devices { display: grid; gap: 12px; }
.nlf-viz-chrome {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mute);
  border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 6px;
}
.nlf-viz-dots { flex: none; width: 22px; height: 6px; background: radial-gradient(circle, var(--line-strong) 2.5px, transparent 3px) 0 0 / 8px 6px repeat-x; }
.nlf-viz-screen { display: grid; gap: 8px; font-size: 13px; line-height: 1.4; }
.nlf-viz-row { display: grid; grid-template-columns: 4.5em 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.nlf-viz-row-head { border-top: 0; font-family: var(--mono); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
.nlf-viz-row.is-dim { color: var(--mute); }
.nlf-viz-chip { font-family: var(--mono); font-size: 11px; padding: 3px 7px; border: 1px solid var(--line-strong); border-radius: var(--r, 4px); white-space: nowrap; justify-items: end; }
.nlf-viz-chip b { font-weight: 500; }
.nlf-viz-b .is-focus .nlf-viz-chip { border-color: var(--gold); color: var(--gold); }
.nlf-viz-b[data-state="erledigt"] .is-focus .nlf-viz-chip { border-color: var(--mint); color: var(--mint); }
.nlf-viz-progress { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.nlf-viz-progress i { display: block; height: 100%; background: var(--gold); transform-origin: left center; transform: scaleX(var(--p, .25)); }
.nlf-viz-badge {
  justify-self: start; font-family: var(--mono); font-size: 11px; letter-spacing: .04em;
  padding: 4px 8px; border: 1px solid var(--gold); border-radius: var(--r, 4px); color: var(--gold);
}
.nlf-viz-hub { display: grid; place-items: center; position: relative; min-height: 28px; isolation: isolate; }
.nlf-viz-hub::before { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1px dashed var(--gold); z-index: 0; }
.nlf-viz-hub span {
  position: relative; z-index: 1; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  background: var(--panel); color: var(--gold); padding: 4px 8px; border: 1px solid var(--gold); border-radius: var(--r, 4px);
}
@container (min-width: 480px) {
  .nlf-viz-devices { grid-template-columns: 1.2fr 1fr; grid-template-areas: "desk desk" "hub hub" "web phone"; }
  .nlf-viz-desk { grid-area: desk; } .nlf-viz-hub { grid-area: hub; } .nlf-viz-web { grid-area: web; } .nlf-viz-phone { grid-area: phone; }
}
@container (min-width: 680px) {
  .nlf-viz-devices { grid-template-columns: 1.5fr 40px 1fr .85fr; grid-template-areas: "desk hub web phone"; align-items: stretch; }
  .nlf-viz-hub::before { inset: 0 50% 0 auto; border-top: 0; border-left: 1px dashed var(--gold); }
  .nlf-viz-hub span { writing-mode: vertical-rl; transform: rotate(180deg); padding: 8px 4px; }
}
.nlf-viz-phone { border-radius: 14px; }

/* Visual C — Datengrenze, Freigabetor innerhalb der Grenze */
.nlf-viz-flow { display: grid; gap: 12px; }
.nlf-viz-boundary { position: relative; border: 1px dashed var(--mint); border-radius: var(--r, 4px); padding: 26px 10px 10px; }
.nlf-viz-boundary-label {
  position: absolute; top: -9px; left: 12px; padding: 0 6px; background: var(--bg-alt);
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mint);
}
.nlf-viz-stations { display: grid; gap: 10px; }
.nlf-viz-station p { font-size: 13px; line-height: 1.45; }
.nlf-viz-zero, .nlf-viz-src { justify-self: start; font-family: var(--mono); font-size: 11px; padding: 3px 7px; border-radius: var(--r, 4px); }
.nlf-viz-zero { border: 1px solid var(--mint); color: var(--mint); }
.nlf-viz-src { border: 1px solid var(--line-strong); color: var(--mute); }
.nlf-viz-gate { border-color: var(--gold); background: var(--gold-soft); }
.nlf-viz-cloud { display: flex; gap: 8px; align-items: baseline; justify-content: flex-end; font-family: var(--mono); font-size: 11px; color: var(--mute); }
.nlf-viz-cloud s { text-decoration-thickness: 1px; }
@container (min-width: 480px) {
  .nlf-viz-stations { grid-template-columns: 1fr 1fr; }
}
@container (min-width: 760px) {
  .nlf-viz-stations { grid-template-columns: repeat(4, 1fr); }
  .nlf-viz-stations > li + li { position: relative; }
  .nlf-viz-stations > li + li::before { content: ""; position: absolute; top: 50%; right: 100%; width: 10px; border-top: 1px solid var(--mint); }
  .nlf-viz-stations > .nlf-viz-gate::before { border-top-color: var(--gold); }
}

/* Einbettung in die Disziplinen-Bühne der Startseite */
.pillar-slide .nlf-viz { height: auto; overflow: visible; }

/* Bewegung nur auf Wunsch und nur opacity/transform; ohne Bewegung identischer Endzustand */
@media (prefers-reduced-motion: no-preference) {
  html:not(.is-still) .nlf-viz-progress i { transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  html:not(.is-still) .nlf-viz.is-sync [data-only]:not([hidden]) { animation: nlf-viz-in .42s cubic-bezier(.2, .7, .2, 1) both; }
  html:not(.is-still) .nlf-viz-b.is-sync .nlf-viz-hub span { animation: nlf-viz-pulse .6s ease both; }
}
@keyframes nlf-viz-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes nlf-viz-pulse { from { scale: 1.05; } to { scale: 1; } }
@media (forced-colors: active) {
  .nlf-viz-switch button[aria-pressed="true"] { outline: 2px solid CanvasText; }
}

/* Redaktionelle Langtexte (Wissen-Artikel) */
.prose-article { max-width: 68ch; display: grid; gap: 18px; }
.prose-article h2 { font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.18; letter-spacing: -0.015em; margin: 22px 0 0; color: var(--ink); }
.prose-article h2:first-child { margin-top: 0; }
.prose-article p { margin: 0; color: var(--mute); font-size: 17px; line-height: 1.68; }
.prose-article p strong { color: var(--ink); }
.prose-article a { color: var(--gold); text-underline-offset: 3px; }
.prose-article ul, .prose-article ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--mute); font-size: 16px; }
.study-card-media { aspect-ratio: 16/10; overflow: hidden; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-alt); margin-bottom: 12px; }
.study-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

}
/* ==========================================================================
   Northlightframe · Designsystem max-20261122
   „Ein Rahmen, durch den Nordlicht fällt.“
   Ungeschichtet → gewinnt immer gegen @layer legacy (altes main.css).
   ========================================================================== */

@property --draw { syntax: '<number>'; inherits: false; initial-value: 0; }

:root {
  color-scheme: dark;
  --bg: #0C0F13; --bg-2: #11151B; --bg-3: #171C23;
  --ink: #E4E9F0; --ink-2: #AEB7C4; --ink-3: #7D8796;
  --line: rgba(221, 227, 236, .12); --line-2: rgba(221, 227, 236, .24);
  --gold: #D59B42; --gold-ink: #120D05; --ice: #9BC4D8;
  --glass: rgba(18, 22, 28, .62);
  --display: "Archivo", "Instrument Sans", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --gut: clamp(20px, 4.2vw, 64px);
  --max: 1440px;
  --r: 4px; --r-card: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  /* Bewegungssystem „Nordlicht fällt durch einen Rahmen“ (R5) */
  --ease-aperture: cubic-bezier(.16, 1, .3, 1);
  --ease-frame: cubic-bezier(.23, 1, .32, 1);
  --ease-light: cubic-bezier(.46, 0, .09, .99);
  --ease-exit: cubic-bezier(.4, 0, 1, 1);
  --dur-scale: 1;
  --dur-micro: calc(140ms * var(--dur-scale));
  --dur-ui: calc(260ms * var(--dur-scale));
  --dur-reveal: calc(560ms * var(--dur-scale));
  --dur-stage: calc(880ms * var(--dur-scale));
  --fs-display: clamp(2.9rem, 7.4vw, 7.6rem);
  --fs-h1: clamp(2.5rem, 6vw, 5.8rem);
  --fs-h2: clamp(2.1rem, 4.6vw, 4.4rem);
  --fs-h3: clamp(1.2rem, 1.6vw, 1.5rem);
  --fs-lead: clamp(1.08rem, 1.35vw, 1.3rem);
  --sec: clamp(96px, 14vw, 200px);
  --nav-h: 76px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F0E8; --bg-2: #ECE8DE; --bg-3: #E3DED2;
  --ink: #101316; --ink-2: #3E4651; --ink-3: #5E6673;
  --line: rgba(16, 19, 22, .12); --line-2: rgba(16, 19, 22, .26);
  --gold: #8E5D12; --gold-ink: #FFF8EC; --ice: #2E5A6E;
  --glass: rgba(243, 240, 232, .72);
}
/* Heller Abschnitt im dunklen Modus (Referenzen) */
.refs, :root[data-theme="light"] .refs {
  --bg: #F3F0E8; --bg-2: #ECE8DE; --ink: #101316; --ink-2: #3E4651; --ink-3: #5E6673;
  --line: rgba(16, 19, 22, .12); --line-2: rgba(16, 19, 22, .26); --gold: #8E5D12; --gold-ink: #FFF8EC;
  color-scheme: light;
}

/* Brücke: alte Token-Namen (legacy-Komponenten der Unterseiten) zeigen auf das neue System */
:root, .refs {
  --mute: var(--ink-2); --silver: var(--ink); --silver-2: var(--ink-2); --silver-3: var(--ink-3); --signet: var(--ink);
  --bg-alt: var(--bg-2); --panel: var(--bg-2); --panel-2: var(--bg-3); --line-strong: var(--line-2);
  --gold-soft: color-mix(in srgb, var(--gold) 16%, transparent); --on-accent: var(--gold-ink);
  --mint: var(--ice); --mint-soft: color-mix(in srgb, var(--ice) 14%, transparent); --maxw: var(--max);
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, .28);
}

/* Altregeln mit gleichen Klassennamen neutralisieren (nur was das neue Layout bricht) */
.hero { min-height: 0; display: block; padding: 0; overflow: visible; align-items: normal; border: 0; }
.hero-stage { inset: auto; z-index: auto; }
.nav-inner { min-height: 0; justify-content: flex-start; }
.nav-links { flex: 0 1 auto; gap: 0; }
.nav-items { flex-wrap: nowrap; }
.nav-items a, .nav-items a:hover, .nav-items a[aria-current="page"] { border: 0; border-radius: 0; white-space: nowrap; }
.nav-cta { margin-left: 0; }
.scroll-rail { display: block; animation: none !important; height: 1px; pointer-events: none; }
html.is-still .scroll-rail { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .scroll-rail { animation: rail-fill linear both !important; animation-timeline: scroll(root block) !important; }
  }
}
@keyframes rail-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.footer ul { margin: 0; gap: 8px; }
.footer li a { padding: 0; font-size: inherit; }
.footer a { font-size: inherit; }
.footer a:hover { color: var(--ink); }
.footer .brand { margin-bottom: 0; }
.ctrl-btn[aria-pressed="true"] { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 12%, transparent); }
.marquee { background: none; }

/* ---------- Grund ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 clamp(1rem, .96rem + .2vw, 1.0625rem)/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
  transition: background-color .6s var(--ease-io), color .6s var(--ease-io);
}
html.in-light body { background: #F3F0E8; }
img, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
::selection { background: var(--gold); color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 3px; border-radius: 2px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; padding: 10px 16px; background: var(--ink); color: var(--bg); border-radius: var(--r); transition: top .2s; }
.skip:focus { top: 12px; }
.nlf-sprite, .scroll-progress { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }

/* Filmkorn über allem – Material statt Plastik */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
:root[data-theme="light"] body::after { opacity: .28; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) { body::after { animation: none; inset: 0; } }
html.is-still body::after { animation: none; }
@media (max-width: 767px) { :root { --dur-scale: .8; } }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ---------- Typografie ---------- */
.display, .h1, .h2, .home-h1, .home-h2, .footer-big {
  font-family: var(--display); font-weight: 640; letter-spacing: -.035em; line-height: .98; margin: 0;
  font-variation-settings: "wdth" 92; text-wrap: balance; color: var(--ink);
}
.display { font-size: min(var(--fs-display), 10.8svh); line-height: .93; letter-spacing: -.045em; max-width: 13ch; }
.h1 { font-size: var(--fs-h1); max-width: 16ch; }
.h2 { font-size: var(--fs-h2); max-width: 18ch; }
.h3 { font: 600 var(--fs-h3)/1.22 var(--display); letter-spacing: -.015em; margin: 0; color: var(--ink); text-wrap: balance; }
.dim, .h1 em, .h2 em, .display em { color: var(--ink-3); font-style: normal; }
.lead, .sec-lead, .hero-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; margin: 0; }
.mono, .kicker, .nlf-viz-tag, .nav-no {
  font: 500 .74rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.kicker { display: inline-flex; align-items: center; gap: 14px; margin: 0 0 clamp(20px, 3vw, 36px); color: var(--ink-2); }
.kicker-line, .kicker-dot { width: 36px; height: 1px; background: var(--gold); display: inline-block; border-radius: 0; transform: none; flex-shrink: 0; }
p { text-wrap: pretty; }
.ln { padding-bottom: .06em; } /* SplitText-Maske: Unterlängen nicht abschneiden */

/* ---------- Knöpfe ---------- */
.btn, .btn-premium, .btn-glass {
  --b-bg: transparent; --b-ink: var(--ink); --b-line: var(--line-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r); border: 1px solid var(--b-line);
  background: var(--b-bg); color: var(--b-ink); font: 600 .95rem/1 var(--sans); letter-spacing: .005em;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), border-color .3s, color .3s, background-color .3s;
}
.btn::before, .btn-premium::before, .btn-glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before, .btn-premium:hover::before, .btn-glass:hover::before { transform: none; }
.btn:hover, .btn-glass:hover { color: var(--bg); border-color: var(--ink); }
.btn-gold, .btn-premium { --b-bg: var(--gold); --b-ink: var(--gold-ink); --b-line: var(--gold); }
.btn-gold::before, .btn-premium::before { background: var(--ink); }
.btn-gold:hover, .btn-premium:hover { color: var(--bg); border-color: var(--ink); }
.btn-ghost { --b-bg: transparent; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .88rem; }
.link-arrow { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: border-color .3s, gap .4s var(--ease); }
.link-arrow::after { content: "→"; }
.link-arrow:hover { border-color: var(--gold); gap: 14px; }
.ctrl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 42px; min-height: 42px; padding: 0 10px; border-radius: var(--r); border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font: 500 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: border-color .3s, background-color .3s; }
.ctrl-btn:hover { border-color: var(--line-2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.ctrl-btn svg { width: 18px; height: 18px; }

/* ---------- Navigation ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); transition: transform .6s var(--ease), background-color .4s, border-color .4s; border-bottom: 1px solid transparent; view-transition-name: nav; }
.nav.is-scrolled { background: var(--glass); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); border-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
html.in-light .nav.is-scrolled { --glass: rgba(243, 240, 232, .78); --ink: #101316; --line: rgba(16,19,22,.12); --line-2: rgba(16,19,22,.26); --gold: #8E5D12; --gold-ink: #FFF8EC; color: #101316; }
.nav-inner { height: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand-signet { width: 22px; height: 22px; transition: transform .8s var(--ease); }
.brand:hover .brand-signet { transform: rotate(-90deg); }
.wordmark { font: 680 1.12rem/1 var(--display); letter-spacing: -.02em; font-variation-settings: "wdth" 96; }
.nav-links { margin-left: auto; display: flex; align-items: center; }
.nav-items { display: flex; gap: 4px; }
.nav-items a { position: relative; padding: 10px 12px; text-decoration: none; color: var(--ink-2); font-size: .93rem; font-weight: 500; transition: color .3s; }
.nav-items a:hover, .nav-items a[aria-current="page"] { color: var(--ink); }
.nav-items a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav-items a:hover::after, .nav-items a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-no, .nav-menu-foot { display: none; }
.nav-end { display: flex; align-items: center; gap: 10px; }
.btn-menu { display: none; }
.scroll-rail { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.menu-bars { display: grid; gap: 5px; width: 18px; }
.menu-bars i { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
html.menu-open .menu-bars i:first-child { transform: translateY(3.25px) rotate(45deg); }
html.menu-open .menu-bars i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

@media (max-width: 1080px) {
  .btn-menu { display: inline-flex; }
  .nav-cta { display: none; }
  .nav-end { margin-left: auto; }
  .nav-links {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--nav-h) + 4vh) var(--gut) 32px;
    flex-direction: column; align-items: stretch; justify-content: space-between; background: var(--bg);
    clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden;
  }
  .nav-links.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav-items { flex-direction: column; gap: 0; }
  .nav-items a { display: flex; align-items: baseline; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font: 640 clamp(2rem, 8vw, 3.4rem)/1.05 var(--display); letter-spacing: -.03em; color: var(--ink); transform: translateY(30px); opacity: 0; transition: transform .8s var(--ease), opacity .6s; }
  .nav-links.is-open .nav-items a { transform: none; opacity: 1; }
  .nav-links.is-open .nav-items a:nth-child(2) { transition-delay: .04s; } .nav-links.is-open .nav-items a:nth-child(3) { transition-delay: .08s; }
  .nav-links.is-open .nav-items a:nth-child(4) { transition-delay: .12s; } .nav-links.is-open .nav-items a:nth-child(5) { transition-delay: .16s; }
  .nav-links.is-open .nav-items a:nth-child(6) { transition-delay: .2s; } .nav-links.is-open .nav-items a:nth-child(7) { transition-delay: .24s; }
  .nav-items a::after { display: none; }
  .nav-no { display: inline; color: var(--gold); }
  .nav-menu-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; }
  .nav-menu-foot a { color: var(--ink-2); }
  html.menu-open .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
  /* Pixel-Befund 22.11.: Blur der Leiste (legacy main.css) begrenzte das fixe Panel auf die Leistenhoehe */
  .nav-links { max-height: none; overflow-y: auto; overscroll-behavior: contain; justify-content: flex-start; gap: 32px; }
}
@media (max-width: 520px) { .menu-label { display: none; } }

/* ---------- Abschnitte (Baukasten, gilt für alle Unterseiten) ---------- */
.sec, .svc, .works, .flow, .contact, .manifest, .refs { position: relative; padding-block: var(--sec); }
.sec + .sec { padding-top: 0; }
.sec-top { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 104px); }
.sec-top-split { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 40px; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: clamp(40px, 6vw, 80px); max-width: 980px; }
.sec-head .lead { margin-top: 6px; }
@media (min-width: 1000px) {
  /* Unterseiten: Kopf links klebt, Inhalt rechts → redaktioneller Rhythmus */
  .sec > .wrap:has(> .sec-head + .grid-2), .sec > .wrap:has(> .sec-head + .faq-list), .sec > .wrap:has(> .sec-head + .prose) {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start;
  }
  .sec > .wrap > .sec-head:has(+ .grid-2), .sec > .wrap > .sec-head:has(+ .faq-list), .sec > .wrap > .sec-head:has(+ .prose) {
    position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0;
  }
  .sec > .wrap > .sec-head:has(+ .grid-2) .h2, .sec > .wrap > .sec-head:has(+ .faq-list) .h2 { font-size: clamp(2rem, 3.4vw, 3.4rem); }
}
.sec-top-split .sec-lead { justify-self: end; }
@media (max-width: 860px) { .sec-top-split { grid-template-columns: minmax(0, 1fr); } .sec-top-split .sec-lead { justify-self: start; } }

/* Seitenkopf der Unterseiten mit Nordlicht */
.page-hero {
  position: relative; padding-top: calc(var(--nav-h) + clamp(80px, 14vw, 200px)); padding-bottom: clamp(64px, 9vw, 140px);
  display: grid; gap: 28px; isolation: isolate; border-bottom: 0;
}
.page-hero .h1 { font-size: clamp(2.4rem, 5.4vw, 5.4rem); max-width: 16ch; overflow-wrap: break-word; hyphens: auto; }
.page-hero.has-bild .h1 { font-size: clamp(2.2rem, 4.6vw, 4.65rem); max-width: 16ch; }
.page-hero .lead { max-width: 60ch; }
.page-hero::after { content: ""; position: absolute; left: var(--gut); right: var(--gut); bottom: 0; height: 1px; background: var(--line); }
.aurora-cv { position: absolute; z-index: -1; inset: 0 0 auto; height: min(78vh, 760px); width: 100%; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, #000 40%, transparent 100%); }
html.aurora-live .aurora-cv { opacity: 1; }
[data-aurora] { position: relative; isolation: isolate; }
.page-hero[data-aurora] .aurora-cv { left: 50%; width: 100vw; max-width: none; transform: translateX(-50%); }
:root[data-theme="light"] .aurora-cv { filter: saturate(.7); }
html.aurora-live:root[data-theme="light"] .aurora-cv { opacity: .45; }

/* Seitenkopf mit Bild: das Motiv steht rechts in einem Rahmen, der sich selbst zeichnet */
.page-hero.has-bild { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); column-gap: clamp(32px, 5vw, 88px); align-items: end; }
.page-hero.has-bild > :not(.ph-bild, .aurora-cv) { grid-column: 1; }
.ph-bild { grid-column: 2; grid-row: 2 / span 3; align-self: start; justify-self: end; position: relative; margin: 14px 0 0; width: min(100%, 520px); aspect-ratio: 1 / 1; max-height: min(58vh, 520px); }
.ph-bild img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 2px; filter: saturate(.92) contrast(1.04); }
.ph-bild::before {
  content: ""; position: absolute; inset: -14px; pointer-events: none; --draw: 1;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / calc(var(--draw) * 62.5%) 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom right / 1px calc(var(--draw) * 100%) no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) bottom left / calc(var(--draw) * 100%) 1px no-repeat,
    linear-gradient(var(--line-2), var(--line-2)) top left / 1px calc(var(--draw) * 100%) no-repeat;
}
@media (max-width: 860px) {
  .page-hero.has-bild { grid-template-columns: minmax(0, 1fr); }
  .ph-bild { grid-column: 1; grid-row: auto; justify-self: stretch; width: 100%; max-height: none; aspect-ratio: 16 / 10; margin-top: 12px; align-self: auto; }
  .ph-bild::before { inset: -8px; }
}

/* Karten: Rahmen zeichnen sich selbst */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
@media (max-width: 720px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.card {
  position: relative; display: grid; align-content: start; gap: 14px; padding: clamp(26px, 3vw, 44px);
  background: var(--bg); border: 0; border-radius: 0; color: var(--ink); min-height: 240px;
  transition: background-color .5s var(--ease);
}
.card .mono { color: var(--gold); }
.card p { margin: 0; color: var(--ink-2); }
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; --draw: 0;
  background:
    linear-gradient(var(--gold), var(--gold)) top left / calc(var(--draw) * 100%) 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top right / 1px calc(var(--draw) * 100%) no-repeat;
  opacity: .9; transition: --draw .9s var(--ease);
}
.card:hover { background: var(--bg-2); }
.card:hover::before { --draw: 1; }
a.card { text-decoration: none; }

/* Fließtext */
.prose { max-width: 72ch; font-size: 1.06rem; color: var(--ink-2); }
.prose h2, .prose h3 { font-family: var(--display); color: var(--ink); letter-spacing: -.02em; line-height: 1.15; margin: 2.2em 0 .6em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); }
.prose h3 { font-size: 1.3rem; }
.prose a { color: var(--ink); text-decoration-color: var(--gold); }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li::marker { color: var(--gold); }
.prose blockquote { margin: 2em 0; padding-left: 24px; border-left: 1px solid var(--gold); font: 500 1.3rem/1.45 var(--display); color: var(--ink); }

/* FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; font: 600 clamp(1.08rem, 1.5vw, 1.3rem)/1.3 var(--display); letter-spacing: -.01em; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font: 300 1.6rem/1 var(--sans); color: var(--gold); transition: transform .5s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details > :not(summary) { margin: 0 0 26px; max-width: 64ch; color: var(--ink-2); }
.faq-list details[open] > :not(summary) { animation: faq-in .6s var(--ease); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* Formulare */
.form-panel { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 8px; }
.field label { font: 500 .74rem/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 1.06rem/1.4 var(--sans); transition: border-color .3s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); opacity: .8; }
.field-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.consent-line { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.consent-line input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 8px; }
.form-foot-note { font: 500 .74rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.form-status { padding: 14px 18px; border: 1px solid var(--line-2); border-radius: var(--r); }

/* ---------- Sichtbarkeit / Reveals ---------- */
html:not(.motion-off):not(.is-still) .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--rv-i, 0) * 70ms); }
html:not(.motion-off):not(.is-still) .rv.is-in { opacity: 1; transform: none; }
.grid-2 > .card.rv { transform: none !important; } /* Raster ohne Versatz, nur Licht */
.is-split { opacity: 1 !important; transform: none !important; }

/* ---------- Cursor ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 180; pointer-events: none; width: 0; height: 0; opacity: 0; transition: opacity .3s; }
html.cursor-on .cursor { opacity: 1; }
.cursor::before { content: ""; position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--ink); mix-blend-mode: difference; transition: transform .45s var(--ease), background-color .3s; }
:root[data-theme="dark"] .cursor::before { background: #fff; }
.cursor.is-link::before { transform: scale(3.6); opacity: .9; }
.cursor.is-text::before { transform: scaleX(.2) scaleY(2.4); }
.cursor.has-label::before { transform: scale(8.6); background: var(--gold); mix-blend-mode: normal; }
.cursor-label { position: absolute; transform: translate(-50%, -50%); font: 600 .72rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold-ink); opacity: 0; transition: opacity .25s; white-space: nowrap; }
:root .cursor-label { color: #120D05; }
.cursor.has-label .cursor-label { opacity: 1; transition-delay: .1s; }
@media (pointer: fine) { html.cursor-on body:not(.no-cursor) a, html.cursor-on [data-cursor] { cursor: none; } }

/* ==========================================================================
   STARTSEITE
   ========================================================================== */
.hero { position: relative; height: 200vh; height: 200svh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; grid-template-rows: 1fr auto; }
.hero-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 14, 18, .78) 0%, rgba(11, 14, 18, .5) 34%, rgba(11, 14, 18, 0) 62%), linear-gradient(0deg, rgba(11, 14, 18, .7), rgba(11, 14, 18, 0) 45%);
  opacity: calc(1 - var(--hero-p, 0) * 2.4); }
.hero-media { position: absolute; inset: 0; overflow: hidden; background: #0C0F13;
  transform: scale(calc(1 + var(--hero-p, 0) * .5)); transform-origin: 72% 46%; will-change: transform; }
.hero-media img, .hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.hero-media img { animation: buehne 2.4s var(--ease) both; }
@keyframes buehne { from { opacity: 0; transform: scale(1.06); } }
.hero-film { opacity: 0; transition: opacity 1.6s var(--ease); }
html.hero-film-live .hero-film { opacity: 1; }
html.hero-scrub .hero-media { transform: none; } /* die Fahrt steckt im Clip, kein Zusatz-Zoom */
.hero-copy { position: relative; z-index: 2; align-self: end; padding-bottom: clamp(28px, 5vh, 56px); padding-top: calc(var(--nav-h) + 32px);
  opacity: calc(1 - var(--hero-p, 0) * 3.2); transform: translateY(calc(var(--hero-p, 0) * -120px)); }
.hero .display { color: #E9EEF5; }
.hero .dim { color: rgba(233, 238, 245, .52); }
.hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 64px; align-items: end; margin-top: clamp(28px, 4vw, 52px); }
.hero-lead { color: rgba(233, 238, 245, .74); max-width: 54ch; font-size: clamp(1rem, 1.15vw, 1.14rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { --b-ink: #E9EEF5; --b-line: rgba(233, 238, 245, .3); }
.hero .btn-ghost::before { background: #E9EEF5; }
.hero .btn-ghost:hover { color: #0C0F13; }
.hero .btn-gold::before { background: #E9EEF5; }
.hero .btn-gold:hover { color: #0C0F13; }
.hero-facts { position: relative; z-index: 2; list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(233, 238, 245, .14); padding-block: 22px 28px;
  opacity: calc(1 - var(--hero-p, 0) * 4); }
.hero-facts li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; color: rgba(233, 238, 245, .62); font-size: .9rem; }
.hero-facts li .mono { grid-row: span 2; color: #D59B42; padding-top: 3px; }
.hero-facts strong { color: #E9EEF5; font-weight: 600; }
.hero-cue { position: absolute; z-index: 2; right: clamp(12px, 1.3vw, 22px); top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 12px; margin: 0; font: 500 .68rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: rgba(233, 238, 245, .55); writing-mode: vertical-rl; opacity: calc(1 - var(--hero-p, 0) * 6); }
.hero-cue i { width: 1px; height: 64px; background: linear-gradient(rgba(233,238,245,.6), transparent); animation: cue 2.4s var(--ease-io) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.hero-through { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; margin: 0; pointer-events: none;
  font: 640 clamp(2.6rem, 8vw, 8rem)/1 var(--display); letter-spacing: -.045em; color: #E9EEF5; font-variation-settings: "wdth" 92;
  text-shadow: 0 2px 40px rgba(11, 14, 18, .45);
  opacity: calc(clamp(0, (var(--hero-p, 0) - .62) * 7, 1) - clamp(0, (var(--hero-p, 0) - .9) * 10, 1)); transform: scale(calc(1.25 - var(--hero-p, 0) * .25)); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40vh; background: linear-gradient(to bottom, transparent, var(--bg)); pointer-events: none; z-index: 1; }
@media (max-width: 900px) {
  .hero-stage::before { background: linear-gradient(180deg, rgba(11, 14, 18, .82) 0%, rgba(11, 14, 18, .35) 48%, rgba(11, 14, 18, 0) 70%, rgba(11, 14, 18, .55) 100%); }
  .hero-foot { grid-template-columns: minmax(0, 1fr); }
  .hero-facts { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-block: 16px 20px; }
  .hero-facts li span:last-child { display: none; }
  .hero-cue { display: none; }
}
@media (max-width: 760px) {
  .hero { height: auto; }
  .hero-stage { position: relative; height: auto; min-height: 100svh; grid-template-rows: auto minmax(clamp(300px, 92vw, 440px), 1fr) auto; }
  /* Glas in eigener Zeile unter dem Text: kein Überdecken, egal wie hoch die Browserleiste ist */
  .hero-media { position: relative; inset: auto; grid-row: 2 / 4; grid-column: 1; transform: none; will-change: auto; }
  .hero-media img, .hero-film { object-position: 50% 92%; }
  .hero-copy { align-self: start; opacity: 1; transform: none; padding-top: calc(var(--nav-h) + 20px); padding-bottom: 0; }
  .hero-lead { display: none; }
  .hero-foot { margin-top: 22px; }
  .hero-copy { grid-row: 1; grid-column: 1; }
  .hero-facts { grid-row: 3; grid-column: 1; opacity: 1; }
  .hero-through { display: none; }
}
}
@media (max-width: 900px) and (max-height: 760px) { .hero-facts { display: none; } }

/* 02 Haltung */
.manifest { padding-block: clamp(120px, 18vw, 260px); }
.manifest-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 4fr); gap: 40px; }
.manifest-text { margin: 0; font: 560 clamp(1.7rem, 3.6vw, 3.5rem)/1.16 var(--display); letter-spacing: -.028em; color: var(--ink); max-width: 30ch; text-wrap: pretty; }
.manifest-sign { display: flex; align-items: center; gap: 12px; margin-top: 40px; font: 500 .8rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.sign-ico { width: 16px; height: 16px; color: var(--gold); }
@media (max-width: 760px) { .manifest-grid { grid-template-columns: minmax(0, 1fr); } }

/* 03 Leistungen */
.svc-list, .ref-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-list li, .ref-list li { border-bottom: 1px solid var(--line); }
/* Haarlinien zeichnen sich beim Eintritt (nur CSS, Scroll-Timeline); ohne Unterstützung, bei Reduced Motion
   und bei angehaltener Bewegung bleiben die festen Linien oben stehen. */
@property --draw { syntax: '<number>'; inherits: true; initial-value: 1; }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    html:not(.is-still) .svc-list { position: relative; border-top-color: transparent; --draw: 0; animation: lin-zeichnen linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    html:not(.is-still) .svc-list li { position: relative; border-bottom-color: transparent; --draw: 0; animation: lin-zeichnen linear both; animation-timeline: view(); animation-range: entry 0% entry 85%; }
    html:not(.is-still) .svc-list::before, html:not(.is-still) .svc-list li::after { content: ""; position: absolute; left: 0; right: 0; height: 1px; background: var(--line-2); transform: scaleX(var(--draw)); transform-origin: left center; pointer-events: none; }
    html:not(.is-still) .svc-list::before { top: 0; }
    html:not(.is-still) .svc-list li::after { bottom: -1px; }
  }
}
@keyframes lin-zeichnen { from { --draw: 0; } to { --draw: 1; } }
.svc-row {
  position: relative; display: grid; grid-template-columns: 60px 40px minmax(0, 1.1fr) minmax(0, 1.4fr) 40px; grid-template-areas: "no ico name text arr" "no ico name tags arr";
  gap: 8px 32px; align-items: center; padding: clamp(28px, 3.6vw, 52px) 0; text-decoration: none; color: var(--ink);
}
.svc-row::before { content: ""; position: absolute; inset: 0 calc(var(--gut) * -1); background: var(--bg-2); transform: scaleY(0); transform-origin: bottom; transition: transform .7s var(--ease); z-index: -1; }
.svc-row:hover::before, .svc-row:focus-visible::before { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .svc-row, .svc-name { transition: opacity .5s var(--ease), transform .7s var(--ease), font-variation-settings .7s var(--ease); }
  .svc-list:hover .svc-row:not(:hover) { opacity: .34; }
  .svc-name { font-variation-settings: "wdth" 92; }
  .svc-row:hover .svc-name { font-variation-settings: "wdth" 100; }
  .svc-row::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--dur-reveal) var(--ease-frame); pointer-events: none; }
  .svc-row:hover::after, .svc-row:focus-visible::after { transform: none; }
}
.svc-no { grid-area: no; color: var(--gold); }
.svc-ico { grid-area: ico; width: 30px; height: 30px; color: var(--ink); transition: transform .8s var(--ease); }
.svc-row:hover .svc-ico { transform: rotate(-90deg); }
.svc-name { grid-area: name; font: 640 clamp(2.2rem, 5.4vw, 5.2rem)/.95 var(--display); letter-spacing: -.04em; font-variation-settings: "wdth" 92; contain: layout style; transition: transform .7s var(--ease), color .4s; }
.svc-row:hover .svc-name { transform: translateX(14px); }
.svc-text { grid-area: text; color: var(--ink-2); max-width: 52ch; }
.svc-tags { grid-area: tags; color: var(--ink-3); font-size: .68rem; }
.svc-arrow { grid-area: arr; justify-self: end; font-size: 1.6rem; transition: transform .6s var(--ease); }
.svc-row:hover .svc-arrow { transform: translateX(6px) rotate(-45deg); color: var(--gold); }
@media (max-width: 960px) {
  .svc-row { grid-template-columns: 40px minmax(0, 1fr) 30px; grid-template-areas: "no name arr" "ico text text" ". tags tags"; gap: 14px 16px; }
  .svc-ico { width: 22px; height: 22px; }
}
.peek { position: fixed; left: 0; top: 0; z-index: 90; width: clamp(240px, 24vw, 400px); aspect-ratio: 16 / 10; pointer-events: none; overflow: hidden; border-radius: var(--r); opacity: 0; transform: translate3d(-50%, -50%, 0) scale(.85); transition: opacity .35s, transform .6s var(--ease); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.peek.is-on { opacity: 1; }
.peek img { width: 100%; height: 100%; object-fit: cover; }
@media (pointer: coarse) { .peek { display: none; } }

/* Marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: clamp(18px, 2.4vw, 30px); }
.mq-track { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); width: max-content; will-change: transform; }
.mq-track span { font: 600 clamp(1.6rem, 3.6vw, 3.4rem)/1 var(--display); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.mq-track i { width: 14px; height: 14px; flex: none; background: var(--gold); clip-path: path("M0 0H9V3.5H3.5V10.5H10.5V5H14V14H0Z"); }

/* 04 Werkschau */
.works-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 5vw, 80px) clamp(20px, 2.4vw, 36px); }
.work { grid-column: span 6; display: grid; gap: 22px; align-content: start; }
.work-xl { grid-column: 1 / -1; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; gap: clamp(24px, 3vw, 48px); }
.work:nth-child(4) { margin-top: clamp(0px, 8vw, 120px); }
.work:nth-child(6) { margin-top: clamp(0px, 8vw, 120px); }
.work-media { position: relative; display: block; width: 100%; padding: 0; border: 0; background: var(--bg-3); border-radius: var(--r-card); overflow: hidden; aspect-ratio: 16 / 10; cursor: pointer; isolation: isolate; }
.work-xl .work-media { aspect-ratio: 16 / 9; }
.work-media img, .work-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), opacity .6s; }
.work-media video { opacity: 0; }
.work-media.is-playing video { opacity: 1; }
.work-media:hover img, .work-media:hover video { transform: scale(1.025); }
.work-media::after { content: ""; position: absolute; inset: 0; border: 1px solid var(--line); border-radius: inherit; pointer-events: none; }
.work-body { display: grid; gap: 10px; }
.work-body .mono { color: var(--gold); }
.work-body p { margin: 0; color: var(--ink-2); max-width: 52ch; }
.work-body .link-arrow { justify-self: start; margin-top: 8px; }
.works-more { margin: clamp(48px, 6vw, 88px) 0 0; display: flex; justify-content: center; }
@media (max-width: 860px) { .work, .work-xl { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); } .work:nth-child(n) { margin-top: 0; } }

/* Übergang auf Papier: Rahmen zeichnet sich einmal selbst */
.paper-bridge { position: relative; height: clamp(280px, 50vh, 560px); display: grid; place-items: end center; padding-bottom: clamp(24px, 4vh, 48px);
  background: linear-gradient(in oklab 180deg, var(--bg) 0%, var(--bg) 18%, #F3F0E8 52%); }
.bridge-frame { width: clamp(72px, 9vw, 128px); height: auto; overflow: visible; }
.portal-stage { display: none; }
@media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
  .paper-bridge.has-portal { display: block; height: 220vh; padding: 0; background: #F3F0E8; }
  .paper-bridge.has-portal .portal-stage { display: block; position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--bg); }
  .portal-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .portal-stage::after { content: ""; position: absolute; inset: 0; background: #F3F0E8; opacity: var(--pf, 0); pointer-events: none; }
  .paper-bridge.has-portal .bridge-frame { display: none; }
}
html.is-still .portal-stage { display: none !important; }
.bridge-frame path { fill: none; stroke: #B07A2A; stroke-width: .16;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-io); }
.bridge-frame.is-drawn path { stroke-dashoffset: 0; }
:root[data-theme="light"] .paper-bridge { background: linear-gradient(180deg, var(--bg), #F3F0E8); }

/* 05 Referenzen (hell) */
.refs { background: var(--bg); color: var(--ink); }
.ref-row { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1.2fr) 30px; gap: 24px; align-items: center; padding: clamp(22px, 2.6vw, 36px) 0; text-decoration: none; color: var(--ink); }
.ref-row .mono { color: var(--gold); }
.ref-name { font: 620 clamp(1.6rem, 3.2vw, 3rem)/1 var(--display); letter-spacing: -.035em; transition: transform .7s var(--ease); }
.ref-row:hover .ref-name { transform: translateX(12px); }
.ref-what, .ref-did { color: var(--ink-2); font-size: .95rem; }
.ref-go { justify-self: end; font-size: 1.3rem; transition: transform .5s var(--ease), color .3s; }
.ref-row:hover .ref-go { transform: translate(4px, -4px); color: var(--gold); }
@media (max-width: 860px) { .ref-row { grid-template-columns: 36px minmax(0, 1fr) 24px; } .ref-what { display: none; } .ref-did { grid-column: 2; grid-row: 2; } }
.refs .btn-ghost { --b-line: rgba(16, 19, 22, .26); }

/* 06 Ablauf + Preise */
.flow-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 110px); align-items: start; }
.flow-head { position: sticky; top: calc(var(--nav-h) + 40px); margin: 0; }
.steps { position: relative; list-style: none; margin: 0; padding: 0 0 0 clamp(36px, 5vw, 72px); display: grid; gap: clamp(56px, 8vw, 120px); }
.steps-line { position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.steps-line i { position: absolute; inset: 0; background: var(--gold); transform-origin: top; }
.step { position: relative; display: grid; gap: 12px; }
.step::before { content: ""; position: absolute; left: calc(clamp(36px, 5vw, 72px) * -1 - 4px); top: 6px; width: 9px; height: 9px; background: var(--bg); border: 1px solid var(--gold); }
.step-no { color: var(--gold); }
.step .h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -.025em; }
.step p { margin: 0; color: var(--ink-2); max-width: 56ch; }
@media (max-width: 900px) { .flow-grid { grid-template-columns: minmax(0, 1fr); } .flow-head { position: static; } }
.prices { margin-top: var(--sec); }
.price-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.price { position: relative; display: grid; gap: 10px; align-content: start; padding: clamp(26px, 2.6vw, 40px); min-height: 300px; background: var(--bg); text-decoration: none; color: var(--ink); transition: background-color .5s var(--ease); }
.price:hover { background: var(--bg-2); }
@media (hover: hover) and (pointer: fine) {
  .price::after { content: ""; position: absolute; inset: 0; padding: 1px; pointer-events: none; opacity: 0;
    background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(213, 155, 66, .55), transparent 70%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    transition: opacity var(--dur-ui) var(--ease-frame); }
  .price:hover::after, .price:focus-visible::after { opacity: 1; }
}
html.is-still .price::after { display: none; }
.price .mono { color: var(--gold); }
.price-name { font: 620 1.4rem/1.15 var(--display); letter-spacing: -.02em; }
.price-val { margin-top: auto; font: 640 clamp(2.2rem, 3.6vw, 3.4rem)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.price-val small { font: 500 .8rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-right: 6px; vertical-align: middle; }
.price-note { color: var(--ink-3); font-size: .9rem; }
.price::before { content: ""; position: absolute; inset: 0; pointer-events: none; --draw: 0; background: linear-gradient(var(--gold), var(--gold)) bottom left / calc(var(--draw) * 100%) 2px no-repeat; transition: --draw .9s var(--ease); }
.price:hover::before { --draw: 1; }
@media (max-width: 1000px) { .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .price-grid { grid-template-columns: minmax(0, 1fr); } .price { min-height: 0; } }

/* 07 Kontakt */
.contact { overflow: clip; }
.contact-mark { position: relative; margin: clamp(64px, 9vw, 140px) 0 0; text-align: center; white-space: nowrap; pointer-events: none;
  font: 680 clamp(2.4rem, 11.6vw, 13rem)/.8 var(--display); letter-spacing: -.055em; text-transform: uppercase; font-variation-settings: "wdth" 88;
  color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--ink) 22%, transparent);
  background: linear-gradient(90deg, transparent 0 20%, color-mix(in srgb, var(--gold) 70%, transparent) 50%, transparent 80%) -100% 0 / 200% 100% no-repeat text;
  -webkit-background-clip: text; }
.contact-mark.is-lit { animation: saum 3.2s var(--ease-light) 1 both; }
@keyframes saum { 0% { background-position: 200% 0; } 100% { background-position: -100% 0; } }
.contact .aurora-cv { inset: auto 0 0; height: 100%; transform: scaleY(-1); opacity: .0; }
html.aurora-live .contact .aurora-cv { opacity: .55; }
.contact-film { display: none; }
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .contact-film { display: block; position: absolute; z-index: -1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; pointer-events: none;
    opacity: 0; transition: opacity var(--dur-stage) var(--ease-light);
    -webkit-mask-image: radial-gradient(70% 80% at 74% 62%, #000 30%, transparent 78%); mask-image: radial-gradient(70% 80% at 74% 62%, #000 30%, transparent 78%); }
  .contact-film.is-live { opacity: .62; }
  :root[data-theme="light"] .contact-film.is-live { opacity: .3; }
}
html.is-still .contact-film { display: none; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
.contact-intro { display: grid; gap: 24px; position: sticky; top: calc(var(--nav-h) + 40px); }
.contact-facts { display: grid; gap: 14px; margin: 12px 0 0; }
.contact-facts div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); }
.contact-facts dd { margin: 0; color: var(--ink); }
.contact-facts a { text-decoration: none; }
.contact-facts a:hover { color: var(--gold); }
.contact .form-panel { padding: clamp(28px, 3.4vw, 52px); background: color-mix(in srgb, var(--bg-2) 78%, transparent); border: 1px solid var(--line); border-radius: var(--r-card); backdrop-filter: blur(10px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } .contact-intro { position: static; } }

/* ---------- Fuß ---------- */
.footer { position: relative; padding-block: clamp(80px, 11vw, 160px) 32px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-cta { display: grid; gap: 20px; padding-bottom: clamp(64px, 9vw, 130px); }
.footer-big { font-size: clamp(2.4rem, 7vw, 7rem); text-decoration: none; max-width: 16ch; transition: color .4s; }
.footer-big:hover .dim { color: var(--gold); }
.footer-big .dim { transition: color .5s var(--ease); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 48px; border-top: 1px solid var(--line); }
.footer-claim { color: var(--ink-3); max-width: 34ch; margin: 18px 0 0; }
.footer-head { margin: 0 0 16px; font: 500 .72rem/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a, .footer-legal a { text-decoration: none; color: var(--ink-2); transition: color .3s; }
.footer-col a:hover, .footer-legal a:hover { color: var(--ink); }
.footer-address { font-style: normal; color: var(--ink-2); line-height: 1.7; }
.footer-time { margin: 16px 0 0; color: var(--ink); font-variant-numeric: tabular-nums; display: flex; gap: 12px; align-items: baseline; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: .86rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ctrl-text-btn { min-height: 34px; font-size: .68rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Seitenwechsel ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ph-bild::before { animation: ph-draw 1.6s var(--ease) .35s both; }
  .ph-bild img { animation: ph-in 1.4s var(--ease) .15s both; }
  @view-transition { navigation: auto; }
  /* Rahmen-Wipe: die neue Seite öffnet sich aus einem Rahmen, die alte tritt zurück. Gesamt 0,42 s. */
  ::view-transition-group(root) { animation-duration: .42s; animation-timing-function: var(--ease-aperture); }
  ::view-transition-old(root) { animation: vt-zurueck .3s var(--ease-exit) both; }
  ::view-transition-new(root) { animation: vt-rahmen .42s var(--ease-aperture) both; }
  ::view-transition-group(nav) { animation-duration: 0s; }
  /* Goldsaum nur im Seitenwechsel (:active-view-transition), nie beim Erstladen oder Scrollen */
  html::before { content: ""; position: fixed; inset: 0; z-index: 300; pointer-events: none; border: 1.5px solid var(--gold);
    border-radius: var(--r); opacity: 0; view-transition-name: saum; }
  html:active-view-transition::before { opacity: 1; }
  ::view-transition-group(saum) { animation-duration: .42s; }
  ::view-transition-old(saum) { display: none; }
  ::view-transition-new(saum) { animation: vt-saum .42s var(--ease-aperture) both; }
  /* Bewegung anhalten (Schalter): sofortiger Wechsel ohne Wipe und Saum */
  html.is-still::view-transition-group(*), html.is-still::view-transition-old(*), html.is-still::view-transition-new(*) { animation: none !important; }
  html.is-still::view-transition-old(root), html.is-still::view-transition-old(saum) { display: none; }
}
@keyframes vt-zurueck { to { opacity: 0; transform: scale(.985); } }
@keyframes vt-rahmen { from { clip-path: inset(14% round 4px); } to { clip-path: inset(0 round 0); } }
@keyframes vt-saum { from { opacity: 1; transform: scale(.72); } 70% { opacity: .9; } to { opacity: 0; transform: scale(1); } }
@media (max-width: 760px) { @keyframes vt-rahmen { from { clip-path: inset(7% round 4px); } to { clip-path: inset(0 round 0); } } @keyframes vt-saum { from { opacity: 1; transform: scale(.86); } to { opacity: 0; transform: scale(1); } } }

/* ---------- Werk-Dialog ---------- */
#werkDialog { width: min(1180px, 94vw); max-height: 92vh; padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--bg-2); color: var(--ink); }
#werkDialog::backdrop { background: rgba(6, 8, 11, .78); backdrop-filter: blur(6px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.dlg-body { padding: 24px; overflow: auto; }

/* ---------- SOTY 2026 Signature Layer (Preloader, Curtain, Kinetic Roll, Marketing-Details) ---------- */
.nlf-preloader {
  position: fixed; inset: 0; z-index: 260;
  display: grid; place-items: center;
  background: #0B0E12; color: #DDE3EC;
  transform: translate3d(0, 0, 0);
  transition: transform .64s cubic-bezier(.16, 1, .3, 1);
}
.nlf-preloader.is-leaving { transform: translate3d(0, -102%, 0); pointer-events: none; }
.nlf-preloader.is-gone { display: none; }
.nlf-pre-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.nlf-pre-mark { width: 42px; height: 42px; color: #DDE3EC; }
.nlf-pre-mark path {
  fill: none; stroke: currentColor; stroke-width: 1.25;
  stroke-dasharray: 96; stroke-dashoffset: 96;
  animation: nlf-pre-draw .5s cubic-bezier(.19, 1, .22, 1) forwards;
}
.nlf-pre-row {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: #8C96A6;
}
.nlf-pre-count { color: #DDE3EC; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.nlf-pre-bar { width: 136px; height: 1px; background: rgba(221, 227, 236, .16); overflow: hidden; }
.nlf-pre-bar > span {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(90deg, #DDE3EC 0%, #D59B42 100%);
  transform-origin: 0 50%; transform: scaleX(var(--pre-p, 0));
}
@keyframes nlf-pre-draw {
  0% { stroke-dashoffset: 96; fill: transparent; }
  75% { stroke-dashoffset: 0; fill: rgba(221, 227, 236, .15); }
  100% { stroke-dashoffset: 0; fill: #DDE3EC; }
}

.nlf-route-curtain {
  position: fixed; inset: 0; z-index: 250;
  display: grid; place-items: center;
  background: #0C0F13; pointer-events: none;
  opacity: 0; transform: translate3d(0, 100%, 0);
  transition: transform .32s cubic-bezier(.16, 1, .3, 1), opacity .18s ease;
}
.nlf-route-curtain.is-active { opacity: 1; transform: translate3d(0, 0, 0); pointer-events: all; }
.nlf-route-curtain svg { width: 26px; height: 26px; color: #DDE3EC; }

/* Dual-Layer Kinetic Button Text-Roll (Lando Norris / Lusion) */
.nlf-roll-btn { position: relative; overflow: hidden; }
.nlf-roll-clip { position: relative; display: inline-grid; overflow: hidden; vertical-align: middle; line-height: 1.25; }
.nlf-roll-face {
  grid-area: 1 / 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .42s cubic-bezier(.65, .05, 0, 1); will-change: transform;
}
.nlf-roll-face--alt { transform: translate3d(0, 122%, 0); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.is-still) .nlf-roll-btn:hover .nlf-roll-face--main,
  html:not(.is-still) .nlf-roll-btn:focus-visible .nlf-roll-face--main { transform: translate3d(0, -122%, 0); }
  html:not(.is-still) .nlf-roll-btn:hover .nlf-roll-face--alt,
  html:not(.is-still) .nlf-roll-btn:focus-visible .nlf-roll-face--alt { transform: translate3d(0, 0, 0); }
}

/* Marketing-Regeln #4 & #9: Abgrenzung & Ein-Klick-E-Mail-Kopie */
.no-list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
  margin-top: clamp(28px, 3.6vw, 44px); padding-top: clamp(20px, 2.6vw, 32px);
  border-top: 1px solid var(--line);
}
.no-item { display: grid; gap: 6px; align-content: start; }
.no-item strong { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--ink); }
.no-item span { font-size: 14px; line-height: 1.5; color: var(--mute); }
@media (max-width: 820px) { .no-list { grid-template-columns: minmax(0, 1fr); } }

.copy-mail-wrap { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy-mail-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 3px 10px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: transparent; color: var(--mute);
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
.copy-mail-btn:hover { border-color: var(--gold); color: var(--ink); }
.copy-mail-btn.is-copied { border-color: var(--gold); background: rgba(213, 155, 66, .16); color: var(--ink); }

/* ---------- Ruhe (selektiv nach Modern Web Guidance — kein globales 0.01ms) ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero { height: auto; } .hero-stage { position: relative; min-height: 100svh; }
  .hero-copy, .hero-facts { opacity: 1 !important; transform: none !important; }
  .hero-media { transform: none !important; } .hero-media img, .contact-mark { animation: none !important; }
  .bridge-frame path { stroke-dashoffset: 0 !important; transition: none !important; }
  .hero-through, .nlf-preloader, .nlf-route-curtain, .cursor, .peek { display: none !important; }
  .ph-bild::before, .ph-bild img, body::after, .hero-cue i, .mq-track { animation: none !important; }
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
}
html.is-still body::after,
html.is-still .hero-cue i,
html.is-still .mq-track,
html.is-still .contact-mark { animation: none; }
html.is-still .nlf-preloader,
html.is-still .nlf-route-curtain { display: none !important; }

/* Druck */
@media print { .nav, .footer-cta, .hero-film, .marquee, .cursor, .peek, body::after { display: none !important; } .hero { height: auto; } .hero-stage { position: static; height: auto; } }

@keyframes ph-draw { from { --draw: 0; } to { --draw: 1; } }
@keyframes ph-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   A11 Nr 6 · Display-Skala (Startseite). Maß nach R2: Lando 110 px lh .83, MindMarket 144 px −6 %, Renaissance bis 136 px.
   --fs-akt = Titel über volle Breite, --fs-zahl = Schrittnummern/Preise; die Titel in schmalen Spalten (Akt 03, Ablauf, Kontakt)
   nehmen --fs-akt-spalte, damit nichts bricht.
   ========================================================================== */
:root { --fs-akt: clamp(56px, 9.5vw, 136px); --fs-akt-spalte: clamp(44px, 6vw, 88px); --fs-zahl: clamp(64px, 10vw, 144px); }
body.home-page .works .h2, body.home-page .refs .h2, body.home-page .prices .h2 { font-size: var(--fs-akt); line-height: .9; letter-spacing: -.02em; max-width: none; }
body.home-page .works .sec-top-split, body.home-page .refs .sec-top-split, body.home-page .prices .sec-top-split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
body.home-page .hero .display { font-size: clamp(56px, min(7.6vw, 12svh), 112px); line-height: .9; letter-spacing: -.02em; max-width: 14ch; }
body.home-page .step-no { font-size: var(--fs-zahl); line-height: .9; letter-spacing: -.02em; }
body.home-page .price-val { font-size: clamp(64px, 6.6vw, 96px); line-height: .9; letter-spacing: -.02em; }
body.home-page .price-val small { font-size: .8rem; }
body.home-page .price-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.home-page .price { min-height: 260px; }
@media (max-width: 560px) { body.home-page .price-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   A11 Nr 5 · Hero entleert: im ersten Bild nur Titel + Scroll-Hinweis (Oryzo/Lando: Titel + ein Element).
   Kicker, Absatz, Knöpfe und Dreierstreifen kommen bei --hero-p .15 → .30 (opacity/transform, rückwärts zurück),
   alles geht bei .45 → .60 mit dem Titel weg (vor dem Durchflug-Text). Greift nur mit html.hero-vor (setzt ein Inline-Skript im Kopf
   bei Desktop ohne Reduced Motion; nlf.js nimmt die Klasse zurück, wenn die Bühne nicht startet) – sonst bleibt alles sichtbar.
   ========================================================================== */
@media (min-width: 761px) {
  html.hero-vor .hero-copy { opacity: clamp(0, calc((.6 - var(--hero-p, 0)) / .15), 1); transform: translateY(calc(max(0, var(--hero-p, 0) - .45) * -300px)); }
  html.hero-vor .hero-copy .kicker, html.hero-vor .hero-foot {
    --hr: clamp(0, calc((var(--hero-p, 0) - .15) / .15), 1);
    opacity: var(--hr); transform: translateY(calc((1 - var(--hr)) * 28px)); }
  html.hero-vor .hero-facts { --hr: clamp(0, calc((var(--hero-p, 0) - .15) / .15), 1);
    opacity: calc(var(--hr) * clamp(0, calc((.55 - var(--hero-p, 0)) / .1), 1)); transform: translateY(calc((1 - var(--hr)) * 28px)); }
  html.hero-vor .hero:not(.hero-ab) .kicker, html.hero-vor .hero:not(.hero-ab) .hero-foot, html.hero-vor .hero:not(.hero-ab) .hero-facts { visibility: hidden; }
}

/* ==========================================================================
   A11 Nr 3 · Navigation Startseite: vier Anker + Goldlinien-Knopf + Menü (die übrigen Seiten liegen im Menü, auch am Desktop).
   Das Menü-Panel ist am Desktop dasselbe wie unter 1081 px (Block oben, hier auf body.home-page gespiegelt).
   ========================================================================== */
.nav-anchors { display: none; }
@media (min-width: 1081px) {
  body.home-page .nav-anchors { display: flex; gap: 4px; margin-left: auto; }
  body.home-page .nav-anchors a { position: relative; padding: 10px 12px 10px 22px; text-decoration: none; color: var(--ink-2); font-size: .93rem; font-weight: 500; transition: color .3s; }
  body.home-page .nav-anchors a::before { content: ""; position: absolute; left: 10px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform .4s var(--ease); }
  body.home-page .nav-anchors a:hover, body.home-page .nav-anchors a.is-aktiv { color: var(--ink); }
  body.home-page .nav-anchors a.is-aktiv::before { transform: scale(1); }
  body.home-page .nav-end { margin-left: 0; }
  body.home-page .nav-links { margin-left: 0; }
  body.home-page .btn-menu { display: inline-flex; }
  body.home-page .nav-links {
    position: fixed; inset: 0; z-index: -1; margin: 0; padding: calc(var(--nav-h) + 4vh) var(--gut) 32px;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 32px; background: var(--bg);
    clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease-io); visibility: hidden; max-height: none; overflow-y: auto; overscroll-behavior: contain;
  }
  body.home-page .nav-links.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  body.home-page .nav-items { flex-direction: column; gap: 0; }
  body.home-page .nav-items a { display: flex; align-items: baseline; gap: 18px; padding: 10px 0; border-bottom: 1px solid var(--line); font: 640 clamp(2rem, 4.4vw, 3.4rem)/1.05 var(--display); letter-spacing: -.03em; color: var(--ink); transform: translateY(30px); opacity: 0; transition: transform .8s var(--ease), opacity .6s; }
  body.home-page .nav-links.is-open .nav-items a { transform: none; opacity: 1; }
  body.home-page .nav-links.is-open .nav-items a:nth-child(2) { transition-delay: .04s; } body.home-page .nav-links.is-open .nav-items a:nth-child(3) { transition-delay: .08s; }
  body.home-page .nav-links.is-open .nav-items a:nth-child(4) { transition-delay: .12s; } body.home-page .nav-links.is-open .nav-items a:nth-child(5) { transition-delay: .16s; }
  body.home-page .nav-links.is-open .nav-items a:nth-child(6) { transition-delay: .2s; } body.home-page .nav-links.is-open .nav-items a:nth-child(7) { transition-delay: .24s; }
  body.home-page .nav-items a::after { display: none; }
  body.home-page .nav-no { display: inline; color: var(--gold); }
  body.home-page .nav-menu-foot { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; }
  body.home-page .nav-menu-foot a { color: var(--ink-2); }
  html.menu-open body.home-page .nav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
}
/* Der Knopf ist laut Marke eine Linie: Gold nur als Rahmen, Füllung erst beim Überfahren und dann nur dezent */
body.home-page .nav-cta { --b-bg: transparent; --b-ink: var(--ink); --b-line: var(--gold); }
body.home-page .nav-cta::before { background: color-mix(in srgb, var(--gold) 18%, transparent); }
body.home-page .nav-cta:hover { color: var(--ink); border-color: var(--gold); }

/* ==========================================================================
   A11 Nr 2 · Kapitelleiste links (Renaissance/Zero): fest am linken Rand, nur ab 1280 px und ohne Reduced Motion.
   Spalte x 10–44 px; der Text der Seite beginnt bei --gut (≥ 54 px bei 1280), darunter liegt nichts.
   ========================================================================== */
.kapitel { display: none; }
@media (min-width: 1280px) and (prefers-reduced-motion: no-preference) {
  html:not(.is-still) body.home-page .kapitel { display: block; position: fixed; z-index: 60; left: 10px; top: 50%; transform: translateY(-50%); width: 34px; }
  .kapitel ol { list-style: none; margin: 0; padding: 0; display: grid; justify-items: center; }
  .kapitel a { display: block; position: relative; padding: 3px 0; text-align: center; text-decoration: none; color: var(--ink-3);
    font: 500 11px/1 var(--mono); letter-spacing: .12em; font-variant-numeric: tabular-nums; transition: color .3s cubic-bezier(.4, 0, .2, 1), font-size .3s cubic-bezier(.4, 0, .2, 1); }
  .kapitel a:hover, .kapitel a:focus-visible { color: var(--ink-2); }
  .kapitel a.is-aktiv { color: var(--ink); font-size: 14px; font-weight: 600; }
  .kapitel li:not(:last-child)::after { content: ""; display: block; height: 22px; width: 0; margin: 3px auto; border-left: 1px dotted var(--ink-3); }
  .kapitel .kap-name { position: absolute; left: 100%; top: 50%; translate: 4px -50%; padding: 4px 8px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); opacity: 0; pointer-events: none; transition: opacity .25s; }
  .kapitel a:hover .kap-name, .kapitel a:focus-visible .kap-name { opacity: 1; }
  html.in-light .kapitel { --ink: #101316; --ink-2: #3E4651; --ink-3: #5E6673; --bg: #F3F0E8; --line-2: rgba(16, 19, 22, .26); }
  html.menu-open body.home-page .kapitel { display: none; }
  /* Akt 03 hat eigene Nummern (Akt-Nummer, Reiter): die Leiste geht dort weg, kein Dreifach-Zählen */
  html:not(.is-still) body.home-page .kapitel { transition: opacity .3s cubic-bezier(.4, 0, .2, 1); }
  html[data-akt="3"] body.home-page .kapitel { opacity: 0; pointer-events: none; }
}

/* ==========================================================================
   A11 Nr 10 · Handy (≤ 760 px): Seitenlänge bei 390 × 844 von 17,6 auf ≤ 13 Screens (Lando 9,5, MindMarket 13).
   Kürzere Abschnittsabstände, Kachelreihen (Werkschau, Preise, „Was Sie nicht bekommen“) als horizontale Scroll-Snap-Streifen
   (Rand zu Rand, die nächste Karte ragt an), Schritte enger. Canvas-Pixelratio: nlf.js 1,5 × .8; Akt 03/Bühne liegen in den Stücken
   von @b-mitte/@b-buehne (dort min(2, dpr)).
   ========================================================================== */
@media (max-width: 760px) {
  body.home-page { --sec: 44px; }
  body.home-page .manifest { padding-block: 64px; }
  body.home-page .sec-top, body.home-page .sec-head { margin-bottom: 20px; }
  body.home-page .works-grid, body.home-page .price-grid, body.home-page .no-list {
    display: flex; flex-wrap: nowrap; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut);
    margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); padding-bottom: 4px; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  body.home-page .works-grid::-webkit-scrollbar, body.home-page .price-grid::-webkit-scrollbar, body.home-page .no-list::-webkit-scrollbar { display: none; }
  body.home-page .works-grid .work { flex: 0 0 82%; min-width: 0; scroll-snap-align: start; margin-top: 0; }
  body.home-page .works-grid .work-xl { flex-basis: 88%; }
  body.home-page .price-grid { gap: 1px; border: 0; background: none; border-radius: 0; }
  body.home-page .price-grid .price { flex: 0 0 74%; min-height: 0; scroll-snap-align: start; border: 1px solid var(--line); border-radius: var(--r-card); }
  body.home-page .no-list > * { flex: 0 0 80%; scroll-snap-align: start; }
  body.home-page .steps { gap: 24px; }
  body.home-page .works-more { margin-top: 28px; }
  body.home-page .paper-bridge { height: clamp(160px, 24vh, 240px); }
  /* Hero ≈ ein Bild: Glasrahmen niedriger, Knöpfe nebeneinander, Dreierstreifen eng */
  body.home-page .hero-stage { grid-template-rows: auto minmax(clamp(180px, 50vw, 240px), 1fr) auto; min-height: 0; }
  body.home-page .hero-copy { padding-top: calc(var(--nav-h) + 8px); }
  body.home-page .hero-cta { flex-wrap: nowrap; gap: 8px; }
  body.home-page .hero-cta .btn { flex: 1 1 0; padding: 0 10px; min-height: 48px; font-size: .88rem; white-space: nowrap; }
  body.home-page .hero-facts { padding-block: 12px 14px; gap: 6px; }
  body.home-page .footer-grid { gap: 24px; padding-block: 32px; }
  body.home-page .footer-cta { padding-bottom: 40px; }
  body.home-page .contact-facts { gap: 8px; }
  body.home-page .werk-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); margin-bottom: 20px; padding-bottom: 12px; }
  body.home-page .werk-filter .wf-knopf { flex: none; }
  body.home-page .ref-row { padding-block: 14px; }
  body.home-page .contact-intro { gap: 16px; }
  body.home-page .form-panel { padding: 20px; }
}

/* A11 Nr 6 (Nachbesserung): Zeilenhöhe .9 kappte Ober-/Unterlängen an den Split-Masken; Maske wächst um .14em, Zeilenabstand bleibt */
body.home-page .ln-mask { padding-block: .14em; margin-block: -.14em; }

/* ==========================================================================
   V11d · Floating Architectural Frosted-Glass Studio Header (alle 30 Seiten)
   - Kein Aufploppen (is-hidden entfernt), kein flacher Vollbreiten-Beige-Balken
   - Morpht beim Scrollen sanft in eine schwebende, hochtransparente Glas-Kapsel
   - 100 % scharfes Signet & rahmenlose Icons in Dunkel- wie Hell-Polarität
   ========================================================================== */
.nav {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 120;
  height: auto !important;
  min-height: 0 !important;
  padding: 0;
  background: transparent !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: none !important;
  pointer-events: none;
}

.nav.is-hidden {
  transform: none !important;
}

.nav .nav-inner {
  pointer-events: auto;
  width: 100%;
  max-width: var(--max, 1320px);
  margin: 0 auto;
  min-height: var(--nav-h, 72px);
  height: var(--nav-h, 72px);
  padding: 0 var(--gut, clamp(18px, 3vw, 40px));
  border-radius: 0;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  transition:
    max-width 520ms cubic-bezier(0.16, 1, 0.3, 1),
    margin-top 520ms cubic-bezier(0.16, 1, 0.3, 1),
    height 480ms cubic-bezier(0.16, 1, 0.3, 1),
    min-height 480ms cubic-bezier(0.16, 1, 0.3, 1),
    padding 520ms cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 520ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 420ms ease,
    border-color 420ms ease,
    box-shadow 520ms ease;
}

/* Schwebende Rauchglas-Kapsel beim Scrollen (Dunkel-Standard) */
.nav.is-scrolled .nav-inner {
  margin-top: 12px;
  max-width: min(1160px, calc(100vw - 28px));
  min-height: 54px;
  height: 54px;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: rgba(10, 13, 19, 0.72);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.11);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --ink: #F2F5FA;
  --signet: #F2F5FA;
  --mute: rgba(235, 240, 248, 0.68);
  color: #F2F5FA;
}

/* Schwebende Kristall-Alabaster-Glas-Kapsel in Hell-Polarität (scharfes dunkles Signet!) */
html[data-theme="light"] .nav.is-scrolled .nav-inner,
html.in-light .nav.is-scrolled .nav-inner,
html[data-sw-nav-polarity="light"] .nav.is-scrolled .nav-inner {
  background: rgba(252, 250, 246, 0.76);
  backdrop-filter: blur(22px) saturate(175%);
  -webkit-backdrop-filter: blur(22px) saturate(175%);
  border: 1px solid rgba(16, 19, 24, 0.10);
  box-shadow:
    0 14px 38px rgba(16, 19, 24, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.90);
  --ink: #11141A;
  --signet: #11141A;
  --mute: rgba(17, 20, 26, 0.62);
  color: #11141A;
}

/* Dunkle Sektionen überschreiben data-theme="light" sauber wieder auf dunkles Rauchglas */
html[data-sw-nav-polarity="dark"] .nav.is-scrolled .nav-inner {
  background: rgba(10, 13, 19, 0.72);
  border-color: rgba(255, 255, 255, 0.11);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
  --ink: #F2F5FA;
  --signet: #F2F5FA;
  --mute: rgba(235, 240, 248, 0.68);
  color: #F2F5FA;
}

/* Signet & Wortmarke immer mit vollem Kontrast */
.nav .brand {
  color: var(--ink) !important;
}
.nav .brand-signet {
  width: 19px;
  height: 19px;
  color: var(--signet, currentColor) !important;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}
.nav .wordmark {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink) !important;
}
.nav.is-scrolled .nav-anchors a,
.nav.is-scrolled .nav-items a {
  color: var(--mute);
  font-size: 13.5px;
  transition: color 220ms ease;
}
.nav.is-scrolled .nav-anchors a:hover,
.nav.is-scrolled .nav-anchors a.is-aktiv,
.nav.is-scrolled .nav-items a:hover,
.nav.is-scrolled .nav-items a[aria-current="page"] {
  color: var(--ink) !important;
}
.nav.is-scrolled .nav-anchors a.is-aktiv::before {
  background: #D59B42 !important;
  box-shadow: 0 0 8px rgba(213, 155, 66, 0.65);
}

/* Rahmenloser kreisrunder Theme-Schalter (keine eckige Kasten-Box!) */
.nav #modusSchalter,
.nav .ctrl-btn#modusSchalter {
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  justify-content: center;
  border-radius: 999px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--ink) !important;
  opacity: 0.78;
  transition: opacity 220ms ease, background-color 220ms ease, transform 220ms ease;
}
.nav #modusSchalter:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.09) !important;
  transform: scale(1.06);
}
html[data-theme="light"] .nav.is-scrolled #modusSchalter:hover,
html.in-light .nav.is-scrolled #modusSchalter:hover,
html[data-sw-nav-polarity="light"] .nav.is-scrolled #modusSchalter:hover {
  background: rgba(17, 20, 26, 0.07) !important;
}
html[data-sw-nav-polarity="dark"] .nav.is-scrolled #modusSchalter:hover {
  background: rgba(255, 255, 255, 0.09) !important;
}

/* Edler Pill-CTA „Projekt anfragen“ statt eckigem Kasten */
.nav .nav-cta,
.nav .nav-cta.k1-btn-ice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  height: 36px;
  padding: 0 18px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(213, 155, 66, 0.55) !important;
  background: rgba(213, 155, 66, 0.14) !important;
  color: #F7F9FC !important;
  font-size: 13px !important;
  font-weight: 560;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: none !important;
  transition: background-color 240ms ease, border-color 240ms ease, color 240ms ease, transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}
.nav .nav-cta::after,
.nav .nav-cta.k1-btn-ice::after {
  display: none !important;
}
html[data-theme="light"] .nav:not(.is-scrolled) .nav-cta,
html[data-theme="light"] .nav:not(.is-scrolled) .nav-cta.k1-btn-ice {
  background: rgba(17, 20, 26, 0.06) !important;
  border-color: rgba(17, 20, 26, 0.28) !important;
  color: #11141A !important;
}
html[data-theme="light"] .nav:not(.is-scrolled) .nav-cta:hover,
html[data-theme="light"] .nav:not(.is-scrolled) .nav-cta.k1-btn-ice:hover {
  background: #141820 !important;
  border-color: #141820 !important;
  color: #FAF8F3 !important;
}

.nav.is-scrolled .nav-cta,
.nav.is-scrolled .nav-cta.k1-btn-ice {
  background: #D59B42 !important;
  border-color: #D59B42 !important;
  color: #0B0E14 !important;
  font-weight: 600;
}
.nav.is-scrolled .nav-cta:hover,
.nav.is-scrolled .nav-cta.k1-btn-ice:hover {
  background: #E2AC56 !important;
  border-color: #E2AC56 !important;
  transform: translateY(-1px);
}
html[data-theme="light"] .nav.is-scrolled .nav-cta,
html.in-light .nav.is-scrolled .nav-cta,
html[data-sw-nav-polarity="light"] .nav.is-scrolled .nav-cta {
  background: #141820 !important;
  border-color: #141820 !important;
  color: #FAF8F3 !important;
}
html[data-theme="light"] .nav.is-scrolled .nav-cta:hover,
html.in-light .nav.is-scrolled .nav-cta:hover,
html[data-sw-nav-polarity="light"] .nav.is-scrolled .nav-cta:hover {
  background: #252B37 !important;
  border-color: #252B37 !important;
}
html[data-sw-nav-polarity="dark"] .nav.is-scrolled .nav-cta {
  background: #D59B42 !important;
  border-color: #D59B42 !important;
  color: #0B0E14 !important;
}

/* Scroll-Fortschrittslinie sauber am obersten Viewport-Rand */
.nav .scroll-rail {
  position: fixed !important;
  top: 0 !important;
  bottom: auto !important;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 125;
  background: linear-gradient(90deg, #D59B42, #E8C07A) !important;
}

/* Mobil-Politur: kompakte schwebende Glas-Kapsel ohne Überlauf & aufgeräumte Mobil-Bühnen (V11e) */
@media (max-width: 960px) {
  .nav .nav-inner {
    gap: 10px;
    padding: 0 14px;
  }
  .nav.is-scrolled .nav-inner {
    margin-top: 8px;
    max-width: calc(100vw - 16px);
    padding: 0 10px 0 16px;
    min-height: 50px;
    height: 50px;
  }
  /* Auf Mobilgeräten NUR Logo links + Theme & Menü rechts — kein abgeschnittener CTA, kein Ton-Icon */
  .nav .nav-cta,
  .nav .nav-cta.k1-btn-ice,
  .nav .v9-sound-btn,
  .nav .nav-anchors {
    display: none !important;
  }
  .nav .nav-end {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
  }
  .nav .btn-menu {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    border: 1px solid var(--line, rgba(255, 255, 255, 0.16)) !important;
    background: transparent !important;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0 !important;
    color: var(--ink) !important;
  }
  .nav .btn-menu .menu-label {
    display: none !important;
  }
  .nav .wordmark {
    font-size: 15.5px;
  }
}

@media (max-width: 768px) {
  /* Desktop-Kino-Tour-Trigger & Tastatur-Zeilen auf Touch-Geräten ausblenden */
  .v10-tour-trigger,
  .v6-kbd-whisper {
    display: none !important;
  }
  /* Unterseiten-Heroes: maximal 2 klare Aktionen statt 4 gestapelte Riesen-Buttons */
  .v4-hero-actions > :nth-child(n+3),
  .v5-w04-opening .sw-hero-actions > :nth-child(n+3),
  .v5-w04-opening .v5-w04-actions > :nth-child(n+3),
  .v5-w04-opening .v5-actions > :nth-child(n+3),
  .v5-w02-opening .sw-hero-actions > :nth-child(n+3),
  .v5-w03-cockpit .sw-hero-actions > :nth-child(n+3),
  .sw-hero-actions > :nth-child(n+3),
  .v5-actions > :nth-child(n+3) {
    display: none !important;
  }
  .v4-hero-actions,
  .v5-w04-opening .sw-hero-actions,
  .v5-w04-opening .v5-actions,
  .sw-hero-actions {
    gap: 10px !important;
  }
  .v5-w04-opening h1,
  .v5-w02-opening h1,
  .v5-w03-cockpit h1,
  .v5b-title,
  .w11-hero-title {
    font-size: clamp(1.85rem, 7.6vw, 2.4rem) !important;
    line-height: 1.08 !important;
  }
  /* Freier oberer Abstand unter der schwebenden Mobil-Kapsel */
  section[id] {
    scroll-margin-top: 72px;
  }
  .v11-3d-stage {
    padding-top: 68px !important;
    padding-bottom: 44px !important;
  }
  .v11-3d-stage [data-v3-embedded-stage] {
    min-height: 240px !important;
    height: 255px !important;
  }
  .v11-3d-stage .v11-lead {
    font-size: 0.92rem !important;
    line-height: 1.5 !important;
  }
  .v11-3d-stage .v11-stage-foot,
  .v11-3d-stage .v11-quiet-hint {
    display: none !important;
  }
}

html.menu-open .nav {
  pointer-events: auto;
}

html.is-still .nav .nav-inner {
  transition: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .nav .nav-inner {
    transition: none !important;
  }
}
