/* ==========================================================================
   syscore – Stylesheet
   ========================================================================== */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Farben */
  --bg: #F4F4F2;
  --bg-alt: #EAEAE6;
  --surface: #FFFFFF;
  --ink: #0B0B0C;
  --ink-2: #3A3A3E;
  --muted: #6A6A70;
  --line: #DCDCD6;
  --line-strong: #C4C4BC;

  --dark: #09090A;
  --dark-2: #111113;
  --dark-3: #19191C;
  --dark-line: #27272B;
  --on-dark: #F2F2F0;
  --on-dark-2: #A3A3A8;

  --brand: #FF5B1F;       /* Signalorange: Handlung, Energie, Dringlichkeit */
  --brand-hi: #FF7A45;    /* Orange auf dunklem Grund */
  --brand-soft: #FFEEE5;
  --accent: #C2410C;      /* Orange als Text auf hellem Grund, AA-konform */
  --review: #A15C07;
  --review-soft: #FBEFD9;

  /* Typografie */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 16px;
  --radius-sm: 10px;
  --section-y: clamp(72px, 10vw, 128px);
  --header-h: 72px;

  --shadow-sm: 0 1px 2px rgba(15, 18, 17, .05);
  --shadow: 0 1px 2px rgba(15, 18, 17, .04), 0 12px 32px -12px rgba(15, 18, 17, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
h1 { font-size: clamp(2.375rem, 4.6vw, 4rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.875rem, 3.4vw, 2.875rem); letter-spacing: -0.03em; }
h3 { font-size: 1.1875rem; letter-spacing: -0.015em; line-height: 1.3; }

.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.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; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.section-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--brand-hi); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 500; letter-spacing: .02em;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow-on-dark { color: var(--brand-hi); }

.lead { font-size: clamp(1.0625rem, 1.4vw, 1.1875rem); line-height: 1.6; color: var(--ink-2); }
.lead-on-dark { color: var(--on-dark-2); }

