/* ========================================
   Promphant Landing — "Electric Ink"
   Kühle Grau-Blau-Töne, Tinten-Navy,
   elektrisches Logo-Blau, Amber-Akzente.
   ======================================== */
:root {
  --color-primary: #2447f0;
  --color-primary-dark: #1733b8;
  --color-accent: #ffb91f;
  --color-text: #131c3d;
  --color-text-muted: #44506e;
  --color-text-soft: #5f6a87;
  --color-bg: #f7f9fc;
  --color-surface: #edf1f7;
  --color-border: #dce3ee;
  --color-border-soft: #e6ebf4;
  --color-card: #ffffff;
  --color-ink: #131c3d;

  --shadow-sm: 0 1px 2px rgba(19, 28, 61, 0.05);
  --shadow-md: 0 4px 18px rgba(19, 28, 61, 0.06);
  --shadow-lg: 0 16px 40px rgba(19, 28, 61, 0.08);
  /* Signatur: harter Offset-Schatten für Tiles & Chips */
  --shadow-pop: 6px 6px 0 rgba(36, 71, 240, 0.1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-display:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  /* Technische Akzente: Mono-Stack aus System-Fonts, kein externer Request */
  --font-mono:
    ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", "Fira Code",
    Menlo, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1200px;
}

/* ========================================
   Reset & Base
   ======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

::selection {
  background: rgba(36, 71, 240, 0.16);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========================================
   Header
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 34px 0 18px;
  background: rgba(255, 255, 255, 0);
  transition:
    background 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    padding 0.3s var(--ease-out);
}

.header.scrolled {
  background: rgba(247, 249, 252, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow:
    0 1px 0 rgba(19, 28, 61, 0.06),
    0 6px 20px -12px rgba(19, 28, 61, 0.12);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 32px;
  width: auto;
}

/* Logo-Varianten: helles Logo im Light Mode, dunkles im Dark Mode */
.logo-dark {
  display: none;
}
[data-theme="dark"] .logo-light {
  display: none;
}
[data-theme="dark"] .logo-dark {
  display: block;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition:
    color 0.2s var(--ease-out),
    background 0.2s var(--ease-out);
}

.nav a:hover {
  color: var(--color-text);
  background: rgba(19, 28, 61, 0.05);
}

.nav-cta {
  background: var(--color-text);
  color: var(--color-bg) !important;
  padding: 9px 18px !important;
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--color-primary) !important;
  color: white !important;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-card);
}

.lang-btn {
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  border-radius: 999px;
  line-height: 1;
  transition:
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.lang-btn:hover {
  color: var(--color-text);
}

.lang-btn.active {
  background: var(--color-text);
  color: white;
}

/* Theme toggle (Sun / Moon) */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-card);
  color: var(--color-text);
  transition:
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.theme-toggle:hover {
  background: var(--color-surface);
  border-color: var(--color-text-soft);
}

.theme-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.4s var(--ease-out);
}

.theme-icon-sun {
  display: none;
}
.theme-icon-moon {
  display: block;
}

[data-theme="dark"] .theme-icon-sun {
  display: block;
}
[data-theme="dark"] .theme-icon-moon {
  display: none;
}

.theme-toggle:hover .theme-icon {
  transform: rotate(-12deg);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.005em;
  border-radius: 12px;
  transition:
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

/* Elektrisches Blau, präziser Verlauf + 1px-Lichtkante oben, dezenter Schein */
.btn-primary {
  background: linear-gradient(180deg, #2e51ff 0%, var(--color-primary) 100%);
  color: white;
  border-color: var(--color-primary-dark);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 8px 20px -10px rgba(36, 71, 240, 0.65);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #3a5cff 0%, #2849f2 100%);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 12px 26px -10px rgba(36, 71, 240, 0.7);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 4px 12px -8px rgba(36, 71, 240, 0.6);
}

/* Ghost — frosted, dünne technische Kante, elektrische Reaktion beim Hover */
.btn-ghost {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  backdrop-filter: blur(8px) saturate(140%);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  color: var(--color-primary);
  background: rgba(36, 71, 240, 0.06);
  border-color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(36, 71, 240, 0.25),
    0 10px 24px -14px rgba(36, 71, 240, 0.5);
}

.btn-ghost:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 1px rgba(36, 71, 240, 0.2);
}

/* ========================================
   Hero — Phone bündig mit unterem Rand
   ======================================== */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: 120px;
  padding-bottom: 0;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: end;
  min-height: 640px;
}

.hero-content {
  padding-bottom: 96px;
}

.hero-title {
  font-size: clamp(38px, 4.7vw, 60px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 24px;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: 19px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}

.phone-img {
  position: relative;
  z-index: 1;
  display: block;
  max-width: 460px;
  width: 100%;
  height: auto;
  margin-bottom: 0;
  animation: hero-phone-in 1.1s var(--ease-out) both;
}

/* Phone settles upward on load — transform only, keeps the LCP paint instant */
@keyframes hero-phone-in {
  from {
    transform: translateY(22px);
  }
  to {
    transform: translateY(0);
  }
}

/* Schwebende UI-Chips — erden das Produkt im Raum */
.hero-chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.005em;
  color: var(--color-text);
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow:
    0 3px 0 rgba(19, 28, 61, 0.1),
    0 18px 32px -16px rgba(19, 28, 61, 0.25);
  animation: chip-float 5.5s ease-in-out infinite;
}

.hero-chip svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hero-chip-copy {
  top: 15%;
  right: 2%;
  rotate: 2deg;
}

.hero-chip-copy svg {
  color: #16a34a;
}

.hero-chip-pack {
  bottom: 24%;
  left: -2%;
  rotate: -3deg;
  animation-delay: -2.6s;
}

.hero-chip-pack svg {
  color: var(--color-primary);
}

.hero-chip-builder {
  top: 40%;
  left: -5%;
  rotate: 3deg;
  animation-delay: -1.3s;
}

.hero-chip-builder svg {
  color: #7c3aed;
}

/* Höher angesetzt als die anderen Chips, damit die Unterkante nicht vom
   Milchglas-Panel verdeckt wird, das ~58px in den Hero ragt. */
.hero-chip-offline {
  bottom: 16%;
  right: 5%;
  rotate: -2deg;
  animation-delay: -4.1s;
}

.hero-chip-offline svg {
  color: var(--color-accent);
}

@keyframes chip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}


/* ========================================
   Hero — Tiefe (Hintergrund-Layer, Glow, Akzent, Entrance)
   ======================================== */

/* Dekorativer Hintergrund: Punkt-Raster + weiche Aurora, sanft ausgeblendet */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Feines Korn über dem gesamten Hero — nimmt der Fläche das Sterile */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: multiply;
}

[data-theme="dark"] .hero-bg::after {
  opacity: 0.06;
  mix-blend-mode: screen;
}

/* Technisches Punkt-Raster — fadet zu den Rändern aus (crisp, kein Blur) */
.hero-grid {
  position: absolute;
  inset: -2px;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(
    ellipse 82% 72% at 50% 30%,
    #000 0%,
    transparent 78%
  );
  mask-image: radial-gradient(
    ellipse 82% 72% at 50% 30%,
    #000 0%,
    transparent 78%
  );
  opacity: 0;
  animation: hero-bg-in 1.4s var(--ease-out) 0.1s forwards;
}

/* Statische Basis-Punkte */
.hero-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at center,
    rgba(36, 71, 240, 0.2) 1.1px,
    transparent 1.8px
  );
  background-size: 30px 30px;
}

/* Shine — dieselben Punkte, nur heller, sichtbar gemacht durch ein weiches
   Lichtband (Masken-Linie), das langsam über den Hero wandert. Nur die Punkte
   leuchten auf, die Leerflächen bleiben transparent. */
.hero-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at center,
    rgba(36, 71, 240, 0.55) 1.1px,
    transparent 1.8px
  );
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(
    100deg,
    transparent 38%,
    #000 50%,
    transparent 62%
  );
  mask-image: linear-gradient(
    100deg,
    transparent 38%,
    #000 50%,
    transparent 62%
  );
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: hero-shine 8s ease-in-out infinite;
  will-change: -webkit-mask-position, mask-position;
}

/* Feines Blueprint-Liniengitter über dem Punktraster — scharfe 1px-Linien,
    kein Blur. Gibt dem Hero eine technische, schematische Tiefe. */
.hero-aurora {
  position: absolute;
  inset: -2px;
  overflow: hidden;
  -webkit-mask-image: radial-gradient(
    ellipse 88% 78% at 50% 24%,
    #000 0%,
    transparent 72%
  );
  mask-image: radial-gradient(
    ellipse 88% 78% at 50% 24%,
    #000 0%,
    transparent 72%
  );
  opacity: 0;
  animation: hero-bg-in 1.6s var(--ease-out) 0.05s forwards;
}

/* Statisches Basis-Liniengitter */
.hero-aurora::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(36, 71, 240, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 71, 240, 0.1) 1px, transparent 1px);
  background-size: 120px 120px;
}

/* Shine — hellere Linien im selben wandernden Lichtband wie die Punkte. */
.hero-aurora::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(36, 71, 240, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 71, 240, 0.34) 1px, transparent 1px);
  background-size: 120px 120px;
  -webkit-mask-image: linear-gradient(
    100deg,
    transparent 38%,
    #000 50%,
    transparent 62%
  );
  mask-image: linear-gradient(
    100deg,
    transparent 38%,
    #000 50%,
    transparent 62%
  );
  -webkit-mask-size: 300% 100%;
  mask-size: 300% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  animation: hero-shine 8s ease-in-out infinite;
  will-change: -webkit-mask-position, mask-position;
}

@keyframes hero-bg-in {
  to {
    opacity: 1;
  }
}

/* Lichtband wandert einmal weich über den Hero, dann kurze Pause off-screen. */
@keyframes hero-shine {
  0% {
    -webkit-mask-position: 140% 0;
    mask-position: 140% 0;
  }
  60%,
  100% {
    -webkit-mask-position: -40% 0;
    mask-position: -40% 0;
  }
}

