/* AkcjoPilot - Suche (Umbau Runde 2, 15.11.2026). Nur bei UMBAU geladen.
   Eigene Farbwerte hell/dunkel (wie die anderen Umbau-Dateien: prefers-color-scheme bzw. data-theme am <html>).
   Kontrast (gerechnet): hell Text #16233a/#fff 15,7; grau #4b5563/#fff 7,6; Akzent #1f5fa8/#fff 6,4;
   Plus #0a7a3f/#fff 5,4; Minus #b42a22/#fff 6,4.  dunkel Text #e6ebf2/#151d2a 14,0; grau #a9b4c3 8,2;
   Akzent #8bbcf2 8,3; Plus #4cc38a 8,0; Minus #ff9a90 8,1. */
/* Farben: umbau_farben.css (--us-* bilden auf die Palette ab) */

/* ---------- Zeilen (Desktop-Liste und Handy-Ebene) ---------- */
.us-zeile {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px;
  color: var(--us-text); text-decoration: none; border-bottom: 1px solid var(--us-linie);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.us-zeile.us-aktiv { background: var(--us-akz-hell); text-decoration: none; }
@media (hover: hover) { .us-zeile:hover { background: var(--us-akz-hell); text-decoration: none; } }
.us-zeile.us-aktiv { box-shadow: inset 3px 0 0 var(--us-akz); }
.us-zeile:focus-visible { outline: 3px solid var(--us-akz); outline-offset: -3px; }
.us-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.us-name { font-size: 16px; line-height: 1.25; font-weight: 500; color: var(--us-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-name mark { background: none; color: var(--us-akz); font-weight: 800; padding: 0; }
.us-meta { font-size: 12.5px; line-height: 1.3; color: var(--us-grau); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-meta .us-tr { color: var(--us-text); font-weight: 700; }
.us-typ { display: inline-block; margin-right: 6px; padding: 0 6px; border: 1px solid var(--us-linie); border-radius: 4px; font-size: 11.5px; font-weight: 600; color: var(--us-grau); }
.us-typ + .us-pkt { display: none; }
.us-zahl { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-variant-numeric: tabular-nums; }
.us-kurs { font-size: 15px; font-weight: 600; color: var(--us-text); white-space: nowrap; }
.us-pct { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.us-pos { color: var(--us-pos); }
.us-neg { color: var(--us-neg); }
.us-abschnitt { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 4px; }
.us-titel { font-size: 13px; font-weight: 700; color: var(--us-grau); }
.us-link { min-height: 44px; min-width: 44px; margin: -10px -8px -10px 0; padding: 0 8px; background: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--us-akz); cursor: pointer; }
.us-link:focus-visible { outline: 3px solid var(--us-akz); border-radius: 6px; }
.us-leer { padding: 20px 16px 24px; color: var(--us-text); }
.us-leer p { margin: 0 0 14px; font-size: 15px; line-height: 1.45; }
.us-weiter { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border: 1px solid var(--us-akz); border-radius: 10px; color: var(--us-akz); font-weight: 600; text-decoration: none; }
.us-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Desktop: Liste unter dem Feld ---------- */
.us-box {
  position: absolute; z-index: 400; top: calc(100% + 6px); left: 0; right: 0; min-width: min(460px, calc(100vw - 16px));
  max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--us-bg); border: 1px solid var(--us-linie); border-radius: 12px; box-shadow: var(--us-schatten);
}
.us-box[hidden] { display: none; }
.us-box .us-zeile:last-child { border-bottom: 0; }

/* ---------- Handy: Such-Ebene ---------- */
html.us-offen, html.us-offen body { overflow: hidden; }
.us-ebene {
  position: fixed; left: 0; right: 0; top: var(--us-t, 0px); height: var(--us-h, 100dvh); z-index: 5000;
  display: flex; flex-direction: column; background: var(--us-bg); color: var(--us-text);
}
.us-ebene[hidden] { display: none; }
.us-kopf { flex: none; display: flex; align-items: center; gap: 4px; padding: 8px 10px 8px 4px; border-bottom: 1px solid var(--us-linie); background: var(--us-bg); }
.us-zu { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--us-text); border-radius: 50%; cursor: pointer; padding: 0; }
.us-zu svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.us-eingabe { flex: 1 1 auto; min-width: 0; position: relative; display: flex; align-items: center; }
.us-lupe { position: absolute; left: 12px; width: 20px; height: 20px; stroke: var(--us-grau); fill: none; stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.us-feld { width: 100%; height: 48px; padding: 0 44px 0 40px; font: inherit; font-size: 16px; color: var(--us-text); background: var(--us-feld); border: 2px solid var(--us-linie); border-radius: 24px; -webkit-appearance: none; appearance: none; }
.us-feld::placeholder { color: var(--us-grau); opacity: 1; }
.us-feld:focus { outline: none; border-color: var(--us-akz); }
.us-x { position: absolute; right: 2px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--us-grau); cursor: pointer; padding: 0; border-radius: 50%; }
.us-x[hidden] { display: none; }
.us-x svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.us-zu:focus-visible, .us-x:focus-visible { outline: 3px solid var(--us-akz); outline-offset: -3px; }
.us-liste { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); }
.us-liste[hidden] { display: block; }

/* ---------- Ergebnisliste auf /analyse ---------- */
.us-ergebnisse { margin: 6px 0 4px; border: 1px solid var(--us-linie); border-radius: 12px; overflow: hidden; background: var(--us-bg); }
.us-ergebnisse .us-zeile:last-child { border-bottom: 0; }
.us-h3 { margin: 18px 0 6px; font-size: 15px; font-weight: 700; }
.us-seite .hint { color: var(--us-grau); }

@media (min-width: 821px) {
  .us-ebene { display: none !important; }
}
@media (prefers-reduced-motion: no-preference) {
  .us-ebene:not([hidden]) { animation: us-ein .14s ease-out; }
  @keyframes us-ein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* ---------- /analyse: Karten mit den Farbwerten der Suche (hell/dunkel) ---------- */
.panel.us-seite { background: var(--us-bg); color: var(--us-text); border-color: var(--us-linie); }
.us-seite h2, .us-seite h3, .us-seite summary, .us-seite strong, .us-seite th { color: var(--us-text); }
.us-seite .hint, .us-seite td { color: var(--us-grau); }
.us-seite a:not(.us-zeile):not(.btn) { color: var(--us-akz); }
.us-seite .quicksearch input { background: var(--us-feld); color: var(--us-text); border: 1px solid var(--us-linie); }
.us-seite .quicksearch input::placeholder { color: var(--us-grau); opacity: 1; }
.us-seite .v-nichts .v-titel { color: var(--us-text); }
/* Das Suchfeld der Seite bleibt am Handy sichtbar (die Handy-Regel der App blendet .quicksearch sonst aus) */
.us-seite .quicksearch { display: flex; flex: none; max-width: none; padding: 0; margin: 0 0 6px; position: relative; }
.us-seite .quicksearch input { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 16px; font-size: 16px; border-radius: 24px 0 0 24px; }
.us-seite .quicksearch input:focus { outline: none; border-color: var(--us-akz); box-shadow: 0 0 0 3px var(--us-akz-hell); }
.us-seite .quicksearch button { height: 48px; padding: 0 20px; font-size: 15px; font-weight: 700; border: 0; border-radius: 0 24px 24px 0; background: var(--k-haupt); color: var(--k-haupt-t); cursor: pointer; }
