/* ============================================================
   GW Perform – Homepage „cinematic"
   Dramaturgie: dunkel (Chaos) → hell (System) → dunkel (Abspann)
   Motion nur über opacity / transform / clip-path.
   Plan & Debatte: docs/RAT_HOMEPAGE_PLAN.md
   ============================================================ */

:root {
  --ink: #05080d;
  --ink-2: #0a1220;
  --on-dark: #eef2ff;
  --on-dark-muted: rgba(238, 242, 255, .74);
  --glow: #7fb3ff;
  --glow-2: #5eead4;
  --text-muted: #52677f;            /* AA-Kontrast auf hellem Grund (≥ 4.5:1) */
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dusk-1: #9fb4d3;
  --dusk-2: #16233a;
}

body.home { background: var(--bg); }

/* ---------- Basis / A11y ---------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 1000;
  padding: 10px 18px; border-radius: 999px;
  background: var(--white); color: var(--ink);
  font-weight: 600; font-size: 14px;
  transform: translateY(-200%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: none; }
.home a:focus-visible,
.home button:focus-visible,
.home summary:focus-visible,
.home input:focus-visible,
.home textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.01em;
}
.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--glow-2);
  margin-bottom: 22px;
}

/* Reveals: nur Opacity (CLAUDE.md-Regel) */
.js .rv { opacity: 0; transition: opacity .8s var(--ease-out); }
.js .rv.in { opacity: 1; }

/* ---------- Ein Button-System (Runde 2): hell = Tinte, dunkel = Weiß ---------- */
.home .btn-primary,
.home .flow-btn,
.home .navbar:not(.on-dark) .nav-links .nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  box-shadow: 0 10px 24px rgba(5, 8, 13, .18) !important;
}
.home .btn-primary:hover,
.home .flow-btn:hover { box-shadow: 0 14px 30px rgba(5, 8, 13, .26) !important; }
.home .btn,
.home .flow-btn,
.home .nav-cta { transition: transform .12s ease, box-shadow .2s ease, background .2s ease; }
.home .btn:hover,
.home .nav-cta:hover { transform: none; }
.home .btn:active,
.home .flow-btn:active,
.home .nav-cta:active { transform: scale(.97); }

/* Kicker einheitlich: Text statt Pille */
.home .section-tag {
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--accent);
  margin-bottom: 22px;
}

/* Überschriften ruhig umbrechen */
.home h2, .home h3 { text-wrap: balance; }

/* ---------- Buttons auf dunklem Grund ---------- */
.btn-light {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(127, 179, 255, .18);
}
.btn-light:hover { box-shadow: 0 22px 50px rgba(127, 179, 255, .32); }
.btn-outline-light {
  background: transparent;
  color: var(--on-dark);
  border: 1px solid rgba(238, 242, 255, .28);
}
.btn-outline-light:hover { border-color: rgba(238, 242, 255, .6); background: rgba(255, 255, 255, .04); }

/* ---------- Navigation ---------- */
.home .navbar { transition: background .35s ease, padding .35s ease, box-shadow .35s ease; }
.home .navbar.hidden { transform: none; }
.home .logo-img { height: 44px; }
.home .navbar.on-dark .logo-img { filter: brightness(0) invert(1); }
.home .navbar.on-dark .nav-links a { color: var(--on-dark-muted); }
.home .navbar.on-dark .nav-links a:hover { color: var(--on-dark); }
.home .navbar.on-dark .nav-links .nav-cta {
  background: var(--white) !important;
  color: var(--ink) !important;
  box-shadow: none;
}
.home .navbar.on-dark .nav-toggle span { background: var(--on-dark); }
.home .navbar.on-dark.scrolled {
  background: rgba(5, 8, 13, .62);
  border-bottom-color: rgba(238, 242, 255, .08);
  box-shadow: none;
}

/* ============================================================
   AKT 1 – Das Rauschen
   ============================================================ */
.chaos {
  position: relative;
  background: var(--ink);
  color: var(--on-dark);
  isolation: isolate;
  overflow: hidden;   /* Fallback */
  overflow: clip;     /* Bühne nicht über den dunklen Akt hinaus – sticky bleibt intakt */
}
.chaos::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 45vh;
  background: linear-gradient(transparent, var(--ink));
  z-index: 0;
  pointer-events: none;
}
.chaos-stage {
  --p: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  margin-bottom: -100vh;
  margin-bottom: -100svh;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}
