/* Grundlegende Schriftart für das gesamte Projekt */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', 'Arial', sans-serif;
    color: white;
}

/* Sicherstellen, dass auch Buttons und Inputs die Schrift übernehmen */
button, input, select, textarea {
    font-family: inherit;
}

/* Die Spielauswahl-Karte mit dem Modal.png Hintergrund */
.selection-card {
    background: url('/images/Modal.png') no-repeat center center;
    background-size: cover;
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 950px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

/* Styling für die Fehlermeldung */
#auth-error-msg {
    background: rgba(220, 20, 60, 0.25);
    border: 2px solid #ff4d4d;
    color: #ffe6e6;
    padding: 12px 15px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    backdrop-filter: blur(4px);

    animation: shake 0.4s ease-in-out;
}

/* Die Schüttel-Animation für Aufmerksamkeit */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;

}

#main-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

.modal-content {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border: 3px solid #FFD700;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.modal-content input {
    display: block; width: 100%; margin: 10px 0;
    padding: 10px; border-radius: 5px; border: 1px solid #FFD700;
    background: rgba(255, 255, 255, 0.1); color: white;
}

/* Styling für den "Passwort vergessen" Link */
#forgot-pw-container a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: normal;
    transition: all 0.3s ease;
}

/* Effekt beim Drüberfahren */
#forgot-pw-container a:hover {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    text-decoration: underline;
    cursor: pointer;
}

/* Der "Senden" Button - Goldener 3D Look */
#forgot-action-btn {
    background: linear-gradient(to bottom, #FFD700, #DAA520);
    color: #1a0f00;
    border: 2px solid #fff;
    border-radius: 50px;
    padding: 12px 0;
    width: 100%;
    font-weight: 800;
    text-transform: uppercase;
    box-shadow: 0 4px 0 #8B6508, 0 5px 15px rgba(0,0,0,0.5);
    cursor: pointer;
    margin-top: 15px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

/* Hover Effekt für Senden */
#forgot-action-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #8B6508, 0 10px 20px rgba(255, 215, 0, 0.4);
}

/* Klick Effekt für Senden */
#forgot-action-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #8B6508;
}

/* Der "Abbrechen" Button - Dezent mit Goldrand */
#forgot-cancel-btn {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid #FFD700;
    color: #FFD700;
    border-radius: 50px;
    padding: 10px 0;
    width: 100%;
    font-weight: bold;
    margin-top: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

/* Hover Effekt für Abbrechen */
#forgot-cancel-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    color: #fff;
}

