/* ==========================================================================
   fourscale.de — Designsystem v2 „System-Spektrum"
   Idee: Farbe kodiert Reifegrad. Ein kontrolliertes Spektrum
   Violett → Blau → Cyan → Teal steht für den Weg von der Hypothese (P1)
   zum laufenden System (P4). Monochromes Ink als Grund, Akzent sparsam.
   Typografie: Bricolage Grotesque (Display) + Inter (Text), self-hosted.
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #131226;
  --ink-2: #201f3c;
  --body: #4b4a66;
  --muted: #6b6885;
  --bg: #ffffff;
  --bg-soft: #f7f7fc;
  --border: #e8e7f3;
  --border-strong: #d9d7ec;

  /* Spektrum: Phase 1 → 4 */
  --p1: #6c5cf6;
  --p2: #3d7bf4;
  --p3: #0fa5cb;
  --p4: #10b98a;
  --p1-deep: #4f41d8;
  --p2-deep: #2563e0;
  --p3-deep: #0b7f9e;
  --p4-deep: #0b8a68;
  --t1: #f0eefe;
  --t2: #ebf2fe;
  --t3: #e7f6fa;
  --t4: #e7f8f2;

  /* Text-taugliche Abdunklungen (WCAG) */
  --p3-text: #0a6f8a;
  --p4-text: #097457;

  --spectrum: linear-gradient(90deg, #6c5cf6, #3d7bf4, #0fa5cb, #10b98a);
  --grad-hero: linear-gradient(105deg, #6c5cf6 0%, #3d7bf4 48%, #10b98a 100%);
  /* Für Text auf Weiß: nur Deep-Töne (>=4.3:1) */
  --grad-text: linear-gradient(105deg, #4f41d8 0%, #2563e0 48%, #0b8a68 100%);

  /* Dunkle Produkt-Sektion */
  --night: #131226;
  --night-2: #1a1936;
  --night-border: rgba(255, 255, 255, 0.1);
  --night-text: #c9c7e2;
  --night-muted: #8d8ab0;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 8px 30px rgba(19, 18, 38, 0.06);
  --shadow-lift: 0 18px 44px rgba(19, 18, 38, 0.1);

  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* --------- Reset & Grundlagen --------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: var(--p1-deep);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.05rem, 6.2vw, 4.35rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.85rem, 3.6vw, 2.7rem);
  font-weight: 750;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}
p {
  margin: 0 0 1em;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:focus-visible {
  outline: 3px solid var(--p1);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 70;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 650;
}
.skip-link:focus-visible {
  top: 12px;
  text-decoration: none;
}
section {
  padding: 88px 0;
}
.section-soft {
  background: var(--bg-soft);
}

/* --------- Scroll-Progress (Spektrum) --------- */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  background: var(--spectrum);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
}

/* --------- Eyebrow / Labels --------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
}
.dots {
  display: inline-flex;
  gap: 4px;
}
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dots i:nth-child(1) {
  background: var(--p1);
}
.dots i:nth-child(2) {
  background: var(--p2);
}
.dots i:nth-child(3) {
  background: var(--p3);
}
.dots i:nth-child(4) {
  background: var(--p4);
}

.section-head {
  max-width: 720px;
  margin-bottom: 48px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head .eyebrow {
  margin-bottom: 18px;
}
.section-head p {
  font-size: 1.125rem;
}

/* --------- Buttons --------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 26px rgba(19, 18, 38, 0.28);
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -65%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.btn-primary:hover::before {
  left: 115%;
  transition: left 0.55s ease;
}
.btn-primary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.btn-primary:hover {
  background: var(--ink-2);
  box-shadow: 0 14px 32px rgba(19, 18, 38, 0.34);
}
.btn-primary:hover::after {
  transform: rotate(45deg) translate(2px, -2px);
}
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
  box-shadow: var(--shadow);
}
.btn-ghost:hover {
  border-color: var(--p1);
}
.btn-light {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}
.btn-light::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 2.5px solid currentColor;
  border-right: 2.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.btn-light:hover::after {
  transform: rotate(45deg) translate(2px, -2px);
}

/* --------- Navigation --------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(232, 231, 243, 0.8);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--body);
  font-weight: 550;
  font-size: 0.97rem;
}
.nav-links a:hover {
  color: var(--ink);
  text-decoration: none;
}
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: #fff;
}
.nav .btn {
  padding: 11px 20px;
  font-size: 0.94rem;
}
.nav-burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  margin: 4.5px 0;
  transition: 0.2s;
}

/* --------- Hero: Engineering-Grid + eine ruhige Aurora --------- */
.hero {
  position: relative;
  padding: 178px 0 100px;
  text-align: center;
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(19, 18, 38, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(19, 18, 38, 0.05) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 35%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 38%, #000 35%, transparent 78%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 560px;
  background: radial-gradient(closest-side, rgba(108, 92, 246, 0.16), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(61, 123, 244, 0.12), transparent 70%),
    radial-gradient(closest-side at 72% 62%, rgba(16, 185, 138, 0.11), transparent 70%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}
.hero .eyebrow {
  margin-bottom: 26px;
}
.hero h1 {
  max-width: 850px;
  margin: 0 auto 24px;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 660px;
  margin: 0 auto 36px;
  font-size: 1.19rem;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.hero-proof {
  display: flex;
  justify-content: center;
  gap: 12px 28px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 550;
}
.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.check {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--t4);
  color: var(--p4-text);
}
.check svg {
  width: 9px;
  height: 9px;
}
.phase-card .check svg {
  width: 8px;
  height: 8px;
}

/* --------- Leitsatz-Band --------- */
.claim-band {
  position: relative;
  padding: 58px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.claim-band::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--spectrum);
}
.claim-band .container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.claim-mark {
  flex: none;
}
.claim-band h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin: 0 0 8px;
}
.claim-band p {
  margin: 0;
  max-width: 760px;
}

/* --------- Card-Grids --------- */
.grid {
  display: grid;
  gap: 22px;
}
.grid > * {
  min-width: 0;
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
}
/* Gel-Tiles: dimensionale Glossy-Icons */
.gel {
  width: 68px;
  height: 68px;
  margin-bottom: 20px;
  border-radius: 20px;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
}
.gel svg {
  width: 100%;
  height: 100%;
  display: block;
}
.gel-sm {
  width: 52px;
  height: 52px;
  margin: 0;
  flex: none;
  border-radius: 16px;
}
.gel-1 {
  box-shadow: 0 10px 22px rgba(79, 65, 216, 0.35);
}
.gel-2 {
  box-shadow: 0 10px 22px rgba(37, 99, 224, 0.35);
}
.gel-3 {
  box-shadow: 0 10px 22px rgba(10, 127, 158, 0.35);
}
.gel-4 {
  box-shadow: 0 10px 22px rgba(11, 138, 104, 0.35);
}
.card:hover .gel,
.feature-list li:hover .gel {
  transform: translateY(-6px) scale(1.07) rotate(-3deg);
}
.card:hover .gel-1,
.feature-list li:hover .gel-1 {
  box-shadow: 0 18px 34px rgba(79, 65, 216, 0.5);
}
.card:hover .gel-2,
.feature-list li:hover .gel-2 {
  box-shadow: 0 18px 34px rgba(37, 99, 224, 0.5);
}
.card:hover .gel-3,
.feature-list li:hover .gel-3 {
  box-shadow: 0 18px 34px rgba(10, 127, 158, 0.5);
}
.card:hover .gel-4,
.feature-list li:hover .gel-4 {
  box-shadow: 0 18px 34px rgba(11, 138, 104, 0.5);
}
/* Auf Night-Grund brauchen die Glows hellere Spektrumfarben */
.platform-dark .gel-1 {
  box-shadow: 0 10px 26px rgba(108, 92, 246, 0.45);
}
.platform-dark .gel-2 {
  box-shadow: 0 10px 26px rgba(61, 123, 244, 0.45);
}
.platform-dark .gel-3 {
  box-shadow: 0 10px 26px rgba(15, 165, 203, 0.45);
}
.platform-dark .gel-4 {
  box-shadow: 0 10px 26px rgba(16, 185, 138, 0.45);
}
.platform-dark .feature-list li:hover .gel-1 {
  box-shadow: 0 16px 38px rgba(108, 92, 246, 0.65);
}
.platform-dark .feature-list li:hover .gel-2 {
  box-shadow: 0 16px 38px rgba(61, 123, 244, 0.65);
}
.platform-dark .feature-list li:hover .gel-3 {
  box-shadow: 0 16px 38px rgba(15, 165, 203, 0.65);
}
.platform-dark .feature-list li:hover .gel-4 {
  box-shadow: 0 16px 38px rgba(16, 185, 138, 0.65);
}
.gel .gloss {
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.card:hover .gel .gloss,
.feature-list li:hover .gel .gloss {
  transform: translateY(4px);
  opacity: 0.75;
}
/* Icon-Eigenleben bei Hover */
.gel .glyph-hourglass,
.gel .needle,
.gel .slash,
.gel .glyph-plane,
.gel .cb,
.gel .sp1,
.gel .sp2,
.gel .b1,
.gel .b2 {
  transform-box: fill-box;
}
.gel .glyph-hourglass {
  transform-origin: 50% 50%;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card:hover .glyph-hourglass {
  transform: rotate(180deg);
}
.gel .needle {
  transform-origin: 0% 100%;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.card:hover .needle {
  transform: rotate(40deg);
}
.gel .slash {
  transition: stroke-dashoffset 0.45s ease 0.05s;
}
.card:hover .slash {
  stroke-dashoffset: 0;
}
.gel .b1,
.gel .b2 {
  opacity: 0;
}
.card:hover .b1 {
  animation: gel-bubble 1.4s ease-in-out infinite;
}
.card:hover .b2 {
  animation: gel-bubble 1.4s ease-in-out 0.35s infinite;
}
@keyframes gel-bubble {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-9px);
  }
}
.gel .cb {
  transform-origin: 50% 100%;
}
.feature-list li:hover .cb1 {
  animation: gel-barpop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.feature-list li:hover .cb2 {
  animation: gel-barpop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.07s both;
}
.feature-list li:hover .cb3 {
  animation: gel-barpop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.14s both;
}
.feature-list li:hover .cb4 {
  animation: gel-barpop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.21s both;
}
@keyframes gel-barpop {
  0% {
    transform: scaleY(0.45);
  }
  100% {
    transform: scaleY(1);
  }
}
.feature-list li:hover .routepath {
  animation: gel-dashflow 1s linear infinite;
}
@keyframes gel-dashflow {
  to {
    stroke-dashoffset: -14;
  }
}
.gel .glyph-plane {
  transition: transform 0.4s ease;
}
.feature-list li:hover .glyph-plane {
  transform: translate(3px, -3px);
}
.gel .trail {
  transition: stroke-dashoffset 0.4s ease 0.1s;
}
.feature-list li:hover .trail {
  stroke-dashoffset: 0;
}
.gel .sp1,
.gel .sp2 {
  transform-origin: 50% 50%;
}
.feature-list li:hover .sp1 {
  animation: gel-twinkle 1.2s ease-in-out infinite;
}
.feature-list li:hover .sp2 {
  animation: gel-twinkle 1.2s ease-in-out 0.6s infinite;
}
@keyframes gel-twinkle {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.72);
    opacity: 0.6;
  }
}
.card p {
  margin: 0;
  font-size: 0.99rem;
}

/* --------- Kreislauf mit animiertem Datenfluss --------- */
.loop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 44px 0 10px;
  padding: 0;
}
.loop li {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.loop button.step {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.loop .step.active {
  transform: translateY(-2px);
  border-color: var(--p2);
  box-shadow: 0 10px 26px rgba(61, 123, 244, 0.22);
}
.loop .tip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: 250px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-lift);
  padding: 12px 15px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--body);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
  z-index: 20;
}
.loop li:hover .tip,
.loop li:focus-within .tip,
.loop li.open .tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.loop .step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 10px 20px 10px 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.loop .num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: 0.9rem;
}
.loop .s1,
.loop .s2 {
  background: var(--t1);
  color: var(--p1-deep);
}
.loop .s3,
.loop .s4 {
  background: var(--t2);
  color: var(--p2-deep);
}
.loop .s5 {
  background: var(--t3);
  color: var(--p3-text);
}
.loop .s6 {
  background: var(--t4);
  color: var(--p4-text);
}
/* Animierter Datenfluss zwischen den Stufen */
.loop li:not(:last-child)::after {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: repeating-linear-gradient(90deg, var(--p2) 0 5px, transparent 5px 11px);
  animation: flow-x 0.9s linear infinite;
}
@keyframes flow-x {
  to {
    background-position: 11px 0;
  }
}
.loop .again {
  background: var(--t1);
  border-color: #d9d2fd;
  color: var(--p1-deep);
  padding: 10px 20px;
  gap: 8px;
}
.loop .again svg {
  width: 15px;
  height: 15px;
}
.loop-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 620px;
  margin: 18px auto 0;
}

