/* Filmunterseite (Vorlage „3 Filme 03“) */
.film-seite { max-width: 1320px; }
.sr-nur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kopf: „Filme“ + Zurück */
.film-oben { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin: 0 0 34px; }
.film-oben-titel { display: block; text-decoration: none; }
.film-oben-titel .seitentitel-bild, .film-oben-titel .seitentitel { margin: 0; }
.film-zurueck {
  display: inline-block; text-decoration: none; color: #fff; font-size: calc(clamp(17px, 1.8vw, 23px) * var(--sf, 1)); line-height: 1.1;
  padding: 16px 18px; border-radius: 14px; background: #5c0d06; box-shadow: 0 6px 14px rgba(0,0,0,.3); transition: background .15s, transform .15s;
}
.film-zurueck:hover { background: #7a1308; transform: translateY(-2px); }
.film-zurueck:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }

/* Cremefarbene Karte */
.film-karte { background: var(--weiss); color: var(--tinte); border-radius: 16px; padding: clamp(20px, 2.4vw, 34px) clamp(16px, 2.2vw, 32px) clamp(26px, 3vw, 40px); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.film-titel { font-family: var(--schrift-titel); font-weight: 400; font-size: calc(clamp(36px, 5.2vw, 68px) * var(--tf, 1)); line-height: 1.05; margin: 0 0 6px; color: var(--tinte); }
.film-untertitel { margin: 0 0 18px; font-style: italic; font-size: calc(clamp(18px, 2vw, 27px) * var(--sf, 1)); line-height: 1.25; }
.film-extra { margin: 16px 0 0; font-weight: 700; color: var(--rot); }

/* Player */
.film-player { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; border-radius: 2px; }
.film-player > img, .film-player > video, .film-player > iframe, .film-poster-leer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.film-poster-leer { background: radial-gradient(circle at 50% 30%, #a3200f, #4a0703 75%); }
.film-start { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); cursor: pointer; display: grid; place-items: center; }
.film-start-kreis {
  width: clamp(70px, 9vw, 116px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: #e8b10e var(--gold-bild) center / cover; box-shadow: 0 8px 24px rgba(0,0,0,.45), inset 0 0 0 3px rgba(255,255,255,.35); transition: transform .2s;
}
.film-start-kreis svg { width: 46%; height: 46%; margin-left: 8%; filter: drop-shadow(0 1px 1px rgba(90,50,0,.6)); }
.film-start:hover .film-start-kreis { transform: scale(1.07); }
.film-start:focus-visible { outline: none; }
.film-start:focus-visible .film-start-kreis { outline: 4px solid var(--gelb); outline-offset: 4px; }
.film-player-marke { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(20,18,16,.6); color: #fff; font-size: calc(14px * var(--sf, 1)); pointer-events: none; }
.film-alter { position: absolute; right: 0; top: 12px; padding: 5px 12px 6px; background: rgba(110,12,5,.94); color: #fff; font-style: italic; font-weight: 600; font-size: calc(clamp(12px, 1.2vw, 15px) * var(--sf, 1)); line-height: 1.2; border-radius: 4px 0 0 4px; pointer-events: none; }
.film-player.laeuft .film-start, .film-player.laeuft .film-player-marke, .film-player.laeuft .film-alter, .film-player.laeuft .film-poster { display: none; }

/* Eigene Steuerung für Videodateien: goldene Leiste */
.film-steuerung { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 26px 12px 10px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.55)); transition: opacity .3s; }
.film-player.ruhig .film-steuerung { opacity: 0; }
.film-steuerung button { flex: 0 0 auto; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: rgba(20,18,16,.55); color: #fff; cursor: pointer; display: grid; place-items: center; }
.film-steuerung button svg { width: 20px; height: 20px; }
.film-steuerung button:hover, .film-steuerung button:focus-visible { background: rgba(20,18,16,.85); outline: none; box-shadow: 0 0 0 2px var(--gelb); }
.film-leiste { position: relative; flex: 1 1 auto; height: 16px; background: #6b6b6b; border: 4px solid #000; border-radius: 2px; cursor: pointer; touch-action: none; }
.film-leiste-voll { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #b8862a, #d9a640); }
.film-leiste-knopf { position: absolute; top: 50%; left: 0; width: 26px; height: 26px; translate: -50% -50%; border-radius: 50%; background: #f6b84a; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.film-leiste:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
.film-zeit { flex: 0 0 auto; color: #fff; font-size: calc(14px * var(--sf, 1)); font-variant-numeric: tabular-nums; min-width: 86px; text-align: right; text-shadow: 0 1px 2px #000; }

/* Mitwirkende */
.film-credits { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 22px 0 0; font-size: calc(clamp(17px, 2vw, 27px) * var(--sf, 1)); line-height: 1.3; }
.film-credits dt { margin: 0; }
.film-credits dd { margin: 0; }
.film-credits .film-credits-hinweis { grid-column: 1 / -1; font-style: italic; font-size: .8em; margin-top: 14px; }

/* Goldene Knöpfe */
.film-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.film-gold-knopf {
  position: relative; overflow: hidden; display: inline-block; text-decoration: none; color: #fff; font-size: calc(clamp(16px, 1.7vw, 22px) * var(--sf, 1)); line-height: 1.2;
  padding: 16px 20px; border-radius: 999px; background: #e8b10e var(--gold-bild) center / cover;
  text-shadow: 0 1px 0 var(--gold-tiefe), 1px 2px 2px rgba(90,50,0,.55); box-shadow: 0 4px 12px rgba(0,0,0,.2); transition: transform .15s;
}
a.film-gold-knopf:hover { transform: translateY(-2px); }
a.film-gold-knopf::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.6) 50%, transparent 60%) no-repeat 95% 0 / 300% 100%; opacity: 0; }
@media (hover: hover) and (pointer: fine) { a.film-gold-knopf:hover::after { opacity: 1; animation: film-glanz .9s ease-out; } }
@keyframes film-glanz { from { background-position: 95% 0; } to { background-position: 5% 0; } }
a.film-gold-knopf:focus-visible { outline: 3px solid var(--tinte); outline-offset: 3px; }

/* Text + Galerien aus dem Editor */
.film-text { margin-top: 30px; font-size: calc(19px * var(--sf, 1)); line-height: 1.6; }
.film-text > * { max-width: 100%; }
.film-text p { margin: 0 0 1em; }
.film-text h2, .film-text h3, .film-text h4 { font-family: var(--schrift-titel); font-weight: 400; color: var(--tinte); font-size: calc(clamp(28px, 3.6vw, 50px) * var(--tf, 1)); line-height: 1.1; margin: 1.2em 0 .5em; }
.film-text a { color: var(--rot); }
.film-text figure { margin: 0 0 1em; }
.film-text img { height: auto; }

/* Karussell (Galerien im Text + weitere Filme) */
.film-karussell { position: relative; }
.karussell-schiene { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 10px; }
.karussell-schiene::-webkit-scrollbar { display: none; }
.karussell-schiene > * { scroll-snap-align: start; flex: 0 0 auto; }
.karussell-pfeil {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3; width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 0;
  background: rgba(70,70,70,.82); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 12px rgba(0,0,0,.35);
}
.karussell-pfeil svg { width: 30px; height: 30px; }
.karussell-pfeil.links { left: 10px; }
.karussell-pfeil.rechts { right: 10px; }
.karussell-pfeil:hover, .karussell-pfeil:focus-visible { background: rgba(30,30,30,.92); outline: none; box-shadow: 0 0 0 3px var(--gelb); }
.film-text .film-galerie { margin: 0 calc(-1 * clamp(16px, 2.2vw, 32px)) 1.2em; }
.film-text .film-galerie .karussell-schiene { padding-inline: clamp(16px, 2.2vw, 32px); scroll-padding-inline: clamp(16px, 2.2vw, 32px); }
.film-text .film-galerie figure, .film-text .film-galerie .wp-block-image { margin: 0 !important; width: auto !important; flex: 0 0 auto !important; max-width: none !important; }
.film-text .film-galerie img { display: block; height: clamp(180px, 22vw, 286px) !important; width: auto !important; max-width: none !important; object-fit: cover; border-radius: 2px; }
.film-text .film-galerie figcaption { display: none; }

/* Weitere Filme */
.film-weitere { margin-top: 46px; }
.film-weitere-titel { font-weight: 700; font-size: calc(clamp(22px, 2.4vw, 30px) * var(--sf, 1)); margin: 0 0 18px; }
.film-weitere-kachel { position: relative; display: block; width: clamp(200px, 22vw, 298px); aspect-ratio: 16 / 9; border: 4px solid #fff; border-radius: 6px; overflow: hidden; background: var(--kino-dunkel); box-shadow: 0 4px 12px rgba(0,0,0,.4); transition: transform .2s; }
.film-weitere-kachel:hover { transform: scale(1.03); }
.film-weitere-kachel:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; }
.film-weitere-kachel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-weitere-kachel .ph { position: absolute; inset: 0; display: grid; place-items: center; padding: 10%; text-align: center; background: radial-gradient(circle at 50% 30%, #a3200f, #4a0703 75%); }
.film-weitere-kachel .ph b { font-family: var(--schrift-titel); font-weight: 400; color: var(--gelb); font-size: calc(22px * var(--tf, 1)); line-height: 1.05; }


@media (max-width: 640px) {
  .film-oben { margin-bottom: 22px; }
  .film-zurueck { padding: 11px 14px; }
  .film-credits { grid-template-columns: 1fr; gap: 0; }
  .film-credits dd { margin-bottom: 8px; }
  .karussell-pfeil { width: 44px; height: 44px; }
  .karussell-pfeil svg { width: 24px; height: 24px; }
  .film-zeit { display: none; }
}

.kachel .ecke, .film-weitere-kachel .ecke {
  /* Band läuft über beide Kanten hinaus, damit keine Ecke zu sehen ist (die Kachel schneidet es ab) */
  position: absolute; left: 76%; top: 22%; width: 120%; transform: translate(-50%, -50%) rotate(26deg); z-index: 2; pointer-events: none;
  background: var(--gelb); color: var(--tinte); font-family: var(--schrift-titel); font-weight: 400; font-size: calc(clamp(10px, 1.05vw, 14px) * var(--tf, 1));
  line-height: 1; letter-spacing: .02em; text-align: center; padding: 5px 0 4px; box-shadow: 0 2px 5px rgba(0,0,0,.35); white-space: nowrap; overflow: hidden;
}