.modal-content-wrapper {
    /* 1. Positionierung & Bezugspunkt für den Pfeil */
    position: relative;
    margin: 0 auto;

    /* 2. Hintergrund & Design (Mittelalter-Motto) */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/images/Modal.png');
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(8px); /* Erzeugt den edlen Glaseffekt */

    /* 3. Form & Rahmen */
    width: 90%;
    padding: 40px;
    border: 4px solid #FFD700;
    border-radius: 30px;

    /* 4. Schatten & Effekte */
    box-shadow: 0 0 50px rgba(0, 0, 0, 1);
    text-align: center;

    /* 5. Die Animation (Einblenden/Reinfahren) */
    animation: modalSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* WICHTIG: Die dazugehörige Animation, falls sie noch fehlt */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-tabs {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 15px;
}

#modal-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

@keyframes modalSlideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.action-btn, .tab-btn.active {
    background: linear-gradient(to bottom, #FFD700, #b8860b);
    color: black;
    border: 2px solid #000;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 0 #5d4300;
    transition: all 0.1s ease;
    cursor: pointer;
}

.action-btn:active, .tab-btn.active:active {
    box-shadow: 0 1px 0 #5d4300;
    transform: translateY(3px);
}

.tab-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    flex: 1;
    padding: 10px 0;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 40px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
}

.tab-btn.active {
    background: linear-gradient(135deg, #FFD700, #DAA520);
    color: #1a1a1a;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    transform: scale(1.05);
}

.tab-btn:hover:not(.active) {
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

#forgot-pw-container a:hover {
    color: #FFD700;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.5);
}

.input-group input {
    padding: 10px 15px;
    font-size: 0.9rem;
    height: auto;
    margin-bottom: 5px;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.input-group input:focus, .input-group select:focus {
    border-color: #FFD700;
    outline: none;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

/* Entfernt den weissen Kalender-Button im Chrome bei der Datumseingabe und macht ihn passend weiss */
::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Zwingt das Login-Fenster schmal zu sein */
#login-modal .modal-content-wrapper,
#forgot-pw-modal .modal-content-wrapper,
#join-game-modal .modal-content-wrapper {
    max-width: 380px;
    width: 95%;
    padding: 30px 25px;
    border-radius: 15px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('/images/Modal.png') no-repeat center center;
    background-size: cover;
    border: 2px solid #FFD700;
    text-align: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
    box-sizing: border-box;
}

/* Anpassung der Buttons (Login, Gast, etc.) */
#main-action-btn, .guest-btn {
    padding: 10px 0;
    font-size: 1rem;
    width: 100%;
    margin-top: 5px;
}

.action-btn {
    background: linear-gradient(to bottom, #FFD700, #ccac00);
    color: black;
    border: 2px solid #000;
    border-radius: 50px;
    padding: 15px;
    width: 100%;
    font-weight: bold;
    box-shadow: 0 5px 0 #665600;
    cursor: pointer;
    text-transform: uppercase;
    box-sizing: border-box;
}

.action-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #665600; }

.guest-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    margin-top: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.guest-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

body {
    margin: 0;
    padding: 0;
    background: url('/images/Startscreen.png') no-repeat center top fixed;
    background-size: cover;
    height: 100vh;
    width: 100vw;
    overflow: hidden;

    /* --- FIXIERUNGS-SPERRE --- */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;

    /* Verhindert Zoom-Gesten und Scrollen auf Touch-Geräten */
    touch-action: none;
}

.menu-wrapper {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    z-index: 10;
    margin-top: 10vh;
}

.menu-btn {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 900;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #FFD700;

    /* Länglich und voll abgerundet */
    padding: 18px 0;
    width: 85vw;
    max-width: 400px;

    border-radius: 50px;

    /* 70% Transparenz (rgba mit 0.7) */
    background: rgba(26, 20, 5, 0.7);
    border: 2px solid #FFD700;

    /* Moderner Glaseffekt (Blur) */
    backdrop-filter: blur(8px);
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.menu-btn.admin {
    display: none; 
    color: #FF0000;
    /* 70% Transparenz (rgba mit 0.7) */
    background: rgba(26, 20, 5, 0.7);
    border: 2px solid #FF0000;
    /* Moderner Glaseffekt (Blur) */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.menu-btn:active {
    transform: translateY(1px);
}

.menu-btn.primary {
    border-width: 3px;
    background: rgba(44, 30, 5, 0.7);
}

.menu-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 215, 0, 0.2);
    color: #fff;
    border-color: #fff;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
}

.menu-btn::before, .menu-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #FFD700;
    border-radius: 50%;
    box-shadow: inset -1px -1px 2px #000;
}

.menu-btn.admin::before, .menu-btn.admin::after {
    background: #FF0000;
}
.menu-btn::before { left: 25px; }
.menu-btn::after { right: 25px; }

/* ========================================= */
/* --- MUSIK & LAUTSTÄRKE STEUERUNG --- */
/* ========================================= */

/* Der neue Rahmen, der ALLES zusammenhält und oben rechts fixiert */
#music-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid #FFD700;
    border-radius: 50px;
    padding: 5px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

#music-wrapper:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: scale(1.05);
}

/* Der Play-Button (WICHTIG: Er hat jetzt KEIN 'position: fixed' mehr!) */
#music-control {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: #FFD700;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* Der Container für den Schieberegler (anfangs eingeklappt) */
#volume-container {
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
}

/* Fährt den Regler beim Hovern über den Wrapper geschmeidig aus */
#music-wrapper:hover #volume-container {
    width: 80px;
    opacity: 1;
    padding-left: 5px;
    padding-right: 10px;
}

/* Das verbesserte Design des Schiebereglers (Gold, Custom Look) */
#volume-slider {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
    cursor: pointer;
    outline: none;
    margin: 0 5px;
}

/* ========================================= */
/* --- CHROME, SAFARI, EDGE --- */
/* ========================================= */

/* Der Balken (Track) */
#volume-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Der Anfasser (Thumb) */
#volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFD700 30%, #DAA520 80%);
    border: 2px solid #fff;
    margin-top: -6px;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover-Effekt für den Anfasser */
#volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px #FFD700;
}

/* ========================================= */
/* --- FIREFOX --- */
/* ========================================= */

/* Der Balken (Track) */
#volume-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Der Anfasser (Thumb) */
#volume-slider::-moz-range-thumb {
    height: 14px;
    width: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, #FFD700 30%, #DAA520 80%);
    border: 2px solid #fff;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover-Effekt für den Anfasser */
#volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 12px #FFD700;
}

.image-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
}

.footer-bar {
    position: absolute;
    bottom: clamp(15px, 4vh, 30px);
    width: 100%;
    display: flex;
    justify-content: center;
    gap: clamp(10px, 4vw, 100px);
    z-index: 10;
}

.image-btn img {
    height: clamp(50px, 15vw, 170px);
    width: auto;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    display: block;
    transition: transform 0.3s ease;
}

.image-btn:hover img {
    transform: scale(1.1) translateY(-5px);
    filter: brightness(1.2);
}

.divider {
    color: #FFD700;
    text-transform: uppercase;
    font-family: 'Arial Black', sans-serif;
    font-size: 1.2rem;
    text-shadow: 2px 2px 0px #000;
    margin: 20px 0;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, transparent, #FFD700, transparent);
    margin: 0 15px;
}

#user-display {
    transition: opacity 0.5s ease-in-out;
    opacity: 0;
}

#user-display:hover {
    border-color: #fff;
    background: rgba(0,0,0,0.8);
}

#user-display[style*="display: flex"] {
    opacity: 1;
}

.mode-item:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.mode-item:active {
    transform: scale(0.95);
    border-color: #fff;
}

/* Animation für das visuelle "Dig" */
.menu-btn:hover, .guest-btn:hover, .main-action-btn:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
    transition: all 0.1s ease-in-out;
}