/* Schmale, scharfe "Standfläche", die das Phone erdet — ohne Weichzeichner */
.hero-glow {
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: 78%;
  height: 60%;
  translate: -50% 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 50% 52% at 50% 60%,
    rgba(36, 71, 240, 0.1) 0%,
    transparent 68%
  );
  filter: none;
  opacity: 0;
  pointer-events: none;
  animation: hero-bg-in 1.3s var(--ease-out) 0.45s forwards;
}

/* Headline-Akzent — markierter Text: kräftiges Blau-Highlight hinter der
   Ink-Schrift, wie ein präziser Textmarker / eine Selektion. Technisch statt
   verspielt — flache Kanten, leichte Tiefe von oben nach unten. */
.hero-accent {
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--color-text);
  /* Band als Hintergrund-Verlauf: verändert die Zeilenhöhe nicht und
     überlappt nie die Zeile darüber. */
  background-image: linear-gradient(
    180deg,
    rgba(36, 71, 240, 0.16) 0%,
    rgba(36, 71, 240, 0.26) 100%
  );
  background-repeat: no-repeat;
  background-size: 100% 0.96em;
  background-position: 0 0.86em;
  border-radius: 3px;
  padding: 0 0.1em;
  margin: 0 -0.06em;
  box-shadow: inset 0 -2px 0 rgba(36, 71, 240, 0.4);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Dark Mode: helleres Blau-Band, Schrift bleibt hell und lesbar */
[data-theme="dark"] .hero-accent {
  color: var(--color-text);
  background-image: linear-gradient(
    180deg,
    rgba(126, 155, 255, 0.2) 0%,
    rgba(126, 155, 255, 0.32) 100%
  );
  box-shadow: inset 0 -2px 0 rgba(126, 155, 255, 0.5);
}

/* Trust-Row unter dem CTA — leise, aber präsent */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 28px;
  padding: 0;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.hero-trust svg {
  width: 17px;
  height: 17px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* "Mehr erfahren" — Chevron nickt beim Hover nach unten */
.hero-more-chevron {
  transition: transform 0.25s var(--ease-out);
}

.hero-more:hover .hero-more-chevron {
  transform: translateY(2px);
}

/* ========================================
   Download — Tiles über die ganze Breite
   ======================================== */
/* Sektion selbst ist nur noch ein transparenter Träger, der das Milchglas-
   Panel nach oben in den Hero schiebt. */
.download {
  position: relative;
  z-index: 5;
  margin-top: -58px;
  padding: 0 0 60px;
  background: transparent;
}

/* Milchglas-Panel — schwebt über der Hero-Unterkante, ein einziges Bauteil */
.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 14px;
  border-radius: calc(var(--radius-lg) + 4px);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 1px 0 rgba(36, 71, 240, 0.06),
    0 26px 60px -28px rgba(19, 28, 61, 0.45);
}

.download-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition:
    background 0.22s var(--ease-out),
    border-color 0.22s var(--ease-out),
    transform 0.22s var(--ease-out),
    color 0.22s var(--ease-out);
}

.download-tile svg {
  width: 30px;
  height: 30px;
  color: var(--color-text);
  transition:
    color 0.22s var(--ease-out),
    transform 0.22s var(--ease-out);
}

.tile-name {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: var(--color-text);
  transition: color 0.22s var(--ease-out);
}

.download-tile:hover {
  background: rgba(36, 71, 240, 0.07);
  border-color: rgba(36, 71, 240, 0.28);
  transform: translateY(-2px);
}

.download-tile:hover svg,
.download-tile:hover .tile-name {
  color: var(--color-primary);
}

.download-tile:hover svg {
  transform: scale(1.06);
}

/* ========================================
   Logo Cloud — kompatible KI-Tools (Wortmarken)
   ======================================== */
.logos {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--color-border-soft);
  overflow: hidden;
}

.logos-label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 30px;
}

/* Full-bleed Laufband mit weichem Rand-Fade links/rechts */
.logos-marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 11%,
    #000 89%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    #000 11%,
    #000 89%,
    transparent 100%
  );
}

.logos-track {
  display: flex;
  width: max-content;
  animation: logos-scroll 42s linear infinite;
}

/* Zwei identische Gruppen → translateX(-50 %) ergibt einen nahtlosen Loop */
.logos-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  /* horizontales Padding sorgt für gleichmäßige Abstände – auch über die Naht */
  padding: 0 34px;
}

.logo-mark {
  height: 30px;
  width: auto;
  display: block;
  opacity: 0.85;
  transition: opacity 0.25s var(--ease-out);
}

.logo-name {
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 600;
  letter-spacing: -0.012em;
  white-space: nowrap;
  color: var(--color-text-soft);
  transition: color 0.25s var(--ease-out);
}

.logo-item:hover .logo-name {
  color: var(--color-text);
}

.logo-mark-dark {
  display: none;
}
[data-theme="dark"] .logo-mark-light {
  display: none;
}
[data-theme="dark"] .logo-mark-dark {
  display: block;
}

.logo-item:hover .logo-mark {
  opacity: 1;
}

/* Pause beim Hover, damit man ein Logo fixieren kann */
.logos-marquee:hover .logos-track {
  animation-play-state: paused;
}

@keyframes logos-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .logos-track {
    animation: none;
  }
}

/* ========================================
   Feature Sections
   ======================================== */
.feature {
  padding: 100px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.feature:last-of-type {
  border-bottom: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

.feature-grid-reverse .feature-content {
  order: 2;
}

.feature-grid-reverse .feature-visual {
  order: 1;
}

/* Eyebrow als Pill-Chip — Feature-Sektionen werden als Kapitel nummeriert */
body {
  counter-reset: feature;
}

section.feature {
  counter-increment: feature;
}

/* Technischer Sektions-Index statt generischer Pille:
   Mono-Label, getrackt, ohne Hintergrund-Bubble. */
.feature-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: none;
  border: none;
  border-radius: 0;
  margin-bottom: 20px;
}

/* Nummer als Mono-Token im dünnen Rahmen — wie ein Label in einer Dev-UI */
section.feature .feature-eyebrow::before {
  content: counter(feature, decimal-leading-zero);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--color-primary);
  background: rgba(36, 71, 240, 0.08);
  border: 1px solid rgba(36, 71, 240, 0.3);
  border-radius: 5px;
  padding: 4px 7px;
}

/* Zentrierte Section-Header (Stimmen, FAQ, …): Mono-Marker statt Nummer */
.section-header .feature-eyebrow {
  justify-content: center;
}
.section-header .feature-eyebrow::before {
  content: "//";
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-primary);
}

[data-theme="dark"] section.feature .feature-eyebrow::before {
  color: #aebfff;
  background: rgba(126, 155, 255, 0.12);
  border-color: rgba(126, 155, 255, 0.35);
}

.feature-title {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--color-text);
}

.feature-description {
  font-size: 16.5px;
  color: var(--color-text-muted);
  margin-bottom: 28px;
  max-width: 480px;
  line-height: 1.6;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--color-text);
  line-height: 1.5;
}

.check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 6px;
  background: linear-gradient(155deg, #3b5cff 0%, var(--color-primary) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 0 1px rgba(36, 71, 240, 0.2),
    0 4px 10px -4px rgba(36, 71, 240, 0.5);
  rotate: 0deg;
  position: relative;
}

.check::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Feature visual — image */
.feature-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-img {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ========================================
   Prompt Cards (Feature 1) — gestapelt + animiert
   ======================================== */
.prompt-cards {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  perspective: 1200px;
}

.pcard {
  position: absolute;
  border-radius: 22px;
  overflow: hidden;
  color: white;
  box-shadow:
    0 24px 60px -18px rgba(15, 23, 42, 0.32),
    0 8px 18px -8px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  transition:
    rotate 0.55s var(--ease-out),
    translate 0.55s var(--ease-out),
    box-shadow 0.55s var(--ease-out);
  will-change: translate, rotate;
  backface-visibility: hidden;
}

.pcard-text {
  position: relative;
  z-index: 2;
  padding: 22px 22px 0;
}

.pcard h3 {
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin-bottom: 6px;
  color: white;
}

.pcard p {
  font-size: clamp(11.5px, 1.05vw, 13px);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
  max-width: 92%;
}

.pcard-img {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* --- Card 1: Mail (top, blau) --- */
.pcard-mail {
  width: 56%;
  aspect-ratio: 5 / 4;
  top: 2%;
  right: 6%;
  rotate: 4deg;
  z-index: 2;
  background:
    radial-gradient(
      120% 100% at 50% 110%,
      rgba(255, 255, 255, 0.18) 0%,
      transparent 60%
    ),
    linear-gradient(160deg, #2e6be0 0%, #1b47a8 100%);
  animation: pcard-float-a 9s ease-in-out infinite;
}

.pcard-img-mail {
  bottom: 6%;
  left: 50%;
  width: 46%;
  max-width: 130px;
  translate: -50% 0;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.25));
}

/* --- Card 2: Social (bottom-left, lila/pink) --- */
.pcard-social {
  width: 52%;
  aspect-ratio: 4 / 5;
  bottom: 0;
  left: 0;
  rotate: -5deg;
  z-index: 4;
  background:
    radial-gradient(
      140% 80% at 0% 100%,
      rgba(255, 255, 255, 0.18) 0%,
      transparent 55%
    ),
    linear-gradient(155deg, #6e3ddb 0%, #b83ac9 50%, #e5476b 100%);
  animation: pcard-float-b 11s ease-in-out -3s infinite;
}

.pcard-img-social {
  bottom: -6%;
  right: -16%;
  width: 78%;
  max-width: 240px;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.32));
}

/* --- Card 3: Street (rechts, dunkles Foto) --- */
.pcard-street {
  width: 50%;
  aspect-ratio: 5 / 4;
  bottom: 6%;
  right: -2%;
  rotate: 6deg;
  z-index: 5;
  background: #0e1117 url("assets/street.webp") center/cover no-repeat;
  animation: pcard-float-c 10s ease-in-out -1.5s infinite;
}

.pcard-street .pcard-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.55) 70%,
    rgba(0, 0, 0, 0.78) 100%
  );
  z-index: 1;
}

.pcard-street .pcard-text {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0 18px 16px;
  z-index: 2;
}

