/* PXbJ – Videos erst nach Klick laden (Datenschutz), eingebaut Okt. 2026.
   Gehört zu pxbj-video.js. Vorher wurden die YouTube-Videos beim Seitenaufruf
   automatisch geladen (Daten an Google ohne Einwilligung). Jetzt zeigt die
   Seite ein Standbild vom eigenen Server; erst der Klick lädt YouTube. */

.pxv {
  position: absolute;
  inset: 0;
  display: block;
  background: #14121a;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
}
.pxv img {
  position: absolute;
  inset: -20px;                 /* Rand für den Weichzeichner */
  width: calc(100% + 40px);
  height: calc(100% + 40px);
  object-fit: cover;
  display: block;
}
.pxv::after {                   /* leichte Abdunklung, damit der Knopf gut sichtbar ist */
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 26, 0.28);
  transition: background 0.2s ease;
}
.pxv:hover::after { background: rgba(20, 18, 26, 0.18); }
.pxv-play {
  position: absolute;
  left: 50%; bottom: 76px;      /* unten mittig, damit Titel im Standbild frei bleiben */
  width: 96px; height: 96px;
  margin: 0 0 0 -48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  z-index: 1;
  transition: transform 0.2s ease;
}
.pxv-play::before {             /* Dreieck */
  content: '';
  position: absolute;
  left: 38px; top: 28px;
  border-style: solid;
  border-width: 20px 0 20px 32px;
  border-color: transparent transparent transparent #8f1a63;
}
.pxv:hover .pxv-play { transform: scale(1.06); }
.pxv:focus-visible .pxv-play { outline: 3px solid #fff; outline-offset: 6px; }
.pxv-note {
  position: absolute;
  left: 0; right: 0; bottom: 28px;
  z-index: 1;
  text-align: center;
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  padding: 0 20px;
}
@media (max-width: 700px) {
  .pxv-play { width: 72px; height: 72px; margin: 0 0 0 -36px; bottom: 72px; }
  .pxv-play::before { left: 28px; top: 21px; border-width: 15px 0 15px 24px; }
}

/* Video-Fenster (vom Skript gebaut, außerhalb der React-Seite) */
.pxv-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(10, 9, 14, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 16px;
}
.pxv-frame {
  position: relative;
  width: min(100%, calc((100vh - 96px) * 16 / 9));
  aspect-ratio: 16 / 9;
}
.pxv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pxv-close {
  position: absolute;
  top: 14px; right: 16px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.pxv-close:hover { background: rgba(255, 255, 255, 0.12); }
html.pxv-lock, html.pxv-lock body { overflow: hidden; }