/* Speziell für die Image-Buttons im Footer */
.image-btn:hover img {
    transform: scale(1.1) translateY(-5px);
    filter: drop-shadow(0 0 10px #FFD700);
}

/* Visuelles "Dig" Feedback */
.menu-btn:hover, .guest-btn:hover, .action-btn:hover, .mode-item:hover {
    transform: scale(1.03);
    filter: brightness(1.2);
    transition: all 0.1s ease-in-out;
}

/* Klick-Effekt */
.menu-btn:active, .mode-item:active {
    transform: scale(0.95);
}

.selection-card {
    /* Hintergrundbild statt nur einer Farbe */
    background: url('/images/Modal.png') no-repeat center center;
    background-size: cover;
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 40px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Container für die grossen Karten */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    perspective: 1000px;
}

.selection-card, .selection-card * {
    font-family: 'Poppins', 'Arial', sans-serif;
}

/* Die vergrösserte Karte */
.mode-item.large-card {
    min-height: auto;
    height: auto;

    background: linear-gradient(145deg, rgba(40, 40, 40, 0.95), rgba(10, 10, 10, 0.95));
    border: 2px solid #FFD700;
    border-radius: 15px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mode-item.disabled .mode-preview img {
    object-fit: cover;
    padding: 0;
    background: none;
    filter: none;
}

/* Vergrößert den Bild-Container im Baustelle-Modus */
.mode-item.disabled .mode-preview {
    height: 180px;
    background: #000;
}

/* Bereich für das Vorschaubild */
.mode-preview {
    height: 180px;
    width: 100%;
    position: relative;
    background: rgba(0,0,0,0.5);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    overflow: hidden;
}

.large-card {
    min-height: 350px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid #FFD700;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Textbereich unter dem Bild */
.mode-info {
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
}

/* Der neue Anleitung-Button */
.info-btn {
    /* Goldener 3D-Verlauf */
    background: linear-gradient(to bottom, #FFD700 0%, #DAA520 100%);

    /* Text Styling */
    color: #1a0f00;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;

    /* Form & Rahmen */
    border: 1px solid #fff;
    border-radius: 50px;
    padding: 10px 30px;

    /* Effekte */
    cursor: pointer;
    box-shadow: 0 4px 0 #8B6508, 0 5px 10px rgba(0,0,0,0.5);
    transition: all 0.2s ease;
    outline: none;
    z-index: 10;
}

/* Hover-Effekt für den Button */
.info-btn:hover {
    filter: brightness(1.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 #8B6508, 0 10px 20px rgba(255, 215, 0, 0.4);
}

/* Deaktivierter Button (für "In Arbeit") */
.info-btn.disabled {
    background: #555;
    color: #999;
    border-color: #444;
    box-shadow: none;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Active (Klick) */
.info-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #8B6508, 0 2px 5px rgba(0,0,0,0.5);
}

.info-btn.disabled:hover {
    background: rgba(0,0,0,0.3);
    color: #666;
    box-shadow: none;
    transform: none;
}

.mode-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.mode-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

.modal-title-gold {
    font-family: 'Source Sans Pro', 'Arial Black', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    text-transform: uppercase;
    color: #FFD700;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 40px;
    /* Dezenter schwarzer Schatten */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: relative;
    display: block;
}

/* Der dünne, auslaufende Balken */
.modal-title-gold::after {
    content: "";
    display: block;
    height: 2px;
    width: 60%;
    margin: 10px auto 0;
    background: linear-gradient(to right, transparent, #FFD700 50%, transparent);
}

/* Hover-Effekte */
.mode-item.large-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    border-color: #FFD700;
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2),
                0 0 15px rgba(255, 215, 0, 0.1);
}

.mode-item.large-card:hover img {
    transform: scale(1.1);
}

.back-link-styled {
    background: none;
    border: none;
    color: #FFD700;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1.1rem;
}

/* Styling für deaktivierte Spielkarten */
.mode-item.disabled {
    filter: grayscale(100%);
    opacity: 0.8;
    cursor: not-allowed;
    pointer-events: none;
}

/* Verhindert die Hochrutsch-Animation bei gesperrten Karten */
.mode-item.large-card.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Sorgt dafür, dass das Schloss-Bild die richtige Grösse hat */
.mode-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Spezielles Styling für das Impressum-Fenster */
.impressum-box {
    max-width: 600px;
    width: 90%;
    text-align: center;
    border: 2px solid #FFD700;
}

/* Der Bereich für den Text */
.scroll-text {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 5px;
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding: 15px 10px;
    text-align: center;
}

.scroll-text h3 {
    color: #FFD700;
    margin-top: 15px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* --- Der Goldene Scrollbalken --- */
.scroll-text::-webkit-scrollbar {
    width: 8px;
}

.scroll-text::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.scroll-text::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

.scroll-text::-webkit-scrollbar-thumb:hover {
    background: #FFC125;
}

/* Der kleine Schließen-Button im Impressum */
.small-close-btn {
    background: transparent;
    border: 1px solid #FFD700;
    color: #FFD700;
    padding: 8px 30px;
    font-size: 0.9rem;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;

    /* Damit er mittig sitzt, falls der Text linksbündig ist */
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Hover Effekt */
.small-close-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #fff;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

/* Spezielles Design für den Lobby-Code */
#lobby-code-input {
    width: 200px;
    margin: 0 auto 20px;
    display: block;
    text-align: center;
    font-size: 1.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: bold;
    color: #FFD700;
    border: 2px solid rgba(255, 215, 0, 0.3);
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 12px;
}

#join-game-modal .action-btn {
    width: 80%;
    max-width: 240px;
    margin: 10px auto;
    display: block;
    padding: 15px 0;

    /* Goldener 3D-Verlauf */
    background: linear-gradient(180deg, #FFD700 0%, #DAA520 50%, #B8860B 100%);

    /* Schwarze, kräftige Schrift für maximalen Kontrast */
    color: #1a0f00;
    font-size: 1.1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;

    /* Weisser Lichtreflex am oberen Rand für 3D-Effekt */
    border: 2px solid #ffffff;
    border-radius: 50px;

    /* Schatten: Tiefe nach unten + Goldenes Leuchten nach aussen */
    box-shadow:
        0 6px 0 #5d4300,
        0 10px 25px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(255, 215, 0, 0.4);

    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

#join-game-modal .action-btn:hover {
    transform: translateY(-3px) scale(1.03);
    background: linear-gradient(180deg, #fff2a8 0%, #FFD700 50%, #DAA520 100%);
    box-shadow:
        0 9px 0 #5d4300,
        0 15px 30px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(255, 215, 0, 0.7);
    color: #000;
}

/* Druck-Effekt beim Klicken */
#join-game-modal .action-btn:active {
    transform: translateY(4px);
    box-shadow:
        0 2px 0 #5d4300,
        0 5px 10px rgba(0, 0, 0, 0.5);
}

/* Optional: Ein dezenter "Schimmer" der über den Button läuft */
#join-game-modal .action-btn::after {
    content: "";
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

#join-game-modal .action-btn:hover::after {
    left: 150%;
}

#lobby-code-input::placeholder {
    color: rgba(255, 215, 0, 0.3);
    letter-spacing: normal;
}

.back-arrow {
    position: absolute;
    top: 15px;
    left: 15px;
    cursor: pointer;
    z-index: 10005;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.back-arrow svg {
    width: 32px;
    height: 32px;
    stroke: #FFD700;
    fill: none;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.9));
}

/* Moderner Hover-Effekt: Leuchten statt nur Skalieren */
.back-arrow:hover svg {
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
    transform: translateX(-3px);
}

/* Effekt beim Drüberfahren (Hover) */
.back-arrow:hover {
    transform: translateX(-3px) scale(1.1);
    filter: brightness(1.2);
}

/* Effekt beim Anklicken */
.back-arrow:active {
    transform: scale(0.95);
}

/* --- STREAMER MODUS --- */

/* Der Unschärfe-Effekt */
.streamer-blur {
    filter: blur(10px);
    opacity: 0.5;
    user-select: none;
    pointer-events: none;
    transition: all 0.3s ease;
}

/* Wenn man mit der Maus drüber fährt, sieht man es kurz (optional, für den Streamer) */
.streamer-blur:hover {
    filter: blur(4px);       /* Etwas lesbarer beim Hovern */
}

/* Der Toggle-Button (Auge) */
.streamer-toggle-btn {
    background: transparent;
    border: 1px solid #FFD700;
    color: #FFD700;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s ease;
}

.streamer-toggle-btn.active {
    background: #FFD700;
    color: black;
    box-shadow: 0 0 10px #FFD700;
}

.streamer-toggle-btn:hover {
    transform: scale(1.1);
}

/* --- STREAMER MODUS (NEUES DESIGN: ROT/GRÜN + TEXT) --- */

/* Container für die vertikale Anordnung unter dem Namen */
.user-info-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
}

/* Wrapper für Label und Switch */
.streamer-switch-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.streamer-label {
    color: #FFD700;
    font-size: 0.7rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    opacity: 0.8;
}

/* Der Schalter selbst (Hintergrund) - Etwas breiter für Text */
.switch {
    position: relative;
    display: inline-block;
    width: 54px;
    height: 24px;
}

/* Checkbox verstecken */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Der Schieber (Slider) - Basis (AUS/ROT) */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #dc3545;
    transition: .4s;
    border-radius: 34px;
    border: 2px solid #dc3545;
}

