/**
 * BBV Tabellen Importer Pro - Public Styles
 */

.bbv-container {
    max-width: 100%;
    margin-bottom: 30px;
}

.bbv-tabelle-container,
.bbv-games-container,
.bbv-ranking-container,
.bbv-schedule-container {
    max-width: 100%;
    overflow-x: auto;
    margin-bottom: 20px;
}

.bbv-tabelle,
.bbv-games-table,
.bbv-ranking,
.bbv-schedule {
    width: 100%;
    border-collapse: collapse;
	font-family: Arial, sans-serif !important;
    font-size: 14px;
}

.bbv-tabelle th,
.bbv-tabelle td,
.bbv-games-table th,
.bbv-games-table td,
.bbv-ranking th,
.bbv-ranking td,
.bbv-schedule th,
.bbv-schedule td {
    padding: 4px 6px !important;
    border: 1px solid #ddd;
    text-align: center;
    line-height: 1.4 !important;
}

.bbv-tabelle th,
.bbv-games-table th,
.bbv-ranking th,
.bbv-schedule th {
	font-size: 20px;
    font-weight: 100;
    /* Farben werden via Einstellungen gesetzt */
}

.bbv-tabelle tr:nth-child(even),
.bbv-games-table tr:nth-child(even),
.bbv-ranking tr:nth-child(even),
.bbv-schedule tr:nth-child(even) {
    background-color: #f9f9f9;
}

.bbv-tabelle tr:hover,
.bbv-games-table tr:hover,
.bbv-ranking tr:hover,
.bbv-schedule tr:hover {
    /* Farbe wird via Einstellungen gesetzt */
}

.bbv-tabelle-footer,
.bbv-games-footer,
.bbv-ranking-footer,
.bbv-schedule-footer {
    font-size: 12px;
    text-align: right;
    margin-top: 5px;
    color: #666;
}

.bbv-highlighted-team {
    /* Farbe wird via Einstellungen gesetzt */
    font-weight: bold;
}

.bbv-section-title {
    font-size: 16px;
    font-weight: bold;
    margin: 15px 0 20px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

/* Mini-Tabelle für Startseite */
.bbv-mini-container {
    max-width: 500px;
    margin: 0 auto 30px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bbv-mini-title {
    background: linear-gradient(135deg, #0066cc 0%, #0052a3 100%);
    color: #fff;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
}
[bbv_tabelle league_id="league_6aa063d3041c4" title="Kreisklasse Oberbayern 2 / Saison 26/27"]
.bbv-mini-tabelle {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.bbv-mini-tabelle thead th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px 10px;
    border-bottom: 2px solid #ddd;
    text-align: left;
}

.bbv-mini-tabelle thead th.mini-rank,
.bbv-mini-tabelle thead th.mini-games,
.bbv-mini-tabelle thead th.mini-points {
    text-align: center;
}

.bbv-mini-tabelle tbody td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.bbv-mini-tabelle tbody tr:last-child td {
    border-bottom: none;
}

.bbv-mini-tabelle tbody tr:hover {
    background: #f8f9fa;
}

.mini-rank {
    width: 50px;
    text-align: center;
    font-weight: 600;
    color: #666;
}

.mini-team {
    text-align: left;
    font-weight: 500;
}

.mini-games {
    width: 70px;
    text-align: center;
    color: #666;
}

.mini-points {
    width: 80px;
    text-align: center !important;
    font-weight: 600;
    color: #0066cc;
}

.bbv-mini-tabelle tbody .mini-points {
    text-align: center !important;
}

.bbv-mini-tabelle tbody .bbv-highlighted {
    background: #fff3cd;
    font-weight: 600;
}

.bbv-mini-tabelle tbody .bbv-highlighted:hover {
    background: #ffe69c;
}

.bbv-mini-footer {
    padding: 12px 20px;
    background: #f8f9fa;
    border-top: 1px solid #ddd;
    text-align: center;
}

.bbv-mini-footer a {
    color: #0066cc;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.bbv-mini-footer a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    /* width:100% würde die Tabelle auf Handy-Breite zusammenquetschen statt sie
       (wie vom Container mit overflow-x:auto vorgesehen) scrollbar zu lassen -
       daher hier eine Mindestbreite setzen, damit horizontales Scrollen greift. */
    .bbv-tabelle,
    .bbv-games-table,
    .bbv-ranking,
    .bbv-schedule {
        width: auto;
        min-width: 420px;
        font-size: 12px;
    }

    .bbv-tabelle th,
    .bbv-tabelle td,
    .bbv-games-table th,
    .bbv-games-table td,
    .bbv-ranking th,
    .bbv-ranking td,
    .bbv-schedule th,
    .bbv-schedule td {
        padding: 3px 4px !important;
        line-height: 1.3 !important;
        white-space: nowrap;
    }

    /* Weniger wichtige Spalten auf Mobilgeräten ausblenden, damit die Spielplan-Tabelle
       ohne starkes Scrollen lesbar bleibt (Spiellokal, Runde, Nr., Liga). */
    .bbv-schedule .bbv-col-spiellokal,
    .bbv-schedule .bbv-col-runde,
    .bbv-schedule .bbv-col-nr,
    .bbv-schedule .bbv-col-liga {
        display: none;
    }

    /* Mini-Tabelle Responsive */
    .bbv-mini-container {
        max-width: 100%;
        border-radius: 0;
    }

    .bbv-mini-title {
        font-size: 16px;
        padding: 12px 15px;
    }

    .bbv-mini-tabelle {
        font-size: 12px;
    }

    .bbv-mini-tabelle thead th,
    .bbv-mini-tabelle tbody td {
        padding: 8px 6px;
    }

    .mini-rank,
    .mini-games,
    .mini-points {
        width: auto;
    }

    .bbv-mini-footer {
        padding: 10px 15px;
    }
}
