/* Sideflow Design · Hero der Startseite: Pixel-Szene · Stand 06.10.2026
   Alle Regeln hängen an .pixel-an (setzt held-pixel.js nur mit WebGL und ohne reduzierte Bewegung).
   Ohne die Klasse bleibt der Hero exakt wie vorher: drei geneigte Browserfenster. */

.pixel-held { display: none; }

.held.pixel-an .pixel-held {
  display: block; position: absolute; z-index: 0; inset: -12% -9% -12% -6%;
  pointer-events: none; opacity: 0; transition: opacity .7s var(--aus);
}
.held.pixel-an .pixel-held.ist-da { opacity: 1; }
.pixel-held__leinwand { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Limette-Licht hinter der Form; die Lage setzt das Skript (nur transform und opacity) */
.pixel-held__orb {
  position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none; will-change: transform, opacity;
  background: radial-gradient(circle at 50% 50%, rgb(248 249 245 / .9) 0%, rgb(207 226 122 / .85) 20%, rgb(185 206 92 / .5) 40%, rgb(207 226 122 / .16) 58%, rgb(207 226 122 / 0) 70%);
  filter: blur(8px);
}

/* Der Stapel bleibt im DOM, nur die Fenster weichen der Szene; die Glaskarte schwebt über ihr */
.held.pixel-an .stapel { transform: none; transform-style: flat; transition: none; z-index: 1; pointer-events: none; }
.held.pixel-an .stapel .fenster, .held.pixel-an .buehne__notiz { display: none; }
.held.pixel-an .glaskarte { transform: none; left: -2%; bottom: 1%; width: min(268px, 42%); }

/* Formwahl: drei kleine echte Knöpfe unter der Szene */
.pixel-held__wahl {
  position: absolute; z-index: 2; right: 0; bottom: -46px; display: flex; gap: 6px;
}
.pixel-held__wahl button {
  appearance: none; cursor: pointer; margin: 0; padding: 7px 13px; border-radius: 999px;
  font: 500 12px/1 var(--fm); letter-spacing: .01em; color: var(--moos);
  background: rgb(248 249 245 / .66); border: 1px solid var(--linie);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color .2s ease, border-color .2s ease, transform .14s var(--aus);
}
.pixel-held__wahl button[aria-pressed="true"] { background: var(--limette); border-color: var(--limette-tief); }
.pixel-held__wahl button:focus-visible { outline: 2px solid var(--moos); outline-offset: 3px; }
.pixel-held__wahl button:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .pixel-held__wahl button[aria-pressed="false"]:hover { background: rgb(255 255 255 / .9); border-color: rgb(23 35 28 / .22); }
}

@media (max-width: 820px) {
  /* Am Handy ragt die Szene nicht über den Text: oben und unten bündig mit der Bühne */
  .held.pixel-an .pixel-held { inset: 0 -4px; }
  .held.pixel-an .glaskarte { left: 0; bottom: 0; width: 56%; }
  .pixel-held__wahl { bottom: -44px; }
  .pixel-held__wahl button { padding: 7px 11px; }
}
