/* ============================================================
   VALEN – Dark Stone Redesign
   Near-black · Graustufen · Natursteinoptik · Frosted Glass
   Inspiriert von dunklem, ruhigem Business-Webdesign
   ============================================================ */

:root {
  /* Farbwelt: Stein & Schiefer (Schwarz + Graustufen) */
  --ink:       #0a0b0c;   /* Basis, fast schwarz */
  --ink-2:     #0e0f11;
  --ink-3:     #141517;
  --surface:   #17191c;   /* Kartenbasis */

  --stone:     #f4f4f5;   /* helle Flächen / Inverse */
  --stone-2:   #d9dadb;
  --paper:     #08090a;   /* Seitenhintergrund */

  /* Text – Seite ist durchgehend dunkel, also hell */
  --text:      #f3f3f4;
  --text-sub:  rgba(243, 243, 244, 0.60);
  --text-fine: rgba(243, 243, 244, 0.38);

  --text-inv:      #f3f3f4;
  --text-inv-sub:  rgba(243, 243, 244, 0.60);
  --text-inv-fine: rgba(243, 243, 244, 0.38);

  --border:     rgba(255, 255, 255, 0.09);
  --border-inv: rgba(255, 255, 255, 0.12);

  /* dezenter Champagnerakzent – warm, aber bewusst niedrig gesättigt */
  --accent: oklch(0.78 0.045 65);
  --glow-warm: rgba(205, 154, 103, 0.16);
  --glow-warm-soft: rgba(232, 194, 151, 0.10);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --max-w: 1160px;

  /* Radius-Leiter – jede Abrundung der Seite kommt aus dieser Skala.
     Faustregel: je größer die Fläche, desto größer der Radius.
     Verschachtelt gilt: innen = außen − Innenabstand. */
  --radius-xs:   8px;   /* Chips, Icon-Kacheln, Inputs         */
  --radius:     12px;   /* Buttons, kleine Bedienelemente      */
  --radius-md:  18px;   /* Standard-Karten                     */
  --radius-lg:  26px;   /* Panels, Galerien, Menüs             */
  --radius-xl:  34px;   /* großflächige Sektionsflächen        */
  --radius-pill: 999px; /* Kapseln: Navigation, Buttons, Tags  */

  /* Vertikaler Rhythmus – zwei Abstände für alle Abschnitte,
     statt in jedem Block eine eigene Zahl. Skaliert mit dem
     Viewport, ersetzt damit die früheren Mobile-Sonderregeln. */
  --space-section:    clamp(5.5rem, 9vw, 9rem);
  --space-section-lg: clamp(7rem, 11.5vw, 11rem);

  /* Navigation */
  --nav-h: 76px;          /* Höhe oben, ungescrollt   */
  --nav-h-compact: 60px;  /* Höhe als Glaskapsel      */
  --nav-pad: 2rem;        /* = .container-Padding → gemeinsame Fluchtlinie */
  --nav-gutter: 14px;     /* Abstand der Kapsel zum Fensterrand */
  --nav-float: 12px;      /* Abstand der Kapsel zur Oberkante   */

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);

  /* Tweak-Variablen */
  --motion-dist: 1;
  --motion-dur: 1;
}

html[data-intensity="subtil"]      { --motion-dist: 0.45; --motion-dur: 0.7; }
html[data-intensity="cinematisch"] { --motion-dist: 1.35; --motion-dur: 1.15; }

/* ── Reset ─────────────────────────────────────────────── */

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

html {
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  line-height: 1.5;
  overflow-x: clip;
  background: var(--paper);
  color: var(--text);
  position: relative;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.03em; overflow-wrap: break-word; color: var(--text); }
p { color: var(--text-sub); text-wrap: pretty; }
a { color: inherit; }
button, input, textarea { font: inherit; }
img { display: block; max-width: 100%; }

::selection { background: var(--stone); color: var(--ink); }

/* ── Fokus ─────────────────────────────────────────────────
   Ein einziger, überall sichtbarer Fokusring. Nur bei
   Tastaturbedienung – Mausklicks lösen ihn nicht aus. */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}