.pcard-script {
  display: block;
  font-family: "Permanent Marker", "Inter", cursive;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 0.95;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.pcard-tag {
  display: inline-block;
  margin-top: 6px;
  font-family: "Permanent Marker", "Inter", cursive;
  font-size: clamp(20px, 2.4vw, 28px);
  color: #ffd60a;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* --- Float Keyframes (sehr sanft) --- */
@keyframes pcard-float-a {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -10px;
  }
}
@keyframes pcard-float-b {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}
@keyframes pcard-float-c {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

/* --- Group hover: Cards spreizen sich elegant auseinander --- */
.prompt-cards:hover .pcard {
  animation-play-state: paused;
}

.prompt-cards:hover .pcard-mail {
  rotate: 6deg;
  translate: 12px -10px;
  box-shadow:
    0 32px 70px -20px rgba(15, 23, 42, 0.4),
    0 10px 22px -10px rgba(15, 23, 42, 0.22);
}

.prompt-cards:hover .pcard-social {
  rotate: -7deg;
  translate: -14px 6px;
  box-shadow:
    0 32px 70px -20px rgba(110, 61, 219, 0.45),
    0 10px 22px -10px rgba(229, 71, 107, 0.25);
}

.prompt-cards:hover .pcard-street {
  rotate: 8deg;
  translate: 14px 6px;
  box-shadow:
    0 32px 70px -20px rgba(0, 0, 0, 0.55),
    0 10px 22px -10px rgba(0, 0, 0, 0.3);
}

/* --- Sequenzieller Reveal beim Scrollen + danach floaten --- */
.feature-visual.reveal .prompt-cards .pcard {
  opacity: 0;
}

.feature-visual.reveal.in-view .pcard-mail {
  animation:
    pcard-enter-a 0.9s var(--ease-out) 0.05s both,
    pcard-float-a 9s ease-in-out 0.95s infinite;
}
.feature-visual.reveal.in-view .pcard-social {
  animation:
    pcard-enter-b 0.9s var(--ease-out) 0.18s both,
    pcard-float-b 11s ease-in-out 1.08s infinite;
}
.feature-visual.reveal.in-view .pcard-street {
  animation:
    pcard-enter-c 0.9s var(--ease-out) 0.32s both,
    pcard-float-c 10s ease-in-out 1.22s infinite;
}

@keyframes pcard-enter-a {
  from {
    opacity: 0;
    translate: 20px -8px;
    rotate: 12deg;
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: 4deg;
  }
}
@keyframes pcard-enter-b {
  from {
    opacity: 0;
    translate: -24px 14px;
    rotate: -14deg;
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: -5deg;
  }
}
@keyframes pcard-enter-c {
  from {
    opacity: 0;
    translate: 24px 14px;
    rotate: 16deg;
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: 6deg;
  }
}

/* ========================================
   Orga-Stage (Feature 2 — "Organisieren wie ein Profi")
   ======================================== */
.orga-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  overflow: visible;
}

/* Ambient blue glow hinter der Card */
.orga-ambient {
  position: absolute;
  inset: 12% 12% 12% 12%;
  background: radial-gradient(
    circle at center,
    rgba(96, 165, 250, 0.18) 0%,
    rgba(96, 165, 250, 0.08) 35%,
    transparent 65%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}
.feature-visual.reveal.in-view .orga-ambient {
  opacity: 1;
  transition-delay: 0.3s;
}
.orga-stage:hover .orga-ambient {
  background: radial-gradient(
    circle at center,
    rgba(96, 165, 250, 0.28) 0%,
    rgba(96, 165, 250, 0.12) 35%,
    transparent 65%
  );
}

/* Connector-SVG */
.orga-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

/* Statische Linien (gradient stroke) */
.orga-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.feature-visual.reveal.in-view .orga-line {
  animation: orga-draw 1.4s var(--ease-out) forwards;
}
.feature-visual.reveal.in-view .orga-line-1 {
  animation-delay: 0.1s;
}
.feature-visual.reveal.in-view .orga-line-2 {
  animation-delay: 0.2s;
}
.feature-visual.reveal.in-view .orga-line-3 {
  animation-delay: 0.3s;
}
.feature-visual.reveal.in-view .orga-line-4 {
  animation-delay: 0.4s;
}
.feature-visual.reveal.in-view .orga-line-5 {
  animation-delay: 0.5s;
}

@keyframes orga-draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* Pulse: kleiner heller Dash der vom Icon zur Card fließt */
.orga-pulse {
  stroke-dasharray: 0.05 0.95;
  stroke-dashoffset: 1;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.6));
}

.feature-visual.reveal.in-view .orga-pulse {
  opacity: 1;
  animation: orga-pulse-flow 4.5s linear infinite;
  transition: opacity 0.6s var(--ease-out) 1.6s;
}
.feature-visual.reveal.in-view .orga-pulse-1 {
  animation-delay: 1.6s;
}
.feature-visual.reveal.in-view .orga-pulse-2 {
  animation-delay: 2.5s;
}
.feature-visual.reveal.in-view .orga-pulse-3 {
  animation-delay: 1.9s;
}
.feature-visual.reveal.in-view .orga-pulse-4 {
  animation-delay: 3.1s;
}
.feature-visual.reveal.in-view .orga-pulse-5 {
  animation-delay: 2.2s;
}

@keyframes orga-pulse-flow {
  from {
    stroke-dashoffset: 1;
  }
  to {
    stroke-dashoffset: 0.05;
  }
}

/* Floating-Icons */
.orga-icon {
  position: absolute;
  width: 12%;
  max-width: 64px;
  height: auto;
  z-index: 2;
  opacity: 0;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.15));
  will-change: translate, scale;
  transition:
    filter 0.3s var(--ease-out),
    scale 0.4s var(--ease-out);
}

/* Pentagon-Layout: 5 Icons rund um die Card */
.orga-icon-folder {
  top: 0%;
  left: 0%;
}
.orga-icon-pinboard {
  top: 0%;
  right: 0%;
}
.orga-icon-pinboard2 {
  top: 45%;
  right: 0%;
  translate: 0 -50%;
}
.orga-icon-letter {
  bottom: 0%;
  right: 10%;
}
.orga-icon-sheet {
  bottom: 14%;
  left: 0%;
}

/* Reveal: Icons fliegen aus ihrer Richtung ein, dann floaten */
.feature-visual.reveal.in-view .orga-icon-folder {
  animation:
    orga-enter-tl 0.8s var(--ease-out) 0.1s both,
    orga-float-a 7.5s ease-in-out 0.9s infinite;
}
.feature-visual.reveal.in-view .orga-icon-pinboard {
  animation:
    orga-enter-tr 0.8s var(--ease-out) 0.2s both,
    orga-float-b 8.5s ease-in-out 1s infinite;
}
.feature-visual.reveal.in-view .orga-icon-pinboard2 {
  animation:
    orga-enter-r 0.8s var(--ease-out) 0.3s both,
    orga-float-e 9.5s ease-in-out 1.1s infinite;
}
.feature-visual.reveal.in-view .orga-icon-letter {
  animation:
    orga-enter-br 0.8s var(--ease-out) 0.4s both,
    orga-float-d 8s ease-in-out 1.2s infinite;
}
.feature-visual.reveal.in-view .orga-icon-sheet {
  animation:
    orga-enter-bl 0.8s var(--ease-out) 0.5s both,
    orga-float-c 9s ease-in-out 1.3s infinite;
}

