/* Grundlegende Resets und Dunkles Theme */
:root {
    --bg-color: #2c2f33; /* Dunkelgrau */
    --text-color: #ffffff; /* Weiß */
    --primary-color: #7289da; /* Discord-Blau */
    --secondary-color: #4f545c; /* Dunkleres Grau */
    --success-color: #43b581; /* Grün für Online/Erfolg */
    --error-color: #f04747; /* Rot für Offline/Fehler */
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------------- */
/* --- HEADER / NAVIGATION --- */
/* ------------------------------------------- */
header {
    background-color: #23272a; 
    padding: 15px 0;
    border-bottom: 2px solid var(--secondary-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.8em;
    font-weight: 700;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.nav-button {
    background-color: var(--success-color);
    padding: 8px 15px !important;
    border-radius: 5px;
    font-weight: 600;
}

.nav-button:hover {
    background-color: #389569; 
    color: var(--text-color) !important;
}

/* ------------------------------------------- */
/* --- HAUPTINHALT (MAIN) --- */
/* ------------------------------------------- */
main {
    padding: 40px 0;
    min-height: calc(100vh - 150px); 
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--secondary-color);
    border-radius: 10px;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.hero-section p {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #c9c9c9;
}

/* Call-to-Action Buttons */
.cta-buttons a {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    margin: 0 10px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.button.primary {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.button.primary:hover {
    background-color: #5b6eae; 
}

.button.secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.button.secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* Features */
.features h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.feature-item {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.feature-item h3 {
    color: var(--success-color);
    margin-bottom: 10px;
}

/* ------------------------------------------- */
/* --- FOOTER --- */
/* ------------------------------------------- */
footer {
    background-color: #23272a;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--secondary-color);
    font-size: 0.9em;
    color: #99aab5;
}

/* ------------------------------------------- */
/* --- STATUS SEITE SPEZIFISCHES CSS --- */
/* ------------------------------------------- */

.status-page h2, .status-page h3 {
    color: var(--primary-color);
}

.status-info {
    text-align: center;
    margin-bottom: 20px;
    color: #b9bbbe; 
}

/* --- LIVE STATUS ANZEIGE (NEU) --- */
.live-status {
    font-size: 0.9em;
    margin-left: 20px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.status-online {
    color: var(--success-color);
    /* background-color: rgba(67, 181, 129, 0.1); */
}

.status-offline {
    color: var(--error-color);
    /* background-color: rgba(240, 71, 71, 0.1); */
}

/* --- BOT NAME & BESCHREIBUNG --- */
.bot-description {
    font-size: 0.8em;
    font-weight: normal;
    color: #99aab5;
    margin-left: 10px;
}

/* ---------------------------------------------------------------------- */
/* --- ANGEPASSTE WERTE FÜR 12H (144 BALKEN) MIT LÜCKEN --- */
/* ---------------------------------------------------------------------- */
.status-bar-container {
    /* 1. WICHTIG: Die statische Breite MUSS auf Auto/100% gesetzt werden, 
       damit der Media Query die Breite korrekt skaliert. */
    width: auto; /* KORREKTUR */
    overflow-x: auto; 
    
    display: flex; 
    gap: 3px; /* Lücke zwischen den Balken */
    height: 60px; /* 3X HÖHER */
    margin: 20px 0;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    
    /* Standard-Layout für große Bildschirme (die die volle Breite anzeigen können) */
    min-width: 1149px; /* NEU: Definiert die Mindestbreite, damit der Browser scrollt,
                          wenn der Bildschirm schmaler ist als 1149px (vor dem Media Query) */
}

/* --- EINZELNER BALKEN (5-Minuten-Intervall) --- */
.status-bar {
    flex-shrink: 0; 
    flex-grow: 0; 
    width: 5px; /* Breite der Einzelbalken */
    height: 100%; 
    transition: background-color 0.3s ease;
    cursor: help; 
    border-radius: 1px; 
}

/* Farben der Balken */
.status-bar.online {
    background-color: var(--success-color); /* Grün */
}

.status-bar.offline {
    background-color: var(--error-color); /* Rot */
}

.status-bar.hour-start {
    /* Keine spezielle Änderung nötig, der Gap von 3px reicht */
}


/* Legende */
.status-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.legend-item {
    padding-left: 15px;
    position: relative;
}

.legend-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-item.online::before {
    background-color: var(--success-color);
}

.legend-item.offline::before {
    background-color: var(--error-color);
}

/* Zeitmarkierungen */
.time-labels {
    /* WICHTIG: Wir entfernen die statische Breite und definieren sie neu */
    width: auto; /* KORREKTUR */
    display: flex;
    justify-content: space-between;
    font-size: 0.9em;
    color: #99aab5;
    margin-top: 5px; 
    
    /* NEU: Definiert die Mindestbreite, damit die Beschriftungen korrekt ausgerichtet sind */
    min-width: 1149px; 
}

.note {
    background-color: #36393f;
    padding: 10px;
    border-left: 5px solid var(--primary-color);
    margin-top: 20px;
    font-style: italic;
    color: #ddd;
}

/* ------------------------------------------- */
/* --- Responsivität für kleinere Bildschirme --- */
/* ------------------------------------------- */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }

    nav ul {
        margin-top: 15px;
        justify-content: center;
    }

    nav ul li {
        margin: 0 10px;
    }
    
    .hero-section h1 {
        font-size: 2.5em;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons a {
        margin: 0;
    }
    
    /* Der alte, nicht benötigte Block wird entfernt, um Konflikte zu vermeiden */
    /*
    .status-bar-container {
        width: 100%; 
    }
    */
}


/* ------------------------------------------- */
/* --- Responsiveness-Fix für Statusbalken (Dynamisch) --- */
/* ------------------------------------------- */

/* Setze den Breakpoint höher (z.B. 1000px), da die 1149px Breite viel Platz benötigt */
@media (max-width: 1000px) {
    /* WICHTIG: Die Skalierung muss auf beide Elemente angewendet werden */
    
    .status-bar-container, 
    .time-labels {
        /* Setze die ursprüngliche Mindestbreite auf Auto zurück */
        min-width: auto; /* NEU */
        
        /* Skaliert den Container auf 65% seiner Originalgröße */
        transform-origin: left top; 
        transform: scale(0.65); 
        
        /* Korrigiert die Breite, damit der Container den skalierten Inhalt auf 100% Breite darstellt.
           (100 / 0.65 ≈ 153.8) */
        width: 153.8%; 
        
        /* Korrigiert den vertikalen Abstand nur für den Balken-Container */
        margin-bottom: -15px; 
        
        /* Verhindert horizontales Scrollen im Viewport, da skaliert wurde */
        overflow-x: hidden !important; 
    }
    
    /* Überschreibe die margin-bottom Korrektur für time-labels */
    .time-labels {
        margin-bottom: 0;
    }
}
/* ------------------------------------------- */
/* --- ENTWICKLUNGS-BANNER (NEU) --- */
/* ------------------------------------------- */
.development-banner-wrapper {
    background-color: var(--error-color); /* Helle rote Farbe für Aufmerksamkeit */
    color: var(--text-color);
    padding: 15px 0;
    margin-bottom: 30px; /* Abstand zum Hero-Bereich */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.development-banner {
    text-align: center;
    font-size: 1.1em;
    font-weight: 700;
}

.development-banner .warning-text {
    margin: 0;
    line-height: 1.4;
}

/* Responsivität für kleinere Bildschirme */
@media (max-width: 600px) {
    .development-banner {
        font-size: 1em;
    }
}
/* ------------------------------------------- */
/* --- HILFE / COMMANDS SEITE STYLES --- */
/* ------------------------------------------- */

/* Farben für Bot-Namen (konsistent mit dem Discord-Theme) */
.mod-color {
    color: var(--primary-color); /* Discord-Blau */
}

.game-color {
    color: var(--success-color); /* Grün */
}

.intro-text {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #b9bbbe;
    text-align: center;
}

.bot-name-heading {
    font-size: 2em;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-top: 50px;
    margin-bottom: 20px;
}

.bot-description-text {
    font-style: italic;
    color: #99aab5;
    margin-bottom: 30px;
}

/* Command Grid Layout */
.command-list-grid {
    display: grid;
    /* 2 Spalten auf großen Bildschirmen */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 25px;
}

.command-item {
    background-color: var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.command-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.command-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.command-name {
    font-size: 1.1em;
    font-weight: 700;
    padding: 3px 8px;
    background-color: #36393f; /* Dunklerer Hintergrund für Code */
    border-radius: 4px;
    color: var(--text-color);
}

.command-usage {
    font-size: 0.85em;
    color: var(--primary-color);
    font-style: italic;
}

.command-description {
    color: #c9c9c9;
    font-size: 0.95em;
}

/* Anpassung für kleine Bildschirme */
@media (max-width: 768px) {
    .command-list-grid {
        grid-template-columns: 1fr; /* Eine Spalte auf Mobile */
    }
    
    .command-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .command-usage {
        margin-top: 5px;
        margin-left: 8px; /* Einrücken des Usage-Textes */
    }
}
/* --- BOT DETAILSEITE STYLES --- */

/* Farben (falls nicht schon definiert) */
:root {
    --primary-color: #5865f2; /* Discord-Blau */
    --secondary-color: #2f3136; /* Dunkles Discord-Grau */
    --success-color: #57f287; /* Discord-Grün (für Game Bot) */
    --error-color: #f04747; /* Discord-Rot (für Banner) */
    --text-color: #ffffff;
}

/* Spezifische Farben für die Bots */
.mod-color {
    color: var(--primary-color) !important;
}
.game-color {
    color: var(--success-color) !important;
}

/* Hintergrundfarben für Server-Stats (optional, aber hübsch) */
.mod-color-bg {
    background-color: rgba(88, 101, 242, 0.1) !important;
}
.game-color-bg {
    background-color: rgba(87, 242, 135, 0.1) !important;
}

.bot-header {
    text-align: center;
    padding: 40px 0;
}

.bot-header h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

.bot-header .description-large {
    font-size: 1.3em;
    color: #b9bbbe;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.server-stats {
    display: inline-block;
    margin: 20px 0 40px 0;
    padding: 10px 30px;
    border-radius: 8px;
    /* Der Hintergrund wird über die bot-spezifischen Klassen gesetzt (mod-color-bg/game-color-bg) */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.server-stats .stat-number {
    font-size: 2.5em;
    font-weight: 800;
    /* Die Farbe wird über die bot-spezifischen Klassen gesetzt (mod-color/game-color) */
    display: block;
    line-height: 1;
}

.server-stats .stat-label {
    font-size: 0.8em;
    text-transform: uppercase;
    color: #99aab5;
}

.cta-large {
    font-size: 1.2em;
    padding: 15px 40px;
    margin-bottom: 15px;
    display: inline-block;
}

.permissions-hint {
    color: #99aab5;
    font-size: 0.9em;
    font-style: italic;
}

/* Detail-Features Grid */
.bot-features-detail h2 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 30px;
    font-size: 2em;
    color: var(--text-color);
}

.feature-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.detail-feature-item {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
}

.detail-feature-item .icon {
    font-size: 1.8em;
    margin-right: 15px;
}

.detail-feature-item p {
    margin: 0;
    color: #c9c9c9;
    font-size: 1em;
}

.detail-feature-item strong {
    font-weight: 600;
    color: var(--text-color);
}

.command-link-section {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
    border-top: 1px solid #36393f;
}

.command-link-section a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

/* Responsivität */
@media (max-width: 600px) {
    .bot-header h1 {
        font-size: 2.5em;
    }
    .cta-large {
        width: 100%;
        display: block;
    }
}