/* --------- Werthebel --------- */
.lever-grid {
  margin-top: 54px;
}
.lever {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 30px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.lever::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.lever-pipeline::before {
  background: linear-gradient(90deg, var(--p3), var(--p4));
}
.lever-cost::before {
  background: linear-gradient(90deg, var(--p1), var(--p2));
}
.lever h3 {
  margin-bottom: 14px;
}
.lever li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 0.99rem;
}
.lever .check {
  margin-top: 4px;
}
.lever-cost .check {
  background: var(--t1);
  color: var(--p1-deep);
}

/* --------- Phasen: Spektrum-Verlauf 1 → 4 --------- */
.phase-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.phase-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.phase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.phase-1::before {
  background: linear-gradient(90deg, var(--p1), var(--p2));
}
.phase-2::before {
  background: linear-gradient(90deg, var(--p2), var(--p3));
}
.phase-3::before {
  background: linear-gradient(90deg, var(--p3), var(--p4));
}
.phase-4::before {
  background: var(--p4);
}
.phase-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
}
.phase-1 .phase-num {
  color: var(--p1);
}
.phase-2 .phase-num {
  color: var(--p2);
}
.phase-3 .phase-num {
  color: var(--p3-deep);
}
.phase-4 .phase-num {
  color: var(--p4-deep);
}
.phase-card h3 {
  margin: 0;
}
.phase-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.95rem;
}
.phase-card li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.phase-card .check {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  font-size: 0.62rem;
}
.phase-1 .check {
  background: var(--t1);
  color: var(--p1-deep);
}
.phase-2 .check {
  background: var(--t2);
  color: var(--p2-deep);
}
.phase-3 .check {
  background: var(--t3);
  color: var(--p3-deep);
}
.phase-4 .check {
  background: var(--t4);
  color: var(--p4-deep);
}
.phase-result {
  margin-top: 40px;
  text-align: center;
  font-size: 1.17rem;
  color: var(--ink);
  font-weight: 600;
}
.phase-result .grad-text {
  font-weight: 750;
}