@keyframes orga-enter-tl {
  from {
    opacity: 0;
    translate: -24px -18px;
    scale: 0.85;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes orga-enter-tr {
  from {
    opacity: 0;
    translate: 24px -18px;
    scale: 0.85;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes orga-enter-r {
  from {
    opacity: 0;
    translate: 28px -50%;
    scale: 0.85;
  }
  to {
    opacity: 1;
    translate: 0 -50%;
    scale: 1;
  }
}
@keyframes orga-enter-br {
  from {
    opacity: 0;
    translate: 24px 18px;
    scale: 0.85;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes orga-enter-bl {
  from {
    opacity: 0;
    translate: -24px 18px;
    scale: 0.85;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes orga-float-a {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}
@keyframes orga-float-b {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}
@keyframes orga-float-c {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}
@keyframes orga-float-d {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}
@keyframes orga-float-e {
  0%,
  100% {
    translate: 0 -50%;
  }
  50% {
    translate: 0 calc(-50% - 7px);
  }
}

/* Hover: Icons driften minimal nach außen, Schatten tiefer */
.orga-stage:hover .orga-icon {
  animation-play-state: paused;
  filter: drop-shadow(0 14px 22px rgba(15, 23, 42, 0.2));
}
.orga-stage:hover .orga-icon-folder {
  translate: -8px -6px;
}
.orga-stage:hover .orga-icon-pinboard {
  translate: 8px -6px;
}
.orga-stage:hover .orga-icon-pinboard2 {
  translate: 8px -50%;
}
.orga-stage:hover .orga-icon-letter {
  translate: 8px 6px;
}
.orga-stage:hover .orga-icon-sheet {
  translate: -8px 6px;
}

/* Zentrale Prompt-Card */
/* Dokument-Card — weißes Blatt im Hochformat, flach statt glossy */
.orga-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 43%;
  max-width: 212px;
  aspect-ratio: 5 / 7;
  padding: 18px 18px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow:
    0 24px 48px -20px rgba(15, 23, 42, 0.22),
    0 6px 16px -8px rgba(15, 23, 42, 0.1);
  z-index: 3;
  opacity: 0;
  translate: -50% -50%;
  scale: 0.92;
  transition:
    opacity 0.7s var(--ease-out),
    scale 0.7s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.feature-visual.reveal.in-view .orga-card {
  opacity: 1;
  scale: 1;
  transition-delay: 0.55s;
}

.orga-stage:hover .orga-card {
  box-shadow:
    0 30px 60px -20px rgba(15, 23, 42, 0.28),
    0 8px 20px -8px rgba(15, 23, 42, 0.14);
}

/* Prompt-Liste auf dem Blatt — läuft unten weich aus (mehr Inhalt angedeutet) */
.orga-doc-list {
  display: flex;
  flex-direction: column;
  padding: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.orga-doc-item {
  padding: 10px 0;
}
.orga-doc-item:first-child {
  padding-top: 2px;
}
.orga-doc-item + .orga-doc-item {
  border-top: 1px solid var(--color-border-soft);
}

.orga-doc-h {
  font-size: clamp(10.5px, 1.25vw, 12px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 4px;
}

.orga-doc-p {
  font-size: clamp(8.5px, 1vw, 9.5px);
  line-height: 1.45;
  color: var(--color-text-muted);
  /* zweizeilig kappen — robuster Ellipsis-Look unabhängig vom Text */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   Builder-Stage (Feature 3 — "Aus einzelnen Prompts werden Workflows")
   ======================================== */
.builder-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  isolation: isolate;
}

/* Ambient blue glow behind the card */
.builder-ambient {
  position: absolute;
  inset: -8% -6% -8% -6%;
  background: radial-gradient(
    circle at center,
    rgba(96, 165, 250, 0.2) 0%,
    rgba(96, 165, 250, 0.08) 35%,
    transparent 65%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}

.feature-visual.reveal.in-view .builder-ambient {
  opacity: 1;
  transition-delay: 0.3s;
}

.builder-stage:hover .builder-ambient {
  background: radial-gradient(
    circle at center,
    rgba(96, 165, 250, 0.3) 0%,
    rgba(96, 165, 250, 0.12) 35%,
    transparent 65%
  );
}

/* Card */
.builder-card {
  --opt-bg: #ffffff;
  --pick-bg: rgba(37, 99, 235, 0.06);
  --pick-border: rgba(37, 99, 235, 0.45);
  --pick-glow: rgba(37, 99, 235, 0.1);
  --pick-glow-strong: rgba(37, 99, 235, 0.18);

  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 26px);
  padding: clamp(24px, 4vw, 36px) clamp(22px, 4vw, 34px)
    clamp(28px, 4.5vw, 40px);
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  box-shadow:
    0 30px 60px -22px rgba(15, 23, 42, 0.18),
    0 8px 22px -10px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  opacity: 0;
  translate: 0 12px;
  scale: 0.97;
  transition:
    opacity 0.8s var(--ease-out),
    translate 0.8s var(--ease-out),
    scale 0.8s var(--ease-out),
    box-shadow 0.5s var(--ease-out);
}

.feature-visual.reveal.in-view .builder-card {
  opacity: 1;
  translate: 0 0;
  scale: 1;
  transition-delay: 0.15s;
}

.builder-stage:hover .builder-card {
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.08),
    0 36px 70px -22px rgba(37, 99, 235, 0.22),
    0 10px 24px -10px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

/* Floating decoration over the builder, bottom-right */
.builder-float {
  position: absolute;
  right: clamp(-32px, -3.5vw, -18px);
  bottom: clamp(-42px, -5vw, -24px);
  width: clamp(140px, 20vw, 200px);
  height: auto;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 20px 32px rgba(15, 23, 42, 0.24))
    drop-shadow(0 6px 12px rgba(15, 23, 42, 0.14));
  opacity: 0;
  transition: opacity 0.8s var(--ease-out);
  animation: builder-float-bob 6s ease-in-out infinite;
}

.feature-visual.reveal.in-view .builder-float {
  opacity: 1;
  transition-delay: 0.45s;
}

@keyframes builder-float-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-8px) rotate(-2deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .builder-float {
    animation: none;
  }
}

/* Title */
.builder-card-title {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
}

/* Step + progress */
.builder-stepwrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.builder-steplabel {
  position: relative;
  display: block;
  height: 1.25em;
  font-size: clamp(11px, 1.05vw, 13px);
  color: var(--color-text-muted);
  line-height: 1.25;
}

.builder-stepnum {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.builder-progress {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.builder-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary) 0%, #60a5fa 100%);
}

.feature-visual.reveal.in-view .builder-progress-fill {
  animation: builder-progress 16s var(--ease-out) 0.85s infinite;
}

@keyframes builder-progress {
  0%,
  22% {
    width: 12%;
  }
  25%,
  47% {
    width: 38%;
  }
  50%,
  72% {
    width: 62%;
  }
  75%,
  97% {
    width: 92%;
  }
  100% {
    width: 12%;
  }
}

/* Scenes — alle in derselben Grid-Zelle gestapelt → Container = max-content */
.builder-scenes {
  display: grid;
  grid-template-columns: 1fr;
  position: relative; /* Anker für den absolut positionierten Cursor */
}

.builder-scene {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2.5vw, 20px);
  opacity: 0;
}

.builder-question {
  font-size: clamp(13.5px, 1.35vw, 15.5px);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.45;
  min-height: 2.9em;
}

.builder-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.builder-option {
  padding: clamp(12px, 1.7vw, 16px) clamp(14px, 2vw, 20px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--opt-bg);
  color: var(--color-text-muted);
  font-size: clamp(13px, 1.2vw, 14.5px);
  font-weight: 500;
  line-height: 1.2;
  transform-origin: center;
  transition:
    background 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

/* Statisch ausgewählter Zustand — sichtbar wenn die Animation pausiert/aus ist */
.builder-option.is-selected {
  background: var(--pick-bg);
  border-color: var(--pick-border);
  color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--pick-glow);
}

/* Drive scenes + step labels with shared keyframes */
.feature-visual.reveal.in-view .builder-scene-1,
.feature-visual.reveal.in-view .builder-stepnum-1 {
  animation: builder-fade-1 16s var(--ease-out) 0.85s infinite;
}
.feature-visual.reveal.in-view .builder-scene-2,
.feature-visual.reveal.in-view .builder-stepnum-2 {
  animation: builder-fade-2 16s var(--ease-out) 0.85s infinite;
}
.feature-visual.reveal.in-view .builder-scene-3,
.feature-visual.reveal.in-view .builder-stepnum-3 {
  animation: builder-fade-3 16s var(--ease-out) 0.85s infinite;
}
.feature-visual.reveal.in-view .builder-scene-4,
.feature-visual.reveal.in-view .builder-stepnum-4 {
  animation: builder-fade-4 16s var(--ease-out) 0.85s infinite;
}

@keyframes builder-fade-1 {
  0%,
  22% {
    opacity: 1;
    transform: translateY(0);
  }
  25%,
  97% {
    opacity: 0;
    transform: translateY(-4px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes builder-fade-2 {
  0%,
  22% {
    opacity: 0;
    transform: translateY(4px);
  }
  25%,
  47% {
    opacity: 1;
    transform: translateY(0);
  }
  50%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes builder-fade-3 {
  0%,
  47% {
    opacity: 0;
    transform: translateY(4px);
  }
  50%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }
  75%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes builder-fade-4 {
  0%,
  72% {
    opacity: 0;
    transform: translateY(4px);
  }
  75%,
  97% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

/* ---------- Mauszeiger ---------- */
.builder-cursor {
  position: absolute;
  width: clamp(18px, 1.8vw, 22px);
  height: auto;
  bottom: 11%;
  right: 24%;
  /* Spitze sitzt im SVG bei viewBox (1,1) — nach unten verschoben,
       damit der Klickpunkt mitten im Button landet. */
  transform: translateY(26px);
  z-index: 5;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.18));
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}

.feature-visual.reveal.in-view .builder-cursor {
  opacity: 1;
  transition-delay: 0.85s;
  animation: builder-cursor-move 16s cubic-bezier(0.6, 0, 0.4, 1) 0.85s infinite;
}

.builder-cursor-arrow {
  display: block;
  width: 100%;
  height: auto;
}
.builder-cursor-arrow path {
  fill: #0f172a;
  stroke: #ffffff;
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

/* Klick-Puls am Cursor-Tip (SVG-Tip liegt bei viewBox 1/1 → ~7 % von oben/links) */
.builder-cursor-pulse {
  position: absolute;
  top: 7%;
  left: 7%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-primary);
  transform: translate(-50%, -50%) scale(0);
  transform-origin: center;
  opacity: 0;
  pointer-events: none;
}
.feature-visual.reveal.in-view .builder-cursor-pulse {
  animation: builder-cursor-pulse 16s linear 0.85s infinite;
}

/* Cursor wandert zwischen den Auswahl-Optionen */
@keyframes builder-cursor-move {
  0%,
  22% {
    bottom: 11%;
    right: 58%;
  } /* Szene 1: Direkt (unten) */
  28%,
  47% {
    bottom: 63%;
    right: 64%;
  } /* Szene 2: Executive (oben) */
  53%,
  72% {
    bottom: 37%;
    right: 52%;
  } /* Szene 3: Verbindlich (Mitte) */
  78%,
  97% {
    bottom: 11%;
    right: 66%;
  } /* Szene 4: Memo (unten) */
  100% {
    bottom: 11%;
    right: 58%;
  } /* Loop-Reset */
}

/* Klick-Puls — vier Bursts pro Zyklus, nahe an jedem Cursor-Stopp */
@keyframes builder-cursor-pulse {
  0%,
  10.99% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  11% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.55;
  }
  15% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }

  15.01%,
  35.99% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  36% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.55;
  }
  40% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }

  40.01%,
  60.99% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  61% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.55;
  }
  65% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }

  65.01%,
  85.99% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  86% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.55;
  }
  90% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }

  90.01%,
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

/* Per-Szene Auswahl-Highlight — wird genau beim Klick-Moment ausgelöst */
.feature-visual.reveal.in-view .builder-scene-1 .builder-option.is-selected {
  animation: builder-pick-1 16s var(--ease-out) 0.85s infinite;
}
.feature-visual.reveal.in-view .builder-scene-2 .builder-option.is-selected {
  animation: builder-pick-2 16s var(--ease-out) 0.85s infinite;
}
.feature-visual.reveal.in-view .builder-scene-3 .builder-option.is-selected {
  animation: builder-pick-3 16s var(--ease-out) 0.85s infinite;
}
.feature-visual.reveal.in-view .builder-scene-4 .builder-option.is-selected {
  animation: builder-pick-4 16s var(--ease-out) 0.85s infinite;
}

@keyframes builder-pick-1 {
  0%,
  10.99% {
    background: var(--opt-bg);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    box-shadow: none;
    transform: scale(1);
  }
  11% {
    background: var(--pick-bg);
    border-color: var(--pick-border);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--pick-glow);
    transform: scale(1);
  }
  13% {
    background: var(--pick-bg);
    border-color: var(--pick-border);
    color: var(--color-primary);
    box-shadow: 0 0 0 6px var(--pick-glow-strong);
    transform: scale(1.03);
  }
  16%,
  22% {
    background: var(--pick-bg);
    border-color: var(--pick-border);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--pick-glow);
    transform: scale(1);
  }
  25%,
  100% {
    background: var(--opt-bg);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    box-shadow: none;
    transform: scale(1);
  }
}
@keyframes builder-pick-2 {
  0%,
  35.99% {
    background: var(--opt-bg);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    box-shadow: none;
    transform: scale(1);
  }
  36% {
    background: var(--pick-bg);
    border-color: var(--pick-border);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--pick-glow);
    transform: scale(1);
  }
  38% {
    background: var(--pick-bg);
    border-color: var(--pick-border);
    color: var(--color-primary);
    box-shadow: 0 0 0 6px var(--pick-glow-strong);
    transform: scale(1.03);
  }
  41%,
  47% {
    background: var(--pick-bg);
    border-color: var(--pick-border);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--pick-glow);
    transform: scale(1);
  }
  50%,
  100% {
    background: var(--opt-bg);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    box-shadow: none;
    transform: scale(1);
  }
}
@keyframes builder-pick-3 {
  0%,
  60.99% {
    background: var(--opt-bg);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    box-shadow: none;
    transform: scale(1);
  }
  61% {
    background: var(--pick-bg);
    border-color: var(--pick-border);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--pick-glow);
    transform: scale(1);
  }
  63% {
    background: var(--pick-bg);
    border-color: var(--pick-border);
    color: var(--color-primary);
    box-shadow: 0 0 0 6px var(--pick-glow-strong);
    transform: scale(1.03);
  }
  66%,
  72% {
    background: var(--pick-bg);
    border-color: var(--pick-border);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--pick-glow);
    transform: scale(1);
  }
  75%,
  100% {
    background: var(--opt-bg);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    box-shadow: none;
    transform: scale(1);
  }
}
@keyframes builder-pick-4 {
  0%,
  85.99% {
    background: var(--opt-bg);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    box-shadow: none;
    transform: scale(1);
  }
  86% {
    background: var(--pick-bg);
    border-color: var(--pick-border);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--pick-glow);
    transform: scale(1);
  }
  88% {
    background: var(--pick-bg);
    border-color: var(--pick-border);
    color: var(--color-primary);
    box-shadow: 0 0 0 6px var(--pick-glow-strong);
    transform: scale(1.03);
  }
  91%,
  97% {
    background: var(--pick-bg);
    border-color: var(--pick-border);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--pick-glow);
    transform: scale(1);
  }
  100% {
    background: var(--opt-bg);
    border-color: var(--color-border);
    color: var(--color-text-muted);
    box-shadow: none;
    transform: scale(1);
  }
}

