/* ============================================================
   MCGA One-Pager — Tokens → Base → Komponenten → Sektionen
   → Media Queries → Reduced Motion
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:            #0a0a0f;
  --bg-panel:      #12121a;
  --bg-card:       #18181f;
  --bg-chip:       rgba(255, 255, 255, .06);
  --border-glass:  rgba(255, 255, 255, .10);
  --border-strong: rgba(255, 255, 255, .16);
  --text:          #ffffff;
  --text-muted:    rgba(255, 255, 255, .60);
  --text-faint:    rgba(255, 255, 255, .55);
  --blue:          #5b8cff;
  --indigo:        #6366f1;
  --violet:        #8b5cf6;
  --violet-deep:   #9b5cf0;
  --cyan:          #56c7e6;
  --grad-brand:    linear-gradient(135deg, var(--blue) 0%, #7c6cf0 50%, var(--violet-deep) 100%);
  --grad-alt:      linear-gradient(135deg, var(--cyan) 0%, var(--blue) 50%, var(--violet-deep) 100%);
  --grad-shine:    linear-gradient(90deg, transparent, rgba(255, 255, 255, .10) 50%, transparent);

  --font-sans:   "Inter Tight", system-ui, -apple-system, sans-serif;
  --fs-hero:     clamp(1.9rem, 3.2vw + .8rem, 3.4rem);
  --fs-h2:       clamp(1.875rem, 3vw + .75rem, 2.875rem);
  --fs-h3:       1.25rem;
  --fs-kpi:      clamp(2.75rem, 5vw, 4.25rem);
  --fs-body:     1.0625rem;
  --fs-small:    .9375rem;
  --fs-eyebrow:  .8125rem;
  --lh-tight:    1.08;
  --lh-body:     1.65;

  --sp-1: .5rem;  --sp-2: .75rem;  --sp-3: 1rem;  --sp-4: 1.5rem;
  --sp-5: 2rem;   --sp-6: 3rem;    --sp-7: 4rem;
  --section-pad:   clamp(4rem, 9vw, 7.5rem);
  --container-max: 1140px;
  --container-pad: 1.25rem;
  --header-h:      72px;

  --r-pill:    50px;
  --r-card:    16px;
  --r-card-lg: 30px;
  --r-chip:    14px;

  --glow-btn:  0 0 24px rgba(124, 108, 240, .45);
  --t-fast:    .2s ease;
  --t-med:     .35s ease;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body) / var(--lh-body) var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip statt hidden: verhindert Querscroll, ohne position:sticky zu brechen */
}

/* Dezentes Hintergrund-Grid über die ganze Seite */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg,   rgba(255,255,255,.022) 0 1px, transparent 1px 90px),
    repeating-linear-gradient(90deg,  rgba(255,255,255,.022) 0 1px, transparent 1px 90px);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
