/* === EXTRAVAGANT PREMIUM NAVBAR === */
.site-navbar {
    background: linear-gradient(135deg, #f5f5f5 0%, #efefef 50%, #f8f8f8 100%);
    box-shadow: 
        0 20px 60px rgba(106, 176, 76, 0.15),
        0 0 50px rgba(106, 176, 76, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 0.25rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    overflow: visible;
    border-bottom: 2px solid rgba(106, 176, 76, 0.2);
}

.site-navbar::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6ab04c 25%, #7ec760 50%, #fbbf24 75%, transparent);
}

.site-navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
}

.site-navbar.scrolled {
    box-shadow: 
        0 30px 80px rgba(106, 176, 76, 0.2),
        0 0 80px rgba(106, 176, 76, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    padding: 0.2rem 0;
    border-bottom-color: rgba(106, 176, 76, 0.35);
}

.site-navbar .container-fluid {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
}

/* Logo - ELEGANT */
.cool-title {
    font-size: 2.2rem;
    font-weight: 900;
    background: linear-gradient(135deg, #6ab04c 0%, #7ec760 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -1px;
    transition: none;
    position: relative;
    display: inline-block;
}

.cool-title::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #6ab04c 0%, #7ec760 50%, #fbbf24 100%);
    transition: width 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    border-radius: 2px;
}

.cool-title:hover {
    transform: none !important;
}

.cool-title:hover::after {
    width: 100%;
}

/* Nav Items - EXTRAVAGANT */
.navbar-nav {
    gap: 1rem;
    margin-left: auto;
}

.nav-link {
    color: #333 !important;
    font-weight: 800;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    font-size: 0.92rem;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, rgba(106, 176, 76, 0.08) 0%, rgba(126, 199, 96, 0.04) 100%);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6ab04c 0%, #7ec760 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: 2px;
}

.nav-link i {
    margin-right: 0.8rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    display: inline-block;
}

.nav-link:hover i {
    filter: drop-shadow(0 0 10px rgba(106, 176, 76, 0.6));
}

