/*
 * Titelbereich nach dem gelieferten Fotobeispiel:
 * Das Gruppenfoto läuft breit durch den gesamten Hero. Die Textfläche liegt
 * links halbtransparent darüber und endet vor den beiden Personen rechts.
 */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr;
  min-height: min(760px, calc(100svh - 94px));
  overflow: hidden;
  background: var(--silver);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
}

.hero-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 31%;
}

.hero-visual::after {
  background:
    linear-gradient(90deg,
      rgba(2, 44, 66, .46) 0%,
      rgba(2, 44, 66, .24) 42%,
      rgba(2, 44, 66, .04) 62%,
      rgba(2, 44, 66, .12) 100%),
    linear-gradient(0deg, rgba(2, 44, 66, .20), transparent 38%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  width: min(650px, 48vw);
  margin: clamp(34px, 4vw, 68px);
  padding: clamp(34px, 3.7vw, 58px);
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 18px;
  background: linear-gradient(110deg,
    rgba(2, 44, 66, .82) 0%,
    rgba(2, 44, 66, .67) 72%,
    rgba(2, 44, 66, .48) 100%);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  box-shadow: 0 24px 70px rgba(2, 44, 66, .25);
}

.hero-copy h1 {
  color: var(--white);
  font-size: clamp(2.7rem, 4.35vw, 5.45rem);
  text-shadow: 0 2px 18px rgba(2, 44, 66, .18);
}

.hero-copy > p,
.hero-facts {
  color: rgba(255, 255, 255, .84);
}

.hero-copy .text-button {
  border-bottom-color: rgba(255, 255, 255, .58);
  color: var(--white);
}

/* Tablet: weiterhin echte Überlagerung, aber mit schmalerer Textfläche. */
@media (min-width: 721px) and (max-width: 1200px) {
  .hero {
    display: grid;
    min-height: clamp(650px, 82svh, 760px);
  }

  .hero-copy {
    order: initial;
    width: min(560px, 54vw);
    margin: 32px;
    padding: clamp(32px, 4vw, 48px);
  }

  .hero-copy h1 {
    font-size: clamp(2.55rem, 5.4vw, 4.5rem);
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    order: initial;
    width: auto;
    min-height: 0;
    aspect-ratio: auto;
  }

  .hero-visual > img {
    object-fit: cover;
    object-position: 56% 30%;
    background: transparent;
  }
}

/*
 * Smartphone: Das Foto bleibt groß und die Textfläche überlappt nur den
 * unteren Bildrand. Dadurch bleiben Gesichter frei und der Aufbau erinnert
 * trotzdem an die überlagerte Gestaltung des Beispiels.
 */
@media (max-width: 720px) {
  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 4px;
    background: var(--silver);
  }

  .hero-visual {
    position: relative;
    order: 1;
    width: 100%;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .hero-visual > img {
    object-fit: cover;
    object-position: 70% center;
    background: #f4f4f4;
  }

  .hero-visual::after {
    background: linear-gradient(0deg, rgba(2, 44, 66, .23), transparent 34%);
  }

  .hero-copy {
    order: 2;
    width: calc(100% - 32px);
    margin: -18px 16px 16px;
    padding: 36px 23px 34px;
    border-radius: 16px;
    background: rgba(2, 44, 66, .94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .hero-copy h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 12.5vw, 4.35rem);
  }

  .hero-chat {
    right: 16px;
    bottom: 14px;
    left: 16px;
    width: auto;
  }
}