/* --------- Plattform: dunkle Produkt-Sektion --------- */
.platform-dark {
  background: var(--night);
  position: relative;
  overflow: clip;
}
.platform-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 380px at 12% 8%, rgba(108, 92, 246, 0.22), transparent 70%),
    radial-gradient(560px 360px at 90% 92%, rgba(16, 185, 138, 0.14), transparent 70%);
  pointer-events: none;
}
.platform-dark > .container {
  position: relative;
}
.platform-dark h2 {
  color: #fff;
}
.platform-dark p {
  color: var(--night-text);
}
.platform-dark .eyebrow {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--night-border);
  color: #fff;
  box-shadow: none;
}
.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.platform-grid > * {
  min-width: 0;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 26px 0 30px;
}
.feature-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feature-list strong {
  display: block;
  color: var(--ink);
  font-weight: 650;
}
.platform-dark .feature-list strong {
  color: #fff;
}
.feature-list span {
  font-size: 0.95rem;
}
.platform-dark .feature-list span {
  color: var(--night-muted);
}
.platform-dark .btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--night-border);
  color: #fff;
  box-shadow: none;
}
.platform-dark .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.35);
}

.portal-frame {
  position: relative;
}
.portal-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--night-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  padding: 22px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.portal-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 32%, transparent 48%);
  pointer-events: none;
}
.portal-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--night-border);
  margin-bottom: 18px;
}
.portal-top i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}
.portal-top span {
  margin-left: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--night-muted);
}
.kpi-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.kpi {
  min-width: 0;
  border: 1px solid var(--night-border);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.kpi:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.05);
}
.kpi label,
.timeline label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--night-muted);
  display: block;
  margin-bottom: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 44px;
}
.bars i {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  transform: scaleY(0.15);
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.portal-frame.in .bars i {
  transform: none;
}
.bars i:nth-child(2) {
  transition-delay: 0.08s;
}
.bars i:nth-child(3) {
  transition-delay: 0.16s;
}
.bars i:nth-child(4) {
  transition-delay: 0.24s;
}
.bars i:nth-child(5) {
  transition-delay: 0.32s;
}
.kpi-1 .bars i {
  background: rgba(108, 92, 246, 0.35);
}
.kpi-1 .bars i.hi {
  background: var(--p1);
  box-shadow: 0 0 14px rgba(108, 92, 246, 0.55);
}
.kpi-2 .bars i {
  background: rgba(61, 123, 244, 0.35);
}
.kpi-2 .bars i.hi {
  background: var(--p2);
  box-shadow: 0 0 14px rgba(61, 123, 244, 0.55);
}
.kpi-3 .bars i {
  background: rgba(16, 185, 138, 0.35);
}
.kpi-3 .bars i.hi {
  background: var(--p4);
  box-shadow: 0 0 14px rgba(16, 185, 138, 0.55);
}
.timeline {
  border: 1px solid var(--night-border);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.tl-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.tl-track i {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--night-border);
}
.tl-track i.done {
  background: linear-gradient(90deg, var(--p1), var(--p2));
  border: 0;
}
.tl-track i.done + i.done {
  background: linear-gradient(90deg, var(--p2), var(--p3));
}
.tl-track i.half {
  background: linear-gradient(90deg, var(--p3) 55%, rgba(255, 255, 255, 0.06) 55%);
  border: 0;
}
.tl-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--night-muted);
  font-weight: 600;
}
.portal-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--night-muted);
  margin-top: 14px;
}

