/* 
===========================================================
DESIGN 2025 - UNIFIED NAVIGATION STYLES
===========================================================
Modern, accessible navigation with glassmorphism effects
and responsive design for all devices.
*/

/* CSS Custom Properties */
:root {
    --brand: #37ac50;
    --brand-dark: #2d8f42;
    --brand-light: #4ade80;
    --brand-contrast: #0f172a;
    --header-bg: #ffffff;
    --header-bg-blur: rgba(255, 255, 255, 0.95);
    --text: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border: rgba(226, 232, 240, 0.6);
    --shadow: 0 10px 30px rgba(0,0,0,.06);
    --shadow-heavy: 0 20px 40px rgba(0,0,0,.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 72px;
}

/* Hide old navigation elements */
#Header_wrapper:not(.header-2025),
#Header:not(.header-2025 #Header),
#Top_bar:not(.header-2025 #Top_bar),
.menu_wrapper:not(.header-2025 .menu_wrapper),
#menu:not(.header-2025 #menu) {
    display: none !important;
}

/* Adjust content positioning for new header */
#Content {
    margin-top: 0 !important;
}

/* Erste Section direkt unter dem Header - Abstand reduzieren */
.entry-content > .section-2025:first-child,
.entry-content > .section:first-child,
#Content .section-2025:first-of-type,
#Content .section:first-of-type {
    padding-top: calc(var(--header-height) + 20px) !important;
    margin-top: 0 !important;
}

/* Override any existing header styles */
body.header-classic #Wrapper {
    padding-top: 0 !important;
}

body.sticky-header #Content {
    padding-top: 0 !important;
}

/* Reset and base styles */
.header-2025 * {
    box-sizing: border-box;
}

/* Screen reader only content */
.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;
}

/* Header container */
.header-2025 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1050 !important;
    background: var(--header-bg-blur);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    height: var(--header-height);
}

.header-2025.scrolled {
    background: var(--header-bg);
    box-shadow: var(--shadow);
}

/* Navigation container */
.nav-container {
    height: 100%;
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand/Logo */
.nav-brand {
    flex-shrink: 0;
    z-index: 1001;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    border-radius: 8px;
    padding: 4px;
}

.brand-link:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.brand-logo {
    height: 40px;
    width: auto;
    transition: var(--transition);
}

.brand-link:hover .brand-logo {
    transform: scale(1.05);
}

/* Desktop Navigation */
.nav-menu {
    display: flex !important;
    align-items: center;
    height: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--brand);
    background: rgba(55, 172, 80, 0.08);
}

.nav-link:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.nav-link.is-active {
    color: var(--brand);
    background: rgba(55, 172, 80, 0.12);
    font-weight: 600;
}

.nav-link.is-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--brand);
    border-radius: 1px;
}

/* Dropdown styles */
.nav-dropdown {
    position: relative;
    z-index: 1051;
}

.dropdown-icon {
    transition: var(--transition);
    margin-left: 4px;
}

.nav-dropdown:hover .dropdown-icon,
.nav-dropdown-toggle[aria-expanded="true"] .dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--header-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    padding: 8px;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1100 !important;
}

/* Force dropdown to show on hover - simplified approach */
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
    pointer-events: auto !important;
}

.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
    pointer-events: auto !important;
}

.nav-dropdown-link {
    display: block;
    padding: 12px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-dropdown-link:hover {
    color: var(--brand);
    background: rgba(55, 172, 80, 0.08);
}

.nav-dropdown-link:focus {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.nav-dropdown-link.is-active {
    color: var(--brand);
    background: rgba(55, 172, 80, 0.12);
    font-weight: 600;
}

/* Mobile Navigation wird durch mobile-menu.css gesteuert */