/* ── Textur ────────────────────────────────────────────────
   Feines Korn gegen Farbverlaufs-Streifen auf den großen
   dunklen Flächen. `isolation` hält die Ebene im Abschnitt,
   damit `z-index:-1` sauber über dem eigenen Hintergrund und
   unter jedem Inhalt liegt. */

.grain { position: relative; isolation: isolate; }
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.3'/%3E%3C/svg%3E");
}

/* ── Skip-Link ─────────────────────────────────────────── */

.skip-link {
  position: absolute; top: -100%; left: 1rem; z-index: 9999;
  background: var(--stone); color: var(--ink);
  padding: 0.75rem 1.5rem; border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Layout ─────────────────────────────────────────────── */

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--space-section) 0; position: relative; }
.section + .section,
.section-problem, .section-outcome, .section-ascent, .section-vista,
.section-cta-final { position: relative; }

.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-fine); margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6;
}
.eyebrow.inv { color: var(--text-inv-fine); }

.headline-section {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  max-width: 22ch;
  color: var(--text);
}
.headline-section.inv { color: var(--text-inv); }

/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.35s var(--ease-out), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.35s;
}
.btn:active { transform: scale(0.97); }

/* Primär = hell auf dunkel */
.btn-primary { background: var(--stone); color: var(--ink); }
.btn-primary:hover { background: #ffffff; box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.8); transform: translateY(-2px); }

.btn-light { background: var(--stone); color: var(--ink); }
.btn-light:hover { background: #ffffff; box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.8); transform: translateY(-2px); }

.btn-ghost-inv { background: rgba(255,255,255,0.03); color: var(--text-inv-sub); border-color: var(--border-inv); }
.btn-ghost-inv:hover { color: var(--text-inv); border-color: rgba(255, 255, 255, 0.3); background: rgba(255,255,255,0.06); }

.btn-large { padding: 1.05rem 2.3rem; font-size: 1rem; }

/* ── Navbar: siehe css/valen-nav.css ────────────────────── */

/* ── HERO (3D-Schwebebilder) ────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  color: var(--text-inv);
  overflow: clip;
  display: flex;
  align-items: center;
  isolation: isolate;
}

/* 3D-Bühne für schwebende Bildkarten */
.hero-stage {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  perspective: 1400px;
  perspective-origin: 50% 42%;
  transform-style: preserve-3d;
}
.float-card {
  position: absolute;
  left: 50%; top: 50%;
  width: var(--w, 300px);
  height: var(--h, 380px);
  margin-left: calc(var(--w, 300px) / -2);
  margin-top: calc(var(--h, 380px) / -2);
  border-radius: var(--radius-md);
  overflow: hidden;
  will-change: transform, opacity, filter;
  opacity: 0;
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transform-style: preserve-3d;
}
.float-card image-slot { width: 100%; height: 100%; }
.float-card::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(10,11,12,0) 40%, rgba(8,9,10,0.55) 100%);
}

/* Verdunkelnder Schleier über den Bildern, damit der Text trägt */
.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(80% 60% at 50% 46%, rgba(8,9,10,0.42) 0%, rgba(8,9,10,0.78) 70%, var(--paper) 100%);
}

.hero .container { position: relative; z-index: 4; width: 100%; }
.hero-inner { max-width: 900px; margin: 0 auto; text-align: center; padding: 9rem 0 12rem; will-change: transform, opacity; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.75rem;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-inv-fine);
  margin-bottom: 2rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-inv);
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
}
.hero-eyebrow img { height: 15px; filter: invert(1) brightness(1.4); }

.hero-headline {
  font-size: clamp(2.6rem, 6.4vw, 5.2rem);
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: var(--text-inv);
  margin-bottom: 1.8rem;
}
.hero-headline .line {
  display: block;
  overflow: hidden;
  /* Die Reveal-Maske braucht Platz für Unterlängen (g, j, p, q, y). */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}
.hero-headline .line > span {
  display: block;
  transform: translateY(110%);
  transition: transform calc(1.1s * var(--motion-dur)) var(--ease-out);
}
.is-loaded .hero-headline .line:nth-child(1) > span { transition-delay: 0.15s; }
.is-loaded .hero-headline .line:nth-child(2) > span { transition-delay: 0.27s; }
.is-loaded .hero-headline .line:nth-child(3) > span { transition-delay: 0.39s; }
.is-loaded .hero-headline .line > span { transform: translateY(0); }

