/* ═══════════════════════════════════════════════════════════════════
   TEAM — Kacheln mit Bildern, Farben, Overlay
   Nach SONARIS_REDESIGN_PLAN_2026-03-14
   ═══════════════════════════════════════════════════════════════════ */

/* Überschreibe station-block team styles */
.station-content .team-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0;
}

.team-section-grid .section-headline {
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-size: 28px;
}

/* Kachel */
.team-section-grid .team-card {
  background: var(--bg-elevated);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.team-section-grid .team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.team-section-grid .team-card-inner {
  display: flex;
  flex-direction: column;
}

.team-card-accent {
  height: 3px;
  width: 100%;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.team-section-grid .team-card:hover .team-card-accent {
  opacity: 1;
}

.team-section-grid .team-card[data-color="blue"] .team-card-accent  { background: #3B82F6; }
.team-section-grid .team-card[data-color="steel"] .team-card-accent { background: #6E91B4; }
.team-section-grid .team-card[data-color="green"] .team-card-accent { background: #6EB48C; }
.team-section-grid .team-card[data-color="copper"] .team-card-accent { background: #AA7D55; }
.team-section-grid .team-card[data-color="purple"] .team-card-accent { background: #8B5CF6; }

.team-card[data-color="blue"]:hover   { box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15); }
.team-card[data-color="steel"]:hover  { box-shadow: 0 12px 40px rgba(110, 145, 180, 0.15); }
.team-card[data-color="green"]:hover  { box-shadow: 0 12px 40px rgba(110, 180, 140, 0.15); }
.team-card[data-color="copper"]:hover { box-shadow: 0 12px 40px rgba(170, 125, 85, 0.15); }
.team-card[data-color="purple"]:hover { box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15); }

.team-card-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.team-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(30%);
  transition: filter 0.3s ease;
}

.team-card:hover .team-card-image img {
  filter: grayscale(0%);
}

.team-card-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(139, 92, 246, 0.08);
}

.team-card-initials {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: #8B5CF6;
  opacity: 0.7;
}

.team-card-info {
  padding: 20px 24px 24px;
}

.team-card-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8B5CF6;
  display: block;
  margin-bottom: 4px;
}

.team-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--text-headline);
  margin: 0 0 4px;
}

.team-card-role {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 12px;
}

.team-card-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-body);
  margin: 0 0 16px;
}

.team-card-more {
  background: none;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.team-card[data-color="blue"] .team-card-more   { color: #3B82F6; }
.team-card[data-color="steel"] .team-card-more  { color: #6E91B4; }
.team-card[data-color="green"] .team-card-more  { color: #6EB48C; }
.team-card[data-color="copper"] .team-card-more { color: #AA7D55; }
.team-card[data-color="purple"] .team-card-more { color: #8B5CF6; }

.team-card-more:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════
   TEAM DETAIL-OVERLAY
   ═══════════════════════════════════════════════════════════════════ */

.team-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.team-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.team-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 18, 26, 0.8);
  backdrop-filter: blur(16px);
}

.team-overlay-panel {
  position: relative;
  width: 600px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg-elevated);
  border-radius: 16px;
  padding: 40px;
  border: 1px solid rgba(110, 145, 180, 0.1);
}

.team-overlay-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: color 0.2s;
}

.team-overlay-close:hover {
  color: var(--text-headline);
}

.team-overlay-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(110, 145, 180, 0.1);
}

.team-overlay-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.team-overlay-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: #8B5CF6;
  flex-shrink: 0;
}

.team-overlay-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #8B5CF6;
}

.team-overlay-name {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text-headline);
  margin: 4px 0;
}

.team-overlay-role {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.team-overlay-text {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-body);
}

.team-overlay-text p {
  margin-bottom: 16px;
}

.team-overlay-text a {
  color: #6E91B4;
  text-decoration: underline;
}

.team-overlay-text a:hover {
  color: #8B5CF6;
}

.team-overlay-panel[data-color="blue"]   { border-top: 3px solid #3B82F6; }
.team-overlay-panel[data-color="steel"]  { border-top: 3px solid #6E91B4; }
.team-overlay-panel[data-color="green"]  { border-top: 3px solid #6EB48C; }
.team-overlay-panel[data-color="copper"] { border-top: 3px solid #AA7D55; }
.team-overlay-panel[data-color="purple"] { border-top: 3px solid #8B5CF6; }
