/* --- Auswahlliste (DESIGN 5, AP 3.5) ----------------------------------------------------------
   Einträge mit Titel, Chip, Beschreibung und einer Nebenzeile, je ein Link; der gewählte trägt
   aria-current. Erster Nutzer: die Scan-Auswahl. */

.choice-list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.choice {
  display: grid;
  gap: 4px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-input);
  background: var(--surface-1);
  color: var(--text-1);
  text-decoration: none;
  transition: border-color var(--ease), background-color var(--ease);
}

.choice:hover {
  border-color: var(--border-strong);
}

.choice:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* Der gewählte Scan: Bernstein-Rand links und warmer Grund – Farbe ist nicht das einzige
   Zeichen, aria-current trägt es für Bildschirmleser. */
.choice[aria-current] {
  border-color: rgba(240, 174, 102, 0.45);
  background: linear-gradient(90deg, rgba(240, 174, 102, 0.1), rgba(240, 174, 102, 0.02) 60%), var(--surface-1);
  box-shadow: inset 3px 0 0 var(--accent);
}

.choice__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.choice__title {
  font-weight: 500;
}

.choice__text {
  color: var(--text-2);
  font-size: 0.8125rem;
  line-height: 1.125rem;
}

.choice__meta {
  color: var(--text-2);
  font-size: 0.75rem;
  line-height: 1rem;
}

.choice[aria-current] .choice__meta {
  color: var(--accent);
}

.prefilter {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Ä-64: Die Liste ist ein Feld des Formulars „Scannen“ – ohne eigenes Formular und Knopf. */
.prefilter__list {
  margin: 0;
}

/* Die Beschriftung steht über dem Suchfeld: Die Vorschlagskarte schwebt unmittelbar darunter
   (`top: calc(100% + 8px)`, AP 3.1, Review). Der Erklärtext steht seit Ä-33 im Info-Symbol
   daneben; der Abstand zum Feld ist der eines gewöhnlichen Felds (`.field`, 6 px). */
.prefilter__search > .with-info {
  margin-bottom: 6px;
}

.prefilter__summary {
  /* Abgesetzt wie ein Kartenfuß, ohne einer zu sein: Die Karte trägt weiter unten den Knopf. */
  margin: 0;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-subtle);
}