.chaos-video,
.chaos-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: calc(.62 - var(--p) * .5);
}
.chaos-photo { opacity: calc(.42 - var(--p) * .3); filter: saturate(.7) contrast(1.05); }
.chaos-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 50% 45%, transparent 0%, rgba(5, 8, 13, .55) 70%, var(--ink) 100%),
    linear-gradient(90deg, rgba(5, 8, 13, .82) 0%, rgba(5, 8, 13, .35) 55%, rgba(5, 8, 13, .15) 100%);
}

/* Tool-Fragmente: verstreut → geordnete Spalte (gesteuert über --p)
   --q = Ordnungs-Fortschritt (erreicht 1 bei ca. 55 % des Akts) */
.chaos-fragments {
  --q: min(1, calc(var(--p) * 1.8));
  --sx: 1;
  --sy: 1;
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
}
.frag {
  --x1: 22vw;
  --y1: calc((var(--i) - 3.5) * 6.4vh);
  position: absolute;
  left: 0; top: 0;
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 8px;
  font: 500 13px/1 ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  color: rgba(238, 242, 255, .6);
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(238, 242, 255, .12);
  transform:
    translate(calc(-50% * (1 - var(--q))), -50%)
    translate(
      calc(var(--x0) * var(--sx) * (1 - var(--q)) + var(--x1) * var(--q)),
      calc(var(--y0) * var(--sy) * (1 - var(--q)) + var(--y1) * var(--q))
    )
    rotate(calc(var(--r0) * (1 - var(--q))));
  opacity: calc(.75 - max(0, var(--p) - .55) * 4);
  animation: frag-drift 9s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -1.3s);
  will-change: transform;
}
.frag-note {
  color: rgba(253, 230, 138, .72);
  background: rgba(250, 204, 21, .07);
  border-color: rgba(250, 204, 21, .2);
}
@keyframes frag-drift {
  from { translate: 0 0; }
  to   { translate: 8px -10px; }
}
/* Lichtlinie, die die geordneten Fragmente verbindet */
.chaos-line {
  position: absolute;
  left: calc(50% + 22vw - 24px);
  top: calc(50% - 25vh);
  width: 1px;
  height: 50vh;
  background: linear-gradient(180deg, transparent, var(--glow) 15%, var(--glow-2) 85%, transparent);
  box-shadow: 0 0 18px 1px rgba(127, 179, 255, .5);
  transform-origin: top;
  transform: scaleY(min(1, max(0, (var(--p) - .45) * 3)));
  opacity: min(1, max(0, (var(--p) - .45) * 4));
}
/* Das System: Beispielansicht Event-Manager öffnet sich, wo die Fragmente lagen */
.chaos-system {
  --k: min(1, max(0, (var(--p) - .52) * 3.2));
  position: absolute;
  left: calc(50% + 22vw - 4px);
  top: 50%;
  width: 340px;
  transform: translateY(-50%);
  padding: 18px;
  border-radius: 16px;
  background: rgba(10, 18, 32, .82);
  border: 1px solid rgba(127, 179, 255, .28);
  box-shadow: 0 0 0 1px rgba(127, 179, 255, .06), 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(127, 179, 255, .12);
  clip-path: inset(0 0 calc((1 - var(--k)) * 100%) 0 round 16px);
  opacity: var(--k);
  font-size: 13px;
  color: var(--on-dark);
}
.sys-head {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600;
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(238, 242, 255, .08);
}
.sys-head em {
  margin-left: auto;
  font-style: normal;
  font-weight: 500;
  font-size: 11px;
  color: rgba(238, 242, 255, .5);
}
.sys-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--glow-2); box-shadow: 0 0 10px var(--glow-2); }
.sys-rows { list-style: none; }
.sys-rows li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(238, 242, 255, .06);
}
.sys-rows li span::before {
  content: "✓";
  display: inline-grid; place-items: center;
  width: 18px; height: 18px; margin-right: 10px;
  border-radius: 50%;
  font-size: 10px;
  color: var(--ink);
  background: var(--glow-2);
}
.sys-rows b {
  font: 500 11px/1 ui-monospace, Menlo, Consolas, monospace;
  color: var(--glow);
}
.sys-foot { padding-top: 12px; font-size: 12px; color: rgba(238, 242, 255, .6); }

