/* Team: Gruppenbild als Vorhang, Hover je Person (Fares' Wunsch 20.10.), Namens-Vorspann.
   Bis zum echten Gruppenbild ein Platzhalter aus den freigestellten Einzelporträts. */
.team { position: relative; z-index: 3; background: #000; }
.team-vorhang { margin-top: clamp(36px, 5vw, 64px); }
.team-buehne { position: relative; overflow: hidden; aspect-ratio: 2 / 1; background: #0b0a09; clip-path: inset(var(--vorhang, 0%) 0 0 0); }
.team-gruppe, .team-ebene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-gruppe { transform: scale(var(--zoom, 1)); transform-origin: 50% 70%; }
.team-dunkel { position: absolute; inset: 0; background: #000; opacity: 0; transition: opacity .35s; pointer-events: none; }
.team-ebenen { position: absolute; inset: 0; pointer-events: none; }
.team-ebene { opacity: 0; transform-origin: var(--ox, 50%) 100%; transition: opacity .3s, transform .45s cubic-bezier(.2, .7, .2, 1), filter .45s; }
.team-buehne.hat-aktiv .team-dunkel { opacity: .62; }
.team-ebene.aktiv { opacity: 1; transform: scale(1.06); filter: drop-shadow(0 0 22px rgba(212, 175, 122, .45)); }
.team-vorhang-titel { position: absolute; left: 4vw; bottom: 7%; margin: 0; z-index: 2; font: 600 clamp(32px, 5.4vw, 88px)/.92 var(--kopf); letter-spacing: -.05em; color: #fff; text-shadow: 0 10px 40px #000a; pointer-events: none; transition: opacity .35s; }
.team-vorhang-titel b { color: var(--gold); font-weight: 600; }
.team-buehne.hat-aktiv .team-vorhang-titel { opacity: .25; }
.team-karte { position: absolute; right: 3vw; top: 8%; z-index: 3; min-width: 240px; padding: 22px 26px; background: #0b0b0bdd; border: 1px solid #ffffff22; backdrop-filter: blur(6px); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.team-buehne.hat-aktiv .team-karte { opacity: 1; transform: none; }
.team-karte small { display: block; font: 500 10px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.team-karte b { display: block; margin-top: 12px; font: 600 clamp(22px, 2vw, 30px)/1.1 var(--kopf); letter-spacing: -.03em; color: #fff; }
.team-karte span { display: block; margin-top: 6px; font: 500 14px/1.4 var(--kopf); color: #bdbdbd; }
.team-namen { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.team-namen button { width: 100%; min-height: 64px; padding: 12px 10px; text-align: left; background: none; border: 0; border-top: 1px solid #ffffff26; color: #d8d8d8; cursor: pointer; font: inherit; transition: border-color .25s, color .25s; }
.team-namen button b { display: block; font: 600 15px/1.2 var(--kopf); color: #fff; }
.team-namen button span { display: block; margin-top: 4px; font-size: 13px; color: var(--text-3); }
.team-namen button:hover, .team-namen button.aktiv, .team-namen button:focus-visible { border-top-color: var(--gold); }
.team-namen button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Namens-Vorspann: klebt, je Person ein Standbild mit Namen. */
.team-vorspann { position: relative; margin-top: clamp(60px, 8vw, 110px); height: 420vh; }
.team-vorspann-schirm { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: #000; }
.team-vorspann-schirm::before, .team-vorspann-schirm::after { content: ""; position: absolute; left: 0; right: 0; height: 9vh; background: #000; z-index: 3; }
.team-vorspann-schirm::before { top: 0; } .team-vorspann-schirm::after { bottom: 0; }
.team-vorspann-bilder { list-style: none; margin: 0; padding: 0; }
.team-vorspann-bilder li { position: absolute; right: 0; top: 0; width: 58vw; height: 100%; opacity: 0; transition: opacity .6s; }
.team-vorspann-bilder li.aktiv { opacity: 1; }
.team-vorspann-bilder img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; transform: scale(1.04); transition: transform 6s linear; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 36%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 36%, #000 88%, transparent 100%); }
.team-vorspann-bilder li.aktiv img { transform: scale(1.1); }
.team-vorspann-text { position: absolute; left: var(--rand); bottom: 20vh; z-index: 4; }
.team-vorspann-text small { display: block; margin-bottom: 16px; font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.team-vorspann-text b { display: block; font: 700 clamp(44px, 7.2vw, 120px)/.9 var(--kopf); letter-spacing: -.05em; text-transform: uppercase; color: #fff; }
.team-vorspann-text span { display: block; margin-top: 14px; font: 500 clamp(16px, 1.3vw, 20px)/1.3 var(--kopf); color: #e0e0e0; }
.team-vorspann-zaehler { position: absolute; right: var(--rand); bottom: 13vh; z-index: 4; margin: 0; font: 500 12px/1 var(--sans); letter-spacing: .2em; color: #cfcfcf; }
.team-vorspann-zaehler b { font-size: 20px; color: #fff; }
.team-vorspann-text.wechsel b, .team-vorspann-text.wechsel span { animation: vorspann-rein .55s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes vorspann-rein { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  .team-buehne { aspect-ratio: 4 / 3; }
  .team-gruppe, .team-ebene { object-position: 50% 30%; }
  .team-karte { left: 12px; right: 12px; top: auto; bottom: 12px; min-width: 0; padding: 14px 16px; }
  .team-vorhang-titel { font-size: clamp(28px, 9vw, 44px); bottom: auto; top: 6%; }
  .team-namen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-vorspann { height: 380vh; }
  .team-vorspann-bilder li { width: 100%; height: 62%; }
  .team-vorspann-bilder img { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .team-vorspann-text { bottom: 14vh; }
  .team-vorspann-zaehler { bottom: 10vh; }
}
@media (prefers-reduced-motion: reduce) {
  .team-buehne { clip-path: none; }
  .team-ebene, .team-karte, .team-vorspann-bilder li, .team-vorspann-bilder img { transition: none; }
  .team-vorspann { height: auto; }
  .team-vorspann-schirm { position: relative; height: 100svh; }
}
/* Überschrift und Satz stehen über dem Gruppenbild (Marcel 23.10.); der Vorhang-Effekt bleibt unverändert. */
.team-kopf { margin-top: 0; }
.team-vorhang { margin-top: 0; }