/* Der Knopf im Schieber (::before) */
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 1px;
    bottom: 1px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* Der Text im Schieber (::after) - Standard ist OFF */
.slider:after {
    content: 'OFF';
    color: white;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    transition: .4s;
    opacity: 1;
}

/* --- Zustand: AN (GRÜN) --- */

/* Hintergrund wird Grün */
input:checked + .slider {
    background-color: #28a745;
    border-color: #28a745;
}

/* Knopf bewegt sich nach rechts */
input:checked + .slider:before {
    transform: translateX(30px);
}

/* Text ändert sich zu ON und wandert nach links */
input:checked + .slider:after {
    content: 'ON';
    right: auto;
    left: 8px;
}

/* --- Unschärfe-Effekte bleiben gleich --- */
.streamer-blur {
    filter: blur(8px);
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: not-allowed;
    user-select: none;
}

input.streamer-blur {
    /* 1. Absolut KEIN Filter auf dem Input selbst (das verhindert das Tippen) */
    filter: none;

    /* 2. Maskierung: Buchstaben werden zu Punkten (•) */
    -webkit-text-security: disc;

    /* 3. Schriftfarbe: Ein leuchtendes Gold */
    color: #FFD700;

    /* 4. Damit es 'unscharf' wirkt, ohne das Feld zu blockieren: */
    /* Wir geben den Punkten einen starken Schatten, das macht sie unleserlich */
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.9);

    /* 5. Ganz wichtig: Normaler Abstand, damit der Cursor weiß, wo er ist */
    letter-spacing: 2px;

    /* Feld bleibt voll bedienbar */
    pointer-events: auto;
    cursor: text;
}

/* 3. Der Platzhalter soll TROTZDEM lesbar sein */
input.streamer-blur::placeholder {
    -webkit-text-security: none;
    color: rgba(255, 215, 0, 0.4);
    text-shadow: none;
    letter-spacing: normal;
}

/* 4. Wenn man den Text markiert (optional, verhindert Lesen durch Markieren) */
input.streamer-blur::selection {
    background: rgba(255, 215, 0, 0.2);
    color: transparent;
}