.hero-sub {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--text-inv-sub);
  max-width: 56ch;
  margin: 0 auto 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; }

.hero-fade { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease-soft), transform 0.9s var(--ease-out); }
.is-loaded .hero-fade { opacity: 1; transform: none; }
.is-loaded .hero-eyebrow.hero-fade { transition-delay: 0.05s; }
.is-loaded .hero-sub.hero-fade { transition-delay: 0.55s; }
.is-loaded .hero-actions.hero-fade { transition-delay: 0.7s; }

.scroll-hint {
  position: absolute; bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-inv-fine);
  opacity: 0;
  transition: opacity 1s ease 1.4s;
}
.is-loaded .scroll-hint { opacity: 1; }
.scroll-hint-line {
  width: 1px; height: 44px; overflow: hidden; position: relative;
  background: rgba(243, 243, 244, 0.12);
}
.scroll-hint-line::after {
  content: ""; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%;
  background: rgba(243, 243, 244, 0.75);
  animation: hintDrop 2.2s var(--ease-soft) infinite;
}
@keyframes hintDrop { 0% { top: -100%; } 55% { top: 100%; } 100% { top: 100%; } }

/* ── Reveal-System ──────────────────────────────────────── */

[data-reveal] {
  opacity: 0;
  transform: translateY(calc(34px * var(--motion-dist)));
  transition:
    opacity calc(0.9s * var(--motion-dur)) var(--ease-soft),
    transform calc(1.05s * var(--motion-dur)) var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal="left"]  { transform: translateX(calc(-44px * var(--motion-dist))); }
[data-reveal="right"] { transform: translateX(calc(44px * var(--motion-dist))); }
[data-reveal="scale"] { transform: scale(0.94) translateY(calc(20px * var(--motion-dist))); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ── PROBLEM ────────────────────────────────────────────── */

.section-problem {
  color: var(--text-inv);
  padding: var(--space-section-lg) 0;
  position: relative;
}
.problem-list { display: flex; flex-direction: column; margin-top: 3.5rem; }
.problem-item {
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--border-inv);
  color: var(--text-inv);
  opacity: 0.16;
  transform: translateX(0);
  transition: opacity 0.5s var(--ease-soft);
  max-width: 24ch;
}
.problem-item:first-child { border-top: 1px solid var(--border-inv); }

.problem-resolution {
  margin-top: 4.5rem;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 600;
  color: var(--text-inv);
  display: flex; align-items: center; gap: 1.2rem;
}
.problem-resolution::after {
  content: ""; height: 1px; flex: 0 0 64px;
  background: var(--text-inv); opacity: 0.5;
}

/* ── ANSATZ ─────────────────────────────────────────────── */

.section-ansatz { position: relative; overflow: clip; border-top: 1px solid var(--border); }
.ansatz-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 5rem;
  align-items: center;
  position: relative; z-index: 1;
}
.split-text { font-size: 1.06rem; line-height: 1.75; margin-bottom: 1.4rem; max-width: 52ch; color: var(--text-sub); }
.ansatz-figure { position: relative; }
.ansatz-figure image-slot {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.8);
}
.ansatz-figure-caption {
  margin-top: 1rem;
  font-size: 0.78rem; color: var(--text-fine);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ── LEISTUNGEN ─────────────────────────────────────────── */

.section-services { border-top: 1px solid var(--border); }
.section-header { margin-bottom: 4.5rem; }
.subtitle-section { margin-top: 1.2rem; font-size: 1.05rem; max-width: 50ch; color: var(--text-sub); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.service-card {
  position: relative;
  padding: 2.6rem 2.2rem 3rem;
  background: transparent;
  transition: background 0.4s var(--ease-soft);
  overflow: clip;
}
.service-num {
  display: block;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--text-fine);
  margin-bottom: 2.6rem;
  font-variant-numeric: tabular-nums;
}
.service-card h3 { font-size: 1.18rem; margin-bottom: 0.7rem; letter-spacing: -0.02em; color: var(--text); }
.service-card p { font-size: 0.94rem; line-height: 1.65; color: var(--text-sub); }

/* ── VISION / FOTO-BAND ─────────────────────────────────── */

.section-vista {
  position: relative;
  height: 92vh;
  min-height: 560px;
  overflow: clip;
  background: var(--ink);
}
.vista-media {
  position: absolute; inset: -12% 0;
  will-change: transform;
}
.vista-media image-slot { width: 100%; height: 100%; }
.vista-scrim {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(200deg, rgba(8, 9, 10, 0.35) 0%, rgba(8, 9, 10, 0.85) 78%);
}
.vista-content {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center;
  pointer-events: none;
}
.vista-statement {
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text-inv);
  max-width: 30ch;
  margin: 0 auto;
  text-align: center;
}

