.wm-main-wrapper {
    width: 100%;
    max-width: 1040px;
    margin: 0 auto;
    padding: 15px;
    box-sizing: border-box;
}

/* WICHTIG: Das fängt die Breite auf dem Handy ab */
.wm-table-container { 
    width: 100%; 
    overflow-x: auto; /* Erlaubt horizontales Scrollen NUR für die Tabelle */
    -webkit-overflow-scrolling: touch; /* Macht das Wischen auf iPhones butterweich */
    font-family: Arial, sans-serif; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    position: relative;
}

/* Basis der Tabelle */
.wm-rangliste { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 16px; 
    background: #ffffff; 
    color: #000000; 
}

.wm-rangliste th, .wm-rangliste td { 
    padding: 6px 8px; 
    text-align: left; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.06); 
    box-sizing: border-box;
    line-height: 1.1;
}

.wm-rangliste th { 
    padding: 14px 10px; 
    background-color: #6A2D34; 
    color: white !important; 
    font-weight: bold; 
}

.wm-rangliste td { 
    font-size: clamp(1em, 2.8vw, 1.2em);
    padding: 6px 10px; 
    text-align: left; 
    border-bottom: 1px solid rgba(0, 0, 0, 0.06); 
    box-sizing: border-box;
    line-height: 1.2;
}

/* --- HIER IST DIE KORREKTUR FÜR DIE PLATZIERUNG --- */
.wm-rangliste td:first-child {
    font-weight: normal !important;
}

/* Zentrale Steuerung für die Punktespalte (letzte Spalte) */
.wm-rangliste td:last-child {
    text-align: center;
    font-size: clamp(1em, 2.8vw, 1.2em);
    color: #000000 !important; 
}

.wm-rangliste th:last-child {
    text-align: center;
    color: white !important;
}

.wm-fixed-header {
    position: fixed;
    top: 0; 
    left: auto;
    z-index: 999;
    background-color: #1a1a1a;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

/* ZEILE GERADE (2, 4, 6...): Elegantes, helles Pastell-Grau */
.wm-rangliste tbody tr:nth-child(even) { 
    background-color: #f2f2f2 !important;  
}

/* HOVER-EFFEKT: Zartes Pastell-Gelb beim Drüberfahren */
.wm-rangliste tbody tr:hover {
    background-color: #fff2cc !important;
}

/* HIGHLIGHT-FARBEN */
.aktueller-spieler { 
    background-color: #d9ebd3 !important; /* Pastell-Grün */
    font-weight: bold; 
    border-left: 5px solid #2ea44f; 
}
.aktueller-spieler td { color: #1b5e20 !important; }

/* BADGES (Abzeichen in der Header-Zeile / 4er, 3er, 2er, 1er) */
.badge { 
    display: inline-block; 
    padding: 3px 6px; 
    font-size: clamp(0.8em, 2.8vw, 1em);
    font-weight: bold;
    border-radius: 4px; 
    color: #ffffff !important; 
    text-align: center; 
    min-width: 20px; 
}
.b-4 { background-color: #2563eb !important; } /* Kräftiges Blau */
.b-3 { background-color: #16a34a !important; } /* Kräftiges Grün */
.b-2 { background-color: #d97706 !important; } /* Kräftiges Warm-Orange */
.b-1 { background-color: #4b5563 !important; } /* Kräftiges Graphit-Grau */

/* SMARTPHONE-OPTIMIERUNG */
@media screen and (max-width: 600px) {
    .wm-main-wrapper {
        padding: 5px; 
    }
    
    .wm-rangliste { 
        font-size: clamp(1em, 2.8vw, 1.2em);
    }

    .wm-rangliste th, .wm-rangliste td { 
        padding: 5px 6px; 
    }
    
    .wm-rangliste td:last-child {
        font-size: 14px !important; 
        color: #000000 !important;
    }

    .badge {
        padding: 1px 4px;
        font-size: clamp(0.7em, 2.8vw, 1.2em);
        min-width: 14px;
    }
}

/* Spielernamen ohne Zeilenumbruch darstellen */
.wm-rangliste td:nth-child(2), 
.player-name, 
.spielername {
    white-space: nowrap;
}