.hero__container {
  width: 100vw;
}

.hero__wrapper {
  padding: var(--spacing-10);
}

/* Hero Sektion */
.hero {
  position: relative;
  width: 100%;
  height: calc(100vh - 5rem);
  overflow: hidden;
}

/* Video Container */
.hero__video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}

.hero__video--active {
  opacity: 1;
}

/* Content Bereich */
.hero__content {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  padding-left: var(--spacing-4);
}

.hero__text-wrapper {
  position: relative;
  width: 50%;
  color: var(--color-surface);
  border-radius: 4px;
  height: auto;
  min-height: 300px;
}

/* Text Styles */
.hero__title {
  font-family: var(--font-montserrat);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s,
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.hero__text-content--active .hero__title {
  opacity: 1;
  transform: translateY(0);
}

.hero__subtitle {
  font-family: var(--font-ibm-plex);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s,
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.hero__text-content--active .hero__subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* Button Container */
.hero__cta-wrapper {
  position: relative;
  z-index: 2;
  margin-top: auto;
  position: absolute;
  bottom: -5rem;
}

/* Button Text Transition */
.hero__cta-text {
  transition: opacity 0.3s ease;
}

/* Button Styles */
.hero__cta-button {
  display: inline-flex;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--color-primary);
  color: var(--color-surface);
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.hero__cta-button:hover {
  background-color: var(--color-primary-dark);
}

/* Navigation Controls */
.hero__controls {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 var(--spacing-2);
  pointer-events: none;
}

.hero__nav-button {
  width: 3rem;
  height: 3rem;
  border: none;
  color: var(--color-surface);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  pointer-events: auto;
}

.hero__nav-button i::before {
  font-size: 1.5rem;
}

.hero__nav-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero__progress {
  position: absolute;
  bottom: 2rem;
  right: var(--spacing-3);
  display: flex;
  gap: 1rem;
}

.hero__progress-item {
  width: 150px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.hero__progress-bar {
  width: 0;
  height: 100%;
  background-color: var(--color-accent);
  transition: none;
}

.hero_progress-item-heading {
  margin-top: var(--spacing-2);
}

.hero_progress-item-heading p {
  color: var(--color-text-inverse);
  font-size: var(--text-xs);
  font-weight: 400;
  line-height: 1.5;
}
/* Text Content Animation */
.hero__text-content {
  position: absolute;
  opacity: 0;
  visibility: hidden;
  transform: translateX(30px);
  transition:
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.6s;
}

.hero__text-content--active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}

@media (max-width: 64rem) {
  .hero {
    position: relative;
    width: 100%;
    height: calc(100vh - 5.375rem);
    overflow: hidden;
  }

  /* Video Container */
  .hero__video-container {
    position: relative;
    height: 42%;
  }

  .hero__video-container::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255, 255, 255);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 65%, rgba(47, 47, 47, 1) 100%);
    pointer-events: none;
    z-index: 6;
  }

  .hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Content Bereich */
  .hero__content {
    max-width: 100%;
    height: 58%;
    position: relative;
    padding: var(--spacing-3);
    background-color: #2f2f2f;
  }

  .hero__text-wrapper {
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    margin: 0;
  }

  /* Text Styles */
  .hero__text-content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .hero__title {
    font-size: var;
    margin-bottom: var(--spacing-4);
    line-height: 1.1;
    hyphens: auto;
    lang: de;
    hyphenate-limit-chars: 6 3 3;
    hyphenate-limit-zone: 8%;
  }

  .hero__subtitle {
    font-size: 1rem;
    margin-bottom: var(--spacing-4);
    opacity: 0.9;
  }

  /* Button Style */
  .hero__cta-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background-color: var(--color-primary);
    margin-bottom: var(--spacing-6);
    width: fit-content;
  }

  /* Progress Bar Container */
  .hero__progress {
    position: relative;
    display: flex;
    gap: var(--spacing-4);
    margin-top: auto;
    right: 0;
    margin: auto var(--spacing-3);
    bottom: 3rem;
  }

  .hero_progress-item-wrapper {
    flex: 1;
  }

  .hero__progress-item {
    width: 100%;
    height: 2px;
    background: white;
    overflow: hidden;
  }

  .hero__progress-bar {
    height: 100%;
    background-color: var(--color-accent);
  }

  .hero_progress-item-heading {
    margin-top: var(--spacing-2);
  }

  .hero_progress-item-heading p {
    color: var(--color-text-inverse);
    font-size: var(--text-xs);
    opacity: 0.7;
  }

  .hero__controls {
    top: 25%;
  }
}

/* Noch kleinere Bildschirme */
@media (max-width: 40rem) {
  .hero__title {
    margin-bottom: var(--spacing-2);
    margin-top: 0;
    font-size: var(--text-xl);
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

  .hero__progress {
    bottom: 1rem;
  }

  .hero__subtitle {
    line-height: 1.2;
    font-size: var(--text-sm);
  }
}

/* Tablet-spezifische Styles (zwischen 768px und 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero__content {
    height: 40%;
  }

  .hero__video-container {
    height: 60%;
  }
}

@media (max-width: 768px) {
  .hero_progress-item-heading {
    display: none;
    margin-top: var(--spacing-2);
  }
}
