/* Flowlee · Hero-Raum (Variante B, freigegeben, aktive Arbeitsversion)
   Lädt nach showcase.css und hero.css. Teil 1 ordnet nur das Showcase-Innenleben neu,
   Teil 2 setzt nur den Hintergrund B (aktiv über html[data-background="b"]).
   Header, CTA, Intro und Wortmarke unverändert. Übernommen aus ../hero-raumvergleich/experiment.css.

   Showcase-Breite ist mobil (346px) und auf Desktop (500px) ≤ 640px, daher greift dort die
   Mobil-Containerregel aus showcase.css (Bühne 100 : 66, --bar 4.6cqw). Perspektive 110cqw,
   Ursprung Bühnenmitte. Projizierte Maße unten = Ruhelage, ohne Schweben. */

/* ---------- 1 · Komposition ---------- */

/* weiche, gestaffelte Schatten: Kontakt + Körper + weiter Umgebungsschatten.
   Der Frontschatten fällt sichtbar auf die hinteren Fenster. */
.hero .ws-window {
  box-shadow:
    0 0 1.1cqw rgb(var(--ws-edge) / var(--glow-a)),
    0 0.5cqw 1.2cqw rgb(var(--ws-shadow) / 0.3),
    0 2.5cqw 5cqw -1cqw rgb(var(--ws-shadow) / 0.42),
    0 6cqw 12cqw -3cqw rgb(var(--ws-shadow) / 0.35);
}

.hero .ws-item--front .ws-window {
  box-shadow:
    0 0 1.3cqw rgb(var(--ws-edge) / var(--glow-a)),
    0 0.6cqw 1.4cqw rgb(var(--ws-shadow) / 0.38),
    0 3cqw 6cqw -1cqw rgb(var(--ws-shadow) / 0.5),
    0 8cqw 16cqw -3cqw rgb(var(--ws-shadow) / 0.45);
}

/* Mobile (gleiche Abfrage wie hero.css).
   Äußere .website-showcase bleibt 346.32 × 224.4 bei 390 × 844 (Box 352.8–577.2).
   Innere Bühne 8px breiter je Seite: 362.32 × 224.4 (1cqw = 3.623px), Höhe wie vorher
   min(340px, Showcasebreite) × .66, 100cqw = Showcasebreite (Container "showcase").
   Projiziert: Front ≈ 238px (x 62–300, y 8–174), hinten je ≈ 201px,
   sichtbare Seitenstreifen je ≈ 59px, rechtes Fenster ≈ 40px unter der Front sichtbar,
   unterste Kante ≈ 218px inkl. Schwebeweg (< 224.4). */
@media (max-width: 479px), (max-width: 767px) and (orientation: portrait) {
  .hero .website-showcase .ws-stage {
    width: calc(100% + 16px);
    max-width: none;
    height: calc(min(340px, 100cqw) * .66);
    aspect-ratio: auto;
    margin: 0 0 0 -8px;
  }

  .hero .website-showcase .ws-item--left {
    --x: 0cqw; --y: 8cqw; --w: 58cqw;
    --z: -7cqw; --ry: 14deg; --rx: 3deg; --rz: -1deg;
  }

  .hero .website-showcase .ws-item--right {
    --x: 42cqw; --y: 18cqw; --w: 58cqw;
    --z: -7cqw; --ry: -14deg; --rx: 3deg; --rz: 1deg;
  }

  .hero .website-showcase .ws-item--front {
    --x: 18cqw; --y: 3cqw; --w: 64cqw;
    --z: 3cqw; --ry: -3deg; --rx: 2deg; --rz: 0deg;
  }
}

/* Desktop: Bühne bleibt 500 × 330 in der bestehenden Gridspalte (1cqw = 5px bei 1440 × 900).
   Projiziert: Front ≈ 324px = 65 % (x 88–412, y 11–236), hinten je ≈ 287px,
   Seitenstreifen je ≈ 84px, rechtes Fenster ≈ 80px unter der Front sichtbar,
   unterste Kante ≈ 321px inkl. Schwebeweg (< 330). Kein Überstand nach oben. */
