/* ═══════════════════════════════════════════════════════════════════
   HERO „Atelier" — Umsetzung von Hero.dc.html (Claude Design)
   Stand 05.08.2026

   Das Design ist eine feste Bühne: 1440 × 900 (Desktop) bzw. 390 × 844
   (Mobil) mit absolut gesetzten Pixel-Koordinaten. Hier als fluides
   Layout nachgebaut — bei 1440 px deckungsgleich mit dem Entwurf,
   darunter skaliert die 3D-Bühne proportional mit (--bdh-scale, per JS).

   Abweichungen vom Entwurf (bewusst):
   · Logo + Navigation kommen aus header.php (Bestand), nicht aus dem Design.
   · grain.png ersetzt durch das SVG-Rauschen, das das Theme schon nutzt.

   Hintergrund: der aus dem Entwurf — Grund #07080A, ein goldener und ein
   dezent blauer Drift-Orb. NICHT der blaue Website-Hero-Verlauf; deshalb
   trägt die Sektion in front-page.php auch kein style="background:#0D2137"
   (sonst greift section[style*="background:#0D2137"] aus style.css).
   ═══════════════════════════════════════════════════════════════════ */

.bd-hero {
  background: #07080A;
  --bdh-gold:     #E9B44C;   /* Design-Gold. Auf #C8A24A stellen, um es an
                                den Rest der Seite anzugleichen. */
  --bdh-gold-hi:  #F5CE85;
  --bdh-gold-lo:  #C98A2E;
  --bdh-gold-top: #FFE7B4;
  --bdh-text:     #F7F8FA;
  --bdh-text-2:   #E8EAEE;
  --bdh-muted:    #9AA0AA;
  --bdh-muted-2:  #8B9099;
  --bdh-faint:    #6E737C;
  --bdh-scale: 1;            /* von bsd-hero.js gesetzt */

  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* Entwurfshöhe ist 900 px. Auf niedrigeren Fenstern (viele Notebooks haben
     ~800–880 px sichtbar) läge die Fußleiste mit den Pfeilen sonst unter der
     Falz — und würde zusätzlich von .bsd-sticky-bar verdeckt. Deshalb passt
     sich die Höhe nach unten an, mit 720 px als Boden. */
  min-height: 900px;
  min-height: min(900px, max(100svh, 720px));
  font-family: 'Manrope', 'Manrope Ersatz W', 'Manrope Ersatz A', 'Manrope Ersatz X', system-ui, sans-serif;
}

/* ── Hintergrund-Ebenen ─────────────────────────────────────────── */

/* Die beiden treibenden Lichtflecken aus dem Entwurf */
.bd-hero-orb {
  position: absolute; z-index: 0; pointer-events: none;
  border-radius: 50%;
}
.bd-hero-orb--gold {
  width: 1000px; height: 1000px; left: -20%; top: -28%;
  background: radial-gradient(closest-side, rgba(233,180,76,0.15), transparent);
  filter: blur(40px);
  animation: bdhDrift 24s ease-in-out infinite;
}
.bd-hero-orb--blue {
  width: 900px; height: 900px; right: -16%; bottom: -32%;
  background: radial-gradient(closest-side, rgba(90,150,255,0.13), transparent);
  filter: blur(50px);
  animation: bdhDrift2 30s ease-in-out infinite;
}

/* Vertikale Rasterlinien, nach unten ausgeblendet */
.bd-hero-grid {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 120px 100%;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
          mask-image: linear-gradient(180deg, #000, transparent 72%);
}

/* Haarlinie an der Oberkante */
.bd-hero-hairline {
  position: absolute; left: 0; right: 0; top: 0; height: 1px; z-index: 2;
  pointer-events: none; opacity: .5;
  background: linear-gradient(90deg, transparent 4%, rgba(233,180,76,0.55) 22%,
              rgba(255,255,255,0.25) 50%, rgba(233,180,76,0.55) 78%, transparent 96%);
}

/* Goldener Schein am unteren Rand */
.bd-hero-bottomglow {
  position: absolute; left: 30%; bottom: -140px; z-index: 1;
  width: 1100px; height: 380px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(233,180,76,0.13), transparent 70%);
  filter: blur(30px);
}