/* Subtile weiße Sterne — gleiche Ebene wie das Grid, variierende Größe (max ~3 px) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle 1.9px at 33.3% 15.2%, rgba(255,255,255,0.44), transparent 100%),
    radial-gradient(circle 1.0px at 37.2% 8.3%, rgba(255,255,255,0.41), transparent 100%),
    radial-gradient(circle 1.5px at 9.1% 10.7%, rgba(255,255,255,0.3), transparent 100%),
    radial-gradient(circle 3.6px at 23.7% 50.4%, rgba(255,255,255,0.39), transparent 100%),
    radial-gradient(circle 3.3px at 95.2% 7.4%, rgba(255,255,255,0.31), transparent 100%),
    radial-gradient(circle 1.9px at 13.7% 26.8%, rgba(255,255,255,0.46), transparent 100%),
    radial-gradient(circle 1.0px at 63.2% 31.6%, rgba(255,255,255,0.28), transparent 100%),
    radial-gradient(circle 1.2px at 22.1% 54.3%, rgba(255,255,255,0.46), transparent 100%),
    radial-gradient(circle 2.4px at 45.6% 26.2%, rgba(255,255,255,0.34), transparent 100%),
    radial-gradient(circle 3.7px at 57.1% 42.9%, rgba(255,255,255,0.36), transparent 100%),
    radial-gradient(circle 1.5px at 95.6% 12.7%, rgba(255,255,255,0.31), transparent 100%),
    radial-gradient(circle 2.4px at 49.0% 6.9%, rgba(255,255,255,0.45), transparent 100%),
    radial-gradient(circle 2.3px at 85.7% 27.2%, rgba(255,255,255,0.46), transparent 100%),
    radial-gradient(circle 3.5px at 45.8% 66.2%, rgba(255,255,255,0.49), transparent 100%),
    radial-gradient(circle 2.6px at 8.3% 55.9%, rgba(255,255,255,0.54), transparent 100%),
    radial-gradient(circle 1.8px at 29.5% 32.5%, rgba(255,255,255,0.42), transparent 100%),
    radial-gradient(circle 1.5px at 18.5% 12.7%, rgba(255,255,255,0.3), transparent 100%),
    radial-gradient(circle 3.1px at 26.0% 32.9%, rgba(255,255,255,0.41), transparent 100%),
    radial-gradient(circle 2.5px at 54.7% 69.4%, rgba(255,255,255,0.35), transparent 100%),
    radial-gradient(circle 4.0px at 42.0% 30.5%, rgba(255,255,255,0.31), transparent 100%),
    radial-gradient(circle 1.3px at 19.2% 21.2%, rgba(255,255,255,0.46), transparent 100%),
    radial-gradient(circle 1.2px at 27.5% 4.3%, rgba(255,255,255,0.45), transparent 100%),
    radial-gradient(circle 1.4px at 93.0% 55.1%, rgba(255,255,255,0.49), transparent 100%),
    radial-gradient(circle 2.5px at 7.6% 70.6%, rgba(255,255,255,0.53), transparent 100%),
    radial-gradient(circle 1.4px at 39.8% 33.5%, rgba(255,255,255,0.28), transparent 100%),
    radial-gradient(circle 1.2px at 8.9% 19.4%, rgba(255,255,255,0.28), transparent 100%),
    radial-gradient(circle 1.2px at 2.5% 15.2%, rgba(255,255,255,0.27), transparent 100%),
    radial-gradient(circle 1.2px at 85.6% 49.4%, rgba(255,255,255,0.38), transparent 100%),
    radial-gradient(circle 2.6px at 37.1% 13.1%, rgba(255,255,255,0.42), transparent 100%),
    radial-gradient(circle 1.2px at 48.5% 10.4%, rgba(255,255,255,0.35), transparent 100%),
    radial-gradient(circle 1.6px at 81.2% 15.9%, rgba(255,255,255,0.44), transparent 100%),
    radial-gradient(circle 1.3px at 16.4% 44.2%, rgba(255,255,255,0.59), transparent 100%),
    radial-gradient(circle 1.2px at 84.5% 55.5%, rgba(255,255,255,0.32), transparent 100%),
    radial-gradient(circle 2.1px at 75.8% 43.4%, rgba(255,255,255,0.34), transparent 100%),
    radial-gradient(circle 3.8px at 79.6% 76.9%, rgba(255,255,255,0.54), transparent 100%),
    radial-gradient(circle 1.2px at 72.8% 20.8%, rgba(255,255,255,0.27), transparent 100%),
    radial-gradient(circle 1.4px at 5.2% 24.7%, rgba(255,255,255,0.59), transparent 100%),
    radial-gradient(circle 4.0px at 45.0% 73.3%, rgba(255,255,255,0.38), transparent 100%),
    radial-gradient(circle 1.1px at 23.4% 20.8%, rgba(255,255,255,0.47), transparent 100%),
    radial-gradient(circle 1.4px at 88.0% 66.2%, rgba(255,255,255,0.53), transparent 100%),
    radial-gradient(circle 3.8px at 10.6% 52.9%, rgba(255,255,255,0.52), transparent 100%),
    radial-gradient(circle 2.1px at 47.9% 17.2%, rgba(255,255,255,0.53), transparent 100%),
    radial-gradient(circle 1.6px at 94.8% 33.3%, rgba(255,255,255,0.51), transparent 100%),
    radial-gradient(circle 1.5px at 18.7% 13.4%, rgba(255,255,255,0.53), transparent 100%),
    radial-gradient(circle 3.7px at 16.4% 65.2%, rgba(255,255,255,0.38), transparent 100%),
    radial-gradient(circle 1.6px at 54.6% 13.7%, rgba(255,255,255,0.48), transparent 100%),
    radial-gradient(circle 1.5px at 52.5% 73.1%, rgba(255,255,255,0.54), transparent 100%),
    radial-gradient(circle 1.1px at 22.5% 22.6%, rgba(255,255,255,0.46), transparent 100%),
    radial-gradient(circle 1.5px at 27.1% 35.0%, rgba(255,255,255,0.38), transparent 100%),
    radial-gradient(circle 3.4px at 46.0% 47.2%, rgba(255,255,255,0.57), transparent 100%),
    radial-gradient(circle 1.0px at 50.2% 43.4%, rgba(255,255,255,0.41), transparent 100%),
    radial-gradient(circle 1.9px at 19.9% 4.3%, rgba(255,255,255,0.42), transparent 100%),
    radial-gradient(circle 1.3px at 71.4% 45.2%, rgba(255,255,255,0.45), transparent 100%),
    radial-gradient(circle 1.1px at 77.0% 11.9%, rgba(255,255,255,0.35), transparent 100%),
    radial-gradient(circle 1.5px at 75.9% 41.6%, rgba(255,255,255,0.57), transparent 100%),
    radial-gradient(circle 1.3px at 44.6% 49.3%, rgba(255,255,255,0.5), transparent 100%),
    radial-gradient(circle 1.6px at 45.5% 43.5%, rgba(255,255,255,0.5), transparent 100%),
    radial-gradient(circle 1.3px at 85.8% 73.7%, rgba(255,255,255,0.58), transparent 100%),
    radial-gradient(circle 1.3px at 82.3% 14.1%, rgba(255,255,255,0.28), transparent 100%),
    radial-gradient(circle 2.4px at 25.4% 9.4%, rgba(255,255,255,0.56), transparent 100%),
    radial-gradient(circle 1.9px at 17.2% 57.0%, rgba(255,255,255,0.56), transparent 100%),
    radial-gradient(circle 3.4px at 94.4% 20.2%, rgba(255,255,255,0.43), transparent 100%),
    radial-gradient(circle 1.3px at 96.5% 65.6%, rgba(255,255,255,0.44), transparent 100%),
    radial-gradient(circle 1.4px at 34.7% 18.5%, rgba(255,255,255,0.27), transparent 100%);
  mask-image: radial-gradient(ellipse 95% 75% at 50% 0%, #000 45%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 0%, #000 45%, transparent 100%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul[role="list"] { list-style: none; }

.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}
.container.narrow { max-width: 780px; }

h1, h2, h3 { font-weight: 600; line-height: var(--lh-tight); letter-spacing: -.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p  { color: var(--text-muted); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Rotierendes Headline-Wort (blau-lila Verlauf) mit Blur-Flip nach oben */
.rotator {
  display: inline-block;
  perspective: 360px;
  vertical-align: baseline;
}
.rotator__word {
  display: inline-block;
  white-space: nowrap;
  transform-origin: center 60%;
  will-change: transform, filter, opacity;
}
.rotator__word.is-out { animation: word-out .3s cubic-bezier(.6, .04, .98, .34) forwards; }
.rotator__word.is-in  { animation: word-in .36s cubic-bezier(.18, .72, .3, 1) forwards; }
@keyframes word-out {
  to { opacity: 0; filter: blur(10px); transform: translateY(-.5em) rotateX(88deg); }
}
@keyframes word-in {
  from { opacity: 0; filter: blur(10px); transform: translateY(.45em) rotateX(-88deg); }
  to   { opacity: 1; filter: blur(0);   transform: none; }
}

