:root {
    /* Colors */
    --background-light: #F2F2F7;
    --nav-background: rgba(255, 255, 255, 0.8);
    --nav-color: rgba(0, 0, 0, 0.8);
    --nav-hover-color: #000000;
    --button-color: #0071e3;
    --button-hover-color: #0077ED;

    --text-secondary: #86868B;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --button-shadow: rgba(0, 113, 227, 0.3);
    --card-background: #ffffff;
    --text-primary: #1d1d1f;
    --footer-background: #f5f5f7;
    --footer-textColor: #515154;
    --footer-textColor-hover: #1d1d1f;

    /* Font Sizes */
    --font-xs: 12px;
    --font-sm: 14px;
    --font-base: 16px;
    --font-lg: 20px;
    --font-xl: 22px;
    --font-2xl: 24px;

    /* Line Heights */
    --line-height-large: 170%;

    /* Andere */
    --border-radius: 12px;

    /* Font-Family Variablen aktualisiert */
    --font-family-heading: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
        "Helvetica Neue", Arial, sans-serif;
    --font-family-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 
        "Helvetica Neue", Arial, sans-serif;

    --border-color: rgba(0, 0, 0, 0.15);
}

.nav {
    position: sticky;
    top: 0;
    z-index: 1002;
    display: block;
    font-size: 1.2rem;
    line-height: 170%;
    color: var(--nav-color);
    width: 100%;
    border-radius: 0;
    background-color: var(--nav-background);
    backdrop-filter: saturate(250%) blur(20px);
    -webkit-backdrop-filter: saturate(250%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    font-family: var(--font-family-body);
}

.nav:after {
    display: none;
}

.nav-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 50px;
    justify-content: center;
}

.mobile-nav-container {
    display: none;
}

.nav-logo {
    width: auto;
    height: 20px;
    filter: brightness(0) opacity(0.8);
    transition: filter 0.3s ease;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-link:hover .nav-logo {
    filter: brightness(0) opacity(1);
}

.nav-link {
    color: var(--nav-color);
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    font-family: var(--font-family-body);
}

.nav-link:hover {
    color: var(--nav-hover-color);
}

.secondary-nav {
    display: none;
}

.secondary-nav .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.secondary-nav::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
    transition: opacity 0.3s ease;
}

.secondary-nav.dropdown-open::after {
    opacity: 0;
}

.nav-left a {
    color: var(--nav-color);
    font-size: 19px;
    font-weight: 600;
    &:not(.hero-button) {
        color: var(--nav-color);
        font-size: 19px;
        font-weight: 600;
    }
    font-family: var(--font-family-heading);
}

.nav-left a .subtitle {
    font-size: 12px;
    font-weight: 400;
    margin-top: -8px;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-right .nav-link {
    position: relative;
    height: 100%;
    color: var(--nav-color);
    transition: color 0.3s ease;
}

.nav-right .nav-link.active {
    color: var(--nav-hover-color);
}

.nav-right .nav-link.active:after {
    content: '';
    position: absolute;
    bottom: -9px; /*Das ist die linie*/
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--nav-hover-color);
}

.hero-button {
    background: var(--button-color);
    color: white;
    border: none;
    width: 120px;
    height: 24px;
    border-radius: 980px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    text-decoration: none;
}

.hero-button:hover {
    background: var(--button-hover-color);
}

.mobile-back-button {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--nav-color);
}

.mobile-back-button i {
    font-size: 18px;
}

.mobile-nav-title {
    display: none;
    font-family: var(--font-family-heading);
}

.desktop-nav-link {
    display: block !important;
}

@media (max-width: 1068px) {
    .secondary-nav {
        display: none;
    }
    
    .nav {
        position: sticky;
        top: 0;
    }

    .secondary-nav .nav-right {
        display: none;
    }

    .secondary-nav .nav-container {
        padding: 0;
        height: 48px;
    }

    .secondary-nav .nav-left {
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
    }

    .mobile-nav-title {
        display: flex;
        align-items: center;
        padding-left: 16px;
        flex-grow: 1;
        padding-right: 32px;
        height: 100%;
        color: var(--nav-color);
        font-size: 19px;
        font-weight: 600;
        justify-content: space-between;
    }

    .mobile-nav-right {
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .secondary-nav .mobile-nav-right .hero-button {
        display: flex;
        width: 120px;
        color: white !important;
        font-size: 12px !important;
        font-weight: 500 !important;
    }

    .mobile-nav-text {
        text-align: left;
    }

    .mobile-nav-arrow {
        font-size: 14px;
        color: var(--nav-color);
        transition: transform 0.3s ease;
        cursor: pointer;
    }

    .secondary-nav .nav-left .nav-link {
        display: none;
    }

    .desktop-nav-link {
        display: none !important;
    }

    .nav .nav-container {
        padding: 0;
        height: 48px;
        justify-content: flex-start;
    }

    .nav .nav-link:not(.logo-link) {
        display: none;
    }

    .desktop-only {
        display: none;
    }

    .mobile-nav-container {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        height: 100%;
    }

    .mobile-nav-container .logo-link {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .mobile-nav-container .nav-logo {
        height: 22px;
        width: auto;
        filter: brightness(0) opacity(0.8);
    }

    .mobile-nav-container .logo-link:hover .nav-logo {
        filter: brightness(0) opacity(1);
    }

    .menu-button {
        display: flex;
        background: none;
        border: none;
        padding: 8px;
        cursor: pointer;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        height: 100%;
        width: 48px;
    }

    .menu-line {
        display: block;
        background-color: var(--nav-color) !important;
        width: 18px;
        height: 1px;
        margin: 4px 0;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .menu-button.active .menu-line:first-child {
        transform: translateY(5px) rotate(45deg);
    }

    .menu-button.active .menu-line:last-child {
        transform: translateY(-5px) rotate(-45deg);
    }

    .nav-container {
        padding: 0;
        gap: 0;
    }

    .desktop-only {
        display: none;
    }

    .mobile-nav-container {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0 16px;
        height: 100%;
    }
}

.mobile-dropdown {
    position: absolute;
    top: 48px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(250%) blur(20px);
    -webkit-backdrop-filter: saturate(250%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.mobile-dropdown.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mobile-dropdown-content {
    padding: 8px 0;
}

.mobile-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--nav-color);
    text-decoration: none;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(var(--item-index) * 0.05s);
    font-family: var(--font-family-body);
}

.mobile-dropdown.show .mobile-dropdown-item {
    opacity: 1;
    transform: translateY(0);
}

.mobile-dropdown-item.active {
    color: var(--nav-hover-color);
}

.mobile-nav-arrow.rotated {
    transform: rotate(180deg);
}

.content-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    pointer-events: none;
}

.content-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dropdown-text {
    position: relative;
    padding-left: 16px;
}

.dropdown-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 18px;
    background-color: var(--nav-hover-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-dropdown-item.active .dropdown-text::before {
    opacity: 1;
}

.main-dropdown {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(250%) blur(20px);
    -webkit-backdrop-filter: saturate(250%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1003;
}

.main-dropdown.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.main-dropdown-content {
    padding: 8px 0;
}

.main-dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--nav-color);
    text-decoration: none;
    font-size: 14px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(var(--item-index) * 0.05s);
    font-family: var(--font-family-body);
}

.main-dropdown.show .main-dropdown-item {
    opacity: 1;
    transform: translateY(0);
}

.main-dropdown-item:hover {
    color: var(--nav-hover-color);
}
