/* =====================================================
   GLOBALES SCROLLVERHALTEN
   ===================================================== */
html {
  scroll-behavior: smooth;
}

/* =====================================================
   1. VIDEO SLIDER (FULLSCREEN HERO - STICKY)
   ===================================================== */
.page-content--video {
  padding-top: 0;
}

.video-slider {
  position: sticky;
  top: 0;
  z-index: 0;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 100vh;
  max-height: none;
  min-height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
  background: var(--c-bg);
  overflow: hidden;
  margin-bottom: 0;
}

.video-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--c-bg) 100%);
  z-index: 1; 
  pointer-events: none;
}

.video-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s var(--ease-out), visibility 0.8s;
  display: block; 
}

.video-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.video-slider__bg {
  position: absolute;
  top: -10%;
  left: 0;
  width: 100%;
  height: 120%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.7);
  will-change: transform;
}

.video-slider__content {
  position: absolute;
  z-index: 10;
  text-align: left;
  bottom: 20vh; 
  left: max(20px, 5vw); 
  max-width: 800px;
  transform: translateY(20px);
  transition: transform 0.8s var(--ease-out);
}

.video-slider__slide.is-active .video-slider__content {
  transform: translateY(0);
}

.video-slider__title {
  font-family: var(--ff-display);
  font-size: clamp(32px, 6vw, 80px);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--c-white);
}

.video-slider__info {
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--c-white-muted);
  margin-bottom: 32px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Slider Controls & Dots */
.video-slider__controls {
  position: absolute;
  bottom: 6vh;
  left: max(20px, 5vw);
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 10;
}

.video-slider__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-black-overlay);
  color: var(--c-white);
  display: grid;
  place-items: center;
  transition: background 0.3s;
  border: none;
  cursor: pointer;
}

.video-slider__btn:hover {
  background: var(--c-accent);
}

.video-slider__dots {
  display: flex;
  gap: 8px;
}

.video-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white; /* Wieder deine Variable */
  opacity: 0.4; 
  transition: background 0.3s, transform 0.3s, opacity 0.3s;
  border: none;
  cursor: pointer;
  padding: 0;
}

.video-slider__dot.is-active {
  background: var(--c-accent);
  opacity: 1; 
  transform: scale(1.3);
}

/* =====================================================
   2. FARBBALKEN TRENNER (JS GESCHEUERT / EXAKT 12PX)
   ===================================================== */
.color-bars {
  display: flex;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 120px; /* Wieder exakt auf 12px zurückgesetzt */
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.color-bars span {
  flex: 1;
  height: 100%;
}

/* =====================================================
   3. DEEP DIVES (PROJEKTE & OVERLAY)
   ===================================================== */
.video-deepdives {
  display: flex;
  flex-direction: column;
  gap: 160px;
  position: relative;
  z-index: 10;
  background: var(--c-bg);
  padding-top: 120px; 
  padding-bottom: 120px;
}

.video-project {
  display: grid;
  grid-template-columns: 6fr 4fr;
  gap: 60px;
  align-items: start;
  scroll-margin-top: 120px; 
}

.video-project--reverse {
  grid-template-columns: 4fr 6fr;
}

.video-project--reverse .video-project__media {
  order: 2;
}

.video-project--reverse .video-project__info {
  order: 1;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; 
  height: 0;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper img,
.video-teaser__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-project__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.video-project__title {
  font-family: var(--ff-display);
  font-size: clamp(24px, 4vw, 48px);
  text-transform: uppercase;
  line-height: 1;
  color: var(--c-white);
}

.video-project__tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.video-project__tags span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border: 1px solid var(--c-white-border);
  border-radius: 20px;
  color: var(--c-accent);
}

.video-project__tags span.studium {
  color: var(--c-accent-3);
  border-color: var(--c-accent-3);
}

.video-project__desc {
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
  color: var(--c-white-muted);
}

/* Behind the Scenes Grid */
.video-project__bts {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--c-white-border);
}

.video-project__bts-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-white);
  margin-bottom: 16px;
}

.video-project__bts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.video-project__bts-grid img {
  border-radius: 2px;
  aspect-ratio: 4/3;
  width: 100%;
  object-fit: cover;
}

/* =====================================================
   4. RESPONSIVE (SMARTPHONE & TABLET)
   ===================================================== */
@media (max-width: 900px) {
  .video-slider {
    height: 80vh; /* Das Video nimmt etwas weniger als die volle Bildschirmhöhe ein */
    min-height: 450px;
    max-height: 700px;
  }

  /* Text deutlich weiter nach oben rücken */
  .video-slider__content {
    bottom: 16vh; /* Abstand von unten vergrößert, damit er höher sitzt */
    max-width: 90%;
  }

  .video-slider__title {
    font-size: clamp(26px, 7vw, 42px); /* Titel auf Mobile etwas kompakter */
  }

  /* Controls unter den Text anpassen */
  .video-slider__controls {
    bottom: 8vh; /* Rutscht ebenfalls passend nach oben */

  }

  .video-deepdives {
    gap: 80px;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  
  .video-project,
  .video-project--reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .video-project--reverse .video-project__media,
  .video-project .video-project__media {
    order: -1 !important;
  }
  
  .video-project--reverse .video-project__info,
  .video-project .video-project__info {
    order: 2 !important;
  }

  .video-project__bts-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}