:root {
    --bg-dark: #1a1c23; /* Dunkelgrauer Hintergrund */
    --bg-card: #242832; /* Etwas helleres Grau für Header/Sidebar */
    --border-color: #343a46; /* Dezente Trennlinien */
    --accent-blue: #009ae4; /* Battle.net Blau */
    --accent-gold: #c79c6e; /* WoW Gold-Beige */
    --text-main: #e0e0e0;
    --sidebar-width: 260px;
    --header-height: 70px;
}
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
}

/* Layout Container */
.app-container {
    display: flex;
    min-height: 100vh;
}

h1:focus {
    outline: none; /* Entfernt den Kasten */
    box-shadow: none; /* Sicherstellen, dass auch kein Schatten da ist */
}

/* Content Area */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.main-header {
    height: var(--header-height) !important;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    width: 100%;
    position: relative;
}


/* Dropdown Logik */
.header-container, .user-menu {
/*    position: relative;*/
    display: inline-block;
    height:100%;
    display: flex;
    align-items: center;
}
    .user-menu{
        padding: 0 21px;
    }
.user-name {
    font-weight: 500;
    letter-spacing: 1px;
}

    .dropdown-content {
        display: none;
        position: absolute;
        right: 0;
        background-color: var(--bg-card);
        min-width: 200px;
        box-shadow: 0px 8px 16px rgba(0,0,0,0.5);
        z-index: 100;
        border: 1px solid #2a2e35;
    }

.user-menu:hover {
    /*    display: block;*/
    background-color: #343a46;
}

.dropdown-item {
    padding: 12px 16px;
    cursor: pointer;
    color: var(--text-main);
}

.dropdown-item:hover {
    background-color: #1f2530;
    color: var(--accent-gold);
}

/* Basis-Design für den Button */
.btn-wow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.04); /* Dezent hellere Fläche */
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Sehr feiner grauer Rand */
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

/* Das Icon-Design */
.icon-reload {
    width: 14px;
    height: 14px;
    transition: transform 0.4s ease;
}

/* Hover-Effekt: Etwas mehr Licht und Gold-Akzent */
.btn-wow:hover {
    background-color: rgba(255, 255, 255, 0.07);
    border-color: rgba(240, 212, 142, 0.3); /* Hier kommt das Gold dezent rein */
    color: #f0d48e; /* Text wird gold */
    transform: translateY(-1px);
}

    /* Das Icon dreht sich beim Hover */
    .btn-wow:hover .icon-reload {
        transform: rotate(180deg);
    }

/* Klick-Feedback */
.btn-wow:active {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.02);
}




/* =========================================
   SIDEBAR & NAVIGATION CSS (BEREINIGT)
   ========================================= */

/* --- BASIS LAYOUT --- */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 !important; /* Wichtig für bündige Übergänge */
}

/* --- LOGO / BRANDING --- */
.brand-area {
    height: var(--header-height) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
    padding: 0 1rem;
}

/* --- NAV GRUPPEN & HAUPTLINKS --- */
.nav-group {
    display: block;
    margin: 0;
    padding: 0;
}

.nav-main-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
    background-color: transparent;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

    .nav-main-link:hover {
        color: var(--accent-gold);
        background-color: rgba(255, 255, 255, 0.05);
    }

/* --- DER AUFGEKLAPPTE WRAPPER --- */
.sub-menu-wrapper {
    background-color: #16181d; /* Kontrast zum Sidebar-Grau */
    border-left: 3px solid var(--accent-gold);
    margin: 0;
    padding: 0;
    /* Schatten nach Innen für Tiefeneffekt */
    box-shadow: inset 0 10px 20px -10px rgba(0,0,0,0.5), inset 0 -10px 20px -10px rgba(0,0,0,0.5);
}

/* Der Titel im Wrapper (Klickbar zum Schließen) */
.nav-sub-title.clickable {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px; /* Synchron zur nav-main-link Höhe */
    color: var(--accent-gold);
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1.5px;
    font-size: 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(255, 255, 255, 0.03);
    transition: background 0.2s;
}

    .nav-sub-title.clickable:hover {
        background-color: rgba(255, 255, 255, 0.08);
    }

/* --- UNTERPUNKTE IM WRAPPER --- */
.nav-sub-link {
    display: block;
    padding: 14px 0;
    text-align: center;
    color: #909090;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.nav-sub-link:hover {
    color: white;
    background-color: rgba(199, 156, 110, 0.05);
}

/* Markierung für den aktiven Unterpunkt (Blazor NavLink Support) */
.nav-sub-link.active {
    color: white !important;
    font-weight: bold;
    background-color: rgba(255, 255, 255, 0.02);
}

.disabled-link {
    cursor: not-allowed !important;
    opacity: 0.6;
    filter: grayscale(1);
    background-color: rgba(0,0,0,0.1);
}
.disabled-link::after {
    content: "🔒 Bitte erst einloggen"; /* Dein Hinweistext */
    position: absolute;
    left: 50%;
    top: 50%; /* Erscheint kurz unter dem Link */
    transform: translateX(-50%);
    background-color: #343a46; /* Passend zu deinem dunklen Grau */
    color: var(--accent-gold);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    z-index: 100;
    pointer-events: none; /* Verhindert, dass der Tooltip den Klick blockiert */
}


.disabled-link:hover {
    color: var(--text-main) !important; /* Kein Gold-Effekt für Gäste */
    background-color: transparent !important;
}
/* Hover-Effekt: Hinweis einblenden */
.disabled-link:hover::after {
    opacity: 1;
    visibility: visible;
    top: 70%; /* Sanftes Hochgleiten */
}



/* =========================================
   CHARACTER CARD
   ========================================= */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.char-card {
    position: relative;
    height: 220px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: local;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.char-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Hier definierst du den Verlauf separat */
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.8) 100%);
    z-index: 1;
}
    .char-card:hover {
        transform: translateY(-2px);
        border-color: var(--accent-gold);
    }
.char-content {
    position: relative;
    z-index: 2; /* Liegt über dem Overlay */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 15px;
}
/* Badges oben */
.char-header {
    display: flex;
    justify-content: space-between;
}

.badge-mplus, .badge-ilvl {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: bold;
    border: 1px solid rgba(240, 212, 142, 0.3);
}

.badge-mplus {
    color: #a335ee;
}
/* Episches Violett für M+ */
.badge-ilvl {
    color: var(--accent-gold);
}

/* Footer mit Namen und Specs */
.char-footer {
    color: white;
}

.char-name {
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.char-guild {
    font-size: 0.85rem;
    color: #4caf50; /* Gilden-Grün */
    margin: 0 0 8px 0;
}

.char-specs {
    font-size: 0.8rem;
    opacity: 0.9;
    display: flex;
    flex-direction: column;
}

.sub-text {
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}