.grain {
  position: absolute; inset: -50%;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .07;
  mix-blend-mode: overlay;
}

/* Szene 1 – Hero */
.cine-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 128px 0 96px;
}
.cine-hero h1 {
  font-size: clamp(34px, 6vw, 86px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.045em;
  color: var(--on-dark);
  max-width: 15ch;
  hyphens: manual;
  margin-bottom: 28px;
}
.h1-sub {
  display: block;
  margin-top: .12em;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.015em;
  color: var(--glow);
}
.cine-lead {
  max-width: 56ch;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--on-dark-muted);
  margin-bottom: 36px;
}
.cine-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.cine-proof { margin: -16px 0 28px; font-size: 14px; }
.cine-proof a { color: var(--on-dark-muted); border-bottom: 1px solid rgba(238, 242, 255, .2); padding-bottom: 2px; }
.cine-proof a:hover { color: var(--on-dark); border-bottom-color: var(--glow); }
.cine-proof strong { color: var(--glow-2); font-weight: 600; }
.cine-trust {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  color: var(--on-dark-muted);
}
.cine-trust-img {
  width: 86px; height: 40px;
  border-radius: 20px;
  object-fit: cover;
  object-position: center;
  border: 1px solid rgba(238, 242, 255, .25);
}
.scroll-cue {
  position: absolute;
  left: 50%; bottom: 28px;
  width: 24px; height: 52px;
  transform: translateX(-50%);
  display: flex; justify-content: center;
}
.scroll-cue span {
  width: 1px; height: 100%;
  background: linear-gradient(var(--on-dark), transparent);
  animation: cue 2.4s ease-in-out infinite;
  transform-origin: top;
}
@keyframes cue {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* Szene 2 – Symptome */
.symptoms {
  position: relative;
  z-index: 1;
  padding: 16vh 0 34vh;
}
.symptom-list {
  list-style: none;
  counter-reset: sym;
  max-width: min(760px, 56vw);
}
.symptom-list li {
  counter-increment: sym;
  position: relative;
  font-size: clamp(24px, 3.4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--on-dark);
  margin-bottom: 11vh;
  padding-left: 72px;
}
.symptom-list li::before {
  content: "0" counter(sym);
  position: absolute; left: 0; top: .55em;
  font: 500 12px/1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .12em;
  color: var(--glow-2);
}
.symptom-list em {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--on-dark-muted);
}

/* ============================================================
   Wendepunkt – dunkel → hell
   ============================================================ */
