/**
 * Navigation Styles
 * Desktop Sidebar + Mobile Menu
 */

/* ============================================
   DESKTOP SIDEBAR NAVIGATION
   ============================================ */

.sidebar-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background-color: #2C2C2C;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Hide scrollbar but keep functionality */
.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(193, 154, 107, 0.3);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(193, 154, 107, 0.5);
}

/* Logo */
.sidebar-logo {
    margin-bottom: 2rem;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-logo a {
    display: inline-block;
    text-decoration: none;
}

.sidebar-logo .custom-logo {
    max-width: 180px;
    height: auto;
}

.sidebar-logo .logo-placeholder {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--color-primary, #C19A6B);
    color: #2C2C2C;
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.sidebar-logo .site-title {
    color: var(--color-primary, #C19A6B);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Main Navigation */
.main-navigation {
    flex: 1 1 auto;
    margin-bottom: 1.5rem;
    overflow-y: visible;
}

.primary-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu-list > li {
    margin-bottom: 0.25rem;
}

.primary-menu-list > li > a {
    display: block;
    padding: 0.75rem 1rem;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    font-family: 'Inter', sans-serif;
}

.primary-menu-list > li > a:hover,
.primary-menu-list > li.current-menu-item > a {
    background-color: rgba(193, 154, 107, 0.15);
    color: var(--color-primary, #C19A6B);
    padding-left: 1.25rem;
}

/* Dropdown Indicator */
.dropdown-indicator {
    font-size: 0.7rem;
    margin-left: 0.5rem;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.menu-item-has-children:hover .dropdown-indicator {
    transform: rotate(180deg);
}

/* Submenu (Dropdown) */
.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.menu-item-has-children:hover .sub-menu {
    max-height: 500px;
}

.sub-menu li {
    margin: 0;
}

.sub-menu a {
    display: block;
    padding: 0.625rem 1.25rem 0.625rem 2.5rem;
    color: #CCCCCC;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.sub-menu a:hover {
    color: var(--color-primary, #C19A6B);
    padding-left: 2.75rem;
}

/* CTA Buttons in Sidebar */
.sidebar-cta-buttons {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Footer Links in Sidebar */
.sidebar-footer {
    flex: 0 0 auto;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu-list li {
    margin-bottom: 0.25rem;
}

.footer-menu-list a {
    display: block;
    padding: 0.375rem 0;
    color: #999;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.footer-menu-list a:hover {
    color: var(--color-primary, #C19A6B);
}

/* ============================================
   MOBILE HEADER
   ============================================ */

.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background-color: var(--color-dark-bg, #2C2C2C);
    padding: 0 1rem;
    z-index: 1001;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu-toggle {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background-color: var(--color-primary, #C19A6B);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-logo {
    flex: 1;
    text-align: center;
}

.mobile-logo a {
    display: inline-block;
    text-decoration: none;
}

.mobile-logo .custom-logo {
    max-height: 40px;
    width: auto;
}

.mobile-logo .site-title {
    color: var(--color-primary, #C19A6B);
    font-size: 1.25rem;
    font-weight: 700;
}

/* ============================================
   MOBILE NAVIGATION OVERLAY
   ============================================ */

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(44, 44, 44, 0.98);
    z-index: 999;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.mobile-nav-overlay.active {
    transform: translateX(0);
}

.mobile-navigation {
    padding: 2rem;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list > li {
    margin-bottom: 0.25rem;
}

.mobile-menu-list > li > a {
    display: block;
    padding: 1rem 1.5rem;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-list > li > a:hover {
    background-color: rgba(193, 154, 107, 0.15);
    color: var(--color-primary, #C19A6B);
}

.mobile-menu-list .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.mobile-menu-list .menu-item-has-children.active .sub-menu {
    max-height: 500px;
}

.mobile-menu-list .sub-menu a {
    display: block;
    padding: 0.75rem 1.5rem 0.75rem 3rem;
    color: #CCCCCC;
    text-decoration: none;
    font-size: 1rem;
}

.mobile-menu-list .sub-menu a:hover {
    color: var(--color-primary, #C19A6B);
}

/* ============================================
   CONTENT OFFSET - MOVED TO reset-base.css
   Diese Styles werden in reset-base.css mit !important definiert
   ============================================ */

/* Hide mobile elements on desktop */
@media (min-width: 769px) {
    .mobile-header,
    .mobile-nav-overlay {
        display: none !important;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .sidebar-nav {
        display: none;
    }
    
    .mobile-header {
        display: flex;
    }
    
    .mobile-nav-overlay {
        display: block;
    }
}

