/* Team */

.team {
  display: grid;
  gap: var(--gap-block);
}

.team > div {
  display: grid;
  gap: var(--gap-block);
  grid-template-columns: 1fr;
}

@media (min-width: 45rem) {
  /* Flex statt Grid: letzte Reihe zentriert (Cap), volle Reihen füllen. */
  .team > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  .team > div > article {
    flex: 1 1 14rem;
    max-width: var(--section-card-max);
  }
}

.team article {
  text-align: center;
}

.team article figure {
  width: 10rem;
  height: 10rem;
  margin-inline: auto;
  margin-block-end: var(--space-4);
}


.team article img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Platzhalter ohne Foto (Mitglieder aus dem Team-Modul) — rund wie das Porträt, Fläche wie im Ansprechpartner-Kasten. */
.team article .contact-avatar {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

.team article h3 {
  font-size: var(--text-base);
  font-family: var(--font-body), sans-serif;
  font-weight: 600;
  margin-block-end: var(--space-1);
}

.team article > p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-block-end: var(--space-3);
}

.team address {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-style: normal;
  font-size: var(--text-sm);
}

.team address a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.team address a:hover {
  color: var(--color-primary);
}

/* Verlinkte Mitglieder (Übersicht /team immer, Section mit „Team-Karten verlinken"): Foto + Name als EIN Link,
   ohne Link-Optik — der Name bekommt die Linkfarbe erst beim Überfahren. */
.team .team-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.team .team-link:hover h3,
.team .team-link:focus-visible h3 {
  color: var(--color-primary);   /* wie a:hover (02-base.css) */
}
