/* Reset & Basis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body.bg-image-body {
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(rgba(10, 10, 25, 0.88), rgba(10, 10, 25, 0.88)), 
                url('../Bilder & Videos/Hauptseite.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Navbar Fixes */
.navbar {
    background-color: #12131c;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px; /* Mehr Abstand zwischen Burger-Menü und Logo */
}

.menu-btn {
    width: 28px;
    height: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    z-index: 1001;
}

.menu-btn .bar {
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-btn.open .bar:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.open .bar:nth-child(2) { opacity: 0; }
.menu-btn.open .bar:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.logo { 
    height: 36px; 
    width: auto; 
    cursor: pointer; 
}

.nav-center { 
    flex-grow: 1; 
    max-width: 450px; 
    margin: 0 20px; 
}

.search-input { 
    width: 100%; 
    padding: 9px 18px; 
    border-radius: 20px; 
    border: 1px solid rgba(99, 102, 241, 0.3); 
    outline: none; 
    background-color: #1a1b29; 
    color: white;
    font-size: 0.9rem;
}

.search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-link, .profile-icon { display: flex; align-items: center; cursor: pointer; }

/* Sidebar */
.sidebar {
    position: fixed;
    top: 60px;
    left: -250px;
    width: 250px;
    height: calc(100vh - 60px);
    background-color: #12131c;
    transition: left 0.3s ease;
    z-index: 999;
    border-right: 1px solid rgba(99, 102, 241, 0.2);
}
.sidebar.active { left: 0; }
.sidebar ul { list-style: none; padding: 20px; }
.sidebar ul li { margin-bottom: 15px; }
.sidebar ul li a { color: white; text-decoration: none; font-size: 18px; display: block; padding: 8px 12px; border-radius: 6px; }
.sidebar ul li a:hover { background-color: #1e1f2e; color: #818cf8; }

/* Hauptbereich */
.page-content {
    flex: 1;
    padding-top: 90px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.main-title {
    font-size: 2.3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Top-Controls */
.top-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 800px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-container {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 18px;
    background-color: #1a1b29;
    color: white;
    border: 1px solid #312e81;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #6366f1;
    border-color: #6366f1;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.action-buttons-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.create-btn {
    padding: 8px 14px;
    background-color: #1e1b4b;
    color: #a5b4fc;
    border: 1px dashed #4338ca;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: not-allowed;
}

/* Event Kasten */
.events-container {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-events {
    text-align: center;
    font-size: 1.1rem;
    color: #a5b4fc;
    margin-top: 40px;
    background: rgba(20, 20, 35, 0.6);
    padding: 30px;
    border-radius: 12px;
    border: 1px dashed rgba(99, 102, 241, 0.3);
}

.event-box {
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.95), rgba(30, 27, 75, 0.9));
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: transform 0.2s ease;
}

.event-box:hover {
    transform: translateY(-2px);
    border-color: rgba(168, 85, 247, 0.5);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.organizer-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.organizer-name {
    font-weight: bold;
    font-size: 1.05rem;
    color: #fff;
}

.verified-badge {
    color: #818cf8;
}

.countdown-banner {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #c7d2fe;
}

.countdown-timer {
    color: #a855f7;
    font-family: monospace;
    font-size: 1.05rem;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.tag-turnier { background-color: #ef4444; color: white; }
.tag-community { background-color: #8b5cf6; color: white; }
.tag-stream { background-color: #06b6d4; color: white; }
.tag-special { background-color: #f59e0b; color: white; }

.event-date {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.event-title {
    font-size: 1.3rem;
    color: #f8fafc;
}

.event-text-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
    white-space: pre-line;
}

.event-actions {
    display: flex;
    gap: 12px;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge {
    background: #312e81;
    color: #e0e7ff;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
}

footer {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #aaa;
    background-color: #12131c;
    margin-top: auto;
}

@media (max-width: 768px) {
    .nav-center { display: none; }
    .top-controls { flex-direction: column; align-items: stretch; }
    .events-container { width: 95%; }
    .countdown-banner { flex-direction: column; gap: 5px; text-align: center; }
}

/* 1. Große Monitore / Extra Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* 2. Normale Laptops & Desktop-Monitore */
@media (max-width: 1200px) {
    .page-content {
        width: 95%;
    }
}

/* 3. Tablets (Querformat) & kleinere Laptops */
@media (max-width: 992px) {
    .support-layout {
        grid-template-columns: 1fr; /* Wechsel von 2 auf 1 Spalte */
    }
}

/* 4. Tablets (Hochformat) */
@media (max-width: 768px) {
    .navbar {
        padding: 0 10px;
    }
    
    .sidebar {
        width: 100%; /* Vollbild-Menü auf Mobilgeräten */
    }
}

/* 5. Smartphones */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }

    .nav-center {
        display: none; /* Suchleiste ausblenden für mehr Platz */
    }

    h1 {
        font-size: 1.5rem;
    }
}