

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  box-sizing: border-box;
  padding-top: var(--header-ist, var(--header-height));
}

.hero__bg,
.hero__bg img,
.hero__bg picture {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__bg img {
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0.3) 10rem, rgba(0, 0, 0, 0) 22rem),
    linear-gradient(to top right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 35%, rgba(0, 0, 0, 0) 65%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-lg);
}

.hero :is(h1, h2) {
  color: var(--color-white);
  font-size: 6.875rem;
  line-height: 1.1;
  text-shadow: none;

  margin-bottom: 0;
}

.hero p {
  font-family: var(--font-body);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--color-white);
  margin-top: -0.125rem;
  margin-bottom: 0;
  letter-spacing: 0.02em;
}

.hero .btn {
  margin-top: var(--space-2xl);
}

@media (min-width: 1400px) {
  .hero--oben {
    align-items: flex-start;
    padding-top: 14rem;
  }
}

@media (max-width: 1399px) {

  .hero {
    min-height: 80vh;
  }
  .hero--oben {
    align-items: flex-start;
    padding-top: 7.5rem;
  }
  .hero :is(h1, h2) {
    font-size: 4rem;
  }
  .hero p {
    font-size: 1.15rem;
  }
  .hero .btn {
    margin-top: var(--space-xl);
  }
}

@media (max-height: 500px) {
  .hero {
    min-height: 100vh;
  }
  .hero--oben {
    padding-top: var(--space-3xl);
  }
  .hero :is(h1, h2) {
    font-size: 2.6rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .hero .btn {
    margin-top: var(--space-md);
  }
}

@media (max-width: 767px) {

  .hero--oben {
    align-items: flex-start;
    padding-top: 5.5rem;
  }
  .hero :is(h1, h2) {
    font-size: 1.35rem;
  }

  .hero p {
    font-size: 1rem;
    line-height: 1.35;
    margin-top: var(--space-xs);
  }
  .hero .btn {
    margin-top: var(--space-lg);
  }
}

.hero--left {
  --hero-inset: clamp(2rem, 6vw, 6rem);
  text-align: left;
  align-items: flex-end;
  justify-content: flex-start;
}
.hero--left .hero__content {
  max-width: 90%;
  padding: 0 var(--hero-inset) var(--hero-inset) var(--hero-inset);
}
.hero--left :is(h1, h2) {
  font-size: 4.5rem;
  white-space: nowrap;
}
@media (min-width: 1400px) {
  .hero--left {
    align-items: flex-end;
  }
}
@media (max-width: 1399px) {
  .hero--left {
    align-items: flex-end;
  }
  .hero--left :is(h1, h2) {
    font-size: 3.4rem;
  }
}
@media (max-width: 767px) {
  .hero--left {
    align-items: flex-end;
    min-height: calc(80vh - 200px);
  }
  .hero--left .hero__content {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
  .hero--left :is(h1, h2) {
    font-size: 2.4rem;
  }
  .hero--left p,
  .hero--left .hero__cta-row { display: none; }
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: var(--space-2xl);
}
.hero:not(.hero--left) .hero__cta-row { justify-content: center; }
.hero__cta-row .btn { margin-top: 0; }

.hero .btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: var(--color-white);
  text-shadow: none;
  transition: background-color 0.28s ease, border-color 0.28s ease;
}
.hero .btn--ghost::after { content: none; }
.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.95);
  color: var(--color-white);
}

.hero--left p {
  font-size: 1.3rem;
  max-width: 44rem;
  margin-top: var(--space-sm);
  line-height: 1.55;
}
@media (max-width: 1399px) {
  .hero--left p { font-size: 1.1rem; max-width: 36rem; }
  .hero__cta-row { margin-top: var(--space-xl); }
}
@media (max-width: 767px) {
  .hero--left p { font-size: 1rem; }
  .hero__cta-row { margin-top: var(--space-lg); gap: 0.75rem; }
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero__video.is-playing { opacity: 1; }

.hero--centered { align-items: center; }
@media (min-width: 1400px) { .hero--centered { align-items: center; padding-top: 0; } }
@media (max-width: 1399px) { .hero--centered { align-items: center; padding-top: 0; } }
@media (max-width: 767px)  { .hero--centered { align-items: center; padding-top: 0; } }
