/* Hero Sektion mit Video-Background */
.hero-header-video {
    position: relative;
    height: 60vh; /* 60% der Bildschirmhöhe */
    min-height: 400px;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
}

.video-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none; /* Verhindert Klicks auf das Video */
}

.video-background iframe {
    width: 100vw;
    height: 56.25vw; /* 16:9 Aspect Ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* Ratio umgeklappt */
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    background: radial-gradient(circle, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 80%);
    padding: 40px;
    width: 100%;
}

/* Countdown Styling */
.countdown {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-color);
    text-shadow: 0 0 15px rgba(255, 77, 77, 0.5);
    margin: 20px 0;
}

/* Main Grid: Content (links) & Sidebar (rechts) */
.main-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* News Karten im modernen Look */
.modern-news-card {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.modern-news-card:hover {
    transform: translateY(-5px);
}

/* Spenden Bereich */
.donation-flex {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: flex-start;
}

.donation-info {
    flex: 7; /* Nimmt 7 Teile des Platzes */
}

.donation-list {
    flex: 3; /* Nimmt 3 Teile des Platzes */
}

.donation-list ul {
    list-style: none;
    padding: 0;
}

.donation-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
}

/* Leaderboard Mini-Teaser (Sidebar) */
.mini-rank {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mini-rank:last-child { border: none; }

.league-label {
    display: block;
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.rank-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

/* --- History Strip & Game Logos (Deine korrekten Werte) --- */
.history-strip {
    margin-top: 60px;
    padding: 20px 20px 40px 20px; /* Deine Werte beibehalten */
    text-align: center;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.game-logos {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    gap: 15px; 
    margin-top: 20px;
    opacity: 0.6;
    filter: grayscale(1) brightness(0.8); /* Optimiert für besseren Kontrast */
    transition: all 0.5s ease-in-out;
    flex-wrap: nowrap; 
}

.game-logos:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1);
}

.game-logos img {
    height: 45px; 
    width: auto;
    flex-shrink: 1;
    flex-grow: 0;
    min-width: 50px; 
    object-fit: contain;
}

/* --- Community Statistik Sektion (Deine korrekten Werte) --- */
.community-stats-section {
    padding: 0 20px;
    max-width: 1400px;
    margin-top: 60px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 40px 60px; 
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    min-height: 180px;
    backdrop-filter: blur(5px); /* Verstärkt den Glas-Effekt dezent */
}

.stat-item {
    text-align: center;
    flex: 1; 
    min-width: 180px; 
    display: none; 
    opacity: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-item.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.stat-item.fade-out {
    opacity: 0 !important;
    transform: translateY(-20px) !important;
    transition: all 0.4s ease-in !important;
}

.stat-item:hover {
    transform: translateY(-8px); /* Etwas ausgeprägter für besseres Feedback */
}

.stat-item:hover .stat-icon {
    filter: drop-shadow(0 0 15px var(--accent-color)); /* Glow-Effekt bei Hover */
    transition: filter 0.3s ease;
}

.stat-icon {
    font-size: 2.2rem; 
    color: var(--accent-color);
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(230, 0, 0, 0.4));
    transition: filter 0.3s ease;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    display: block;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    margin-top: 5px;
    white-space: nowrap; 
}

/* --- Spezial-Effekte & Fixes --- */
.pulse-red {
    color: #ff0000;
    animation: stat-pulse 2s infinite;
}

@keyframes stat-pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); } /* Leicht korrigiert für smootheres Pulsieren */
    100% { opacity: 1; transform: scale(1); }
}

/* --- Responsive Anpassungen --- */
@media (max-width: 992px) {
    .main-content-grid { grid-template-columns: 1fr; }
    .hero-header-video { height: 40vh; }
    .countdown { font-size: 1.8rem; }
    .community-stats-section { max-width: 100%; }
}

@media (max-width: 1024px) { /* Auf 1024px erhöht, damit es zum Rest passt */
    .game-logos {
        display: flex !important;
        flex-wrap: nowrap !important; /* WICHTIG: Kein Umbruch für den Slider! */
        justify-content: flex-start !important;
        gap: 0 !important; /* Gap entfernen, wir regeln das über Padding/Margin im Slider */
        filter: none !important; /* Dein Farb-Fix */
        margin-bottom: 15px;
    }
    
    .game-logos img {
        height: auto !important;
        max-height: 35px !important;
        /* Hier stellen wir sicher, dass die Breite für 3 Logos passt */
        flex: 0 0 33.333% !important;
        width: 33.333% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
    }

    .stats-container {
        /* Wir nehmen das Grid hier raus, damit dein Desktop-JS (display: flex/none) 
           wieder die Kontrolle übernehmen kann, ohne dass das Grid dazwischenfunkt */
        display: flex !important; 
        flex-wrap: wrap !important;
        padding: 20px 10px !important;
        gap: 0 !important;
    }
    
    .stat-item {
        min-width: auto !important;
        /* Sicherstellen, dass 2 nebeneinander passen */
        flex: 0 0 50% !important;
        width: 50% !important;
    }

    .community-stats-section {
        margin-top: 30px !important;
    }
}

/* Hilfsklassen für Abstände */
.staff-list, .glass-card, .news-list {
    margin-top: 10px;
}

.forum-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forum-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.forum-item:last-child {
    border-bottom: none;
}

.thread-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-color, #fff);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.thread-link:hover {
    color: var(--accent-color);
}

.thread-meta {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 26px; /* Bündig unter dem Titel, nach dem Icon */
    margin-top: 2px;
}

.thread-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}