/* ═══════════════════════════════════════════════════════════════
   muzammil.ch — Design System
   Fraunces (display) + DM Sans (UI) + system mono (labels)

   ARCHITEKTUR-REGELN (nicht verhandelbar):
   R1  --p beschreibt nur AUSGÄNGE. Bei --p:0 muss jede Regel den
       normalen, voll sichtbaren Zustand ergeben. Nie opacity:var(--p).
       Folge: ohne JS, bei reduced-motion und im Druck ist alles lesbar.
   R2  Genau EIN Pin auf der Seite (cleanio-Telefon).
   R3  Scroll-driven Animations nur für .progress und .tl-fill.
       Alle Eintritte macht der IntersectionObserver (.rv).
   R4  --p und SDA animieren nur translate/rotate/scale/opacity.
       `transform` bleibt für JS-Inline-Styles reserviert
       (data-mag, Tilt, Portrait-Parallaxe).
   R5  0 Geometrie-Reads pro Scroll-Frame (geo-Cache in app.js).
   ═══════════════════════════════════════════════════════════════ */

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--anchor-off);
}
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: var(--gold); color: #fff; }

/* ── TOKENS · LIGHT ────────────────────────────────────────── */
:root {
  --bg:        #faf9f7;
  --bg-2:      #f3f1ed;
  --bg-3:      #eae7e1;
  --surface:   #ffffff;
  --ink:       #17140f;
  --ink-2:     #4c4640;
  --ink-3:     #6b645b;          /* 4.5:1 auf --bg und --bg-2 */
  --ink-deco:  #8a8279;          /* alter Wert — nur für Nicht-Text-Deko */
  --line:      rgba(23,20,15,.11);
  --line-2:    rgba(23,20,15,.055);
  --line-ui:   rgba(23,20,15,.42);   /* interaktive Ränder, ≥3:1 (1.4.11) */

  --gold:      #9a7a3a;
  --gold-2:    #c9a55a;
  --gold-txt:  #7d6229;          /* Gold für Kleintext, 4.5:1 */
  --gold-soft: rgba(154,122,58,.10);
  --teal:      #2d5a4f;
  --teal-2:    #4e8a79;
  --teal-soft: rgba(45,90,79,.09);
  --focus:     var(--gold);

  --sh-1: 0 1px 2px rgba(23,20,15,.04), 0 4px 16px rgba(23,20,15,.05);
  --sh-2: 0 2px 8px rgba(23,20,15,.05), 0 18px 44px rgba(23,20,15,.09);
  --sh-3: 0 30px 80px rgba(23,20,15,.15);

  /* Band-Sektionen (Hero, cleanio, Kontakt, Footer) + Karten darin */
  --band-bg:       #f1efea;
  --panel:         rgba(255,255,255,.72);
  --grid-line:     rgba(23,20,15,.045);
  --portrait-veil: linear-gradient(to top, rgba(28,25,20,.45) 2%, transparent 44%),
                   linear-gradient(115deg, rgba(154,122,58,.12), transparent 46%);
  --grain-op:      .16;
  --net-line:      154,122,58;
  --net-node:      122,96,44;

  --nav-h:      68px;
  --anchor-off: calc(var(--nav-h) + 22px);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --pad:  clamp(20px, 5vw, 64px);
  --maxw: 1180px;

  /* Apples tatsächliche Kurven */
  --ease:      cubic-bezier(.16,1,.3,1);
  --ease-soft: cubic-bezier(.4,0,.2,1);
  --ease-a:    cubic-bezier(.4,0,.6,1);
  --ease-decel:cubic-bezier(0,0,.2,1);
  --ease-set:  cubic-bezier(.22,1,.28,1);

  --rv-y:        18px;
  --rv-dur-move: .42s;
  --rv-dur-op:   .58s;

  --font-d: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-b: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-m: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

/* ── TOKENS · DARK ─────────────────────────────────────────── */
/* Der Umschalter regiert die GANZE Seite — keine Sektion bleibt dunkel,
   während der Rest hell ist. */
[data-theme="dark"] {
  --bg:        #0a0b0d;
  --bg-2:      #101216;
  --bg-3:      #171a20;
  --surface:   #14171c;
  --ink:       #f4f2ee;
  --ink-2:     #a9a49c;
  --ink-3:     #8b857b;
  --ink-deco:  #6f6a62;
  --line:      rgba(244,242,238,.13);
  --line-2:    rgba(244,242,238,.07);
  --line-ui:   rgba(244,242,238,.45);

  --gold:      #d9b168;
  --gold-2:    #f0d095;
  --gold-txt:  #e0bd7c;
  --gold-soft: rgba(217,177,104,.12);
  --teal:      #4fae94;
  --teal-2:    #7fd0ba;
  --teal-soft: rgba(79,174,148,.12);
  --focus:     var(--gold-2);

  --sh-1: 0 1px 2px rgba(0,0,0,.3), 0 4px 16px rgba(0,0,0,.3);
  --sh-2: 0 2px 8px rgba(0,0,0,.35), 0 18px 44px rgba(0,0,0,.45);
  --sh-3: 0 30px 80px rgba(0,0,0,.6);

  --band-bg:       #0a0b0d;
  --panel:         rgba(255,255,255,.030);
  --grid-line:     rgba(255,255,255,.030);
  --portrait-veil: linear-gradient(to top, rgba(10,11,13,.72) 2%, transparent 42%),
                   linear-gradient(115deg, rgba(217,177,104,.14), transparent 46%);
  --grain-op:      .5;
  --net-line:      201,165,90;
  --net-node:      240,208,149;
}

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

/* ── BASE ──────────────────────────────────────────────────── */
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;              /* clip statt hidden: macht body nicht zum Scroller */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background .5s var(--ease-soft), color .5s var(--ease-soft);
}
body.is-locked { overflow: hidden; }
.band-dark { background: var(--band-bg); color: var(--ink); position: relative; }
.section-pad.alt { background: var(--bg-2); }
#navSentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* ── LANGUAGE SWITCH ───────────────────────────────────────── */
body.lang-en [data-de] { display: none !important; }
body.lang-de [data-en] { display: none !important; }

