/* Clean Navigation with Shadow Effects */

/* Main navigation bar WITHOUT bottom shadow */
.mf-navigation-bar {
    background: #f8f9fa !important;
    border-bottom: none !important;
    box-shadow: none !important; /* Shadow removed */
    position: relative;
    z-index: 50;
}

/* Remove purple gradient from navbar */
.navbar-default {
    background: transparent !important;
    box-shadow: none !important;
    transform-style: initial;
    perspective: initial;
}

/* Navigation items - clean style */
.navbar-nav > li {
    position: relative;
    transition: all 0.2s ease;
}

.navbar-nav > li > a {
    position: relative;
    padding: 15px 20px;
    color: #333 !important;
    text-shadow: none;
    transition: all 0.2s ease;
    font-weight: 500;
}

/* Simple hover effect */
.navbar-nav > li:hover {
    transform: translateY(-2px);
}

.navbar-nav > li > a:hover {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.05);
}

/* Active state underline */
.navbar-nav > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #2563eb;
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.navbar-nav > li:hover > a::after,
.navbar-nav > li.active > a::after {
    width: 80%;
}

/* Clean dropdown menu - NO BLUR, NO SCROLLBARS */
.dropdown-menu {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    /* Remove scrollbars - allow natural height */
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
}

.dropdown:hover .dropdown-menu,
.dropdown.open .dropdown-menu,
.dropdown-open > .dropdown-menu,
li.dropdown-open > .dropdown-menu {
    transform: translateY(0);
    opacity: 1 !important;
    visibility: visible !important;
}

/* Mega menu styling - consistent layout */
.mega-dropdown {
    padding: 20px;
    min-width: 600px;
    /* Remove scrollbars - allow natural height */
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Clean column groups - NO BLUR */
.mega-column-group {
    background: #f9fafb;
    border-radius: 6px;
    padding: 15px;
    /* REMOVED: backdrop-filter: blur(10px); */
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

/* Hide original single items - they will be grouped by JS */
.mega-column-single {
    display: none !important;
}

/* Group single items together */
.mega-menu-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Make single items appear as a group */
.single-items-group {
    background: #f9fafb;
    border-radius: 6px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    min-width: 200px;
}

.single-items-group h4 {
    color: #1e293b;
    font-weight: 600;
    font-size: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 10px;
}

.single-items-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.single-items-group li {
    padding: 4px 0;
}

.single-items-group a {
    color: #64748b !important;
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.single-items-group a:hover {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.05);
    text-decoration: none;
}

.mega-column-group:hover {
    transform: translateY(-2px);
    background: #f3f4f6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.mega-column-header a {
    color: #1e293b !important;
    font-weight: 600;
    font-size: 15px;
    text-shadow: none;
    display: block;
    text-decoration: none !important;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.mega-column-header a:hover {
    color: #2563eb !important;
    border-bottom-color: #2563eb;
    text-decoration: none !important;
}

.mega-submenu {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.mega-submenu li {
    padding: 4px 0;
    transition: transform 0.2s ease;
}

.mega-submenu li:hover {
    transform: translateX(3px);
}

.mega-submenu a {
    color: #64748b !important;
    transition: all 0.2s ease;
    display: block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
}

.mega-submenu a:hover {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.05);
    text-decoration: none;
}

/* Hide category images */
.category-image {
    display: none !important;
}

/* Consistent submenu styling - remove all scrollbars */
.dropdown-menu,
.mega-dropdown,
.dropdown-submenu > .dropdown-menu,
.thirdmenu {
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
}

/* Ensure consistent backgrounds for all submenu levels */
.dropdown-menu,
.mega-dropdown {
    background: #ffffff !important;
}

.dropdown-submenu > .dropdown-menu,
.thirdmenu {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
}

/* Consistent padding for all dropdown types */
.dropdown-menu {
    padding: 10px 0;
}

.mega-dropdown {
    padding: 20px;
}

.dropdown-submenu > .dropdown-menu,
.thirdmenu {
    padding: 8px 0;
    margin-top: 5px;
}

/* Make dropdown toggle links clickable */
.dropdown-toggle {
    pointer-events: all !important;
}

.dropdown-toggle .caret {
    margin-left: 5px;
    border-top-color: #64748b;
}

/* View all link */
.viewall {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e5e7eb;
}

.viewall a, .view-all-link {
    color: #2563eb !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.viewall a:hover, .view-all-link:hover {
    color: #1d4ed8 !important;
    text-decoration: none;
}

/* Special links styling */
.special-links {
    padding: 8px 0;
}

.special-links a {
    color: #059669 !important;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.special-links a:hover {
    color: #047857 !important;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .mf-navigation-bar {
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav > li > a {
        color: #333 !important;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .dropdown-menu {
        transform: none;
        box-shadow: none;
        background: #f9fafb !important;
        border: none !important;
    }
}

/* Top bar link style for "Über uns" */
.top-bar-links {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 20px;
}

.top-bar-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
    font-weight: 500;
}

.top-bar-links a:hover {
    color: #2563eb;
}

/* Fix z-index for dropdowns */
.dropdown {
    position: static !important;
}

.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
}

/* Ensure proper layering */
.mf-nav-list {
    position: relative;
    z-index: 100;
}

.mf-nav-list > li {
    position: relative;
}

/* Clean professional look */
.mf-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Better dropdown positioning and gap prevention */
.dropdown {
    position: relative;
}

/* Disabled invisible hover bridge - interferes with JavaScript dropdown logic */
/* .dropdown > a::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 998;
} */

/* Improve mega menu positioning */
.mega-dropdown {
    margin-top: 0 !important;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Consistent submenu item spacing */
.mega-submenu li,
.dropdown-menu li {
    margin-bottom: 2px;
}

.mega-submenu li:last-child,
.dropdown-menu li:last-child {
    margin-bottom: 0;
}

/* Remove old animations */
@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav > li {
    animation: none;
}

/* Remove scrolled class effects */
.navbar-default.scrolled {
    background: transparent !important;
    box-shadow: none !important;
}

/* COMPREHENSIVE FIX: Remove ALL scrollbars from ALL dropdown types */
.dropdown-menu,
.mega-dropdown,
.dropdown-submenu > .dropdown-menu,
.thirdmenu,
.mf-nav-list .dropdown-menu,
.mf-nav-list .dropdown-menu ul {
    max-height: none !important;
    overflow: visible !important;
    height: auto !important;
}

/* Consistent submenu styling for all levels */
.dropdown-submenu > .dropdown-menu,
.thirdmenu {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    padding: 8px 0;
    margin-top: 5px;
}

/* Fix dropdown positioning - add invisible bridge */
/* Disabled invisible hover bridge - interferes with JavaScript dropdown logic */
/* .dropdown > a::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
    z-index: 998;
} */

/* Ensure mega menu connects properly */
.mega-dropdown {
    margin-top: 0 !important;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Consistent link styling across all submenu levels */
.dropdown-menu a,
.mega-submenu a,
.thirdmenu a {
    display: block;
    padding: 6px 20px;
    color: #333 !important;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover,
.mega-submenu a:hover,
.thirdmenu a:hover {
    background: rgba(37, 99, 235, 0.05);
    color: #2563eb !important;
    text-decoration: none;
}