/* Bergstraßen-Silhouette — folgt der Maus (Parallaxe via --rx/--ry) */
.bd-hero-ridge {
  position: absolute; left: 0; right: 0; bottom: 0; height: 660px; z-index: 1;
  pointer-events: none;
  transform: translate3d(var(--rx, 0px), var(--ry, 0px), 0);
  transition: transform .7s cubic-bezier(.22,1,.36,1);
  animation: bdhBreathe 13s ease-in-out infinite;
}
.bd-hero-ridge i {
  position: absolute; bottom: 0; display: block;
}
.bd-hero-ridge i:nth-child(1) {
  left: 52%; width: 1180px; height: 600px;
  clip-path: polygon(0% 100%, 27% 30%, 39% 52%, 52% 5%, 68% 44%, 79% 26%, 100% 100%);
  background: linear-gradient(180deg, rgba(233,180,76,0.34) 0px, rgba(233,180,76,0.05) 2px,
              rgba(233,180,76,0.012) 40%, transparent 78%);
}
.bd-hero-ridge i:nth-child(2) {
  left: 24%; width: 900px; height: 400px;
  clip-path: polygon(0% 100%, 33% 18%, 48% 58%, 61% 32%, 100% 100%);
  background: linear-gradient(180deg, rgba(255,255,255,0.16) 0px, rgba(255,255,255,0.028) 2px,
              rgba(255,255,255,0.008) 46%, transparent 80%);
}
.bd-hero-ridge i:nth-child(3) {
  left: -6%; width: 760px; height: 280px;
  clip-path: polygon(0% 100%, 40% 24%, 100% 100%);
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0px, rgba(255,255,255,0.018) 2px, transparent 72%);
}
/* Höhenlinien auf dem vordersten Kamm */
.bd-hero-ridge i:nth-child(4) {
  left: 52%; width: 1180px; height: 600px;
  clip-path: polygon(0% 100%, 27% 30%, 39% 52%, 52% 5%, 68% 44%, 79% 26%, 100% 100%);
  background: repeating-linear-gradient(180deg, rgba(233,180,76,0.075) 0 1px, transparent 1px 26px);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
          mask-image: linear-gradient(180deg, #000, transparent 72%);
}

/* Cursor-Lichtkegel */
.bd-hero-spot {
  position: absolute; inset: 0; z-index: 7;
  pointer-events: none; mix-blend-mode: screen;
}

/* Filmkorn — SVG-Turbulenz statt grain.png (gleicher Effekt, kein Extra-Asset) */
.bd-hero-grain {
  position: absolute; inset: 0; z-index: 9; pointer-events: none;
  opacity: .42; mix-blend-mode: overlay;
  background-repeat: repeat;
  background-size: 220px 220px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)' opacity='0.55'/%3E%3C/svg%3E");
}

/* Innere Vignette */
.bd-hero-vignette {
  position: absolute; inset: 0; z-index: 9; pointer-events: none;
  box-shadow: inset 0 0 220px 60px rgba(0,0,0,0.55);
}

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

.bd-hero-inner {
  position: relative; z-index: 5;
  display: flex;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 132px 0 0 88px;
}

.bd-hero-copy {
  flex: 0 0 520px;
  width: 520px;
  margin-right: 24px;
}

/* ── Textspalte ─────────────────────────────────────────────────── */

.bd-hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid rgba(233,180,76,0.28);
  background: rgba(233,180,76,0.07);
  border-radius: 999px;
  animation: bdhRiseS .7s cubic-bezier(.16,1,.3,1) both;
}
.bd-hero-badge span:first-child {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bdh-gold);
  box-shadow: 0 0 10px var(--bdh-gold);
  animation: bdhPulse 2.4s ease-in-out infinite;
}
.bd-hero-badge span:last-child {
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--bdh-gold);
}

.bd-hero h1.bd-hero-h1 {
  margin: 22px 0 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 54px;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--bdh-text);
}
.bd-hero-line { display: block; overflow: hidden; }
.bd-hero-line > span { display: block; white-space: nowrap; }
.bd-hero-line:nth-child(1) > span { animation: bdhRise 1s cubic-bezier(.16,1,.3,1) .10s both; }
.bd-hero-line:nth-child(2) > span { animation: bdhRise 1s cubic-bezier(.16,1,.3,1) .24s both; }
.bd-hero-line--serif { margin-top: 2px; }
.bd-hero-line--serif > span {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic; font-weight: 400;
  font-size: 62px; letter-spacing: 0;
  background: linear-gradient(96deg, var(--bdh-gold-top), var(--bdh-gold) 45%, var(--bdh-gold-lo));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: bdhRise 1s cubic-bezier(.16,1,.3,1) .38s both;
}

.bd-hero-rule {
  margin-top: 22px; height: 1px; width: 96px;
  transform-origin: left;
  background: linear-gradient(90deg, var(--bdh-gold), rgba(233,180,76,0));
  animation: bdhDraw 1s cubic-bezier(.16,1,.3,1) .5s both;
}

.bd-hero .bd-hero-sub {
  margin: 20px 0 0; max-width: 460px;
  font-size: 17.5px; line-height: 1.62;
  color: var(--bdh-muted);
  text-wrap: pretty;
  animation: bdhRiseS .9s cubic-bezier(.16,1,.3,1) .42s both;
}