.turn-top {
  background: var(--ink);
  color: var(--on-dark);
  padding: 8vh 0 0;
  text-align: center;
}
.turn-title {
  font-size: clamp(36px, 6vw, 84px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.045em;
}
.turn-title .serif { color: var(--glow); }
.turn-mid {
  height: 26vh;
  background: linear-gradient(180deg, var(--ink) 0%, #16233a 30%, #9fb4d3 72%, var(--bg) 100%);
  display: flex;
  justify-content: center;
}
.turn-beam {
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, var(--glow) 0%, var(--glow-2) 45%, var(--accent) 100%);
  box-shadow: 0 0 18px 1px rgba(127, 179, 255, .5);
  transform-origin: top;
}
.js .turn-beam { transform: scaleY(0); transition: transform 1.6s var(--ease-out); }
.js .turn-beam.in { transform: scaleY(1); }
.turn-bottom {
  background: var(--bg);
  text-align: center;
  padding: 36px 0 40px;
}
.turn-copy {
  max-width: 640px;
  margin: 0 auto;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ============================================================
   AKT 2 – Methode (Sticky-Scrollytelling)
   ============================================================ */
.method { padding: 96px 0 120px; background: var(--bg); }
.method-head { text-align: center; max-width: 760px; margin: 0 auto 72px; }
.method-head h2,
.proof-head h2,
.team-copy h2,
.faq-head h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.045em;
  color: var(--text);
}
.method-head .serif,
.proof-head .serif,
.team-copy .serif { color: var(--accent); }
.method-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 72px;
}
.rail-sticky {
  position: sticky;
  top: 28vh;
  padding: 6px 0;
}
.rail-track {
  position: absolute;
  left: 7px; top: 14px; bottom: 14px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.rail-fill {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--accent), var(--glow-2));
  transform: scaleY(0);
  transform-origin: top;
  border-radius: 2px;
}
.rail-nodes { list-style: none; display: grid; gap: 52px; position: relative; }
.rail-nodes li {
  display: flex; align-items: center; gap: 20px;
  font-size: 13px; font-weight: 700; letter-spacing: .16em;
  color: var(--text-muted);
  transition: color .4s ease;
}
.rail-nodes li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(37, 99, 235, .25);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease;
  flex-shrink: 0;
}
.rail-nodes li.is-done { color: var(--text); }
.rail-nodes li.is-done::before { background: var(--accent); border-color: var(--accent); }
.rail-nodes li.is-active { color: var(--accent); }
.rail-nodes li.is-active::before {
  background: var(--white);
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, .12);
}
.method-steps { list-style: none; }
.method-step {
  padding: 10vh 0;
  border-top: 1px solid var(--line);
  transition: opacity .5s ease;
}
.method-step:first-child { border-top: 0; padding-top: 2vh; }
.js .method-step { opacity: .5; }
.js .method-step.is-active { opacity: 1; }
.step-no {
  display: block;
  font: 600 12px/1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 18px;
}
.method-step h3 {
  font-size: clamp(26px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.035em;
  margin-bottom: 18px;
  color: var(--text);
}
.method-step p { font-size: 17px; line-height: 1.7; color: var(--text-muted); max-width: 60ch; }
.step-points { list-style: none; margin: 18px 0 0; display: grid; gap: 8px; }
.step-points li { padding-left: 22px; position: relative; color: var(--text-secondary); }
.step-points li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.method-step .step-out {
  margin-top: 22px;
  color: var(--text);
  font-size: 16px;
}

/* ============================================================
   AKT 3 – Beweis
   ============================================================ */
.proof {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--white) 100%);
}
.proof-head { max-width: 820px; margin: 0 auto; text-align: center; }
.proof-head .section-lead { margin-top: 18px; }
.proof-film {
  position: relative;
  margin: 64px 0 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--ink);
}
.proof-film img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.js .proof-film {
  clip-path: inset(10% 9% 10% 9% round 24px);
  transition: clip-path 1.4s var(--ease-out);
}
.js .proof-film img { transform: scale(1.08); transition: transform 1.8s var(--ease-out); }
.js .proof-film.in { clip-path: inset(0 0 0 0 round 24px); }
.js .proof-film.in img { transform: scale(1); }
.proof-quote {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 120px 48px 40px;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 13, .88));
  color: var(--on-dark);
}
.proof-quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.6vw, 36px);
  line-height: 1.25;
  max-width: 28ch;
  margin-bottom: 14px;
}
.proof-quote span { font-size: 14px; color: var(--on-dark-muted); }
.proof-bar { margin-top: 56px; display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 80px 1fr 64px; align-items: center; gap: 16px; }
.bar-label { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.bar { height: 14px; border-radius: 7px; background: var(--bg2); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 7px; transform-origin: left; }
.bar-before { background: #b8c4d6; }
.bar-after { background: linear-gradient(90deg, var(--accent), var(--glow-2)); transform: scaleX(.2917); }
.js .bar-after { transform: scaleX(1); transition: transform 1.8s var(--ease-out) .3s; }
.js .proof-bar.in .bar-after { transform: scaleX(.2917); }
.bar-val { font-size: 22px; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--text); text-align: right; }
.bar-caption { font-size: 14px; color: var(--text-muted); }
.proof-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
}
.proof-metrics > div { border-top: 1px solid var(--line); padding-top: 22px; }
.proof-metrics dt {
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.proof-metrics dd { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.proof-link { margin-top: 40px; text-align: center; }
.link-arrow {
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid rgba(37, 99, 235, .3);
  padding-bottom: 2px;
}
.link-arrow::after { content: " →"; }
.link-arrow:hover { border-bottom-color: var(--accent); }

/* ============================================================
   Branchen & gebaute Systeme
   ============================================================ */
.industries { padding: 120px 0; background: var(--white); }
.industry-grid {
  margin-bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.industry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 3 / 4;
  padding: 24px;
  border-radius: 20px;
  overflow: hidden;
  color: var(--on-dark);
  background: var(--ink);
  border: 0;
  box-shadow: none;
  isolation: isolate;
}
.industry-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .9s var(--ease-out);
}
.industry-card::after {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 8, 13, .05) 25%, rgba(5, 8, 13, .9) 100%);
}
.industry-card:hover img { transform: scale(1.05); }
.industry-card::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), rgba(127, 179, 255, .22), transparent 60%);
  opacity: 0;
  transition: opacity .25s ease;
}
.industry-card:hover::before { opacity: 1; }
.industry-card > * { position: relative; }
.industry-card > img { position: absolute; }
.industry-label {
  display: block;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--glow-2);
  margin-bottom: 10px;
}
.industry-card strong { font-size: 19px; line-height: 1.3; letter-spacing: -.02em; min-height: 2.6em; }
.industry-more { margin-top: 14px; font-size: 13px; color: var(--on-dark-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.industry-more::after { content: " →"; }

.built { margin-top: 80px; }
.built h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 24px; color: var(--text); }
.built-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.built-list li { border-top: 1px solid var(--line); padding-top: 16px; }
.built-list strong { display: block; font-size: 16px; margin-bottom: 6px; color: var(--text); }
.built-list span { font-size: 14px; line-height: 1.55; color: var(--text-muted); }

/* ============================================================
   Die Menschen
   ============================================================ */
.team { padding: 120px 0; background: var(--bg); }
.team-grid {
  max-width: none;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 72px;
  align-items: center;
}
.team-photo { margin: 0; border-radius: 24px; overflow: hidden; background: var(--bg2); }
.team-photo img {
  width: 100%;
  height: auto; /* sonst gewinnt das height-Attribut und aspect-ratio greift nicht */
  aspect-ratio: 4 / 3;
  max-height: 76vh;
  object-fit: cover;
  object-position: center 30%;
}
.js .team-photo img { filter: grayscale(1) contrast(1.05); transition: filter 1.8s ease; }
.js .team-photo.in img { filter: none; }
.team-copy .section-tag { margin-bottom: 20px; }
.team-quote {
  margin: 28px 0 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  color: var(--text);
}
.team-names { font-size: 15px; color: var(--text-muted); margin-bottom: 36px; }
.team-names strong { color: var(--text); }
.team-values { list-style: none; display: grid; gap: 16px; }
.team-values li {
  padding-left: 20px;
  border-left: 2px solid rgba(37, 99, 235, .2);
  font-size: 16px; line-height: 1.6; color: var(--text-muted);
}
.team-values strong { color: var(--text); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 120px 0; background: var(--white); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.faq-head { position: sticky; top: 120px; }
.faq-head .section-lead { margin-top: 16px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 40px 24px 0;
  position: relative;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 24px; font-weight: 400;
  color: var(--accent);
  transition: transform .3s var(--ease-out);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 40px 24px 0; font-size: 16px; line-height: 1.7; color: var(--text-muted); }
.faq-item a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Kontakt: Termin zuerst, Formular als zweiter Weg (Runde 3) ---------- */
.contact-primary {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  margin: 8px 0 40px;
}
.contact-phone { font-size: 15px; color: var(--text-secondary); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.contact-phone:hover { color: var(--accent); border-bottom-color: var(--accent); }
.contact-alt {
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer-place { font-size: 14px; color: rgba(238, 242, 255, .5); }

/* ---------- Roter Faden: statische Nahtstellen (Runde 3, Beschluss C2) ---------- */
.proof-head { position: relative; }
.proof-head::before {
  content: "";
  display: block;
  width: 1px; height: 72px;
  margin: -24px auto 28px;
  background: linear-gradient(180deg, transparent, var(--accent));
}
.cine-footer { position: relative; }
.cine-footer::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 1px; height: 22vh;
  background: linear-gradient(180deg, var(--accent), var(--glow) 70%, transparent);
  box-shadow: 0 0 14px rgba(127, 179, 255, .35);
}

/* ---------- Kontaktformular (Runde 2) ---------- */
.home .contact-form { max-width: 640px; margin-inline: auto; }
.home .flow-input,
.home .flow-input-half { text-align: left; }
.home .flow-hint { color: var(--text-muted); }

/* ============================================================
   Abspann (Footer, dunkel)
   ============================================================ */
.cine-footer {
  background: linear-gradient(180deg, var(--bg) 0, #9fb4d3 6vh, #16233a 16vh, var(--ink) 24vh);
  color: var(--on-dark);
  border-top: 0;
  padding: 30vh 0 24px;
}
.footer-consent {
  all: unset;
  cursor: pointer;
  font-size: 14px;
  color: var(--on-dark-muted);
}
.footer-consent:hover { color: var(--on-dark); }
.footer-consent:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
.footer-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(238, 242, 255, .1);
}
.footer-claim {
  font-size: clamp(30px, 4.4vw, 60px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.footer-claim .serif { color: var(--glow); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding: 48px 0;
}
.footer-cols nav { display: grid; gap: 12px; align-content: start; }
.footer-cols a { font-size: 14px; color: var(--on-dark-muted); transition: color .2s; }
.footer-cols a:hover { color: var(--on-dark); }
.cine-footer .footer-bar { border-top: 1px solid rgba(238, 242, 255, .1); }
.cine-footer .footer-logo-img { height: 32px; width: auto; filter: brightness(0) invert(1); opacity: .7; }
.cine-footer .footer-copy { color: rgba(238, 242, 255, .55); }
.footer-ai { color: inherit; font-size: 11px; text-decoration: none; border-bottom: 1px dotted rgba(238, 242, 255, .25); }
.footer-ai:hover { color: var(--on-dark); }

/* ---------- Floating-Elemente ---------- */
.home .sticky-cta-bar { display: none; }

/* ============================================================
   Unterseiten (Branchen, Referenz) – gleiche Dramaturgie
   ============================================================ */
.sub-section { padding: 120px 0; }
.sub-section.is-white { background: var(--white); }
.sub-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.sub-head h2 {
  font-size: clamp(32px, 4.4vw, 60px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.045em;
  color: var(--text);
}
.sub-head .section-lead { margin-top: 16px; }

/* Leistungs-Module */
.mod-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.mod {
  padding: 36px 32px 40px 0;
  border-bottom: 1px solid var(--line);
}
.mod:not(:nth-child(3n+1)) { padding-left: 32px; border-left: 1px solid var(--line); }
.mod-no {
  display: block;
  font: 600 12px/1 ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.mod h3 { font-size: 22px; font-weight: 700; letter-spacing: -.025em; color: var(--text); margin-bottom: 14px; }
.mod ul { list-style: none; display: grid; gap: 8px; }
.mod li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.mod li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }

/* Ablauf in 4 Schritten */
.steps-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: step;
}
.steps-grid li { border-top: 2px solid var(--line); padding-top: 22px; position: relative; }
.steps-grid li::before {
  content: "";
  position: absolute; left: 0; top: -2px;
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--glow-2));
}
.steps-grid .step-no { margin-bottom: 14px; }
.steps-grid h3 { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--text); margin-bottom: 10px; }
.steps-grid p { font-size: 15px; line-height: 1.6; color: var(--text-muted); }

/* Ehrliche Referenz-Karte (Branchen ohne eigene Referenz) */
.pilot {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 56px;
  align-items: center;
  padding: 56px;
  border-radius: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.pilot h3 { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; color: var(--text); margin-bottom: 16px; }
.pilot p { font-size: 16px; line-height: 1.7; color: var(--text-muted); }
.pilot p + p { margin-top: 12px; }
.pilot .proof-bar { margin-top: 0; }
.pilot .link-arrow { display: inline-block; margin-top: 20px; }

/* Vorher / Nachher (Case Study) */
.compare-list { list-style: none; display: grid; gap: 14px; max-width: 760px; }
.compare-list li { position: relative; padding-left: 34px; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; }
.compare-list li::before {
  position: absolute; left: 0; top: .15em;
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
}
.compare-before li { color: var(--on-dark-muted); }
.compare-before li::before { content: "✕"; color: #fca5a5; background: rgba(248, 113, 113, .14); }
.compare-after li { color: var(--text); }
.compare-after li::before { content: "✓"; color: var(--ink); background: var(--glow-2); }

/* Tabelle (Case Study) */
.result-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.result-table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); padding: 0 16px 14px 0; border-bottom: 1px solid var(--line); }
.result-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); color: var(--text-secondary); vertical-align: top; }
.result-table td:last-child, .result-table th:last-child { text-align: right; padding-right: 0; font-weight: 600; color: var(--text); }
.result-table tfoot td { font-weight: 700; color: var(--text); border-bottom: 0; }

