/* ===== hero.css ===== */

.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-poppins);
  overflow: hidden;
}

/* Oberer Bereich */
.hero-top {
  flex: 1 1 auto;
  min-height: max(600px, 100svh);
  position: relative;
  display: flex;
  background-image: url('../media/pexels-photo-433452.webp');
  background-size: cover;
  background-position: center;
  overflow: visible;
}

/* Stabile Textspalte; die organische Form liegt unabhängig dahinter. */
.hero-left {
  position: relative;
  width: clamp(580px, 48vw, 760px);
  max-width: none;
  padding: clamp(3rem, 6vh, 5rem) clamp(2.5rem, 5vw, 6rem);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  z-index: 1;
}

.hero-left::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: clamp(920px, 72vw, 1240px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--color-primary);
  content: "";
  transform: translate(-31%, -50%);
  z-index: -1;
}

.hero-left-bg {
  display: none;
}

.hero-left-content {
  color: var(--color-secondary);
  width: 100%;
  max-width: 560px;
  text-align: left;
  z-index: 2;
}

.hero-left-content h1 {
  font-size: clamp(3rem, 4.2vw, 4.8rem);
  line-height: 1.08;
  font-weight: bold;
  margin-bottom: 0.35em;
  margin-top: 0;
}

.hero-left-content .hero-claim {
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  font-weight: bold;
  line-height: 1.3;
  margin-bottom: 0.75em;
}

.hero-left-content .hero-kicker {
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-left-content .hero-intro {
  max-width: 500px;
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  font-weight: normal;
}

.hero-actions {
  display: flex;
  max-width: 540px;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero-actions .button {
  white-space: normal;
}

.hero-actions .button-secondary {
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 70, 110, 0.22);
  color: #fff;
}

.hero-actions .button-secondary:hover,
.hero-actions .button-secondary:focus-visible {
  border-color: #fff;
  background: rgba(0, 50, 80, 0.35);
  color: #fff;
}

@media (min-width: 701px) and (max-width: 1100px) {
  .hero-left {
    width: 56vw;
    min-width: 560px;
    padding-inline: clamp(2.25rem, 4vw, 3.5rem);
  }

  .hero-left::before {
    width: 940px;
    transform: translate(-34%, -50%);
  }

  .hero-left-content {
    max-width: 500px;
  }

  .hero-left-content h1 {
    font-size: clamp(3rem, 5vw, 3.75rem);
  }

  .hero-actions {
    max-width: 500px;
  }

  .hero-actions .button {
    padding-inline: 1.15rem;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 0;
    height: auto;
  }

  .hero-top {
    min-height: 0;
    background-image: url('../media/pexels-photo-433452-mobile.webp');
    background-position: 68% center;
  }

  .hero-top::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 88, 138, 0.78) 0%, rgba(0, 121, 186, 0.58) 52%, rgba(0, 121, 186, 0.12) 100%);
    content: "";
  }

  .hero-left {
    max-width: none;
    min-height: 610px;
    padding: 5.25rem 1.25rem 2.5rem;
    z-index: 1;
  }

  .hero-left::before {
    display: none;
  }

  .hero-left-bg {
    display: none;
  }

  .hero-left-content {
    max-width: min(88%, 520px);
    z-index: 2;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .hero-actions .button {
    text-shadow: none;
  }

  .hero-actions .link-button {
    border: 2px solid var(--color-accent);
    background: var(--gradient-button);
    color: #111;
  }

  .hero-actions .button-secondary {
    border: 2px solid #fff;
    background: rgba(255, 255, 255, 0.94);
    color: #005b8f;
  }

}

@media (max-width: 420px) {
  .hero-left {
    min-height: 570px;
    padding-top: 4.75rem;
  }

  .hero-left-content h1 {
    font-size: 2.55rem;
  }

  .hero-left-content .hero-claim {
    font-size: 1.2rem;
  }

  .hero-left-content .hero-intro {
    font-size: 0.95rem;
  }
}