/* ---------- 3. Komponenten ---------- */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.6rem;
  border: 0;
  border-radius: var(--r-pill);
  font: 600 1rem / 1 var(--font-sans);
  color: var(--text);
  cursor: pointer;
  transition: filter var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
  white-space: nowrap;
}
/* 3D/glossy Buttons mit rauer Textur (RankSton-Look) */
.btn--primary {
  background:
    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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0) 44%),
    var(--grad-brand);
  background-blend-mode: soft-light, normal, normal;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -5px 12px rgba(22, 10, 60, .5),
    0 8px 22px rgba(124, 108, 240, .45);
  text-shadow: 0 1px 1px rgba(18, 8, 46, .35);
}
.btn--primary:hover {
  filter: brightness(1.07);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .6),
    inset 0 -5px 12px rgba(22, 10, 60, .5),
    0 6px 42px rgba(91, 140, 255, .55),
    0 -4px 30px rgba(155, 92, 240, .45);
}
.btn--secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 46%),
    rgba(255, 255, 255, .03);
  border: 1px solid var(--border-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 18px rgba(0, 0, 0, .35);
}
.btn--secondary:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 46%),
    rgba(255, 255, 255, .05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 30px rgba(91, 140, 255, .3);
}

/* Eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem;
  border: 1px solid rgba(91, 140, 255, .35);
  border-radius: var(--r-pill);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}

/* Glass-Cards */
.card, .card--lg {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-card);
  padding: var(--sp-5);
  overflow: hidden;
}
.card--lg { border-radius: var(--r-card-lg); }
.card::before, .card--lg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad-shine);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .65rem 1.1rem;
  background: var(--bg-chip);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-pill);
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.chip--blue   { border-color: rgba(91, 140, 255, .4);  }
.chip--blue .icon   { color: var(--blue); }
.chip--violet { border-color: rgba(139, 92, 246, .4);  }
.chip--violet .icon { color: var(--violet); }
.chip--cyan   { border-color: rgba(86, 199, 230, .4);  }
.chip--cyan .icon   { color: var(--cyan); }

/* Sektionskopf */
.section { padding-block: calc(var(--section-pad) / 2); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--sp-6);
  display: grid;
  justify-items: center;
  gap: var(--sp-3);
}
.section-head--left { text-align: left; justify-items: start; margin-inline: 0; }

/* ---------- 4. Header ---------- */
/* Grauer, sticky Header-Balken mit dünner Linie unten */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: .6rem 0;
  background: rgba(18, 18, 26, .82);
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
.brand-icon { height: 25px; width: auto; display: block; }
.brand-word { height: 34px; width: auto; display: block; }
.nav-panel { display: flex; align-items: center; gap: var(--sp-4); }
.nav-links { display: flex; list-style: none; gap: var(--sp-4); }
.nav-links a {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t-fast);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-cta { padding: .6rem 1.2rem; font-size: var(--fs-small); }
.nav-cta--bar { display: none; } /* nur Desktop — steht dann rechts außen */

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t-med), opacity var(--t-fast);
}
.nav--open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav--open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav--open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  overflow: hidden;
}
/* Glow hinter der Hero-Headline */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: min(90vw, 900px);
  aspect-ratio: 1.6;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, .16), transparent 65%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--sp-4);
}
.hero h1 {
  max-width: 92vw;
  text-align: center;    /* "Wir XYZ" zentral über dem 2. Satz; Breite per JS auf die längste Variante fixiert */
  font-size: var(--fs-hero);
  font-weight: 600;
}
.hl-fix, .hl-tail { color: var(--text); }
.hero-sub {
  max-width: 660px;
  font-size: 1.125rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-3);
  margin-top: var(--sp-2);
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  list-style: none;
  margin-top: var(--sp-3);
}

/* Arc + Orbit */
.hero-visual {
  position: relative;
  overflow: hidden;
  height: clamp(320px, 40vw, 520px);
  margin-top: -110px; /* leichter Überlapp: weicher Glow hinter dem Text, helles Band darunter */
}
/* Halbkreis als Canvas (generativ, siehe script.js) */
.arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}
.orbit {
  position: absolute;
  left: 50%;
  top: calc(var(--ring-cy, 340px) - var(--ring-chip-r, 700px));
  width: calc(var(--ring-chip-r, 700px) * 2);
  height: calc(var(--ring-chip-r, 700px) * 2);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .10);
  transform: translateX(-50%);
  z-index: 2; /* Chips über dem Canvas-Bogen */
  opacity: 0; /* beim Laden unsichtbar → sanft einblenden statt Reinfliegen */
}
.orbit.is-ready { opacity: 1; transition: opacity .9s ease; }
/* animierbare Custom Properties → Icons gleiten weich zur nächsten Position */
@property --angle { syntax: '<angle>'; inherits: false; initial-value: 270deg; }
@property --r { syntax: '<length>'; inherits: false; initial-value: 700px; }
.orbit-chip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  place-items: center;
  transform: rotate(var(--angle)) translateX(var(--r, var(--ring-chip-r, 700px))) rotate(calc(-1 * var(--angle)));
  display: none;
}
/* Übergang erst NACH der Erstplatzierung (via .is-ready) → Chips erscheinen an Ort und Stelle */
.orbit.is-ready .orbit-chip { transition: --angle 1s cubic-bezier(.62, 0, .38, 1), --r 1s cubic-bezier(.62, 0, .38, 1); }
/* innerer Ring: kleinere Chips */
.orbit-chip--in { --r: var(--ring-chip-r-in, 520px); }
.orbit-chip--in .chip-icon { width: 52px; height: 52px; }
/* Glaskugel: transparente Sphäre mit Glanzlicht, buntes 3D-Objekt darin */
.chip-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(130% 130% at 30% 22%, rgba(255, 255, 255, .24), rgba(255, 255, 255, .05) 46%, rgba(255, 255, 255, .015) 72%);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, .5),
    inset 0 -14px 26px rgba(120, 140, 255, .06),
    0 10px 26px rgba(0, 0, 0, .4);
  -webkit-backdrop-filter: blur(3px) saturate(1.15);
  backdrop-filter: blur(3px) saturate(1.15);
  overflow: hidden;
}
.chip-icon::before {
  content: "";
  position: absolute;
  left: 13%; top: 8%;
  width: 48%; height: 38%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .6), transparent 72%);
  pointer-events: none;
}
.chip-icon img {
  width: 60%; height: 60%;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .4));
}

