/* Eigene Dropdowns (siehe js/dropdown.js) */

.dd-native { display: none !important; }

.dd { position: relative; width: 100%; min-width: 0; }

.dd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(1, 16, 21, 0.75);
  color: var(--text);
  font: inherit;
  font-size: 0.94rem;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.dd-btn:hover:not(:disabled) { border-color: rgba(24, 223, 207, 0.6); }
.dd-btn:focus-visible, .dd.is-open .dd-btn { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(24, 223, 207, 0.14); }
.dd-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.dd-btn > svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.dd.is-open .dd-btn > svg { transform: rotate(180deg); stroke: var(--accent); }

.dd-value { display: flex; align-items: center; gap: 9px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-value.is-placeholder { color: #6c8f8f; }
.dd-dot { flex: none; display: inline-block; width: 10px; height: 10px; border-radius: 50%; }

.dd-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.dd-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(24, 223, 207, 0.1); font-size: 0.84rem; }
.dd-chip i { width: 8px; height: 8px; border-radius: 50%; }

.dd-list {
  position: fixed;
  z-index: 1000;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #05222a;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  animation: dd-in 0.14s ease-out;
}
.dd-list[hidden] { display: none; }
@keyframes dd-in { from { transform: translateY(-4px); } }

.dd-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  color: #cfe6e5;
  font-size: 0.92rem;
  cursor: pointer;
}
.dd-opt-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dd-opt-label small { display: block; color: #6c8f8f; font-size: 0.78rem; }
.dd-opt:hover:not(.is-disabled), .dd-opt.is-active { background: rgba(24, 223, 207, 0.12); color: var(--text); }
.dd-opt.is-selected { color: var(--accent); font-weight: 600; }
.dd-opt.is-disabled { opacity: 0.4; cursor: not-allowed; }
.dd-check { flex: none; width: 16px; height: 16px; }
.dd-check svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Mehrfachauswahl: Haken in einem Kaestchen */
.dd-multi .dd-check { display: grid; place-items: center; border: 1.5px solid var(--line-strong); border-radius: 5px; }
.dd-multi .dd-opt.is-selected .dd-check { background: rgba(24, 223, 207, 0.18); border-color: var(--accent); }
.dd-multi .dd-check svg { width: 12px; height: 12px; }
