/* tonwerk-hero.css · TONWERK Fritzens · av-media productions
 * Nur, was Bricks nicht nativ abbildet: per JS erzeugte Elemente (Canvas, Kapitel-Leiste),
 * Startzustand der Kapitel und das Laufband. Alles andere (Typo, Farben, Abstände, Positionen
 * der Kapiteltexte) über Global Classes / Variablen im Bricks Style-Manager.
 * Farbe: --tw-blue kommt aus dem Bricks Variable-Manager (Fallback hier).
 */

/* Hero-Section (.tw-hero): Höhe/Position könnten auch nativ gesetzt werden, hier zur Sicherheit */
.tw-hero { position: relative; height: 100vh; height: 100svh; overflow: hidden; background: var(--tw-blue-deep, #172e66); }
.tw-hero__poster, .tw-hero__poster img, .tw-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tw-hero__poster img { object-fit: cover; }
.tw-hero.is-live .tw-hero__poster { visibility: hidden; }

/* Kapitel: erst unsichtbar, wenn das Skript läuft (Klasse tw-js setzt die PHP-Einbindung im <head>).
   Im Builder lädt das Skript nicht → dort bleiben alle Kapitel sichtbar und editierbar. */
.tw-js .tw-chapter { visibility: hidden; opacity: 0; }
.tw-static .tw-chapter, .tw-static .tw-rail, .tw-static .tw-skip { display: none; }

/* Kapitel-Leiste (Buttons erzeugt das Skript) */
.tw-rail { position: absolute; z-index: 3; right: max(20px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 14px; }
.tw-rail button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; justify-content: flex-end; font-size: 11.5px; letter-spacing: .06em; color: #fff; opacity: .55; }
.tw-rail button i { width: 18px; height: 2px; background: currentColor; transition: width .3s; }
/* 1.9: Tippfläche mindestens 24 × 24 px (Lighthouse/WCAG 2.2), Strich bleibt 2 px; Abstand kommt jetzt aus der Höhe */
.tw-rail { gap: 0; }
.tw-rail button { min-height: 24px; min-width: 24px; }
.tw-rail button span { opacity: 0; transform: translateX(6px); transition: opacity .25s, transform .25s; white-space: nowrap; }
.tw-rail button:hover span, .tw-rail button:focus-visible span, .tw-rail button.on span { opacity: 1; transform: none; }
.tw-rail button.on { opacity: 1; }
.tw-rail button.on i { width: 34px; }
.tw-rail button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media (max-width: 700px) {
  .tw-rail { top: 124px; transform: none; gap: 0; }   /* 1.9: Abstand aus der Tippfläche (24 px) */
  .tw-rail button span { display: none; }
}

/* Laufband: Div .tw-marquee > Div .tw-marquee__track > Texte (Inhalt zweimal hintereinander) */
.tw-marquee { overflow: hidden; }
.tw-marquee__track { display: flex; width: max-content; animation: tw-marquee 48s linear infinite; }
@keyframes tw-marquee { to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .tw-marquee__track { animation: none; }
}
