/* ========================================
   Promphant Landing — Clean / Serious
   ======================================== */
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-text: #0f172a;
  --color-text-muted: #475569;
  /* #64748b statt #94a3b8 → erfüllt WCAG AA (≈4,8:1 auf Weiß) */
  --color-text-soft: #64748b;
  --color-bg: #ffffff;
  --color-surface: #f6f8fc;
  --color-border: #e2e8f0;
  --color-border-soft: #edf2f7;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 18px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.06);

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --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;
}

.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: 18px 0;
  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(255, 255, 255, 0.96);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.05),
    0 6px 20px -12px rgba(15, 23, 42, 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(15, 23, 42, 0.04);
}

.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: white;
}

.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: white;
  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: #f8fafc;
  border-color: #cbd5e1;
}

.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: 8px;
  padding: 13px 24px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition:
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out),
    border-color 0.2s var(--ease-out),
    transform 0.2s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-text);
  color: white;
}

.btn-primary:hover {
  background: var(--color-primary);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  color: var(--color-text);
  background: white;
  border-color: var(--color-border);
}

.btn-ghost:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* ========================================
   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(36px, 5.2vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin-bottom: 22px;
  color: var(--color-text);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--color-text-muted);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.55;
}

.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);
  }
}

/* ========================================
   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;
}

/* Technisches Punkt-Raster — fadet zu den Rändern aus */
.hero-grid {
  position: absolute;
  inset: -2px;
  background-image: radial-gradient(
    circle at center,
    rgba(15, 23, 42, 0.05) 1px,
    transparent 1.6px
  );
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(
    ellipse 78% 68% at 52% 28%,
    #000 0%,
    transparent 76%
  );
  mask-image: radial-gradient(
    ellipse 78% 68% at 52% 28%,
    #000 0%,
    transparent 76%
  );
  opacity: 0;
  animation: hero-bg-in 1.4s var(--ease-out) 0.1s forwards;
}

/* Weiche blaue Aurora hinter Headline + Phone */
.hero-aurora {
  position: absolute;
  top: -18%;
  left: 50%;
  width: min(1180px, 116%);
  height: 760px;
  translate: -50% 0;
  background:
    radial-gradient(
      38% 50% at 32% 40%,
      rgba(37, 99, 235, 0.16) 0%,
      transparent 72%
    ),
    radial-gradient(
      42% 52% at 72% 34%,
      rgba(96, 165, 250, 0.18) 0%,
      transparent 70%
    ),
    radial-gradient(
      30% 46% at 56% 70%,
      rgba(129, 140, 248, 0.12) 0%,
      transparent 72%
    );
  filter: blur(18px);
  opacity: 0;
  /* Statisch (nur Fade-in): eine große, animierte Blur-Fläche pro Frame neu zu
     rendern ist teuer und ruckelt — Tiefe kommt aus dem Verlauf, nicht aus Bewegung. */
  animation: hero-bg-in 1.6s var(--ease-out) 0.05s forwards;
}

@keyframes hero-bg-in {
  to {
    opacity: 1;
  }
}

/* Ambienter Schein, der das Phone im Raum erdet */
.hero-glow {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 92%;
  height: 78%;
  translate: -50% 0;
  z-index: 0;
  background: radial-gradient(
    ellipse 56% 60% at 50% 52%,
    rgba(37, 99, 235, 0.22) 0%,
    rgba(96, 165, 250, 0.1) 38%,
    transparent 70%
  );
  filter: blur(14px);
  opacity: 0;
  pointer-events: none;
  animation: hero-bg-in 1.3s var(--ease-out) 0.45s forwards;
}

/* Headline-Akzent — solider Vollton als Fallback … */
.hero-accent {
  color: var(--color-primary);
}

