:root {
    /* Light Mode Variablen */
    --light-bg: #f5f5f5;
    --light-text: #333;
    --light-nav: #ffffff;
    --light-nav-hover: #f0f0f0;
    --light-card-bg: #ffffff;
    --light-border: #e0e0e0;
    --light-input-bg: #ffffff;
    --light-input-border: #ddd;
  
    --button-bg-light: #ffffff;
    --button-text-light: #333333;
    --button-border-light: #dddddd;
    --button-hover-bg-light: #f5f5f5;
    --button-active-bg-light: #e0e0e0;
  
    /* Dark Mode Variablen */
    --dark-bg: #1a1a1a;
    --dark-text: #ffffff;
    --dark-nav: #2d2d2d;
    --dark-nav-hover: #3d3d3d;
    --dark-card-bg: #2d2d2d;
    --dark-border: #404040;
    --dark-input-bg: #333333;
    --dark-input-border: #404040;
  
    --button-bg-dark: #2d2d2d;
    --button-text-dark: #ffffff;
    --button-border-dark: #404040;
    --button-hover-bg-dark: #3d3d3d;
    --button-active-bg-dark: #4d4d4d;
  
    /* Accent Colors */
    --accent-primary: #ffa502;
    --accent-secondary: #ff6b6b;
    --button-primary: #3498db;
    --button-primary-hover: #2980b9;

    /* Class Colors */
    --Death-Knight: #C41E3A;
    --Demon-Hunter: #A330C9;
    --Druid: #FF7C0A;
    --Hunter: #AAD372;
    --Mage: #3FC7EB;
    --Monk: #00FF96;
    --Paladin: #F48CBA;
    --Priest: #FFFFFF;
    --Rogue: #FFF468;
    --Shaman: #0070DD;
    --Warlock: #8788EE;
    --Warrior: #C69B6D;
    --Evoker: #33937F;

  }

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #36393f;
}

nav {
    background-color: #2c2f33;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Mittlere Links Container */
.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-center a {
    position: relative;
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

/* Hover Effekt für die Nav-Center Links */
.nav-center a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #7289da;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-center a:hover::after {
    width: 100%;
}

.nav-center a:hover {
    color: #7289da;
    background-color: rgba(114, 137, 218, 0.1);
}

/* Login Button Styling */
.login-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #7289da;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: #ffffff;
}

.login-btn:hover {
    background-color: #5865f2;
    transform: translateY(-2px);
}

/* Discord Logo im nicht eingeloggten Zustand */
.login-btn img[src*="Discord-Logo-Color.svg"] {
    height: 24px;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Avatar im eingeloggten Zustand */
.login-btn img[src*="cdn.discordapp.com"] {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    object-fit: cover;
}

main {
    padding: 2rem;
    color: #ffffff;
}

/* Side Panel */
.side-panel {
    position: fixed;
    top: 0;
    right: -33.33%;
    width: 33.33%;
    height: 100vh;
    background-color: var(--bg-primary);
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
}

.side-panel.active {
    right: 0;
}

.side-panel-content {
    padding: 20px;
    height: 100%;
    overflow-y: auto;
}


/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #ffa502;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%; /* Angepasst an Botsettings Style */
    border: none;
    cursor: pointer;
    display: none;
    font-size: 20px;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Hinzugefügt für Botsettings Look */
}

.scroll-to-top:hover {
    background: #5865f2;
    transform: translateY(-2px); /* Angepasst an Botsettings Hover Effect */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Verstärkter Schatten im Hover */
}

.scroll-to-top.visible {
    display: flex;          /* Geändert zu flex */
    align-items: center;    /* Zentriert Pfeil vertikal */
    justify-content: center; /* Zentriert Pfeil horizontal */
}
/* Scroll to Top Button Ende */

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    z-index: 1000;
  }
  
  .toast.show {
    opacity: 1;
  }



.Priester, .Priest {
    color: var(--Priest) !important;
}

.Schurke, .Rogue {
    color: var(--Rogue) !important;
}

