/* Spielinsel-Erklärvideo auf /referenzen/, /app-entwicklung/ und /spielinsel/
   Rahmen für das Querformat (16:9) und das Hochformat (9:16 im Handyrahmen) plus Pause-Knopf.
   Gleiche Haltung wie die WIRZEIT-Bühne (assets/referenzen-wirzeit.css): Haarlinien, Mono-Etiketten,
   Bernstein als einzige Auszeichnung. Laden und Abspielen regelt assets/referenzen.js
   (data-wz-stage / data-wz-video / data-wz-toggle): Quellen erst, wenn die Bühne sichtbar ist,
   stumm in Schleife, bei prefers-reduced-motion nur auf Knopfdruck.
   Auf der hellen Landingpage (/spielinsel/, body.help-page) andere Rahmen- und Textfarben. */

.si-stage { position: relative; margin: 0; padding: 0; }
.si-video { position: relative; overflow: hidden; background: #15110e; }
.si-video video { display: block; width: 100%; height: auto; background: #15110e; }
.si-video--quer {
  border: 1px solid #39332d;
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0,0,0,.4);
}
.si-video--quer video { aspect-ratio: 16 / 9; }
.si-video--hoch {
  width: min(100%, 300px);
  padding: 7px;
  border: 1px solid #4a433c;
  border-radius: 32px;
  background: #0b0a09;
  box-shadow: 0 34px 80px rgba(0,0,0,.5), 0 0 0 6px rgba(200,136,74,.035);
}
.si-video--hoch video { aspect-ratio: 9 / 16; border-radius: 25px; }

.si-stage__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.4rem;
}
.si-stage__note {
  margin: 0;
  color: #817d78;
  font: 500 .65rem/1.6 "Geist Mono", monospace;
  letter-spacing: .04em;
}
.si-stage__buttons { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

/* Pause/Abspielen und Ton an/aus – gleiche Form wie .wz-toggle, hier eigenständig, weil
   referenzen-wirzeit.css nur auf /referenzen/ liegt */
.si-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  padding: 0 .9rem;
  border: 1px solid var(--border-hi, #37373b);
  border-radius: 99px;
  background: rgba(12,12,13,.6);
  color: #c4bfb8;
  font: 600 .62rem/1 "Geist Mono", monospace;
  letter-spacing: .09em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .25s ease, color .25s ease;
}
.si-toggle:hover { border-color: rgba(200,136,74,.6); color: var(--amber-hi, #dda15f); }
.si-toggle:focus-visible { outline: 2px solid var(--amber-hi, #dda15f); outline-offset: 4px; }
.si-toggle__icon { position: relative; width: 9px; height: 10px; }
.si-toggle__icon::before, .si-toggle__icon::after {
  content: "";
  position: absolute;
  top: 0;
  width: 3px;
  height: 10px;
  background: currentColor;
}
.si-toggle__icon::before { left: 0; }
.si-toggle__icon::after { right: 0; }
.si-toggle[data-state="paused"] .si-toggle__icon::before {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 9px;
  border-color: transparent transparent transparent currentColor;
  background: none;
}
.si-toggle[data-state="paused"] .si-toggle__icon::after { display: none; }
.si-toggle__svg { display: block; width: 13px; height: 13px; }
.si-toggle__wave { transition: opacity .25s ease; }
.si-toggle[data-state="off"] .si-toggle__wave { opacity: .3; }
.si-toggle[data-state="on"] { border-color: rgba(200,136,74,.7); color: var(--amber-hi, #dda15f); }

/* /app-entwicklung/ – Hochformat unter dem Spielinsel-Abschnitt (.app-case ist ein Zweispalter) */
.si-stage--app {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 40px 56px;
  align-items: center;
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid #303033;
}
.si-stage--app .si-stage__side { min-width: 0; max-width: 560px; }
.si-stage--app .si-stage__side p { margin-top: 0; }
.si-stage__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 6px; }

/* /spielinsel/ – Querformat direkt unter dem Hero, helle Seite */
.help-video { padding: 10px 0 70px; }
.help-video__head { max-width: 760px; margin-bottom: 30px; }
.help-video__head h2 { margin: 0 0 16px; font-size: 36px; font-weight: 600; line-height: 1.15; letter-spacing: -.025em; }
.help-video__head p { margin: 0; color: #43536f; font-size: 17px; line-height: 1.75; }
.help-video .si-stage { max-width: 980px; }
.help-page .si-video, .help-page .si-video video { background: #e8e4f6; }
.help-page .si-video--quer { border-color: #d8dfeb; box-shadow: 0 24px 50px rgba(36,51,92,.14); }
.help-page .si-stage__note { color: #53637d; }
.help-page .si-toggle { border-color: #c9d2e3; background: #fff; color: #24335c; }
.help-page .si-toggle:hover { border-color: #6248ac; color: #6042a2; }
.help-page .si-toggle:focus-visible { outline-color: #6248ac; }
.help-page .si-toggle[data-state="on"] { border-color: #6248ac; color: #6042a2; }

@media (max-width: 650px) {
  .si-stage__foot { flex-direction: column; align-items: flex-start; gap: .9rem; margin-top: 1.1rem; }
  .si-stage__buttons { gap: .5rem; }
  .si-video--quer { border-radius: 7px; }
  .si-video--hoch { width: min(100%, 250px); padding: 5px; border-radius: 24px; }
  .si-video--hoch video { border-radius: 19px; }
  .si-stage--app { grid-template-columns: 1fr; gap: 28px; margin-top: 36px; padding-top: 36px; }
  .help-video { padding: 0 0 50px; }
  .help-video__head { margin-bottom: 22px; }
  .help-video__head h2 { font-size: 30px; }
  .help-video__head p { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .si-toggle { transition: none; }
}
