/* 1. Nam Blau (Signature #004AAD) - Standard */
:root, [data-theme="brand"] {
    --bg-color: #031326;
    --card-bg: #072244;
    --text-color: #ffffff;
    --text-muted: #93c5fd;
    --accent-blue: #004AAD;
    --accent-blue-hover: #1d6fe8;
    --nav-bg: #031326;
    --border-color: rgba(255, 255, 255, 0.15);
}

/* 2. Dark Mode (Schwarz-Töne) */
[data-theme="dark"] {
    --bg-color: #09090b;
    --card-bg: #18181b;
    --text-color: #f4f4f5;
    --text-muted: #a1a1aa;
    --accent-blue: #2563eb;
    --accent-blue-hover: #3b82f6;
    --nav-bg: #09090b;
    --border-color: #27272a;
}

/* 3. Light Mode (Weiß) */
[data-theme="light"] {
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #000000;
    --text-muted: #64748b;
    --accent-blue: #004AAD;
    --accent-blue-hover: #003380;
    --nav-bg: #ffffff;
    --border-color: #e2e8f0;
}

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background 0.25s ease, color 0.25s ease;
}

.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 70px;
}

/* Header PC in #004AAD */
.nam-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 35px;
    background-color: #004AAD; /* Blaue Leiste oben */
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nam-logo-svg {
    height: 38px;
    width: auto;
}

.desktop-nav {
    display: flex;
    align-items: center;
}

/* PC Navbar Text auf IMMER WEISS (#ffffff) festlegen */
.desktop-nav a {
    color: #ffffff !important; /* Text bleibt immer weiß, egal welcher Design-Modus */
    text-decoration: none;
    margin-left: 22px;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

/* Hover-Effekt: Text wird leicht transparenter für schickes Feedback */
.desktop-nav a:hover {
    opacity: 0.8;
}

/* Aktiver Link (auch für Einstellungen): Dezent hervorgehoben & unterstrichen */
.desktop-nav a.active {
    opacity: 1;
    font-weight: bold;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 2px;
}

/* Account-Button (Ausnahme: Behält sein dunkleres Blau und volle Deckkraft) */
.account-btn {
    background-color: #026afc !important;
    color: #ffffff !important;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: bold !important;
    text-decoration: none;
    border-bottom: none !important; /* Kein Unterstrich bei active */
    opacity: 1 !important;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.account-btn:hover {
    background-color: #0857ce !important;
    transform: translateY(-1px);
    opacity: 1 !important;
}

/* Content & Layout */
.content-body {
    flex: 1;
    padding: 30px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.hero-banner {
    background: linear-gradient(135deg, var(--accent-blue), #072244);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    color: white;
    margin-bottom: 40px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.hero-banner h1 {
    font-size: 2.8rem;
    margin-top: 0;
}

.btn-blue {
    display: inline-block;
    background: var(--accent-blue);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: filter 0.2s;
}

.btn-blue:hover {
    filter: brightness(1.2);
}

/* Sektionen & Grid */
.section-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-left: 4px solid var(--accent-blue);
    padding-left: 10px;
}

.grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card-item {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s, border-color 0.2s;
    display: block;
}

.card-item:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
}

.live-badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 8px;
}

/* Settings Box */
.settings-box {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-width: 450px;
    margin: 20px auto;
}

.setting-group {
    margin-bottom: 20px;
}

.setting-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.setting-group select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    background: var(--bg-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .nam-header {
        display: none;
    }

    .content-body {
        padding: 15px;
        padding-bottom: 90px;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: var(--card-bg);
        border-top: 1px solid var(--border-color);
        justify-content: space-around;
        padding: 8px 0;
        z-index: 1000;
    }

    .mobile-bottom-nav .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 10px;
    }

    .mobile-bottom-nav .nav-item.active {
        color: var(--text-color);
    }
}