/* ── UTILITIES ─────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.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;
}
.grad-def { position: absolute; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Icon-Grundstil: Linien-Icons aus dem Sprite, Farbe über currentColor */
.ic {
  width: 1.05em; height: 1.05em;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; display: inline-block; vertical-align: -.15em;
}
.chip .ic, .stack-item .ic, .cred .ic { color: var(--gold-txt); width: 1em; height: 1em; }
.toast .ic { width: 15px; height: 15px; color: var(--gold-2); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.btn:focus-visible, .tl-trigger:focus-visible { outline-offset: 4px; }

.skip { position: absolute; left: -9999px; z-index: 600; }
.skip:focus {
  left: var(--pad); top: 12px;
  padding: 12px 20px; border-radius: 999px;
  background: var(--surface); color: var(--ink);
  border: 2px solid var(--gold); font-weight: 600;
}

/* ── TYPE ──────────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-m);
  font-size: .69rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-txt);
  margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: currentColor; opacity: .5; }
.eyebrow.center { justify-content: center; }

.sec-title {
  font-family: var(--font-d); font-weight: 600;
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.05; letter-spacing: -.03em; max-width: 18ch;
}
.sec-title.sm { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.sec-title em { font-style: italic; font-weight: 300; color: var(--gold); }

.sec-lead {
  margin-top: 20px;
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.65; color: var(--ink-2); max-width: 58ch;
}
.group-lbl {
  font-family: var(--font-m); font-size: .66rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
  padding-bottom: 14px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line-2);
}
.group-lbl.mt { margin-top: 38px; }

section { position: relative; }
.section-pad { padding: clamp(80px, 11vw, 150px) 0; }

.inline-cta { margin-top: clamp(30px,4vw,48px); font-size: .95rem; color: var(--ink-3); }
.inline-cta a {
  color: var(--gold-txt); font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 1px;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .88rem; font-weight: 600; letter-spacing: -.005em;
  white-space: nowrap; cursor: pointer;
  transition: transform .45s var(--ease), scale .45s var(--ease),
              background .3s, color .3s, border-color .3s, box-shadow .45s var(--ease);
}
.btn svg { flex-shrink: 0; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #fff; box-shadow: 0 4px 20px -6px var(--gold);
}
.btn-gold:hover { scale: 1.02; box-shadow: 0 12px 34px -8px var(--gold); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-ui); }
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-soft); }
.btn-sm { padding: 10px 18px; font-size: .8rem; }
.btn .arr { transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn:hover .arr-d { transform: translateY(3px); }

/* ── SCROLL PROGRESS ───────────────────────────────────────── */
.progress {
  /* top statt padding-top: mit border-box würde der 2px-Balken sonst auf
     die volle Notch-Höhe anwachsen und sie mit dem Verlauf füllen. */
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 200;
  height: 2px;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2), var(--teal));
  pointer-events: none;
}
@supports (animation-timeline: scroll()) and (animation-range: entry) {
  @media (prefers-reduced-motion: no-preference) {
    .progress { animation: pgrow auto linear both; animation-timeline: scroll(root block); }
  }
}
@keyframes pgrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── NAV ───────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 150;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-soft), border-color .4s;
}
.nav.solid {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line-2);
}
@media (min-width: 901px) { .nav.solid { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); } }
@media (max-width: 900px) { .nav.solid { background: color-mix(in srgb, var(--bg) 97%, transparent); } }

.nav-logo {
  font-family: var(--font-d);
  font-size: 1.18rem; font-weight: 600; letter-spacing: -.02em;
  display: inline-flex; align-items: baseline; gap: .18em;
}
.nav-logo em { font-style: italic; color: var(--gold); }
.nav-logo .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--teal); margin-left: 3px;
  animation: pulse 2.6s var(--ease-soft) infinite;
}

.nav-mid { display: none; position: relative; gap: 4px; padding: 4px; border-radius: 999px; }
@media (min-width: 1040px) { .nav-mid { display: flex; } }
.nav-mid a {
  position: relative; z-index: 1;
  padding: 7px 14px; border-radius: 999px;
  font-size: .82rem; font-weight: 500; color: var(--ink-2);
  transition: color .3s;
}
.nav-mid a:hover, .nav-mid a.active { color: var(--ink); }
.nav-pill {
  position: absolute; top: 4px; left: 0; z-index: 0;
  height: calc(100% - 8px); border-radius: 999px;
  background: var(--gold-soft); border: 1px solid var(--line-2);
  opacity: 0; transition: transform .55s var(--ease), opacity .3s;
}

.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-pdf { display: none; }
@media (min-width: 1180px) { .nav-pdf { display: inline-flex; } }
.nav-cta  { display: none; }
@media (min-width: 700px)  { .nav-cta { display: inline-flex; } }

.icon-btn {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-ui); background: transparent; cursor: pointer;
  transition: border-color .3s, color .3s, transform .4s var(--ease);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.icon-btn svg { width: 16px; height: 16px; }
.theme-btn .moon { display: none; }
[data-theme="dark"] .theme-btn .sun  { display: none; }
[data-theme="dark"] .theme-btn .moon { display: block; }

.lang-btn {
  height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line-ui); background: transparent;
  font-family: var(--font-m); font-size: .68rem; font-weight: 600; letter-spacing: .1em;
  cursor: pointer;
  transition: border-color .3s, color .3s, transform .4s var(--ease);
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }

.burger { display: grid; place-items: center; width: 38px; height: 38px; background: none; border: none; cursor: pointer; }
@media (min-width: 1040px) { .burger { display: none; } }
.burger i {
  display: block; width: 20px; height: 1.6px;
  background: currentColor; border-radius: 2px;
  transition: transform .4s var(--ease), opacity .3s;
}
.burger i + i { margin-top: 5px; }
.burger.open i:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.burger.open i:nth-child(2) { opacity: 0; }
.burger.open i:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

/* ── MOBILE MENU ───────────────────────────────────────────── */
.mmenu {
  position: fixed; inset: 0; z-index: 140;
  background: var(--bg);
  padding: 100px var(--pad) max(40px, calc(env(safe-area-inset-bottom) + 24px));
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity .45s var(--ease), visibility .45s;
}
.mmenu.open { opacity: 1; visibility: visible; }
.mmenu a.mlink {
  font-family: var(--font-d);
  font-size: clamp(1.7rem, 8vw, 2.4rem);
  font-weight: 400; letter-spacing: -.03em;
  padding: 13px 0; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: baseline; gap: 14px;
  opacity: 0; translate: 0 18px;
  transition: opacity .5s var(--ease), translate .5s var(--ease), color .3s;
}
.mmenu.open a.mlink { opacity: 1; translate: 0 0; }
.mmenu a.mlink:hover { color: var(--gold); }
.mmenu a.mlink span.n { font-family: var(--font-m); font-size: .62rem; color: var(--gold-txt); letter-spacing: .12em; }
.mmenu-foot { margin-top: auto; padding-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }

/* ═══════════════════════════════════════════════════════════
   HERO — BEAT 1 (Eintritt) + BEAT 2 (Ausstieg über --p)
   ═══════════════════════════════════════════════════════════ */
.hero {
  --p: 0;
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 118px 0 60px;
  overflow: clip;
  isolation: isolate;
}
.hero-canvas { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.hero-aura {
  position: absolute; inset: -10%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 44% at 18% 24%, rgba(217,177,104,.20), transparent 62%),
    radial-gradient(34% 40% at 82% 30%, rgba(79,174,148,.17), transparent 60%),
    radial-gradient(46% 50% at 60% 88%, rgba(154,122,58,.14), transparent 65%);
  filter: blur(30px);          /* konstant — ein animierter Radius rastert jeden Frame neu */
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 78%);
}
.grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: var(--grain-op); 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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}
@media (max-width: 900px) { .grain { mix-blend-mode: normal; opacity: calc(var(--grain-op) * .55); } }
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 180px;
  z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--band-bg));
}

.hero-grid {
  position: relative; z-index: 3;
  display: grid; gap: clamp(40px, 6vw, 72px);
  grid-template-columns: 1fr; align-items: center; width: 100%;
}
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.12fr .88fr; } }

