/* taktcode — Anpassung der scroll-world-Engine an den Design-Vertrag (DESIGN.md v1).
   Dunkles Chrome über dem Film, eine Akzentfarbe, Archivo + Plex Mono, keine Pillen-Deko. */

.sw-root {
  --sw-bg: #0e0f12;
  --sw-ink: #f3f2ee;
  --sw-ink-soft: #a9abb0;
  --sw-accent: #d2401e;
  --sw-font-display: "Archivo", ui-sans-serif, sans-serif;
  --sw-font-body: "Archivo", ui-sans-serif, sans-serif;
}
html, body { background: #0e0f12; }

/* Kopfzeile: Wortmarke im Logo-Schnitt */

.sw-brand__name { font-stretch: 85%; font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; }

/* Navigation: ruhige Textleiste statt Glas-Pillen */
.sw-nav { background: rgba(14, 15, 18, 0.55); border: 1px solid rgba(243, 242, 238, 0.12); border-radius: 4px; backdrop-filter: blur(8px); }
.sw-nav__item { font-family: "Plex Mono", ui-monospace, monospace; font-size: 0.75rem; letter-spacing: 0.02em; border-radius: 2px; color: var(--sw-ink-soft); }
.sw-nav__item:hover { color: var(--sw-ink); }
.sw-nav__item.is-active { color: #fff8f2; background: #a8321a; }
.sw-topcta { font-family: "Archivo", sans-serif; font-weight: 600; color: #fff8f2; background: #a8321a; border-radius: 4px; }

/* Szenentext */
.sw-copy__num { font-family: "Plex Mono", ui-monospace, monospace; font-size: 0.78rem; letter-spacing: 0.04em; color: var(--sw-ink-soft); }
.sw-copy__eyebrow { font-family: "Plex Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: 0.04em; text-transform: none; font-size: 0.82rem; color: #e8674a; }
.sw-copy__title { font-stretch: 85%; letter-spacing: -0.02em; line-height: 1.04; text-wrap: balance; }
.sw-copy__body { color: #d9d8d3; text-wrap: pretty; }

/* Tags als Mono-Aufzählung statt Pillen */
.sw-copy__tags { gap: 0 1.25rem; }
.sw-copy__tags li { font-family: "Plex Mono", ui-monospace, monospace; font-weight: 400; font-size: 0.8rem; color: var(--sw-ink-soft); background: none; border: 0; border-radius: 0; padding: 0; }

/* Knöpfe: Fläche Signal tief (6,36:1), Sekundär als Linie */
.sw-btn { font-family: "Archivo", sans-serif; border-radius: 4px; }
.sw-btn--primary { color: #fff8f2; background: #a8321a; }
.sw-btn--ghost { color: var(--sw-ink); border: 1px solid rgba(243, 242, 238, 0.35); }
.sw-btn--primary:hover, .sw-btn--ghost:hover { transform: none; }
@media (hover: hover) and (pointer: fine) {
  .sw-btn--primary:hover { background: #8f2914; }
  .sw-btn--ghost:hover { border-color: rgba(243, 242, 238, 0.7); }
}
.sw-btn:active { transform: scale(0.98); }

.sw-route__label { font-family: "Plex Mono", ui-monospace, monospace; color: #15171c; }
.sw-hint { font-family: "Plex Mono", ui-monospace, monospace; letter-spacing: 0.06em; text-transform: none; }
.sw-particles { display: none; }

/* Nach dem Film: Papier schiebt sich über die letzte Szene */
.after {
  position: relative;
  z-index: 500;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 -40px 80px rgba(0, 0, 0, 0.35);
}
.after .section:first-child { border-top: 0; }

/* Logo: Zeichen als Bild, Wortmarke als Text in derselben Schrift (Archivo 85/700) = identisch zum Logo */
.sw-brand { gap: 12px; }
.sw-brand__mark { display: block; width: 44px; height: 24px; border-radius: 0; box-shadow: none; background: url("../brand/taktcode-mark-dark.svg") no-repeat center / contain; }

/* Video erst zeigen, wenn es einen Frame gemalt hat — sonst deckt ein leeres Video-Element das Standbild schwarz ab */
.sw-scene__video { opacity: 0; }
.sw-scene.has-clip .sw-scene__video { opacity: 1; }

/* Handy: Scroll-Hinweis würde den Szenentext überlappen — der Text selbst lädt zum Scrollen ein */
@media (max-width: 860px) { .sw-hint { display: none; } }

/* KI-Kennzeichnung (Art. 50 Abs. 4 KI-VO): dauerhaft sichtbar, solange Film/Standbilder sichtbar sind.
   Liegt über der Bühne (10) und unter dem Papier (.after, 500) — verschwindet also genau mit dem Film. */
.ai-mark {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 45;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.45rem 0.75rem 0.45rem 0.6rem;
  font-family: "Plex Mono", ui-monospace, monospace; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  color: #f3f2ee; text-decoration: none;
  background: rgba(14, 15, 18, 0.82);
  border: 1px solid rgba(243, 242, 238, 0.28);
  border-radius: 4px;
  backdrop-filter: blur(6px);
}
.ai-mark::before { content: ""; width: 0.5rem; height: 0.5rem; background: #d2401e; border-radius: 1px; flex: none; }
.ai-mark:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.ai-mark:focus-visible { outline: 2px solid #e8674a; outline-offset: 3px; }
@media (max-width: 860px) { .ai-mark { font-size: 0.72rem; padding: 0.35rem 0.6rem 0.35rem 0.5rem; right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); } }
