/* auswahl.css — Vorschlagsliste unter Länder-Eingabefeldern (js/auswahl.js).
   Farbe: --auswahl-farbe (Standard: --akzent der Seite). */
.vorschlag { --af: var(--auswahl-farbe, var(--akzent, var(--sky))); position: relative; min-width: 0; }
.vorschlag > input { width: 100%; }
/* Lupe links im Feld */
.vorschlag::before {
  content: ""; position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
  pointer-events: none; opacity: .55; background: var(--ink-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat;
}
.vorschlag > input { padding-left: 40px !important; }
.vorschlag:focus-within::before { background: var(--af); opacity: .9; }

.vorschlag-liste {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60;
  list-style: none; margin: 0; padding: 6px;
  max-height: min(264px, 46vh); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-panel);
  border: 1px solid color-mix(in srgb, var(--af) 45%, var(--line));
  border-radius: var(--radius-sm, 12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0, 0, 0, .05);
  scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--af) 45%, var(--line)) transparent;
  animation: vorschlag-auf .14s ease-out;
}
:root[data-theme="light"] .vorschlag-liste { box-shadow: 0 14px 34px rgba(60, 45, 20, .14); }
@keyframes vorschlag-auf { from { opacity: 0; transform: translateY(-4px); } }
.vorschlag-liste li {
  padding: 10px 12px; border-radius: 8px; cursor: pointer;
  font-weight: 600; font-size: 1rem; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vorschlag-liste li + li { margin-top: 2px; }
.vorschlag-liste li[aria-selected="true"] { background: color-mix(in srgb, var(--af) 20%, var(--bg-panel)); }
.vorschlag-liste mark { background: none; color: var(--af); font-weight: 800; }
:root[data-theme="light"] .vorschlag-liste mark { color: color-mix(in srgb, var(--af) 70%, #000); }
.vorschlag-liste li.leer { cursor: default; color: var(--ink-muted); font-weight: 400; font-style: italic; }
@media (prefers-reduced-motion: reduce) { .vorschlag-liste { animation: none; } }