/* Pause cycle on hover so visitors can read */
.builder-stage:hover .builder-progress-fill,
.builder-stage:hover .builder-scene,
.builder-stage:hover .builder-stepnum,
.builder-stage:hover .builder-cursor,
.builder-stage:hover .builder-cursor-pulse,
.builder-stage:hover .builder-option {
  animation-play-state: paused;
}

/* ========================================
   Branch-Stage (Feature 4 — "Versionen, Varianten, Branches")
   ======================================== */
.branch-stage {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 6 / 5;
  margin: 0 auto;
  isolation: isolate;
  --branch-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* SVG layer with connector lines */
.branch-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.branch-line {
  fill: none;
  stroke: rgba(15, 23, 42, 0.24);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0;
}
.feature-visual.reveal.in-view .branch-line {
  animation: branch-draw 1.15s var(--branch-ease) forwards;
}
.feature-visual.reveal.in-view .branch-line-1 {
  animation-delay: 0.7s;
}
.feature-visual.reveal.in-view .branch-line-2 {
  animation-delay: 1.85s;
}
.feature-visual.reveal.in-view .branch-line-3 {
  animation-delay: 2s;
}
.feature-visual.reveal.in-view .branch-line-4 {
  animation-delay: 3.25s;
}
.feature-visual.reveal.in-view .branch-line-5 {
  animation-delay: 3.4s;
}
.feature-visual.reveal.in-view .branch-line-6 {
  animation-delay: 4.85s;
}

@keyframes branch-draw {
  0% {
    stroke-dashoffset: 1;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

/* Node thumbnails */
.branch-node {
  position: absolute;
  width: 13.5%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  translate: -50% calc(-50% + 14px);
  scale: 0.92;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 14px 28px -12px rgba(15, 23, 42, 0.28),
    0 4px 10px -4px rgba(15, 23, 42, 0.14);
  opacity: 0;
  filter: blur(6px);
  z-index: 2;
  will-change: opacity, translate, scale, filter;
  transition:
    opacity 1.05s var(--branch-ease),
    translate 1.05s var(--branch-ease),
    scale 1.05s var(--branch-ease),
    filter 0.85s var(--branch-ease),
    box-shadow 0.5s var(--branch-ease);
}
.feature-visual.reveal.in-view .branch-node {
  opacity: 1;
  translate: -50% -50%;
  scale: 1;
  filter: blur(0);
}

/* Node positions (top/left = center point) */
.branch-node-1 {
  top: 17%;
  left: 12.5%;
}
.branch-node-2 {
  top: 50%;
  left: 12.5%;
}
.branch-node-3 {
  top: 83%;
  left: 12.5%;
}
.branch-node-21 {
  top: 50%;
  left: 35.4%;
}
.branch-node-b1 {
  top: 36%;
  left: 64.6%;
}
.branch-node-b2 {
  top: 64%;
  left: 64.6%;
}
.branch-node-b11 {
  top: 36%;
  left: 87.5%;
}

/* Cascading reveal delays — each node settles just as its connector lands */
.feature-visual.reveal.in-view .branch-node-1 {
  transition-delay: 0.2s;
}
.feature-visual.reveal.in-view .branch-node-2 {
  transition-delay: 1.6s;
}
.feature-visual.reveal.in-view .branch-node-3 {
  transition-delay: 2.75s;
}
.feature-visual.reveal.in-view .branch-node-21 {
  transition-delay: 2.9s;
}
.feature-visual.reveal.in-view .branch-node-b1 {
  transition-delay: 4.15s;
}
.feature-visual.reveal.in-view .branch-node-b2 {
  transition-delay: 4.3s;
}
.feature-visual.reveal.in-view .branch-node-b11 {
  transition-delay: 5.75s;
}

/* Subtle continuous breath on the final node — signals "active path" */
.feature-visual.reveal.in-view .branch-node-b11 {
  animation: branch-node-breath 6.5s ease-in-out 7s infinite;
}
@keyframes branch-node-breath {
  0%,
  100% {
    scale: 1;
    box-shadow:
      0 14px 28px -12px rgba(37, 99, 235, 0.3),
      0 4px 10px -4px rgba(15, 23, 42, 0.14);
  }
  50% {
    scale: 1.018;
    box-shadow:
      0 18px 36px -12px rgba(37, 99, 235, 0.42),
      0 6px 14px -4px rgba(15, 23, 42, 0.18);
  }
}

/* Soft "active branch" glow behind the final node */
.branch-glow {
  position: absolute;
  top: 36%;
  left: 87.5%;
  width: 16%;
  aspect-ratio: 4 / 5;
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(37, 99, 235, 0.32) 0%,
    rgba(37, 99, 235, 0.1) 45%,
    transparent 75%
  );
  filter: blur(10px);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  will-change: opacity, scale;
}
.feature-visual.reveal.in-view .branch-glow {
  animation: branch-glow-pulse 6.5s ease-in-out 7s infinite;
}
@keyframes branch-glow-pulse {
  0%,
  100% {
    opacity: 0.3;
    scale: 1;
  }
  50% {
    opacity: 0.6;
    scale: 1.06;
  }
}

/* Hover — gentle lift across the whole tree */
.branch-stage:hover .branch-node {
  box-shadow:
    0 22px 40px -14px rgba(15, 23, 42, 0.34),
    0 6px 14px -4px rgba(15, 23, 42, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .branch-line {
    stroke-dashoffset: 0;
    opacity: 1;
    animation: none;
  }
  .branch-node {
    opacity: 1;
    translate: -50% -50%;
    scale: 1;
    filter: blur(0);
    transition: none;
    animation: none;
  }
  .branch-glow {
    animation: none;
    opacity: 0.3;
  }
}

/* ========================================
   Vault Phone (Feature 5) — Phone mit schwebenden Icons
   ======================================== */
.vault-stage {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: visible;
}

/* Sanfter blauer Schein hinter dem Phone */
.vault-ambient {
  position: absolute;
  inset: 10% 8% 10% 8%;
  background: radial-gradient(
    circle at center,
    rgba(96, 165, 250, 0.18) 0%,
    rgba(96, 165, 250, 0.08) 35%,
    transparent 65%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s var(--ease-out);
}
.feature-visual.reveal.in-view .vault-ambient {
  opacity: 1;
  transition-delay: 0.3s;
}
.vault-stage:hover .vault-ambient {
  background: radial-gradient(
    circle at center,
    rgba(96, 165, 250, 0.28) 0%,
    rgba(96, 165, 250, 0.12) 35%,
    transparent 65%
  );
}

/* Phone-Mockup zentriert */
.vault-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72%;
  height: auto;
  translate: -50% -50%;
  z-index: 1;
  opacity: 0;
  scale: 0.96;
  transition:
    opacity 0.8s var(--ease-out),
    scale 0.8s var(--ease-out);
  filter: drop-shadow(0 24px 36px rgba(15, 23, 42, 0.18));
}
.feature-visual.reveal.in-view .vault-phone {
  opacity: 1;
  scale: 1;
  transition-delay: 0.15s;
}

/* Floating-Icons */
.vault-icon {
  position: absolute;
  width: 60%;
  max-width: 180px;
  height: auto;
  z-index: 2;
  opacity: 0;
  filter: drop-shadow(0 14px 22px rgba(15, 23, 42, 0.22));
  will-change: translate, scale;
  transition: filter 0.3s var(--ease-out);
}

.vault-icon-json {
  top: 24%;
  right: -4%;
}
.vault-icon-safe {
  bottom: 6%;
  left: 1%;
}

.feature-visual.reveal.in-view .vault-icon-json {
  animation:
    vault-enter-tr 0.9s var(--ease-out) 0.55s both,
    vault-float-a 7.5s ease-in-out 1.45s infinite;
}
.feature-visual.reveal.in-view .vault-icon-safe {
  animation:
    vault-enter-bl 0.9s var(--ease-out) 0.75s both,
    vault-float-b 8.5s ease-in-out 1.65s infinite;
}

@keyframes vault-enter-tr {
  from {
    opacity: 0;
    translate: 24px -18px;
    scale: 0.85;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}
@keyframes vault-enter-bl {
  from {
    opacity: 0;
    translate: -24px 18px;
    scale: 0.85;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes vault-float-a {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}
@keyframes vault-float-b {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -6px;
  }
}

/* Hover: Icons driften minimal nach außen */
.vault-stage:hover .vault-icon {
  animation-play-state: paused;
  filter: drop-shadow(0 18px 26px rgba(15, 23, 42, 0.28));
}
.vault-stage:hover .vault-icon-json {
  translate: 6px -6px;
}
.vault-stage:hover .vault-icon-safe {
  translate: -6px 6px;
}

@media (prefers-reduced-motion: reduce) {
  .vault-phone {
    opacity: 1;
    scale: 1;
    transition: none;
  }
  .vault-icon {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    animation: none;
  }
}

/* ========================================
   Section header (shared by more-features + testimonials)
   ======================================== */
.section-header {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-header .feature-eyebrow {
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.14;
  color: var(--color-text);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 auto;
  max-width: 560px;
}

/* ========================================
   More Features — compact grid
   ======================================== */
.more-features {
  padding: 100px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-soft);
}

.more-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.more-card {
  position: relative;
  padding: 30px 28px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition:
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    translate 0.4s var(--ease-out);
}

.more-card:hover {
  border-color: rgba(36, 71, 240, 0.35);
  box-shadow: var(--shadow-pop);
  translate: -2px -3px;
}

.more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  rotate: -4deg;
  background: rgba(36, 71, 240, 0.09);
  color: var(--color-primary);
  margin-bottom: 20px;
  transition:
    rotate 0.4s var(--ease-out),
    scale 0.4s var(--ease-out);
}

/* Icon-Tints wechseln pro Karte — Blau, Amber, Grün */
.more-card:nth-child(3n + 2) .more-icon {
  background: rgba(255, 185, 31, 0.16);
  color: #b97c00;
}

.more-card:nth-child(3n) .more-icon {
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}

.more-card:hover .more-icon {
  rotate: 4deg;
  scale: 1.06;
}

.more-icon svg {
  width: 22px;
  height: 22px;
}

.more-card-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.more-card-desc {
  font-size: 14.5px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ========================================
   Testimonials
   ======================================== */
.testimonials {
  padding: 100px 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-soft);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  position: relative;
  padding: 36px 32px 30px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px -2px rgba(19, 28, 61, 0.04);
  transition:
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    translate 0.4s var(--ease-out),
    rotate 0.4s var(--ease-out);
}

/* Leicht gedrehte Karten — wie hingelegte Polaroids */
.testimonial-card:nth-child(1) {
  rotate: -1deg;
}
.testimonial-card:nth-child(3) {
  rotate: 1deg;
}

.testimonial-card:hover {
  border-color: rgba(36, 71, 240, 0.3);
  box-shadow: var(--shadow-pop);
  translate: -2px -3px;
  rotate: 0deg;
}

.testimonial-mark {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 30px;
  height: 30px;
  color: rgba(255, 185, 31, 0.55);
  pointer-events: none;
}

.testimonial-quote {
  flex: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--color-text);
  margin: 0 0 28px;
  quotes: none;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--color-border-soft);
}

.testimonial-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4d6bff 0%, var(--color-primary) 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px -2px rgba(36, 71, 240, 0.35);
}

.testimonial-card:nth-child(2) .testimonial-avatar {
  background: linear-gradient(135deg, #ffc94d 0%, #f59e0b 100%);
  box-shadow: 0 4px 10px -2px rgba(245, 158, 11, 0.4);
}

.testimonial-card:nth-child(3) .testimonial-avatar {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  box-shadow: 0 4px 10px -2px rgba(5, 150, 105, 0.35);
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.testimonial-name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-text);
}

.testimonial-role {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

/* Responsive */
@media (max-width: 900px) {
  .more-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 580px;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .more-grid {
    grid-template-columns: 1fr;
  }
  .section-header {
    margin-bottom: 48px;
  }
  .more-features,
  .testimonials {
    padding: 72px 0;
  }
}

/* ========================================
   FAQ — native <details>, barrierefrei, ohne JS
   ======================================== */
.faq {
  padding: 100px 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-soft);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out);
}

