/* ==========================================================================
   Teamseite
   ========================================================================== */

.team-page {
    width: 100%;
}


/* ==========================================================================
   Seitenkopf
   ========================================================================== */

.team-header {
    max-width: 850px;
    margin-bottom: 3.5rem;
}

.team-header h1 {
    margin: 0;
}

.team-header__subtitle {
    max-width: 760px;
    margin: 1rem 0 0;
    color: var(--color-text-muted, #94a3b8);
    font-size: 1.05rem;
    line-height: 1.75;
}


/* ==========================================================================
   Teamgruppen
   ========================================================================== */

.team-group {
    width: 100%;
    margin-bottom: 4rem;
}

.team-group:last-child {
    margin-bottom: 0;
}

.team-group__header {
    max-width: 760px;
    margin-bottom: 2rem;
}

.team-group__header h2 {
    margin: 0 0 0.75rem;
    color: var(--color-text, #f8fafc);
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.3;
}

.team-group__header p {
    margin: 0;
    color: var(--color-text-muted, #cbd5e1);
    font-size: 1rem;
    line-height: 1.75;
}


/* ==========================================================================
   Teamraster
   ========================================================================== */

.team-grid {
    display: grid;
    gap: 1.5rem;
}

.team-grid--board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}


/* ==========================================================================
   Teamkarten
   ========================================================================== */

.team-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background:
        linear-gradient(
            145deg,
            rgba(30, 58, 95, 0.88),
            rgba(17, 35, 61, 0.96)
        );
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 18px;
    box-shadow:
        0 18px 40px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}


/* ==========================================================================
   Profilbild
   ========================================================================== */

.team-card__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 2rem;
    background:
        radial-gradient(
            circle at center,
            rgba(59, 130, 246, 0.2),
            rgba(8, 22, 42, 0.7)
        );
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.team-card__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    background: rgba(8, 22, 42, 0.72);
    border: 3px solid rgba(96, 165, 250, 0.42);
    border-radius: 50%;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

.team-card__image-placeholder span {
    color: var(--color-primary, #60a5fa);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}


/* ==========================================================================
   Karteninhalt
   ========================================================================== */

.team-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.75rem;
}

.team-card__role {
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 0.65rem;
    padding: 0.35rem 0.7rem;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(96, 165, 250, 0.28);
    border-radius: 999px;
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.team-card h3 {
    margin: 0;
    color: var(--color-text, #f8fafc);
    font-size: 1.4rem;
    line-height: 1.35;
}

.team-card__nickname {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-text-muted, #94a3b8);
    font-size: 0.92rem;
    font-weight: 600;
}

.team-card__description {
    margin: 1rem 0 0;
    color: var(--color-text-muted, #cbd5e1);
    font-size: 0.96rem;
    line-height: 1.7;
}


/* ==========================================================================
   Aufgabenbereiche
   ========================================================================== */

.team-card__tasks {
    margin-top: 1.5rem;
    padding: 1.15rem;
    background: rgba(8, 22, 42, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
}

.team-card__tasks h4 {
    margin: 0 0 0.75rem;
    color: var(--color-text, #f8fafc);
    font-size: 0.9rem;
    line-height: 1.4;
}

.team-card__tasks ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--color-text-muted, #cbd5e1);
}

.team-card__tasks li {
    margin-bottom: 0.45rem;
    line-height: 1.55;
}

.team-card__tasks li:last-child {
    margin-bottom: 0;
}


/* ==========================================================================
   Kontakt
   ========================================================================== */

.team-card__contact {
    margin-top: auto;
    padding-top: 1.5rem;
}

.team-card__contact-placeholder {
    color: var(--color-text-muted, #94a3b8);
    font-size: 0.86rem;
    font-style: italic;
}


/* ==========================================================================
   Leere Bereiche für spätere Teammitglieder
   ========================================================================== */

.team-empty-state {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: min(100%, 760px);
    padding: 1.5rem;
    background:
        linear-gradient(
            145deg,
            rgba(30, 58, 95, 0.72),
            rgba(17, 35, 61, 0.88)
        );
    border: 1px dashed rgba(96, 165, 250, 0.35);
    border-radius: 16px;
}

.team-empty-state__image {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: rgba(8, 22, 42, 0.7);
    border: 2px solid rgba(96, 165, 250, 0.3);
    border-radius: 50%;
}

.team-empty-state__image span {
    color: #60a5fa;
    font-size: 1.8rem;
    font-weight: 400;
    line-height: 1;
}

.team-empty-state__content {
    min-width: 0;
}

.team-empty-state__content h3 {
    margin: 0 0 0.4rem;
    color: var(--color-text, #f8fafc);
    font-size: 1.1rem;
    line-height: 1.4;
}

.team-empty-state__content p {
    margin: 0;
    color: var(--color-text-muted, #cbd5e1);
    font-size: 0.95rem;
    line-height: 1.65;
}


/* ==========================================================================
   Abgrenzung der Gruppen
   ========================================================================== */

.team-group--organization,
.team-group--helpers {
    padding-top: 3rem;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 1000px) {

    .team-grid--board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* ==========================================================================
   Smartphone
   ========================================================================== */

@media (max-width: 700px) {

    .team-header {
        margin-bottom: 2.5rem;
    }

    .team-header__subtitle {
        font-size: 1rem;
    }

    .team-group {
        margin-bottom: 3rem;
    }

    .team-group--organization,
    .team-group--helpers {
        padding-top: 2rem;
    }

    .team-grid--board {
        grid-template-columns: 1fr;
    }

    .team-card {
        border-radius: 14px;
    }

    .team-card__image {
        min-height: 190px;
    }

    .team-card__image-placeholder {
        width: 115px;
        height: 115px;
    }

    .team-card__content {
        padding: 1.4rem;
    }

    .team-empty-state {
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem;
        border-radius: 14px;
    }

    .team-empty-state__image {
        width: 58px;
        height: 58px;
    }

    .team-empty-state__image span {
        font-size: 1.5rem;
    }

}


/* ==========================================================================
   Sehr kleine Displays
   ========================================================================== */

@media (max-width: 430px) {

    .team-empty-state {
        flex-direction: column;
    }

}