/**
 * Navigation Styles für 7-Punkte-Navigation
 * Datei: static/assets/css/navigation.css
 */

/* =====================================
   HAUPTNAVIGATION STYLES
   ===================================== */

.site-header {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
    padding: 1rem 0;
    position: relative;
}

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

.site-header h1 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

/* Navigation */
.site-header nav {
    display: block;
}

.site-header nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.site-header nav li {
    margin: 0;
}

.site-header nav a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9rem;
    white-space: nowrap;
    display: block;
}

.site-header nav a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    transform: translateY(-1px);
}

.site-header nav a.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
    color: #f3f4f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mobile Navigation Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.mobile-menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* =====================================
   RESPONSIVE NAVIGATION
   ===================================== */

@media (max-width: 768px) {
    .site-header .container {
        padding: 0 1rem;
    }

    .site-header h1 {
        font-size: 1.25rem;
    }

    /* Mobile Navigation */
    .site-header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #1f2937;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .site-header nav.visible {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .site-header nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 1rem;
    }

    .site-header nav li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .site-header nav li:last-child {
        border-bottom: none;
    }

    .site-header nav a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 4px;
        margin-bottom: 0.25rem;
    }

    .site-header nav a:last-child {
        margin-bottom: 0;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Slide-Down Animation */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

@media (min-width: 769px) {
    .mobile-menu-toggle {
        display: none !important;
    }

    .site-header nav {
        display: block !important;
    }
}

/* =====================================
   BREADCRUMB NAVIGATION
   ===================================== */

.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: #6b7280;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #9ca3af;
}

/* =====================================
   NAVIGATION UTILITIES
   ===================================== */

/* Highlight für aktuelle Seite */
.nav-highlight {
    position: relative;
}

.nav-highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: white;
    border-radius: 1px;
}

/* Badge für neue Features */
.nav-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef4444;
    color: white;
    font-size: 0.625rem;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Navigation Icons */
.nav-icon {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

/* =====================================
   ACCESSIBILITY
   ===================================== */

.site-header nav a:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

.mobile-menu-toggle:focus {
    outline: 2px solid #60a5fa;
    outline-offset: 2px;
}

/* Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =====================================
   DARK MODE SUPPORT
   ===================================== */

@media (prefers-color-scheme: dark) {
    .site-header {
        background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    }

    .breadcrumbs {
        border-color: #374151;
        color: #9ca3af;
    }

    .breadcrumbs a {
        color: #60a5fa;
    }
}

/* =====================================
   PRINT STYLES
   ===================================== */

@media print {
    .site-header nav,
    .mobile-menu-toggle,
    .breadcrumbs {
        display: none;
    }

    .site-header {
        background: none;
        color: black;
        padding: 0.5rem 0;
    }

    .site-header h1 {
        color: black;
        font-size: 1.25rem;
    }
}

/* =====================================
   PERFORMANCE OPTIMIZATIONS
   ===================================== */

/* GPU-Beschleunigung für Animationen */
.site-header nav a,
.mobile-menu-toggle {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduziere Layout-Shift */
.site-header nav ul {
    min-height: 40px;
}

@media (max-width: 768px) {
    .site-header nav ul {
        min-height: auto;
    }
}
