/* ============================================================
   EIGHTERS BASEBALL CLUB - Team-Sektion Styles
   ============================================================ */

/* Grid: Mobile First (2 Spalten), Tablet 3, Desktop 4 */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 2rem;
}

@media (min-width: 600px) {
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

@media (min-width: 960px) {
    .team-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
    }
}

/* ------------------------------------------------------------
   SPIELER-KARTE (KONFIGURIERT OHNE BILDER)
   ------------------------------------------------------------ */
.team-card {
    position: relative;
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

@media (hover: hover) {
    .team-card:hover {
        transform: translateY(-3px);
        border-color: var(--color-accent);
    }
}

/* BILDER AUSSER KRAFT SETZEN (Platzhalter-Nutzung) */
.team-card__media {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card__img {
    display: none; /* TEMPORÄR: Bilder ausblenden */
}

.team-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 800;
    color: var(--color-gold);
    width: 100%;
    height: 100%;
}

/* Jersey-Badge: Gold mit blauem Text */
.team-card__jersey {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.15rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--color-blue);
    background: var(--color-gold);
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Name unter dem Bild */
.team-card__name {
    padding: 0.6rem 0.8rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text);
}

.team__empty {
    text-align: center;
    color: var(--color-text-muted);
    padding-block: 2rem;
}