/* — BEAT 2: Tiefenstaffelung 1 / 1,6 / 2,6 — */
.hero-canvas { opacity: calc(1 - var(--p) * 1.3); }
.hero-aura   { scale: calc(1 + .05 * var(--p)); translate: 0 calc(-26px * var(--p)); opacity: calc(1 - var(--p) * .8); }
.scroll-cue  { opacity: calc(1 - var(--p) * 5); }
@media (min-width: 900px) {
  .hero-copy      { opacity: calc(1 - var(--p) * 1.15); translate: 0 calc(-38px * var(--p)); }
  .portrait-shift { scale: calc(1 + .05 * var(--p)); translate: 0 calc(-14px * var(--p)); }
  .cred.c1 { translate: 0 calc(-26px * var(--p)); }
  .cred.c2 { translate: 0 calc(-42px * var(--p)); }
  .cred.c3 { translate: 0 calc(-68px * var(--p)); opacity: calc(1 - var(--p) * 2.6); }
}
@media (max-width: 899px) { .hero-copy { opacity: calc(1 - var(--p) * .55); } }
/* kein fokussierbares Element im unsichtbaren Hero */
.hero.gone .hero-copy { visibility: hidden; }
/* Endlosanimationen pausieren, sobald der Hero aus dem Bild ist */
.hero.gone .portrait-ring,
.hero.gone .scroll-cue .rail::after,
.hero.gone .dot-live::after { animation-play-state: paused; }

.avail {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid var(--line); background: var(--panel);
  backdrop-filter: blur(10px); border-radius: 999px;
  font-size: .76rem; font-weight: 500; color: var(--ink-2);
  margin-bottom: 26px;
}
.dot-live { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); flex-shrink: 0; }
.dot-live::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: var(--gold-2); animation: pulse 2.6s var(--ease-soft) infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .8; }
  70%  { transform: scale(3.2); opacity: 0; }
  100% { transform: scale(3.2); opacity: 0; }
}

.hero-name {
  font-family: var(--font-d); font-weight: 600;
  font-size: clamp(3.1rem, 11.5vw, 7.4rem);
  line-height: .92; letter-spacing: -.045em;
}
.hero-name .line { display: block; overflow: hidden; }
.hero-name .line > span { display: inline-block; transition: transform .82s var(--ease-set); }
.js .hero-name .line > span { transform: translateY(105%); }
.hero.ready .hero-name .line > span { transform: none; }
.hero-name .line:nth-child(2) > span { transition-delay: .07s; }
.hero-name em {
  font-style: italic; font-weight: 300;
  background: linear-gradient(100deg, var(--gold-2) 10%, var(--gold) 55%, var(--teal-2) 105%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-role {
  margin-top: 20px;
  font-family: var(--font-d); font-weight: 300; font-style: italic;
  font-size: clamp(1.12rem, 2.2vw, 1.5rem); line-height: 1.35;
  letter-spacing: -.015em; color: var(--ink); max-width: 22ch;
  padding-left: 16px; border-left: 2px solid var(--gold);
}

.hero-desc {
  margin-top: 24px;
  font-size: clamp(1rem, 1.8vw, 1.1rem); line-height: 1.68;
  color: var(--ink-2); max-width: 50ch;
}
.hero-desc strong { color: var(--ink); font-weight: 600; }

.hero-proof { margin-top: 24px; display: grid; gap: 7px; }
.hero-proof li { display: flex; gap: 10px; align-items: baseline; font-size: .86rem; color: var(--ink-2); }
.hero-proof b {
  font-family: var(--font-m); font-size: .74rem; letter-spacing: .06em;
  color: var(--gold-txt); min-width: 64px; flex-shrink: 0;
}

.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 11px; }

/* Eintritts-Staffel — Bewegung endet früher als die Deckkraft */
.hero .fade-up {
  transition: opacity var(--rv-dur-op) var(--ease-decel),
              translate var(--rv-dur-move) var(--ease-set);
}
.js .hero .fade-up { opacity: 0; translate: 0 18px; }
.hero.ready .fade-up { opacity: 1; translate: 0 0; }
.hero.ready .fade-up.f1 { transition-delay: 0s;   }
.hero.ready .fade-up.f2 { transition-delay: .09s; }
.hero.ready .fade-up.f3 { transition-delay: .18s; }
.hero.ready .fade-up.f4 { transition-delay: .27s; }
.hero.ready .fade-up.f5 { transition-delay: .30s; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 4/5; }
@media (max-width: 899px) { .hero-visual { display: none; } }
.portrait-shift { position: absolute; inset: 0; }
.portrait-frame {
  position: absolute; inset: 0;
  border-radius: 200px 200px var(--r-xl) var(--r-xl);
  overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--sh-3);
}
.portrait-frame img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  filter: contrast(1.04) saturate(.96);
  transition: transform 1.4s var(--ease);
}
.hero-visual:hover .portrait-frame img { transform: scale(1.045); }
.portrait-frame::after { content: ''; position: absolute; inset: 0; background: var(--portrait-veil); }
.portrait-ring {
  position: absolute; inset: -13px; border-radius: 210px 210px 44px 44px;
  border: 1px dashed rgba(201,165,90,.32);
  animation: spinSlow 40s linear infinite; pointer-events: none;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }

.cred {
  position: absolute; z-index: 4;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--sh-2);
  font-size: .74rem; font-weight: 600; white-space: nowrap; color: var(--ink);
}
.cred b { color: var(--gold-txt); font-weight: 700; }
.cred.c1 { top: 12%;   left: -16%;  }
.cred.c2 { top: 46%;   right: -14%; }
.cred.c3 { bottom: 14%; left: -12%; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 26px; z-index: 4;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-family: var(--font-m); font-size: .6rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--ink-3);
}
.scroll-cue .rail {
  width: 1px; height: 42px; border-radius: 2px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  position: relative; overflow: hidden;
}
.scroll-cue .rail::after {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--gold-2); translate: 0 -100%;
  animation: rail 2.1s var(--ease-soft) infinite;
}
@keyframes rail { to { translate: 0 100%; } }

/* ═══════════════════════════════════════════════════════════
   BEAT 3 — THESE
   ═══════════════════════════════════════════════════════════ */
.thesis { text-align: center; padding: clamp(30px,6vh,70px) 0; }
.thesis blockquote {
  font-family: var(--font-d); font-weight: 300; font-style: italic;
  font-size: clamp(1.55rem, 4.4vw, 3.1rem);
  line-height: 1.18; letter-spacing: -.025em;
  max-width: 20ch; margin: 0 auto; text-wrap: balance;
}
@media (max-width: 600px) { .thesis blockquote { max-width: 26ch; font-size: 1.55rem; line-height: 1.24; } }
.thesis blockquote em { color: var(--gold); font-style: italic; }
.thesis-rule {
  display: block; height: 1px; width: min(360px, 58vw); margin: 28px auto 22px;
  background: linear-gradient(90deg, transparent, var(--gold-2), var(--gold), transparent);
  transform: scaleX(1); transform-origin: 50% 50%;
  transition: transform .8s var(--ease-set) .12s;
}
.js .thesis:not(.in) .thesis-rule { transform: scaleX(0); }
.thesis figcaption { font-size: .82rem; color: var(--ink-3); max-width: 46ch; margin: 0 auto; }

