/* CMS_NABUVIDEO – Layout allein über CSS, kein JavaScript.
   Alle Klassen mit Präfix "nv" (BEM). Die <figure> trägt zusätzlich die Klassen
   "video", "picture" und "pictureAlignFull": picture/pictureAlignFull greifen die
   Site-Regeln aus nabu2.css auf (Rahmen, Abstand, volle Spaltenbreite statt 15rem).
   Farben sind Variablen mit neutralen Startwerten; sie werden angepasst, sobald der
   Verein das gemeinsame Design für alle Module festgelegt hat. */

.nv {
  --nv-ratio: 16/9;
  --nv-bg: #f2f2f2;
  --nv-fg: #1a1a1a;
  --nv-link: #1d5fa8;
  /* Kein eigener margin: Seitenabstand (article>*) und Abstand unten (.picture) kommen aus nabu2.css. */
  max-width: var(--nv-maxbreite, none);
  box-sizing: border-box;
}
.nv__frame {
  position: relative;
  width: 100%;
  aspect-ratio: var(--nv-ratio);
  background: #000;
}

/* .nv .nv__media: höhere Spezifität als "article iframe" in nabu2.css
   (width:100%; height:auto; aspect-ratio:683/440), das sonst die Höhe des iframes bestimmt. */
.nv .nv__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
}
.nv video.nv__media { object-fit: contain; }

/* Zustand ohne Einwilligung */
.nv--blocked .nv__frame {
  background-color: var(--nv-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, .92), rgba(255, 255, 255, .92)),
    var(--nv-poster, none);
  background-size: cover;
  background-position: center;
  /* kein overflow:hidden: der Rahmen darf wachsen, wenn der Text länger ist */
}
.nv__notice {
  position: relative;        /* nicht absolut: erhöht bei Bedarf die Rahmenhöhe */
  box-sizing: border-box;
  padding: clamp(1rem, 4vw, 2rem);
  color: var(--nv-fg);
  text-align: left;
}
.nv__notice p { margin: 0 0 .75em; }
.nv__notice-icon { font-size: 2rem; line-height: 1; margin-bottom: .5rem; }
.nv__notice-title { margin: 0 0 .5em; font-size: 1.25em; font-weight: 700; color: var(--nv-fg); }
.nv__notice a { color: var(--nv-link); }
.nv__notice a:focus-visible,
.nv .nv__media:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* Bildunterschrift wie span.imageInfo in nabu2.css */
.nv__caption {
  margin: 0;
  font-size: 0.7rem;
  font-weight: bold;
  display: block;
  padding: 0.5rem;
}

@media print {
  .nv .nv__media { display: none; }
  .nv .nv__frame { aspect-ratio: auto; background: none; }
}
