/* 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(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), 
                url('../Bilder & Videos/Hauptseite.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* Navbar */
.navbar {
    background-color: #222222;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn {
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.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(8.5px) rotate(45deg); }
.menu-btn.open .bar:nth-child(2) { opacity: 0; }
.menu-btn.open .bar:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

.logo { height: 40px; width: auto; cursor: pointer; }
.nav-center { flex-grow: 1; max-width: 400px; margin: 0 20px; }
.search-input { width: 100%; padding: 8px 15px; border-radius: 20px; border: none; outline: none; background-color: #333; color: white; }
.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: #222222;
    transition: left 0.3s ease;
    z-index: 999;
}
.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; border-radius: 4px; }
.sidebar ul li a:hover { background-color: #333; }

/* Hauptbereich */
.page-content {
    flex: 1;
    padding-top: 80px;
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.main-title {
    font-size: 2.2rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* 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: 15px;
}

.filter-btn {
    padding: 8px 20px;
    background-color: #333;
    color: white;
    border: 1px solid #555;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
}

.filter-btn.active, .filter-btn:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

.action-buttons-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.create-btn {
    padding: 8px 16px;
    background-color: #1e293b;
    color: #94a3b8;
    border: 1px dashed #475569;
    border-radius: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: not-allowed;
}

/* News Container & Kasten */
.news-container {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.empty-news {
    text-align: center;
    font-size: 1.2rem;
    color: #bbb;
    margin-top: 30px;
}

.news-box {
    background: rgba(30, 30, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Kanal Header */
.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.channel-name {
    font-weight: bold;
    font-size: 1.05rem;
    color: #fff;
    cursor: pointer;
}

.verified-badge {
    color: #3b82f6;
    font-size: 0.9rem;
}

.sub-count {
    font-size: 0.8rem;
    color: #aaa;
}

.subscribe-btn {
    background: #333;
    color: #aaa;
    border: 1px solid #444;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Meta Infos (Thema + Datum/Uhrzeit) */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.news-tag {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

/* Farbschema Themen */
.tag-nachricht { background-color: #000000; color: white; border: 1px solid #444; }
.tag-teaser { background-color: #8b5cf6; color: white; }
.tag-unfaelle { background-color: #ef4444; color: white; }
.tag-fussball { background-color: #10b981; color: white; }
.tag-technik { background-color: #3b82f6; color: white; }
.tag-erde { background-color: #8b4513; color: white; }
.tag-politik { background-color: #ffffff; color: black; }

.news-date {
    font-size: 0.85rem;
    color: #ccc;
    font-weight: 500;
}

.news-text-content {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #eee;
    white-space: pre-line;
}

/* Interaktions-Buttons */
.news-actions {
    display: flex;
    gap: 12px;
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: not-allowed;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge {
    background: #475569;
    color: #f1f5f9;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
}

footer {
    width: 100%;
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #ccc;
    background-color: rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
    .nav-center { display: none; }
    .top-controls { flex-direction: column; align-items: stretch; }
    .news-container { width: 95%; }
}

/* 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;
    }
}
