Spiele im Einstieg ein freigegebenes Video stumm auf der Fläche des Fotos ab
CI Feature / test (push) Successful in 2m17s
Deploy Test / test (push) Successful in 2m4s
Deploy Test / deploy (push) Successful in 33s

Neue optionale Auswahl refs.video am Hero (Variante Foto mit Textfläche). Gespielt wird der
für die Website freigegebene Clip nach der Regel der Karte (Trailer, Vorschauclip, Website-Datei
des Films); nie der vollständige Film. Start nach dem Laden, Schaltfläche zum Anhalten, Foto als
Rückfall, kein Selbststart bei reduzierter Bewegung, Datensparmodus und 2G. Keine Migration.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
LarsandClaude Sonnet 5.5 committed 2026-11-22 07:24:03 +01:00
1 parent 437bb394b2
commit 73126fec0c
11 files changed
+731 -5

No files matched your search

+48
View File
@@ -48,6 +48,52 @@ .lf-hero__photo {
border-radius: inherit;
}
/*
* Video auf der Fläche des Fotos (nur photo_split, resources/js/hero-video.js). Das Foto bleibt darunter sichtbar, bis
* das erste Videobild da ist; ohne JavaScript, bei Fehlern und ohne freigegebenen Clip bleibt es beim Foto.
*/
.lf-hero__video {
position: absolute;
inset: 0;
z-index: -2;
inline-size: 100%;
block-size: 100%;
max-inline-size: none;
object-fit: cover;
object-position: var(--lf-hero-focus-x) var(--lf-hero-focus-y);
border-radius: inherit;
opacity: 0;
transition: opacity 0.4s ease;
pointer-events: none;
}
.lf-hero.is-hero-started .lf-hero__video { opacity: 1; }
.lf-hero__video-toggle {
position: absolute;
inset: 12px 12px auto auto;
z-index: 2;
display: inline-flex;
align-items: center;
gap: 6px;
min-block-size: 44px;
padding: 8px 14px 8px 10px;
border: 0;
border-radius: 999px;
color: #fff;
background: rgb(3 37 81 / 86%);
font: 600 0.8125rem/1.2 var(--lf-font-ui, system-ui, sans-serif);
cursor: pointer;
}
.lf-hero__video-toggle[hidden] { display: none; }
.lf-hero__video-toggle:hover { background: var(--lf-navy-deep, var(--lf-hero-navy)); }
.lf-hero__video-toggle:focus-visible { outline: 3px solid var(--lf-hero-yellow); outline-offset: 3px; }
.lf-hero__video-icon { inline-size: 20px; block-size: 20px; }
.lf-hero__video-pause,
.lf-hero__video-toggle[aria-pressed="true"] .lf-hero__video-play { display: none; }
.lf-hero__video-toggle[aria-pressed="true"] .lf-hero__video-pause { display: inline; }
.lf-hero--photo-split::before {
content: '';
position: absolute;
@@ -189,6 +235,7 @@ @container lf-hero (max-width: 859.99px) {
.lf-hero--height-normal,
.lf-hero--height-large { min-block-size: 0; }
.lf-hero__photo { position: relative; display: block; block-size: auto; aspect-ratio: 16 / 9; }
.lf-hero__video { inset: 0 0 auto 0; block-size: auto; aspect-ratio: 16 / 9; border-radius: inherit; }
.lf-hero--photo-split::before { display: none; }
.lf-hero__inner { padding: clamp(1.2rem, 3.5cqi, 2rem); padding-block-end: 2.4rem; }
.lf-hero__copy { max-inline-size: 100%; }
@@ -204,6 +251,7 @@ @container lf-hero (max-width: 440px) {
}
@media (prefers-reduced-motion: reduce) {
.lf-hero__video { transition: none; }
.lf-hero__button { transition: none; }
.lf-hero__button:hover { transform: none; }
}