/* AkcjoPilot Runde 7 (16.11.2026): Kursband. Nur geladen, wenn UMBAU und BAND (Abschalter /apps/stockpilot/BAND_AUS).
   Desktop (>= 821 px): schmale Zeile (30 px) ueber dem stehenden Kopf, bleibt beim Scrollen sichtbar (fixiert; der Kopf rueckt 30 px nach unten).
   Handy: unter dem Kopf im Seitenfluss, nicht stehend, waagerecht wischbar. Zahlen mit festen Spalten (tabular-nums), kein Springen. */
.ap-band { --bd-bg: var(--k-f2); --bd-text: var(--k-t1); --bd-grau: var(--k-grau); --bd-plus: var(--k-plus); --bd-minus: var(--k-minus);
  --bd-rand: var(--k-linie); --bd-hover: var(--k-f2h); --bd-fokus: var(--k-fokus);
  display: flex; align-items: stretch; min-height: 44px; background: var(--bd-bg); color: var(--bd-text); border-bottom: 1px solid var(--bd-rand);
  font-size: 13px; line-height: 1.2; font-variant-numeric: tabular-nums; position: relative; z-index: 45; }
.bd-spur { flex: 1 1 auto; min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.bd-spur::-webkit-scrollbar { display: none; }
.bd-liste { display: flex; align-items: stretch; list-style: none; margin: 0; padding: 0; width: max-content; min-height: 100%; }
.bd-liste li { display: flex; border-right: 1px solid var(--bd-rand); }
.bd-i { display: flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; color: var(--bd-text); white-space: nowrap; text-decoration: none; transition: background-color .7s ease; }
.bd-i:hover { text-decoration: none; }
.bd-n { font-weight: 600; color: var(--bd-text); }
.bd-p { display: inline-block; min-width: 6.6ch; text-align: right; font-weight: 600; }
.bd-c { display: inline-block; min-width: 7.9ch; font-weight: 700; }
.bd-c i { font-style: normal; font-size: 9px; margin-right: 3px; vertical-align: 1px; }
.bd-c.pos { color: var(--bd-plus); }
.bd-c.neg { color: var(--bd-minus); }
.bd-c.nul { color: var(--bd-grau); }
.bd-t { display: none; font-size: 11px; color: var(--bd-grau); font-weight: 600; }
.bd-t:not(:empty) { display: inline; }
.bd-i.bd-auf { background-color: color-mix(in srgb, var(--bd-plus) 28%, transparent); transition: none; }
.bd-i.bd-ab { background-color: color-mix(in srgb, var(--bd-minus) 28%, transparent); transition: none; }
@media (hover: hover) { .bd-i:hover { background-color: var(--bd-hover); } .bd-i.bd-auf:hover, .bd-i.bd-ab:hover { background-color: inherit; } }
.bd-i:focus-visible, .bd-knopf:focus-visible, .bd-pfeil:focus-visible { outline: 2px solid var(--bd-fokus); outline-offset: -2px; }

.bd-pfeil { display: none; flex: none; width: 28px; padding: 0; border: 0; background: var(--bd-bg); color: var(--bd-text); font-size: 20px; line-height: 1; cursor: pointer; visibility: hidden; }
.bd-pfeil.an { visibility: visible; }
@media (hover: hover) { .bd-pfeil:hover { background: var(--bd-hover); } }

.bd-meta { flex: none; display: flex; align-items: center; gap: 0; padding: 0 2px 0 8px; border-left: 1px solid var(--bd-rand); }
.bd-stand { font-size: 11.5px; color: var(--bd-grau); font-weight: 600; white-space: nowrap; min-width: 4.5em; text-align: right; padding-right: 4px; }
.bd-knopf { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--bd-grau); cursor: pointer; }
.bd-knopf svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bd-i-play { fill: currentColor !important; stroke: none !important; }
.bd-pause[aria-pressed="false"] .bd-i-play, .bd-pause[aria-pressed="true"] .bd-i-pause { display: none; }
.bd-neu[hidden] { display: none; }
html:not(.js) .bd-pause, html:not(.js) .bd-neu { display: none; }
@media (hover: hover) { .bd-knopf:hover { color: var(--bd-text); background: var(--bd-hover); } }
.bd-infowrap { position: relative; display: inline-flex; }
.bd-tip { position: absolute; right: 0; top: calc(100% + 4px); z-index: 70; width: 230px; padding: 8px 10px; border-radius: 6px; font-size: 12.5px; font-weight: 500; line-height: 1.35;
  color: var(--k-t1); background: var(--k-erh); border: 1px solid var(--k-rand); box-shadow: 0 6px 18px rgba(0,0,0,.25); visibility: hidden; opacity: 0; }
.bd-infowrap:hover .bd-tip, .bd-infowrap:focus-within .bd-tip { visibility: visible; opacity: 1; }

/* ---------- Desktop: fixiert ueber dem Kopf ---------- */
@media (min-width: 821px) {
  .ap-band { --bd-bg: #0a1b27; --bd-text: #e6edf3; --bd-grau: #a9b9c6; --bd-plus: #4cc38a; --bd-minus: #ff8d84; --bd-rand: rgba(255,255,255,.13);
    --bd-hover: rgba(255,255,255,.09); --bd-fokus: #ffffff;
    position: fixed; top: 0; left: 0; right: 0; z-index: 60; min-height: 0; height: 30px; font-size: 12.5px; border-bottom: 0; }
  .bd-i { min-height: 30px; height: 30px; padding: 0 12px; }
  .bd-knopf { width: 30px; height: 30px; }
  .bd-pfeil { display: block; width: 26px; }
  .bd-meta { padding: 0 6px 0 8px; }
  body.ap-hat-band .topbar { margin-top: 30px; top: 30px; }
  body.ap-hat-band { --karten-top: 82px; }
  html:has(body.ap-hat-band) { scroll-padding-top: 100px; }
}
/* ---------- Handy / schmal ---------- */
@media (max-width: 820px) {
  .ap-band { font-size: 13px; }
  .bd-pfeil { display: none !important; }
  .bd-stand { font-size: 11px; min-width: 0; max-width: 8em; white-space: normal; text-align: right; line-height: 1.15; }
  .bd-meta { padding-left: 6px; }
  .bd-knopf { width: 44px; }
}
/* Runde 8: Handy - kleines (i) am Ende des Bands, oeffnet den Hinweistext (44 px Tippflaeche) */
.bd-li-info { display: none; }
.bd-tip-m { position: absolute; left: 8px; right: 8px; top: calc(100% + 4px); z-index: 70; padding: 10px 12px; border-radius: 8px; font-size: 14px; line-height: 1.4;
  color: var(--k-t1); background: var(--k-erh); border: 1px solid var(--k-rand); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.bd-tip-m[hidden] { display: none; }
@media (max-width: 820px) {
  .bd-li-info { display: flex; border-right: 0; }
  .bd-info-m { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; color: var(--bd-grau); cursor: pointer; }
  .bd-info-m svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  .bd-info-m[aria-expanded="true"] { color: var(--bd-text); }
}
@media (min-width: 821px) { .bd-tip-m { display: none !important; } }
@media print { .ap-band { display: none; } }
@media (max-width: 820px) {
  .bd-infowrap { display: none; }          /* Hinweis zur Quelle steht am Handy im Seitenfuss; Platz fuer die Kurse */
  .bd-stand { max-width: 6.2em; }
}