/* --------- Projekte --------- */
.case-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.tag {
  font-size: 0.78rem;
  font-weight: 650;
  padding: 5px 12px;
  border-radius: 999px;
}
.tag-a {
  background: var(--t1);
  color: var(--p1-deep);
}
.tag-b {
  background: var(--t2);
  color: var(--p2-deep);
}
.tag-c {
  background: var(--t3);
  color: var(--p3-text);
}
.tag-d {
  background: var(--t4);
  color: var(--p4-text);
}
.case-card ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 14px;
  font-size: 0.97rem;
}
.case-card li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.case-card .check {
  margin-top: 4px;
}
.case-note {
  margin-top: 26px;
  text-align: center;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* --------- Über --------- */
.about-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.about-grid > * {
  min-width: 0;
}
.avatar-card {
  text-align: center;
  padding: 36px 28px;
}
.avatar {
  width: 128px;
  height: 128px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 4px;
  background: var(--grad-hero);
}
.avatar span {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--ink);
}
.avatar-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}
.avatar-card em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
}
.station-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  justify-content: center;
}
.about-quote {
  position: relative;
  margin: 24px 0 0;
  padding: 22px 26px 22px 30px;
  background: var(--bg-soft);
  border-radius: 14px;
  color: var(--ink);
  font-weight: 550;
}
.about-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: var(--spectrum);
}

