/* Befehlspalette, Mehrfachauswahl und Hinweis mit Rückgängig (static/palette.js). Öffnet ohne Animation. */

/* ---------- Befehlspalette ---------- */
/* Abdunklung ohne Unschärfe, die Karte darüber ist dichtes Glas (Baustein in style.css), Zeilen konzentrisch zur Karte */
.pl-hinter { position: fixed; inset: 0; z-index: 95; display: flex; justify-content: center; align-items: flex-start; padding: max(12vh, calc(16px + var(--so))) 16px 16px; background: var(--abdunkeln); }
.pl-karte { width: min(600px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border-radius: var(--rund-flaeche); overflow: hidden; }
.pl-kopf { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: var(--haar) solid var(--linie); }
.pl-feld { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: none; font-size: 16px; color: var(--text); }
.pl-feld::placeholder { color: var(--text-3); }
.pl-liste { list-style: none; margin: 0; padding: 6px; overflow-y: auto; max-height: calc(7.5 * 44px + 12px); overscroll-behavior: contain; scroll-padding: 6px; }
.pl-zeile { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border-radius: calc(var(--rund-flaeche) - 6px); cursor: pointer; font-size: 14px; }
.pl-zeile.aktiv { background: var(--flaeche-2); }
.pl-titel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.pl-unter { margin-left: 8px; color: var(--text-3); font-size: 12.5px; }
.pl-an { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--meer-g); color: var(--meer-t); font-size: 11px; font-weight: 500; vertical-align: 1px; }
.pl-gruppe { flex: none; color: var(--text-3); font-size: 12px; }
.pl-kuerzel { flex: none; display: inline-flex; gap: 3px; }
.pl-leer { padding: 18px 16px 20px; color: var(--text-2); font-size: 13.5px; }
.pl-fuss { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 9px 14px; border-top: var(--haar) solid var(--linie); color: var(--text-3); font-size: 12px; }
.pl-fuss span { display: inline-flex; align-items: center; gap: 4px; }
.pl-esc { flex: none; }
@media (max-width: 759px) {
  .pl-hinter { padding-top: calc(10px + var(--so)); }
  .pl-gruppe { display: none; }
  .pl-fuss { display: none; }
}

/* ---------- Mehrfachauswahl ---------- */
.liste.mit-auswahl .zeile { user-select: none; }
.zeile.gewaehlt { background: var(--meer-g); }
.zeile.gewaehlt:hover { background: var(--meer-g); }
.zeile.gewaehlt::before {
  content: ""; position: absolute; left: 6px; top: 8px; width: 16px; height: 16px; border-radius: 50%; z-index: 1;
  background: var(--ungelesen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
  box-shadow: 0 0 0 2px var(--grund);
}
.auswahl-leiste {
  flex: none; display: grid; gap: 6px;
  margin: 0 8px 8px; padding: 6px 8px 8px; border-radius: var(--rund); background: var(--grund); box-shadow: var(--schatten);
}
.al-kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-left: 6px; }
.al-zahl { font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.al-knoepfe { display: flex; gap: 6px; }
.al-knoepfe > .knopf, .al-label { flex: 1; min-width: 0; }
.al-knoepfe .knopf { justify-content: center; padding: 0 8px; white-space: nowrap; }
.al-label .knopf { width: 100%; }
.al-label { position: relative; }
.al-labels { right: 0; bottom: calc(100% + 6px); width: 220px; padding: 8px; }
.al-labels .pop-zeile { justify-content: flex-start; gap: 8px; }

@media (max-width: 759px) {
  .auswahl-leiste { margin: 0 6px 8px; }
  .auswahl-leiste .klein-knopf { height: 36px; }
}
