/* Filme auf Startseite und Themenseiten: stumme Vorschau im Sichtbereich, „Mit Ton ansehen“ startet von vorn. */
@layer marketing {
  .chapter-film { margin: 0; min-width: 0; }
  .chapter-film-frame {
    position: relative; overflow: hidden; border-radius: 16px;
    background: var(--surface); box-shadow: 0 18px 40px color-mix(in srgb, var(--ink) 10%, transparent);
  }
  .chapter-film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface); }
  .chapter-film video:fullscreen { width: 100%; height: 100%; object-fit: contain; }
  .chapter-film video:-webkit-full-screen { width: 100%; height: 100%; object-fit: contain; }
  .chapter-film video::cue { background: var(--marketing-cream); color: var(--ink); font: 500 clamp(13px, 1.1vw, 17px)/1.4 var(--display); }
  .chapter-film-play {
    position: absolute; left: 20px; bottom: 20px;
    display: inline-flex; align-items: center; gap: 12px; min-height: 44px;
    padding: 5px 18px 5px 5px; border-radius: 40px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--hairline); color: var(--ink);
    font: 600 1rem var(--display); line-height: 1.3;
  }
  .chapter-film .film-play-icon {
    display: grid; place-items: center; width: 48px; height: 48px;
    border-radius: 50%; background: var(--action-fill); color: var(--action-foreground);
    transition: background var(--motion-fast);
  }
  .chapter-film .film-play-icon svg { width: 24px; height: 24px; }
  .chapter-film-play:hover .film-play-icon { background: var(--action-fill-hover); }
  .chapter-film .film-duration { color: var(--ink-soft); font-size: .8125rem; font-weight: 400; font-variant-numeric: tabular-nums; }
  .chapter-film-toggle {
    position: absolute; right: 12px; top: 12px; z-index: var(--z-raised);
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; cursor: pointer;
    border-radius: 50%; border: 1px solid var(--hairline); background: var(--surface); color: var(--ink-soft);
  }
  .chapter-film-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .chapter-film :is(.chapter-film-play, .chapter-film-toggle):focus-visible { outline: 3px solid var(--focus-ring-neutral); outline-offset: 3px; }
  .chapter-film figcaption { margin-top: 12px; color: var(--ink-soft); font-size: .875rem; line-height: 1.5; }
  .chapter-film figcaption a { color: inherit; text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
  .chapter-film figcaption a:hover { color: var(--ink); }
  .chapter-film .chapter-film-error { margin-top: 12px; font-size: .875rem; line-height: 1.5; }
  .chapter-film-error a { text-decoration: underline; }

  /* Themenseiten: der Film steht breit direkt unter dem Kopf, der Filmtext darunter zum Aufklappen. */
  .topic-film { padding-block: 8px 56px; }
  .topic-film .chapter-film { max-width: 960px; margin-inline: auto; }
  .topic-film .film-transcript { max-width: 960px; margin: 16px auto 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
  .topic-film .film-transcript summary { cursor: pointer; min-height: 44px; padding: 12px 4px; font: 600 1rem var(--display); color: var(--ink); }
  .topic-film .film-transcript summary:focus-visible { outline: 3px solid var(--focus-ring-neutral); outline-offset: 3px; }
  .topic-film .film-transcript p { margin: 0 0 12px; padding-inline: 4px; max-width: 70ch; color: var(--ink); line-height: 1.7; }

  @media (max-width: 639.98px) {
    .chapter-film-play { left: 10px; bottom: 10px; gap: 8px; min-height: 44px; padding: 2px 12px 2px 2px; font-size: .8125rem; }
    .chapter-film .film-play-icon { width: 34px; height: 34px; }
    .chapter-film .film-play-icon svg { width: 18px; height: 18px; }
    .chapter-film .film-duration { font-size: .75rem; }
    .chapter-film-toggle { right: 8px; top: 8px; }
    .topic-film { padding-block: 0 40px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .chapter-film .film-play-icon { transition: none; }
  }
}