.faq-item[open] {
  border-color: rgba(36, 71, 240, 0.35);
  box-shadow: var(--shadow-pop);
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}
/* Default-Dreieck des <summary> ausblenden */
.faq-q::-webkit-details-marker {
  display: none;
}
.faq-q::marker {
  content: "";
}

.faq-q:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-md);
}

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-soft);
  transition:
    transform 0.3s var(--ease-out),
    color 0.25s var(--ease-out);
}
.faq-q:hover .faq-chevron {
  color: var(--color-primary);
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-a {
  padding: 0 22px 20px;
}
.faq-a p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 64ch;
}

/* Sanftes Aufklappen */
.faq-item[open] .faq-a {
  animation: faq-open 0.32s var(--ease-out);
}
@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   Newsletter
   ======================================== */
.newsletter {
  padding: 100px 0;
  border-top: 1px solid var(--color-border-soft);
}

.newsletter-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 56px 48px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.newsletter-title {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 14px;
  color: var(--color-text);
}

.newsletter-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.55;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  max-width: 480px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 8px;
}

.form-row input {
  flex: 1;
  padding: 13px 18px;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  color: var(--color-text);
  font-size: 14.5px;
  font-family: inherit;
  transition:
    border-color 0.2s var(--ease-out),
    box-shadow 0.2s var(--ease-out);
}

.form-row input::placeholder {
  color: var(--color-text-soft);
}

.form-row input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(36, 71, 240, 0.14);
}

.form-row .btn-primary {
  flex-shrink: 0;
}

.form-hint {
  font-size: 13px;
  color: var(--color-text-soft);
  margin-top: 14px;
  transition: color 0.2s var(--ease-out);
}

.form-hint.error {
  color: #dc2626;
}
.form-hint.success {
  color: #16a34a;
}

/* ========================================
   Footer
   ======================================== */
/* Footer — dunkles Tinten-Panel als kräftiger Abschluss */
/* Hellblauer Unterbau — setzt den Farbton der FAQ-Sektion nahtlos fort und
   reicht bis ganz nach unten. Die dunkle Footer-Karte liegt darauf; es gibt
   keine weiße Zwischenfläche mehr. */
.footer-wrap {
  background: var(--color-surface);
  /* Eigener Formatierungskontext: verhindert, dass die Margins der Footer-Karte
     aus dem Wrapper „herauskollabieren" — sonst entstünde dort wieder eine
     weiße Fläche. So bleibt das Hellblau lückenlos bis zur Unterkante. */
  display: flow-root;
}

.footer {
  position: relative;
  margin: 32px 16px 16px;
  padding: 64px 0 0;
  background: #131c3d;
  border-radius: 28px;
  overflow: hidden;
}

/* Dezenter Blau-Schein oben im Panel */
.footer::before {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 80%;
  height: 70%;
  translate: -50% 0;
  background: radial-gradient(
    ellipse at center,
    rgba(77, 107, 255, 0.22) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.footer-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 56px;
  padding-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 28px;
  margin-bottom: 14px;
}

/* Im Ink-Panel immer die helle Logo-Variante */
.footer-logo-light {
  display: none;
}
.footer-logo-dark {
  display: block;
}

.footer-brand p {
  color: rgba(226, 231, 247, 0.75);
  font-size: 14px;
  line-height: 1.5;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 14px;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(226, 231, 247, 0.66);
  padding: 4px 0;
  transition: color 0.2s var(--ease-out);
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: rgba(226, 231, 247, 0.55);
}

/* ========================================
   Legal pages (Impressum / Datenschutz)
   ======================================== */
.legal {
  padding: 140px 0 80px;
  border-bottom: 1px solid var(--color-border-soft);
}

.legal-inner {
  max-width: 760px;
}

.legal-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 12px 0 16px;
  color: var(--color-text);
}

.legal-lead {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 640px;
}

.legal h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--color-text);
  margin: 36px 0 12px;
}

.legal h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--color-text);
  margin: 24px 0 10px;
}

.legal p {
  font-size: 15.5px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.legal a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  color: var(--color-primary-dark);
}

.legal-list {
  margin: 6px 0 14px;
  padding-left: 0;
}

.legal-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 6px;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.legal-note {
  margin-top: 40px;
  padding: 16px 18px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  font-size: 14px !important;
  color: #92400e !important;
  line-height: 1.55;
}

.legal-back {
  display: inline-block;
  margin-top: 40px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted) !important;
  text-decoration: none !important;
}

.legal-back:hover {
  color: var(--color-text) !important;
}

/* ========================================
   Docs / Hilfeseite
   ======================================== */
.docs {
  padding: 132px 0 80px;
  border-bottom: 1px solid var(--color-border-soft);
}

.docs-inner {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* Linke Navigation (sticky) */
.docs-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
}

.docs-nav-group + .docs-nav-group {
  margin-top: 26px;
}

.docs-nav-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin-bottom: 8px;
  padding-left: 12px;
}

.docs-nav ul {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.docs-nav a {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-text-muted);
  transition:
    color 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out);
}

.docs-nav a:hover {
  color: var(--color-text);
  background: rgba(19, 28, 61, 0.05);
}

