/*
 * SV Vagen nuLiga 1.3.1
 *
 * SCHNELLE ANPASSUNGEN
 * Desktop-Schrift: 16px
 * Mobile-Schrift: 12px
 * Sticky Spielername: 65px
 * Gold: #d4af37
 * Helles Gold: #e0c15a
 */

/* =========================================================
   1. GEMEINSAME VARIABLEN UND WRAPPER
   ========================================================= */

.svvnl-table-wrap,
.svvnl-schedule-wrap,
.svvnl-stats-wrap {
    --svvnl-gold: #d4af37;
    --svvnl-gold-text: #e0c15a;
    --svvnl-line: rgba(255, 255, 255, 0.11);
    --svvnl-zebra: rgba(255, 255, 255, 0.025);
    width: 100%;
    overflow-x: auto;
}

.svvnl-league,
.svvnl-schedule,
.svvnl-stats {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.svvnl-league thead,
.svvnl-schedule thead,
.svvnl-stats thead {
    border-bottom: 2px solid rgba(212, 175, 55, 0.65);
}

.svvnl-league th,
.svvnl-league td,
.svvnl-schedule th,
.svvnl-schedule td,
.svvnl-stats th,
.svvnl-stats td {
    padding: 11px 7px;
    text-align: center;
    white-space: nowrap;
    border-bottom: 1px solid var(--svvnl-line);
}

.svvnl-league tbody tr:nth-child(even),
.svvnl-schedule tbody tr:nth-child(even),
.svvnl-stats tbody tr:nth-child(even) {
    background: var(--svvnl-zebra);
}

/* =========================================================
   2. LIGATABELLE
   ========================================================= */

.svvnl-league {
    table-layout: fixed;
}

.svvnl-col-rank { width: 7%; }
.svvnl-col-team { width: 35%; }
.svvnl-col-matches { width: 10%; }
.svvnl-col-s,
.svvnl-col-u,
.svvnl-col-n { width: 4%; }
.svvnl-col-games { width: 10%; }
.svvnl-col-diff { width: 7%; }
.svvnl-col-legs { width: 10%; }
.svvnl-col-points { width: 9%; }

.svvnl-col-team {
    text-align: left !important;
    white-space: normal !important;
}

.svvnl-own {
    background: rgba(212, 175, 55, 0.12) !important;
}

.svvnl-own td {
    border-top: 1px solid rgba(212, 175, 55, 0.70);
    border-bottom: 1px solid rgba(212, 175, 55, 0.70);
}

.svvnl-own td:first-child {
    border-left: 3px solid var(--svvnl-gold);
}

.svvnl-own .svvnl-col-team,
.svvnl-own .svvnl-col-rank {
    color: var(--svvnl-gold-text);
    font-weight: 700;
}

/* =========================================================
   3. SPIELPLAN
   ========================================================= */

.svvnl-schedule {
    table-layout: fixed;
}

.svvnl-schedule th:nth-child(1),
.svvnl-schedule td:nth-child(1) { width: 6%; }

.svvnl-schedule th:nth-child(2),
.svvnl-schedule td:nth-child(2) { width: 13%; }

.svvnl-schedule th:nth-child(3),
.svvnl-schedule td:nth-child(3) { width: 10%; }

.svvnl-schedule th:nth-child(4),
.svvnl-schedule td:nth-child(4),
.svvnl-schedule th:nth-child(5),
.svvnl-schedule td:nth-child(5) { width: 29%; }

.svvnl-schedule th:nth-child(6),
.svvnl-schedule td:nth-child(6) { width: 13%; }

.svvnl-schedule-team {
    text-align: left !important;
    white-space: normal !important;
    line-height: 1.25;
}

.svvnl-schedule-own {
    color: var(--svvnl-gold-text);
    font-weight: 700;
}

.svvnl-schedule-result {
    font-weight: 700;
}

.svvnl-schedule-hint {
    display: none;
}

/* =========================================================
   4. SPIELERSTATISTIK
   ========================================================= */

.svvnl-player {
    text-align: left !important;
}

.svvnl-stats tbody .svvnl-player,
.svvnl-stats tfoot .svvnl-player,
.svvnl-stats tfoot .svvnl-total {
    color: var(--svvnl-gold-text);
    font-weight: 700;
}

.svvnl-stats .svvnl-total {
    font-weight: 700;
}

.svvnl-stats tfoot {
    border-top: 2px solid rgba(212, 175, 55, 0.65);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 700;
}

.svvnl-player span {
    color: var(--svvnl-gold);
}

.svvnl-stats th i {
    display: none;
    font-style: normal;
}

.svvnl-swipe {
    display: none;
}

/* =========================================================
   5. DATENSTAND
   ========================================================= */

.svvnl-status {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.72);
}