/* ── PROZESS (sticky) ───────────────────────────────────── */

.section-ascent {
  color: var(--text-inv);
  position: relative;
  border-top: 1px solid var(--border);
}
.ascent-track { height: 480vh; position: relative; }
.ascent-stage {
  position: sticky; top: 0; height: 100svh;
  overflow: clip;
  display: flex; flex-direction: column;
}
/* Nur der direkte Container ist das Zweispalten-Raster. Ohne den
   Kindselektor erwischt die Regel auch den Container im Kopfbereich
   und reißt dort Augenbraue und Überschrift auseinander. */
.ascent-stage > .container {
  flex: 1; display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
  width: 100%;
  position: relative; z-index: 2;
}

.ascent-header {
  position: absolute; top: 0; left: 0; right: 0;
  padding-top: 7rem;
  z-index: 3; pointer-events: none;
}
.ascent-header .headline-section { max-width: 24ch; }

.ascent-copy { position: relative; min-height: 300px; margin-top: 6rem; }
.ascent-step {
  position: absolute; inset: 0;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s var(--ease-soft), transform 0.6s var(--ease-out);
  pointer-events: none;
}
.ascent-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.ascent-step-meta {
  display: flex; align-items: baseline; gap: 1rem;
  margin-bottom: 1.4rem;
}
.ascent-step-num {
  font-size: 3.6rem; font-weight: 600; letter-spacing: -0.05em;
  color: var(--text-inv);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ascent-step-camp {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-inv-fine);
}
.ascent-step h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); color: var(--text-inv); margin-bottom: 0.9rem; }
.ascent-step p { color: var(--text-inv-sub); font-size: 1.04rem; line-height: 1.7; max-width: 44ch; }

/* Sitzt unter dem Etappenblock. Absolut, weil die Etappen selbst
   übereinander liegen – ein margin-top hätte hier nichts bewirkt. */
.ascent-progress {
  position: absolute; bottom: -3.4rem; left: 0;
  display: flex; align-items: center; gap: 0.9rem;
}
.ascent-progress-bar {
  width: 160px; height: 2px; background: var(--border-inv);
  position: relative; overflow: hidden;
}
.ascent-progress-fill {
  position: absolute; inset: 0;
  background: var(--text-inv);
  transform-origin: left;
  transform: scaleX(0);
}
.ascent-progress-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  color: var(--text-inv-fine);
  font-variant-numeric: tabular-nums;
}

.ascent-viz { position: relative; height: 72vh; min-height: 420px; margin-top: 4rem; }
.ascent-viz svg { width: 100%; height: 100%; overflow: visible; }
.ascent-path-bg { stroke: rgba(243, 243, 244, 0.12); }
.ascent-path-draw { stroke: var(--text-inv); }
.ascent-station circle {
  fill: var(--ink);
  stroke: rgba(243, 243, 244, 0.3);
  stroke-width: 1.5;
  transition: fill 0.4s, stroke 0.4s, r 0.4s;
}
.ascent-station text {
  fill: var(--text-inv-fine);
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: fill 0.4s;
}
.ascent-station.is-passed circle { fill: var(--text-inv); stroke: var(--text-inv); }
.ascent-station.is-passed text { fill: var(--text-inv); }
.ascent-marker { filter: drop-shadow(0 0 12px rgba(232, 194, 151, 0.52)); }