/* --------- FAQ --------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  font-weight: 650;
  color: var(--ink);
  font-size: 1.03rem;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--t1);
  color: var(--p1-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 24px 22px;
  margin: 0;
  font-size: 0.99rem;
}

/* --------- CTA: Nacht + Aurora --------- */
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--night);
  color: #fff;
  text-align: center;
  padding: 78px 32px;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(480px 320px at 14% 0%, rgba(108, 92, 246, 0.35), transparent 70%),
    radial-gradient(460px 320px at 88% 100%, rgba(16, 185, 138, 0.25), transparent 70%),
    radial-gradient(380px 260px at 55% 120%, rgba(61, 123, 244, 0.2), transparent 70%);
}
.cta-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--spectrum);
  opacity: 0.9;
}
.cta-panel > * {
  position: relative;
  z-index: 1;
}
.cta-panel h2 {
  color: #fff;
  max-width: 640px;
  margin: 0 auto 16px;
}
.cta-panel p {
  color: var(--night-text);
  max-width: 560px;
  margin: 0 auto 34px;
  font-size: 1.13rem;
}
.cta-mail {
  display: block;
  margin-top: 22px;
  color: var(--night-muted);
  font-size: 0.98rem;
}
.cta-mail a {
  color: #fff;
  font-weight: 650;
  text-decoration: underline;
}

