/*
 * ====================================================================
 * PENALTY TABLE V2 - Desktop Version
 * ====================================================================
 * Vollständige Tabelle mit Sticky Columns und allen Details
 */

.penalty-desktop-wrapper {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.penalty-table-desktop {
    min-width: 900px;
    font-size: 0.95rem;
    width: 100%;
}

.penalty-table-desktop th {
    background-color: var(--fm-dark);
    color: var(--fm-white);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 0.75rem;
}

/* Sticky Columns nur auf Desktop */
.penalty-table-desktop .sticky-pos {
    position: sticky;
    left: 0;
    background-color: var(--fm-white);
    z-index: 5;
    width: 60px;
    font-weight: bold;
    color: var(--fm-gold);
    text-align: center;
}

.penalty-table-desktop .sticky-team {
    position: sticky;
    left: 60px;
    background-color: var(--fm-white);
    z-index: 5;
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
}

.penalty-table-desktop thead .sticky-pos,
.penalty-table-desktop thead .sticky-team {
    background-color: var(--fm-dark);
    z-index: 15;
}

.penalty-table-desktop tbody tr {
    transition: background-color 0.3s ease;
}

.penalty-table-desktop tbody tr:hover {
    background-color: rgba(182, 139, 71, 0.1);
}

.penalty-table-desktop tbody tr:hover .sticky-pos,
.penalty-table-desktop tbody tr:hover .sticky-team {
    background-color: rgba(182, 139, 71, 0.1);
}

.penalty-table-desktop .penalty-team-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.penalty-table-desktop td {
    padding: 0.5rem;
    vertical-align: middle;
}

/* DFB-Urteile Spalte optimieren (jetzt 4. Spalte) */
.penalty-table-desktop td:nth-child(4) {
    min-width: 200px;
    max-width: 250px;
}

/* Scrollbare DFB-Urteile */
.dfb-urteile-scroll {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 5px;
}

/* Scrollbar Styling für DFB-Urteile */
.dfb-urteile-scroll::-webkit-scrollbar {
    width: 4px;
}

.dfb-urteile-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.dfb-urteile-scroll::-webkit-scrollbar-thumb {
    background: var(--fm-gold);
    border-radius: 2px;
}

.dfb-urteile-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--fm-dark);
}

/* Anzahl d. Strafen Spalte */
.penalty-details-cell {
    min-width: 250px;
}

.penalty-details .team-name-link {
    color: var(--fm-gold);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}

.penalty-details .team-name-link:hover {
    color: var(--fm-dark);
    text-decoration: underline;
}

.penalty-stats {
    line-height: 1.4;
}

.penalty-stats small {
    color: var(--fm-text-secondary);
}

.penalty-stats strong {
    color: var(--fm-gold);
}

.details-link {
    color: var(--fm-gold);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.details-link:hover {
    color: var(--fm-dark);
    text-decoration: underline;
}

.penalty-table-desktop td strong {
    color: var(--fm-gold);
}

.penalty-table-desktop a {
    color: var(--fm-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.penalty-table-desktop a:hover {
    color: var(--fm-dark);
    text-decoration: underline;
}

/* Scrollbar Styling für Desktop */
.penalty-desktop-wrapper::-webkit-scrollbar {
    height: 8px;
}

.penalty-desktop-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.penalty-desktop-wrapper::-webkit-scrollbar-thumb {
    background: var(--fm-gold);
    border-radius: 4px;
}

.penalty-desktop-wrapper::-webkit-scrollbar-thumb:hover {
    background: var(--fm-dark);
}

/* Responsive für größere Desktop-Screens */
@media (min-width: 1400px) {
    .penalty-table-desktop {
        font-size: 1rem;
    }
    
    .penalty-table-desktop .penalty-team-logo {
        width: 40px;
        height: 40px;
    }
    
    .penalty-table-desktop .sticky-team {
        width: 70px;
        min-width: 70px;
        max-width: 70px;
    }
}