.big-quote {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.big-quote blockquote {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(28px, 3.6vw, 48px); line-height: 1.2; color: var(--text);
  margin-bottom: 20px;
}
.big-quote span { font-size: 15px; color: var(--text-muted); }

/* ---------- Design-Review Skill 09 (Unterseiten) ---------- */
/* 2: Hero-Foto sichtbar rechts, Text links lesbar */
.sub .chaos-photo { opacity: calc(.6 - var(--p) * .4); object-position: var(--focus, 70% 50%); }
.sub .chaos-vignette {
  background:
    radial-gradient(ellipse 80% 70% at 60% 45%, transparent 0%, rgba(5, 8, 13, .45) 75%, var(--ink) 100%),
    linear-gradient(90deg, rgba(5, 8, 13, .88) 0%, rgba(5, 8, 13, .55) 42%, rgba(5, 8, 13, .15) 70%, transparent 100%);
}
/* 3: Serif nur an Schlüsselstellen */
.sub .symptom-list em { font-family: inherit; font-style: normal; font-weight: 400; color: var(--on-dark-muted); }
/* 4: kein Totraum nach dem Wendepunkt */
.sub .turn-bottom { padding: 32px 0 0; }
.sub .turn + .sub-section { padding-top: 72px; }
/* 5: Karte hebt sich vom Abschnitt ab */
.sub-section.is-white .pilot { background: var(--bg); }
/* 6: nahtloser Abspann nach weißem Abschnitt */
.is-white + .cine-footer,
.faq + .cine-footer,
.sub-section.is-white + .cine-footer {
  background: linear-gradient(180deg, var(--white) 0, var(--dusk-1) 6vh, var(--dusk-2) 16vh, var(--ink) 24vh);
}
/* 7: Hero startet auf jeder Unterseite gleich hoch */
.sub .cine-hero { align-items: flex-start; padding-top: clamp(140px, 20vh, 200px); }
/* 8: Case-Hero ruhiger */
.case .h1-sub { font-size: .72em; }
.case .chaos-vignette { background: radial-gradient(ellipse 80% 70% at 70% 45%, transparent 0%, rgba(5, 8, 13, .5) 75%, var(--ink) 100%), linear-gradient(90deg, rgba(5, 8, 13, .94) 0%, rgba(5, 8, 13, .75) 45%, rgba(5, 8, 13, .2) 75%, transparent 100%); }
/* 9: eine Größenskala */
.compare-list li { font-size: clamp(17px, 1.4vw, 19px); }
.mod h3, .steps-grid h3 { font-size: 20px; }
/* Hinweis unter Leistungs-Überschrift */
.sub-note { margin-top: 14px; font-size: 15px; color: var(--text-muted); }

/* ---------- Usability-Review Skill 16 (Unterseiten) ---------- */
/* Übertragung der Referenz auf die eigene Branche */
.pilot-flows { display: grid; gap: 10px; }
.flow-label { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.pilot-flow { list-style: none; display: grid; gap: 22px; margin-bottom: 18px; justify-items: start; }
.pilot-flow li {
  position: relative;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px; font-weight: 500;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--text-secondary);
}
.pilot-flow li + li::before {
  content: "↓"; position: absolute; left: 16px; top: -21px;
  font-size: 13px; color: var(--text-muted);
}
.pilot-flow.is-target li { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.pilot-flow.is-target li + li::before { color: var(--accent); }
.pilot-flows { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.pilot-flows .flow-label:nth-of-type(1) { grid-column: 1; grid-row: 1; }
.pilot-flows .pilot-flow:nth-of-type(1) { grid-column: 1; grid-row: 2; }
.pilot-flows .flow-label:nth-of-type(2) { grid-column: 2; grid-row: 1; }
.pilot-flows .pilot-flow:nth-of-type(2) { grid-column: 2; grid-row: 2; }

/* Kleinerer nächster Schritt */
.steps-alt { margin-top: 40px; text-align: center; font-size: 15px; color: var(--text-muted); }
.steps-alt .link-arrow { margin-left: 6px; }

/* Wer baut das? */
.builder-strip {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  max-width: 980px;
}
.builder-strip img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 22%; border-radius: 20px; }
.builder-strip h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 700; letter-spacing: -.04em; line-height: 1.1; color: var(--text); margin-bottom: 16px; }
.builder-strip p { font-size: 16px; line-height: 1.7; color: var(--text-muted); max-width: 56ch; }
.builder-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 24px; }

