/*
 * DATEI: style.css
 * PROJEKT: BG Faktencheck (Style Dach)
 * VERSION: V.1.5.0
 * DATUM: 2026-08-10
 * INFO: Zentrale Stylesheet-Datei - Gefixtes Menü-Padding (kein Abschneiden mehr)
 */

:root {
    --sd-blue: #0056A3;
    --sd-blue-hover: #004482;
    --sd-gray: #334155;
    --sd-gray-light: #64748b;
    --sd-light-bg: #f8fafc;
    --sd-border: #e2e8f0;
    --sd-green: #16a34a;
    --sd-orange: #f97316;
    --sd-bg-body: #f1f5f9;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--sd-bg-body);
    color: var(--sd-gray);
    line-height: 1.6;
}

/* ==========================================================================
   1. GRUNDLAYOUT (970px Wrapper)
   ========================================================================== */
.site-wrapper {
    max-width: 970px;
    margin: 20px auto;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 12px;
    overflow: hidden;
}

/* ==========================================================================
   2. HEADER & LOGO (300px)
   ========================================================================== */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--sd-border);
    padding: 15px 0;
}

.header-container {
    max-width: 970px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 300px;
    max-width: 100%;
    height: auto;
    display: block;
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: var(--sd-blue);
    font-size: 26px;
    cursor: pointer;
    padding: 5px 10px;
}

/* ==========================================================================
   3. BLAUE NAVIGATION (Sauberes Padding für alle Punkte)
   ========================================================================== */
.main-nav {
    background-color: var(--sd-blue);
    width: 100%;
}

.nav-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    max-width: 970px;
    margin: 0 auto;
    padding: 0 15px; /* Leicht eingerückt im blauen Balken */
}

.nav-left {
    list-style: none;
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-left li {
    display: inline-block !important;
    margin-right: 2px;
}

.nav-left a {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    padding: 14px 16px; /* Gleichmäßiger Abstand links & rechts */
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-left a:hover, .nav-left a.active {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Login-Button im blauen Balken rechts */
.nav-right {
    display: flex;
    align-items: center;
}

.nav-btn-login {
    background-color: #ffffff;
    color: var(--sd-blue) !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.1s, background 0.2s;
}

.nav-btn-login:hover {
    background-color: var(--sd-light-bg);
    transform: scale(1.02);
}

.nav-user-box {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-logout-btn {
    background: none;
    border: none;
    color: #fca5a5;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
}

.nav-logout-btn:hover {
    color: #ffffff;
}

/* ==========================================================================
   4. INHALTSBEREICH (Main: 600px, Sidebar: 295px)
   ========================================================================== */
.content-area {
    display: grid;
    grid-template-columns: 1fr 295px;
    gap: 25px;
    padding: 30px 25px;
    background-color: #ffffff;
}

.section-title h2 {
    color: var(--sd-blue);
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--sd-border);
    padding-bottom: 8px;
}

.post-card {
    background: #ffffff;
    border: 1px solid var(--sd-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-left: 4px solid var(--sd-blue);
}

.post-header {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 12px;
    color: var(--sd-gray-light);
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.badge {
    padding: 3px 8px;
    border-radius: 4px;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
}

.country-at { background-color: #dc2626; }
.country-de { background-color: var(--sd-orange); }
.country-ch { background-color: #0284c7; }

.post-card h3 {
    color: #1e293b;
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
}

.post-card p {
    color: var(--sd-gray);
    font-size: 14px;
    line-height: 1.6;
}

.post-media img, .post-media video {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 12px;
    border: 1px solid var(--sd-border);
}

/* Sidebar Widgets */
.widget {
    background: var(--sd-light-bg);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--sd-border);
}

.widget h3 {
    color: #1e293b;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 800;
    border-bottom: 2px solid var(--sd-border);
    padding-bottom: 6px;
}

.news-list { list-style: none; }
.news-list li {
    margin-bottom: 10px;
    font-size: 13px;
    border-bottom: 1px dashed var(--sd-border);
    padding-bottom: 6px;
}
.news-list li:last-child { border-bottom: none; }
.news-list a {
    text-decoration: none;
    color: var(--sd-gray);
    font-weight: 600;
}

.info-widget {
    background: var(--sd-blue);
    color: #ffffff;
    text-align: center;
    border: none;
}
.info-widget h3 { color: #ffffff; border-color: rgba(255,255,255,0.2); }
.info-widget p { font-size: 13px; margin-bottom: 15px; }

.btn-primary {
    background-color: #ffffff;
    color: var(--sd-blue);
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    font-size: 13px;
    width: 100%;
    display: inline-block;
    text-decoration: none;
}

/* ==========================================================================
   5. FORMULARE, LOGIN & 2FA MODAL
   ========================================================================== */
.sd-input-wrapper { position: relative; margin-bottom: 20px; }
.sd-input-wrapper i { position: absolute; left: 15px; top: 16px; color: var(--sd-blue); }
.sd-input-field {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 1px solid var(--sd-border);
    border-radius: 8px;
    font-size: 14px;
}
.btn-start {
    width: 100%; padding: 14px; font-size: 15px; font-weight: 700;
    border: none; border-radius: 8px; background: var(--sd-blue); color: white; cursor: pointer;
}
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7); backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center; z-index: 99999;
}
.modal-card {
    background: white; padding: 25px; border-radius: 16px; max-width: 380px; width: 90%; text-align: center;
}

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.site-footer {
    background: var(--sd-gray); color: #ffffff; text-align: center; padding: 30px 20px;
}
.site-footer p { font-size: 13px; margin-bottom: 10px; color: #94a3b8; }
.footer-links a { color: #ffffff; text-decoration: none; margin: 0 8px; font-size: 13px; }

/* ==========================================================================
   7. RESPONSIVE ANPASSUNGEN (HANDY / MOBIL)
   ========================================================================== */
@media (max-width: 768px) {
    .site-wrapper {
        margin: 0;
        border-radius: 0;
    }

    .logo {
        width: 220px;
    }

    .hamburger-btn {
        display: block;
    }

    .main-nav {
        display: none;
    }

    .main-nav.open {
        display: block;
    }

    .nav-container {
        flex-direction: column;
        padding: 0;
    }

    .nav-left {
        flex-direction: column !important;
        width: 100%;
    }

    .nav-left li {
        width: 100%;
        margin: 0;
    }

    .nav-left a {
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 15px;
    }

    .nav-right {
        width: 100%;
        justify-content: center;
        padding: 15px;
        background-color: var(--sd-blue-hover);
    }

    .nav-btn-login {
        width: 100%;
        text-align: center;
    }

    .content-area {
        grid-template-columns: 1fr;
        padding: 15px;
    }
}