/* Hero: großzügiges Teamfoto mit dezent transparentem Textfenster. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: min(760px, calc(100svh - 94px));
  background: var(--silver);
}

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

.hero-visual::after {
  background:
    linear-gradient(90deg, rgba(220, 227, 234, .34) 0%, rgba(220, 227, 234, .08) 58%, rgba(3, 44, 66, .18) 100%),
    linear-gradient(0deg, rgba(3, 44, 66, .18), transparent 34%);
}

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

.hero-copy {
  z-index: 2;
  align-self: center;
  width: min(760px, calc(100% - 96px));
  margin: clamp(44px, 6vw, 90px);
  padding: clamp(42px, 5.2vw, 76px);
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 22px;
  background: rgba(238, 243, 246, .86);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 26px 70px rgba(3, 44, 66, .18);
}

@media (max-width: 1120px) {
  .hero {
    min-height: 700px;
  }

  .hero-copy {
    width: min(680px, calc(100% - 64px));
    margin: 48px 32px;
    padding: clamp(38px, 6vw, 62px);
  }

  .hero-visual {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    overflow: hidden;
  }

  .hero-copy {
    order: 1;
    width: calc(100% - 32px);
    margin: 16px;
    padding: 40px 24px 36px;
    background: rgba(238, 243, 246, .90);
  }

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

  .hero-visual::after {
    background: linear-gradient(0deg, rgba(3, 44, 66, .24), transparent 40%);
  }

  .hero-visual > img {
    object-position: center center;
  }

  .hero-chat {
    bottom: 16px;
    left: 16px;
    right: 72px;
  }
}

/*
 * Personen-Sichtschutz 2026-08-02:
 * Auf großen Bildschirmen endet das Textfenster vor dem Mann mit Glatze und
 * der links neben ihm stehenden Frau. Auf Tablet und Smartphone stehen Text
 * und Foto getrennt übereinander, sodass keine Person überlagert werden kann.
 */
@media (min-width: 1201px) {
  .hero-copy {
    width: min(620px, 43vw);
    margin: clamp(34px, 4vw, 68px);
    padding: clamp(34px, 3.7vw, 58px);
  }

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

  .hero-visual::after {
    background:
      linear-gradient(90deg, rgba(220, 227, 234, .34) 0%, rgba(220, 227, 234, .08) 48%, rgba(3, 44, 66, .16) 100%),
      linear-gradient(0deg, rgba(3, 44, 66, .18), transparent 34%);
  }
}

@media (max-width: 1200px) {
  .hero {
    display: flex;
    min-height: auto;
    flex-direction: column;
    overflow: hidden;
  }

  .hero-copy {
    order: 1;
    width: min(820px, calc(100% - 64px));
    margin: 32px auto;
    padding: clamp(36px, 6vw, 60px);
    background: rgba(238, 243, 246, .89);
  }

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

  .hero-visual::after {
    background: linear-gradient(0deg, rgba(3, 44, 66, .22), transparent 38%);
  }

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

  .hero-chat {
    bottom: 20px;
    right: 24px;
  }
}

@media (max-width: 720px) {
  .hero-copy {
    width: calc(100% - 32px);
    margin: 16px;
    padding: 40px 24px 36px;
  }

  .hero-copy h1 {
    font-size: clamp(2.65rem, 13vw, 4.6rem);
  }

  .hero-chat {
    bottom: 16px;
    left: 16px;
    right: 72px;
  }
}
