/* WICHTIG: Verhindert, dass Padding die Breite sprengt (gegen Wackeln) */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --fs-h1: 1.75rem;
}

.container {
  width: 100%;
  padding-inline: 1.5rem;
  margin-inline: auto;
}

.hero {
  position: relative;
  height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  isolation: isolate;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden; /* Verhindert Überlaufen im Hero selbst */
}

.hero_overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-color: rgba(57, 36, 29, 0.75);
  z-index: 0;
}

.hero_content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.h1 {
  font-family: var(--font-display);
  font-weight: var(--weight-regular);
  font-size: var(--fs-h1);
  line-height: 1.2;
  color: #fff;
  margin: 0 0 1rem 0;
  text-align: center;
  word-wrap: break-word;
  max-width: 100%;
}

.text-lg {
  font-size: 1rem;
  font-weight: 200;
  line-height: 1.5;
  color: #fff;
  opacity: .95;
  margin: 0 auto 2rem;
  text-align: center;
  max-width: 100%;
}

.hero_buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 24px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--btn-shadow);
  transition: transform .08s ease, box-shadow .2s ease;
  backdrop-filter: saturate(120%) blur(2px);
  text-align: center;
  width: 100%;
  max-width: 300px;
}

.btn:active {
  transform: translateY(0);
}

.btn-light {
  background: var(--color-light);
  color: #2a1b17;
}

.btn-glass {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .6);
}

.hero_scroll {
  position: absolute;
  z-index: 1;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .8);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .2em;
}

.hero_scroll::after {
  content: "";
  display: block;
  width: 2px;
  height: 22px;
  margin: 6px auto 0;
  background: rgba(255, 255, 255, .7);
  animation: drop 1.4s infinite ease-in-out;
}

@keyframes drop {
  0% {
    transform: translateY(0);
    opacity: .9;
  }
  100% {
    transform: translateY(6px);
    opacity: .2;
  }
}

@media (min-width: 1024px) {
  :root {
    --fs-h1: clamp(1.85rem, 2.2vw + 0.75rem, 3.25rem);
  }

  .container {
    max-width: 1280px;
    padding-inline: var(--space-4, 1rem);
  }

  .hero {
    display: grid;
    place-items: center;
  }

  .hero_content {
    display: block;
    padding: clamp(2rem, 5vw, 6rem) 1rem;
    width: 100%;
  }

  .h1 {
    font-size: var(--fs-h1);
    line-height: 1.1;
    margin: 0 0 var(--space-6) 0;
  }

  .text-lg {
    font-size: var(--fs-text-lg);
    line-height: 1.2;
    margin: 0 auto var(--space-8);
    max-width: 75ch;
    text-wrap: balance;
  }

  .hero_buttons {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    width: max-content;
    max-width: none;
    gap: var(--space-4);
    margin-inline: auto;
  }

  .btn {
    width: auto;
    max-width: none;
    padding: var(--btn-padding-y) var(--btn-padding-x);
  }
}
