/* Bitcoin-Kurs & Analyse – Logik in web/src/boerse/ (npm run build:boerse) */
.bx-main { max-width: 1100px; }
#bx { display: flex; flex-direction: column; gap: 14px; margin-bottom: var(--sp-7, 48px); }
#bx [hidden] { display: none !important; }
.bx-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.bx-risk { margin: 0; padding: 10px 14px; border-radius: 14px; background: #fff7ed; color: #7c2d12; border: 1px solid #fed7aa; font-size: .9rem; line-height: 1.45; }
.bx-risk-small { font-size: .82rem; }
.bx-fine { color: var(--muted); font-size: .86rem; margin: 4px 0; }
.bx-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.bx-pair { display: flex; gap: 12px; align-items: center; }
.bx-name { color: var(--muted); font-weight: 600; font-size: .9rem; }
.bx-pricerow { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bx-price { font-size: clamp(1.6rem, 4vw, 2.2rem); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bx-chg { font-weight: 700; font-size: .95rem; }
.bx-chg.up, .bx-legend .up { color: #16a34a; }
.bx-chg.down, .bx-legend .down { color: #dc2626; }
.bx-live { color: #16a34a; font-size: .8rem; font-weight: 700; animation: bxPulse 2s ease-in-out infinite; }
@keyframes bxPulse { 50% { opacity: .35; } }
.bx-src { font-size: .8rem; color: var(--muted); }
.bx-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 12px 0 8px; }
.bx-tfs { display: flex; flex-wrap: wrap; }
.bx-tfs .seg-btn { padding: 6px 10px; font-size: .88rem; }
.bx-inds, .bx-groups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.bx-chip { border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.bx-chip[aria-pressed="true"] { background: var(--c2, #4f46e5); border-color: var(--c2, #4f46e5); color: #fff; }
.bx-chip-prog[aria-pressed="true"] { background: #7c3aed; border-color: #7c3aed; }
.bx-chartwrap { position: relative; }
.bx-canvas { display: block; width: 100%; height: min(62vh, 560px); min-height: 320px; touch-action: none; cursor: crosshair; border-radius: 12px; outline: none; }
.bx-canvas:focus-visible { box-shadow: 0 0 0 3px var(--c2, #4f46e5); }
.bx-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.3em; padding: 2px 4px 6px; }
.bx-legend .c-ema20 { color: #d97706; } .bx-legend .c-ema50 { color: #0284c7; } .bx-legend .c-sma200 { color: #9333ea; } .bx-legend .c-rsi { color: #7c3aed; }
.bx-zoom { position: absolute; right: 70px; top: 30px; display: flex; gap: 4px; opacity: .75; }
.bx-zoom button { width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.bx-zoom button:hover { opacity: 1; border-color: var(--c2, #4f46e5); }
.bx-loading { position: absolute; inset: 30px 0 0 0; display: grid; place-items: center; color: var(--muted); background: color-mix(in srgb, var(--surface) 70%, transparent); border-radius: 12px; }
.bx-futnote { margin: 8px 0 0; font-size: .86rem; color: #5b21b6; background: rgba(124, 58, 237, .07); border-radius: 12px; padding: 8px 12px; }
.bx-tabs { display: flex; flex-wrap: wrap; align-self: flex-start; }
.bx-panel { display: flex; flex-direction: column; gap: 14px; }
.bx-h { margin: 0 0 4px; font-size: 1.15rem; }
.bx-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 10px; }
.bx-fact { display: flex; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2, #f6f7fb); }
.bx-fact-ico { font-size: 1.3rem; }
.bx-fact p { margin: 2px 0 0; font-size: .9rem; }
.bx-learnlink { font-size: .85rem; white-space: nowrap; }
.bx-kihead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bx-badge { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(124, 58, 237, .12); color: #6d28d9; }
.bx-ki h3 { font-size: 1rem; margin: 16px 0 6px; }
.bx-szen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.bx-sz { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); }
.bx-sz p { margin: 4px 0 0; font-size: .88rem; }
.bx-sz-top { display: flex; justify-content: space-between; }
.bx-bar { height: 8px; border-radius: 999px; background: var(--surface-2, #eef0f5); overflow: hidden; margin-top: 6px; }
.bx-bar span { display: block; height: 100%; border-radius: 999px; }
.bx-sz-bull .bx-bar span { background: #16a34a; } .bx-sz-neutral .bx-bar span { background: #94a3b8; } .bx-sz-baer .bx-bar span { background: #dc2626; }
.bx-procon { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bx-procon ul, .bx-ki ul { margin: 0; padding-left: 20px; }
.bx-procon li, .bx-ki li { margin: 3px 0; font-size: .92rem; }
.bx-news { list-style: none; padding: 0 !important; }
.bx-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; background: #94a3b8; }
.bx-dot.positiv { background: #16a34a; } .bx-dot.negativ { background: #dc2626; }
.bx-fazit { margin-top: 14px; padding: 10px 12px; border-left: 4px solid #7c3aed; background: rgba(124, 58, 237, .05); border-radius: 0 12px 12px 0; }
.bx-how { margin-top: 10px; }
.bx-how summary { cursor: pointer; font-weight: 600; }
.bx-wait { background: rgba(124, 58, 237, .04); }
.bx-learn { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; align-items: start; }
.bx-lc { border: 1px solid var(--border); border-radius: 16px; background: var(--surface); scroll-margin-top: 90px; transition: box-shadow .3s; }
.bx-lc summary { display: flex; gap: 12px; align-items: center; padding: 10px; cursor: pointer; list-style: none; }
.bx-lc summary::-webkit-details-marker { display: none; }
.bx-lc-svg svg { width: 110px; height: 60px; display: block; background: var(--surface-2, #f6f7fb); border-radius: 10px; }
.bx-lc[open] .bx-lc-svg svg { width: 160px; height: 88px; }
.bx-lc summary > span:last-child { display: flex; flex-direction: column; }
.bx-found { color: #7c3aed; font-weight: 700; }
.bx-lc-body { padding: 0 14px 14px; }
.bx-lc-body p { margin: 6px 0; font-size: .92rem; }
.bx-lc-body .h-btn { margin: 6px 6px 0 0; }
.bx-flash { box-shadow: 0 0 0 3px #7c3aed; }
.bx-hits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.bx-hit { padding: 12px; border-radius: 14px; background: var(--surface-2, #f6f7fb); }
.bx-hit p { margin: 4px 0; }
.bx-big { font-size: 1.8rem; font-weight: 800; }
.bx-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.bx-table th, .bx-table td { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--border); }
@media (max-width: 720px) {
  .bx-card { padding: 12px; border-radius: 16px; }
  .bx-canvas { height: 56vh; min-height: 300px; }
  .bx-tfs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .bx-tfs .seg-btn { flex: none; }
  .bx-zoom { right: 66px; top: 26px; }
  .bx-szen, .bx-procon, .bx-hits { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .bx-live { animation: none; } }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .bx-risk { background: rgba(251, 146, 60, .12); color: #fed7aa; border-color: rgba(251, 146, 60, .35); }
  :root:not([data-theme="light"]) .bx-futnote, :root:not([data-theme="light"]) .bx-badge { color: #c4b5fd; }
}
:root[data-theme="dark"] .bx-risk { background: rgba(251, 146, 60, .12); color: #fed7aa; border-color: rgba(251, 146, 60, .35); }
:root[data-theme="dark"] .bx-futnote, :root[data-theme="dark"] .bx-badge { color: #c4b5fd; }
/* Währung EUR/USD */
.bx-name { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bx-paare { padding: 2px; margin-left: 6px; }
.bx-paare .seg-btn { padding: 2px 9px; font-size: .78rem; min-height: 0; }
/* Münze */
.bx-coin { font: inherit; font-weight: 700; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 2px 6px; }
/* Marktdaten */
.bx-mk-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.bx-mk-nav a { text-decoration: none; color: var(--text); }
.bx-mk { scroll-margin-top: 80px; }
.bx-mk-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.bx-mk-wert { font-weight: 700; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c1, #2dd4bf) 22%, var(--surface)); }
.bx-mk-cv { width: 100%; height: 300px; display: block; margin-top: 8px; touch-action: pan-y; }
.bx-mk-erkl { margin-top: 8px; }
.bx-mk-erkl summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.bx-mk-src a { color: inherit; }
.bx-mk-wait { padding: 30px; text-align: center; color: var(--muted); }
.bx-fg { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.bx-fg-t { display: flex; flex-direction: column; align-items: center; color: var(--text); }
.bx-fg-tacho { width: 220px; height: auto; }
.bx-fg-list { display: grid; gap: 6px; min-width: 220px; }
.bx-fg-list div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.bx-mr-wrap { overflow-x: auto; }
.bx-mr { border-collapse: collapse; font-size: .82rem; min-width: 640px; width: 100%; font-variant-numeric: tabular-nums; }
.bx-mr th, .bx-mr td { padding: 4px 6px; text-align: center; border: 1px solid var(--border); }
.bx-mr td { color: #111827; }
.bx-mr-sum th, .bx-mr-sum td { font-weight: 700; }
.bx-mr-leer { background: var(--surface-2, #f3f4f6); }
/* Chart-Training */
.bx-tr-top { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-weight: 600; margin-bottom: 8px; }
.bx-tr-hilfe { margin-left: auto; font-weight: 400; font-size: .88rem; display: flex; gap: 6px; align-items: center; }
.bx-tr-cv { height: 380px; }
.bx-tr-frage { font-weight: 700; font-size: 1.1rem; margin: 12px 0 8px; }
.bx-tr-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; }
.bx-tr-b { font-size: 1.05rem; min-width: 130px; }
.bx-tr-erg { margin-top: 12px; padding: 12px 14px; border-radius: 16px; }
.bx-tr-erg.ok { background: rgba(22,163,74,.1); }
.bx-tr-erg.falsch { background: rgba(220,38,38,.08); }
.bx-tr-gross { font-size: 1.25rem; font-weight: 800; margin: 0 0 4px; }
.bx-tr-sum { margin-top: 10px; }
@media (max-width: 640px) { .bx-mk-cv { height: 240px; } .bx-tr-cv { height: 300px; } .bx-tr-b { min-width: 0; flex: 1; } }
.bx-fg-zahl { font-size: 1.9rem; line-height: 1; margin-top: -6px; }
.bx-mk-leg { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--muted); margin-top: 6px; } .bx-mk-leg i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.bx-tr-b { border: 2px solid var(--border); background: var(--surface); color: var(--text); padding: 10px 18px; border-radius: 14px; font-weight: 700; cursor: pointer; } .bx-tr-b:hover { border-color: var(--c2, var(--accent)); } .bx-tr-b[aria-pressed="true"] { border-color: var(--c2, var(--accent)); background: color-mix(in srgb, var(--c1, #2dd4bf) 18%, var(--surface)); }