.docs-nav a.active {
  color: var(--color-primary);
  background: rgba(36, 71, 240, 0.07);
  border-left-color: var(--color-primary);
  font-weight: 600;
}

/* Rechter Inhalt */
.docs-content {
  max-width: 760px;
}

.docs-title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 12px 0 14px;
  color: var(--color-text);
}

.docs-lead {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 640px;
}

.docs-section {
  scroll-margin-top: 100px;
  padding-top: 44px;
}

.docs-section h2 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--color-text);
  margin-bottom: 14px;
}

.docs-section p {
  font-size: 15.5px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 14px;
}

.docs-section ul {
  margin: 6px 0 16px;
}

.docs-section li {
  position: relative;
  padding-left: 18px;
  font-size: 15.5px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 6px;
}

.docs-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.docs-section h3 {
  font-size: 17.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.35;
  color: var(--color-text);
  margin: 26px 0 10px;
}

/* Nummerierte Listen mit eigenen Zählern (statt Punkt-Bullet) */
.docs-section ol {
  margin: 6px 0 16px;
  counter-reset: docs-ol;
  list-style: none;
}

.docs-section ol > li {
  position: relative;
  padding-left: 30px;
  font-size: 15.5px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 8px;
  counter-increment: docs-ol;
}

.docs-section ol > li::before {
  content: counter(docs-ol);
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: rgba(36, 71, 240, 0.09);
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
}

.docs-section li strong,
.docs-section p strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Inline-Code & Code-Blöcke */
.docs-section code {
  font-family:
    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 1.5px 6px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: 5px;
  color: var(--color-text);
  word-break: break-word;
}

.docs-section pre {
  margin: 4px 0 18px;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.docs-section pre code {
  display: block;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--color-text-muted);
  white-space: pre-wrap;
  word-break: normal;
}

/* Kurzreferenz-Tabelle */
.docs-table-wrap {
  margin: 4px 0 18px;
  overflow-x: auto;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.docs-table th,
.docs-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border-soft);
  line-height: 1.5;
}

.docs-table th {
  font-weight: 650;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.docs-table td {
  color: var(--color-text-muted);
  vertical-align: top;
}

.docs-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
}

.docs-table tbody tr:last-child td {
  border-bottom: none;
}

.docs-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 14.5px !important;
  color: var(--color-text-muted) !important;
  line-height: 1.6;
}

.docs-feedback {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border-soft);
  font-size: 14.5px !important;
}

.docs-placeholder {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--color-text-soft);
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: 999px;
}

/* Dark Mode */
[data-theme="dark"] .docs-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .docs-nav a.active {
  color: var(--color-primary);
  background: rgba(126, 155, 255, 0.12);
  border-left-color: var(--color-primary);
}

/* Responsive: Sidebar stapelt über dem Inhalt */
@media (max-width: 968px) {
  .docs {
    padding-top: 108px;
  }
  .docs-inner {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 12px 0 4px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--color-border-soft);
  }
  .docs-section {
    padding-top: 36px;
    scroll-margin-top: 80px;
  }
}

