/* ==========================================
   HEADER & NAVIGATION - CLEAN VERSION
   ========================================== */

/* Header Base Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 2000;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    padding: 1.2rem 0;
}

.header.scrolled {
    padding: 0.8rem 0;
    background-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* Header Container */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-container a {
    text-decoration: none;
}

.logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.logo {
    font-size: 2.4rem;
    font-weight: 700;
    color: #69b4ac;
    margin: 0;
    line-height: 1;
    font-family: 'Cormorant Garamond', serif;
}

.tagline {
    font-size: 1.2rem;
    color: #777;
    margin: 0;
    line-height: 1;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative;
    margin: 0;
    padding: 0;
}

.nav-links > li > a {
    color: #333;
    font-weight: 500;
    font-size: 1.6rem;
    padding: 0.8rem 1.2rem;
    display: inline-block;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #69b4ac;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
    color: #69b4ac;
}

.nav-links > li > a:hover::after,
.nav-links > li > a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Gutschein Link Special Styling */
.gutschein-link {
    background: linear-gradient(135deg, #69b4ac 0%, #5a9d96 100%);
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(105, 180, 172, 0.3);
    transition: all 0.3s ease;
}

.gutschein-link::after {
    display: none !important;
}

.gutschein-link:hover {
    background: linear-gradient(135deg, #5a9d96 0%, #4a8d86 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(105, 180, 172, 0.4);
    color: white !important;
}

/* Dropdown Menu - Desktop */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #ffffff;
    min-width: 250px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 1rem 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    list-style: none;
    margin: 0;
}

.has-dropdown:hover > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

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

.dropdown-menu a {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    font-weight: 500;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(105, 180, 172, 0.12);
    color: #69b4ac;
    padding-left: 2rem;
}

/* Nested Dropdown */
.nested-dropdown {
    position: relative;
}

.nested-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nested-dropdown > a::after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 1rem;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.nested-dropdown-menu {
    position: absolute;
    top: 0;
    left: 100%;
    background-color: #ffffff;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 1rem 0;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    list-style: none;
    margin: 0;
}

.nested-dropdown:hover > .nested-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.nested-dropdown-menu li {
    margin: 0;
    padding: 0;
}

.nested-dropdown-menu a {
    font-size: 1.4rem;
    color: #333;
    display: block;
    padding: 1rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nested-dropdown-menu a:hover {
    background-color: rgba(105, 180, 172, 0.12);
    color: #69b4ac;
    padding-left: 2rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.8rem;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2100;
}

.mobile-menu-icon {
    font-size: 2.8rem;
    color: #333;
    line-height: 1;
    display: block;
}

.mobile-menu-icon i {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */
@media (max-width: 1024px) {
    .logo {
        font-size: 2.2rem;
    }

    .tagline {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links > li > a {
        font-size: 1.5rem;
        padding: 0.6rem 1rem;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 768px) {
    .header {
        padding: 1rem 0;
    }

    .header .container {
        padding: 0 1.5rem;
        gap: 1rem;
    }

    .logo-container {
        gap: 0.8rem;
        flex: 1;
    }

    .logo {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    /* Show Mobile Menu Toggle */
    .menu-toggle {
        display: flex !important;
        z-index: 2100;
        background-color: rgba(105, 180, 172, 0.1);
        border-radius: 4px;
    }

    /* Mobile Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background-color: #ffffff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 100px 0 2rem;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
        z-index: 2000;
        overflow-y: auto;
        overflow-x: hidden;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        -webkit-overflow-scrolling: touch;
    }

    .nav-links.active {
        right: 0;
    }

    /* Mobile Navigation Items */
    .nav-links > li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid #e0e0e0;
        width: 100%;
    }

    .nav-links > li > a {
        display: block;
        width: 100%;
        padding: 1.8rem 2.5rem;
        font-size: 1.7rem;
        font-weight: 600;
        border-left: 4px solid transparent;
        box-sizing: border-box;
    }

    .nav-links > li > a::after {
        display: none;
    }

    .nav-links > li > a:hover,
    .nav-links > li > a.active {
        background-color: rgba(105, 180, 172, 0.08);
        border-left-color: #69b4ac;
    }

    /* Mobile Dropdown Indicators */
    .has-dropdown > a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .has-dropdown > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 1.4rem;
        margin-left: auto;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .has-dropdown.active > a::after {
        transform: rotate(180deg);
    }

    /* Mobile Dropdown Menu */
    .dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background-color: #f9f9f9 !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    .has-dropdown.active > .dropdown-menu {
        max-height: 2000px;
        overflow: visible;
    }

    .dropdown-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        list-style: none;
    }

    .dropdown-menu a {
        display: block !important;
        padding: 1.5rem 2rem 1.5rem 3.5rem !important;
        font-size: 1.5rem;
        color: #333;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .dropdown-menu a:hover {
        padding-left: 4rem !important;
        background-color: rgba(105, 180, 172, 0.08);
    }

    /* Mobile Nested Dropdown */
    .nested-dropdown > a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .nested-dropdown > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 1.4rem;
        margin-left: auto;
        flex-shrink: 0;
        transition: transform 0.3s ease;
    }

    .nested-dropdown.active > a::after {
        transform: rotate(180deg);
    }

    .nested-dropdown-menu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background-color: rgba(0, 0, 0, 0.03) !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }

    .nested-dropdown.active > .nested-dropdown-menu {
        max-height: 2000px;
        overflow: visible;
    }

    .nested-dropdown-menu li {
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.03);
        list-style: none;
    }

    .nested-dropdown-menu a {
        display: block !important;
        padding: 1.2rem 2rem 1.2rem 5rem !important;
        font-size: 1.4rem;
        color: #333;
        text-decoration: none;
        transition: all 0.2s ease;
    }

    .nested-dropdown-menu a:hover {
        padding-left: 5.5rem !important;
        background-color: rgba(105, 180, 172, 0.08);
    }

    /* Doppelt verschachtelte Dropdowns (z.B. Mesotherapie unter Gesichtsbehandlungen) */
    .nested-dropdown-menu .nested-dropdown > a {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .nested-dropdown-menu .nested-dropdown > a::after {
        content: '\f107';
        font-family: 'Font Awesome 5 Free';
        font-weight: 900;
        font-size: 1.3rem;
        margin-left: auto;
        flex-shrink: 0;
    }

    .nested-dropdown-menu .nested-dropdown.active > a::after {
        transform: rotate(180deg);
    }

    .nested-dropdown-menu .nested-dropdown-menu {
        background-color: rgba(0, 0, 0, 0.05) !important;
        position: static !important;
        width: 100% !important;
    }

    .nested-dropdown-menu .nested-dropdown-menu a {
        display: block !important;
        padding: 1rem 2rem 1rem 6.5rem !important;
        font-size: 1.3rem;
    }

    .nested-dropdown-menu .nested-dropdown-menu a:hover {
        padding-left: 7rem !important;
    }

    /* Dark Overlay */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: -1;
    }

    .nav-links.active::before {
        opacity: 1;
        visibility: visible;
    }
}

/* Very Small Screens */
@media (max-width: 480px) {
    .logo {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .nav-links {
        width: 90%;
    }
}