.ascent-list { display: none; }

/* ── BEISPIELE ──────────────────────────────────────────── */

.section-cases { position: relative; overflow: clip; border-top: 1px solid var(--border); }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  position: relative; z-index: 1;
}
.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2.4rem 2.4rem 2.6rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-soft), border-color 0.4s;
}
.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7);
}
.case-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-fine);
  margin-bottom: 0.6rem;
}
.case-card h3 { font-size: 1.22rem; letter-spacing: -0.02em; color: var(--text); }
.case-card p { font-size: 0.96rem; line-height: 1.65; color: var(--text-sub); }

/* ── FINAL CTA ──────────────────────────────────────────── */

.section-cta-final {
  color: var(--text-inv);
  position: relative;
  overflow: clip;
  padding: var(--space-section-lg) 0 calc(var(--space-section-lg) + 2rem);
  border-top: 1px solid var(--border);
}
.cta-final-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start;
  max-width: 820px;
}
.cta-final-headline {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--text-inv);
  margin-bottom: 2.8rem;
}
.cta-final-contact {
  display: flex; align-items: center; gap: 1rem;
  margin-top: 2.2rem;
  font-size: 0.95rem;
}
.contact-link { color: var(--text-inv-sub); text-decoration: none; transition: color 0.25s; }
.contact-link:hover { color: var(--text-inv); }
.contact-sep { color: var(--text-inv-fine); }

/* ── Footer ─────────────────────────────────────────────── */

.footer {
  background: #060708;
  color: var(--text-inv-sub);
  padding: 4.5rem 0 2rem;
  position: relative;
  border-top: 1px solid var(--border);
}

/* Oberer Teil: Marke links, Spalten rechts. */
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.footer .logo { font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer-tagline {
  max-width: 34ch;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-inv-fine);
}

.footer-col { display: flex; flex-direction: column; align-items: flex-start; }
.footer-col-title {
  margin-bottom: 1.1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-inv-fine);
}
.footer-col a,
.footer-col span {
  padding: 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-inv-sub);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--text-inv); }
.footer-col a[aria-current="page"] { color: var(--text-inv); }

/* Unterer Teil: Rechtszeile. */
.footer-base {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.footer-text { font-size: 0.82rem; color: var(--text-inv-fine); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.82rem; }
.footer-legal a,
.footer-legal button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit;
  color: var(--text-inv-fine);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover,
.footer-legal button:hover { color: var(--text-inv); }
.footer-legal a[aria-current="page"] { color: var(--text-inv-sub); }

/* ── MODAL ──────────────────────────────────────────────── */

.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(4, 5, 6, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease-soft);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-container {
  background: var(--surface);
  width: 100%; max-width: 620px;
  max-height: min(86vh, 760px);
  border-radius: var(--radius-md);
  overflow: hidden auto;
  position: relative;
  transform: translateY(26px) scale(0.97);
  transition: transform 0.45s var(--ease-out);
  box-shadow: 0 50px 140px -30px rgba(0, 0, 0, 0.85);
}
.modal-overlay.active .modal-container { transform: none; }

.modal-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.6rem;
  background: rgba(23, 25, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.modal-steps-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-fine);
  font-variant-numeric: tabular-nums;
}
.modal-progress {
  flex: 1; height: 2px; background: var(--border);
  border-radius: 2px; overflow: hidden;
}
.progress-bar {
  height: 100%; width: 0; background: var(--stone);
  transition: width 0.5s var(--ease-out);
}
.modal-close {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: none; border: 1px solid var(--border);
  border-radius: 50%; cursor: pointer; color: var(--text-sub);
  transition: background 0.2s, color 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.08); color: var(--text); }

