.hero-wrapper {
  position: relative;
  width: 100%;
  /* Trick: 463 / 1500 = 30.87% Höhe für Seitenverhältnis */
  padding-top: 30.87%;
  margin-bottom: clamp(50px, 4vw, 80px); /* Abstand zur überstehenden Box */
}

.hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* oder cover */
  z-index: 1;
}

.mobilbg {
  display: none;
}

.bg {
  display: inline;
}

.overlay-svg {
  
  height: auto;
  display: block;
}



.badge-svg {
  width: 100%;   /* oder % oder vh/vw für Responsive */
  /*max-width: 150px;
  min-width: 70px;
  max-width: 180px;*/
}

.overlay-wrapper {
  position: absolute;
  height: auto;
  z-index: 2;
  overflow: hidden;
}

.badge{
  top: 0;
  right: 2%;
  width: 10vw;
  max-width: 180px;
}

.starleft{
  bottom: 2%;
  left: 0;
  max-width: 180px;
}

.star-svg {
    width: 7vw;
  }

.starright{
  bottom: 2%;
  right: 0;
  max-width: 180px;
}

.overlay-svg:hover {
  cursor: pointer;
}

.overlay-wrapper img {
  height: auto;
}

.star-svg:hover {
  cursor: default;
}

.overlay-text {
  position: absolute;
  top: 26%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  color: white;
  font-size: clamp(5px, 1.1vw, 20px);
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}

.text-line{
  font-size: clamp(5px, 2vw, 50px);
}

.overlay-box {
  position: absolute;
  bottom: -9%;         /* frei wählbar */
  left: 50%;        /* frei wählbar */
  width: 80vw;     /* oder % / vw für Responsivität */
  height: 20%;
  background-image: url('../images/MPV_stars_background.svg'), url('../images/MPV_blue.svg');
  background-size: contain, cover;
  background-repeat: repeat, no-repeat;
  background-position: center, center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  font-weight: bold;
  pointer-events: none;
  transform: translate(-50%, 0);
  border-radius: 7px;
  font-family: 'Crimson Text';
  font-weight: 600;
  border-radius: 80% 80% 7px 7px;
}

.shooting-star-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 1; /* unter dem Text, aber über Hintergrund */
  overflow: hidden;
}

.shooting-star {
  position: absolute;
  width: 150px;
  height: 3px;
  background: linear-gradient(90deg, transparent, white);
  opacity: 0.9;
  animation: fly-across 5s ease-out forwards;
  backface-visibility: hidden;
}




/* Wenn der Viewport so schmal wird, dass Höhe < 500px wäre */
@media (max-width: 767px) {
  .bg {
    display: none;
  }
  .mobilbg {
    display: inline;
  }
  .starleft{
    bottom: 10%;
    left: 1%;
    max-width: 180px;
  }

  .star-svg {
    width: 18vw;
  }
  .starright{
    bottom: 10%;
  }
  .hero {
    height: 410px;
    margin-bottom: 50px;
        
  }

  .hero-wrapper{
    padding-bottom: calc(450px - 27%);
    margin-bottom: 0px;
  }

  .overlay-svg {
    height: auto;
    pointer-events: none; /* Optional: klickt nicht durch */
  }

  .badge {
    top: 0;
    width: 20vw;
    min-width: 130px;
    left: 2%;  
    
  }

  .overlay-text {
    font-size: 14px;
  }

  .overlay-box {
    bottom: -8%;         /* frei wählbar */
    z-index: 2;
    padding-right: 3px;
    padding-left: 3px;
  }

  .text-line{
    font-size: clamp(5px, 5vw, 20px);
    line-height: 1.3rem;
  }
}


@media (min-width: 2000px) {

  .overlay-box
  {
      width: 50vw;
      height: 10vh;
  }
  .text-line {
    font-size: clamp(5px, 2vw, 35px);
  }
}

/* Animationen */

.pulse {
  animation: pulse-width 2.7s ease-in-out infinite;
}

@keyframes fly-across {
  0% {
    transform: translate(0, 0) rotate(10deg);
    opacity: 1;
  }
  100% {
    transform: translate(60vw, 20vh) rotate(20deg); /* bleib sicher im Viewport */
    opacity: 0;
  }
}



@keyframes pulse-width {
  0%, 100% {
    transform: scale(0.96);
    filter: brightness(0.95) saturate(0.9);
  }

  50% {
    transform: scale(1.07); /* 5% größer */
    filter: brightness(1) saturate(1);
  }
}


.pulse2 {
  animation: pulse-width2 2.0s ease-in-out infinite;
}

@keyframes pulse-width2 {
  0%, 100% {
    transform: scale(0.95);
    filter: brightness(0.95) saturate(0.9);
  }

  50% {
    transform: scale(1.03); /* 5% größer */
    filter: brightness(1) saturate(1);
  }
}

/* ===== Mod Title Picture: Fading Slideshow ===== */
.bg-slideshow {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.bg-slideshow img.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--modtp-fade-ms, 800ms) ease-in-out;
}
.bg-slideshow img.slide.active {
  opacity: 1;
}
/* Desktop sichtbar, Mobile versteckt */
.bg-slideshow.desktop { display: block; }
.bg-slideshow.mobile  { display: none; }
@media (max-width: 767.98px) {
  .bg-slideshow.desktop { display: none; }
  .bg-slideshow.mobile  { display: block; }
}
/* ===== End Slideshow ===== */