/* --- FREUNDESLISTE --- */
.friends-toggle-btn {
    background: none; border: none; font-size: 1.4rem; cursor: pointer;
    margin-left: 10px; color: #FFD700; transition: transform 0.2s;
}
.friends-toggle-btn:hover { transform: scale(1.15); filter: drop-shadow(0 0 5px #FFD700); }

#friends-main-btn {
    background: rgba(0,0,0,0.85);
    border: 1px solid #FFD700;
    color: #FFD700;
    padding: 8px 15px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

#friends-main-btn:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

.friends-panel {
    background: rgba(0,0,0,0.85);
    border: 1px solid #FFD700;
    border-radius: 12px;
    padding: 15px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    width: 100%;
    display: none;
    flex-direction: column;
    box-sizing: border-box;
}

.friends-header {
    color: #FFD700; font-weight: bold; text-transform: uppercase;
    font-size: 0.85rem; letter-spacing: 1px; margin-bottom: 10px; text-align: center;
}

.friends-add-container { display: flex; gap: 5px; margin-bottom: 15px; }
.friends-add-container input {
    flex-grow: 1; padding: 6px 10px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255, 215, 0, 0.5);
    color: white; border-radius: 6px; font-size: 0.85rem; outline: none; transition: 0.3s;
}
.friends-add-container input:focus { border-color: #FFD700; box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }

.friend-add-btn {
    background: linear-gradient(135deg, #FFD700, #DAA520); color: black; border: none;
    border-radius: 6px; padding: 0 12px; cursor: pointer; display: flex; align-items: center;
    justify-content: center; transition: transform 0.2s;
}
.friend-add-btn:hover { transform: scale(1.1); box-shadow: 0 0 10px rgba(255, 215, 0, 0.6); }

.friends-list-container {
    display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; padding-right: 5px;
}

.friends-list-container::-webkit-scrollbar { width: 5px; }
.friends-list-container::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 5px; }
.friends-list-container::-webkit-scrollbar-thumb { background: #FFD700; border-radius: 5px; }

.friend-item {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 215, 0, 0.2);
    padding: 6px 10px; border-radius: 8px; transition: background 0.2s;
}
.friend-item:hover { background: rgba(255, 215, 0, 0.1); }

.friend-info { display: flex; align-items: center; gap: 10px; }
.friend-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid #FFD700; }
.friend-avatar-placeholder {
    width: 28px; height: 28px; border-radius: 50%; background: #FFD700; color: black;
    display: flex; align-items: center; justify-content: center; font-size: 0.8rem;
}

.friend-name { font-size: 0.9rem; font-weight: bold; color: white; }

/* --- STATUS SCHILDER (PILLEN) --- */
.status-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 3px;
    letter-spacing: 0.5px;
}

/* Status-Farben mit edlem Leuchteffekt und passendem Kontrast */
.status-offline {
    background: rgba(136, 136, 136, 0.2);
    color: #aaaaaa;
    border: 1px solid #888;
}

.status-online {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
    border: 1px solid #00ff88;
    box-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
}

.status-lobby {
    background: rgba(255, 215, 0, 0.2);
    color: #FFD700;
    border: 1px solid #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.status-game {
    background: rgba(255, 77, 77, 0.2);
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
    box-shadow: 0 0 8px rgba(255, 77, 77, 0.4);
}

/* --- FREUNDSCHAFTSANFRAGEN & LÖSCHEN --- */
.friend-requests-container {
    display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px;
}

.request-item {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255, 165, 0, 0.15); border: 1px dashed #FFD700;
    padding: 6px 10px; border-radius: 8px;
}

.request-actions { display: flex; gap: 5px; }

