/* ==========================================================================
   KOBIL — Company — Sektion: Hero (Figma 16578:18524)
   Blaue Verlaufs-Karte (1360x524) mit zentriertem H1 + Subline.
   Der Figma-Verlauf (1352h) laeuft im Original weit unter die Folgesektionen;
   hier als WebP gebacken und nichtlinear gestaucht, sodass er bei 524px exakt
   auf dem Seitenhintergrund (#F5F7FC) endet — die Folgesektion liegt flush.
   ========================================================================== */

.sec-company-hero {
  position: relative;
  isolation: isolate;
  height: 524px;
  overflow: clip;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

/* ---- Hintergrund: gebackener Verlauf (Figma-Blur-SVG → WebP) ---- */

.co-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  pointer-events: none;
}

.co-hero__bg-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}

/* ---- Zentrierter Titelblock ---- */

.co-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 19px;
  padding: 185px 24px 0;
  text-align: center;
}

.co-hero__title {
  font-family: var(--font-sans);
  font-size: 50px;
  font-weight: 700;
  line-height: 62px;
  letter-spacing: 0;
  color: var(--white);
}

.co-hero__sub {
  max-width: 781px;
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Responsive ---- */

@media (max-width: 1024px) {
  .sec-company-hero {
    height: 500px;
  }

  .co-hero__content {
    padding-top: 160px;
  }

  .co-hero__title {
    font-size: 44px;
    line-height: 54px;
  }

  .co-hero__sub {
    max-width: 640px;
    font-size: 18px;
    line-height: 26px;
  }
}

@media (max-width: 768px) {
  .sec-company-hero {
    height: 440px;
  }

  .co-hero__content {
    gap: 16px;
    padding-top: 120px;
  }

  .co-hero__title {
    font-size: 36px;
    line-height: 46px;
  }

  .co-hero__sub {
    max-width: 560px;
  }
}

@media (max-width: 480px) {
  .sec-company-hero {
    height: 430px;
  }

  /* Mobile-Asset (369x430 gebacken) wird exakt auf die Karte gestreckt */
  .co-hero__bg-img {
    object-fit: fill;
  }

  .co-hero__content {
    gap: 16px;
    padding: 90px 24px 0;
  }

  .co-hero__title {
    font-size: 32px;
    line-height: 40px;
  }

  .co-hero__sub {
    max-width: 321px;
    font-size: 18px;
    line-height: 26px;
  }
}