/* ── BEAT 4 — DIE DREI ZAHLEN ─────────────────────────────── */
.nums { margin-top: clamp(46px,7vw,80px); border-top: 1px solid var(--line-2); }
.num-row {
  display: grid; gap: 6px 30px; grid-template-columns: 1fr; align-items: baseline;
  padding: clamp(22px,3vw,32px) 0; border-bottom: 1px solid var(--line-2);
  contain: layout;
}
@media (min-width: 760px) { .num-row { grid-template-columns: minmax(180px,.32fr) 1fr; } }
.num-row b {
  font-family: var(--font-d); font-weight: 600; letter-spacing: -.04em; line-height: 1;
  font-size: clamp(2.4rem, 6vw, 4rem); font-variant-numeric: tabular-nums;
}
.num-row .suf { color: var(--gold); font-size: .42em; letter-spacing: 0; }
.num-row > span { font-size: .95rem; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }

/* ── REVEAL ───────────────────────────────────────────────── */
.rv { transition: opacity var(--rv-dur-op) var(--ease-decel), translate var(--rv-dur-move) var(--ease-set); }
.js .rv    { opacity: 0; translate: 0 var(--rv-y); }
.js .rv.in { opacity: 1; translate: 0 0; }
.rv.d1 { transition-delay: .08s; }
.rv.d2 { transition-delay: .16s; }
.rv.d3, .rv.d4, .rv.d5 { transition-delay: .24s; }

/* ═══════════════════════════════════════════════════════════
   BEAT 5 — WERDEGANG
   ═══════════════════════════════════════════════════════════ */
.tl-layout { display: grid; gap: clamp(30px,4vw,56px); grid-template-columns: 1fr; margin-top: clamp(30px,4vw,48px); }
@media (min-width: 900px) {
  .tl-layout { grid-template-columns: .38fr 1fr; }
  .tl-head { position: sticky; top: var(--anchor-off); align-self: start; }
}
@media (max-height: 700px) { .tl-head { position: static; } }
.tl-head .filters { margin-top: 26px; }

.filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter {
  padding: 8px 16px; border: 1px solid var(--line-ui); border-radius: 999px;
  background: transparent; font-size: .79rem; font-weight: 600; color: var(--ink-3);
  cursor: pointer; transition: all .35s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink-3); }
.filter.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.timeline { position: relative; padding-left: 30px; }
@media (min-width: 760px) { .timeline { padding-left: 130px; } }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1.5px; background: var(--line); }
@media (min-width: 760px) { .timeline::before { left: 105px; } }

/* Schiene: Basis = VOLL sichtbar (R1/R3). Nur mit SDA wird sie gescrubbt. */
#timeline { view-timeline-name: --tl; view-timeline-axis: block; }
.tl-fill {
  position: absolute; left: 5px; top: 8px; width: 1.5px; height: calc(100% - 16px);
  background: linear-gradient(to bottom, var(--gold-2), var(--gold), var(--teal));
  transform: scaleY(1); transform-origin: 50% 0;
}
@media (min-width: 760px) { .tl-fill { left: 105px; } }
@supports (animation-timeline: view()) and (animation-range: entry) {
  @media (prefers-reduced-motion: no-preference) {
    .tl-fill { animation: tl-grow auto linear both; animation-timeline: --tl; animation-range: entry 45% exit 45%; }
  }
}
@keyframes tl-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.tl-item { position: relative; padding-bottom: 14px; }
.tl-item.hide { display: none; }
.tl-item + .tl-item { margin-top: 14px; }

.tl-node {
  position: absolute; left: -30px; top: 22px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--line);
  transition: all .5s var(--ease); z-index: 2;
}
.tl-item.active .tl-node, .tl-item:hover .tl-node {
  border-color: var(--gold); box-shadow: 0 0 0 5px var(--gold-soft); transform: scale(1.15);
}
.tl-item.current .tl-node { background: var(--teal); border-color: var(--teal); }

.tl-date {
  display: none; position: absolute; left: -130px; top: 18px;
  width: 92px; text-align: right;
  font-family: var(--font-m); font-size: .68rem; letter-spacing: .06em;
  color: var(--ink-3); line-height: 1.5;
}
@media (min-width: 760px) { .tl-date { display: block; } }
.tl-date b { display: block; color: var(--ink-2); font-weight: 600; }

.tl-h { margin: 0; font: inherit; }
.tl-trigger {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; text-align: left;
  padding: 20px 22px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); cursor: pointer;
  transition: border-color .4s, box-shadow .5s var(--ease), transform .5s var(--ease);
}
.tl-trigger:hover { border-color: var(--gold); box-shadow: var(--sh-1); transform: translateX(4px); }
.tl-item.active .tl-trigger { border-color: var(--gold); box-shadow: var(--sh-2); }

.tl-logo {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  font-family: var(--font-d); font-weight: 700; font-size: .92rem;
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--ink-2);
}
.tl-item.active .tl-logo, .tl-trigger:hover .tl-logo { background: var(--gold-soft); color: var(--gold-txt); border-color: var(--gold); }
.tl-main { flex: 1; min-width: 0; }
.tl-role { display: block; font-family: var(--font-d); font-size: clamp(1.02rem,2vw,1.2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.tl-co { margin-top: 3px; font-size: .85rem; color: var(--ink-3); font-weight: 500; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tl-date-m { display: inline; font-family: var(--font-m); font-size: .68rem; color: var(--ink-3); }
@media (min-width: 760px) { .tl-date-m { display: none; } }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-family: var(--font-m); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.badge-live { background: var(--teal-soft); color: var(--teal); }
.badge-gold { background: var(--gold-soft); color: var(--gold-txt); }
.badge-mute { background: var(--bg-3); color: var(--ink-3); }

.tl-chev { flex-shrink: 0; width: 26px; height: 26px; display: grid; place-items: center; color: var(--ink-3); transition: transform .5s var(--ease), color .3s; }
.tl-item.active .tl-chev { transform: rotate(180deg); color: var(--gold); }

/* visibility nimmt zugeklappte Inhalte aus dem Accessibility-Tree —
   sonst liest ein Screenreader Inhalte vor, die aria-expanded="false" meldet */
.tl-body {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows .55s var(--ease), opacity .4s, visibility 0s .55s;
}
.tl-item.active .tl-body {
  grid-template-rows: 1fr; opacity: 1; visibility: visible;
  transition: grid-template-rows .55s var(--ease), opacity .4s, visibility 0s;
}
.tl-body > div { overflow: hidden; }
.tl-body ul { margin: 16px 0 0; padding: 16px 22px 0; border-top: 1px solid var(--line-2); }
.tl-body li { position: relative; padding-left: 20px; margin-bottom: 9px; font-size: .89rem; line-height: 1.6; color: var(--ink-2); }
.tl-body li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); opacity: .8; }
.tl-body li strong { color: var(--ink); font-weight: 600; }
.tl-why { margin: 12px 22px 0; padding-left: 14px; border-left: 2px solid var(--gold); font-size: .87rem; line-height: 1.55; color: var(--ink-2); font-style: italic; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 22px 0; }
.tag { padding: 4px 11px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line-2); font-size: .72rem; font-weight: 500; color: var(--ink-3); }

/* ═══════════════════════════════════════════════════════════
   BEAT 6/7 — CLEANIO
   ═══════════════════════════════════════════════════════════ */
