/* ============================================
   VIDEO SLIDER
   ============================================ */

.video-slider-section {
  background: var(--black);
  padding: 64px 0 56px;
}

.video-slider-layout {
  display: flex;
  align-items: flex-start;
  max-width: var(--grid-max-width);
  margin: 0 auto;
  gap: 24px;
}

.slider-arrow {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  /* Höhe = Bildhöhe (16:9), damit align-items: center den Pfeil auf Bildmitte setzt */
  height: calc((min(100vw, 1200px) - 144px) * 9 / 16);
  align-self: flex-start;
  background: none;
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

/* isolation: isolate schafft neuen Stacking-Context →
   ::after mit z-index: -1 liegt unter dem Text-Pfeil */
.slider-arrow { isolation: isolate; }

.slider-arrow::after {
  content: '';
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s, border-color 0.2s;
  z-index: -1;
}

.slider-arrow:hover::after {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.5);
}

.slider-track {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.slide {
  display: none;
  flex-direction: column;
  align-items: center;
}

.slide.active { display: flex; }

/* 16:9-Container */
.yt-thumb,
.slide-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.yt-thumb {
  position: relative;
  background: var(--yt-dark-bg);
  overflow: hidden;
  cursor: pointer;
}

.yt-thumb img { transition: transform 0.3s; }
.yt-thumb:hover img { transform: scale(1.02); }

/* iframe füllt absolut seinen Container */
.yt-thumb iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.yt-thumb.playing .play-btn { display: none; }

/* DSGVO-Zustimmungs-Overlay */
.yt-consent-overlay {
  position: absolute;
  inset: 0;
  background: var(--yt-dark-overlay);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  z-index: 10;
}

.yt-consent-overlay p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
  max-width: 400px;
}

.yt-consent-overlay p a {
  color: var(--accent);
  text-decoration: underline;
}

.yt-consent-btn {
  background: var(--accent);
  color: var(--black);
  border: none;
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 2px;
  white-space: nowrap;
}

.yt-consent-btn:hover { opacity: 0.88; }

.yt-thumb-placeholder {
  width: 100%;
  height: 100%;
  background: var(--yt-placeholder-bg);
}

.slide-image-wrap { overflow: hidden; }

.slide-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-image-wrap .yt-thumb-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn:hover { opacity: 1; transform: scale(1.1); }
.play-btn svg { width: 64px; height: 64px; }

.slide-info {
  text-align: center;
  padding: 32px 24px 0;
  max-width: 680px;
  width: 100%;
}

.slide-title {
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: var(--text-lg);
  line-height: 1.3;
  color: var(--white);
  margin-bottom: 16px;
}

.slide-text {
  margin-bottom: 28px;
  text-align: center;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}

.dot.active { background: var(--white); }

@media (max-width: 900px) {
  .video-slider-section {
    padding: 32px 0 40px;
  }

  .video-slider-layout {
    position: relative;
    gap: 0;
  }

  .slider-arrow {
    position: absolute;
    top: 0;
    width: 40px;
    height: calc(100vw * 9 / 16);
    font-size: 15px;
    z-index: 10;
  }

  .slider-arrow--prev { left: 0; }
  .slider-arrow--next { right: 0; }

  .slider-arrow::after {
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.2);
  }
}