@media (min-width: 1024px) {
  .hero .website-showcase .ws-item--left {
    --x: 0cqw; --y: 9cqw; --w: 60cqw;
    --z: -7cqw; --ry: 14deg; --rx: 3deg; --rz: -1deg;
  }

  .hero .website-showcase .ws-item--right {
    --x: 40cqw; --y: 21cqw; --w: 60cqw;
    --z: -7cqw; --ry: -14deg; --rx: 3deg; --rz: 1deg;
  }

  .hero .website-showcase .ws-item--front {
    --x: 18.5cqw; --y: 3cqw; --w: 63cqw;
    --z: 3cqw; --ry: -3deg; --rx: 2deg; --rz: 0deg;
  }
}

/* Schweben mobil und Desktop: langsam, individuelle Perioden 8.6–11.6s,
   Gesamtwege 12–16px x / 7–9px y. Tablet behält die Werte aus showcase.css.
   Start automatisch über ../showcase-build/showcase.js. */
@media (max-width: 479px), (max-width: 767px) and (orientation: portrait), (min-width: 1024px) {
  .hero .website-showcase .ws-item--left {
    --float-x: 16px; --float-y: 8px;
    --dur-x: 10.4s; --delay-x: -3.1s;
    --dur-y: 8.6s;  --delay-y: -6.2s;
  }

  .hero .website-showcase .ws-item--right {
    --float-x: 14px; --float-y: 9px;
    --dur-x: 11.6s; --delay-x: -8.3s;
    --dur-y: 9.4s;  --delay-y: -2.0s;
  }

  .hero .website-showcase .ws-item--front {
    --float-x: 12px; --float-y: 7px;
    --dur-x: 9.2s;  --delay-x: -5.4s;
    --dur-y: 11.2s; --delay-y: -1.6s;
  }
}

/* ---------- 2 · Hintergrund B (nur background) ----------
   Dunkles Violett aus der Markenpalette (#2D0B65 → #230849 → #14102A), breites weiches
   #641AFF-Licht hinter der Showcase, kaum wahrnehmbare Türkisreflexion (#00FFE0, 4 %).
   Lichtzentrum mobil/Tablet 50 % / 53 %, Desktop 25 % / 70 %. Statisch. */

html[data-background="b"] body {
  background: #14102A;
}

html[data-background="b"] .hero {
  background:
    radial-gradient(70% 26% at 56% 58%, rgb(0 255 224 / .04), rgb(0 255 224 / .015) 45%, rgb(0 255 224 / 0) 100%),
    radial-gradient(95% 44% at 50% 53%, rgb(100 26 255 / .72) 0%, rgb(100 26 255 / .46) 28%, rgb(100 26 255 / .2) 55%, rgb(100 26 255 / .06) 78%, rgb(100 26 255 / 0) 100%),
    radial-gradient(150% 110% at 50% 53%, #2D0B65 0%, #230849 42%, #1A0740 70%, #14102A 100%);
}

@media (min-width: 1024px) {
  html[data-background="b"] .hero {
    background:
      radial-gradient(34% 30% at 29% 76%, rgb(0 255 224 / .04), rgb(0 255 224 / .015) 45%, rgb(0 255 224 / 0) 100%),
      radial-gradient(52% 62% at 25% 70%, rgb(100 26 255 / .72) 0%, rgb(100 26 255 / .46) 28%, rgb(100 26 255 / .2) 55%, rgb(100 26 255 / .06) 78%, rgb(100 26 255 / 0) 100%),
      radial-gradient(130% 140% at 25% 70%, #2D0B65 0%, #230849 40%, #1A0740 68%, #14102A 100%);
  }
}