/* ---------- 6. Sektionen ---------- */

/* Karten-Raster (Problem, Vertrauen) */
.card-grid {
  display: grid;
  gap: var(--sp-3);
}
.card-grid .card { display: grid; gap: var(--sp-2); align-content: start; }
.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border-glass);
  border-radius: var(--r-chip);
  background: var(--bg-chip);
  margin-bottom: var(--sp-1);
}

/* Zahlen */
.kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: var(--sp-2);
}
.kpi {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .25rem;
  padding: var(--sp-4) var(--sp-3);
}
.kpi:nth-child(even)  { border-left: 1px solid var(--border-glass); }
.kpi:nth-child(n+3)   { border-top: 1px solid var(--border-glass); }
.kpi-num {
  font-size: var(--fs-kpi);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
}
.kpi-label { color: var(--text-muted); font-size: var(--fs-small); }

/* Prozess-Timeline */
/* Basis = mobil vertikal; Karten werden beim Scrollen nacheinander eingeblendet */
.timeline {
  --progress: 0;
  --node: 48px;
  position: relative;
  list-style: none;
  max-width: 640px;
  margin-inline: auto;
}
.timeline::before,
.timeline::after {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2);
  transform: translateX(-50%);
  width: 2px;
  border-radius: 2px;
}
/* graue Grundschiene */
.timeline::before {
  top: calc(var(--node) / 2);
  bottom: calc(var(--node) / 2);
  background: rgba(255, 255, 255, .12);
}
/* farbige Füllung */
.timeline::after {
  top: calc(var(--node) / 2);
  height: calc(var(--progress) * (100% - var(--node)));
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(124, 108, 240, .55);
  transition: height .3s ease;
}
.tl-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--node) 1fr;
  gap: var(--sp-3);
  padding-bottom: var(--sp-5);
}
.tl-step:last-child { padding-bottom: 0; }
.tl-node {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border: 2px solid var(--border-glass);
  border-radius: 50%;
  background: var(--bg-card);
  transition: border-color .35s ease, background .35s ease, box-shadow .35s ease, transform .35s ease;
}
.tl-num {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-faint);
  transition: color .35s ease;
}
/* Text jetzt in eigenem Kästchen */
.tl-body {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-card);
  padding: var(--sp-3) var(--sp-4);
}
.tl-body h3 { margin-bottom: .3rem; font-size: 1.0625rem; }
.tl-body p { font-size: var(--fs-small); }
/* Kästchen einblenden (mobil beim Scrollen, Desktop beim Erreichen des Punkts) */
@media (prefers-reduced-motion: no-preference) {
  html.js .tl-body {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
  }
  html.js .tl-step.is-active .tl-body {
    opacity: 1;
    transform: none;
  }
}
/* aktiver Schritt: Knoten farbig */
.tl-step.is-active .tl-node {
  border-color: transparent;
  background: var(--grad-brand);
  box-shadow: 0 0 22px rgba(124, 108, 240, .5);
  transform: scale(1.06);
}
.tl-step.is-active .tl-num { color: #fff; }
/* ohne JS: alles farbig + Kästchen sichtbar */
html:not(.js) .timeline { --progress: 1; }
html:not(.js) .tl-node { border-color: transparent; background: var(--grad-brand); }
html:not(.js) .tl-num { color: #fff; }

/* Qualitätskriterien */
.split {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
}
.split .section-head { margin-bottom: 0; }
.criteria ul {
  list-style: none;
  display: grid;
  gap: var(--sp-4);
}
.criteria li {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}
.criteria h3 { font-size: 1.0625rem; margin-bottom: .15rem; }
.criteria p  { font-size: var(--fs-small); }
.check {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: .1rem;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
}
.check .icon { width: 13px; height: 13px; }
.criteria-note {
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-glass);
  color: var(--text-faint);
  font-size: var(--fs-small);
}

/* Abgrenzung */
.role-grid {
  display: grid;
  gap: var(--sp-3);
}
.role-grid .card h3 { margin-bottom: var(--sp-2); font-size: 1.0625rem; }
/* Aufgehellter Verlauf: Kleintext braucht ≥4.5:1 auf #18181f (WCAG 1.4.3) */
.role-grid .card h3.grad-text {
  display: inline-block;
  background-image: linear-gradient(135deg, #6d9aff, #b48cf7);
}
.role-grid .card ul { display: grid; gap: .5rem; }
.role-grid .card li {
  color: var(--text-muted);
  font-size: var(--fs-small);
  padding-left: 1.2rem;
  position: relative;
}
.role-grid .card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
}

/* FAQ */
.faq-wrap { max-width: 780px; }
.faq-list { display: grid; gap: var(--sp-2); }
.faq-list details { padding: 0; }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: 1.15rem var(--sp-4);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: color var(--t-fast);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  content: "+" / ""; /* leerer Alt-Text: Screenreader lesen kein "plus" vor */
  flex: none;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--blue);
  transition: transform var(--t-med);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 var(--sp-4) 1.15rem;
  max-width: 60ch;
}
@keyframes faq-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.faq-list details[open] .faq-a { animation: faq-fade var(--t-med); }

/* Buchungs-CTA */
.cta-block {
  position: relative;
  background: var(--bg-panel);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--sp-3);
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--sp-4);
}
.cta-block::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  aspect-ratio: 1.8;
  background: radial-gradient(ellipse closest-side, rgba(124, 108, 240, .22), transparent 70%);
  pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block p { max-width: 520px; }
