/* ==========================================
   INDEX – CINEMA BAND MIT ATEM (FINAL)
   ========================================== */

main {
  margin: 0;
  padding: 0;
  padding-bottom: 12vh;
}

/* ------------------------------------------
   HERO – GROSSES HORIZONTALES BAND
   ------------------------------------------ */

#hero {
  position: relative;
  width: 100vw;

  height: 180vh;
  min-height: 1200px;
  max-height: 2400px;

  margin-top: 6vh;
  overflow: hidden;
}

/* ------------------------------------------
   SLIDES (BILDER)
   ------------------------------------------ */

#hero .slide {
  position: absolute;
  inset: 0;
  z-index: 1;

  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;

  opacity: 0;
  transition: opacity 1.8s ease-in-out;

  /* OBEN weich, UNTEN jetzt sanfter */
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,1) 18%,
    rgba(0,0,0,1) 88%,
    transparent 100%
  );

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,1) 18%,
    rgba(0,0,0,1) 88%,
    transparent 100%
  );
}

#hero .slide.active {
  opacity: 1;
}

/* ------------------------------------------
   HERO – 80 % DECKKRAFT (OHNE KANTE)
   ------------------------------------------ */

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;

  background: rgba(255, 255, 255, 0.20);

  /* exakt gleiche Maske */
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,1) 18%,
    rgba(0,0,0,1) 88%,
    transparent 100%
  );

  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0,0,0,1) 18%,
    rgba(0,0,0,1) 88%,
    transparent 100%
  );
}

/* ------------------------------------------
   RESPONSIVE FEINGEFÜHL
   ------------------------------------------ */

@media (max-width: 1200px) {
  #hero {
    height: 160vh;
    min-height: 900px;
  }

  main {
    padding-bottom: 10vh;
  }
}

@media (max-width: 768px) {
  #hero {
    height: 120vh;
    min-height: 600px;
    margin-top: 8vh;
  }

  main {
    padding-bottom: 8vh;
  }

  #hero .slide,
  #hero::before {
    mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0,0,0,1) 22%,
      rgba(0,0,0,1) 90%,
      transparent 100%
    );

    -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      rgba(0,0,0,1) 22%,
      rgba(0,0,0,1) 90%,
      transparent 100%
    );
  }
}
