.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__video-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Standard: Desktop-Video an, Mobile-Video aus */
.hero__video-element--desktop {
  display: block;
}

.hero__video-element--mobile {
  display: none;
}

/* Breakpoint: auf kleinen Screens nur das mobile Video zeigen */
@media (max-width: 768px) {
  .hero__video-element--desktop {
    display: none;
  }

  .hero__video-element--mobile {
    display: block;
  }
}

.hero__overlay {
  position: relative;
  z-index: 2;
  min-height: 80vh;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* dunkler Verlauf für Lesbarkeit */
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.55),
    rgba(0, 0, 0, 0.35)
  );
}

.hero__lines {
  max-width: 60rem;
}

/* Grundzustand jeder Zeile: unsichtbar */
.hero-line {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms ease, transform 600ms ease;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  font-weight: 500;
}

/* aktive Zeile einblenden */
.hero-line.is-active {
  opacity: 1;
  transform: translateY(0);
}

/* Button-Grundzustand: unsichtbar */
.hero__button {
  margin-top: 2.5rem;
  padding: 0.9rem 2.4rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  color: #fff;

  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 600ms ease,
    transform 600ms ease,
    background-color 200ms ease,
    color 200ms ease,
    border-color 200ms ease;
}

/* sichtbarer Button */
.hero__button.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero__button:hover,
.hero__button:focus-visible {
  background-color: #fff;
  color: #111;
  border-color: #fff;
}

/* Mobile-Tweaks */
@media (max-width: 768px) {
  .hero {
    /*min-height: 60vh;*/
  }

  .hero__overlay {
    /*min-height: 60vh;*/
    padding-inline: 1.25rem;
  }

  .hero-line {
    font-size: clamp(1.3rem, 4vw, 1.6rem);
  }

  .hero__button {
    width: auto;
    max-width: 90%;
  }
}

/* Weniger Bewegung für Nutzer mit reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-line,
  .hero__button {
    transition: none;
  }
}
