.custom-navbar-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 700px;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px;
    z-index: 9999;
    border: 0.5px solid rgba(99, 98, 98, 0.158);
    font-family: Arial, sans-serif;
    font-weight: bold;
  }

  .custom-nav-link {
    text-decoration: none;
    color: black;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
    flex: none;
    margin-left: 0;
    position: absolute;
    left: 20px;
}

.custom-menu-title {
    flex: 1;
    text-align: center;
}

.custom-social-icon {
  text-decoration: none;
  color: black;
  font-size: 8px;
  cursor: pointer;
  transition: color 0.3s ease;
  position: absolute;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60%;
}

.custom-social-icon i {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}


  
  .custom-nav-link, .custom-menu-title, .custom-social-icon {
    text-decoration: none;
    color: black;
    font-size: 8px;
    cursor: pointer;
    transition: color 0.3s ease;
    flex: 1;
    text-align: center;
  }
  
  .custom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9997;
    display: none;
    transition: opacity 0.5s ease;
  }
  
  .custom-menu-popup {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%) scaleY(0) scaleX(0.005);
    width: 95%;
    max-width: 1300px;
    height: 85vh;
    background: white;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: bottom 0.4s ease-out, transform 0.6s ease-out, border-radius 0.6s ease-out;
    z-index: 9998;
    display: none;
    overflow-y: hidden;
    text-align: center;
    opacity: 0;
}

.custom-menu-popup.open {
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 10%;
    animation: slide-expand 0.9s ease-out forwards;
    opacity: 1;
}

.custom-menu-popup.closing {
    animation: slide-collapse 0.9s ease-out forwards;
}

@keyframes slide-expand {
    0% {
        bottom: -100%;
        transform: translateX(-50%) scaleY(0.002) scaleX(0.002);
        border-radius: 5px;
        opacity: 0;
    }
    50% {
        bottom: 10%;
        transform: translateX(-50%) scaleY(1) scaleX(0.002);
        opacity: 1;
    }
    100% {
        bottom: 10%;
        transform: translateX(-50%) scaleY(1) scaleX(1);
        border-radius: 5px;
        overflow-y: auto;
    }
}

@keyframes slide-collapse {
    0% {
        bottom: 10%;
        transform: translateX(-50%) scaleY(1) scaleX(1);
        border-radius: 5px;
        opacity: 1;
    }
    50% {
        bottom: 10%;
        transform: translateX(-50%) scaleY(1) scaleX(0.002);
        opacity: 1;
    }
    100% {
        bottom: -100%;
        transform: translateX(-50%) scaleY(0.002) scaleX(0.002);
        border-radius: 5px;
        opacity: 0;
    }
}

  .popup-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-transform: uppercase;
  }
  
  .custom-overlay.show {
    display: block;
    opacity: 1;
  }
  
  .custom-popup-content {
    display: flex;
    justify-content: space-between;
    gap: 1px;
    width: 100%;
    text-align: left;
}
.custom-popup-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.custom-popup-content ul li {
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

.custom-popup-content ul li:last-child {
  border-bottom: none;
}

.custom-popup-content ul li:hover {
  background-color: #f5f5f5;
}

  
  .popup-column {
    flex: 1;
    min-width: 200px;
  }
  
  .popup-column h3 {
    margin-bottom: 10px;
    font-size: 20px;
    color: #333;
  }
  
  .popup-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .popup-column ul li {
    margin: 8px 0;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.3s ease;
  }
  
  .custom-close-popup {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 32px;
    line-height: 1;
    color: #000;
    cursor: pointer;
    z-index: 9999;
    transition: transform 0.2s ease;
  }
  
  .custom-close-popup:hover {
    transform: scale(1.1);
  }

  @media (max-width: 768px) {
    .custom-navbar-container {
      width: 90%;
    }
  
    .custom-nav-link,
    .custom-menu-title,
    .custom-social-icon {
      font-size: 14px;
    }

    .custom-menu-popup > .flex {
      flex-direction: column;
      height: auto;
    }
  
    .custom-menu-popup > .flex > div:first-child {
      padding-right: 0;
      flex: unset;
      width: 100%;
    }
  
    .custom-menu-popup .w-\[300px\] {
      position: static !important;
      width: 100% !important;
      height: auto !important;
      padding: 24px 20px;
      background-color: #d5c9b9;
      overflow: visible;
      z-index: 1;
    }
  
    .custom-menu-popup {
      height: 95vh;
      overflow-y: auto;
    }
  
    .popup-title {
      font-size: 22px !important;
    }
  
    .grid-cols-2 {
      grid-template-columns: 1fr !important;
    }
  
    .md\:grid-cols-4 {
      grid-template-columns: 1fr !important;
    }

    .custom-close-popup {
      top: 10px;
      right: 10px;
      font-size: 28px;
    }
  }
  
  @media (max-width: 480px) {
    .custom-navbar-container {
      max-width: 90%;
      min-width: 260px;
      flex-wrap: nowrap;
      justify-content: space-between;
      gap: 10px;
      padding: 10px 20px;
    }
  
    .custom-nav-link,
    .custom-menu-title,
    .custom-social-icon {
      position: static !important;
      flex: 1;
      font-size: 15px;
      text-align: center;
      white-space: nowrap;
    }
  
    .custom-social-icon i {
      font-size: 20px;
    }
  }
  

.dropdown-content {
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
}

.dropdown-content.hidden {
  max-height: 500px;
  opacity: 1;
}

.nav-item {
  position: relative;
  display: inline-block;
  font-size: 13px;
  font-family: sans-serif;
  color: #000;
  padding-bottom: 10px;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 74px;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.2);
}

/* Linie beim letzten Punkt ausblenden */
.no-line .nav-item::after {
  display: none;
}

/* Hover: dunklere Linie */
.nav-item:hover::after {
  background-color: rgba(0, 0, 0, 0.6);
}




.praxis-link {
  display: block;
  position: relative;
  padding-bottom: 6px;
  font-size: 14px;
  text-align: left;
}

.praxis-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 1px;
  background-color: rgb(255, 255, 255);
}

.praxis-link.no-line::after {
  display: none;
}