.bd-hero-ctas {
  display: flex; align-items: center; gap: 14px; margin-top: 32px;
  animation: bdhRiseS .9s cubic-bezier(.16,1,.3,1) .54s both;
}
.bd-hero .bd-hero-cta {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center;
  padding: 16px 29px; border-radius: 12px;
  background: linear-gradient(180deg, #F3C468, var(--bdh-gold));
  color: #07080A;
  font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600;
  text-decoration: none;
  box-shadow: 0 16px 44px -14px rgba(233,180,76,0.7);
  transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.bd-hero .bd-hero-cta:hover { transform: translateY(-3px); color: #07080A; }
.bd-hero-cta-arrow {
  margin-left: 9px; font-size: 15px;
  transition: translate .3s cubic-bezier(.16,1,.3,1);
}
.bd-hero .bd-hero-cta:hover .bd-hero-cta-arrow { translate: 4px 0; }
.bd-hero-cta-sheen {
  position: absolute; top: 0; bottom: 0; left: 0; width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  animation: bdhSheen 5s ease-in-out infinite;
}
.bd-hero .bd-hero-cta2 {
  display: inline-flex; align-items: center;
  padding: 15px 27px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--bdh-text-2);
  font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 500;
  text-decoration: none;
  transition: border-color .3s, background .3s, color .3s;
}
.bd-hero .bd-hero-cta2:hover {
  border-color: rgba(233,180,76,0.5);
  background: rgba(233,180,76,0.08);
  color: var(--bdh-gold-hi);
}

/* Dritter, zurückhaltender CTA unter der Button-Zeile: öffnet das
   Analyse-Popup. Bewusst als Textlink-Optik, damit er den goldenen
   Haupt-Button nicht schwächt. */
.bd-hero .bd-hero-cta3 {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 16px; padding: 0;
  background: none; border: 0; cursor: pointer;
  font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 500;
  color: var(--bdh-muted); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  padding-bottom: 3px;
  transition: color .3s, border-color .3s;
  animation: bdhRiseS .9s cubic-bezier(.16,1,.3,1) .6s both;
}
.bd-hero .bd-hero-cta3:hover {
  color: var(--bdh-gold-hi);
  border-color: rgba(233,180,76,0.55);
}
.bd-hero .bd-hero-cta3:focus-visible {
  outline: 2px solid var(--bdh-gold);
  outline-offset: 4px; border-radius: 3px;
}
.bd-hero-cta3-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--bdh-gold); flex: none;
  box-shadow: 0 0 8px var(--bdh-gold);
  animation: bdhPulse 2.4s ease-in-out infinite;
}
.bd-hero-cta3-arrow { transition: translate .3s cubic-bezier(.16,1,.3,1); }
.bd-hero .bd-hero-cta3:hover .bd-hero-cta3-arrow { translate: 3px 0; }

.bd-hero-stats {
  display: flex; align-items: center; gap: 20px;
  margin-top: 30px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
  animation: bdhRiseS .9s cubic-bezier(.16,1,.3,1) .66s both;
}
.bd-hero-stat { display: flex; flex-direction: column; gap: 5px; }
.bd-hero-stars { letter-spacing: 2px; font-size: 12px; color: var(--bdh-gold); }
.bd-hero-stat-sub { font-size: 12.5px; color: var(--bdh-muted-2); }
.bd-hero-stat-sub b { color: var(--bdh-text-2); }
.bd-hero-stat-strong {
  font-family: 'Poppins', sans-serif; font-size: 15px; font-weight: 600;
  color: var(--bdh-text-2);
}
.bd-hero-stat-strong b { font-weight: inherit; color: inherit; }
.bd-hero-stat-sep { width: 1px; height: 34px; background: rgba(255,255,255,0.1); }

/* Textvarianten: Desktop zeigt die lange, Mobil die kurze Fassung */
.bd-hero-m { display: none; }

/* ── 3D-Bühne ───────────────────────────────────────────────────── */

.bd-hero-stage {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  height: 760px;
  margin-top: -76px;            /* Design: Bühne beginnt bei top 56, Text bei 132 */
  perspective: 2000px;
  perspective-origin: 0% 45%;
}
.bd-hero-scene {
  position: absolute; left: 0; top: 0;
  width: 808px; height: 760px;
  transform-style: preserve-3d;
  transform: scale(var(--bdh-scale)) rotateY(var(--tx, 0deg)) rotateX(var(--ty, 0deg));
  transform-origin: 0% 45%;
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}

/* Browserfenster im Stapel */
.bd-hero-card {
  --off: 0;
  --sc: 0.86;
  --z: -170px;
  position: absolute; left: 0; top: 0;
  width: 700px; height: 440px;
  transform-style: preserve-3d;
  opacity: .72;
  filter: saturate(.8) brightness(.72) blur(1.2px);
  transform: translate3d(calc(var(--off) * 64px + 26px), calc(var(--off) * 150px + 120px), var(--z))
             rotateY(-19deg) rotateX(4deg) scale(var(--sc));
  transition: transform 1.1s cubic-bezier(.16,1,.3,1), opacity .9s, filter .9s;
}
.bd-hero-card.is-active { --sc: 1; --z: 40px; opacity: 1; filter: none; }

.bd-hero-shell {
  position: relative; display: flex; flex-direction: column;
  width: 100%; height: 100%;
  border-radius: 14px; overflow: hidden; cursor: pointer;
  background: #151819;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 34px 80px -34px rgba(0,0,0,0.9);
  transition: border-color .6s, box-shadow .6s;
}
.bd-hero-card.is-active .bd-hero-shell {
  border-color: rgba(233,180,76,0.45);
  box-shadow: 0 50px 120px -30px rgba(0,0,0,0.95), 0 0 90px -26px rgba(233,180,76,0.4);
}

