/* Über uns – Team (Paper: „Team“, Maße nach Template „team-members“)
   Weißes Panel, Kopf mittig, Raster mit Porträtkarten und einer Navy-Karte zum Strategiegespräch */
.dao-ueber-team__title {
  max-width: 760px; /* in Paper einzeilig */
}

.dao-ueber-team__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dao-ueber-team__member {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  aspect-ratio: 258 / 300;
  padding-top: 32%;
  overflow: hidden;
  border-radius: 8px;
  background: url("../assets/ueber-bildflaeche.svg") center / cover no-repeat;
}

.dao-ueber-team__photo-label {
  font-family: var(--dao-font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dao-weiss);
}

.dao-ueber-team__photo-text {
  font-family: var(--dao-font);
  font-size: 14px;
  line-height: 21px;
  color: var(--dao-weiss-70);
}

/* Porträtfoto mit Muster und Verlauf in Nachtblau von unten (wie die Bilder der Leistungsseiten) */
.dao-ueber-team__member--foto {
  isolation: isolate;
  background: var(--dao-nachtblau);
}

.dao-ueber-team__foto {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.dao-ueber-team__member--foto::before,
.dao-ueber-team__member--foto::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.dao-ueber-team__member--foto::before {
  height: 75%;
  background: linear-gradient(in oklab 0deg,
    color-mix(in srgb, var(--dao-nachtblau) 62%, transparent) 0%,
    color-mix(in srgb, var(--dao-nachtblau) 22%, transparent) 55%,
    transparent 100%);
}

/* Muster höher und in voller Stärke, damit es über dem Namensschild sichtbar bleibt
   (die SVG blendet nach oben selbst aus) */
.dao-ueber-team__member--foto::after {
  height: 85%;
  background: url("../assets/beratung-hero-muster.svg") center bottom / auto 100% no-repeat;
}

.dao-ueber-team__member--foto .dao-ueber-team__info {
  z-index: 2;
}

/* Namensschild unten im Bild */
.dao-ueber-team__info {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: 6px;
  background: var(--dao-weiss);
}

.dao-ueber-team__person {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dao-ueber-team__name {
  margin: 0;
  font-family: var(--dao-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: -0.02em;
  color: var(--dao-navy);
}

.dao-ueber-team__role {
  margin: 0;
  font-family: var(--dao-font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dao-fliesstext);
}

.dao-ueber-team__social {
  display: flex;
  text-decoration: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: var(--dao-kartengrund);
  color: var(--dao-navy);
  transition: background-color 0.15s ease;
}

.dao-ueber-team__social:hover {
  background: var(--dao-blau-hell);
  color: var(--dao-navy);
}

.dao-ueber-team__social:focus-visible {
  outline: 2px solid var(--dao-blau);
  outline-offset: 2px;
}

.dao-ueber-team__social svg {
  width: 14px;
  height: 14px;
}

/* Freier Platz wie im Template (nur Desktop) */
.dao-ueber-team__blank {
  display: block;
}

/* Navy-Karte: Einladung zum Gespräch */
.dao-ueber-team__cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
  border-radius: 8px;
  background: var(--dao-navy);
}

.dao-ueber-team__cta-label {
  margin: 0;
  font-family: var(--dao-font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--dao-hellblau);
}

.dao-ueber-team__cta-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.dao-ueber-team__cta-text {
  margin: 0;
  font-family: var(--dao-font);
  font-size: 24px;
  font-weight: 500;
  line-height: 29px;
  letter-spacing: -0.02em;
  color: var(--dao-weiss);
}

/* Tablet: drei Spalten, freier Platz entfällt */
@media (max-width: 1199px) {
  .dao-ueber-team__title {
    max-width: 520px;
  }

  .dao-ueber-team__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dao-ueber-team__blank {
    display: none;
  }

  .dao-ueber-team__info {
    padding: 10px;
  }

  .dao-ueber-team__name {
    font-size: 18px;
    line-height: 22px;
  }

  .dao-ueber-team__role {
    font-size: 11px;
  }

  .dao-ueber-team__cta {
    padding: 15px;
  }

  .dao-ueber-team__cta-text {
    font-size: 20px;
    line-height: 25px;
  }

  .dao-ueber-team__cta .dao-button {
    padding-inline: 15px;
    white-space: nowrap;
  }
}

/* Mobil: zwei Porträts nebeneinander, Navy-Karte darunter über die volle Breite */
@media (max-width: 767px) {
  .dao-ueber-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 8px;
  }

  .dao-ueber-team__member {
    padding-top: 26%;
  }

  .dao-ueber-team__info {
    right: 4px;
    bottom: 4px;
    left: 4px;
    padding: 8px;
  }

  .dao-ueber-team__person {
    gap: 4px;
  }

  .dao-ueber-team__name {
    font-size: 15px;
    line-height: 18px;
  }

  .dao-ueber-team__role {
    font-size: 10px;
    line-height: 12px;
  }

  /* LinkedIn auch mobil sichtbar, kleiner damit der Name Platz behält */
  .dao-ueber-team__social {
    width: 26px;
    height: 26px;
  }

  .dao-ueber-team__social svg {
    width: 12px;
    height: 12px;
  }

  .dao-ueber-team__cta {
    grid-column: 1 / -1;
    padding: 16px;
  }
}