.nav-link:hover {
    color: #ffffff !important;
    border-color: rgba(106, 176, 76, 0.8);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 15px 40px rgba(106, 176, 76, 0.35),
        inset 0 0 20px rgba(106, 176, 76, 0.1);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(135deg, #6ab04c 0%, #7ec760 100%);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 10px 35px rgba(106, 176, 76, 0.4),
        0 0 30px rgba(106, 176, 76, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

/* Dropdown Button - PREMIUM */
.nav-item.dropdown .dropdown-toggle {
    background: linear-gradient(135deg, #6ab04c 0%, #7ec760 50%, #5a9c3e 100%) !important;
    color: white !important;
    padding: 0.5rem 1.5rem !important;
    border-radius: 50px !important;
    font-weight: 900 !important;
    font-size: 0.92rem !important;
    box-shadow: 0 15px 45px rgba(106, 176, 76, 0.4) !important;
    transition: none !important;
    position: relative;
    overflow: visible !important;
    letter-spacing: 0.5px !important;
    border: none !important;
}

.nav-item.dropdown .dropdown-toggle::before {
    display: none !important;
}

.nav-item.dropdown .dropdown-toggle:hover::before {
    display: none !important;
}

.nav-item.dropdown .dropdown-toggle:hover,
.nav-item.dropdown .dropdown-toggle:focus,
.nav-item.dropdown .dropdown-toggle:active,
.nav-item.dropdown .dropdown-toggle.show {
    background: linear-gradient(135deg, #6ab04c 0%, #7ec760 50%, #5a9c3e 100%) !important;
    box-shadow: 0 15px 45px rgba(106, 176, 76, 0.4) !important;
    transform: none !important;
    scale: 1 !important;
    color: white !important;
    outline: none !important;
}

.nav-item.dropdown .dropdown-toggle::after {
    display: none;
}

.dropdown-menu {
    border: none;
    border-radius: 25px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.15),
        0 0 60px rgba(106, 176, 76, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    padding: 1rem;
    margin-top: 1.2rem;
    animation: slideDown 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    background: linear-gradient(135deg, #f8f8f8 0%, #f5f5f5 100%);
    border-top: 3px solid rgba(106, 176, 76, 0.2);
    z-index: 9999;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    padding: 1rem 1.4rem;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    font-weight: 800;
    color: #333;
    position: relative;
    overflow: hidden;
    border: none;
    font-size: 0.95rem;
    background: transparent;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: linear-gradient(180deg, #6ab04c 0%, #7ec760 100%);
    transform: scaleY(0);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    transform-origin: top;
    border-radius: 2px;
}

.dropdown-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(106, 176, 76, 0.1) 0%, rgba(126, 199, 96, 0.05) 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.dropdown-item:hover {
    background: rgba(106, 176, 76, 0.12);
    color: #6ab04c;
    transform: translateX(10px);
    box-shadow: inset 3px 0 0 #6ab04c;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.dropdown-item:hover::after {
    opacity: 1;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Logout Button - RED */
.dropdown-item[href*="logout"] {
    background: #dc3545 !important;
    color: white !important;
}

.dropdown-item[href*="logout"]:hover,
.dropdown-item[href*="logout"]:focus,
.dropdown-item[href*="logout"]:active {
    background: #dc3545 !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

.dropdown-item[href*="logout"]::before {
    display: none !important;
}

.dropdown-item[href*="logout"]::after {
    display: none !important;
}

.dropdown-item[href*="logout"]:hover,
.dropdown-item[href*="logout"]:focus,
.dropdown-item[href*="logout"]:active {
    background: #dc3545 !important;
    color: white !important;
    transform: none !important;
    box-shadow: none !important;
}

.dropdown-item[href*="logout"]::before {
    display: none !important;
}

.dropdown-item[href*="logout"]::after {
    display: none !important;
}

/* Navbar Toggle */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: linear-gradient(135deg, #6ab04c, #8cc152);
    border-radius: 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(106, 176, 76, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Body Padding */
body {
    padding-top: 60px;
}

/* Responsive */
@media (max-width: 1200px) {
    .site-navbar .container-fluid {
        padding: 0 1.5rem;
    }
}

@media (max-width: 991px) {
    .navbar-nav {
        gap: 0.4rem;
        padding: 0.8rem 0;
    }
    
    .nav-link {
        padding: 0.8rem !important;
    }
    
    body {
        padding-top: 58px;
    }
    
    .site-navbar .container-fluid {
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .site-navbar .container-fluid {
        padding: 0 0.75rem;
    }
    
    .cool-title {
        font-size: 1.4rem;
    }
}

/* ===== RESPONSIVE NAVBAR UPDATES ===== */

/* Mobile First - Small Screens (< 576px) */
@media (max-width: 575px) {
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler-icon {
        width: 1.5rem;
        height: 0.1875rem;
    }
    
    .navbar-collapse {
        padding: 1rem 0;
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
    }
    
    .dropdown-menu {
        padding: 0.5rem 0;
    }
    
    .navbar-profile-img {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Tablets (576px - 992px) */
@media (min-width: 576px) and (max-width: 991px) {
    .navbar {
        padding: 0.75rem 1.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
    }
    
    .navbar-profile-img {
        width: 26px !important;
        height: 26px !important;
    }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        gap: 1.5rem;
    }
    
    .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 1rem;
    }
    
    .dropdown-menu {
        min-width: 220px;
        padding: 0.75rem 0;
    }
    
    .navbar-profile-img {
        width: 28px !important;
        height: 28px !important;
    }
}

/* Touch-friendly Button Größen */
@media (hover: none) and (pointer: coarse) {
    .navbar-toggler {
        min-width: 48px;
        min-height: 48px;
        padding: 0.75rem;
    }
    
    .nav-link {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
    
    .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Print Styles */
@media print {
    .navbar-toggler,
    .dropdown-menu {
        display: none;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-navbar {
    animation: slideInDown 0.4s ease-out;
}

/* ===== APPLE STYLE NAVBAR ===== */
.apple-navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.apple-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.3rem;
    color: #6ab04c;
    transition: all 0.3s ease;
}

.apple-navbar .navbar-brand:hover {
    transform: scale(1.05);
}

.apple-navbar .navbar-brand i {
    font-size: 1.4rem;
}

/* Navbar Container */
.navbar-container {
    max-width: 1400px;
    padding: 0.5rem 2rem;
}

/* Nav Items Styling */
.nav-item-hover {
    position: relative;
}

.nav-item-hover .nav-link {
    color: #1a1a1a;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border-radius: 8px;
    background: rgba(106, 176, 76, 0.05);
}

.nav-item-hover .nav-link:hover {
    color: #6ab04c;
    background: rgba(106, 176, 76, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(106, 176, 76, 0.15);
}

/* Dropdown Styling */
.apple-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2000;
    margin-top: 0.5rem;
}

.nav-item-hover:hover .apple-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.dropdown-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: visible;
    min-width: 280px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(20px);
    padding: 0.5rem;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    color: #1a1a1a;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    cursor: default;
    pointer-events: none;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: transparent;
}

/* Anklickbare Dropdown Items (für Profil) */
.dropdown-item-link {
    cursor: pointer;
    pointer-events: auto;
}

.dropdown-item-link:hover {
    background: #f5f5f5;
}

/* Abmelden Button spezial (nur im Profil-Dropdown) */
.dropdown-user-menu .dropdown-item-link:last-child {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%) !important;
    color: white !important;
    margin: 0.5rem 0 !important;
    border-radius: 8px;
    border-bottom: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 1rem 1.2rem !important;
    font-weight: 700;
    display: flex !important;
    align-items: center !important;
    gap: 0.8rem !important;
}

.dropdown-user-menu .dropdown-item-link:last-child i {
    color: white !important;
    font-size: 1.3rem;
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.dropdown-user-menu .dropdown-item-link:last-child > div {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.dropdown-user-menu .dropdown-item-link:last-child .dropdown-label {
    color: white !important;
    font-weight: 700;
    font-size: 1rem;
}

.dropdown-user-menu .dropdown-item-link:last-child .dropdown-desc {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.dropdown-user-menu .dropdown-item-link:last-child:hover {
    background: linear-gradient(135deg, #ff5252 0%, #e53935 100%) !important;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
}

.dropdown-item i {
    font-size: 1.3rem;
    color: #6ab04c;
    min-width: 32px;
    text-align: center;
}

.dropdown-item > div {
    display: flex;
    flex-direction: column;
}

.dropdown-label {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.95rem;
}

.dropdown-desc {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.2rem;
}

.dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.05);
    margin: 0;
}

/* Dropdown Arrow */
.dropdown-arrow {
    font-size: 0.7rem;
    margin-left: 0.3rem;
    transition: transform 0.3s ease;
}

.dropdown-nav-link:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* User Dropdown Specific */
.dropdown-user-menu {
    min-width: 220px;
}

/* Responsive */
@media (max-width: 992px) {
    .navbar-container {
        padding: 0.5rem 1rem;
    }

    .apple-navbar .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-item-hover .nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }

    .apple-dropdown {
        position: fixed;
        top: auto;
        left: auto;
        right: 1rem;
        transform: none;
        margin-top: 0;
    }

    .nav-item-hover:hover .apple-dropdown {
        transform: none;
    }
}

@media (max-width: 768px) {
    .navbar-container {
        padding: 0.4rem 0.8rem;
    }

    .apple-navbar .navbar-brand {
        font-size: 1.1rem;
    }

    .nav-item-hover .nav-link {
        padding: 0.5rem 0.6rem;
        font-size: 0.85rem;
        gap: 0.3rem;
    }

    .dropdown-content {
        min-width: 240px;
    }

    .dropdown-item {
        padding: 0.8rem 1rem;
    }

    .dropdown-label {
        font-size: 0.9rem;
    }

    .dropdown-desc {
        display: none;
    }
}

/* Scroll Effect */