.bd-hero-bar {
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 13px; flex: none;
  background: linear-gradient(180deg, #1e2126, #151819);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.bd-hero-bar i { width: 8px; height: 8px; border-radius: 50%; background: #3f444c; }
.bd-hero-url {
  display: flex; align-items: center; gap: 7px;
  margin-left: 8px; padding: 4px 13px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  font-size: 11.5px; color: var(--bdh-muted); white-space: nowrap;
}
.bd-hero-url i { width: 5px; height: 5px; border-radius: 50%; background: #5BD07F; flex: none; }

.bd-hero-viewport { position: relative; flex: 1; overflow: hidden; background: #101215; }
.bd-hero-screen {
  position: absolute; inset: 0;
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-color: #101215;
  background-position: center top;
  will-change: background-position;
}
/* Glanzstreifen, der über das aktive Fenster wandert */
.bd-hero-glass {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 26%;
  pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.10), transparent);
}
.bd-hero-card.is-active .bd-hero-glass { opacity: 1; animation: bdhGlass 7s ease-in-out infinite; }
.bd-hero-sheenfix {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(112deg, rgba(255,255,255,0.05) 0%, transparent 26%,
              transparent 74%, rgba(255,255,255,0.03) 100%);
}

/* Beschriftung liegt außerhalb des gerundeten Fensters — sonst flackert
   das Clipping während der Tilt-Bewegung (Hinweis aus dem Entwurf). */
.bd-hero-tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 4;
  pointer-events: none;
  padding: 7px 14px; border-radius: 999px;
  background: #0C0E11;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 8px 22px -8px rgba(0,0,0,0.85);
  font-size: 11.5px; font-weight: 600; letter-spacing: .05em;
  color: var(--bdh-muted); white-space: nowrap;
}
.bd-hero-card.is-active .bd-hero-tag { border-color: rgba(233,180,76,0.34); color: #F0D8A6; }

/* Handy vor dem Stapel */
.bd-hero-phonewrap {
  position: absolute; left: 0; top: 0; width: 700px; height: 440px; z-index: 20;
  transform: translate3d(26px, 120px, 150px) rotateY(-19deg) rotateX(4deg);
  transform-style: preserve-3d;
  pointer-events: none;
}
.bd-hero-phone {
  position: absolute; left: 486px; top: 168px;
  width: 170px; height: 352px;
  transform-style: preserve-3d;
  cursor: pointer; pointer-events: auto;
  animation: bdhRiseS 1.1s cubic-bezier(.16,1,.3,1) .8s both;
}
.bd-hero-phone-body {
  /* display:block ist Pflicht: das Element ist ein <span> (damit es in den
     umschließenden <a> darf) — als inline würden width/height ignoriert
     und das Gerät fiele auf null zusammen. */
  display: block;
  position: relative; width: 100%; height: 100%;
  padding: 7px; box-sizing: border-box;
  border-radius: 32px;
  background: linear-gradient(150deg, #343940, #0f1216 58%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 60px 120px -26px rgba(0,0,0,0.96), 0 0 80px -30px rgba(233,180,76,0.42);
}
.bd-hero-phone-body > i { position: absolute; border-radius: 2px; background: #3a3f47; }
.bd-hero-phone-body > i:nth-of-type(1) { right: -2px; top: 88px;  width: 2px; height: 44px; }
.bd-hero-phone-body > i:nth-of-type(2) { left: -2px;  top: 74px;  width: 2px; height: 26px; }
.bd-hero-phone-body > i:nth-of-type(3) { left: -2px;  top: 108px; width: 2px; height: 26px; }
.bd-hero-phone-glass {
  display: block;   /* siehe Hinweis bei .bd-hero-phone-body */
  position: relative; width: 100%; height: 100%;
  border-radius: 26px; overflow: hidden; background: #101215;
}
.bd-hero-phone-screen {
  position: absolute; inset: 0;
  background-size: 100% auto; background-repeat: no-repeat;
  background-color: #101215; background-position: center top;
  will-change: background-position;
}
.bd-hero-phone-sheen {
  position: absolute; inset: 0; pointer-events: none; border-radius: 26px;
  background: linear-gradient(118deg, rgba(255,255,255,0.09) 0%, transparent 30%);
}
.bd-hero-notch {
  position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  width: 58px; height: 15px; border-radius: 999px;
  background: #0b0d10; border: 1px solid rgba(255,255,255,0.08);
}
.bd-hero-phone-label {
  position: absolute; left: 10px; top: -13px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(233,180,76,0.96); color: #07080A;
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 12px 26px -8px rgba(0,0,0,0.85);
}

/* Cursor-Pille „Live ansehen" */
.bd-hero-pill {
  position: absolute; left: 0; top: 0; z-index: 40;
  pointer-events: none; opacity: 0;
  transform: translate(-200px, -200px);
  transition: opacity .25s;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: rgba(233,180,76,0.97); color: #07080A;
  font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 16px 38px -10px rgba(0,0,0,0.75);
}

/* ── Fußleiste mit Fortschrittsbalken (Desktop) ─────────────────── */

.bd-hero-rail {
  position: absolute; left: 0; right: 0; bottom: 0; height: 84px; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 26px 0 88px; box-sizing: border-box;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(7,8,10,0.62), rgba(7,8,10,0.92));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: bdhRiseS .9s cubic-bezier(.16,1,.3,1) .8s both;
}
.bd-hero-rail-items { display: flex; align-items: flex-end; gap: 14px; }
.bd-hero-rail-item {
  width: 152px; cursor: pointer; padding-bottom: 2px;
  opacity: .62; transition: opacity .4s;
  background: none; border: 0; text-align: left; font: inherit;
}
.bd-hero-rail-item:hover,
.bd-hero-rail-item.is-active { opacity: 1; }
.bd-hero-rail-head { display: flex; align-items: baseline; gap: 8px; }
.bd-hero-rail-num {
  font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; color: #5E636B; transition: color .4s;
}
.bd-hero-rail-item.is-active .bd-hero-rail-num { color: var(--bdh-gold); }
.bd-hero-rail-name {
  font-family: 'Poppins', sans-serif; font-size: 13.5px; font-weight: 600;
  letter-spacing: -0.01em; color: var(--bdh-muted-2); transition: color .4s;
}
.bd-hero-rail-item:hover .bd-hero-rail-name { color: #C9CDD4; }
.bd-hero-rail-item.is-active .bd-hero-rail-name { color: #F2F4F7; }
.bd-hero-rail-track {
  /* <span> in einem <button> — ohne display:block bliebe die Höhe 0
     und der Fortschrittsbalken wäre unsichtbar. */
  display: block;
  position: relative; margin-top: 9px; height: 2px; border-radius: 2px;
  background: rgba(255,255,255,0.13); overflow: hidden;
}
.bd-hero-rail-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--bdh-gold), var(--bdh-gold-hi));
}
.bd-hero-rail-item.is-active .bd-hero-rail-fill { box-shadow: 0 0 12px rgba(233,180,76,0.55); }

.bd-hero-rail-right { display: flex; align-items: center; gap: 16px; }
.bd-hero-counter {
  display: flex; align-items: baseline; gap: 5px;
  font-family: 'Poppins', sans-serif; line-height: 1;
}
.bd-hero-counter b { font-size: 15px; font-weight: 600; color: var(--bdh-gold); }
.bd-hero-counter i { font-size: 12px; color: #4E535A; font-style: normal; }
.bd-hero-counter s { font-size: 12px; font-weight: 500; color: var(--bdh-faint); text-decoration: none; }

.bd-hero-nav { display: flex; align-items: center; gap: 8px; }
.bd-hero-navbtn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
  color: #C9CDD4; font-size: 13px;
  transition: border-color .3s, background .3s, color .3s, transform .35s cubic-bezier(.16,1,.3,1);
}
.bd-hero-navbtn:hover {
  border-color: rgba(233,180,76,0.6);
  background: rgba(233,180,76,0.14);
  color: var(--bdh-gold-hi);
}
.bd-hero-navbtn--prev:hover { transform: translateY(-2px); }
.bd-hero-navbtn--next:hover { transform: translateY(2px); }

/* ── Mobil-Elemente (auf Desktop aus) ───────────────────────────── */
.bd-hero-dots, .bd-hero-marquee { display: none; }

/* Zwischenbereich: unter 1280 px bliebe für die Bühne sonst zu wenig
   übrig (bei 1024 px nur ~390 px). Textspalte und Ränder schrumpfen mit. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .bd-hero-inner { padding-left: 40px; }
  .bd-hero-copy  { flex-basis: 440px; width: 440px; }
  .bd-hero h1.bd-hero-h1 { font-size: 46px; }
  .bd-hero-line--serif > span { font-size: 53px; }
  .bd-hero .bd-hero-sub { font-size: 16px; }
  .bd-hero-rail { padding-left: 40px; }
  .bd-hero-rail-item { width: 132px; }
  /* Bei 440 px Spaltenbreite brachen die Beschriftungen sonst zweizeilig um */
  .bd-hero .bd-hero-cta  { padding: 14px 22px; font-size: 14px; }
  .bd-hero .bd-hero-cta2 { padding: 13px 20px; font-size: 14px; }
  .bd-hero .bd-hero-cta,
  .bd-hero .bd-hero-cta2 { white-space: nowrap; }
  .bd-hero-ctas { flex-wrap: wrap; }
}

/* ══════════════════════════════════════════════════════════════════
   MOBIL — Entwurf 3a (390 × 844)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  .bd-hero {
    min-height: 844px;
    padding-bottom: 42px;   /* Platz für das Laufband */
  }

  /* Kleinere Lichtflecken, wie im Mobil-Entwurf 3a */
  .bd-hero-orb--gold { width: 480px; height: 480px; left: -34%; top: -14%;
    background: radial-gradient(closest-side, rgba(233,180,76,0.17), transparent);
    filter: blur(30px); }
  .bd-hero-orb--blue { width: 420px; height: 420px; right: -40%; bottom: -16%;
    filter: blur(36px); }

  .bd-hero-grid { background-size: 78px 100%;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
            mask-image: linear-gradient(180deg, #000, transparent 70%); }
  .bd-hero-bottomglow { display: none; }
  .bd-hero-vignette { box-shadow: inset 0 0 140px 30px rgba(0,0,0,0.55); }

  .bd-hero-ridge { height: 300px; }
  .bd-hero-ridge i:nth-child(1) { left: -30%; width: 560px; height: 280px; }
  .bd-hero-ridge i:nth-child(2) { left: 34%;  width: 420px; height: 180px; }
  .bd-hero-ridge i:nth-child(3),
  .bd-hero-ridge i:nth-child(4) { display: none; }

  .bd-hero-inner {
    display: block;
    /* Entwurf: Badge bei top 66. Dort sitzt bei uns noch die Navigations-
       Pille (bis ~70 px), deshalb 84 px statt 66 px — knapp darunter, damit
       das Laufband am Fuß nicht unter die Falz rutscht. */
    /* M9: 84 → 76 px. Die Nav-Pille reicht bis ~70 px, 6 px Luft bleiben. */
    padding: 76px 20px 0;
    max-width: 100%;
  }
  .bd-hero-copy { width: auto; max-width: 350px; margin-right: 0; flex: none; }

  .bd-hero-badge { gap: 8px; padding: 6px 13px 6px 10px; }
  .bd-hero-badge span:first-child { width: 5px; height: 5px; box-shadow: 0 0 8px var(--bdh-gold); }
  .bd-hero-badge span:last-child { font-size: 10.5px; letter-spacing: .13em; }

  .bd-hero h1.bd-hero-h1 { margin-top: 12px; font-size: 34px; line-height: 1.1; letter-spacing: -0.03em; }
  .bd-hero-line--serif { margin-top: 1px; }
  .bd-hero-line--serif > span { font-size: 40px; }

  .bd-hero-rule { display: none; }
  .bd-hero .bd-hero-sub { margin-top: 12px; max-width: 350px; font-size: 14px; line-height: 1.55; }

  .bd-hero-ctas { gap: 10px; margin-top: 14px; }
  .bd-hero .bd-hero-cta  { padding: 14px 22px; font-size: 14px; box-shadow: 0 14px 36px -12px rgba(233,180,76,0.7); }
  .bd-hero .bd-hero-cta:hover { transform: none; }
  .bd-hero-cta-arrow { display: none; }
  .bd-hero .bd-hero-cta2 { padding: 13px 18px; font-size: 14px; }
  .bd-hero .bd-hero-cta3 { margin-top: 12px; font-size: 13px; gap: 7px; }

  /* Statistik wird auf Mobil zur einzeiligen Leiste */
  .bd-hero-stats {
    gap: 8px; margin-top: 12px; padding-top: 0; border-top: 0;
    font-size: 11.5px; color: var(--bdh-muted-2); white-space: nowrap;
    animation: bdhRiseS .9s cubic-bezier(.16,1,.3,1) .64s both;
  }
  .bd-hero-stat { flex-direction: row; align-items: center; gap: 4px; font-size: 11.5px; }
  .bd-hero-stars { font-size: 11px; letter-spacing: 1.5px; }
  .bd-hero-stat-sub { font-size: 11.5px; }
  .bd-hero-stat-strong { font-family: 'Manrope', 'Manrope Ersatz W', 'Manrope Ersatz A', 'Manrope Ersatz X', sans-serif; font-size: 11.5px; font-weight: 400; color: var(--bdh-muted-2); }
  .bd-hero-stat-strong b { color: var(--bdh-text-2); font-weight: 600; }

  /* Schmale Geräte: die Leiste darf umbrechen statt abzuschneiden.
     Gemessen an der Live-Seite mit den echten Schriften (Manrope):

         Breite   benötigt   verfügbar   Folge
           390       350         350     passt
           375       335         335     passt
           360       327         320     7 px abgeschnitten
           344       327         304     23 px abgeschnitten

     Bei 360 px endete „Bensheim" mit halbem „m" an der Bildschirmkante —
     ohne Auslassungszeichen, ohne Hinweis. 360 px ist keine Randgröße:
     Galaxy S8, S9, S10e und die gesamte A-Serie liegen dort.

     Ursache ist der mobil zusätzlich eingeblendete Baustein der Statistik-
     Zeile (M12, .bd-hero-d--keep). Die Abstände sind unschuldig — das ist
     per A/B nachgemessen. Statt den Baustein wieder auszublenden darf die
     Leiste hier umbrechen: zwei Zeilen sind besser als ein halbes Wort. Die 4 px zusätzliche Höhe
     kosten M9 nichts, das Laufband liegt bei 360 px ohnehin unter der Falz. */
  @media (max-width: 374px) {
    .bd-hero-stats {
      white-space: normal;
      flex-wrap: wrap;
      row-gap: 4px;
      justify-content: center;
    }
    /* Der Trenner ergibt am Zeilenende keinen Sinn mehr. */
    .bd-hero-stat-sep { display: none; }
  }
  .bd-hero-stat-sep { height: 11px; }
  .bd-hero-d { display: none; }
  .bd-hero-m { display: inline; }
  /* M12: Zwei Bausteine tragen mobil zu viel, um sie wegzulassen — der Platz
     dafür kommt aus den gekürzten Abständen oben (M9).
     · Der Baukasten-Satz ist die einzige Aussage der Seite, die kein
       Wettbewerber wortgleich über sich schreiben könnte.
     Bewertungen und Regionsbezug bleiben mobil aus: die Statistik-Zeile hat
     white-space:nowrap und würde sonst aus 390 px herauslaufen.
     Der Telefon-CTA (Zeile 92) bleibt ebenfalls unberührt — die volle Nummer
     würde die Knopfreihe umbrechen und M9 sofort wieder kippen. */
  .bd-hero-d--keep { display: inline; }
  .bd-hero .bd-hero-sub .bd-hero-d { display: inline; }

  /* Bühne: ein Fenster + schwebendes Handy */
  .bd-hero-stage {
    /* M9: 400 → 344 px. Die Karte endet bei 264 px, das Handy bei 338 px
       (top 72 + height 266), die Schwebe-Animation geht nur nach oben —
       darunter war die Bühne leer. Größter Einzelhebel, um das Laufband
       über die Falz zu holen. */
    position: relative; height: 344px;
    /* Im Entwurf läuft die Bühne über die volle Breite von 390 px, während
       nur der Text ein Seitenpolster hat. Die negativen Ränder heben das
       Polster von .bd-hero-inner wieder auf — sonst wird die Bühne um 40 px
       gestaucht und Fenster wie Handy laufen rechts aus dem Bild. */
    margin: 14px -20px 0;
    perspective: 1200px; perspective-origin: 32% 40%;
    animation: bdhRiseS 1.1s cubic-bezier(.16,1,.3,1) .7s both;
  }
  .bd-hero-scene {
    position: absolute; inset: 0; width: auto; height: 100%;
    transform: none; transition: none;
  }

  .bd-hero-card {
    left: 12px; top: 26px;
    width: min(324px, calc(100vw - 66px)); height: 238px;
    transform: rotateY(-13deg) rotateX(4deg);
    opacity: 0; visibility: hidden; filter: none;
    transition: opacity .35s ease, visibility 0s .35s;
  }
  .bd-hero-card.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease .1s, visibility 0s; }
  .bd-hero-shell { border-radius: 11px; }
  .bd-hero-card.is-active .bd-hero-shell {
    border-color: rgba(233,180,76,0.4);
    box-shadow: 0 40px 90px -26px rgba(0,0,0,0.95), 0 0 60px -22px rgba(233,180,76,0.4);
  }
  .bd-hero-bar { height: 26px; padding: 0 10px; gap: 6px; }
  .bd-hero-bar i { width: 6px; height: 6px; }
  .bd-hero-url { margin-left: 6px; padding: 3px 10px; font-size: 9px; gap: 5px; }
  .bd-hero-url i { width: 4px; height: 4px; }

  /* Beschriftung wandert nach oben, wie im Entwurf */
  .bd-hero-tag {
    left: 10px; top: -12px; bottom: auto;
    padding: 5px 12px; font-size: 10.5px;
    background: #0C0E11; color: #F0D8A6;
    border-color: rgba(233,180,76,0.34);
  }
  .bd-hero-glass { display: none; }

  .bd-hero-phonewrap {
    left: auto; right: 18px; top: 72px;
    width: 136px; height: 266px;
    /* Das Handy gehört vor das Fenster. Zwei Dinge nötig:
       1. z-index über dem, was bsd-hero.js inline auf die Karten schreibt (max. 10)
       2. echte 3D-Tiefe — in einem preserve-3d-Kontext sortiert der Browser
          nach Z-Position, nicht nur nach z-index. Deshalb trägt schon die
          Schwebe-Animation ein translateZ. */
    z-index: 30;
    transform: translate3d(0, 0, 70px);
    animation: bdhFloatMz 7s ease-in-out infinite;
  }
  /* translateZ sitzt jetzt am Wrapper (siehe oben) — hier nur noch die
     Drehung, sonst addierten sich die Tiefen und das Gerät würde zu groß. */
  .bd-hero-phone {
    left: 0; top: 0; width: 100%; height: 100%;
    transform: rotateY(-13deg) rotateX(4deg);
  }
  .bd-hero-phone-body { padding: 5px; border-radius: 24px;
    box-shadow: 0 44px 90px -22px rgba(0,0,0,0.96), 0 0 60px -22px rgba(233,180,76,0.42); }
  .bd-hero-phone-body > i:nth-of-type(1) { top: 58px; height: 30px; }
  .bd-hero-phone-body > i:nth-of-type(2) { top: 50px; height: 18px; }
  .bd-hero-phone-body > i:nth-of-type(3) { top: 74px; height: 18px; }
  .bd-hero-phone-glass, .bd-hero-phone-sheen { border-radius: 19px; }
  .bd-hero-notch { top: 5px; width: 38px; height: 10px; }
  .bd-hero-phone-label { display: none; }

  .bd-hero-rail, .bd-hero-pill { display: none; }

  /* Punkte + Pfeile */
  .bd-hero-dots {
    position: absolute; left: 0; right: 0; bottom: 58px; z-index: 6;
    display: flex; align-items: center; justify-content: center; gap: 8px;
  }
  .bd-hero-dot {
    position: relative; height: 8px; width: 8px;
    border-radius: 999px; cursor: pointer; overflow: hidden; border: 0; padding: 0;
    background: rgba(255,255,255,0.22);
    transition: width .5s cubic-bezier(.16,1,.3,1), background .4s;
  }
  .bd-hero-dot.is-active { width: 34px; background: rgba(233,180,76,0.22); }
  .bd-hero-dot-fill {
    position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px;
    background: linear-gradient(90deg, var(--bdh-gold), var(--bdh-gold-hi));
  }
  .bd-hero-dots .bd-hero-navbtn {
    width: 44px; height: 44px;
    background: rgba(12,14,17,0.7);
    border-color: rgba(255,255,255,0.16);
  }
  .bd-hero-dots .bd-hero-navbtn--prev { margin-right: 6px; }
  .bd-hero-dots .bd-hero-navbtn--next { margin-left: 6px; }
  .bd-hero-dots .bd-hero-navbtn:hover { transform: none; }
  .bd-hero-mcount {
    margin-left: 8px; font-family: 'Poppins', sans-serif;
    font-size: 11px; font-weight: 600; color: var(--bdh-faint);
  }

  /* Branchen-Laufband */
  .bd-hero-marquee {
    position: absolute; left: 0; right: 0; bottom: 0; height: 42px; z-index: 10;
    display: flex; align-items: center; overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.07);
    background: rgba(7,8,10,0.72);
  }
  .bd-hero-marquee-track {
    display: flex; width: max-content;
    animation: bdhMarquee 30s linear infinite;
  }
  .bd-hero-marquee-track > div {
    display: flex; align-items: center; gap: 28px; padding-right: 28px;
    font-size: 10.5px; letter-spacing: .15em; text-transform: uppercase;
    color: #61666E; white-space: nowrap;
  }
  .bd-hero-marquee-track b { color: var(--bdh-gold); font-weight: 400; }
}

