/* Ausgelagert aus: teams.php – CSS-Variablen-kompatibel */

.teams-filter {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin: 24px 0 8px;
}
.teams-filter a {
    padding: 7px 20px; border-radius: 20px; text-decoration: none;
    background: var(--bg-card); color: var(--text-muted);
    font-weight: 600; font-size: .85em;
    border: 1px solid var(--border-col);
    transition: all .2s;
}
.teams-filter a.active,
.teams-filter a:hover { background: var(--red); color: #fff; border-color: var(--red); }

.group-section { margin-top: 2rem; }
.group-section:first-child { margin-top: 0; }
.group-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2em; color: var(--text-main);
    border-bottom: 2px solid var(--red);
    padding-bottom: 6px; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.group-title .count {
    font-size: .6em; font-weight: 400;
    background: var(--red); color: #fff;
    border-radius: 99px; padding: 1px 8px;
    font-family: 'Open Sans', sans-serif;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}
.team-card {
    background: var(--bg-card);
    border-radius: 9px;
    text-decoration: none; color: var(--text-main);
    border-top: 3px solid var(--red);
    transition: transform .18s, box-shadow .18s;
    display: flex; flex-direction: column;
    overflow: hidden;
}
.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.4);
}
.team-card-img { width: 100%; height: 110px; object-fit: cover; }
.team-card-img-placeholder {
    width: 100%; height: 85px;
    background: linear-gradient(135deg, var(--red) 0%, #7a0000 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.2rem;
}
.team-card-body {
    padding: 10px 12px 13px;
    display: flex; flex-direction: column; gap: 3px;
    flex: 1;
}
.team-card h3 {
    margin: 0; font-size: 1em;
    font-family: 'Oswald', sans-serif;
    line-height: 1.2; color: var(--text-main);
}
.team-card .jahrgang { font-size: .72em; color: var(--text-muted); font-weight: 500; display: flex; flex-wrap: wrap; gap: 3px; }
.team-card .jahrgang-badge { background: var(--bg-section); border-radius: 20px; padding: 1px 7px; white-space: nowrap; }
.team-card .spielklasse {
    font-size: .72em; color: var(--text-muted);
    margin-top: 2px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-card .ext-link {
    font-size: .7em; color: #3b82f6;
    display: inline-flex; align-items: center; gap: 3px;
    margin-top: auto; padding-top: 6px; text-decoration: none;
}
.team-card .ext-link:hover { text-decoration: underline; }
.no-teams { text-align: center; padding: 50px; color: var(--text-muted); font-size: 1em; }