.Krieger, .Warrior {
    color: var(--Warrior) !important;
}

.Magier, .Mage {
    color: var(--Mage) !important;
}

.Druide, .Druid {
    color: var(--Druid) !important;
}

.Schamane, .Shaman {
    color: var(--Shaman) !important;
}

.Paladin, .Paladin {
    color: var(--Paladin) !important;
}

.Mönch, .Monk {
    color: var(--Monk) !important;
}

.Todesritter, .Death-Knight, .Death.Knight {
    color: var(--Death-Knight) !important;
}

.Jäger, .Hunter {
    color: var(--Hunter) !important;
}

.Hexenmeister, .Warlock {
    color: var(--Warlock) !important;
}

.Dämonenjäger, .Demon-Hunter, .Demon.Hunter {
    color: var(--Demon-Hunter) !important;
}

.Rufer, .Evoker {
    color: var(--Evoker) !important;
}  

.astounding {
    /* 99% */
    color: rgb(226, 104, 168);
  }

  .legendary {
    /* 95% - 98% */
    color: rgb(255, 128, 0);
  }

  .epic {
    /* 75% - 94% */
    color: rgb(163, 53, 238)
  }

  .rare {
    /* 50% - 74% */
    color: rgb(0, 112, 255)
  }

  .uncommon {
    /* 25% - 49% */
    color: rgb(30, 255, 0)
  }

  .commmon {
    /* 0% - 24% */
    color: rgb(102, 102, 102)
  }

  .dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    color: #e0e0e0;
}