.calendar-placeholder {
  width: min(100%, 720px);
  min-height: 520px;
  margin-top: var(--sp-4);
  display: grid;
  place-items: center;
  border: 1px dashed var(--border-glass);
  border-radius: var(--r-card);
  color: var(--text-faint);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: var(--sp-7) 0 var(--sp-5);
  margin-top: calc(var(--section-pad) / 2);
}
.footer-grid {
  display: grid;
  gap: var(--sp-5);
}
.footer-brand { display: inline-block; }
.footer-brand img { height: 72px; width: auto; display: block; }
.footer-claim {
  max-width: 340px;
  margin: var(--sp-3) 0 var(--sp-3);
  font-size: var(--fs-small);
}
.footer-contact li { color: var(--text-faint); font-size: var(--fs-small); line-height: 1.9; }
.footer-grid h3 {
  font-size: var(--fs-eyebrow);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-faint);
  margin-bottom: var(--sp-2);
  font-weight: 500;
}
.footer-grid nav li { line-height: 2.1; }
.footer-grid nav a {
  color: var(--text-muted);
  font-size: var(--fs-small);
  transition: color var(--t-fast);
}
.footer-grid nav a:hover { color: var(--text); }
.footer-bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border-glass);
  color: var(--text-faint);
  font-size: var(--fs-small);
}

/* Rechtliche Unterseiten */
.legal {
  padding-top: calc(var(--header-h) + 3rem);
  padding-bottom: var(--sp-7);
  max-width: 780px;
}
.legal h1 { font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.legal h2 { font-size: 1.2rem; margin: var(--sp-5) 0 var(--sp-2); }
.legal h3 { font-size: 1.02rem; margin: var(--sp-3) 0 var(--sp-1); color: var(--text); }
.legal p { margin-bottom: var(--sp-3); }
.legal ul { margin: 0 0 var(--sp-3) 1.2rem; display: grid; gap: .35rem; }
.legal a { color: var(--blue); text-decoration: underline; }
.legal a:hover { color: var(--text); }
.legal .muted { color: var(--text-faint); font-size: var(--fs-small); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--sp-5);
  transition: color var(--t-fast);
}
.back-link:hover { color: var(--text); }

/* Vergleich: Ohne vs. Mit MCGA — dunkle Karten + Glas-Bubbles (Zeilen erscheinen beim Scrollen) */
.cmp { max-width: 860px; margin: var(--sp-5) auto 0; display: grid; gap: 14px; }
.cmp-head { display: grid; grid-template-columns: 1fr 1fr; padding: 0 1.6rem; }
.cmp-th { font-weight: 600; letter-spacing: .01em; font-size: 1.02rem; }
.cmp-th--bad  { color: var(--text-faint); }
.cmp-th--good { color: #6fe3a1; padding-left: .3rem; }

.cmp-row {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  background:
    radial-gradient(130% 130% at 88% 0%, rgba(124, 108, 240, .12), transparent 55%),
    var(--bg-card);
  overflow: hidden;
}
.cmp-row::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad-shine); }
.cmp-row::after  { content: ""; position: absolute; top: 16%; bottom: 16%; left: 50%; width: 1px; background: var(--border-glass); }
.cmp-side {
  display: flex; align-items: center; gap: .85rem;
  padding: 1.05rem 1.4rem; min-height: 74px;
  font-size: 1.05rem;
}
.cmp-side--bad { color: var(--text-faint); font-weight: 500; }
.cmp-side--bad::before { content: "✕"; color: var(--text-faint); opacity: .55; font-weight: 700; flex: none; }
.cmp-side--good { color: #6fe3a1; font-weight: 600; }

/* Glas-Bubble mit 3D-Objekt (wie in den Mockups unten) */
.cmp-bub {
  position: relative; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(130% 130% at 30% 22%, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04) 48%, rgba(255, 255, 255, .012) 72%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .4), 0 8px 18px rgba(0, 0, 0, .4);
  backdrop-filter: blur(4px) saturate(1.1); -webkit-backdrop-filter: blur(4px) saturate(1.1);
  overflow: hidden;
  animation: float-y 5s ease-in-out infinite alternate;
}
.cmp-bub::before {
  content: ""; position: absolute; left: 14%; top: 9%;
  width: 46%; height: 36%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), transparent 72%);
}
.cmp-bub img { width: 64%; height: 64%; object-fit: contain; position: relative; z-index: 1; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .4)); }
.cmp-row:nth-child(3) .cmp-bub { animation-delay: -1.2s; }
.cmp-row:nth-child(4) .cmp-bub { animation-delay: -2.4s; }
.cmp-row:nth-child(5) .cmp-bub { animation-delay: -3.1s; }
.cmp-row:nth-child(6) .cmp-bub { animation-delay: -1.8s; }
@media (max-width: 620px) {
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-row::after { display: none; }
  .cmp-side + .cmp-side { border-top: 1px solid var(--border-glass); }
}

/* ---------- 7. Scroll-Reveal (nur mit JS + ohne Reduced Motion) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
  }
  html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
  html.js .card-grid .reveal:nth-child(2),
  html.js .kpi:nth-child(2) { transition-delay: .08s; }
  html.js .card-grid .reveal:nth-child(3),
  html.js .kpi:nth-child(3) { transition-delay: .16s; }
  html.js .kpi:nth-child(4) { transition-delay: .24s; }
}

/* ============================================================
   RankSton-Adaption: Sterne, Logo-Leiste, Leistungs-Rows,
   Zielgruppen-Split, Testimonials, Wortmarke, Reveal-Varianten
   ============================================================ */

.section--tight { padding-block: var(--sp-5); }

/* Button-Chevron (RankSton "Book a Call ›")
   Auf ::before + order:1, weil ::after schon vom Spotlight-Rand belegt ist */
.btn--primary::before,
.btn--secondary::before {
  content: "";
  order: 1;
  width: .42em;
  height: .42em;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--t-fast), margin var(--t-fast);
}
.btn--primary:hover::before,
.btn--secondary:hover::before { margin-left: .14em; }
.nav-cta::before { display: none; } /* nicht in der schmalen Pill */