.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font-size: .9375rem; font-weight: 500; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #26262A; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-brand { background: var(--brand); color: var(--ink); font-weight: 600; }
.btn-brand:hover { background: #FF7A45; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(244, 244, 242, .97);
  /* bewusst ohne backdrop-filter: spart Rechenzeit bei jedem Scroll-Schritt */
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-logo { display: block; height: 20px; width: auto; aspect-ratio: 1817.5 / 289.6; fill: currentColor; }
.brand-on-dark { color: var(--on-dark); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav ul a {
  font-size: .9375rem; color: var(--ink-2); text-decoration: none; position: relative; padding: 6px 0;
  transition: color .2s var(--ease);
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.main-nav ul a:hover { color: var(--ink); }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.main-nav ul a.is-active { color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: transparent; cursor: pointer; position: relative;
}
.nav-toggle-bar {
  position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: transform .25s var(--ease);
}
.nav-toggle-bar:nth-of-type(2) { top: 17px; }
.nav-toggle-bar:nth-of-type(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero (immersiv) ---------- */
.site-header.is-overlay { position: fixed; left: 0; right: 0; }
.site-header.is-dark { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header.is-dark.is-scrolled { background: rgba(9, 9, 10, .94); border-bottom-color: rgba(242, 242, 240, .06); }
.site-header.is-dark .brand { color: var(--on-dark); }
.site-header.is-dark .main-nav ul a { color: rgba(242, 242, 240, .7); }
.site-header.is-dark .main-nav ul a:hover { color: #fff; }
.site-header.is-dark .main-nav ul a::after { background: #fff; }
.site-header.is-dark .nav-cta { background: var(--on-dark); color: var(--ink); }
.site-header.is-dark .nav-cta:hover { background: #fff; }
.site-header.is-dark .nav-toggle { border-color: rgba(242, 242, 240, .25); }
.site-header.is-dark .nav-toggle-bar { background: var(--on-dark); }

.hero {
  position: relative;
  background: #09090A;
  color: var(--on-dark);
}
.hero-stage {
  --core-x: 72%;
  --core-y: 52%;
  --pad: max(var(--gutter), calc((100% - var(--container)) / 2));
  position: relative;
  min-height: 100vh; min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}
.hero-art {
  position: absolute; left: 0; right: 0; top: 0; height: 100vh; height: 100svh; z-index: -1;
  background: radial-gradient(60% 70% at var(--core-x) 50%, #151215 0%, #09090A 70%);
}
.hero-art::before {
  /* Glut hinter der Partikel-Formation – stärker je Szene */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(34% 40% at var(--core-x) var(--core-y), rgba(255, 91, 31, .20), transparent 70%);
  opacity: var(--glow, .5); transition: opacity 1.6s var(--ease);
}
.hero-art::after {
  /* ruhige Zone hinter dem Text */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(90deg, rgba(9, 9, 10, .78) 0%, rgba(9, 9, 10, .35) 42%, transparent 62%);
}
.hero[data-scene="1"] { --glow: .25; }
.hero[data-scene="2"] { --glow: .45; }
.hero[data-scene="3"] { --glow: 1; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-no-gl .hero-art {
  background:
    radial-gradient(circle at var(--core-x) var(--core-y), rgba(255, 122, 69, .35), transparent 8%),
    radial-gradient(circle at var(--core-x) var(--core-y), rgba(255, 91, 31, .18), transparent 45%);
}

.hero-content {
  position: relative; z-index: 2;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--header-h) + 24px); padding-bottom: 120px;
  pointer-events: none;
}
.hero-content a { pointer-events: auto; }
.hero-title {
  font-size: clamp(3rem, 6.8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: .98;
  color: #fff;
  max-width: 11em;
}
.hero-line { display: block; }
.hero-title em {
  font-style: normal;
  background: linear-gradient(95deg, #FFFFFF 0%, #FFC7AE 45%, var(--brand-hi) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-bottom { display: grid; gap: 32px; margin-top: clamp(32px, 4.5vw, 56px); max-width: 560px; }
.hero-lead { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; color: rgba(242, 242, 240, .72); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-ghost-dark { border-color: rgba(242, 242, 240, .24); color: var(--on-dark); background: rgba(9, 9, 10, .3); }
.btn-ghost-dark:hover { border-color: var(--on-dark); }

.hero-fade { opacity: 0; transform: translateY(22px); animation: hero-in 1s var(--ease) forwards; animation-delay: calc(var(--d) * 110ms + 150ms); }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* Aussagen: im Grundzustand untereinander */
.hero-statements { position: relative; z-index: 2; }
.statement { padding: 0 0 96px; }
.statement:first-child { padding-top: 64px; border-top: 1px solid var(--dark-line); }
.statement-kicker {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 28px;
  font-size: .875rem; font-weight: 500; letter-spacing: .02em; color: var(--brand-hi);
}
.statement-kicker span { color: var(--on-dark-2); font-variant-numeric: tabular-nums; }
.statement-text {
  font-size: clamp(2.25rem, 4.7vw, 4.75rem);
  font-weight: 500; letter-spacing: -0.045em; line-height: 1.04;
  color: #fff; max-width: 11em;
}
.statement-text .ln { display: block; }
.statement-text .ln-em { color: var(--on-dark-2); }
.statement-final .statement-text .ln-em { color: var(--brand-hi); }
.statement-final .btn { margin-top: 44px; align-self: flex-start; }
.statement-final .container { display: flex; flex-direction: column; }
.hero-progress, .hero-scroll { display: none; }

/* ---------- Szenen-Modus (Desktop): ein Scroll = ein getimter Szenenwechsel ---------- */
.hero.is-scenes { height: 100vh; height: 100svh; min-height: 640px; }
.hero.is-scenes .hero-stage { height: 100%; min-height: 0; }
.hero.is-scenes .hero-art { height: 100%; }
.hero.is-scenes .hero-content {
  min-height: 0; height: 100%;
  transition: opacity .9s var(--ease) calc(var(--travel, 0ms) * .7), transform 1.1s cubic-bezier(.16, 1, .3, 1) calc(var(--travel, 0ms) * .7), visibility 0s linear 0s;
}
.hero.is-scenes .hero-content.is-leaving { opacity: 0; transform: translateY(-40px); visibility: hidden; transition: opacity 1.1s var(--ease), transform 1.4s var(--ease), visibility 0s linear 1.1s; }

.hero.is-scenes .hero-statements { position: absolute; inset: 0; pointer-events: none; }
.hero.is-scenes .statement {
  position: absolute; inset: 0; padding: var(--header-h) 0 0; border: 0;
  display: flex; flex-direction: column; justify-content: center;
  visibility: hidden; transition: visibility 0s linear .8s;
}
.hero.is-scenes .statement.is-active { visibility: visible; transition: none; }

/* Filmtitel-Reveal: jede Zeile gleitet aus einer Maske */
.hero.is-scenes .statement-text { font-size: clamp(2.25rem, 3.9vw, 4.25rem); max-width: none; }
.hero.is-scenes .statement-text .ln { overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; white-space: nowrap; }
.hero.is-scenes .statement-text .ln > span {
  display: block; transform: translateY(110%);
  transition: transform 1s cubic-bezier(.7, 0, .84, 0);
}
.hero.is-scenes .statement.is-past .statement-text .ln > span { transform: translateY(-110%); }
.hero.is-scenes .statement.is-active .statement-text .ln > span {
  transform: none; transition: transform 1.8s cubic-bezier(.16, 1, .3, 1);
}
.hero.is-scenes .statement.is-active .statement-text .ln:nth-child(1) > span { transition-delay: calc(var(--travel, 0ms) * .7); }
.hero.is-scenes .statement.is-active .statement-text .ln:nth-child(2) > span { transition-delay: calc(var(--travel, 0ms) * .7 + 220ms); }
.hero.is-scenes .statement.is-active .statement-text .ln:nth-child(3) > span { transition-delay: calc(var(--travel, 0ms) * .7 + 440ms); }
.hero.is-scenes .statement-kicker, .hero.is-scenes .statement .btn {
  opacity: 0; transform: translateY(14px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.hero.is-scenes .statement.is-active .statement-kicker { opacity: 1; transform: none; transition: opacity 1.4s var(--ease) calc(var(--travel, 0ms) * .64), transform 1.4s var(--ease) calc(var(--travel, 0ms) * .64); }
.hero.is-scenes .statement.is-active .btn { opacity: 1; transform: none; pointer-events: auto; transition: opacity .8s var(--ease) calc(var(--travel, 0ms) * .7 + 900ms), transform 1.2s var(--ease) calc(var(--travel, 0ms) * .7 + 900ms); }

/* Szenen-Navigation rechts */
.hero.is-scenes .hero-progress {
  position: absolute; right: var(--pad); top: 50%; transform: translateY(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: 18px;
}
.hero-count { font-size: .75rem; color: var(--on-dark-2); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.scene-nav { display: flex; flex-direction: column; gap: 4px; }
.hero-dot {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 6px 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--on-dark-2);
}
.hero-dot::after {
  content: ""; width: 18px; height: 2px; border-radius: 2px; background: rgba(242, 242, 240, .25);
  transition: width var(--travel, .6s) cubic-bezier(.65, 0, .35, 1), background-color .4s var(--ease);
}
.hero.is-travelling .hero-dot { cursor: default; }
.sn-num { font-size: .6875rem; font-variant-numeric: tabular-nums; opacity: .6; }
.sn-label { font-size: .8125rem; font-weight: 500; opacity: 0; transform: translateX(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.hero-dot:hover .sn-label, .hero-dot.is-current .sn-label { opacity: 1; transform: none; }
.hero-dot:hover { color: var(--on-dark); }
.hero-dot.is-done::after { background: rgba(255, 122, 69, .6); }
.hero-dot.is-current { color: #fff; }
.hero-dot.is-current::after { width: 40px; background: var(--brand); }

.hero.is-scenes .hero-scroll { display: flex; }

.hero-scroll {
  position: absolute; left: 50%; bottom: 28px; z-index: 3; transform: translateX(-50%);
  flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); text-decoration: none;
}
.hero-scroll-line { width: 1px; height: 40px; background: linear-gradient(rgba(242, 242, 240, .5), transparent); position: relative; overflow: hidden; }
.hero-scroll-line::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--brand-hi); animation: scroll-cue 2.2s var(--ease) infinite; }
@keyframes scroll-cue { to { top: 100%; } }

/* ---------- Hero: Auftakt, kinetische Typografie, Interface-Ebene ---------- */
.hero-loader {
  position: absolute; left: var(--pad); bottom: 44px; z-index: 6;
  display: grid; grid-template-columns: auto 1fr; align-items: end; gap: 6px 18px; width: min(420px, 60vw);
  font-size: .75rem; color: var(--on-dark-2); pointer-events: none;
  opacity: 0; visibility: hidden;
}
.hero.is-intro .hero-loader { opacity: 1; visibility: visible; }
.hero.is-ready .hero-loader { opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility 0s linear .6s; }
.hl-count { grid-row: span 2; font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 500; letter-spacing: -0.05em; line-height: .85; color: #fff; font-variant-numeric: tabular-nums; }
.hl-bar { position: relative; height: 1px; background: rgba(242, 242, 240, .18); overflow: hidden; align-self: end; margin-bottom: 8px; }
.hl-bar i { position: absolute; inset: 0; background: var(--brand); transform-origin: left; transform: scaleX(var(--p, 0)); }
.hl-label { letter-spacing: .08em; text-transform: uppercase; font-size: .6875rem; }

/* Header und Inhalte warten auf den Auftakt */
body.is-intro .site-header { opacity: 0; transform: translateY(-8px); }
body .site-header { transition: opacity .8s var(--ease), transform .8s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease); }
.hero:not(.is-ready) .hero-fade { animation-play-state: paused; }
.hero:not(.is-ready) .hero-progress, .hero:not(.is-ready) .hero-scroll, .hero:not(.is-ready) .hero-hud { opacity: 0; }
.hero-progress, .hero-scroll, .hero-hud { transition: opacity 1s var(--ease) .6s; }

/* Kinetische Headline: jedes Wort gleitet aus einer Maske */
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .w > span { display: inline-block; transform: translateY(108%) rotate(5deg); transform-origin: 0 100%; filter: blur(6px); opacity: .2; }
.hero.is-ready .hero-title .w > span {
  transform: none; filter: none; opacity: 1;
  transition: transform 1.2s cubic-bezier(.16, 1, .3, 1), filter 1s var(--ease), opacity .8s var(--ease);
  transition-delay: calc(var(--i) * 75ms + 80ms);
}
.hero-title .w em { font-style: normal; background: linear-gradient(95deg, #FFFFFF 0%, #FFC7AE 45%, var(--brand-hi) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Interface-Ebene */
.hero-hud { position: absolute; inset: calc(var(--header-h) + 14px) 24px 22px; z-index: 3; pointer-events: none; }
.hud-mark { position: absolute; width: 14px; height: 14px; border-color: rgba(242, 242, 240, .28); border-style: solid; border-width: 0; }
.hud-tl { left: 0; top: 0; border-left-width: 1px; border-top-width: 1px; }
.hud-tr { right: 0; top: 0; border-right-width: 1px; border-top-width: 1px; }
.hud-bl { left: 0; bottom: 0; border-left-width: 1px; border-bottom-width: 1px; }
.hud-br { right: 0; bottom: 0; border-right-width: 1px; border-bottom-width: 1px; }
.hud-meta {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(242, 242, 240, .5); white-space: nowrap;
}
.hud-meta b { font-weight: 500; color: rgba(242, 242, 240, .8); }
.hud-top { right: 26px; top: -5px; }
.hud-bottom { right: 26px; bottom: -5px; }
.hud-sep { opacity: .4; }
.hud-live { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(255, 91, 31, .2); animation: pulse 1.6s ease-in-out infinite; }
[data-hud-time] { font-variant-numeric: tabular-nums; min-width: 8ch; }
.hero.is-scenes .hero-scroll { bottom: 36px; }

/* Cinemascope-Balken (2,39:1) während des Flugs */
.hero-bars { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.hero-bars span.bar-top, .hero-bars span.bar-bottom {
  position: absolute; left: 0; right: 0; height: calc((100% - 100vw / 2.39) / 2); min-height: 9vh; background: #000;
  transition: transform 1.6s cubic-bezier(.65, 0, .35, 1);
}
.bar-top { top: 0; transform: translateY(-101%); }
.bar-bottom { bottom: 0; transform: translateY(101%); display: flex; align-items: center; justify-content: center; }
.hero.is-travelling .bar-top, .hero.is-travelling .bar-bottom { transform: none; }
.bar-caption {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(242, 242, 240, .75); opacity: 0; transition: opacity .5s var(--ease);
}
.hero.is-travelling .bar-caption { opacity: 1; transition-delay: .45s; }
.hero.is-travelling .hero-progress, .hero.is-travelling .hero-scroll { opacity: .25; }

/* Magnetische Buttons */
.hero .btn.is-magnetic { transition: transform .35s cubic-bezier(.16, 1, .3, 1), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }

@media (max-width: 960px) {
  .hero-hud .hud-meta { display: none; }
  .hero-hud { inset: calc(var(--header-h) + 8px) 12px 12px; }
  .hero-loader { bottom: auto; top: 45%; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-title .w > span { transform: none; filter: none; opacity: 1; }
  .hero-loader { display: none; }
}

/* Lösungs-Karte */
.solution-map {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(11, 11, 12, .04), 0 30px 60px -40px rgba(11, 11, 12, .25);
  padding: 22px 22px 18px;
}
.map-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .8125rem; padding: 0 4px; }
.map-label { font-weight: 600; letter-spacing: -0.01em; }
.map-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.map-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(255, 91, 31, .16); }

.map-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  margin: 14px 0 10px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 91, 31, .07), transparent 46%),
    radial-gradient(circle, rgba(11, 11, 12, .07) 1px, transparent 1.4px) 0 0 / 18px 18px,
    #FAFAF8;
  overflow: hidden;
}

/* Verbindungen */
.map-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Verbindungen: gerade Leitungen von Port zu Port (Geometrie per JS) */
.map-orbit { fill: none; stroke: rgba(11, 11, 12, .08); stroke-width: 1; stroke-dasharray: 1 7; stroke-linecap: round; }
.cn-base { fill: none; stroke: #D6D6CE; stroke-width: 1; stroke-dasharray: 3 5; transition: stroke .5s var(--ease), stroke-width .5s var(--ease); }
.cn-glow, .cn-pulse { fill: none; stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 10 90; stroke-dashoffset: 100; opacity: 0; transition: opacity .4s var(--ease); }
.cn-glow { stroke-width: 7; }
.cn-pulse { stroke-width: 2; }
.cn-port-in { fill: #FAFAF8; stroke: #C9C9C1; stroke-width: 1.2; transition: fill .5s var(--ease), stroke .5s var(--ease); }
.cn-port-out { fill: #FAFAF8; stroke: #C9C9C1; stroke-width: 1.2; transition: fill .5s var(--ease), stroke .5s var(--ease); }
.cn-halo { fill: var(--brand); opacity: 0; transform-box: fill-box; transform-origin: center; }
[data-line].is-active .cn-base { stroke: #17171A; stroke-width: 1.5; stroke-dasharray: none; }
[data-line].is-active .cn-pulse { opacity: 1; animation: ln-flow 2.4s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: var(--d, 0s); }
[data-line].is-active .cn-glow { opacity: .16; animation: ln-flow 2.4s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: var(--d, 0s); }
[data-line].is-active .cn-port-in { fill: #17171A; stroke: #17171A; }
[data-line].is-active .cn-port-out { fill: var(--brand); stroke: var(--brand); }
[data-line].is-active .cn-halo { animation: cn-halo 2.4s var(--ease) infinite; animation-delay: calc(var(--d, 0s) + 1.9s); }
@keyframes ln-flow { to { stroke-dashoffset: 0; } }
@keyframes cn-halo { 0% { opacity: .35; transform: scale(.6); } 70%, 100% { opacity: 0; transform: scale(2.2); } }

/* Bausteine */
.map-node {
  position: absolute; left: var(--x); top: var(--y); z-index: 1;
  transform: translate(-50%, -50%);
  --tile-bg: #FFFFFF; --acc: #C9C9C1;
  color: #A3A3AA;
}
.node-tile {
  display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: 20px;
  background: linear-gradient(180deg, #FFFFFF, #F3F3EF);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(11, 11, 12, .05), 0 10px 22px -14px rgba(11, 11, 12, .25);
  transition: background .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease), transform .5s var(--ease);
}
.node-glyph { width: 42px; height: 42px; overflow: visible; }
.node-label {
  position: absolute; left: 50%; top: calc(100% + 9px); transform: translateX(-50%);
  font-size: .8125rem; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  color: var(--muted); transition: color .5s var(--ease);
}

.map-node.is-active { --tile-bg: #1C1C20; --acc: var(--brand-hi); color: #EDEDEA; }
.map-node.is-active .node-tile {
  background: radial-gradient(120% 110% at 30% 0%, #2B2B30 0%, #111113 70%);
  border-color: #2C2C32;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 5px rgba(255, 91, 31, .10), 0 16px 30px -14px rgba(255, 91, 31, .55);
  transform: translateY(-2px);
}
.map-node.is-active .node-label { color: var(--ink); font-weight: 600; }
.map-node.label-top .node-label { top: auto; bottom: calc(100% + 9px); }

/* Glyph-Bausteine */
.node-glyph * { vector-effect: non-scaling-stroke; transition: fill .5s var(--ease), stroke .5s var(--ease), opacity .5s var(--ease); }
.gl-f1 { fill: currentColor; opacity: .14; }
.gl-f2 { fill: currentColor; opacity: .26; }
.gl-card { fill: var(--tile-bg); stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.gl-card-acc { stroke: var(--acc); }
.gl-st { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gl-faint { opacity: .45; }
.gl-dash { stroke-dasharray: 2.5 3; }
.gl-acc { fill: none; stroke: var(--acc); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.gl-thick { stroke-width: 2.4; }
.gl-accf { fill: var(--acc); }
.gl-lens { fill: var(--tile-bg); stroke: var(--acc); stroke-width: 1.8; }
.gl-check { fill: none; stroke: var(--tile-bg); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gl-runner { opacity: 0; }

/* Mikro-Animationen nur bei aktiven Bausteinen */
.map-node.is-active .gl-runner { opacity: 1; }
.map-node.is-active .gl-scan { animation: gl-scan 2.6s var(--ease) infinite; }
.map-node.is-active .gl-orbit { transform-origin: 24px 24px; animation: gl-spin 7s linear infinite; }
.map-node.is-active .gl-spark { transform-origin: 24px 24px; animation: gl-spark 2.4s var(--ease) infinite; }
.map-node.is-active .gl-pulse { animation: gl-pulse 1.6s var(--ease) infinite; }
.map-node.is-active .gl-wave1 { animation: gl-wave 1.8s var(--ease) infinite; }
.map-node.is-active .gl-wave2 { animation: gl-wave 1.8s var(--ease) .3s infinite; }
.map-node.is-active .gl-badge { transform-origin: 36.5px 34.5px; animation: gl-pop 3s var(--ease) infinite; }
.map-node.is-active .gl-sync { transform-origin: 29.5px 7px; animation: gl-spin 3.6s linear infinite; }
@keyframes gl-scan { 0%, 100% { stroke-dasharray: 0 20; } 45%, 70% { stroke-dasharray: 12 20; } }
@keyframes gl-spin { to { transform: rotate(360deg); } }
@keyframes gl-spark { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.72); opacity: .7; } }
@keyframes gl-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes gl-wave { 0% { opacity: .2; } 40% { opacity: 1; } 100% { opacity: .2; } }
@keyframes gl-pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.14); } }

/* Mitte: das Punkt-O aus dem Logo */
.map-core {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: clamp(96px, 22%, 128px);
  transform: translate(-50%, -50%);
}
.core-o { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 10px 22px rgba(255, 91, 31, .28)); }
.co-core { fill: var(--ink); }
.co-r1 { fill: var(--ink); }
.co-r2 { fill: var(--ink); opacity: .75; }
.co-r3 { fill: var(--brand); opacity: .85; }
.co-r1, .co-r2, .co-r3 { transform-origin: 60px 60px; }
.co-r2 { animation: gl-spin 40s linear infinite reverse; }
.co-r3 { animation: gl-spin 26s linear infinite; }
.map-caption-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.map-caption-kicker { font-size: .75rem; font-weight: 500; letter-spacing: .02em; color: var(--accent); }
[data-map-title] { transition: opacity .3s var(--ease); }
.map-caption { min-height: 5em; font-size: .9375rem; color: var(--ink-2); padding: 6px 4px 0; transition: opacity .3s var(--ease); }
.is-fading { opacity: 0; }

/* Segment-Umschalter */
.map-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  margin-top: 14px; padding: 4px; border-radius: 14px; background: #F1F1EE;
}
.map-tabs button {
  border: 0; background: transparent; border-radius: 10px;
  padding: 9px 6px; font-size: .8125rem; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.map-tabs button:hover { color: var(--ink); }
.map-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(11, 11, 12, .08), 0 4px 10px -6px rgba(11, 11, 12, .2); }

/* Animationen der Karte pausieren außerhalb des Sichtbereichs */
.solution-map:not(.is-inview) :not(.bp):not(.bp *) { animation-play-state: paused !important; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--dark); color: var(--on-dark); }
.section-head {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px 64px; align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-intro { color: var(--ink-2); max-width: 34em; }
.section-dark .section-intro { color: var(--on-dark-2); }

/* Intro */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; align-items: start; }
.intro-grid > .intro-body { margin-top: 0; padding-top: 44px; }
.intro-grid h2 { max-width: 12em; }
.intro-answer { margin-top: 24px; font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 500; letter-spacing: -0.02em; color: var(--accent); }
.intro-body { display: grid; gap: 20px; color: var(--ink-2); align-content: start; margin-top: 32px; }
.question-list { display: grid; border-top: 1px solid var(--line); }
.question-list li {
  display: flex; gap: 20px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); font-weight: 500;
}
.question-list span { font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 500; }

/* KI in der Praxis */
.praxis-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.flow { display: grid; counter-reset: flow; }
.flow-step { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--dark-line); position: relative; }
.flow-step:last-child { border-bottom: 1px solid var(--dark-line); }
.flow-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--dark-line); color: var(--on-dark-2); font-size: .8125rem; font-variant-numeric: tabular-nums;
}
.flow-step h3 { color: var(--on-dark); margin-bottom: 6px; }
.flow-step p { color: var(--on-dark-2); font-size: .9688rem; }
.flow-step-human .flow-num { background: var(--brand-hi); border-color: var(--brand-hi); color: var(--ink); font-weight: 600; }
.flow-step-human h3 { color: var(--brand-hi); }

.ui-card {
  position: sticky; top: calc(var(--header-h) + 32px);
  background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.ui-card-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--dark-line); background: var(--dark-3); }
.ui-dots { display: flex; gap: 6px; }
.ui-dots i { width: 9px; height: 9px; border-radius: 50%; background: #3A3A40; }
.ui-card-title { font-size: .8125rem; color: var(--on-dark-2); }
.ui-card-body { display: grid; gap: 10px; padding: 18px; }
.ui-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-radius: 12px; background: var(--dark-3); border: 1px solid var(--dark-line);
  font-size: .9375rem;
}
.ui-row-focus { border-color: rgba(245, 196, 81, .45); }
.ui-row-final { border-color: rgba(255, 122, 69, .35); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 500; white-space: nowrap; }
.badge .icon { width: 14px; height: 14px; stroke-width: 2.2; }
.badge-ok { background: rgba(255, 122, 69, .12); color: #FFB08F; }
.badge-review { background: rgba(245, 196, 81, .14); color: #F5C451; }
.badge-done { background: var(--brand-hi); color: var(--ink); }
.ui-note { margin-left: 18px; padding: 12px 16px; border-left: 2px solid var(--brand-hi); font-size: .875rem; color: var(--on-dark-2); }
.ui-note-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--on-dark); font-weight: 500; margin-bottom: 4px; }
.ui-note-kicker .icon { width: 16px; height: 16px; color: var(--brand-hi); }
.ui-card-foot { padding: 12px 18px; border-top: 1px solid var(--dark-line); font-size: .75rem; color: #7E7E86; }

/* Referenzen */
.case {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  margin-bottom: 16px;
}
.case-reverse .case-media { order: 2; }
.case-media { position: relative; min-height: 420px; display: grid; place-items: center; padding: 40px; }
.case-media-ui { background: linear-gradient(160deg, #F2F1ED, #E7E6E1); }
.case-media-dark { background: #0B0D0C; padding: 0; }
.case-media-dark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.case-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.case-body h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.03em; line-height: 1.15; }
.case-body > p:not(.case-meta):not(.case-note) { color: var(--ink-2); }
.case-meta { font-size: .8125rem; font-weight: 500; color: var(--accent); }
.case-facts { display: grid; gap: 10px; margin-top: 4px; }
.case-facts li { display: flex; gap: 10px; align-items: flex-start; font-size: .9688rem; }
.case-facts .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 3px; stroke-width: 2; }
.case-note { font-size: .8125rem; color: var(--muted); padding-top: 14px; border-top: 1px solid var(--line); }
.case-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 6px; }
.case-stats div { background: var(--surface); padding: 16px 18px; }
.case-stats dt { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.case-stats dd { font-size: .8125rem; color: var(--muted); margin-top: 4px; line-height: 1.45; }

/* Telefon-UI */
.call-card {
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  padding: 20px;
}
.call-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.call-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: var(--brand-hi); }
.call-icon .icon { width: 20px; height: 20px; }
.call-title { display: block; font-weight: 600; font-size: .9375rem; }
.call-sub { display: block; font-size: .8125rem; color: var(--muted); }
.call-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 500; color: var(--accent); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px;
}
.call-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #FF5B1F; }
.call-steps { display: grid; gap: 4px; margin-top: 12px; }
.call-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; border-radius: 10px; font-size: .8125rem; color: var(--muted); line-height: 1.45; }
.call-steps strong { display: block; color: var(--ink); font-weight: 500; font-size: .875rem; }
.call-steps .icon { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.2; margin-top: 1px; }
.call-steps li.active { background: #FFF3EC; }
.call-pulse, .call-empty { flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px; }
.call-pulse { border: 2px solid var(--accent); position: relative; }
.call-pulse::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s var(--ease) infinite; }
.call-empty { border: 1.5px dashed var(--line-strong); }
.call-steps li:not(.done):not(.active) strong { color: var(--muted); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Team */
.team-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.team-media { border-radius: 20px; overflow: hidden; background: #E4E4E0; }
.team-media img { width: 100%; }
.team-copy .lead { margin-top: 24px; }
.team-points { display: grid; gap: 14px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line-strong); }
.team-points li { display: flex; gap: 12px; color: var(--ink-2); }
.team-points strong { color: var(--ink); font-weight: 600; }
.team-points .icon { color: var(--accent); width: 20px; height: 20px; margin-top: 3px; stroke-width: 2; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px 80px; align-items: start; }
.faq-grid .section-intro { margin-top: 20px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 0; cursor: pointer; list-style: none;
  font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .icon { width: 20px; height: 20px; color: var(--muted); transition: transform .25s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(45deg); color: var(--ink); }
.faq-item summary:hover { color: var(--accent); }
.faq-item p { padding: 0 48px 24px 0; color: var(--ink-2); }

/* Kontakt */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px clamp(40px, 7vw, 96px); align-items: center; }
.contact h2 { font-size: clamp(2.125rem, 4.2vw, 3.5rem); letter-spacing: -0.035em; max-width: 11em; }
.contact .lead { margin-top: 24px; max-width: 32em; }
.contact-points { display: grid; gap: 10px; margin-top: 32px; }
.contact-points li { display: flex; gap: 10px; align-items: center; color: var(--on-dark); font-size: .9688rem; }
.contact-points .icon { color: var(--brand-hi); width: 18px; height: 18px; stroke-width: 2; }
.contact-card { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 20px; padding: 28px; display: grid; gap: 24px; }
.contact-person { display: flex; align-items: center; gap: 16px; }
.avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--brand-hi); color: var(--ink); font-weight: 600; letter-spacing: .02em; flex: none; }
.contact-name { font-weight: 600; font-size: 1.0625rem; }
.contact-role { font-size: .875rem; color: var(--on-dark-2); }
.contact-list { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid var(--dark-line); }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--on-dark-2); }
.contact-list .icon { width: 18px; height: 18px; color: var(--on-dark-2); margin-top: 3px; }
.contact-list a { color: var(--on-dark); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer { background: var(--dark); color: var(--on-dark-2); border-top: 1px solid var(--dark-line); font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-top: 64px; padding-bottom: 48px; }
.footer-brand p { margin-top: 16px; max-width: 22em; }
.footer-head { color: var(--on-dark); font-weight: 500; margin-bottom: 14px; }
.footer-nav ul { display: grid; gap: 8px; }
.site-footer a { text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--on-dark); }
.footer-contact address { font-style: normal; line-height: 1.8; }
.footer-bottom { position: relative; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 32px; font-size: .8125rem; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); border-top: 1px solid var(--dark-line); }
.footer-bottom ul { display: flex; gap: 24px; }

/* ---------- Einblend-Animation ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-fade { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav ul { gap: 20px; }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px -20px rgba(15, 18, 17, .2);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--line); }
  .main-nav ul a::after { display: none; }
  .nav-cta { min-height: 48px; }
  .site-header.is-dark .main-nav ul a { color: var(--ink-2); }
  .site-header.is-dark .nav-cta { background: var(--ink); color: #fff; }
  .site-header.is-dark:has(.main-nav.is-open) { background: var(--bg); }
  .site-header.is-dark:has(.main-nav.is-open) .brand { color: var(--ink); }
  .site-header.is-dark:has(.main-nav.is-open) .nav-toggle-bar { background: var(--ink); }
  .site-header.is-dark:has(.main-nav.is-open) .nav-toggle { border-color: var(--line-strong); }

  .hero-content { justify-content: flex-start; min-height: 0; padding-top: calc(var(--header-h) + 36px); padding-bottom: 34svh; }
  .hero-art::before {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
      linear-gradient(to bottom, rgba(9, 9, 10, .92) 0%, rgba(9, 9, 10, .75) 45%, transparent 68%),
      linear-gradient(to top, rgba(9, 9, 10, .5), transparent 20%);
  }
  .statement { padding-bottom: 72px; }
  .statement:first-child { padding-top: 56px; }

  /* Stationen auf schmalen Bildschirmen: Text oben, Partikel unten, Leiste unten */
  .hero.is-scenes .hero-content { justify-content: flex-start; padding-top: calc(var(--header-h) + 32px); padding-bottom: 0; }
  .hero.is-scenes .statement { justify-content: flex-start; padding: calc(var(--header-h) + 40px) 0 0; }
  .hero.is-scenes .statement-text { font-size: clamp(1.875rem, 7.4vw, 3rem); }
  .hero.is-scenes .statement-text .ln { white-space: normal; }
  .hero.is-scenes .statement .btn { margin-top: 28px; }
  .hero.is-scenes .hero-progress {
    top: auto; bottom: 22px; right: auto; left: var(--gutter); transform: none;
    flex-direction: row; align-items: center; gap: 14px;
  }
  .hero.is-scenes .scene-nav { flex-direction: row; gap: 2px; }
  .hero.is-scenes .hero-dot { padding: 8px 0; }
  .hero.is-scenes .sn-num, .hero.is-scenes .sn-label { display: none; }
  .hero.is-scenes .hero-dot::after { width: 22px; }
  .hero.is-scenes .hero-dot.is-current::after { width: 36px; }
  .hero.is-scenes .hero-scroll { left: auto; right: var(--gutter); transform: none; bottom: 18px; }
  .hero.is-scenes .hero-scroll-line { height: 28px; }

  .section-head, .intro-grid, .praxis-grid, .team-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; }
  .ui-card { position: static; }
  .case, .case-reverse { grid-template-columns: 1fr; }
  .case-reverse .case-media { order: 0; }
  .case-media { min-height: 0; padding: 32px 20px; }
  .case-media-dark { padding: 0; }
  .case-media-dark img { max-height: 380px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .solution-map { padding: 14px 12px 12px; }
  .node-tile { width: 52px; height: 52px; border-radius: 16px; }
  .node-glyph { width: 32px; height: 32px; }
  .node-label { font-size: .6875rem; }
  .map-core { width: 76px; }
  .map-node { left: calc(50% + (var(--x) - 50%) * .86); top: calc(50% + (var(--y) - 50%) * .9); }
  .map-status { display: none; }
  .map-tabs { grid-template-columns: repeat(2, 1fr); }
  .flow-step { grid-template-columns: 40px 1fr; gap: 16px; }
  .flow-num { width: 34px; height: 34px; }
  .case-stats dt { font-size: 1.25rem; }
  .faq-item p { padding-right: 0; }
  .contact-card { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
}

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: clamp(48px, 7vw, 96px) 0 var(--section-y); }
.legal .container { max-width: calc(760px + 2 * var(--gutter)); }
.legal-back { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--ink-2); text-decoration: none; margin-bottom: 40px; }
.legal-back:hover { color: var(--ink); }
.legal-back .icon { width: 18px; height: 18px; transform: rotate(180deg); }
.legal h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); margin-bottom: 16px; }
.legal-sub { color: var(--muted); margin-bottom: 48px; }
.legal h2 { font-size: 1.375rem; letter-spacing: -0.02em; margin: 48px 0 14px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal p, .legal address { color: var(--ink-2); margin-bottom: 14px; font-style: normal; }
.legal a { color: var(--accent); text-underline-offset: 3px; }
.legal dl { display: grid; grid-template-columns: 220px 1fr; gap: 8px 24px; color: var(--ink-2); }
.legal dt { color: var(--ink); font-weight: 500; }
.legal .todo { background: var(--review-soft); color: var(--review); padding: 1px 6px; border-radius: 4px; font-weight: 500; }
@media (max-width: 640px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 12px; } }

/* ---------- Ruhiger, wie bei Apple: keine Deko-Striche vor Überzeilen ---------- */
.eyebrow { gap: 0; font-weight: 600; }
.eyebrow::before { content: none; }

/* Dezenter Zugang zum Cockpit in der Fußzeile */
.footer-login { opacity: .55; }
.footer-login:hover, .footer-login:focus-visible { opacity: 1; }
