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

    --text-secondary: #86868B;
    --border-color: rgba(0, 0, 0, 0.15);
    --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, 
        "Helvetica Neue", Arial, sans-serif;
    --font-family-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, 
        "Helvetica Neue", Arial, sans-serif;
}

.nav {
    position: relative;
    z-index: 1002;
    display: block;
    font-size: 1.2rem;
    line-height: 170%;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    border-radius: 0;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: saturate(250%) blur(20px);
    -webkit-backdrop-filter: saturate(250%) blur(20px);
    border-bottom: none;
    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) invert(1);
    transition: filter 0.3s ease;
}

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

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

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    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: #ffffff;
}

.secondary-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    left: 0;
    right: 0;
    font-size: 1.2rem;
    line-height: 170%;
    color: var(--nav-color);
    background-color: rgba(248, 248, 248, 0.95);
    backdrop-filter: saturate(250%) blur(20px);
    -webkit-backdrop-filter: saturate(250%) blur(20px);
    font-family: var(--font-family-body);
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.secondary-nav .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    max-width: 980px;
    gap: 500px;
}

.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: 16px;
}

.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 .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;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        padding: 0 16px;
        font-size: 19px;
        font-weight: 600;
        position: relative;
    }

    .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: rgba(255, 255, 255, 0.8);
        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) invert(1);
    }

    .mobile-nav-container .logo-link:hover .nav-logo {
        filter: brightness(0) invert(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: rgba(255, 255, 255, 0.8);
        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-item.overview-button-mobile {
        display: none;
    }

    .mobile-search-container {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 10px 16px;
        width: 100%;
    }
    
    .mobile-search-button {
        display: flex;
        align-items: center;
        width: 90%;
        height: 32px;
        background-color: var(--background-light);
        border-radius: 12px;
        border: 1px solid var(--border-color);
        padding: 0 12px;
    }
    
    .mobile-search-input {
        width: 100%;
        height: 100%;
        border: none;
        background: transparent;
        font-size: 14px;
        font-weight: 400;
        color: var(--text-primary);
        outline: none;
        font-family: var(--font-family-body);
    }
}

.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(0, 0, 0, 0.9);
    backdrop-filter: saturate(250%) blur(20px);
    -webkit-backdrop-filter: saturate(250%) blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    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: rgba(255, 255, 255, 0.8);
    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: #ffffff;
}

.overview-button {
    display: none;
}

.overview-button:hover {
    background-color: var(--background-light);
    color: var(--nav-hover-color);
}

.search-container {
    display: flex;
    align-items: center;
}

.search-button {
    display: flex;
    align-items: center;
    width: auto;
    height: 25px;
    background-color: #f2f2f7;
    border-radius: 12.5px;
    border: none;
    padding: 0 12px;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-button:hover {
    background-color: #e5e5ea;
}

.search-icon {
    font-size: 12px;
    color: #86868b;
    margin-right: 6px;
}

.search-text {
    font-size: 12px;
    font-weight: 400;
    color: #86868b;
    font-family: var(--font-family-body);
}

.search-input {
    width: 100px;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-primary);
    outline: none;
    font-family: var(--font-family-body);
}

.search-input::placeholder {
    color: var(--text-secondary);
}

/* Fade Screen für den Overlay-Effekt */
.fade-screen {
  background: rgba(0, 0, 0, 0.2);
  visibility: hidden;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fade-screen.visible {
  visibility: visible;
  opacity: 1;
}

/* Suchfeld Container */
.menu-search-container {
  display: none;
  position: absolute;
  top: 48px;
  left: 0;
  right: 0;
  background-color: #ffffff;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation-name: specialFadeIn;
  animation-duration: 400ms;
  animation-fill-mode: both;
  transition: opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.menu-search-container.closing {
  animation-name: specialFadeOut;
  animation-duration: 400ms;
  animation-fill-mode: both;
}

.menu-search-input {
  padding: 20px;
  display: flex;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.menu-search-input form {
  display: flex;
  align-items: center;
  width: 100%;
}

.menu-search-input form a {
  margin-right: 15px;
  color: var(--text-secondary);
}

.menu-search-input form input {
  flex: 1;
  border: none;
  background: white;
  height: 40px;
  border-radius: 8px;
  padding: 0 15px;
  font-size: 16px;
  font-family: var(--font-family-body);
  color: var(--text-primary);
}

.menu-search-input form input:focus {
  outline: none;
}

.menu-search-close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: var(--text-secondary);
  text-decoration: none;
}

.close-button {
  display: flex;
  align-items: center;
  width: auto;
  height: 25px;
  background-color: #f2f2f7;
  border-radius: 12.5px;
  border: none;
  padding: 0 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.close-button:hover {
  background-color: #e5e5ea;
}

.close-icon {
  font-size: 12px;
  color: #86868b;
  margin-right: 6px;
}

.close-text {
  font-size: 12px;
  font-weight: 400;
  color: #86868b;
  font-family: var(--font-family-body);
}

.search-sub-menu {
  background: #ffffff;
  padding: 0 20px 20px;
  max-width: 980px;
  margin: 0 auto;
}

.search-sub-menu h3 {
  font-family: var(--font-family-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.search-sub-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-sub-menu ul li {
  margin-bottom: 8px;
}

.search-sub-menu ul li a {
  color: var(--button-color);
  text-decoration: none;
  font-size: 14px;
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
}

.search-sub-menu ul li a:hover {
  background-color: #f2f2f7;
}

/* Animationen */
@-webkit-keyframes specialFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
  }
}

@keyframes specialFadeIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
  }
}
.specialFadeIn {
  -webkit-animation-name: specialFadeIn;
          animation-name: specialFadeIn;
}

@-webkit-keyframes specialFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}

