/* ----------------------------------------------------------
   Team — Mini-Grid (Homepage) + Person-Liste (/team)
   ---------------------------------------------------------- */

/* Mini-Grid auf der Homepage --------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, 2vw, 1.75rem);
    margin: 0;
    padding: 0;
}
@media (min-width: 576px)  { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px)  { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(4, minmax(0, 240px));
        justify-content: center;
        gap: clamp(1.5rem, 2.5vw, 2.5rem);
    }
}

.team-tile {
    text-align: center;
}
.team-tile > a {
    display: block;
    transition: transform .2s ease;
}
.team-tile > a:hover {
    transform: translateY(-3px);
}
.team-tile > a:hover .team-portrait {
    box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
}

.team-portrait {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 160px;
    border-radius: 1rem;
    object-fit: cover;
    background: var(--bs-tertiary-bg, #f4f4f4);
    transition: box-shadow .2s ease;
    display: block;
    margin: 0 auto;
}
@media (min-width: 992px) {
    .team-portrait { max-width: 240px; }
}

.team-name {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    margin: .75rem 0 .125rem;
}
.team-role {
    font-size: .8125rem;
    color: var(--bs-secondary, #6c757d);
    margin: 0;
    line-height: 1.3;
}

/* Person-Liste auf /team ------------------------------------- */
.team-person {
    padding-top: clamp(2rem, 4vw, 3rem);
    padding-bottom: clamp(2rem, 4vw, 3rem);
    border-bottom: 1px solid var(--bs-border-color, #e9ecef);
}
.team-person:last-child {
    border-bottom: none;
}

.team-person-portrait {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 280px;
    border-radius: 1rem;
    object-fit: cover;
    background: var(--bs-tertiary-bg, #f4f4f4);
}

.team-person-name {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    margin-bottom: .25rem;
}
.team-person-role {
    font-size: 1.0625rem;
    color: var(--bs-secondary, #6c757d);
    margin-bottom: 1rem;
}

.team-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .75rem 0 1rem;
    padding: 0;
    list-style: none;
}
.team-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8125rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    border: 1px solid var(--brand-secondary, #0088b4);
    color: var(--brand-secondary, #0088b4);
    background: transparent;
    line-height: 1.3;
}
.team-badge--focus {
    border-color: var(--bs-border-color, #dee2e6);
    color: var(--bs-secondary, #6c757d);
}

.team-person-bio {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--bs-body-color);
    margin: 0;
}
.team-person-since {
    font-size: .8125rem;
    color: var(--bs-secondary, #6c757d);
    margin-top: .75rem;
}

/* Sprach-Filter (CSS-only via :checked + ~) ------------------ */
.team-lang-filter {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
}
.team-lang-filter input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.team-lang-filter label {
    cursor: pointer;
    padding: .4rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--bs-border-color, #dee2e6);
    font-size: .9375rem;
    line-height: 1.3;
    background: #fff;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.team-lang-filter input[type="radio"]:checked + label {
    background: var(--brand-secondary, #0088b4);
    color: #fff;
    border-color: var(--brand-secondary, #0088b4);
}
.team-lang-filter input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--bs-primary, #d63384);
    outline-offset: 2px;
}