.req-btn {
    background: rgba(0,0,0,0.6); border: 1px solid; border-radius: 5px;
    width: 26px; height: 26px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; transition: 0.2s; font-weight: bold;
}
.req-accept { border-color: #00ff88; color: #00ff88; }
.req-accept:hover { background: #00ff88; color: #000; transform: scale(1.1); }
.req-decline { border-color: #ff4d4d; color: #ff4d4d; }
.req-decline:hover { background: #ff4d4d; color: #fff; transform: scale(1.1); }

.friend-actions { display: flex; align-items: center; gap: 10px; }

.remove-friend-btn {
    background: transparent;
    border: none;
    /* Ein etwas kräftigeres, leicht transparentes Rot im Normalzustand */
    color: rgba(255, 77, 77, 0.8);
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 0;
    margin-left: 5px;
}
.remove-friend-btn:hover {
    color: #ff0000;
    /* Wackelt leicht und wird größer */
    transform: scale(1.2) rotate(10deg);
    /* NEU: Das intensive rote Aufleuchten */
    filter: drop-shadow(0 0 10px #ff0000);
}

/* --- EINLADUNGS-FENSTER AUF DER STARTSEITE VERDUNKELN --- */
#receive-invite-modal .modal-content-wrapper {
    /* Setzt die Dunkelheit von 0.6 auf 0.85 hoch, das Bild schimmert nur noch dezent durch */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('/images/Modal.png') no-repeat center center;
    background-size: cover;

    /* Macht auch den Schatten um die Box etwas kräftiger, damit sie sich besser abhebt */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.95), inset 0 0 15px rgba(255, 215, 0, 0.1);
}

/* --- HINTERGRUND FÜR SPIELAUSWAHL & SPIELSUCHE ABDUNKELN --- */
#game-selection-modal .modal-content-wrapper,
#matchmaking-modal .modal-content-wrapper {
    /* Der linear-gradient legt einen schwarzen Filter mit 75% Deckkraft über das Bild */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('/images/Modal.png') no-repeat center center;
    background-size: cover;
}

/* ========================================= */
/* --- SPIEL SUCHEN: AUSWAHL MARKIERUNG --- */
/* ========================================= */

.game-card.selected-for-search {
    border: 3px solid #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    transform: scale(1.05);
}

/* ========================================= */
/* --- GAME SELECTION: SICHTBARKEIT --- */
/* ========================================= */

.game-cards-container {
    /* Standardmässig verstecken wir das Div */
    display: none;
}

.game-cards-container.show-game-selection {
    /* Wenn die Klasse da ist, zeigen wir es als GRID an! */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

#matchmaking-game-selection.show-game-selection {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

/* Die Karten selbst ein wenig schrumpfen, damit sie ins kleine Fenster passen */
#matchmaking-game-selection .game-card {
    cursor: pointer;
    transition: transform 0.2s;
}

#matchmaking-game-selection .game-card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 2px solid transparent;
}

/* ========================================= */
/* --- MATCHMAKING SPRACHAUSWAHL --- */
/* ========================================= */

.lang-match-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    /* Inaktiv: Ausgegraut und leicht abgedunkelt */
    filter: grayscale(80%) brightness(0.6);
}

.lang-match-btn:hover {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1);
    border-color: rgba(255, 215, 0, 0.5);
}

/* Aktiv: Volle Farbe, Goldrand und Leuchten */
.lang-match-btn.active {
    border: 2px solid #FFD700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

/* ========================================= */
/* --- RESPONSIVE DESIGN (MEDIA QUERIES) --- */
/* ========================================= */

/* 1. GLOBALE BILDER-REGEL */
img {
    max-width: 100%;
    height: auto;
}

/* 2. TABLETS & KLEINERE BILDSCHIRME (Bis maximal 768px Breite) */
@media (max-width: 768px) {

    /* Modals & Fenster: Abstände verkleinern, damit mehr Platz für Inhalt ist */
    .selection-card,
    .modal-content-wrapper {
        padding: 25px 15px;
        width: 95%;
    }

    /* Grosse Titel skalieren */
    .modal-title-gold {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    /* Startbildschirm Menü-Buttons kompakter machen */
    .menu-btn {
        padding: 14px 0;
        font-size: 1.1rem;
    }

    /* Musik-Player oben rechts anpassen, damit er keine anderen Knöpfe verdeckt */
    #music-wrapper {
        top: 10px;
        right: 10px;
        padding: 3px;
    }
    #music-control {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }

    /* Grids (Spielauswahl): Wenn zu wenig Platz ist, aus 2 Spalten mach 1 Spalte! */
    .game-cards-container.show-game-selection,
    #matchmaking-game-selection.show-game-selection {
        grid-template-columns: repeat(1, 1fr);
    }

    /* NEU: Banner für Tablets und kleine Bildschirme anpassen */
    .footer-bar {
        bottom: 15px;
        gap: 20px;
    }
    .image-btn img {
        height: 65px;
    }
}