/* Header-Bereich */
.dashboard-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.welcome-section h1 {
    margin: 0;
    font-size: 2.2rem;
    background: linear-gradient(45deg, #6a11cb 0%, #2575fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: #aaa;
    font-size: 1.1rem;
    margin-top: 0;
}

.stats-summary {
    display: flex;
    gap: 1.5rem;
}

.stat-card {
    background: linear-gradient(145deg, #222, #2a2a2a);
    border-radius: 8px;
    padding: 1rem;
    min-width: 100px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #fff;
}

.stat-label {
    color: #aaa;
    font-size: 0.9rem;
}

/* Layout für Spalten */
.dashboard-columns {
    display: grid;
    grid-template-columns: 60% 38%;
    gap: 2%;
}

/* Changelog-Bereich */
.changelog-section {
    background: #222;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.changelog-section h2 {
    display: flex;
    align-items: center;
    margin-top: 0;
    border-bottom: 1px solid #444;
    padding-bottom: 0.8rem;
    color: #fff;
}

.version {
    font-size: 1rem;
    background: #333;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-left: 0.8rem;
    font-weight: normal;
    color: #aaa;
}

.changelog-entry {
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px dashed #333;
}

.changelog-entry:last-child {
    border-bottom: none;
}

.changelog-date {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.changelog-entry h3 {
    margin: 0.3rem 0 0.8rem 0;
    color: #4a9eff;
}

.changelog-entry ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #ccc;
}

.changelog-entry li {
    margin-bottom: 0.5rem;
}

.changelog-entry strong {
    display: inline-block;
    color: #fff;
    margin-right: 0.3rem;
}

.changelog-more {
    display: inline-block;
    margin-top: 1rem;
    color: #4a9eff;
    text-decoration: none;
    font-size: 0.9rem;
}

.changelog-more:hover {
    text-decoration: underline;
}

/* Sidebar */
.dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dashboard-sidebar section {
    background: #222;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dashboard-sidebar h3 {
    margin-top: 0;
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
}

/* Quick-Action-Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem 0.5rem;
    background: #2a2a2a;
    border-radius: 8px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s;
}

.action-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.action-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    margin-bottom: 0.5rem;
}

/* Events-Liste */
.event-item {
    display: flex;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid #333;
}

.event-item:last-child {
    border-bottom: none;
}

.event-date {
    background: #333;
    color: #fff;
    padding: 0.5rem;
    border-radius: 6px;
    min-width: 70px;
    text-align: center;
    font-weight: bold;
}

.event-details h4 {
    margin: 0 0 0.3rem 0;
    color: #fff;
}

.event-details p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

/* Runs-Liste */
.run-list {
    max-height: 300px;
    overflow-y: auto;
}

.loading-placeholder {
    color: #777;
    text-align: center;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 900px) {
    .dashboard-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .stats-summary {
        width: 100%;
        justify-content: space-between;
    }
    
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: #ffffff;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Zusätzliche Klasse für den aktiven Zustand des Icons */
.mobile-menu-toggle.active {
    position: fixed;
    left: 245px; /* Angepasst an die Breite des Menüs minus Padding */
    top: 20px; /* Abstand von oben */
}

/* Icon-Animation für Menü-Toggle */
.mobile-menu-toggle .fa-bars {
    transition: transform 0.3s ease;
}

.mobile-menu-toggle.active .fa-bars {
    transform: rotate(90deg);
}

/* Media Queries für Responsive Design */
@media (max-width: 768px) {
    /* Navigation für mobile Geräte */
    .mobile-menu-toggle {
        display: block;
        margin-right: auto;
        padding: 0 15px;
    }
    
    .nav-center {
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        width: 80%;
        max-width: 300px;
        background-color: #222;
        flex-direction: column;
        align-items: flex-start;
        padding: 70px 20px 20px;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        transition: left 0.3s ease;
        z-index: 99;
        overflow-y: auto;
    }
    
    .nav-center.active {
        left: 0;
    }
    
    .nav-center a {
        width: 100%;
        padding: 15px 0;
        border-bottom: 1px solid #333;
    }
    
    .nav-center a::after {
        display: none;
    }
    
    /* Login-Button für mobile Geräte */
    .login-btn {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
    
    /* Dashboard-Layout für mobile Geräte */
    .dashboard-container {
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .welcome-section h1 {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .stats-summary {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px; /* Für Scrollbar-Platz */
    }
    
    .stat-card {
        min-width: 90px;
        padding: 0.8rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    /* Dashboard-Spalten für mobile Geräte */
    .dashboard-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Changelog-Bereich für mobile Geräte */
    .changelog-section {
        padding: 1rem;
    }
    
    .changelog-section h2 {
        font-size: 1.3rem;
    }
    
    .version {
        font-size: 0.8rem;
    }
    
    /* Action-Buttons für mobile Geräte */
    .action-buttons {
        grid-template-columns: 1fr;
    }
    
    .action-btn {
        padding: 1.2rem 0.5rem; /* Größere Touch-Ziele */
        flex-direction: row;
        justify-content: flex-start;
    }
    
    .action-icon {
        margin-right: 10px;
        margin-bottom: 0;
    }
    
    /* Event- und Run-Listen für mobile Geräte */
    .event-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .event-date {
        align-self: flex-start;
    }

    /* Mehr Platz für den ersten Link */
    .nav-center a:first-child {
        margin-top: 20px;
    }
    
    /* Beim aktiven Menü Icon anpassen */
    .mobile-menu-toggle.active {
        color: #ffffff;
    }
    
    /* Overlay für den Rest des Bildschirms, wenn das Menü aktiv ist */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 98;
    }
    
    .menu-overlay.active {
        display: block;
    }
}

/* Größere Telefone und kleine Tablets */
@media (min-width: 480px) and (max-width: 768px) {
    .action-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Touch-Optimierung für alle Buttons und interaktiven Elemente */
@media (pointer: coarse) {
    .action-btn, 
    .login-btn,
    .nav-center a,
    .scroll-to-top,
    button,
    input[type="submit"] {
        min-height: 44px; /* Empfohlene Mindesthöhe für Touch-Targets */
    }
    
    .action-btn {
        padding: 12px;
    }
}

/* Anpassungen für Screens mit höherer Pixeldichte */
@media (-webkit-min-device-pixel-ratio: 2), 
       (min-resolution: 192dpi) {
    html {
        font-size: 105%; /* Leicht vergrößerte Basisschriftgröße */
    }
}