@keyframes specialFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    transform: scale(0.8);
  }
}
.specialFadeOut {
  -webkit-animation-name: specialFadeOut;
          animation-name: specialFadeOut;
}

@-webkit-keyframes specialFadeInRight {
  from {
    opacity: 0;
    transform: translate3d(10%, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes specialFadeInRight {
  from {
    opacity: 0;
    transform: translate3d(10%, 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.specialFadeInRight {
  -webkit-animation-name: specialFadeInRight;
          animation-name: specialFadeInRight;
}

.visible {
  visibility: visible;
}

.hidden {
  display: none;
  transition: opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.menu-search-input {
  -webkit-animation-name: specialFadeInRight;
          animation-name: specialFadeInRight;
  -webkit-animation-duration: 400ms;
          animation-duration: 400ms;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
  -webkit-animation-delay: 350ms;
          animation-delay: 350ms;
}

.search-sub-menu h3 {
  -webkit-animation-name: specialFadeInRight;
          animation-name: specialFadeInRight;
  -webkit-animation-duration: 700ms;
          animation-duration: 700ms;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}

.search-sub-menu ul li {
  -webkit-animation-name: specialFadeInRight;
          animation-name: specialFadeInRight;
  -webkit-animation-duration: 500ms;
          animation-duration: 500ms;
  -webkit-animation-fill-mode: both;
          animation-fill-mode: both;
}
.search-sub-menu ul li:nth-child(1) {
  -webkit-animation-delay: 0ms;
          animation-delay: 0ms;
}
.search-sub-menu ul li:nth-child(2) {
  -webkit-animation-delay: 30ms;
          animation-delay: 30ms;
}
.search-sub-menu ul li:nth-child(3) {
  -webkit-animation-delay: 50ms;
          animation-delay: 50ms;
}
.search-sub-menu ul li:nth-child(4) {
  -webkit-animation-delay: 70ms;
          animation-delay: 70ms;
}
.search-sub-menu ul li:nth-child(5) {
  -webkit-animation-delay: 90ms;
          animation-delay: 90ms;
}

@media (max-width: 768px) {
    .secondary-nav {
        position: sticky;
        top: 0;
        display: block;
        z-index: 1000;
        background-color: rgba(248, 248, 248, 0.95);
        backdrop-filter: saturate(250%) blur(20px);
        -webkit-backdrop-filter: saturate(250%) blur(20px);
        height: 52px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .desktop-nav-link {
        display: none !important;
    }
    
    .mobile-nav-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        height: 100%;
        padding: 0 20px;
        color: var(--text-primary);
    }
    
    .mobile-nav-text {
        font-family: var(--font-family-heading);
        font-size: 20px;
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .secondary-nav .nav-container {
        padding: 0;
        height: 52px;
    }
    
    .secondary-nav .nav-left {
        display: flex;
        align-items: center;
        width: 100%;
        height: 100%;
    }
    
    .mobile-nav-right {
        display: flex;
        align-items: center;
    }
    
    .mobile-search-button {
        display: flex;
        align-items: center;
        background-color: #e7e7e7;
        padding: 7px 15px;
        border-radius: 18px;
        color: #707070;
    }
    
    .mobile-nav-arrow {
        font-size: 12px;
        margin-left: 5px;
    }
}

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

.mobile-search-icon {
    font-size: 16px;
    color: var(--nav-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-search-icon:hover {
    color: var(--nav-hover-color);
}

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

@media (max-width: 768px) {
    .mobile-nav-right {
        display: flex;
        align-items: center;
    }
    
    .mobile-search-button {
        display: flex;
        align-items: center;
        background-color: #e7e7e7;
        padding: 7px 15px;
        border-radius: 18px;
        color: #707070;
    }
}

/* Such-Icon für Mobile */
.mobile-search-button {
    display: flex;
    align-items: center;
    background-color: #e7e7e7;
    padding: 7px 15px;
    border-radius: 18px;
    color: #707070;
    font-size: 14px;
}

.mobile-search-icon {
    font-size: 14px;
    margin-right: 6px;
}

.mobile-search-text {
    font-size: 14px;
    font-weight: 400;
    color: #707070;
    font-family: var(--font-family-body);
}

@media (max-width: 768px) {
    .mobile-search-button {
        display: flex;
        align-items: center;
        background-color: #e7e7e7;
        padding: 7px 15px;
        border-radius: 18px;
        color: #707070;
    }
}
