/* Video-Folien in der Galerie des Seitenanfangs „Galerie“ – gehört zu galerie-video.js (Sitzung „artikel-rest“, 26.11.2026).
   Die Folie liegt wie ein Bild in der Bildfläche (3:2); das Video-Vorschaubild steht im Format 16:9 mittig, dahinter dasselbe Bild weich.
   Der runde Abspielknopf ist der des Themes (.ps-video-knopf, Fläche „ps-t“).
   Vorsatz „:not(#ps-x)“: Die Abschirmung der Fläche ps-t (all: revert-layer mit dem Gewicht einer Kennung) nimmt schwächere Regeln zurück
   (Koordination, 26.11.2026 – Deklarationen unverändert). */
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video { position: absolute; inset: 0; margin: 0; overflow: hidden; background: var(--ps-stein, #e9e6e1); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility 0s .35s; }
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video.is-aktiv { opacity: 1; visibility: visible; transition: opacity .35s ease; }
/* Eine ausblendende Folie nimmt keinen Klick mehr an (sonst startete in den 0,35 s des Überblendens das eben verlassene Video) */
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video:not(.is-aktiv) { pointer-events: none; }
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video-weich { position: absolute; left: 50%; top: 50%; width: auto; height: 124%; max-width: none; transform: translate(-50%, -50%); filter: blur(26px) brightness(.9); }
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video-flaeche { position: absolute; left: 50%; top: 50%; width: 100%; aspect-ratio: 16 / 9; transform: translate(-50%, -50%); }
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video-bild, body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video-flaeche iframe { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border: 0; object-fit: contain; }
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video-start { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; padding: 0; border: 0; background: none; cursor: pointer; }
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video-start:focus-visible { outline: 2px solid var(--ps-stahl, #4a6272); outline-offset: -4px; }
/* Kennzeichnung auf dem Vorschaubild („Erklärvideo · 5:33“, span.ps-video-marke – uebernahme241 von „Design“): Deklarationen UNVERÄNDERT aus
   stil/theme.css der Vorschau (Stand 2026-11-26-m), hier nur für die zwei Stellen des Zwischenstands auf den Galerie-Seiten (Folie der Galerie,
   Kacheln im Abschnitt „Videos“ – dort ohne „.ps-t“ davor: Die Hülle div.ps-t.ps-artikel.ps-am-galerie trägt beide Klassen selbst, ein
   Nachfahren-Selektor „.ps-t .ps-am-galerie“ träfe nichts; Befund der Koordination vom 26.11.2026, 19:30 Uhr), solange die Stildatei des Themes die Regel für die Fläche „ps-t“ nicht selbst führt. */
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video .ps-video-marke, body.ps-thema:not(#ps-x) .ps-am-galerie .ps-video-marke { --ps-marke-rand: clamp(.45rem, 1.4vw, .8rem); position: absolute; z-index: 2; top: var(--ps-marke-rand); left: var(--ps-marke-rand); right: auto; bottom: auto; max-width: calc(100% - 2 * var(--ps-marke-rand)); margin: 0; padding: .3em .72em .32em; border-radius: 999px; background: rgba(8, 14, 18, .74); color: #fff; font-family: inherit; font-size: clamp(.6875rem, .64rem + .22vw, .8125rem); font-weight: 500; font-style: normal; line-height: 1.3; letter-spacing: .01em; font-variant-numeric: tabular-nums; text-align: left; text-transform: none; text-shadow: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video .ps-video-marke[data-ps-marke="oben-rechts"], body.ps-thema:not(#ps-x) .ps-am-galerie .ps-video-marke[data-ps-marke="oben-rechts"] { left: auto; right: var(--ps-marke-rand); }
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video .ps-video-marke[data-ps-marke="unten-links"], body.ps-thema:not(#ps-x) .ps-am-galerie .ps-video-marke[data-ps-marke="unten-links"] { top: auto; bottom: var(--ps-marke-rand); }
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video .ps-video-marke[data-ps-marke="unten-rechts"], body.ps-thema:not(#ps-x) .ps-am-galerie .ps-video-marke[data-ps-marke="unten-rechts"] { top: auto; left: auto; right: var(--ps-marke-rand); bottom: var(--ps-marke-rand); }
body.ps-thema:not(#ps-x) .ps-am-galerie .ps-video { position: relative; }
@media print { body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video .ps-video-marke, body.ps-thema:not(#ps-x) .ps-am-galerie .ps-video-marke { display: none !important; } }
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video.is-laeuft .ab-galerie-video-zeichen { display: none; }
/* Miniaturbild: Vorschaubild füllt die Kachel, kleines Abspielzeichen darüber */
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-leiste button.ab-galerie-wahl-video { position: relative; }
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-leiste button.ab-galerie-wahl-video img { object-fit: cover; }
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-wahl-zeichen { position: absolute; left: 50%; top: 50%; width: 1.6rem; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
body.ps-thema:not(#ps-x) .ps-t .ab-galerie-wahl-zeichen::before { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: .32rem 0 .32rem .52rem; border-color: transparent transparent transparent var(--ps-tinte, #1b2a33); }
/* ohne JavaScript: Folien untereinander wie die Bilder (das Video selbst braucht JavaScript) */
html.no-js body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video { position: relative; inset: auto; aspect-ratio: 16 / 9; opacity: 1; visibility: visible; }
@media print { body.ps-thema:not(#ps-x) .ps-t .ab-galerie-video { display: none; } }
/* Leiste der Miniaturbilder am Rechner wie in der Vorschau (stil/artikel-uebrige.css, .ps-ag-leiste li – Bitte der Koordination vom 26.11.2026,
   20:22 Uhr): Mindestbreite 3,5 rem je Miniatur, darüber hinaus rollt die Leiste – statt die Breite durch die Zahl der Folien zu teilen
   (mit den Video-Folien wurden die Miniaturen bei neun Folien 41 × 27 px klein). --n setzt die Vorlage (Zahl aller Folien). Am Smartphone
   bleibt die Regel des Themes (rollt dort schon). Passt alles in die Breite, bleibt die Leiste mittig. */
@media (min-width: 768px) {
  body.ps-thema:not(#ps-x) .ps-t .ab-galerie-leiste { --ab-luecke: .5rem; flex-wrap: nowrap; gap: var(--ab-luecke); justify-content: flex-start; justify-content: safe center; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; }
  body.ps-thema:not(#ps-x) .ps-t .ab-galerie-leiste::-webkit-scrollbar { display: none; }
  body.ps-thema:not(#ps-x) .ps-t .ab-galerie-leiste button { flex: 0 0 clamp(3.5rem, calc((100% - (var(--n) - 1) * var(--ab-luecke)) / var(--n)), 6.5rem); width: auto; min-width: 0; max-width: none; scroll-snap-align: start; }
}