/* ── Termin-Buchungs-Popup (Cal.com) ── */
.booking-overlay {
  overscroll-behavior: contain;
  visibility: hidden;
  transition: opacity 0.35s var(--ease-soft), visibility 0s linear 0.42s;
}
.booking-overlay.active { visibility: visible; transition-delay: 0s; }
.booking-container {
  max-width: 980px;
  height: min(90vh, 880px);
  height: min(90dvh, 880px);
  max-height: 880px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translate3d(0, 22px, 0) scale(0.985);
  transition: transform 0.42s var(--ease-out), opacity 0.28s var(--ease-soft);
}
.booking-overlay.active .booking-container {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}
.booking-container .modal-header { flex: none; }
.booking-body {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
}
#cal-booking-inline {
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
#cal-booking-inline iframe {
  width: 100% !important;
  min-height: 100% !important;
  border: 0 !important;
  display: block;
}
.booking-iframe {
  width: 100%; height: 100%;
  min-height: 100%;
  border: 0; display: block;
}
.booking-loader {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  background: var(--surface); color: var(--text-sub);
  font-size: 0.95rem;
  transition: opacity 0.25s var(--ease-soft), visibility 0s linear 0.25s;
}
.booking-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.booking-spinner {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--stone);
  animation: bookingSpin 0.8s linear infinite;
}
@keyframes bookingSpin { to { transform: rotate(360deg); } }
.booking-fallback {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.1rem;
  padding: 2.4rem; text-align: center;
  background: var(--surface); color: var(--text-sub);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.25s var(--ease-soft), visibility 0s linear 0.25s;
}
.booking-fallback.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.booking-fallback h4 { color: var(--text); font-size: 1.2rem; }
.booking-footer {
  flex: none;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-size: 0.82rem; color: var(--text-fine);
  background: rgba(23, 25, 28, 0.92);
  border-top: 1px solid var(--border);
}
.booking-footer a { color: var(--text); font-weight: 600; }
.booking-footer a:hover { text-decoration: underline; }
@media (max-width: 720px) {
  .booking-overlay {
    top: var(--booking-viewport-offset, 0px);
    bottom: auto;
    height: var(--booking-viewport-height, 100dvh);
    align-items: stretch;
    padding: 0;
    background: #08090a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .booking-container {
    width: 100%;
    max-width: none;
    height: 100svh;
    height: var(--booking-viewport-height, 100dvh);
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    transform: translate3d(0, 100%, 0);
    transition: transform 0.42s var(--ease-out);
  }
  .booking-overlay.active .booking-container { transform: translate3d(0, 0, 0); }
  .booking-container .modal-header {
    min-height: 62px;
    padding: max(0.85rem, env(safe-area-inset-top)) 1rem 0.85rem;
    background: rgba(12, 13, 15, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .booking-container .modal-close { width: 44px; height: 44px; }
  .booking-body { min-height: 0; }
  #cal-booking-inline { scrollbar-gutter: auto; scroll-padding-bottom: env(safe-area-inset-bottom); }
  #cal-booking-inline iframe,
  .booking-iframe { min-height: 100% !important; }
  .booking-fallback { padding: 2rem 1.4rem max(2rem, env(safe-area-inset-bottom)); }
}

.modal-content-wrapper { padding: 2.2rem 2.4rem 2.6rem; position: relative; }

.modal-step { display: none; }
.modal-step.active { display: block; animation: stepIn 0.45s var(--ease-out); }
.modal-step.active.slide-back { animation: stepInBack 0.45s var(--ease-out); }
@keyframes stepIn     { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes stepInBack { from { opacity: 0; transform: translateX(-26px); } to { opacity: 1; transform: none; } }

.modal-step h3 { font-size: 1.45rem; letter-spacing: -0.025em; margin-bottom: 0.5rem; color: var(--text); }
.modal-subtitle { font-size: 0.95rem; margin-bottom: 1.6rem; color: var(--text-sub); }

.modal-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: none; border: none; cursor: pointer;
  font-size: 0.82rem; font-weight: 600; color: var(--text-fine);
  margin-bottom: 1.4rem; padding: 0.2rem 0;
  transition: color 0.2s;
}
.modal-back:hover { color: var(--text); }

.modal-options-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.7rem;
  margin-top: 1.4rem;
}
.option-btn {
  padding: 1.1rem 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer; text-align: left;
  font-size: 0.95rem; font-weight: 600; color: var(--text);
  transition: border-color 0.2s, background 0.2s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.option-btn:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.06);
  transform: translateY(-2px);
}
.option-btn.is-selected { background: var(--stone); color: var(--ink); border-color: var(--stone); }
.option-span-full { grid-column: 1 / -1; }

