/* ========================================
   NordSAR – Team CSS
======================================== */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.team-card-photo {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
}
.team-card-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.team-card:hover .team-card-photo img { transform: scale(1.05); }

.team-card-photo-placeholder {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.25);
}

.team-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(6,42,78,0.9) 100%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition);
}
.team-card:hover .team-card-overlay { opacity: 1; }
.team-card-social {
    display: flex;
    gap: 0.6rem;
}
.team-card-social a {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    transition: background var(--transition);
}
.team-card-social a:hover { background: var(--accent); color: var(--primary-dark); }

.team-card-body { padding: 1.4rem; }
.team-card-role {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-light);
    margin-bottom: 0.3rem;
    display: block;
}
.team-card-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}
.team-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0.8rem;
}
.team-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.team-tag {
    display: inline-block;
    background: rgba(10,61,107,0.07);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

/* Leadership highlight */
.team-card.leader {
    border: 2px solid var(--accent);
}
.team-card.leader::before {
    content: 'Führung';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent);
    color: var(--primary-dark);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 20px;
    z-index: 2;
}

/* Join CTA */
.team-join {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-xl);
    padding: 3.5rem;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.team-join::before {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -100px; right: -80px;
}
.team-join h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.75rem; }
.team-join p { opacity: 0.85; max-width: 500px; margin: 0 auto 2rem; }

@media (max-width: 900px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
    .team-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .team-join { padding: 2rem 1.25rem; border-radius: var(--radius-lg); }
    .team-join h3 { font-size: 1.4rem; }
    .team-join div[style*="flex"] { flex-direction: column; }
    .team-join .btn { width: 100%; justify-content: center; }
    .team-card-name { font-size: 1.05rem; }
}

