/* ===========================================================================
   viceversa.swiss · Video mit Zwei-Klick (zu _lib/video.php und video.js)
   Angelegt 19.10.2026. Fläche im Seitenverhältnis 3:2 — wie die Bilder und
   Bildstrecken daneben (Markus: «die Bilder sollten alle dasselbe Format
   haben»; vorher 16:9) — auf dem dunklen
   Kopfrot, Knopf in der Hausfarbe. Kontraste aus farben.css:
   --vv-grund auf --vv-schwarzrot 16.33:1, --vv-hell-gedaempft darauf 11.83:1; Hinweis --vv-text auf --vv-grund 9.64:1.
   =========================================================================== */

.vv-video-flaeche { position: relative; aspect-ratio: 3 / 2; background: var(--vv-schwarzrot); overflow: hidden;
                    box-shadow: var(--vv-bildschatten); }
.vv-video-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 57%; }
/* 57 % bei 3:2 (Oberkante bei 172 von 906 px = Lampe; vorher 43 % bei 16:9): Oberkante des Ausschnitts auf der Oberkante der linken Lampe (Markus, 19.10.2026:
   «ein wenig nach oben, bis zur oberen Kante der linken Lampe»). Gilt fürs Foto
   «Together We Ride»; ein anderes Standbild bräuchte einen eigenen Wert. */
/* Mit Standbild (19.10.2026, Foto «Together We Ride»): Gesichter bleiben frei —
   der Knopf in der Mitte, Titel und Zeile unten auf einem Verlauf ins Kopfrot. */
.vv-video-mit-bild .vv-video-flaeche::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, transparent 45%, color-mix(in srgb, var(--vv-schwarzrot) 88%, transparent) 100%); }
.vv-video-mit-bild .vv-video-start { z-index: 1; justify-content: flex-end; gap: 4px; padding-bottom: 18px; }
.vv-video-mit-bild .vv-video-knopf { position: absolute; left: 50%; top: 50%; margin: -38px 0 0 -38px; }
.vv-video-mit-bild .vv-video-start:hover .vv-video-knopf,
.vv-video-mit-bild .vv-video-start:focus-visible .vv-video-knopf { transform: scale(1.08); }
.vv-video-mit-bild .vv-video-titel, .vv-video-mit-bild .vv-video-unter { text-shadow: var(--vv-bildschatten); }
.vv-video-start { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column;
                  align-items: center; justify-content: center; gap: 10px; padding: 20px;
                  background: none; border: 0; cursor: pointer; color: var(--vv-grund); text-align: center; font: inherit; }
.vv-video-knopf { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%; background: var(--vv-rot-dunkel);
                  display: grid; place-items: center; margin-bottom: 8px; transition: transform .2s ease, background .2s ease; }
.vv-video-knopf::before { content: ""; margin-left: 6px; border-style: solid; border-width: 13px 0 13px 22px;
                          border-color: transparent transparent transparent var(--vv-grund); }
.vv-video-start:hover .vv-video-knopf, .vv-video-start:focus-visible .vv-video-knopf { transform: scale(1.08); background: var(--vv-rot); }
.vv-video-start:focus-visible { outline: 2px solid var(--vv-grund); outline-offset: -8px; }
.vv-video-titel { font-family: var(--vv-schrift-titel); font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
.vv-video-unter { font-size: 16px; color: var(--vv-hell-gedaempft); }
/* Der Hinweis steht unter der Fläche, auf dem hellen Grund — darin hatte er am
   Handy (375 px) keinen Platz neben Titel und Unterzeile. */
.vv-video-hinweis { margin: 10px 0 0; font-size: 14px; line-height: 1.4; color: var(--vv-text); }
.vv-video-flaeche iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 480px) {
  .vv-video-knopf { width: 60px; height: 60px; }
  /* Handy: Fläche gut 220 px hoch — Knopf unter den Gesichtern, Unterzeile weg (sie steht im Text daneben). */
  .vv-video-mit-bild .vv-video-knopf { top: 55%; margin: -30px 0 0 -30px; }
  .vv-video-mit-bild .vv-video-unter { display: none; }
  .vv-video-mit-bild .vv-video-start { padding-bottom: 10px; }
  .vv-video-mit-bild .vv-video-titel { font-size: 21px; }
  .vv-video-start { gap: 4px; padding: 12px; }
  .vv-video-unter { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .vv-video-knopf { transition: none; } }