.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 0.45rem; color: var(--text);
}
.label-optional { color: var(--text-fine); font-weight: 500; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.85rem 1rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: rgba(255,255,255,0.04); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-fine); }
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: rgba(255,255,255,0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

.modal-form .btn, .modal-next-btn { width: 100%; margin-top: 0.4rem; }

.success-icon { color: var(--text); margin: 1rem 0 1.4rem; }
#step-6 { text-align: center; padding: 1.5rem 0 0.5rem; }
#step-6 .modal-subtitle { max-width: 36ch; margin: 0.4rem auto 1.8rem; }

/* ── CASEOS auf der Startseite ──────────────────────────── */
.home-caseos { position:relative; overflow:hidden; padding:var(--space-section) 0; border-top:1px solid rgba(255,255,255,.08); background:#0b0c0d; color:var(--text-inv); }
/* Sitzt im mittig gesetzten Hero – deshalb selbst zentriert
   statt links am Rand zu kleben. */
.hero-product-link { width:max-content; max-width:100%; display:flex; align-items:center; gap:.6rem; margin:0 auto 1.7rem; padding:.4rem .9rem .4rem .4rem; border:1px solid rgba(255,255,255,.15); border-radius:var(--radius-pill); background:rgba(255,255,255,.055); color:rgba(255,255,255,.74); font-size:.76rem; text-decoration:none; backdrop-filter:blur(12px); transition:background .25s,border-color .25s,color .25s,transform .35s var(--ease-out); }
.hero-product-link:hover { border-color:rgba(255,255,255,.28); background:rgba(255,255,255,.1); color:#fff; transform:translateY(-2px); }
.hero-product-link span { flex:none; padding:.28rem .55rem; border-radius:var(--radius-pill); background:var(--accent); color:#17120c; font-size:.6rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.hero-product-link b { font-weight:600; color:#fff; }
.hero-product-link i { color:var(--accent); font-size:.95rem; font-style:normal; transition:transform .35s var(--ease-out); }
.hero-product-link:hover i { transform:translateX(3px); }
.home-caseos::before { content:""; position:absolute; width:48rem; height:48rem; right:-20rem; top:-25rem; border-radius:50%; background:radial-gradient(circle,rgba(194,151,109,.14),transparent 68%); }
.home-caseos-grid { position:relative; display:grid; grid-template-columns:1fr 1.08fr; gap:clamp(3rem,6vw,6rem); align-items:center; }
.home-caseos-copy h2 { max-width:16ch; margin-top:1rem; font-size:clamp(2.3rem,3.6vw,3.7rem); line-height:1.04; letter-spacing:-.045em; text-wrap:balance; }
.home-caseos-copy > p:not(.eyebrow) { max-width:610px; margin-top:1.8rem; color:rgba(243,243,244,.56); font-size:.98rem; line-height:1.72; }
.home-caseos-copy > p strong { color:#d9b58f; font-weight:650; }
.home-caseos-actions { display:flex; align-items:center; flex-wrap:wrap; gap:1.35rem; margin-top:2rem; }
.home-caseos-actions > a:last-child { color:rgba(255,255,255,.6); font-size:.75rem; font-weight:600; text-decoration:none; }
.home-caseos-actions > a:last-child:hover { color:#fff; }
.home-caseos-proof { display:flex; flex-wrap:wrap; gap:.7rem 1.4rem; margin-top:1.6rem; color:rgba(255,255,255,.3); font-size:.59rem; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.home-caseos-proof span { display:flex; align-items:center; gap:.5rem; }
.home-caseos-proof span::before { content:""; width:4px; height:4px; border-radius:50%; background:#9cb9a8; }
.home-caseos-visual { position:relative; overflow:hidden; display:block; min-height:500px; border:1px solid rgba(255,255,255,.14); border-radius:var(--radius-lg); background:#151617; color:#fff; text-decoration:none; box-shadow:0 50px 110px -60px #000,inset 0 1px rgba(255,255,255,.12); }
.home-caseos-visual img { width:100%; height:100%; min-height:500px; object-fit:cover; object-position:57% center; transition:transform .8s var(--ease-out); }
.home-caseos-visual::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(5,6,7,.72),transparent 38%); }
.home-caseos-visual:hover img { transform:scale(1.025); }
.home-caseos-visual > span { position:absolute; z-index:1; left:2rem; bottom:1.8rem; display:grid; gap:.3rem; }
.home-caseos-visual b { font-size:1.2rem; letter-spacing:.16em; }
.home-caseos-visual small { color:rgba(255,255,255,.6); font-size:.7rem; }

/* ── Responsive ─────────────────────────────────────────── */

/* ── Cookie-Hinweis ─────────────────────────────────────── */

.cookie-notice {
  position: fixed;
  z-index: 3000;
  left: 1rem;
  bottom: 1rem;
  width: min(410px, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-md);
  background: rgba(20,21,23,0.94);
  color: rgba(255,255,255,0.72);
  box-shadow: 0 14px 45px rgba(0,0,0,0.25);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.cookie-notice.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.cookie-notice p { margin: 0; font-size: .76rem; line-height: 1.55; }
.cookie-notice strong { color: #fff; font-weight: 600; }
.cookie-notice a { color: rgba(255,255,255,0.9); text-decoration: underline; text-underline-offset: 2px; }
.cookie-notice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .8rem; }
.cookie-notice button {
  min-height: 34px;
  padding: .5rem .65rem;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font: inherit;
  font-size: .72rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.cookie-notice button:hover,
.cookie-notice button:focus-visible { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.38); }

@media (max-width: 480px) {
  .cookie-notice { left: .7rem; bottom: .7rem; width: calc(100vw - 1.4rem); }
}

@media (max-width: 1050px) {
  .home-caseos-grid { grid-template-columns: 1fr; }
  .home-caseos-copy { max-width: 760px; }
  .ansatz-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
  .ascent-track { height: auto; }
  .ascent-stage { display: none; }
  .ascent-list {
    display: flex; flex-direction: column;
    padding: 7rem 0;
    position: relative;
  }
  .ascent-list-rail {
    position: absolute; left: calc(2rem + 17px); top: 12rem; bottom: 9rem;
    width: 1px; background: var(--border-inv);
  }
  .ascent-list-step {
    display: grid; grid-template-columns: 36px 1fr; gap: 1.4rem;
    padding: 1.8rem 0;
    position: relative;
  }
  .ascent-list-dot {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--surface); border: 1.5px solid rgba(243, 243, 244, 0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.72rem; font-weight: 600; color: var(--text-inv);
    font-variant-numeric: tabular-nums;
    position: relative; z-index: 1;
  }
  .ascent-list-step h3 { color: var(--text-inv); font-size: 1.2rem; margin-bottom: 0.4rem; }
  .ascent-list-step p { color: var(--text-inv-sub); font-size: 0.95rem; max-width: 46ch; }
  .ascent-list-camp {
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--text-inv-fine);
    display: block; margin-bottom: 0.3rem;
  }
}

@media (max-width: 720px) {
  .home-caseos-visual, .home-caseos-visual img { min-height: 380px; }
  .home-caseos-visual { border-radius: var(--radius-md); }
  .container { padding: 0 1.4rem; }
  .hero-inner { padding: 8rem 0 10rem; }
  .services-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }
  .section-vista { height: 70vh; min-height: 480px; }
  .modal-options-grid { grid-template-columns: 1fr; }
  .modal-content-wrapper { padding: 1.8rem 1.5rem 2rem; }
  .problem-item { max-width: none; }
  .ascent-list-rail { left: calc(1.4rem + 17px); }
  .footer { padding-top: 3.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.2rem; padding-bottom: 2.5rem; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

/* ── Reduced Motion ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .hero-fade, .hero-headline .line > span {
    opacity: 1 !important; transform: none !important; transition: none !important;
  }
  .modal-overlay, .modal-container, .booking-container,
  .booking-loader, .booking-fallback { transition: none !important; }
  .booking-spinner { animation: none; }
  .cookie-notice { transition: none; transform: none; }
  .scroll-hint-line::after { animation: none; }
  html { scroll-behavior: auto; }
}
