/* Ergänzung für mehrere Videos unter #videos.
   Diese Datei wird in index.php nach assets/css/styles.css geladen. */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
}

.video-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.video-card .video-frame {
  width: 100%;
  overflow: hidden;
}

.video-card video,
.video-card iframe,
.video-card .youtube-consent,
.video-card .video-poster {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: 0;
}

.video-card video,
.video-card iframe {
  object-fit: cover;
  background: #050108;
}

.video-card .youtube-consent,
.video-card .video-poster {
  position: relative;
}

.video-card .youtube-consent > img,
.video-card .video-poster > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card .youtube-consent::after,
.video-card .video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 61, 142, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(5, 1, 8, 0.1), rgba(5, 1, 8, 0.78));
  pointer-events: none;
}

.video-card .youtube-consent__copy,
.video-card .video-poster__copy,
.video-card .play-orb {
  position: relative;
  z-index: 1;
}

.video-card__text h3 {
  margin: 0 0 8px;
}

.video-card__text p {
  margin: 0 0 14px;
  color: var(--muted, rgba(255, 255, 255, 0.72));
}

.video-note {
  margin-top: clamp(22px, 4vw, 40px);
}