.svvnl-status span {
    color: var(--svvnl-gold-text, #e0c15a);
    font-weight: 600;
}

/* =========================================================
   6. MOBILE BIS 767 PX
   ========================================================= */

@media (max-width: 767px) {

    /* Ligatabelle */
    .svvnl-league {
        table-layout: fixed;
        font-size: 12px;
    }

    .svvnl-league th,
    .svvnl-league td {
        padding: 7px 2px;
    }

    .svvnl-col-matches,
    .svvnl-col-legs {
        display: none;
    }

    .svvnl-col-rank { width: 9%; }
    .svvnl-col-team { width: 35%; line-height: 1.2; }
    .svvnl-col-s,
    .svvnl-col-u,
    .svvnl-col-n { width: 7%; }
    .svvnl-col-games { width: 14%; }
    .svvnl-col-diff { width: 10%; }
    .svvnl-col-points { width: 11%; }

    /* Spielplan */
    .svvnl-schedule-hint {
        display: block;
        margin: 0 0 7px;
        text-align: right;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.65);
    }

    .svvnl-schedule {
        min-width: 560px;
        table-layout: fixed;
        font-size: 12px;
    }

    .svvnl-schedule th,
    .svvnl-schedule td {
        padding: 8px 4px;
    }

    .svvnl-schedule th:nth-child(1),
    .svvnl-schedule td:nth-child(1) { width: 42px; }

    .svvnl-schedule th:nth-child(2),
    .svvnl-schedule td:nth-child(2) { width: 82px; }

    .svvnl-schedule th:nth-child(3),
    .svvnl-schedule td:nth-child(3) { width: 58px; }

    .svvnl-schedule th:nth-child(4),
    .svvnl-schedule td:nth-child(4),
    .svvnl-schedule th:nth-child(5),
    .svvnl-schedule td:nth-child(5) { width: 155px; }

    .svvnl-schedule th:nth-child(6),
    .svvnl-schedule td:nth-child(6) { width: 68px; }

    /* Tag und Datum bleiben beim horizontalen Wischen sichtbar. */
    .svvnl-schedule th:nth-child(1),
    .svvnl-schedule td:nth-child(1) {
        position: sticky;
        left: 0;
        z-index: 2;
        background: #182231;
    }

    .svvnl-schedule th:nth-child(2),
    .svvnl-schedule td:nth-child(2) {
        position: sticky;
        left: 42px;
        z-index: 2;
        background: #182231;
    }

    .svvnl-schedule th:nth-child(1),
    .svvnl-schedule th:nth-child(2) {
        z-index: 3;
    }

    /* Zebra-Hintergrund auch bei den fixierten Zellen beibehalten. */
    .svvnl-schedule tbody tr:nth-child(even) td:nth-child(1),
    .svvnl-schedule tbody tr:nth-child(even) td:nth-child(2) {
        background: #202735;
    }

    /* Spielerstatistik */
    .svvnl-swipe {
        display: block;
        margin: 0 0 7px;
        text-align: right;
        font-size: 12px;
        color: rgba(255, 255, 255, 0.65);
    }

    .svvnl-stats {
        min-width: 620px;
        font-size: 12px;
    }

    .svvnl-stats th,
    .svvnl-stats td {
        padding: 7px 4px;
    }

    .svvnl-stats th b {
        display: none;
    }

    .svvnl-stats th i {
        display: inline;
    }

    .svvnl-stats .svvnl-player {
        position: sticky;
        left: 0;
        z-index: 2;
        width: 65px;
        min-width: 65px;
        max-width: 65px;
        white-space: normal;
        background: #182231;
        line-height: 1.15;
    }

    .svvnl-stats th.svvnl-player {
        z-index: 3;
    }

    .svvnl-stats tfoot .svvnl-player {
        background: #202b3a;
    }

    .svvnl-status {
        font-size: 12px;
    }
}
