/* ============================================================
   TEAM-PAGE
   Photo-Slot-System: Bild ersetzt automatisch das Initial-Avatar.
   Wenn das Bild fehlt, entfernt onerror das <img> und das Initial
   wird sichtbar.
   ============================================================ */

.team-main {
  background: #FAF8F4;
  color: #2A2420;
  padding-bottom: 0;
}

/* Hero */
.team-hero {
  background:
    radial-gradient(circle at 20% 30%, rgba(168,114,42,.10) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(168,114,42,.07) 0%, transparent 50%),
    linear-gradient(180deg, #F4ECDA 0%, #FAF8F4 100%);
  padding: clamp(3rem, 6vw, 5rem) 1.5rem clamp(2.5rem, 5vw, 4rem);
}
.team-hero-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.team-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: #A8722A;
  margin-bottom: 1rem;
}
.team-hero h1 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -.025em;
  line-height: 1.1;
  color: #2A2420;
  margin-bottom: 1rem;
}
.team-hero h1 em { font-style: normal; font-weight: 700; }
.team-lead {
  font-size: 1.05rem;
  color: #6f5e51;
  line-height: 1.7;
  font-weight: 300;
  max-width: 640px;
  margin: 0 auto;
}

/* Sektionen */
.team-sec {
  padding: clamp(3rem, 5vw, 4.5rem) 1.5rem;
}
.team-sec--alt {
  background: #F2EDE4;
}
.team-in {
  max-width: 1100px;
  margin: 0 auto;
}
.team-h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -.02em;
  margin-bottom: .25rem;
  color: #2A2420;
}
.team-h2-sub {
  color: #8C7A6B;
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  line-height: 1.65;
}

/* Grid – flach, keine Hierarchie, alle Karten gleich groß */
.team-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}
.team-grid--flat {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 960px) {
  .team-grid--flat { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .team-grid--flat { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

/* Mitglied */
.team-member {
  text-align: center;
}

/* Foto-Box mit Initial-Fallback */
.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #C4943A 0%, #8C6020 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(168, 114, 42, .15);
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-member:hover .team-photo {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(168, 114, 42, .25);
}
/* Initialen sichtbar, wenn das Bild nicht geladen wurde (oder onerror das img entfernt hat) */
.team-photo::before {
  content: attr(data-initials);
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  color: rgba(255, 255, 255, .92);
  letter-spacing: -.02em;
}
/* Bild liegt absolut darüber – wenn vorhanden, verdeckt es das Initial */
.team-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, #C4943A 0%, #8C6020 100%);
}

/* Kleinere Initialen-Schrift in der kompakten Technik-Reihe */
.team-grid--sm .team-photo::before { font-size: clamp(1.2rem, 3vw, 1.8rem); }

/* Name & Rolle */
.team-name {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: #2A2420;
  margin-bottom: .25rem;
  line-height: 1.3;
}
.team-role {
  font-size: .82rem;
  color: #A8722A;
  font-weight: 500;
  letter-spacing: .03em;
  line-height: 1.4;
}
.team-grid--lg .team-name { font-size: 1.15rem; }
.team-grid--lg .team-role { font-size: .9rem; }

/* CTA */
.team-cta {
  background: linear-gradient(180deg, #2A2420 0%, #1a1410 100%);
  color: #fff;
  padding: clamp(3rem, 5vw, 4.5rem) 1.5rem;
  text-align: center;
}
.team-cta-inner {
  max-width: 720px;
  margin: 0 auto;
}
.team-cta h2 {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
  color: #fff;
  letter-spacing: -.02em;
}
.team-cta p {
  color: rgba(255,255,255,.7);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.team-cta-btns {
  display: flex; gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.team-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  padding: .9rem 1.75rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: all .2s;
}
.team-btn--primary {
  background: #A8722A;
  color: #fff;
}
.team-btn--primary:hover, .team-btn--primary:focus-visible { background: #8f5e22; }
.team-btn--ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
}
.team-btn--ghost:hover, .team-btn--ghost:focus-visible {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.4);
}