/* Hero-Sterne */
.hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .3rem .7rem;
  margin-top: var(--sp-2);
  color: var(--text-muted);
  font-size: var(--fs-small);
}
.stars { display: inline-flex; gap: 3px; color: var(--cyan); }
.stars svg { width: 18px; height: 18px; }
.hero-rating-text strong { font-weight: 700; }

/* Logo-Leiste */
.logos-caption {
  text-align: center;
  color: var(--text-faint);
  font-size: var(--fs-small);
  letter-spacing: .02em;
  margin-bottom: var(--sp-4);
}
/* Endlos-Slide: Logos laufen nach links, tauchen an den Rändern in eine
   unsichtbare Wand (Fade-Maske) und kommen auf der anderen Seite wieder */
.logos-row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.logos-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: logos-marquee 34s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }
@keyframes logos-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.logo-item {
  flex: none;
  display: grid;
  place-items: center;
  margin: 0 .9rem;         /* 1,8rem zwischen Logos = +20 % ggü. vorher (1,5rem) */
}
.logo-item img {
  height: 55px;            /* +~30 % */
  width: auto;
  max-width: 200px;
  object-fit: contain;
  opacity: .78;
}
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
  .logos-row { -webkit-mask-image: none; mask-image: none; }
}

/* Leistungs-Rows + Zielgruppen-Split */
.svc-row {
  display: grid;
  gap: var(--sp-5);
  align-items: center;
  margin-top: var(--sp-6);
}
.svc-text .eyebrow { margin-bottom: var(--sp-2); }
.svc-text h3 { font-size: 1.5rem; margin-bottom: var(--sp-2); }
.svc-text > p { margin-bottom: var(--sp-3); max-width: 46ch; }
.feature-list { list-style: none; display: grid; gap: .7rem; margin-bottom: var(--sp-3); }
.feature-list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--text-muted); font-size: var(--fs-small); }
.tick {
  display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; margin-top: .05rem;
  border-radius: 50%; background: var(--grad-brand); color: #fff;
}
.tick svg { width: 11px; height: 11px; }

/* Mockup-/Bild-Platzhalter */
.mockup {
  position: relative;
  aspect-ratio: 16 / 11;
  border: 1px solid var(--border-glass);
  border-radius: var(--r-card-lg);
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(124, 108, 240, .14), transparent 55%),
    var(--bg-card);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mockup::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--grad-shine); }
.mockup-label { color: var(--text-faint); font-size: var(--fs-small); letter-spacing: .04em; }
.float-icon {
  position: absolute;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: radial-gradient(130% 130% at 30% 22%, rgba(255, 255, 255, .2), rgba(255, 255, 255, .04) 48%, rgba(255, 255, 255, .012) 72%);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, .4), 0 10px 24px rgba(0, 0, 0, .4);
  backdrop-filter: blur(4px) saturate(1.1); -webkit-backdrop-filter: blur(4px) saturate(1.1);
  overflow: hidden;
  animation: float-y 5s ease-in-out infinite alternate;
}
.float-icon::before {
  content: ""; position: absolute; left: 14%; top: 9%;
  width: 46%; height: 36%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .55), transparent 72%);
  pointer-events: none;
}
.float-icon img {
  width: 64%; height: 64%; object-fit: contain; display: block;
  position: relative; z-index: 1;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .4));
}
.float-icon--a { top: 14%; left: 8%; }
.float-icon--b { bottom: 14%; right: 8%; animation-delay: -2.5s; }
@keyframes float-y { from { transform: translateY(5px); } to { transform: translateY(-7px); } }

/* Testimonials-Carousel */
.carousel { max-width: 780px; margin-inline: auto; }
.carousel-viewport { overflow: hidden; border-radius: var(--r-card-lg); }
.carousel-track { display: flex; transition: transform .5s cubic-bezier(.4, 0, .2, 1); }
.tcard {
  flex: 0 0 100%;
  box-sizing: border-box;
  padding: var(--sp-5);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--r-card-lg);
  display: grid;
  gap: var(--sp-3);
}
.tcard .quote { width: 34px; height: 34px; color: var(--violet); opacity: .85; }
.tcard blockquote { font-size: 1.15rem; line-height: 1.55; color: var(--text); }
.tcard figcaption { display: flex; align-items: center; gap: var(--sp-3); }
.avatar {
  display: grid; place-items: center; flex: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--bg-chip); border: 1px solid var(--border-glass);
  color: var(--text-faint); font-size: .7rem;
}
.who { display: grid; }
.who strong { font-weight: 600; }
.who span { color: var(--text-muted); font-size: var(--fs-small); }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-4); }
.carousel-btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-chip); border: 1px solid var(--border-glass);
  color: var(--text); cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.carousel-btn:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, .05); }
.carousel-btn svg { width: 20px; height: 20px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: var(--border-strong);
  transition: background var(--t-fast), width var(--t-fast);
}
.carousel-dot.is-active { width: 22px; border-radius: 4px; background: var(--grad-brand); }

/* Riesige Wortmarke im Abschluss (RankSton Footer-Hero) */
.mega-brand {
  text-align: center;
  margin-top: var(--sp-7);
  filter: drop-shadow(0 0 60px rgba(124, 108, 240, .35));
}
.mega-brand img {
  display: block;
  width: min(1150px, 92%);
  height: auto;
  margin-inline: auto;
}


/* Reveal-Varianten (nutzen denselben IntersectionObserver wie .reveal) */
@media (prefers-reduced-motion: no-preference) {
  html.js .reveal--scale { transform: scale(.72); }
  html.js .reveal--scale.is-visible { transform: none; }
  html.js .reveal--flip { transform: perspective(700px) rotateX(90deg); transform-origin: bottom center; }
  html.js .reveal--flip.is-visible { transform: none; }
}