/* 3. SMARTPHONES (Bis maximal 480px Breite - Für die kleinsten Displays) */
@media (max-width: 480px) {

    /* Titel nochmals einen Hauch kleiner */
    .modal-title-gold {
        font-size: 1.6rem;
    }

    /* Lobby-Code Eingabefeld flexibel machen (statt fester 200px) */
    #lobby-code-input {
        width: 85%;
        font-size: 1.2rem;
        letter-spacing: 3px;
    }

    /* Login/Register Tabs oben im Modal verkleinern, damit sie nebeneinander passen */
    .tab-btn {
        font-size: 0.85rem;
        padding: 8px 0;
    }

    /* Aktions-Buttons (Login, Suchen etc.) leicht anpassen */
    .action-btn,
    #join-game-modal .action-btn {
        padding: 12px 0;
        font-size: 1rem;
    }

    /* Freunde-Listen Panel kompakter gestalten */
    .friends-panel {
        padding: 10px;
    }
    .friends-add-container input {
        font-size: 0.8rem;
    }

    /* NEU: Banner für Smartphones anpassen */
    .footer-bar {
        bottom: 10px;
        gap: 20px;
    }
    .image-btn img {
        height: 50px;
    }
}

/* ========================================= */
/* --- HÖHEN-ANPASSUNGEN (LAPTOPS) --- */
/* ========================================= */
@media (max-height: 950px) {
    .footer-bar {
        bottom: 15px;
    }
    .image-btn img {
        height: 170px;
    }
}

/* Für normale Laptops */
@media (max-height: 850px) {
    .footer-bar {
        bottom: 15px;
    }
    .image-btn img {
        height: 170px;
    }
}

/* Für sehr flache Laptops */
@media (max-height: 700px) {
    .footer-bar {
        bottom: 5px;
    }
    .image-btn img {
        height: 90px;
    }
    .menu-wrapper {
        margin-top: 5vh;
    }
}

@media (max-height: 878px) {
    #game-selection-modal .modal-content-wrapper.selection-card {
        max-height: 80vh;
        margin-top: 4rem;
        overflow-y: auto;
    }
}

.modern-player-card {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 10001;
        display: none;
        flex-direction: column;
        width: max-content;
        min-width: 260px;
        background: rgba(10, 12, 18, 0.9);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-radius: 16px;
        border: 1px solid rgba(255, 215, 0, 0.3);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7);
        font-family: 'Segoe UI', sans-serif;
        overflow: visible;
    }

    /* Header */
    .mpc-header {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        gap: 12px;
        position: relative;
    }

    .mpc-avatar-wrapper {
        position: relative;
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        cursor: pointer;
    }

    .mpc-avatar-img, .mpc-avatar-svg {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        border: 2px solid #FFD700;
        object-fit: cover;
    }

    .mpc-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        flex-grow: 1;
    }

    .mpc-name {
        color: #fff;
        font-weight: 700;
        font-size: 1.1rem;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* Die edle Trennlinie zwischen Name und Sprache */
    .mpc-divider {
        width: 1px;
        height: 35px;
        background: rgba(255, 215, 0, 0.2);
        margin: 0 5px;
        flex-shrink: 0;
    }

    /* Integriertes Sprach-Abteil */
    .mpc-lang-selector {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        flex-shrink: 0;
    }

    .mpc-current-flag {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        border: 1.5px solid rgba(255, 215, 0, 0.5);
        cursor: pointer;
        background-size: cover;
        background-position: center;
        transition: transform 0.2s, border-color 0.2s;
    }

    .mpc-current-flag:hover {
        transform: scale(1.1);
        border-color: #FFD700;
    }

    /* Das Dropdown-Menü */
    .mpc-lang-dropdown {
        display: none;
        position: absolute;
        top: 40px;
        right: -5px;
        background: rgba(20, 25, 35, 0.95);
        border: 1px solid rgba(255, 215, 0, 0.4);
        border-radius: 12px;
        padding: 6px;
        flex-direction: column;
        gap: 6px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
        z-index: 10;
    }

    .mpc-lang-option {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        cursor: pointer;
        background-size: cover;
        opacity: 0.7;
        transition: opacity 0.2s, transform 0.2s;
    }

    .mpc-lang-option:hover {
        opacity: 1;
        transform: scale(1.1);
    }

    /* Footer-Buttons */
    .mpc-footer {
        display: flex;
        border-top: 1px solid rgba(255, 215, 0, 0.1);
        background: rgba(0, 0, 0, 0.2);
        border-radius: 0 0 16px 16px;
    }

    .mpc-btn {
        flex: 1;
        padding: 12px;
        border: none;
        background: transparent;
        color: #FFD700;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: background 0.2s;
    }

    .mpc-btn:hover {
        background: rgba(255, 215, 0, 0.1);
    }

    .mpc-btn-logout {
        color: #ff4d4d;
        border-left: 1px solid rgba(255, 215, 0, 0.1);
    }

    .mpc-btn-logout:hover {
        background: rgba(255, 77, 77, 0.1);
    }