/* Videos je Modell (teile/modellvideos.html) und Videoseite nach Modellen (videos.html). Backend V2g.
   Nutzt nur die Gestaltungsgrößen aus tokens.css/themes.css. */

/* ---------- Modellseite: Videos des Modells ---------- */
.mvid__kopf { margin-bottom: var(--raum-5, 1.5rem); }
.mvid__kopf .etikett { margin-bottom: var(--raum-2, .5rem); }
.mvid__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--raum-6, 2rem) var(--raum-5, 1.5rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.mvid__liste--eins { grid-template-columns: minmax(0, 52rem); }
.mvid__eintrag { display: grid; gap: var(--raum-2, .5rem); align-content: start; min-width: 0; }
.mvid__buehne { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-l, 1rem);
  background: var(--wasser-tief, #0b2230); isolation: isolate; color: inherit; text-decoration: none; }
.mvid__buehne > img, .mvid__buehne > picture, .mvid__buehne > picture > img, .mvid__buehne > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mvid__buehne > video { object-fit: contain; background: #000; }
/* Quadratischer Drehfilm (seed/dreh.json): Standbild und Film gleich groß und mittig, nicht oben/unten beschnitten.
   Seitenränder im Verlauf des Films (render.mjs: oben #163447, unten #041a26), damit kein schwarzer Kasten entsteht. */
.mvid__buehne--quadrat { background: linear-gradient(#163447, #041a26); }
.mvid__buehne--quadrat > img, .mvid__buehne--quadrat > video { object-fit: contain; background: transparent; }
.mvid__buehne:not(:has(video))::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(3 12 18 / 0.3); pointer-events: none; }
.mvid__buehne:has(iframe)::after { opacity: 0; }
.mvid__buehne iframe { z-index: 3; }
.mvid__start { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: var(--raum-3, .75rem); padding: .5rem 1.4rem .5rem .5rem;
  border-radius: var(--radius-knopf, 999px); background: #fff; color: #06131c; font-weight: 500; white-space: nowrap;
  text-decoration: none; box-shadow: 0 18px 50px -18px rgb(0 0 0 / .7); transition: transform var(--dauer-3, .4s) var(--kurve-aus, ease-out); }
.mvid__start[hidden] { display: none; }
.mvid__start:hover { transform: translate(-50%, -50%) scale(1.04); }
.mvid__start:focus-visible, .mvid__buehne--link:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.mvid__zeichen { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--radius-knopf, 999px); background: #06131c; color: #fff; }
.mvid__zeichen svg { margin-left: .15rem; }
.mvid__eintrag { grid-template-rows: auto auto 1fr; }
/* Titel fest zweizeilig: Meta-Zeile (Dauer, Plattform, KI-Marke) steht in jeder Reihe auf derselben Höhe (LAYOUT.md) */
.mvid__titel { font-size: var(--gr-gross, 1.2rem); line-height: 1.3; margin: var(--raum-2, .5rem) 0 0;
  min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mvid__meta { align-self: start; }
.mvid__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; align-items: center; margin: 0; color: var(--text-leise, #5b6670); }
.mvid__meta a, .mvid__hinweis a { color: inherit; text-decoration: underline; text-underline-offset: .2em; }
.mvid__hinweis { margin-top: var(--raum-5, 1.5rem); color: var(--text-leise, #5b6670); max-width: 60rem; }
@media (prefers-reduced-motion: reduce) { .mvid__start { transition: none; } .mvid__start:hover { transform: translate(-50%, -50%); } }
@media (max-width: 30rem) { .mvid__start { padding-right: 1rem; } .mvid__zeichen { width: 2.3rem; height: 2.3rem; } }

/* ---------- /videos: nach Modellen ---------- */
.vgruppe__kopf { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1.5rem; }
.vgruppe__kopf h2 a { color: inherit; text-decoration: none; }
.vgruppe__kopf h2 a:hover, .vgruppe__kopf h2 a:focus-visible { text-decoration: underline; text-underline-offset: .15em; }
.vgruppe__link { white-space: nowrap; }
.vfilter .chip[aria-current="true"] { background: var(--text, #10202b); color: var(--flaeche, #fff); border-color: var(--text, #10202b); }
.vkarte--extern .lesekarte__bild { display: grid; place-items: center; background: var(--wasser-tief, #0b2230); color: #fff; }
.vkarte--extern .lesekarte__bild span { font-weight: 500; letter-spacing: .02em; }