/* Desktop: svc-row zweispaltig, Bild abwechselnd links/rechts */
@media (min-width: 768px) {
  .svc-row { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
  .svc-row--rev .svc-media { order: -1; }
  .tcard { padding: var(--sp-6); }
  .tcard blockquote { font-size: 1.3rem; }
}

/* ---------- Hero-Extras: Lichtstrahlen, Cursor-Tags, Emoji-Icons, Skeleton-Mockups ---------- */
.hero-inner { z-index: 1; text-shadow: 0 2px 22px rgba(6, 6, 14, .6); }

/* Zwei Bühnen-Lichtstrahlen auf die Headline (RankSton hero-light-1/2, unsere Farben) */
.hero-beam {
  position: absolute;
  top: -10%;
  width: 48%;
  height: 135%;
  pointer-events: none;
  z-index: 0;
  filter: blur(16px);
  opacity: .5;
  mix-blend-mode: screen;
}
.hero-beam--l {
  left: -8%;
  transform-origin: top left;
  transform: rotate(22deg);
  background: linear-gradient(180deg, rgba(91, 140, 255, .6), rgba(86, 199, 230, .12) 46%, transparent 72%);
  clip-path: polygon(0 0, 100% 0, 60% 100%, 0 80%);
}
.hero-beam--r {
  right: -8%;
  transform-origin: top right;
  transform: rotate(-22deg);
  background: linear-gradient(180deg, rgba(155, 92, 240, .6), rgba(124, 108, 240, .12) 46%, transparent 72%);
  clip-path: polygon(0 0, 100% 0, 100% 80%, 40% 100%);
}

/* Schwebende Cursor-Tags mit zeitgesteuerter Bewegung (RankSton hero-tag-1/2) */
.hero-tag {
  position: absolute;
  z-index: 2;
  display: inline-block;
  padding: .55rem 1.05rem;
  font-size: .95rem;
  font-weight: 500;
  color: #fff;
  background: rgba(12, 12, 18, .72);
  border: 1px solid var(--tag-accent, var(--border-glass));
  border-radius: var(--tag-radius, 22px);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  /* dunkle Tiefe + zarter Glow in Akzentfarbe: außen ein Hauch, innen weicher Schein */
  box-shadow:
    0 8px 24px rgba(0, 0, 0, .35),
    0 0 16px -3px var(--tag-glow, rgba(120, 140, 255, .35)),
    inset 0 0 16px 0 var(--tag-glow, rgba(120, 140, 255, .3));
}
/* Cursor sitzt AUSSERHALB des Rahmens, mit Abstand über der kantigen Ecke */
.hero-tag .tag-cursor {
  position: absolute;
  width: 25px; height: 25px;
  color: var(--tag-accent, var(--blue));
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .55));
}
/* LINKS (cyan) — wie grüne Vorlage: Cursor oben-rechts, Spitze nach oben-rechts,
   kantige Ecke sitzt in der Kerbe des Cursors. Höher gesetzt (Safe-Zone über den Sternen). */
.hero-tag--1 {
  --tag-accent: var(--cyan);
  --tag-glow: rgba(86, 199, 230, .34);
  --tag-radius: 22px 0 22px 22px;
  top: 60%; left: 6%;
  animation: tag-penta-a 7.4s ease-in-out infinite;
}
.hero-tag--1 .tag-cursor { top: -13px; right: -13px; }
/* RECHTS (violett) — wie gelbe Vorlage: Cursor oben-links, Spitze nach oben-links,
   kantige Ecke sitzt in der Kerbe des Cursors (natürliche Ausrichtung, kein Spiegeln). */
.hero-tag--2 {
  --tag-accent: var(--violet);
  --tag-glow: rgba(139, 92, 246, .36);
  --tag-radius: 0 22px 22px 22px;
  top: 45%; right: 13%;
  animation: tag-penta-b 9.2s ease-in-out infinite;
}
.hero-tag--2 .tag-cursor { top: -14px; left: -13px; }
/* Fünfeck-Bewegung: 5 Punkte, an jedem kurzes Verharren, zurück zum Start, Loop.
   Distanz verdoppelt + halbe Geschwindigkeit → ruhiger, weiter schwebend. */
@keyframes tag-penta-a {
  0%,4%    { transform: translate(0, 0); }
  18%,22%  { transform: translate(28px, -14px); }
  38%,42%  { transform: translate(18px, 26px); }
  58%,62%  { transform: translate(-20px, 22px); }
  78%,82%  { transform: translate(-26px, -16px); }
  96%,100% { transform: translate(0, 0); }
}
@keyframes tag-penta-b {
  0%,4%    { transform: translate(0, 0); }
  18%,22%  { transform: translate(-28px, -12px); }
  38%,42%  { transform: translate(-16px, 26px); }
  58%,62%  { transform: translate(22px, 24px); }
  78%,82%  { transform: translate(28px, -14px); }
  96%,100% { transform: translate(0, 0); }
}

/* Emoji-Icons (3D-Look) in Orbit-Chips + Mockup-Floats */
/* Logo-Sphäre in der Ringmitte (wie das Ziel-Objekt im Vorbild) */
.hero-logo-orb {
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  display: grid; place-items: center;
  z-index: 3;
  background: radial-gradient(130% 130% at 32% 24%, #8fa9ff, #5b8cff 40%, #7c6cf0 74%, #6344c8);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, .55),
    inset 0 -16px 30px rgba(30, 16, 80, .5),
    0 0 50px 8px rgba(124, 108, 240, .55),
    0 14px 34px rgba(0, 0, 0, .5);
}
.hero-logo-orb::before {
  content: ""; position: absolute; left: 15%; top: 10%;
  width: 46%; height: 36%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .7), transparent 72%);
  pointer-events: none;
}
.hero-logo-orb img {
  width: 50%; height: 50%; object-fit: contain;
  position: relative; z-index: 1;
  filter: drop-shadow(0 3px 5px rgba(20, 10, 60, .5));
}