/* Sehr schmale Geräte: Bühne darf nicht aus dem Bild laufen */
@media (max-width: 400px) {
  .bd-hero-phonewrap { right: 8px; width: 122px; height: 240px; }
  .bd-hero-card { left: 8px; }
}

/* ── Keyframes ──────────────────────────────────────────────────── */
@keyframes bdhRise   { from { opacity: 0; transform: translateY(30px); filter: blur(10px); }
                       to   { opacity: 1; transform: translateY(0);    filter: blur(0); } }
@keyframes bdhRiseS  { from { opacity: 0; transform: translateY(14px); }
                       to   { opacity: 1; transform: translateY(0); } }
@keyframes bdhPulse  { 0%, 100% { opacity: .35; transform: scale(1); }
                       50%      { opacity: 1;   transform: scale(1.5); } }
@keyframes bdhSheen  { 0%       { transform: translateX(-130%) skewX(-18deg); }
                       55%,100% { transform: translateX(240%)  skewX(-18deg); } }
@keyframes bdhGlass  { 0%       { transform: translateX(-140%) skewX(-14deg); }
                       45%,100% { transform: translateX(320%)  skewX(-14deg); } }
@keyframes bdhDraw   { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes bdhBreathe{ 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes bdhFloatM { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
/* Mobil: Schweben plus konstante Z-Tiefe, damit das Handy vor dem Fenster bleibt */
@keyframes bdhFloatMz { 0%, 100% { transform: translate3d(0,   0, 70px); }
                        50%      { transform: translate3d(0, -8px, 70px); } }
@keyframes bdhDrift  { 0%, 100% { transform: translate3d(0,0,0) scale(1); }
                       33%      { transform: translate3d(60px,-40px,0) scale(1.12); }
                       66%      { transform: translate3d(-50px,30px,0) scale(0.94); } }
@keyframes bdhDrift2 { 0%, 100% { transform: translate3d(0,0,0) scale(1.05); }
                       50%      { transform: translate3d(-80px,40px,0) scale(0.9); } }
@keyframes bdhMarquee{ from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Drei Namen, damit die Scroll-Animation beim Umschalten neu startet
   (übernommen aus dem Entwurf). */
@keyframes bdhScroll0 { 0%,3% { background-position: center top; } 97%,100% { background-position: center bottom; } }
@keyframes bdhScroll1 { 0%,3% { background-position: center top; } 97%,100% { background-position: center bottom; } }
@keyframes bdhScroll2 { 0%,3% { background-position: center top; } 97%,100% { background-position: center bottom; } }
@keyframes bdhFill0   { from { width: 0%; } to { width: 100%; } }
@keyframes bdhFill1   { from { width: 0%; } to { width: 100%; } }
@keyframes bdhFill2   { from { width: 0%; } to { width: 100%; } }

/* Außerhalb des Sichtbereichs alles stilllegen (bsd-hero.js schaltet die
   Klasse). Betrifft Scroll-Flächen, Orbs, Kamm, Laufband, Glanz und Puls. */
.bd-hero.is-offscreen,
.bd-hero.is-offscreen *,
.bd-hero.is-offscreen *::before,
.bd-hero.is-offscreen *::after { animation-play-state: paused !important; }

/* ── Reduzierte Bewegung ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .bd-hero *,
  .bd-hero *::before,
  .bd-hero *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .bd-hero-screen, .bd-hero-phone-screen { animation: none !important; background-position: center top !important; }
  .bd-hero-ridge { transition: none; }
}
