/*
 * ====================================================================
 * AWAY TOTAL TABLE STYLES (awaytotal_bs5.twig)
 * ====================================================================
 * Styles für die Auswärtsfahrer-Gesamttabelle mit FM-Sticky-Table
 */

/* Content Wrapper */
.awaytotal-content-wrapper {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Team-spezifische Anpassungen für FM-Sticky-Table */
#awaytotalTable .team-info {
    gap: 0.75rem; /* Mehr Abstand für bessere Lesbarkeit */
}

#awaytotalTable .team-logo {
    width: 35px;
    height: 35px;
}

#awaytotalTable .team-name {
    font-weight: 600;
    font-size: 1rem;
}

/* Fans Average */
.fans-avg {
    color: var(--fm-text-primary);
    font-size: 1.1rem;
}

/* Distance Average */
.distance-avg {
    color: var(--fm-text-primary);
    font-size: 1rem;
}

/* Schedule Info */
.schedule-info {
    font-size: 0.9rem;
    text-align: center;
}

.schedule-info div {
    line-height: 1.3;
    color: var(--fm-text-primary);
}

.schedule-info strong {
    color: var(--fm-gold);
}

/* Fans Max/Min Info */
.fans-max-info,
.fans-min-info {
    text-align: center;
}

.fans-max-info strong,
.fans-min-info strong {
    color: var(--fm-text-primary);
    font-size: 1rem;
    display: block;
}

.fans-max-info small,
.fans-min-info small {
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Fans Summary */
.fans-summary {
    font-size: 0.9rem;
    text-align: center;
}

.fans-summary div {
    line-height: 1.3;
    color: var(--fm-text-primary);
}

.fans-summary .bi {
    color: var(--fm-gold);
    margin-right: 0.25rem;
}

/* Season Select */
#selectSeason {
    max-width: 300px;
}

/* Sticky Footer */
.fm-sticky-footer {
    margin-top: 2rem;
}

/* Spalten-spezifische Breiten für awaytotal */
#awaytotalTable th:nth-child(3),
#awaytotalTable td:nth-child(3) { /* Gästefans ø */
    min-width: 120px;
}

#awaytotalTable th:nth-child(4),
#awaytotalTable td:nth-child(4) { /* Entfernung ø */
    min-width: 120px;
}

#awaytotalTable th:nth-child(5),
#awaytotalTable td:nth-child(5) { /* Spielansetzungen */
    min-width: 140px;
}

#awaytotalTable th:nth-child(6),
#awaytotalTable td:nth-child(6) { /* Höchstwert */
    min-width: 130px;
}

#awaytotalTable th:nth-child(7),
#awaytotalTable td:nth-child(7) { /* Tiefstwert */
    min-width: 130px;
}

#awaytotalTable th:nth-child(8),
#awaytotalTable td:nth-child(8) { /* Summen */
    min-width: 150px;
}

/* Responsive Anpassungen */
@media (max-width: 1199px) {
    .awaytotal-content-wrapper {
        padding: 1.5rem 0.75rem;
    }
    
    #awaytotalTable {
        font-size: 0.9rem;
    }
    
    #awaytotalTable .team-logo {
        width: 30px;
        height: 30px;
    }
    
    .fans-avg {
        font-size: 1rem;
    }
}

@media (max-width: 991px) {
    .awaytotal-content-wrapper {
        padding: 1rem 0.5rem;
    }
    
    /* Kompaktere Darstellung */
    #awaytotalTable td,
    #awaytotalTable th {
        padding: 0.5rem 0.3rem;
    }
    
    .schedule-info,
    .fans-summary {
        font-size: 0.85rem;
    }
    
    .fans-max-info small,
    .fans-min-info small {
        font-size: 0.75rem;
    }
}

@media (max-width: 767px) {
    .awaytotal-content-wrapper {
        padding: 1rem 0.25rem;
    }
    
    #awaytotalTable {
        font-size: 0.85rem;
    }
    
    #awaytotalTable td,
    #awaytotalTable th {
        padding: 0.4rem 0.2rem;
    }
    
    #awaytotalTable .team-logo {
        width: 25px;
        height: 25px;
    }
    
    #awaytotalTable .team-name {
        font-size: 0.9rem;
    }
    
    .fans-avg {
        font-size: 0.9rem;
    }
    
    .distance-avg {
        font-size: 0.9rem;
    }
    
    .fans-summary {
        font-size: 0.8rem;
    }
    
    .fans-max-info strong,
    .fans-min-info strong {
        font-size: 0.9rem;
    }
    
    .fans-max-info small,
    .fans-min-info small {
        font-size: 0.7rem;
    }
    
    /* Reduziere Spaltenbreiten auf Mobile */
    #awaytotalTable th:nth-child(3),
    #awaytotalTable td:nth-child(3),
    #awaytotalTable th:nth-child(4),
    #awaytotalTable td:nth-child(4) {
        min-width: 100px;
    }
    
    #awaytotalTable th:nth-child(5),
    #awaytotalTable td:nth-child(5) {
        min-width: 120px;
    }
    
    #awaytotalTable th:nth-child(6),
    #awaytotalTable td:nth-child(6),
    #awaytotalTable th:nth-child(7),
    #awaytotalTable td:nth-child(7) {
        min-width: 110px;
    }
    
    #awaytotalTable th:nth-child(8),
    #awaytotalTable td:nth-child(8) {
        min-width: 130px;
    }
}

@media (max-width: 576px) {
    .awaytotal-content-wrapper {
        padding: 0.75rem 0.125rem;
    }
    
    #awaytotalTable {
        font-size: 0.8rem;
    }
    
    #awaytotalTable td,
    #awaytotalTable th {
        padding: 0.3rem 0.15rem;
    }
    
    #awaytotalTable .team-logo {
        width: 20px;
        height: 20px;
    }
    
    #awaytotalTable .team-name {
        font-size: 0.85rem;
    }
    
    .fans-avg,
    .distance-avg {
        font-size: 0.85rem;
    }
    
    .fans-summary {
        font-size: 0.75rem;
    }
    
    .fans-summary div {
        line-height: 1.2;
    }
    
    .fans-max-info strong,
    .fans-min-info strong {
        font-size: 0.85rem;
    }
    
    .fans-max-info small,
    .fans-min-info small {
        font-size: 0.65rem;
    }
    
    .schedule-info {
        font-size: 0.75rem;
    }
}

/* Print Styles */
@media print {
    .awaytotal-content-wrapper {
        max-width: none;
        padding: 0;
    }
    
    #awaytotalTable tbody tr:hover {
        background-color: transparent;
    }
    
    #awaytotalTable .team-logo {
        width: 30px;
        height: 30px;
    }
    
    #awaytotalTable .team-name,
    .fans-avg,
    .distance-avg {
        color: #000 !important;
    }
    
    .fm-sticky-footer {
        display: none;
    }
}