.case { position: relative; overflow: clip; padding: clamp(84px,12vw,160px) 0; }
.case::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 40% at 82% 8%, rgba(79,174,148,.16), transparent 60%),
    radial-gradient(46% 42% at 12% 82%, rgba(154,122,58,.13), transparent 62%);
}
.case > * { position: relative; z-index: 1; }
.case-block { margin-top: clamp(52px,7vw,84px); }

.case-head { display: grid; gap: 30px; align-items: end; grid-template-columns: 1fr; }
@media (min-width: 900px) { .case-head { grid-template-columns: 1.35fr .65fr; } }

.case-logo { display: flex; width: fit-content; align-items: center; gap: 12px; margin-bottom: 20px; }
.case-logo .mark {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--teal-2), var(--teal));
  color: #04150f; font-family: var(--font-d); font-weight: 700; font-size: 1.3rem;
  box-shadow: 0 10px 30px -10px var(--teal);
}
.case-logo .name { display: block; font-family: var(--font-d); font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; }
.case-logo .url { display: block; font-family: var(--font-m); font-size: .64rem; letter-spacing: .12em; color: var(--teal); text-transform: uppercase; }

.case-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.metric {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel); contain: layout;
  transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.metric:hover { transform: translateY(-4px); border-color: var(--teal); background: rgba(79,174,148,.07); }
.metric b { display: block; font-family: var(--font-d); font-size: 1.85rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.metric > span { display: block; margin-top: 7px; font-size: .76rem; color: var(--ink-3); line-height: 1.4; }

.svc-wrap { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: clamp(30px,4vw,44px); }
@media (min-width: 860px) { .svc-wrap { grid-template-columns: 1fr .78fr; } }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px,1fr)); gap: 8px; }
.svc {
  position: relative; padding: 15px 13px 14px;
  border: 1px solid var(--line); border-radius: 13px; background: var(--panel);
  text-align: left; cursor: pointer; overflow: hidden; contain: layout;
  transition: transform .5s var(--ease), border-color .35s, background .35s;
}
.svc:hover, .svc.on { transform: translateY(-4px); border-color: var(--teal); background: rgba(79,174,148,.10); }
.svc .num { font-family: var(--font-m); font-size: .58rem; letter-spacing: .1em; color: var(--teal); opacity: .85; }
.svc .ico { margin: 8px 0 7px; display: block; color: var(--teal); }
.svc .ico .ic { width: 20px; height: 20px; stroke-width: 1.6; }
.svc .lbl { display: block; font-size: .74rem; font-weight: 600; line-height: 1.28; color: var(--ink-2); hyphens: auto; -webkit-hyphens: auto; }
.svc:hover .lbl, .svc.on .lbl { color: var(--ink); }
.svc.on::after { content: ''; position: absolute; right: 9px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px rgba(79,174,148,.22); }