/* --------- Footer --------- */
footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 56px 0 34px;
  font-size: 0.96rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid p {
  color: var(--muted);
  max-width: 320px;
}
.footer-grid h4 {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-grid ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-grid a {
  color: var(--body);
  font-weight: 550;
}
.footer-grid a:hover {
  color: var(--ink);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}

/* --------- Rechtstexte --------- */
.legal-main {
  padding: 150px 24px 90px;
  max-width: 760px;
  margin: 0 auto;
}
.legal-main h1 {
  font-size: clamp(2.1rem, 4.5vw, 3rem);
}
.legal-main h2 {
  font-size: 1.35rem;
  margin-top: 2.2em;
}
.legal-main p,
.legal-main li {
  font-size: 1rem;
}
.legal-main ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 1em;
}
.todo-mark {
  background: #fff3bf;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 650;
  color: #7a5b00;
}

/* --------- Reveal Animation --------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.grid .reveal:nth-child(2) {
  transition-delay: 0.07s;
}
.grid .reveal:nth-child(3) {
  transition-delay: 0.14s;
}
.grid .reveal:nth-child(4) {
  transition-delay: 0.21s;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .bars i {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .card,
  .phase-card,
  .lever {
    transition: none !important;
  }
  .loop li:not(:last-child)::after {
    animation: none !important;
  }
  .progress {
    display: none;
  }
}

/* --------- Responsive --------- */
@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platform-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .avatar-card {
    max-width: 380px;
    margin: 0 auto;
  }
}
@media (max-width: 760px) {
  section {
    padding: 64px 0;
  }
  .hero {
    padding: 140px 0 72px;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lift);
    padding: 10px 0;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 14px 26px;
  }
  .nav-links .btn {
    margin: 12px 26px 14px;
  }
  .nav-burger {
    display: block;
  }
  .grid-2,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .claim-band .container {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: left;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .loop {
    flex-direction: column;
    align-items: stretch;
  }
  .loop li {
    flex-direction: column;
    gap: 10px;
  }
  .loop li:not(:last-child)::after {
    width: 2px;
    height: 24px;
    background: repeating-linear-gradient(180deg, var(--p2) 0 5px, transparent 5px 11px);
    animation: flow-y 0.9s linear infinite;
  }
  .loop .step {
    justify-content: flex-start;
  }
  .kpi label,
  .timeline label {
    font-size: 0.57rem;
    letter-spacing: 0;
  }
  .kpi {
    padding: 10px;
  }
}
@keyframes flow-y {
  to {
    background-position: 0 11px;
  }
}

/* ==========================================================================
   v2.2 — Premium-Interaktionsschicht
   Metallic-Wordmark, Hero-Entrance, Aurora-Drift, Spektrum-Ringe, Loop-Tips
   ========================================================================== */

/* Metallic-Schimmer auf dem Schriftzug (Audi-Look) */
.brand-word {
  background: linear-gradient(
    105deg,
    #1b1a33 0%,
    #1b1a33 40%,
    #8d8ab4 50%,
    #1b1a33 60%,
    #1b1a33 100%
  );
  background-size: 260% 100%;
  background-position: 115% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-shine 9s linear infinite;
}
.brand:hover .brand-word {
  animation: brand-shine-hover 1.1s ease;
}
@keyframes brand-shine {
  0% {
    background-position: 115% 0;
  }
  12% {
    background-position: -35% 0;
  }
  100% {
    background-position: -35% 0;
  }
}
@keyframes brand-shine-hover {
  0% {
    background-position: 115% 0;
  }
  100% {
    background-position: -35% 0;
  }
}