/* … und nur dort ein Verlauf, wo background-clip:text wirklich greift
   (sonst würde transparenter Text die Headline unsichtbar machen). */
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .hero-accent {
    /* sehr dezent: enge, tonale Blau-Abstufung statt auffälligem Blau→Indigo */
    background: linear-gradient(
      100deg,
      var(--color-primary) 0%,
      #3b78ee 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* Dark Mode: hellere, ebenso dezente Abstufung auf dunklem Grund */
[data-theme="dark"] .hero-accent {
  color: var(--color-primary);
}
@supports (-webkit-background-clip: text) or (background-clip: text) {
  [data-theme="dark"] .hero-accent {
    background: linear-gradient(100deg, #60a5fa 0%, #7db0fb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

/* 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
   ======================================== */
.download {
  padding: 56px 0;
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.download-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 18px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  transition:
    border-color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    color 0.25s var(--ease-out);
}

.download-tile svg {
  width: 32px;
  height: 32px;
  color: var(--color-text);
  transition:
    color 0.25s var(--ease-out),
    transform 0.25s var(--ease-out);
}

.tile-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--color-text);
  transition: color 0.25s var(--ease-out);
}

.download-tile:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.download-tile:hover svg,
.download-tile:hover .tile-name {
  color: var(--color-primary);
}

.download-tile:hover svg {
  transform: scale(1.05);
}

/* ========================================
   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;
}

.feature-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 18px;
}

.feature-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  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: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  position: relative;
}

.check::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 4px;
  width: 5px;
  height: 9px;
  border: solid var(--color-primary);
  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, 38px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  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: 28px 26px;
  background: #ffffff;
  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(37, 99, 235, 0.3);
  box-shadow:
    0 18px 36px -16px rgba(15, 23, 42, 0.14),
    0 4px 12px -4px rgba(37, 99, 235, 0.08);
  translate: 0 -3px;
}

.more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.1) 0%,
    rgba(96, 165, 250, 0.06) 100%
  );
  color: var(--color-primary);
  margin-bottom: 20px;
  transition:
    background 0.4s var(--ease-out),
    scale 0.4s var(--ease-out);
}

.more-card:hover .more-icon {
  background: linear-gradient(
    135deg,
    rgba(37, 99, 235, 0.16) 0%,
    rgba(96, 165, 250, 0.1) 100%
  );
  scale: 1.04;
}

.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: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  transition:
    border-color 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out),
    translate 0.4s var(--ease-out);
}

.testimonial-card:hover {
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow:
    0 24px 48px -20px rgba(15, 23, 42, 0.18),
    0 6px 16px -6px rgba(37, 99, 235, 0.1);
  translate: 0 -3px;
}

.testimonial-mark {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 30px;
  height: 30px;
  color: rgba(37, 99, 235, 0.12);
  pointer-events: none;
}

.testimonial-quote {
  flex: 1;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--color-text);
  margin: 0 0 28px;
  font-style: normal;
  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, #60a5fa 0%, #2563eb 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(37, 99, 235, 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-bg);
  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(37, 99, 235, 0.35);
  box-shadow: 0 14px 34px -18px rgba(15, 23, 42, 0.16);
}

.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: white;
  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 16px;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  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(37, 99, 235, 0.12);
}

.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 {
  border-top: 1px solid var(--color-border-soft);
  padding: 56px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 2fr;
  gap: 56px;
  padding-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  height: 28px;
  margin-bottom: 14px;
}

.footer-logo-dark {
  display: none;
}
[data-theme="dark"] .footer-logo-light {
  display: none;
}
[data-theme="dark"] .footer-logo-dark {
  display: block;
}

.footer-brand p {
  color: var(--color-text-muted);
  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: 600;
  margin-bottom: 14px;
  color: var(--color-text);
  letter-spacing: -0.005em;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--color-text-muted);
  padding: 4px 0;
  transition: color 0.2s var(--ease-out);
}

.footer-col a:hover {
  color: var(--color-text);
}

.footer-bottom {
  border-top: 1px solid var(--color-border-soft);
  padding: 22px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--color-text-soft);
}

/* ========================================
   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(15, 23, 42, 0.04);
}

.docs-nav a.active {
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
  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(37, 99, 235, 0.1);
  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(96, 165, 250, 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: white;
    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;
  }

  .download {
    padding: 40px 0;
  }
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .download-tile {
    padding: 24px 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 {
    padding: 32px 0;
  }
  .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%;
  }
}

/* ========================================
   Dark Mode
   ======================================== */
[data-theme="dark"] {
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  /* #8593a7 statt #64748b → AA auf dunklem Grund (≈5:1), bleibt dimmer als muted */
  --color-text-soft: #8593a7;
  --color-bg: #0b1120;
  --color-surface: #0f1726;
  --color-border: #1e293b;
  --color-border-soft: #131c2e;
  --color-primary: #60a5fa;
  --color-primary-dark: #3b82f6;

  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) — Raster heller, Aurora kräftiger */
[data-theme="dark"] .hero-grid {
  background-image: radial-gradient(
    circle at center,
    rgba(148, 163, 184, 0.09) 1px,
    transparent 1.6px
  );
}
[data-theme="dark"] .hero-aurora {
  background:
    radial-gradient(
      38% 50% at 32% 40%,
      rgba(59, 130, 246, 0.22) 0%,
      transparent 72%
    ),
    radial-gradient(
      42% 52% at 72% 34%,
      rgba(96, 165, 250, 0.2) 0%,
      transparent 70%
    ),
    radial-gradient(
      30% 46% at 56% 70%,
      rgba(129, 140, 248, 0.16) 0%,
      transparent 72%
    );
}
[data-theme="dark"] .hero-glow {
  background: radial-gradient(
    ellipse 56% 60% at 50% 52%,
    rgba(59, 130, 246, 0.32) 0%,
    rgba(96, 165, 250, 0.14) 38%,
    transparent 70%
  );
}

/* 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: #0f172a;
  border-color: #1e293b;
}
[data-theme="dark"] .theme-toggle:hover {
  background: #1e293b;
  border-color: #334155;
}
[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: #f1f5f9;
  color: #0b1120;
}

/* Buttons */
[data-theme="dark"] .btn-primary {
  background: #f1f5f9;
  color: #0b1120;
}
[data-theme="dark"] .btn-primary:hover {
  background: var(--color-primary);
  color: white;
}
[data-theme="dark"] .btn-ghost {
  background: #0f172a;
  color: var(--color-text);
  border-color: var(--color-border);
}
[data-theme="dark"] .btn-ghost:hover {
  background: #1e293b;
  border-color: #334155;
}

/* Download */
[data-theme="dark"] .download {
  background: linear-gradient(180deg, #0f172a 0%, #0b1120 100%);
}
[data-theme="dark"] .download-tile {
  background: #0f172a;
  border-color: var(--color-border);
}
[data-theme="dark"] .download-tile svg,
[data-theme="dark"] .tile-name {
  color: var(--color-text);
}
[data-theme="dark"] .download-tile:hover {
  border-color: var(--color-primary);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* 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 stärker sichtbar */
[data-theme="dark"] .check {
  background: rgba(96, 165, 250, 0.18);
}

/* More-Features (Dark) */
[data-theme="dark"] .more-card {
  background: #0f172a;
  border-color: var(--color-border);
}
[data-theme="dark"] .more-card:hover {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow:
    0 18px 36px -16px rgba(0, 0, 0, 0.55),
    0 4px 12px -4px rgba(96, 165, 250, 0.1);
}
[data-theme="dark"] .more-icon {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.18) 0%,
    rgba(96, 165, 250, 0.06) 100%
  );
  color: #93c5fd;
}
[data-theme="dark"] .more-card:hover .more-icon {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.28) 0%,
    rgba(96, 165, 250, 0.1) 100%
  );
}

/* Testimonials (Dark) */
[data-theme="dark"] .testimonials {
  background: var(--color-bg);
}

/* FAQ (Dark) — Akzent beim Aufklappen */
[data-theme="dark"] .faq-item[open] {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 14px 34px -18px rgba(0, 0, 0, 0.55);
}
[data-theme="dark"] .testimonial-card {
  background: #0f172a;
  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(96, 165, 250, 0.35);
  box-shadow:
    0 24px 48px -20px rgba(0, 0, 0, 0.65),
    0 6px 16px -6px rgba(96, 165, 250, 0.12);
}
[data-theme="dark"] .testimonial-mark {
  color: rgba(96, 165, 250, 0.18);
}
[data-theme="dark"] .testimonial-author {
  border-top-color: rgba(255, 255, 255, 0.06);
}
[data-theme="dark"] .testimonial-avatar {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.5);
}

/* Newsletter card */
[data-theme="dark"] .newsletter-card {
  background: #0f172a;
  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 */
[data-theme="dark"] .footer-col a:hover {
  color: var(--color-text);
}

/* 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(255, 255, 255, 0.92);
  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(15, 23, 42, 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(15, 23, 42, 0.92);
  border-color: var(--color-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .cookie-desc a {
  color: #93c5fd;
}

[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;
  }
  .phone-img {
    animation: none;
    transform: none;
  }
}
