/*
 * Shared Top-Navigation Component (S131)
 *
 * Gilt fuer die Standard-Website-Zone (29 Pages):
 *   Landing / Onboarding / Reports / Legal / Docs
 *
 * Nicht konsumiert von App-Views (eigene Gestaltung):
 *   universe/        — Public-Agents-List, eigener Header
 *   settings/public  — Master-Key-Form, kein Nav
 *   gestalt/         — 3D-View, UI-Overlay mit Logo-Anker
 *   space-night      — immersive Enter-Screen
 *
 * Konzept: docs/konzepte/konzept-nav-shared-component.md
 * Regel:   docs/pflichtenhefte/styleguide.md §1 Navigation
 *
 * Einbindung:
 *   <link rel="stylesheet" href="/styles/_nav.css">
 *   <link rel="stylesheet" href="/styles/<page>.css">
 *
 * Page-CSS darf Nav-Regeln ueberschreiben, soll es aber nicht.
 */

:root {
    --bg: #0a0e1a;
    --text: #c8dcff;
    --accent: #00c8ff;
    --accent2: #ff6b35;
    --border: rgba(0, 200, 255, 0.15);
    --card-bg: rgba(15, 25, 50, 0.8);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1;
}

nav .logo {
    display: inline-block;
    width: 112px;
    height: 18px;
    background: url("/img/logo-nav.png") no-repeat center / 112px 18px;
    text-indent: -9999px;
    overflow: hidden;
    text-decoration: none;
    line-height: 1;
}

nav .links {
    display: flex;
    gap: 1.5rem;
    font-size: 0.85rem;
    line-height: 1;
}

nav .links a {
    color: var(--text);
    text-decoration: none;
    opacity: 0.7;
    line-height: 1;
    transition: opacity 0.2s ease-out, color 0.2s ease-out;
}

nav .links a:hover,
nav .links a.active {
    opacity: 1;
    color: var(--accent);
}

nav .logo:focus-visible,
nav .links a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    opacity: 1;
}

@media (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem 1.5rem;
    }
    nav .links {
        justify-content: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 1rem 0;
    }
    nav .links {
        gap: 0.6rem 1rem;
        font-size: 0.75rem;
    }
}