/* Weitere Branchen: 3 Karten */
.industry-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.industry-grid-3 .industry-card { aspect-ratio: 4 / 3; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .mod:nth-child(2n) { padding-left: 32px; border-left: 1px solid var(--line); }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pilot { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .industry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .industry-card { aspect-ratio: 4 / 3; }
  .built-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .method-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
  .home .nav-links { background: rgba(5, 8, 13, .96); height: 100dvh; }
  .home .nav-links a { color: var(--on-dark-muted) !important; }
  .home .nav-links .nav-cta { color: var(--ink) !important; background: var(--white) !important; }

  .chaos-fragments { top: 15%; --sx: .55; --sy: .14; left: 46%; }
  .sub .chaos-fragments { top: 12%; left: 50%; }
  .sub .frag:nth-child(n+4) { display: none; }
  .sub .frag { transform: translate(-50%, calc((var(--i) - 1) * 36px)) rotate(calc(var(--r0) * .4)); animation: none; }
  .frag:nth-child(n+5) { display: none; }
  .frag { font-size: 11px; padding: 6px 9px; opacity: calc(.38 - var(--p) * 1.6); }
  .chaos-line, .chaos-system { display: none; }
  .bar-row { grid-template-columns: 64px 1fr 52px; gap: 10px; }
  .cine-footer { padding-top: 24vh; }
  .cine-hero { padding: 112px 0 88px; align-items: flex-end; }
  .cine-hero h1 { max-width: none; }
  .cine-actions .btn { flex: 1 1 auto; }
  .symptom-list { max-width: none; }
  .symptom-list li { padding-left: 0; padding-top: 28px; margin-bottom: 9vh; }
  .symptom-list li::before { top: 0; }

  .turn-mid { height: 26vh; }

  .method { padding: 72px 0 88px; }
  .method-grid { grid-template-columns: 1fr; gap: 0; }
  .method-rail { display: none; }
  .js .method-step { opacity: 1; }
  .method-step { padding: 40px 0; }

  .proof, .industries, .team, .faq, .sub-section { padding: 88px 0; }
  .proof-quote { position: static; padding: 24px; background: var(--ink); }
  .proof-metrics { gap: 24px 16px; }

  .team-grid, .faq-grid { grid-template-columns: 1fr; gap: 40px; }
  .team-photo img { aspect-ratio: 4 / 3; }
  .faq-head { position: static; }

  .footer-cols { grid-template-columns: 1fr 1fr; }
  .builder-strip { grid-template-columns: 1fr; gap: 28px; }
  .builder-strip img { aspect-ratio: 4 / 3; max-width: 420px; }
  .industry-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .home .sticky-cta-bar {
    display: flex;
    justify-content: flex-start;
    /* rechts Platz für den Chat-Button – ein Floating-Element pro Zeile */
    padding: 14px 84px calc(14px + env(safe-area-inset-bottom)) 16px;
    bottom: -100px;
    transition: bottom .35s var(--ease-out);
  }
  .home .sticky-cta-bar.show { bottom: 0; }
  .home .sticky-cta-bar .btn { flex: 1; }
}

@media (max-width: 520px) {
  .industry-grid-3 { grid-template-columns: 1fr; }
  .mod-grid, .steps-grid { grid-template-columns: 1fr; }
  .mod:nth-child(2n) { padding-left: 0; border-left: 0; }
  .pilot { padding: 28px 22px; }
  .result-table { font-size: 13px; }
  .industry-grid { grid-template-columns: 1fr; }
  .industry-card { aspect-ratio: 16 / 10; }
  .built-list { grid-template-columns: 1fr; }
  .proof-metrics { grid-template-columns: 1fr; }
}

/* ============================================================
   Reduced Motion – alles statisch, kein Video
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .chaos-video { display: none; }
  .chaos-photo { opacity: .35; }
  .js .rv, .js .method-step { opacity: 1; }
  .js .turn-beam { transform: none; }
  .js .proof-film { clip-path: none; }
  .js .proof-film img { transform: none; }
  .js .team-photo img { filter: none; }
  .js .bar-after { transform: scaleX(.2917); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
