.ct-main-nav__list {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.45) transparent;
}

.ct-main-nav__list::-webkit-scrollbar {
  height: 8px;
}

.ct-main-nav__list::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.45);
  border-radius: 999px;
}

.ct-main-nav__item {
  position: relative;
  flex: 0 0 auto;
}

.ct-main-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #e8ecf4;
  background: transparent;
  justify-content: flex-start;
  text-align: left;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.ct-main-nav__item.is-active > .ct-main-nav__link {
  background: rgba(148, 163, 184, 0.2);
  color: #f8fafc;
}

.ct-main-nav__link:hover,
.ct-main-nav__link:focus-visible {
  background: rgba(148, 163, 184, 0.24);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.ct-main-nav__icon img {
  width: 18px;
  height: 18px;
  display: block;
}

.ct-main-nav__label {
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.ct-dropdown {
  position: absolute;
  left: 0; /* Firefox-kompatibel statt inset-inline-start */
  top: 100%;
  margin-top: 0; /* Kein Lücke zum Trigger */
  background: var(--gradient-dropdown); /* BRAUN */
  color: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(139, 115, 85, 0.35); /* Hellbraun Border */
  box-shadow: 0 16px 32px rgba(40, 30, 20, 0.45);
  padding: 16px 14px 14px;
  min-width: 220px;
  max-height: min(60vh, 520px);
  overflow: auto;
  display: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(82, 97, 125, 0.6) transparent;
  z-index: 30;
}

.ct-dropdown::-webkit-scrollbar {
  width: 8px;
}

.ct-dropdown::-webkit-scrollbar-thumb {
  background: rgba(82, 97, 125, 0.6);
  border-radius: 999px;
}

.ct-dropdown-item {
  list-style: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin: 0;
}

.ct-dropdown-item + .ct-dropdown-item {
  margin-top: 6px;
}

.ct-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: #f8fafc;
  font-weight: 500;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.ct-dropdown-link:hover,
.ct-dropdown-link:focus-visible {
  background: rgba(230, 220, 205, 0.92); /* Hellbraun/Beige */
  color: #3c3020; /* Dunkelbraun Text */
  outline: none;
  box-shadow: 0 0 0 1px rgba(139, 115, 85, 0.45);
}

.ct-dropdown-link[aria-disabled='true'],
.ct-dropdown-link.disabled {
  color: rgba(148, 163, 184, 0.7);
  cursor: not-allowed;
}

.ct-main-nav__item.is-open > .ct-dropdown,
.ct-main-nav__submenu-item.is-open > .ct-dropdown {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .ct-main-nav__link,
  .ct-dropdown,
  .ct-dropdown-link {
    transition: none;
  }
}