/* Skeleton-Mockup-Inhalt (RankSton service-mockups) */
.mock-ui { width: 80%; display: grid; gap: 12px; }
.mock-card { padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--border-glass); display: grid; gap: 9px; }
.mock-row { display: flex; align-items: center; gap: 11px; margin-bottom: 2px; }
.mock-dot { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .1); flex: none; }
.mock-bar { height: 9px; border-radius: 5px; background: linear-gradient(90deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .05)); }
.mock-bar.w95 { width: 95%; } .mock-bar.w85 { width: 85%; } .mock-bar.w70 { width: 70%; }
.mock-bar.w55 { width: 55%; } .mock-bar.w40 { width: 40%; }

/* Score-Gauge (RankSton "90") */
.score-badge {
  position: absolute; right: 5%; bottom: 7%;
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(12, 11, 18, .9);
  color: #fff; font-weight: 700; font-size: 1.2rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4), inset 0 0 20px rgba(124, 108, 240, .25);
  animation: float-y 5s ease-in-out infinite alternate;
  animation-delay: -1.5s;
}
.score-badge::before {
  content: ""; position: absolute; inset: -2px; border-radius: 50%;
  background: conic-gradient(from -90deg, var(--cyan), var(--violet) 78%, rgba(255, 255, 255, .08) 78%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}

/* Deko-Cursor nur ab Desktop-Breite zeigen — darunter rückt der zentrierte
   Text (Sterne/Bewertung) in die Tag-Zone und würde verdeckt. */
@media (max-width: 1099px) {
  .hero-tag { display: none; }
}

/* ---------- Pointer-Effekte (Cursor-Glow + Rand-Spotlight) ---------- */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  margin: -150px 0 0 -150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 124, 246, .34), rgba(124, 108, 240, .15) 38%, transparent 66%);
  pointer-events: none;
  z-index: -1;
  opacity: 0;
  transition: opacity .4s ease;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .has-spotlight { position: relative; }
  /* leuchtender Rand, der dem Cursor folgt (Maske zeigt nur den Rahmen) */
  .has-spotlight::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: radial-gradient(
      150px circle at var(--mx, -300px) var(--my, -300px),
      rgba(139, 124, 246, .95),
      rgba(86, 199, 230, .5) 32%,
      transparent 68%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    /* JS setzt --glow = Nähe (0..1) → Reflexion wird stärker, je näher der Cursor kommt */
    opacity: var(--glow, 0);
    transition: opacity .12s linear;
    pointer-events: none;
    z-index: 3;
  }
}

/* ---------- 8. Media Queries ---------- */

/* Timeline ab Desktop: horizontal, Kästchen abwechselnd über/unter der Linie, Sektion gepinnt */
@media (min-width: 1000px) {
  .timeline {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    min-height: 480px;
  }
  /* Schiene auf der Mittellinie */
  .timeline::before,
  .timeline::after {
    top: 50%;
    bottom: auto;
    left: 10%;
    transform: translateY(-50%);
    width: auto;
    height: 2px;
  }
  .timeline::before { right: 10%; }
  .timeline::after {
    width: calc(var(--progress) * 80%);
    transition: width .12s linear;
  }
  /* jeder Schritt: [ oben | Knoten | unten ] */
  .tl-step {
    grid-template-columns: none;
    grid-template-rows: 1fr auto 1fr;
    justify-items: center;
    text-align: center;
    gap: 0;
    padding: 0 var(--sp-2);
  }
  .tl-node { grid-row: 2; }
  .tl-body {
    grid-row: 3;                 /* Standard: unter der Linie */
    align-self: start;
    margin-top: var(--sp-3);
    max-width: 185px;
    padding: var(--sp-2) var(--sp-3);
  }
  .tl-step:nth-child(odd) .tl-body {
    grid-row: 1;                 /* ungerade: über der Linie */
    align-self: end;
    margin-top: 0;
    margin-bottom: var(--sp-3);
  }
  .tl-body h3 { font-size: .9375rem; padding-top: 0; }
  /* dezenter Verbinder Knoten ↔ Kästchen */
  .tl-node::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 1px;
    height: var(--sp-3);
    background: var(--border-glass);
    transform: translateX(-50%);
  }
  .tl-step:nth-child(even) .tl-node::before { top: 100%; }
  .tl-step:nth-child(odd)  .tl-node::before { bottom: 100%; }

  /* Pin: Seite steht still, während Punkte 1→5 durchlaufen */
  .tl-pin { height: 320vh; }
  .tl-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    place-content: center;
  }
}
/* Reduced Motion: nicht pinnen (kein Scroll-Jacking) */
@media (min-width: 1000px) and (prefers-reduced-motion: reduce) {
  .tl-pin { height: auto; }
  .tl-sticky { position: static; height: auto; display: block; }
}

/* Mobil: Nav-Panel als Dropdown */
@media (max-width: 719px) {
  .nav-toggle { display: flex; }
  .nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + .6rem);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-3);
    padding: var(--sp-4);
    background: rgba(10, 10, 15, .96);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  .nav--open .nav-panel { display: flex; }
  .nav-links {
    flex-direction: column;
    gap: var(--sp-2);
  }
  .nav-links a { display: block; padding: .35rem 0; font-size: 1rem; }
  .hero-points { flex-direction: column; align-items: center; }
}

@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .role-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }

  /* Desktop-Nav: Logo links, Link-Pille zentriert, CTA rechts — jeweils separat */
  .nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--sp-3);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .brand { justify-self: start; }
  .nav-panel {
    justify-self: center;
    padding: .55rem 1.5rem;
    background: rgba(10, 10, 15, .70);
    border: 1px solid var(--border-glass);
    border-radius: var(--r-pill);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .nav-cta--panel { display: none; }
  .nav-cta--bar { display: inline-flex; justify-self: end; }
}

@media (min-width: 1024px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  /* 4 KPI-Spalten erst ab 1024px — bei 720-1023px sprengen reale Zahlen die 1fr-Spalten */
  .kpis { grid-template-columns: repeat(4, 1fr); padding: var(--sp-3); }
  .kpi { border: 0 !important; }
  .kpi + .kpi { border-left: 1px solid var(--border-glass) !important; }
  .orbit-chip { display: grid; }
}

/* ---------- 9. Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