.svc-detail {
  position: sticky; top: var(--anchor-off); align-self: start;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--panel); backdrop-filter: blur(12px);
  min-height: 0; max-height: calc(100svh - var(--nav-h) - 3rem); overflow-y: auto;
}
@media (max-width: 859px) { .svc-detail { position: static; max-height: none; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (max-height: 700px) { .svc-detail { position: static; max-height: none; } }
.svc-detail .num { font-family: var(--font-m); font-size: .62rem; letter-spacing: .16em; color: var(--teal); }
.svc-detail .ico { margin: 14px 0 12px; color: var(--teal); }
.svc-detail .ico .ic { width: 34px; height: 34px; stroke-width: 1.5; }
.svc-detail h4 { font-family: var(--font-d); font-size: 1.42rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.svc-detail p { margin-top: 11px; font-size: .9rem; line-height: 1.65; color: var(--ink-2); }
.svc-detail .swap { animation: swapIn .45s var(--ease); }
@keyframes swapIn { from { opacity: 0; translate: 0 9px; } to { opacity: 1; translate: 0 0; } }
.svc-count { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; font-family: var(--font-m); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.flow { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: clamp(30px,4vw,44px); }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(3,1fr); } }
.step {
  position: relative; padding: 26px 24px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel);
  overflow: hidden; contain: layout;
  transition: transform .5s var(--ease), border-color .4s, background .4s;
}
.step:hover { transform: translateY(-5px); border-color: var(--gold); background: rgba(201,165,90,.06); }
.step .sn {
  font-family: var(--font-d); font-size: 3.1rem; font-weight: 700; line-height: 1; letter-spacing: -.05em;
  background: linear-gradient(160deg, var(--gold-2), transparent 78%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; opacity: .85;
}
.step h4 { margin-top: 12px; font-family: var(--font-d); font-size: 1.16rem; font-weight: 600; letter-spacing: -.02em; }
.step p { margin-top: 9px; font-size: .87rem; line-height: 1.6; color: var(--ink-3); }
@media (min-width: 760px) { .step:not(:last-child)::after { content: ''; position: absolute; right: -8px; top: 50%; width: 16px; height: 1px; background: var(--line); } }

/* ── DER PIN ──────────────────────────────────────────────── */
.cl-scene { --p: 0; height: 220svh; position: relative; margin-top: clamp(40px,6vw,70px);
  --b1: clamp(0, calc((var(--p) - .30) / .08), 1);
  --b2: clamp(0, calc((var(--p) - .64) / .08), 1);
  --b3: clamp(0, calc((var(--p) - .74) / .20), 1);
  /* Bildunterschrift sequenziell statt überblendet: erst ganz raus,
     dann ganz rein — Kreuzblenden ergeben in Versalien-Monospace
     unlesbare Buchstabenüberlagerungen. */
  --c1o: clamp(0, calc((var(--p) - .315) / .010), 1);
  --c1i: clamp(0, calc((var(--p) - .330) / .010), 1);
  --c2o: clamp(0, calc((var(--p) - .655) / .010), 1);
  --c2i: clamp(0, calc((var(--p) - .670) / .010), 1);
}
.cl-pin {
  position: sticky; top: 0; height: 100svh;
  display: grid; place-items: center; overflow: clip;
  /* Platz für die fixe Nav, sonst liegt die Einleitungszeile darunter */
  padding-top: calc(var(--nav-h) + 8px); padding-bottom: 8px;
}
.cl-stage { display: grid; gap: 18px; justify-items: center; }
.cl-lead { font-size: .86rem; color: var(--ink-3); text-align: center; max-width: 34ch; }
@media (max-width: 767px) { .cl-scene { height: 180lvh; } }
/* Auf knappen Höhen zuerst die Einleitung opfern */
@media (max-height: 830px) { .cl-lead { display: none; } }

.js .cl-pin .phone { scale: calc(1 + .04 * var(--p)); }
@media (max-width: 767px) { .js .cl-pin .phone { scale: 1; } }

.cl-cap { position: relative; height: 1.6em; width: 100%; }
.cl-cap-l {
  position: absolute; inset: 0; display: flex; gap: 10px; justify-content: center;
  font-family: var(--font-m); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); opacity: 0;
}
.cl-cap-l b { color: var(--gold-txt); }
.js .cl-cap-l[data-b="0"] { opacity: calc(1 - var(--c1o)); }
.js .cl-cap-l[data-b="1"] { opacity: calc(var(--c1i) - var(--c2o)); }
.js .cl-cap-l[data-b="2"] { opacity: var(--c2i); }
html:not(.js) .cl-cap { height: auto; }
html:not(.js) .cl-cap-l { position: static; opacity: 1; }
.cl-note { font-size: .72rem; color: var(--ink-3); text-align: center; max-width: 40ch; }

.phone {
  position: relative; width: 250px; height: 512px;
  border-radius: 44px; background: #0d0f12; border: 8px solid #1c2027;
  box-shadow: 0 50px 100px -30px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.07);
  overflow: hidden;
}
.phone::before { content: ''; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 78px; height: 21px; border-radius: 999px; background: #1c2027; z-index: 5; }
.screen { position: absolute; inset: 0; background: #f7f9f8; }
.pscreen { position: absolute; inset: 0; padding: 46px 17px 17px; color: #17140f; }
/* Bei --p:0 steht Screen 1, Screens 2/3 warten unten (R1) */
.js .cl-pin .pscreen { transition: none; }
.js .cl-pin .pscreen[data-s="0"] { translate: 0 calc(-100% * var(--b1)); }
.js .cl-pin .pscreen[data-s="1"] { translate: 0 calc(100% * (1 - var(--b1)) - 100% * var(--b2)); }
.js .cl-pin .pscreen[data-s="2"] { translate: 0 calc(100% * (1 - var(--b2))); }
html:not(.js) .pscreen { position: static; margin-bottom: 18px; }

.p-top { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.p-mark { width: 24px; height: 24px; border-radius: 8px; background: linear-gradient(140deg,#4fae94,#2d5a4f); display: grid; place-items: center; color: #fff; font-family: var(--font-d); font-weight: 700; font-size: .8rem; }
.p-title { font-family: var(--font-d); font-weight: 600; font-size: .84rem; letter-spacing: -.02em; }
.p-h { font-family: var(--font-d); font-size: 1.02rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.p-sub { font-size: .62rem; color: #6b645b; line-height: 1.45; margin-bottom: 13px; }
.p-row { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 11px; background: #fff; border: 1px solid rgba(23,20,15,.08); margin-bottom: 7px; font-size: .66rem; font-weight: 600; box-shadow: 0 1px 4px rgba(23,20,15,.03); }
/* Telefon ist immer hell — Farben fest, kein Token */
.p-row .e { display: inline-flex; color: #2d5a4f; }
.p-row .e .ic { width: 14px; height: 14px; stroke-width: 2; }
.p-row.sel { border-color: #4fae94; background: rgba(79,174,148,.09); }
.p-row .chk { margin-left: auto; display: inline-flex; color: #2d5a4f; }
.p-row .chk .ic { width: 12px; height: 12px; stroke-width: 2.4; }
.p-btn { margin-top: 11px; padding: 10px; border-radius: 11px; background: #17140f; color: #fff; text-align: center; font-size: .68rem; font-weight: 600; }
.p-quote { padding: 13px; border-radius: 13px; background: #fff; border: 1px solid rgba(23,20,15,.08); box-shadow: 0 3px 14px rgba(23,20,15,.05); }
.p-quote .pr { font-family: var(--font-d); font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; }
.p-quote .pl { font-size: .58rem; color: #6b645b; }
.p-partner { display: flex; align-items: center; gap: 8px; margin: 11px 0 0; }
.p-av { width: 27px; height: 27px; border-radius: 50%; background: linear-gradient(140deg,#4fae94,#2d5a4f); display: grid; place-items: center; color: #fff; font-family: var(--font-d); font-size: .74rem; font-weight: 700; }
.p-partner b { font-size: .66rem; display: block; }
.p-meta { font-size: .56rem; color: #6b645b; }
.p-map { height: 128px; border-radius: 13px; margin-bottom: 11px; background: linear-gradient(rgba(45,90,79,.07) 1px, transparent 1px) 0 0/22px 22px, linear-gradient(90deg, rgba(45,90,79,.07) 1px, transparent 1px) 0 0/22px 22px, #eef4f2; border: 1px solid rgba(23,20,15,.07); position: relative; overflow: hidden; }
/* Route exakt von Nadel A (38.5|96.6) zu Nadel B (161.5|39.1):
   Länge 135.8px = 68 % von 200px, Winkel atan2(-57.5, 123) = -25° */
.p-map .route { position: absolute; left: 19.25%; top: 75.5%; width: 68%; height: 1.5px; background: repeating-linear-gradient(90deg,#2d5a4f 0 5px, transparent 5px 10px); transform: rotate(-25deg); transform-origin: left center; }
.p-map .pin { position: absolute; width: 9px; height: 9px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.25); }
.p-map .pin.a { background: #2d5a4f; left: 17%; top: 72%; }
.p-map .pin.b { background: #c9a55a; right: 17%; top: 27%; }
/* Exakt gerechnet: .p-map ist 200x128, Nadelmitten (38.5|96.6) → (161.5|39.1) */
.p-map .car { position: absolute; left: 17%; top: 70%; color: #2d5a4f; translate: calc(var(--b3) * 123px) calc(var(--b3) * -57.5px); }
.p-map .car .ic { width: 15px; height: 15px; stroke-width: 2; }
html:not(.js) .p-map .car { translate: 31px -14px; }
.p-eta { display: flex; align-items: center; justify-content: space-between; padding: 9px 11px; border-radius: 11px; background: rgba(79,174,148,.11); border: 1px solid rgba(79,174,148,.28); font-size: .63rem; font-weight: 600; color: #2d5a4f; }

.phone-tabs { display: flex; gap: 7px; justify-content: center; }
.ptab { position: relative; width: 34px; height: 24px; background: none; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; }
.ptab::before { content: ''; width: 26px; height: 3px; border-radius: 2px; background: var(--line-ui); transition: background .4s, width .4s var(--ease); }
.ptab.on::before { background: var(--gold); width: 38px; }

/* Pin auf knappen Höhen ganz auflösen: fängt 200 %-Zoom, Querformat, halbe
   Fenster — Stage (~720px) + Nav passen nicht in 100svh. Steht NACH den
   [data-s]-Translate-Regeln, damit es sie bei gleicher Spezifität schlägt. */
@media (max-height: 760px) {
  .cl-scene { height: auto; }
  .cl-pin { position: static; height: auto; padding: 40px 0; overflow: visible; }
  .cl-pin .phone { height: auto; overflow: visible; }
  .cl-pin .screen { position: static; }
  .cl-pin .pscreen, .js .cl-pin .pscreen[data-s] {
    position: static; translate: none; margin-bottom: 18px;
  }
  .cl-cap { height: auto; }
  .cl-cap-l, .js .cl-cap-l[data-b] { position: static; opacity: 1; }
}

.case-showcase { margin-top: clamp(52px,7vw,90px); }
.role-list { display: grid; gap: 10px; margin-top: 24px; max-width: 640px; }
.role-row {
  display: flex; align-items: center; gap: 13px;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--panel);
  transition: transform .45s var(--ease), border-color .35s, background .35s;
}
.role-row:hover { transform: translateX(5px); border-color: var(--gold); background: rgba(201,165,90,.05); }
.role-row .rk { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--gold-soft); color: var(--gold-txt); }
.role-row .rk .ic { width: 15px; height: 15px; }
.role-row b { font-size: .87rem; font-weight: 600; display: block; }
.role-row span span { font-size: .77rem; color: var(--ink-3); }
.case-cta { margin-top: 26px; }

/* ═══════════════════════════════════════════════════════════
   ARBEITSWEISE
   ═══════════════════════════════════════════════════════════ */
.about-grid { display: grid; gap: clamp(36px,5vw,70px); grid-template-columns: 1fr; margin-top: clamp(40px,5vw,64px); }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.15fr .85fr; } }
.about-text p { font-size: clamp(1rem,1.5vw,1.08rem); line-height: 1.75; color: var(--ink-2); }
.about-text strong { color: var(--ink); font-weight: 600; }

.principles { display: grid; gap: 12px; }
.principle {
  position: relative; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  overflow: hidden; contain: layout;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.principle:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--gold); }
.principle::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--gold-2), var(--teal));
  transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease);
}
.principle:hover::before { transform: scaleY(1); }
.principle .n { font-family: var(--font-m); font-size: .64rem; letter-spacing: .16em; color: var(--gold-txt); display: block; margin-bottom: 9px; }
.principle h3 { font-family: var(--font-d); font-size: 1.12rem; font-weight: 600; letter-spacing: -.02em; margin-bottom: 7px; }
.principle p { font-size: .89rem; line-height: 1.6; color: var(--ink-3); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: .81rem; font-weight: 500; color: var(--ink-2); cursor: default;
  transition: transform .45s var(--ease), border-color .3s, color .3s, background .3s;
}
.chip:hover { transform: translateY(-3px) rotate(-1.2deg); border-color: var(--gold); color: var(--ink); background: var(--gold-soft); }

.stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(30px,4vw,44px); padding-top: clamp(26px,3vw,36px); border-top: 1px solid var(--line-2); }
.stack-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  font-size: .81rem; font-weight: 500; color: var(--ink-2);
  transition: transform .45s var(--ease), border-color .3s, color .3s;
}
.stack-item:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   STÄRKEN
   ═══════════════════════════════════════════════════════════ */
.skills-grid { display: grid; gap: clamp(38px,5vw,66px); grid-template-columns: 1fr; margin-top: clamp(40px,5vw,60px); }
@media (min-width: 900px) { .skills-grid { grid-template-columns: 1fr 1fr; } }

.ev { display: grid; gap: 22px; }
.ev li { display: grid; gap: 5px; padding-bottom: 20px; border-bottom: 1px solid var(--line-2); }
.ev li:last-child { border-bottom: 0; padding-bottom: 0; }
.ev b { font-family: var(--font-m); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-txt); }
.ev span { font-size: .92rem; line-height: 1.62; color: var(--ink-2); }

.langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: 12px; }
.lang { padding: 20px 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-align: center; contain: layout; transition: transform .5s var(--ease), border-color .35s, box-shadow .5s var(--ease); }
.lang:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: var(--sh-1); }
.ring { position: relative; width: 62px; height: 62px; margin: 0 auto 12px; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 3.5; stroke-linecap: round; }
.ring .bgc { stroke: var(--bg-3); }
/* Endwert steht inline im HTML (ohne JS korrekt); app.js setzt beim Start
   auf 176 zurück und beim Reveal wieder auf den Endwert. */
.ring .fgc { stroke: url(#langGrad); stroke-dasharray: 176; transition: stroke-dashoffset 1.6s var(--ease); }
.ring .lcode {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-m); font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; color: var(--ink-2);
}
.lang-name { font-size: .87rem; font-weight: 600; }
.lang-lvl { margin-top: 3px; font-family: var(--font-m); font-size: .6rem; letter-spacing: .07em; color: var(--ink-3); }

/* ═══════════════════════════════════════════════════════════
   KONTAKT
   ═══════════════════════════════════════════════════════════ */
.contact { --p: 0; position: relative; overflow: clip; padding: clamp(84px,12vw,150px) 0 clamp(60px,8vw,90px); text-align: center; }
.contact::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40% 40% at 82% 92%, rgba(79,174,148,.13), transparent 62%);
}
.contact::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 50% at 50% 12%, var(--gold-2), transparent 70%);
  opacity: calc(.14 * var(--p));
}
.contact > * { position: relative; z-index: 1; }
.contact-title { font-family: var(--font-d); font-size: clamp(2.6rem,9vw,6rem); font-weight: 600; line-height: .98; letter-spacing: -.045em; }
.contact-title em {
  font-style: italic; font-weight: 300;
  background: linear-gradient(100deg, var(--gold-2), var(--teal-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.contact-sub { margin: 22px auto 0; max-width: 56ch; font-size: clamp(1rem,1.7vw,1.08rem); line-height: 1.7; color: var(--ink-2); }

.crits-lbl { margin-top: clamp(46px,6vw,70px); font-family: var(--font-m); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.crits { display: grid; gap: 12px; max-width: 62ch; margin: 20px auto 0; text-align: left; }
.crit {
  padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel);
  font-size: .93rem; line-height: 1.6; color: var(--ink-2);
  opacity: 0; translate: 0 var(--a);
  transition: opacity .58s var(--ease-decel), translate .42s var(--ease-set);
}
.crit.in { opacity: 1; translate: 0 0; }
.crit:nth-child(1) { --a: 30px;  transition-delay: 0s;   }
.crit:nth-child(2) { --a: 50px;  transition-delay: .10s; }
.crit:nth-child(3) { --a: 100px; transition-delay: .20s; }
html:not(.js) .crit { opacity: 1; translate: 0 0; }

.frame { display: grid; gap: 10px; max-width: 62ch; margin: 26px auto 0; text-align: left; }
.frame > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
@media (min-width: 620px) { .frame > div { grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline; } }
.frame dt { font-family: var(--font-m); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-txt); }
.frame dd { font-size: .92rem; color: var(--ink-2); }

.crits-close { margin: 30px auto 0; max-width: 52ch; font-size: 1.02rem; line-height: 1.6; color: var(--ink); }
.contact-btns { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; align-items: center; }
.contact-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; font-size: .88rem; }
.contact-row a { color: var(--ink-2); border-bottom: 1px solid var(--line-ui); padding-bottom: 2px; }
.contact-row a:hover { color: var(--gold); border-color: var(--gold); }
.contact-row em { font-style: normal; font-size: .74rem; color: var(--ink-3); margin-left: 6px; }
.note-agency { margin: 28px auto 0; max-width: 54ch; font-size: .8rem; color: var(--ink-3); }

.close-rule {
  display: block; height: 1px; width: min(420px,66vw); margin: 40px auto 0;
  transform-origin: 0 50%; transform: scaleX(1);
  background: linear-gradient(90deg, var(--gold-2), var(--gold), transparent);
  transition: transform 1s var(--ease-set) .3s;
}
.js .contact:not(.in) .close-rule { transform: scaleX(0); }

/* ── TOAST ─────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: max(30px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 300;
  transform: translate(-50%,140%);
  padding: 12px 22px; border-radius: 999px;
  background: #14171c; color: #f4f2ee; border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 50px -12px rgba(0,0,0,.7);
  font-size: .84rem; font-weight: 600; display: flex; align-items: center; gap: 9px;
  transition: transform .6s var(--ease);
}
.toast.show { transform: translate(-50%,0); }

/* ── FOOTER ────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line-2); padding: 30px 0; font-size: .8rem; color: var(--ink-3); }
.footer-in { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.footer a:hover { color: var(--gold); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ── CUSTOM CURSOR ─────────────────────────────────────────── */
.cur, .cur-d { display: none; }
@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
  /* Erst sichtbar, wenn der Zeiger sich das erste Mal bewegt hat. Ohne das
     klebt ohne JS (und vor der ersten Bewegung) ein Ring in der Ecke 0,0. */
  .cur, .cur-d { opacity: 0; transition: opacity .25s; }
  html.cur-live .cur, html.cur-live .cur-d { opacity: 1; }
  .cur {
    display: block; position: fixed; top: 0; left: 0; z-index: 400;
    width: 30px; height: 30px; border-radius: 50%;
    border: 1px solid var(--gold); pointer-events: none; will-change: transform;
    transition: width .35s var(--ease), height .35s var(--ease),
                background .35s, border-color .35s, opacity .25s;
  }
  .cur.big { width: 56px; height: 56px; background: var(--gold-soft); }
  .cur-d {
    display: block; position: fixed; top: 0; left: 0; z-index: 401;
    width: 4px; height: 4px; border-radius: 50%;
    background: var(--gold); pointer-events: none; will-change: transform;
  }
}

/* ── NO JS ─────────────────────────────────────────────────── */
html:not(.js) [data-scene] { height: auto; }
html:not(.js) .cl-pin { position: static; height: auto; padding: 40px 0; overflow: visible; }
html:not(.js) .cl-pin .phone { height: auto; overflow: visible; }
html:not(.js) .cl-pin .screen { position: static; }
/* Ohne JS können die Trigger nichts aufklappen — alle Inhalte offen zeigen */
html:not(.js) .tl-body { grid-template-rows: 1fr; opacity: 1; visibility: visible; }
html:not(.js) .tl-body > div { overflow: visible; }
html:not(.js) .tl-chev { display: none; }

/* ── REDUCED MOTION ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  /* Der Stern-Block ist der einzige Griff auf Endlosanimationen, die wir
     nicht einzeln aufzählen (pulse, spinSlow, rail, swapIn). Nicht entfernen.
     animation-timeline:none ist Pflicht — scroll-getriebene Animationen
     werten animation-duration gar nicht aus. */
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-timeline: none !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }

  .rv, .hero .fade-up { opacity: 1 !important; translate: none !important; transform: none !important; }
  .hero-name .line > span { transform: none !important; }
  .crit { opacity: 1 !important; translate: none !important; }
  .thesis-rule, .close-rule { transform: none !important; }

  .hero-copy, .hero-visual, .portrait-shift, .cred, .hero-aura, .hero-canvas,
  .scroll-cue, .cl-pin .phone, .cl-cap-l {
    opacity: 1 !important; translate: none !important; scale: none !important; transform: none !important;
    visibility: visible !important;
  }
  .progress { display: none !important; }
  .tl-fill  { transform: scaleY(1) !important; }

  .cl-scene { height: auto !important; }
  .cl-pin   { position: static !important; height: auto !important; padding: 40px 0; overflow: visible !important; }
  .cl-pin .phone   { height: auto !important; overflow: visible !important; }
  .cl-pin .screen  { position: static !important; }
  .cl-pin .pscreen { position: static !important; opacity: 1 !important; margin-bottom: 18px; }
  .cl-cap { height: auto; } .cl-cap-l { position: static; opacity: 1 !important; }
  .p-map .car { translate: 31px -14px !important; }
  .hero-canvas, .grain, .portrait-ring { display: none; }
  .cur, .cur-d { display: none !important; }
}

/* ── FORCED COLORS ─────────────────────────────────────────── */
@media (forced-colors: active) {
  .hero-name em, .sec-title em, .contact-title em, .step .sn {
    -webkit-text-fill-color: currentColor; background: none; color: LinkText;
  }
  .btn-gold { border: 1px solid ButtonText; }
  .tl-node, .svc.on::after, .tl-fill, .progress, .thesis-rule, .close-rule { forced-color-adjust: none; }
  :focus-visible { outline-color: Highlight; }
}

/* ── PRINT ─────────────────────────────────────────────────── */
@media print {
  /* Papier ist immer hell — die Dunkelmodus-Tokens würden sonst grauen
     Text (2.5:1) und blasses Gold (1.8:1) auf Weiss drucken. */
  :root, [data-theme="dark"] {
    --bg: #fff; --bg-2: #fff; --bg-3: #eae7e1; --surface: #fff;
    --ink: #17140f; --ink-2: #4c4640; --ink-3: #6b645b;
    --line: rgba(23,20,15,.11); --line-2: rgba(23,20,15,.055); --line-ui: rgba(23,20,15,.30);
    --gold: #9a7a3a; --gold-2: #c9a55a; --gold-txt: #7d6229;
    --teal: #2d5a4f; --band-bg: #fff; --panel: #fff;
  }
  .nav, .mmenu, .progress, .hero-canvas, .grain, .scroll-cue,
  .cur, .cur-d, .toast, .phone-tabs, .filters, .skip { display: none !important; }
  body { background: #fff; color: #000; }
  .band-dark, .section-pad.alt { background: #fff !important; color: #000 !important; }
  .section-pad { padding: 20px 0; }

  .rv, .hero .fade-up, .crit { opacity: 1 !important; translate: none !important; transform: none !important; }
  .hero-name .line > span { transform: none !important; }
  /* .gone stammt vom letzten Scrollstand — ohne diese Zeile ist Seite 1 leer */
  .hero.gone .hero-copy { visibility: visible !important; }
  .tl-body { grid-template-rows: 1fr !important; opacity: 1 !important; visibility: visible !important; }
  .tl-body > div { overflow: visible !important; }
  .tl-item.hide { display: block !important; }
  .tl-fill { transform: scaleY(1) !important; }

  .cl-scene { height: auto !important; }
  .cl-pin { position: static !important; height: auto !important; overflow: visible !important; }
  .cl-pin .phone { height: auto !important; overflow: visible !important; }
  .cl-pin .screen { position: static !important; }
  .cl-pin .pscreen { position: static !important; opacity: 1 !important; translate: none !important; }
  .cl-cap { height: auto !important; }
  .cl-cap-l { position: static !important; opacity: 1 !important; }
  .p-map .car { translate: 31px -14px !important; }
  .svc-detail { position: static !important; max-height: none !important; backdrop-filter: none !important; }
  .svc-print {
    position: static !important; width: auto !important; height: auto !important;
    clip: auto !important; margin: 12px 0 !important; overflow: visible !important;
    white-space: normal !important;
  }
  .svc-print li { margin-bottom: 4px; font-size: .82rem; }

  .tl-item, .principle, .step, .num-row, .lang { break-inside: avoid; }
  h2, h3 { break-after: avoid; }
  a[href^="http"]::after   { content: " (" attr(href) ")"; font-size: .75em; color: #444; }
  a[href^="mailto"]::after { content: " (" attr(href) ")"; font-size: .75em; }
}