/* Hero-Entrance: orchestriertes Einfliegen */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero .eyebrow {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.05s both;
}
.hl {
  display: inline-block;
}
.hl-1 {
  animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) 0.16s both;
}
.hl-2 {
  animation: rise 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}
.hero-sub {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.46s both;
}
.hero-ctas {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.58s both;
}
.hero-proof {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.7s both;
}

/* Hero-Objekt: glossy Marken-Balken mit Schwebe, Shine und Parallax */
.hero-visual {
  max-width: 360px;
  margin: 48px auto 0;
  transition: transform 0.25s ease-out;
  will-change: transform;
}
.hero-visual svg {
  display: block;
  width: 100%;
  height: auto;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.84s both;
}
.hv-bars {
  animation: hv-bob 7s ease-in-out infinite alternate;
}
@keyframes hv-bob {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-7px);
  }
}
.hv-shine {
  opacity: 0.3;
  animation: hv-shine 5.5s ease-in-out infinite;
}
@keyframes hv-shine {
  0%,
  55% {
    transform: skewX(-18deg) translateX(-70px);
  }
  80% {
    transform: skewX(-18deg) translateX(260px);
  }
  100% {
    transform: skewX(-18deg) translateX(260px);
  }
}

/* Aurora driftet langsam (ambient) */
.hero::after {
  animation: aurora 16s ease-in-out infinite alternate;
}
@keyframes aurora {
  from {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  to {
    transform: translateX(-46%) translateY(20px) scale(1.06);
  }
}

/* Spektrum-Ring bei Hover (Karten) */
.card::after,
.phase-card::after,
.lever::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: var(--spectrum);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::after,
.phase-card:hover::after,
.lever:hover::after {
  opacity: 0.55;
}

/* Loop-Tips mobil: aufklappen statt schweben */
@media (max-width: 760px) {
  .loop .tip {
    position: static;
    transform: none;
    width: auto;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    padding: 0 15px;
    border-width: 0;
    box-shadow: none;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  }
  .loop li:hover .tip,
  .loop li:focus-within .tip {
    opacity: 0;
    max-height: 0;
  }
  .loop li.open .tip {
    opacity: 1;
    visibility: visible;
    transform: none;
    max-height: 180px;
    padding: 12px 15px;
    border-width: 1px;
  }
}

/* Bewegungsreduktion: alle Zusatz-Animationen aus */
@media (prefers-reduced-motion: reduce) {
  .brand-word,
  .hero .eyebrow,
  .hl-1,
  .hl-2,
  .hero-sub,
  .hero-ctas,
  .hero-proof,
  .hero::after {
    animation: none !important;
  }
  .btn-primary::before {
    display: none;
  }
  .gel,
  .gel *,
  .loop button.step {
    transition: none !important;
    animation: none !important;
  }
  .card:hover .gel,
  .feature-list li:hover .gel {
    transform: none;
  }
  .hero-visual svg,
  .hv-bars,
  .hv-shine {
    animation: none !important;
  }
  .hv-shine {
    opacity: 0;
  }
  .loop li:not(:last-child)::after {
    animation: none !important;
  }
  .loop .tip {
    transition: none !important;
  }
}

/* Nav-Variante ohne Burger (Rechtsseiten): bleibt auch mobil sichtbar */
.nav-links.nav-links-static {
  display: flex;
  position: static;
  flex-direction: row;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* Interaktions-Transitions gewinnen gegen .reveal (Kaskaden-Fix):
   .reveal ersetzt sonst die transition-Liste der Karten und die
   Stagger-Delays würden Tilt/Hover dauerhaft verzögern. */
.card.reveal.in,
.phase-card.reveal.in,
.lever.reveal.in {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  transition-delay: 0s;
}
