/* =========================================================
   Film-Sektion: Video + Kapitelliste
   ========================================================= */
.film__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "head figure" "chapters figure";
  grid-template-rows: auto auto; align-content: center;
  column-gap: clamp(32px, 6vw, 88px); row-gap: 0;
}
.film__head { grid-area: head; align-self: end; max-width: 640px; }
.film__chapters { grid-area: chapters; align-self: start; max-width: 640px; margin-top: clamp(28px, 3.5vw, 44px); }
.film__figure { grid-area: figure; margin: 0; align-self: center; justify-self: center; width: 100%; display: flex; flex-direction: column; align-items: center; }

/* ---------- Kapitelliste ---------- */
.film__list { list-style: none; margin: 0; padding: 0; }
.film__item + .film__item { border-top: 1px solid var(--line); }
.film__item:has(.is-active), .film__item:has(.is-active) + .film__item { border-top-color: transparent; }
.film__chapter {
  position: relative; display: flex; align-items: flex-start; gap: 18px;
  width: 100%; min-height: 56px; padding: 16px 20px 18px; margin: 0;
  border: 0; border-radius: 16px; background: transparent; text-align: left; cursor: pointer;
  transition: background-color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.film__chapter:hover { background: rgba(255,255,255,.6); }
.film__chapter.is-active, .film__chapter.is-active:hover { background: var(--surface); box-shadow: var(--shadow-1); }
.film__time { flex: none; min-width: 2.75em; padding-top: .2em; color: var(--ink-2); }
.film__chapter.is-active .film__time { color: var(--blue-ink); }
.film__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.film__title { display: flex; align-items: center; font-weight: 600; color: var(--navy); line-height: 1.35; }
.film__desc { font-size: var(--fs-small); color: var(--ink-2); line-height: 1.5; }
.film__dot { flex: none; width: 0; height: 8px; margin-right: 0; opacity: 0; animation: none; box-shadow: none; transition: width 250ms var(--ease), margin-right 250ms var(--ease), opacity 250ms var(--ease); }
.film__chapter.is-active .film__dot { width: 8px; margin-right: 12px; opacity: 1; box-shadow: var(--laser-glow); animation: laser-pulse 2.4s var(--ease) infinite; }
.film__bar { position: absolute; left: 20px; right: 20px; bottom: 6px; height: 2px; border-radius: 2px; background: transparent; overflow: hidden; }
.film__chapter.is-active .film__bar { background: var(--line); }
.film__fill { display: block; height: 100%; width: 100%; background: var(--blue); transform: scaleX(var(--p, 0)); transform-origin: left center; }
.film__cta { margin-top: 24px; padding-left: 20px; }

/* ---------- Video ---------- */
.film__frame {
  position: relative; aspect-ratio: 9 / 16; max-height: min(78vh, 720px); width: auto; max-width: 100%;
  height: min(78vh, 720px); border-radius: var(--r-xl); box-shadow: var(--shadow-2); background: var(--night);
}
.film__video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; max-width: none; }
.film__controls { position: absolute; left: 14px; right: 14px; bottom: 16px; display: flex; justify-content: space-between; pointer-events: none; }
.film__ctl {
  pointer-events: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; color: #fff; background: rgba(3,28,48,.55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.film__ctl:hover { background: rgba(3,28,48,.75); }
.film__ctl:active { transform: scale(.94); }
.film__ctl:focus-visible, .film__start:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--blue); }
.film__play .i-pause, .film__play[aria-pressed="true"] .i-play { display: none; }
.film__play[aria-pressed="true"] .i-pause { display: block; }
.film__sound .i-sound, .film__sound[aria-pressed="true"] .i-muted { display: none; }
.film__sound[aria-pressed="true"] .i-sound { display: block; }
.film__start {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; padding: 0 0 0 4px;
  border: 0; border-radius: 50%; background: #fff; color: var(--navy); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-2);
  transition: transform 200ms var(--ease);
}
.film__start[hidden] { display: none; }
.film__start:hover { transform: scale(1.06); }
.film__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.25); }
.film__progress-fill { display: block; height: 100%; width: 100%; background: rgba(255,255,255,.7); transform: scaleX(var(--p, 0)); transform-origin: left center; }

/* ---------- Responsiv ---------- */
@media (max-width: 899px) {
  .film__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "figure" "chapters"; }
  .film__head { max-width: none; }
  .film__figure { margin-top: clamp(32px, 6vw, 48px); }
  .film__frame { height: auto; max-width: 360px; width: 100%; max-height: none; }
  .film__chapters { max-width: none; margin-top: 32px; }
}
@media (max-width: 480px) {
  .film__chapter { padding-inline: 12px; gap: 12px; }
  .film__bar { left: 12px; right: 12px; }
  .film__cta { padding-left: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .film__dot, .film__chapter, .film__ctl, .film__start { transition: none; }
}