/* ========================================
   Reveal Animation — subtle
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s var(--ease-out),
    transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 968px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    padding: 16px 24px;
    box-shadow: var(--shadow-md);
    gap: 4px;
    border-top: 1px solid var(--color-border-soft);
  }

  .nav.mobile-open a {
    padding: 12px 16px;
  }
  .nav.mobile-open .nav-cta {
    margin-left: 0;
  }
  .nav.mobile-open .lang-switch,
  .nav.mobile-open .theme-toggle {
    margin-left: 0;
    margin-top: 8px;
    align-self: flex-start;
  }

  .hero {
    padding-top: 100px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: 0;
    align-items: stretch;
  }
  .hero-content {
    padding-bottom: 0;
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-visual {
    justify-content: center;
  }
  .phone-img {
    max-width: 360px;
  }
  /* Chips näher ans zentrierte Phone rücken */
  .hero-chip-copy {
    right: 8%;
  }
  .hero-chip-pack {
    left: 6%;
  }
  .hero-chip-builder {
    left: 3%;
  }
  .hero-chip-offline {
    right: 10%;
  }

  .download {
    margin-top: -28px;
    padding: 0 0 40px;
  }
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 10px;
  }
  .download-tile {
    padding: 22px 14px;
    gap: 10px;
  }
  .download-tile svg {
    width: 28px;
    height: 28px;
  }

  .feature {
    padding: 72px 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .feature-grid-reverse .feature-content {
    order: 1;
  }
  .feature-grid-reverse .feature-visual {
    order: 2;
  }

  .prompt-cards {
    max-width: 460px;
  }
  .orga-stage {
    max-width: 460px;
  }
  .vault-stage {
    max-width: 400px;
  }

  .newsletter-card {
    padding: 40px 28px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .container {
    padding: 0 20px;
  }
  .hero-cta {
    flex-direction: column;
  }
  .hero-cta .btn {
    width: 100%;
  }
  .download {
    margin-top: -20px;
    padding: 0 0 32px;
  }
  .download-tile {
    padding: 20px 12px;
  }
  .prompt-cards {
    max-width: 360px;
  }
  .pcard h3 {
    font-size: 15px;
  }
  .pcard p {
    font-size: 12px;
  }
  .orga-stage {
    max-width: 360px;
  }
  .vault-stage {
    max-width: 320px;
  }
  .orga-card {
    width: 48%;
    padding: 14px 14px 0;
  }
  .orga-doc-item {
    padding: 8px 0;
  }
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .form-row {
    flex-direction: column;
  }
  .form-row .btn-primary {
    width: 100%;
  }
  .hero-chip {
    display: none;
  }
  .footer {
    margin: 24px 8px 8px;
    border-radius: 20px;
  }
}

/* ========================================
   Dark Mode
   ======================================== */
[data-theme="dark"] {
  --color-text: #e4e8f7;
  --color-text-muted: #9aa5c4;
  /* hell genug für AA auf dunklem Grund, bleibt dimmer als muted */
  --color-text-soft: #8791b0;
  --color-bg: #0b1120;
  --color-surface: #0f1729;
  --color-border: #222c49;
  --color-border-soft: #161f38;
  --color-card: #111a31;
  --color-primary: #7e9bff;
  --color-primary-dark: #4263e0;
  --color-accent: #ffc34d;
  --shadow-pop: 6px 6px 0 rgba(126, 155, 255, 0.14);

  color-scheme: dark;
}

/* Glättet das Umschalten der wichtigsten Flächen */
body,
.header,
.nav.mobile-open,
.download,
.download-tile,
.newsletter-card,
.form-row input,
.btn,
.nav-cta,
.lang-switch,
.theme-toggle,
.feature-img {
  transition-property: background-color, color, border-color, box-shadow;
  transition-duration: 0.3s;
  transition-timing-function: var(--ease-out);
}

/* Hero-Tiefe (Dark) — Punktraster + Blueprint-Linien heller, weiterhin crisp */
[data-theme="dark"] .hero-grid::before {
  background-image: radial-gradient(
    circle at center,
    rgba(126, 155, 255, 0.26) 1.1px,
    transparent 1.8px
  );
}
[data-theme="dark"] .hero-aurora::before {
  background-image:
    linear-gradient(to right, rgba(126, 155, 255, 0.13) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(126, 155, 255, 0.13) 1px, transparent 1px);
}
[data-theme="dark"] .hero-grid::after {
  background-image: radial-gradient(
    circle at center,
    rgba(150, 175, 255, 0.65) 1.1px,
    transparent 1.8px
  );
}
[data-theme="dark"] .hero-aurora::after {
  background-image:
    linear-gradient(to right, rgba(150, 175, 255, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(150, 175, 255, 0.4) 1px, transparent 1px);
}
[data-theme="dark"] .hero-glow {
  background: radial-gradient(
    ellipse 50% 52% at 50% 60%,
    rgba(126, 155, 255, 0.16) 0%,
    transparent 68%
  );
}

/* Chips (Dark) */
[data-theme="dark"] .hero-chip {
  box-shadow:
    0 3px 0 rgba(0, 0, 0, 0.45),
    0 18px 32px -16px rgba(0, 0, 0, 0.6);
}
[data-theme="dark"] .hero-chip-copy svg {
  color: #4ade80;
}

/* Header */
[data-theme="dark"] .header.scrolled {
  background: rgba(11, 17, 32, 0.97);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06),
    0 6px 20px -12px rgba(0, 0, 0, 0.5);
}

/* Nav links */
[data-theme="dark"] .nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* CTA in der Nav (heller Pill auf dunklem Header) */
[data-theme="dark"] .nav-cta {
  background: #f1f5f9 !important;
  color: #0b1120 !important;
}
[data-theme="dark"] .nav-cta:hover {
  background: var(--color-primary) !important;
  color: white !important;
}

/* Mobile Menü Drawer */
[data-theme="dark"] .nav.mobile-open {
  background: #0f172a;
  border-top-color: var(--color-border);
}

/* Sprach- und Theme-Toggle */
[data-theme="dark"] .lang-switch,
[data-theme="dark"] .theme-toggle {
  background: var(--color-card);
  border-color: var(--color-border);
}
[data-theme="dark"] .theme-toggle:hover {
  background: #19233f;
  border-color: #344266;
}
[data-theme="dark"] .lang-btn {
  color: var(--color-text-muted);
}
[data-theme="dark"] .lang-btn:hover {
  color: var(--color-text);
}
[data-theme="dark"] .lang-btn.active {
  background: #3d5cf5;
  color: #ffffff;
}

/* Buttons — elektrisches Blau bleibt auch im Dark Mode die Signatur */
[data-theme="dark"] .btn-primary {
  background: linear-gradient(180deg, #4d6bff 0%, #3a59f0 100%);
  color: white;
  border-color: #2138a8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px -10px rgba(61, 92, 245, 0.6);
}
[data-theme="dark"] .btn-primary:hover {
  background: linear-gradient(180deg, #5e79ff 0%, #4361f5 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 14px 30px -10px rgba(61, 92, 245, 0.65);
}
[data-theme="dark"] .btn-primary:active {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 4px 12px -8px rgba(61, 92, 245, 0.55);
}
[data-theme="dark"] .btn-ghost {
  background: rgba(17, 26, 49, 0.5);
  color: var(--color-text);
  border-color: var(--color-border);
  box-shadow: none;
}
[data-theme="dark"] .btn-ghost:hover {
  color: #aebfff;
  background: rgba(126, 155, 255, 0.1);
  border-color: var(--color-primary);
  box-shadow:
    0 0 0 1px rgba(126, 155, 255, 0.3),
    0 10px 24px -14px rgba(61, 92, 245, 0.5);
}
[data-theme="dark"] .btn-ghost:active {
  box-shadow: 0 0 0 1px rgba(126, 155, 255, 0.25);
}

/* Download — Milchglas auf dunklem Grund */
[data-theme="dark"] .download {
  background: transparent;
}
[data-theme="dark"] .download-grid {
  background: rgba(17, 26, 49, 0.55);
  border-color: rgba(126, 155, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1px 0 rgba(126, 155, 255, 0.08),
    0 26px 60px -28px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .download-tile {
  background: transparent;
  border-color: transparent;
}
[data-theme="dark"] .download-tile svg,
[data-theme="dark"] .tile-name {
  color: var(--color-text);
}
[data-theme="dark"] .download-tile:hover {
  background: rgba(126, 155, 255, 0.1);
  border-color: rgba(126, 155, 255, 0.32);
}

/* Feature illustrations — etwas kontrastieren */
[data-theme="dark"] .feature-img {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
  outline: 1px solid var(--color-border);
}

/* Check-Icon: kräftiges Blau auch im Dark Mode */
[data-theme="dark"] .check {
  background: linear-gradient(155deg, #5e79ff 0%, #3d5cf5 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(126, 155, 255, 0.28),
    0 4px 10px -4px rgba(61, 92, 245, 0.55);
}

/* More-Features (Dark) */
[data-theme="dark"] .more-card {
  background: var(--color-card);
  border-color: var(--color-border);
}
[data-theme="dark"] .more-card:hover {
  border-color: rgba(126, 155, 255, 0.45);
  box-shadow: var(--shadow-pop);
}
[data-theme="dark"] .more-icon {
  background: rgba(126, 155, 255, 0.14);
  color: #a5b8ff;
}
[data-theme="dark"] .more-card:nth-child(3n + 2) .more-icon {
  background: rgba(255, 195, 77, 0.13);
  color: #ffc34d;
}
[data-theme="dark"] .more-card:nth-child(3n) .more-icon {
  background: rgba(74, 222, 128, 0.11);
  color: #4ade80;
}

/* Testimonials (Dark) */
[data-theme="dark"] .testimonials {
  background: var(--color-bg);
}

/* FAQ (Dark) — Akzent beim Aufklappen */
[data-theme="dark"] .faq-item {
  background: var(--color-card);
}
[data-theme="dark"] .faq-item[open] {
  border-color: rgba(126, 155, 255, 0.45);
  box-shadow: var(--shadow-pop);
}
[data-theme="dark"] .testimonial-card {
  background: var(--color-card);
  border-color: var(--color-border);
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .testimonial-card:hover {
  border-color: rgba(126, 155, 255, 0.4);
  box-shadow: var(--shadow-pop);
}
[data-theme="dark"] .testimonial-mark {
  color: rgba(255, 195, 77, 0.4);
}
[data-theme="dark"] .testimonial-author {
  border-top-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .testimonial-avatar {
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
}

/* Newsletter card */
[data-theme="dark"] .newsletter-card {
  background: var(--color-card);
  border-color: var(--color-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .form-row input {
  background: #0b1120;
  color: var(--color-text);
  border-color: var(--color-border);
}
[data-theme="dark"] .form-row input::placeholder {
  color: var(--color-text-soft);
}
[data-theme="dark"] .form-row input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

/* Footer links — Panel ist in beiden Themes dunkel */
[data-theme="dark"] .footer-col a:hover {
  color: #ffffff;
}

/* Legal pages — Hinweis-Box dunkel-gelb statt cremefarben */
[data-theme="dark"] .legal-note {
  background: rgba(252, 211, 77, 0.08);
  border-color: rgba(252, 211, 77, 0.25);
  color: #fcd34d !important;
}

/* Prompt cards: subtiler Reflex am Rand */
[data-theme="dark"] .pcard {
  box-shadow:
    0 28px 60px -18px rgba(0, 0, 0, 0.6),
    0 8px 18px -8px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Orga-Stage: ambientes Glow stärker, Card dunkel */
[data-theme="dark"] .orga-ambient {
  background: radial-gradient(
    circle at center,
    rgba(96, 165, 250, 0.3) 0%,
    rgba(96, 165, 250, 0.12) 35%,
    transparent 65%
  );
}
[data-theme="dark"] .orga-stage:hover .orga-ambient {
  background: radial-gradient(
    circle at center,
    rgba(96, 165, 250, 0.42) 0%,
    rgba(96, 165, 250, 0.18) 35%,
    transparent 65%
  );
}

[data-theme="dark"] .orga-card {
  background: #0f172a;
  border-color: var(--color-border);
  box-shadow:
    0 24px 48px -20px rgba(0, 0, 0, 0.6),
    0 6px 16px -8px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .orga-doc-item + .orga-doc-item {
  border-top-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .orga-stage:hover .orga-card {
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.7),
    0 8px 20px -8px rgba(0, 0, 0, 0.5);
}

/* Builder-Stage: dunkles Glas, blauer Akzent */
[data-theme="dark"] .builder-ambient {
  background: radial-gradient(
    circle at center,
    rgba(96, 165, 250, 0.28) 0%,
    rgba(96, 165, 250, 0.12) 35%,
    transparent 65%
  );
}
[data-theme="dark"] .builder-stage:hover .builder-ambient {
  background: radial-gradient(
    circle at center,
    rgba(96, 165, 250, 0.4) 0%,
    rgba(96, 165, 250, 0.16) 35%,
    transparent 65%
  );
}

[data-theme="dark"] .builder-card {
  --opt-bg: rgba(255, 255, 255, 0.02);
  --pick-bg: rgba(96, 165, 250, 0.12);
  --pick-border: rgba(96, 165, 250, 0.55);
  --pick-glow: rgba(96, 165, 250, 0.14);
  --pick-glow-strong: rgba(96, 165, 250, 0.24);

  background: linear-gradient(180deg, #131f3a 0%, #0f1a33 100%);
  border-color: rgba(96, 165, 250, 0.18);
  box-shadow:
    0 30px 60px -22px rgba(0, 0, 0, 0.55),
    0 8px 22px -10px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

/* Cursor wird im Dark Mode invertiert (heller Pfeil mit dunklem Outline) */
[data-theme="dark"] .builder-cursor-arrow path {
  fill: #f1f5f9;
  stroke: #0b1120;
}
[data-theme="dark"] .builder-cursor {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

[data-theme="dark"] .builder-stage:hover .builder-card {
  box-shadow:
    0 0 0 4px rgba(96, 165, 250, 0.14),
    0 36px 70px -22px rgba(96, 165, 250, 0.32),
    0 10px 24px -10px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

[data-theme="dark"] .builder-progress {
  background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .builder-progress-fill {
  background: linear-gradient(90deg, var(--color-primary) 0%, #93c5fd 100%);
}

/* --- Branch-Stage (Dark) --- */
[data-theme="dark"] .branch-line {
  stroke: rgba(148, 163, 184, 0.38);
}
[data-theme="dark"] .branch-node {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 14px 28px -12px rgba(0, 0, 0, 0.55),
    0 4px 10px -4px rgba(0, 0, 0, 0.4);
}
[data-theme="dark"] .branch-stage:hover .branch-node {
  box-shadow:
    0 22px 42px -14px rgba(0, 0, 0, 0.65),
    0 6px 14px -4px rgba(0, 0, 0, 0.5);
}
[data-theme="dark"] .branch-glow {
  background: radial-gradient(
    ellipse at center,
    rgba(96, 165, 250, 0.35) 0%,
    rgba(96, 165, 250, 0.1) 45%,
    transparent 75%
  );
}

/* ========================================
   Cookie-Banner
   ======================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  padding: 0 16px calc(16px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(120%);
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out),
    visibility 0s linear 0.45s;
  pointer-events: none;
}

.cookie-banner.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition:
    opacity 0.45s var(--ease-out),
    transform 0.45s var(--ease-out),
    visibility 0s;
}

.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 28px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 22px;
  background: rgba(247, 249, 252, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow:
    var(--shadow-lg),
    0 8px 30px rgba(19, 28, 61, 0.08);
}

.cookie-text {
  flex: 1 1 380px;
  min-width: 0;
}

.cookie-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 3px;
}

.cookie-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.cookie-desc a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-desc a:hover {
  color: var(--color-primary-dark);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 10px 22px;
  font-size: 14px;
}

@media (max-width: 560px) {
  .cookie-actions {
    width: 100%;
  }
  .cookie-actions .btn {
    flex: 1 1 0;
  }
}

[data-theme="dark"] .cookie-inner {
  background: rgba(17, 26, 49, 0.94);
  border-color: var(--color-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .cookie-desc a {
  color: #a5b8ff;
}

[data-theme="dark"] .cookie-desc a:hover {
  color: var(--color-primary);
}

/* ========================================
   Reduced Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }

  /* Builder: zeige einen statischen Zustand statt der Schleife */
  .builder-card {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
  .builder-scene {
    opacity: 0;
  }
  .builder-scene-2 {
    opacity: 1;
  }
  .builder-stepnum {
    opacity: 0;
  }
  .builder-stepnum-2 {
    opacity: 1;
  }
  .builder-progress-fill {
    width: 38% !important;
  }
  .builder-cursor {
    opacity: 1;
    bottom: 63%;
    right: 64%;
  }
  .builder-cursor-pulse {
    opacity: 0;
  }

  /* Hero: Dekoration statisch zeigen, keine Bewegung */
  .hero-grid,
  .hero-aurora,
  .hero-glow {
    opacity: 1;
    animation: none;
  }
  .hero-grid::after,
  .hero-aurora::after {
    display: none;
  }
  .phone-img {
    animation: none;
    transform: none;
  }
}
