:root {
  --bg: #080b12;
  --bg-glow: rgba(247, 147, 26, .07);
  --panel: #111723;
  --panel-2: #182031;
  --line: #222b3d;
  --line-strong: #2f3a52;
  --text: #edf0f6;
  --muted: #8d97ac;
  --accent: #f7931a;
  --accent-2: #ffb347;
  --on-accent: #1a1204;
  --violet: #a78bfa;
  --up: #2dd36f;
  --mild: #9bd13c;
  --hold: #f2c230;
  --warn: #fb8c3c;
  --down: #f2545b;
  --up-bg: rgba(45, 211, 111, .13);
  --down-bg: rgba(242, 84, 91, .13);
  --hold-bg: rgba(242, 194, 48, .13);
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .22);
  --radius: 16px;
  --radius-sm: 10px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f3f5f9;
    --bg-glow: rgba(247, 147, 26, .10);
    --panel: #ffffff;
    --panel-2: #f1f3f8;
    --line: #e2e6ee;
    --line-strong: #cfd5e1;
    --text: #131824;
    --muted: #5c667a;
    --accent: #e07f0a;
    --accent-2: #f7a531;
    --on-accent: #ffffff;
    --violet: #7c3aed;
    --up: #12864a;
    --mild: #5f9e12;
    --hold: #a56a00;
    --warn: #c8590f;
    --down: #cc2b34;
    --up-bg: rgba(18, 134, 74, .11);
    --down-bg: rgba(204, 43, 52, .10);
    --hold-bg: rgba(165, 106, 0, .11);
    --shadow: 0 1px 2px rgba(20, 30, 50, .06), 0 8px 24px rgba(20, 30, 50, .07);
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }

body {
  margin: 0;
  background: radial-gradient(1100px 520px at 85% -160px, var(--bg-glow), transparent 70%), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }

h1, h2, h3 { letter-spacing: -.015em; line-height: 1.25; }
h2 { font-size: 20px; margin: 36px 0 6px; }
h3 { font-size: 15px; margin: 0; }
.panel h2 { margin-top: 0; font-size: 18px; }
.hint { color: var(--muted); font-size: 13.5px; margin: 2px 0 14px; max-width: 78ch; }
.muted { color: var(--muted); }
.up { color: var(--up); }
.down { color: var(--down); }
.label { color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.value { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
code { background: var(--panel-2); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.top-inner { display: flex; align-items: center; gap: 10px 22px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.brand::before { content: ""; width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='15.5' cy='8.5' r='4.2' fill='%23fff' opacity='.55'/%3E%3Cpath d='M7 19a4 4 0 0 1 .5-7.97A5.5 5.5 0 0 1 18 12.5 3.3 3.3 0 0 1 17.5 19z' fill='%23fff'/%3E%3C/svg%3E") center / 24px no-repeat,
    linear-gradient(135deg, var(--accent-2), var(--accent)); }
nav { display: flex; align-items: center; gap: 4px; flex: 1; }
nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 14.5px; transition: color .15s, background .15s; }
nav a:hover { color: var(--text); background: var(--panel-2); }
nav a.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
nav #nav-account { margin-left: auto; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  border: 1px solid var(--line-strong); color: var(--text); }
nav #nav-account:not(.signed-in) { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--on-accent); border-color: transparent; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.live { background: var(--up); box-shadow: 0 0 0 4px var(--up-bg); }
.dot.fail { background: var(--down); box-shadow: 0 0 0 4px var(--down-bg); }

.error { background: var(--down-bg); border: 1px solid var(--down); border-radius: var(--radius-sm); padding: 10px 14px; margin-top: 16px; }
.notice { background: var(--hold-bg); border-left: 3px solid var(--hold); border-radius: 8px; padding: 9px 14px; margin: 10px 0; font-size: 14px; }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
#view > section.panel, #d-forecast > section.panel, #d-stats > section.panel, #d-head > section.panel, #d-news > section.panel { margin-top: 18px; }
.panel-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }

/* Marktüberblick */
.hero { display: grid; grid-template-columns: 250px 250px 1fr; gap: 18px; margin-top: 24px; }
.gauge-panel { text-align: center; display: flex; flex-direction: column; align-items: center; }
.gauge { display: block; width: 100%; max-width: 200px; margin: 8px auto 0; }
.needle { stroke: var(--text); stroke-width: 3; stroke-linecap: round; }
.hub { fill: var(--text); }
.gauge-value { font-size: 34px; font-weight: 800; line-height: 1.1; margin-bottom: 8px; letter-spacing: -.02em; }
.gauge-value small { font-size: 13px; color: var(--muted); font-weight: 500; }
.gauge-panel .hint { margin: 10px 0 0; }

.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.pick { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; align-items: center; padding: 16px; transition: transform .15s, border-color .15s; }
.pick:hover { border-color: var(--accent); transform: translateY(-2px); }
.pick-score { font-size: 26px; font-weight: 800; }
.pick-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--muted); }
.pick-meta strong { color: var(--text); }

.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; margin: 18px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.card .muted { font-size: 12.5px; min-height: 1.2em; }

.controls { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 36px 0 14px; }
#search, .form input, .form select, .start-row input, .ap-form input, .setup-card input[inputmode], .admin-tools input, .admin-tools select {
  background: var(--panel); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 11px 14px; font: inherit; min-width: 0; width: 100%; transition: border-color .15s, box-shadow .15s;
}
#search { flex: 1 1 240px; width: auto; }
input::placeholder { color: var(--muted); opacity: .8; }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }

.chips { display: inline-flex; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 2px; }
.chip { background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; padding: 7px 13px; border-radius: 9px; cursor: pointer; transition: color .15s, background .15s; }
.chip:hover { color: var(--text); }
.chip.active { background: var(--panel-2); color: var(--text); font-weight: 650; box-shadow: inset 0 0 0 1px var(--line-strong); }

/* Tabellen */
.table-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line); background: var(--panel-2); }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover, th.sorted { color: var(--text); }
th.sorted::after { content: " " attr(data-dir); font-size: 10px; }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:first-child { border-top: 0; }
tbody tr.coin { cursor: pointer; transition: background .12s; }
tbody tr.coin:hover { background: var(--panel-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 44px 16px; white-space: normal; }
.pager { display: flex; justify-content: center; margin: 16px 0; }

.coin-cell { display: flex; align-items: center; gap: 11px; }
.coin-cell img { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--panel-2); }
.coin-name { font-weight: 650; max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.coin-sym { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 500; }
.spark { display: block; width: 110px; height: 32px; }

.score { display: flex; align-items: center; gap: 8px; }
.score-num { width: 34px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { position: relative; width: 70px; height: 6px; border-radius: 3px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.bar::after { content: ""; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--muted); }
.bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.bar i.up { background: var(--up); }
.bar i.down { background: var(--down); }

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.badge.big { font-size: 15px; padding: 7px 18px; }
.badge.buy { color: var(--up); background: var(--up-bg); }
.badge.sell { color: var(--down); background: var(--down-bg); }
.badge.hold { color: var(--hold); background: var(--hold-bg); }
.badge.none { color: var(--muted); background: var(--panel-2); }

.risk { font-size: 13px; font-weight: 650; }
.risk.r0 { color: var(--up); }
.risk.r1 { color: var(--hold); }
.risk.r2 { color: var(--warn); }
.risk.r3 { color: var(--down); }

/* Faktorenlisten */
.factors, .plain { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.factors li { display: flex; gap: 12px; align-items: baseline; font-size: 14px; }
.pts { flex: 0 0 40px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.plain li { font-size: 14px; }

.cycle { margin-top: 18px; border-left: 4px solid var(--muted); }
.cycle.deep { border-left-color: var(--up); background: linear-gradient(135deg, var(--up-bg), var(--panel) 60%); }
.cycle.low { border-left-color: var(--mild); }
.cycle.high { border-left-color: var(--down); background: linear-gradient(135deg, var(--down-bg), var(--panel) 60%); }
.cycle h2 { font-size: 19px; margin: 2px 0 0; }
.cycle-dd { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.cycle-dd small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

/* Portfolio */
.alloc { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--panel-2); margin: 6px 0 12px; }
.alloc i { display: block; min-width: 2px; }
.alloc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.alloc-legend b { color: var(--text); font-weight: 650; }
.alloc-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

.manager { margin-top: 18px; }
.move { border: 1px solid var(--line); border-left: 4px solid var(--muted); border-radius: 12px; padding: 16px 18px; margin: 14px 0; background: var(--panel-2); }
.move.sell, .move.reduce { border-left-color: var(--down); }
.move.profit { border-left-color: var(--hold); }
.move.swap { border-left-color: var(--violet); }
.move.buy, .move.add { border-left-color: var(--up); }
.move-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.move-top h3 { flex: 1 1 200px; font-size: 16.5px; }
.move-top strong { font-size: 19px; font-variant-numeric: tabular-nums; }
.move-type { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 3px 9px; border-radius: 999px; background: var(--panel); color: var(--muted); }
.move.sell .move-type, .move.reduce .move-type { color: var(--down); background: var(--down-bg); }
.move.profit .move-type { color: var(--hold); background: var(--hold-bg); }
.move.buy .move-type, .move.add .move-type { color: var(--up); background: var(--up-bg); }
.move.swap .move-type { color: var(--violet); }
.move p { margin: 6px 0 12px; font-size: 13px; }
.move dl { margin: 0 0 14px; display: grid; gap: 8px; }
.move dl div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; font-size: 14px; }
.move dt { color: var(--muted); }
.move dd { margin: 0; }
details { margin-top: 14px; font-size: 14px; }
summary { cursor: pointer; color: var(--muted); font-weight: 500; }
summary:hover { color: var(--text); }

.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 20px; margin-top: 26px; }
.page-title { font-size: 28px; margin: 0; }
.page-head .hint { margin: 4px 0 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.card.main { grid-column: span 2; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--panel)), var(--panel)); }
.card.main .value { font-size: 34px; }
.empty-state { text-align: center; padding: 44px 20px; margin-top: 20px; }
.empty-state .btn-row { justify-content: center; margin-top: 18px; }
.empty-state .btn-row .btn { flex: 0 1 auto; }
.foot-actions { text-align: right; margin-top: 10px; }

.reserve-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 10px; margin: 6px 0 12px; }
.reserve-option { display: grid; gap: 2px; text-align: left; background: var(--panel-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; font: inherit; cursor: pointer; }
.reserve-option strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.reserve-option .muted { font-size: 12px; line-height: 1.35; }
.reserve-option:hover { border-color: var(--accent); }
.reserve-option.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
#r-chip { margin-left: 6px; color: var(--accent); font-variant-numeric: tabular-nums; }
.done-row { margin-top: 18px; }
.dialog .reserve-value { display: block; }
.reserve-value { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; margin: 4px 0 0; }
.range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.reserve-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; justify-content: space-between; }
.inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-left: auto; }
.inline-form input { width: 120px; background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font: inherit; }

.loading { display: flex; gap: 12px; align-items: center; color: var(--muted); }
.spinner { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* Dialoge */
.dialog { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--panel); color: var(--text); padding: 0; width: min(460px, calc(100vw - 28px)); max-height: calc(100vh - 40px); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.dialog.wide { width: min(620px, calc(100vw - 28px)); }
.dialog::backdrop { background: rgba(4, 7, 12, .66); backdrop-filter: blur(3px); }
.dialog > form, .dialog > div { padding: 0 22px 22px; }
.dialog > .dialog-top, .dialog > form > .dialog-top { padding-top: 18px; }
.dialog > form { padding-top: 0; }
.dialog > div > .dialog-top { padding-top: 18px; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 4px; }
.dialog-top h2 { margin: 0; font-size: 19px; }
.dialog h3 { margin: 18px 0 8px; }
textarea { background: var(--panel); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; font: 13px/1.4 ui-monospace, Consolas, monospace; width: 100%; resize: vertical; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 12px; }
.map-grid label { display: grid; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.map-grid select { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font: inherit; min-width: 0; }
.import-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.import-list li { display: flex; gap: 10px; align-items: baseline; }
.import-list .tag { flex: 0 0 76px; }
.dialog .check { margin: 14px 0; display: flex; gap: 8px; align-items: center; font-size: 14px; }

.input-row { display: flex; gap: 8px; }
.input-row input { flex: 1; }
.preview { min-height: 1.5em; margin: 0; font-size: 14px; }
#e-actions { justify-self: start; }
.form label[hidden] { display: none; }

/* Konto */
.gate { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 28px; align-items: start; margin-top: 28px; }
.gate h1 { font-size: 30px; margin: 0 0 10px; }
.gate .lead { color: var(--muted); font-size: 16px; max-width: 46ch; }
.benefits { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.benefits li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.benefits li::before { content: "✓"; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--up-bg); color: var(--up); font-weight: 800; }
.benefits strong { display: block; }
.benefits span { color: var(--muted); font-size: 14px; }
.account { max-width: 440px; }
.account h2 { margin-bottom: 14px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 140px; }
.link { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; justify-self: start; }
.link:hover { color: var(--text); }

/* Nachrichten */
.news { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.news li { display: flex; gap: 12px; align-items: baseline; font-size: 14px; }
.news a:hover { text-decoration: underline; }
.tag { flex: 0 0 64px; text-align: center; font-size: 11.5px; font-weight: 700; padding: 3px 0; border-radius: 999px; background: var(--panel-2); color: var(--muted); }
.tag.up { background: var(--up-bg); color: var(--up); }
.tag.down { background: var(--down-bg); color: var(--down); }

/* Detailansicht */
.back { display: inline-block; margin-top: 22px; color: var(--muted); font-weight: 500; }
.back:hover { color: var(--text); }
.d-head { display: grid; grid-template-columns: 1fr auto auto; gap: 16px 40px; align-items: center; }
.d-coin { display: flex; gap: 14px; align-items: center; }
.d-coin img { width: 52px; height: 52px; border-radius: 50%; }
.d-name { font-size: 26px; margin: 0; }
.d-price { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.d-signal { display: flex; gap: 22px; align-items: center; }
.d-signal dl { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 26px; margin: 0; min-width: 0; }
.d-signal dt { color: var(--muted); font-size: 12px; }
.d-signal dd { margin: 0; font-weight: 650; }

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.grid { stroke: var(--line); stroke-width: 1; }
.axis { fill: var(--muted); font-size: 11px; }
.cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.tip { position: absolute; top: 4px; transform: translateX(-50%); background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 5px 11px; font-size: 12px; text-align: center; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

.h-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.outlook { font-weight: 700; white-space: nowrap; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); gap: 16px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; margin-top: 18px; }
.two-col .panel { margin: 0; }
.panel .two-col { margin-top: 0; }

/* Formulare und Schaltflächen */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.form label.check { display: flex; align-items: center; gap: 8px; color: var(--text); }
.form label.check input { width: auto; }
.form input[type=file] { padding: 9px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; justify-self: start;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--on-accent);
  border: 1px solid transparent; border-radius: 12px; padding: 11px 20px; font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .12s, filter .15s, box-shadow .15s; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: none; color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--panel-2); }
.btn.google { width: 100%; background: var(--panel-2); color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.btn.google::before { content: "G"; font-weight: 800; color: #4285f4; font-size: 17px; }
.btn.small { padding: 8px 15px; font-size: 14px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.icon { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; padding: 6px 9px; border-radius: 8px; }
.icon:hover { color: var(--down); background: var(--down-bg); }

.note { margin: 56px 0 56px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; max-width: 85ch; }
.note h2 { color: var(--text); font-size: 16px; margin: 0 0 8px; }
.note a { color: var(--accent); }
.disclaimer { border-left: 3px solid var(--hold); padding-left: 14px; }
.disclaimer strong { color: var(--text); }

@media (max-width: 1100px) { .col-cap, .col-risk { display: none; } }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero > :last-child { grid-column: 1 / -1; }
  .col-30d, .col-chart { display: none; }
  .d-head { grid-template-columns: 1fr auto; }
  .d-signal { grid-column: 1 / -1; }
  .gate { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 14px; }
  .col-rank, .col-7d, .col-hold { display: none; }
  /* Coin-Spalte bleibt beim seitlichen Scrollen stehen */
  .col-coin { position: sticky; left: 0; background: var(--panel); z-index: 1; }
  th.col-coin { background: var(--panel-2); }
  tbody tr.coin:hover .col-coin { background: var(--panel-2); }
  .coin-name { max-width: 110px; }
  .panel { padding: 16px; }
  .status { width: 100%; order: 3; }
  .brand { font-size: 17px; }
  nav a { padding: 7px 11px; font-size: 14px; }
  nav #nav-account { max-width: 130px; }
  h2 { margin-top: 28px; }
}
@media (max-width: 560px) {
  .card.main { grid-column: 1 / -1; }
  .card.main .value { font-size: 28px; }
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
  .inline-form { margin-left: 0; }
  .page-title { font-size: 24px; }
  .col-score .bar { display: none; }
  th, td { padding: 10px 9px; }
  .d-head { grid-template-columns: 1fr; }
  .d-signal { flex-direction: column; align-items: flex-start; }
  .move dl div { grid-template-columns: 1fr; gap: 0; }
  .gate h1 { font-size: 24px; }
}
@media (max-width: 420px) {
  .brand { font-size: 0; gap: 0; }   /* nur das Logo, damit die Navigation Platz hat */
  .hero { gap: 12px; }
  .gauge-panel { padding: 14px 10px; }
  .gauge-value { font-size: 28px; }
}
@media (max-width: 340px) { .hero { grid-template-columns: 1fr; } }

/* Prozent-Prognosen */
#market-forecast { margin-top: 18px; }
.fc-table { width: 100%; margin-top: 8px; }
.fc-table td, .fc-table th { padding: 10px 8px; }
.fc-table td strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.fc-range { font-size: 12px; white-space: nowrap; }
.reasons { margin-top: 18px; }
.reasons h3 { margin: 0 0 4px; font-size: 15px; }

/* Daytrading */
.trades { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; }
.trade .coin-cell { text-decoration: none; color: inherit; }
.trade-why { margin-top: 10px; font-weight: 600; }
.trade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 14px 0 0; }
.trade-grid dt { font-size: 12px; color: var(--muted); }
.trade-grid dd { margin: 2px 0 0; font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.trade-grid dd.muted { font-size: 12px; font-weight: 500; }
.trade-status { margin: 14px 0 0; font-weight: 700; }
#t-watch .coin-cell { text-decoration: none; color: inherit; }

/* Fear & Greed im Modell, Einsatz-Rechner, Hebel */
.fng-effect { display: grid; gap: 2px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; text-align: left; }
.sizing { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 8px; }
.sizing label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); flex: 1 1 200px; }
.sizing input { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; font: inherit; }
.trade-lev { margin: 12px 0 0; display: grid; gap: 2px; }
.trade-lev .muted, .trade-size { font-size: 13px; }
.trade-size { margin: 8px 0 0; }
#t-rules h3 { margin: 20px 0 4px; font-size: 16px; }
#t-short table td:first-child { white-space: normal; min-width: 180px; }

/* Info-Knopf und Erklärungen */
.info-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line-strong); color: var(--muted); border-radius: 999px; padding: 3px 10px 3px 4px; font: inherit; font-size: 12.5px; line-height: 1.4; cursor: pointer; white-space: nowrap; vertical-align: middle; }
.info-btn span { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--panel-2); color: var(--text); font-weight: 700; font-size: 11px; font-style: italic; font-family: Georgia, serif; }
.info-btn:hover { color: var(--text); border-color: var(--accent); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.head-row h2 { margin: 0; }
h2 + .info-btn, .label + .info-btn { margin-top: 8px; }
.info-body { font-size: 14.5px; line-height: 1.55; }
.info-body h3 { margin: 18px 0 6px; font-size: 15px; }
.info-body ul { margin: 8px 0; padding-left: 20px; display: grid; gap: 6px; }
.info-body .table-wrap { margin: 8px 0 12px; box-shadow: none; }
.info-body .label { margin-top: 12px; }
.mood-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
/* Wertentwicklung und Verlauf */
#p-perf { margin-top: 18px; }
.perf-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 4px 0 10px; }
.perf-now strong { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.p-gain { font-weight: 800; font-size: 15px; }
.log { margin-top: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.log summary { cursor: pointer; font-weight: 600; }
.log li { font-size: 13.5px; }
#record { margin-top: 18px; }
#record .stat-grid { margin-top: 12px; }

/* Prognose-Felder und Bausteine des Scores */
.block-sum { margin: 12px 0 0; }
.cycle .plain { margin-top: 6px; }
/* Schmale Bildschirme: Logo und Stand in der ersten Zeile, das Menü in einer eigenen. In Sprachen mit langen
   Wörtern bricht es um, statt abgeschnitten zu werden oder die Seite breiter zu machen */
@media (max-width: 560px) {
  .top-inner { gap: 8px 12px; padding-top: 10px; padding-bottom: 10px; }
  .status { width: auto; order: 0; flex: 1 1 0; min-width: 0; justify-content: flex-end; }
  #updated { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  nav { order: 3; flex: 1 0 100%; min-width: 0; flex-wrap: wrap; row-gap: 4px; }
}
@media (max-width: 400px) {
  nav a { padding: 6px 8px; font-size: 13.5px; }
}

/* Einstieg, Preise, Abo-Hinweise und Rechtstexte */
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; padding: 28px; margin: 6px 0 22px;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  background: radial-gradient(700px 300px at 0% 0%, var(--bg-glow), transparent 70%), var(--panel); }
.intro h1 { margin: 12px 0 10px; font-size: clamp(28px, 4.2vw, 42px); line-height: 1.08; letter-spacing: -.03em; }
.intro .lead { color: var(--muted); font-size: 16.5px; line-height: 1.55; max-width: 56ch; margin: 0 0 18px; }
.intro-tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--up-bg); color: var(--up); }
.intro-note { color: var(--muted); font-size: 12.5px; margin: 14px 0 0; }
.intro-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.intro-points li { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 2px; }
.intro-points span { color: var(--muted); font-size: 13.5px; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; padding: 20px; gap: 20px; } }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 16px; align-items: stretch; margin: 16px 0 12px; }
.plan { display: flex; flex-direction: column; gap: 8px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-price { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.plan-price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.plan-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.plan-list .yes { padding-left: 24px; position: relative; }
.plan-list .yes::before { content: "✓"; position: absolute; left: 2px; color: var(--up); font-weight: 800; }
.plan-cta { margin-top: auto; padding-top: 14px; }
.faq { display: grid; gap: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); line-height: 1.55; }
.upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; border-style: dashed; }
.upsell h3 { margin: 4px 0; }
.upsell p { margin: 0; max-width: 60ch; }
.picks .upsell { grid-column: 1 / -1; }
.legal { max-width: 78ch; line-height: 1.6; }
.legal h3 { margin: 26px 0 6px; font-size: 16px; }
.legal ul, .info-body ul { padding-left: 20px; }
.legal li { margin: 8px 0; }
.legal a, .info-body a, .hint a, .disclaimer a, .faq a { color: var(--accent); }
.todo { background: var(--hold-bg); color: var(--hold); border-radius: 4px; padding: 0 4px; }
.notice.ok { background: var(--up-bg); border-left-color: var(--up); }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 16px; font-weight: 600; font-size: 14px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--text); }
.link.danger { color: var(--down); }
.dialog-actions { margin-top: 18px; }
.label a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Sprache und Währung */
html.i18n-wait body { visibility: hidden; }
.prefs { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 8px 0; }
.prefs label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.prefs select { background: var(--panel-2); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 14px; max-width: 100%; }
#foot-prefs { margin-bottom: 16px; }

/* Betreiber: Nutzerübersicht */
.admin-tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0 0 12px; }
.admin-tools input[type="search"] { flex: 1 1 260px; }
.admin-table td { vertical-align: top; }
.admin-detail td { background: var(--panel-2); }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 18px; padding: 6px 2px; }
.admin-list { list-style: none; margin: 4px 0 14px; padding: 0; font-size: 13.5px; }
.admin-list li { padding: 3px 0; border-bottom: 1px solid var(--line); }
.admin-list b { float: right; }

/* Leeres Portfolio: mit Bargeld starten */
.empty-state .or { max-width: 420px; margin: 26px auto 18px; }
.empty-state h3 { margin: 0 0 6px; }
.start-cash { max-width: 420px; margin: 14px auto 0; text-align: left; }
.start-cash label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.start-row { display: flex; gap: 8px; flex-wrap: wrap; }
.start-row input { flex: 1 1 160px; min-width: 0; }
.start-row .btn { flex: 0 0 auto; }
.admin-tools select { width: auto; }

/* Kostenlose Vorschau ohne Konto: Hinweis oben, verdeckte Kaufsignale, Schloss in der Tabelle */
.preview-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 16px;
  border-color: var(--accent); background: radial-gradient(600px 220px at 0% 0%, var(--bg-glow), transparent 70%), var(--panel); }
.preview-cta h2 { margin: 6px 0; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.3; max-width: 52ch; }
.preview-cta p { margin: 0; max-width: 60ch; }
.pick.locked { color: inherit; text-decoration: none; }
.pick.locked .lock-icon { font-size: 22px; width: 32px; text-align: center; }
.blur { filter: blur(7px); user-select: none; }
.lock-cell { opacity: .55; font-size: 13px; }

/* Teilen-Zeile unter dem Markt-Index */
.share-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 4px 0 14px; }
.share-row a, .share-row .link-btn { font-weight: 700; }
.share-row .link-btn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-weight: 700; }

/* Das Krypto-Wetter: große Karte ganz oben – die Antwort auf „Jetzt kaufen?“ in einem Satz */
.weather { display: grid; grid-template-columns: 150px 1fr; gap: 8px 24px; align-items: center; margin: 22px 0 16px; padding: 22px 26px;
  background: radial-gradient(520px 240px at 0% 0%, var(--bg-glow), transparent 70%), var(--panel); }
.weather.sun, .weather.partly { border-color: color-mix(in srgb, var(--up) 45%, var(--line)); }
.weather.rain, .weather.storm { border-color: color-mix(in srgb, var(--down) 45%, var(--line)); }
.weather-icon .sky { width: 150px; height: 160px; display: block; }
.weather-title { margin: 4px 0 6px; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; letter-spacing: -.03em; }
.weather-answer { margin: 0 0 12px; font-size: 17px; line-height: 1.45; }
.weather-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; color: var(--muted); align-items: center; }
.weather-stats strong { color: var(--text); }
.weather .share-row { margin: 14px 0 0; }
@media (max-width: 560px) {
  .weather { grid-template-columns: 1fr; text-align: left; padding: 18px; }
  .weather-icon { position: absolute; right: 14px; top: 10px; }
  .weather { position: relative; }
  .weather-icon .sky { width: 86px; height: 92px; }
  .weather-main { padding-right: 0; }
  .weather-title { padding-right: 92px; }
}
/* Eingeklappte Erklärungen: Technik nur auf Wunsch */
details.fold > summary { cursor: pointer; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); list-style: revert; }
details.fold[open] > summary { margin-bottom: 10px; }
.gauge-panel details.fold { margin-top: 12px; text-align: left; width: 100%; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.toggle input { accent-color: var(--accent); }
.d-summary { grid-column: 1 / -1; margin: 6px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--panel-2); line-height: 1.5; }
.d-summary span { margin-right: 4px; }
.d-share { grid-column: 1 / -1; margin: 4px 0 0; }
details.d-fold { margin: 22px 0 8px; }
details.d-fold > summary { font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--text); }

/* Rechner: Sparplan und Einmalanlage */
.calc { margin-top: 22px; }
.calc .page-title { margin: 6px 0 6px; }
.calc-form { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr 1fr auto; gap: 12px; align-items: end; margin-top: 16px; }
.calc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.calc-form input, .calc-form select { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 15px; }
.calc-form .btn { height: 44px; }
.calc-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.calc-head img { width: 36px; height: 36px; border-radius: 50%; }
.calc-head h2 { margin: 0; font-size: 19px; }
.calc-stats { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 14px 0; }
.calc-compare { margin: 10px 0 0; }
@media (max-width: 760px) { .calc-form { grid-template-columns: 1fr 1fr; } .calc-form label:first-of-type { grid-column: 1 / -1; } .calc-form .btn { grid-column: 1 / -1; } }
/* Schmale Bildschirme: Menü in einer Zeile, waagrecht wischbar statt umzubrechen */
@media (max-width: 560px) {
  nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav::-webkit-scrollbar { display: none; }
  nav a { flex: 0 0 auto; white-space: nowrap; }
}

/* Favoriten */
.coin-line { display: flex; align-items: center; gap: 4px; }
.star { background: none; border: 0; padding: 2px 4px; font-size: 17px; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 6px; }
.star:hover { color: var(--accent); background: var(--panel-2); }
.star.on { color: var(--accent); }
.d-name .star { font-size: 22px; vertical-align: middle; }
#favs { margin-top: 26px; }
.fav-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 10px; }
.fav { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 12px 14px; color: inherit; text-decoration: none; }
.fav:hover { border-color: var(--accent); }
.fav-num { display: flex; flex-direction: column; align-items: flex-end; font-size: 13.5px; }
.calc-teaser { display: flex; align-items: center; gap: 14px; margin: 16px 0; color: inherit; text-decoration: none; }
.calc-teaser:hover { border-color: var(--accent); }
.calc-teaser > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.calc-icon { font-size: 26px; }
@media (max-width: 560px) { .calc-teaser .btn { display: none; } }
.calc-mgr { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--panel-2); }
.calc-mgr .calc-stats { margin: 10px 0; }

/* Zyklus-Kompass */
.compass-head { margin-top: 22px; }
.compass-risk { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 18px 28px; align-items: start; margin-top: 16px; }
.compass-risk h2 { margin: 6px 0 10px; font-size: 20px; line-height: 1.3; }
.compass-wide { grid-column: 1 / -1; }
.risk-parts { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.risk-parts li { display: grid; grid-template-columns: 190px 1fr 36px; gap: 10px; align-items: center; font-size: 14px; }
.risk-parts strong { text-align: right; }
.mini-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; display: block; }
.mini-bar i { display: block; height: 100%; border-radius: 99px; }
.compass-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 16px; margin: 16px 0; }
.compass-grid .panel { display: flex; flex-direction: column; gap: 6px; }
.ind-value { font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.ind-value small { font-size: 14px; color: var(--muted); font-weight: 600; }
.compass-grid .badge { align-self: flex-start; }
.small-chart svg { max-height: 220px; }
.bt-table td, .bt-table th { font-size: 13.5px; }
.bt-table tr.now td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.mini-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13.5px; }
.locked-box { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); margin-top: 8px; flex-wrap: wrap; }
.locked-box > div { flex: 1; min-width: 180px; }
@media (max-width: 760px) { .compass-risk { grid-template-columns: minmax(0, 1fr); } .risk-parts li { grid-template-columns: 1fr 1fr 32px; } }
.compass-teaser { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin: 16px 0; color: inherit; text-decoration: none; }
.compass-teaser:hover { border-color: var(--accent); }
.compass-teaser .label { flex-basis: 100%; }
.teaser-stats { display: flex; flex-wrap: wrap; gap: 6px 22px; flex: 1; font-size: 14.5px; color: var(--muted); }
.teaser-stats strong { color: var(--text); }

@media (max-width: 560px) { .weather .label { padding-right: 92px; } }
.prefs label { flex-wrap: wrap; max-width: 100%; }
.prefs select { max-width: 100%; min-width: 0; }

/* Modell-Portfolio */
.model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; margin: 16px 0; }
.m-table { width: 100%; border-collapse: collapse; }
.m-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); font-size: 14px; }
.m-table .m-bar { width: 40%; }
/* Erste Schritte */
.onboard { margin: 0 0 16px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.onboard-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 8px 18px; }
.onboard-list li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.onboard-list li.ok { color: var(--muted); text-decoration: line-through; }
/* Coin-Vergleich */
.cmp-form { grid-template-columns: 1fr 1fr auto; }
.cmp-table th .coin-cell { justify-content: flex-end; }
.cmp-table td:first-child { color: var(--muted); }
@media (max-width: 760px) { .cmp-form { grid-template-columns: 1fr 1fr; } .cmp-form .btn { grid-column: 1 / -1; } }

/* ---------- Kauf-Score oben auf der Startseite ---------- */
.buy-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.buy-card { display: grid; grid-template-columns: 220px 1fr; gap: 10px 24px; align-items: center;
  background: radial-gradient(520px 260px at 0% 0%, color-mix(in srgb, var(--up) 9%, transparent), transparent 70%), var(--panel); }
.buy-gauge { text-align: center; display: flex; flex-direction: column; align-items: center; }
.buy-gauge .gauge { max-width: 210px; }
.buy-gauge .gauge-value { font-size: 44px; }
.buy-text h2 { font-size: 22px; margin: 0 0 6px; }
.buy-text > p { margin: 0 0 12px; font-size: 15.5px; }
.buy-text .hint { margin: 10px 0 0; }
.buy-history:empty { display: none; }
.buy-history { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.bh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 8px; }
.bh-grid div { display: flex; flex-direction: column; gap: 2px; }
.bh-grid strong { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; line-height: 1.1; }
.bh-grid span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.buy-parts .head-row { margin-bottom: 6px; }
.link-more { color: var(--accent); font-weight: 700; font-size: 13.5px; }
.buy-inputs { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.buy-inputs li { display: grid; grid-template-columns: minmax(0, 1.5fr) 58px minmax(0, 1fr) 66px; gap: 6px 12px; align-items: center; }
.bi-name { display: flex; flex-direction: column; min-width: 0; }
.bi-name strong { font-size: 14.5px; }
.bi-name small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.bi-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.bi-bar { height: 10px; border-radius: 99px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bi-bar i { display: block; height: 100%; border-radius: 99px; }
.bi-bar i.up { background: linear-gradient(90deg, var(--mild), var(--up)); }
.bi-bar i.hold { background: var(--hold); }
.bi-bar i.down { background: linear-gradient(90deg, var(--down), var(--warn)); }
.bi-tag { font-size: 12px; font-weight: 700; text-align: center; padding: 3px 0; border-radius: 999px; }
.bi-tag.up { color: var(--up); background: var(--up-bg); }
.bi-tag.hold { color: var(--hold); background: var(--hold-bg); }
.bi-tag.down { color: var(--down); background: var(--down-bg); }
.hero.hero-two { grid-template-columns: 260px 1fr; margin-top: 18px; }
.mood-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin: 6px 0 4px; }
.mood-num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.mood-num small { font-size: 13px; color: var(--muted); font-weight: 500; }
.teaser-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap: 16px; margin: 16px 0; }
.teaser-row > a { margin: 0; }
.weather-mood { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
.weather-tip { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--panel-2); border-left: 3px solid var(--hold); font-size: 14.5px; }
.weather-tip.good { background: var(--up-bg); border-left-color: var(--up); }
.compass-link { margin: 0 0 10px; }
@media (max-width: 1100px) {
  .buy-hero { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .buy-card { grid-template-columns: 1fr; text-align: left; }
  .buy-gauge .gauge { max-width: 190px; }
  .hero.hero-two { grid-template-columns: 1fr; }
  .buy-inputs li { grid-template-columns: minmax(0, 1fr) 52px 62px; }
  .buy-inputs .bi-bar { grid-column: 1 / -1; grid-row: 2; }
  .bh-grid strong { font-size: 20px; }
}

/* ---------- Rechner: drei Wege nebeneinander ---------- */
.calc-quick { margin-top: 12px; }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; margin: 16px 0; }
.way { position: relative; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; background: var(--panel-2); display: flex; flex-direction: column; gap: 4px; }
.way.best { border-color: color-mix(in srgb, var(--up) 60%, var(--line)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--up) 40%, transparent); }
.way.mgr { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--panel-2)), var(--panel-2)); }
.way-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14.5px; }
.way-top img { width: 22px; height: 22px; border-radius: 50%; }
.way-icon { font-size: 18px; }
.way-top .badge { margin-left: auto; }
.way-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.way-ret { font-size: 16px; font-weight: 700; }
.way-meta { margin: 8px 0 0; display: grid; gap: 4px; }
.way-meta div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.way-meta dt { color: var(--muted); }
.way-meta dd { margin: 0; font-weight: 650; }
.way-note { font-size: 12.5px; margin-top: 4px; }
.model-head { margin-top: 26px; }
.model-head h2 { font-size: 22px; margin: 4px 0 6px; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); gap: 12px; margin: 16px 0 6px; }
.kpi { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.kpi .muted { font-size: 12.5px; }
.hero.hero-two { grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1.2fr); align-items: stretch; }
.hero-two .cycle { margin-top: 0; }
.hero-two .cycle .panel-top { margin-bottom: 6px; }
.hero-two .cycle h2 { font-size: 17px; }
.hero-two .cycle p, .hero-two .cycle li { font-size: 13.5px; }
.mood-bar { position: relative; display: block; height: 10px; border-radius: 99px; margin: 10px 0 4px;
  background: linear-gradient(90deg, var(--down), var(--warn), var(--hold), var(--mild), var(--up)); opacity: .9; }
.mood-bar i { position: absolute; top: -4px; width: 6px; height: 18px; margin-left: -3px; border-radius: 3px; background: var(--text); box-shadow: 0 0 0 2px var(--panel); }
.mood-text { font-size: 13.5px; margin: 6px 0 0; }
@media (max-width: 1100px) { .hero.hero-two { grid-template-columns: 250px minmax(0, 1fr); } .hero-two .cycle { grid-column: 1 / -1; } }
@media (max-width: 640px) { .hero.hero-two { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .weather-mood { padding-right: 92px; } .weather-answer { font-size: 16px; } .weather-stats { gap: 6px 14px; font-size: 14px; } }
.way-nums { display: flex; align-items: baseline; gap: 6px 12px; flex-wrap: wrap; margin-top: 4px; }
.way-nums .way-value { margin-top: 0; }
@media (max-width: 760px) {
  .calc-form label:nth-of-type(4) { grid-column: 1 / -1; }
  .calc-form .btn { width: 100%; }
}
@media (max-width: 560px) {
  .ways { gap: 10px; }
  .way { padding: 12px 14px; }
  .way-value { font-size: 24px; }
  .way-meta { margin-top: 4px; }
  .way-top .badge { margin-left: 0; }
  .buy-gauge .gauge, .gauge-panel .gauge { max-width: 170px; }
}
@media (max-width: 560px) { .kpi-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .kpi { padding: 10px 12px; } .kpi .value { font-size: 19px; } }
.no-picks { grid-column: 1 / -1; }
.no-picks p { margin: 0 0 8px; }
.no-picks p:last-child { margin-bottom: 0; }
.compass-risk .buy-history { margin: 0 0 14px; }
.compass-link strong { font-size: 18px; }

/* Was heißt das für dich? und Sprungleiste */
.todo-box { margin-top: 16px; border-color: color-mix(in srgb, var(--up) 35%, var(--line)); }
.todo-list { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 10px; }
.todo-list li { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; font-size: 15px; }
.todo-icon { font-size: 22px; text-align: center; }
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 16px 0 0; }
.jump a { padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.jump a:hover { color: var(--text); border-color: var(--accent); }
.pager { gap: 14px; align-items: center; flex-wrap: wrap; }
.pick-score small { font-size: 13px; color: var(--muted); font-weight: 600; margin-left: 2px; }
#picks-sec, #cycle, .controls { scroll-margin-top: 90px; }
@media (max-width: 560px) {
  .todo-list li { grid-template-columns: 28px 1fr; }
  .todo-list li .btn { grid-column: 2; justify-self: start; }
}
.p-next { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 16px; border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.p-next strong { font-size: 18px; }
#p-manager { scroll-margin-top: 90px; }

/* ---------- Portfolio: Autopilot oder selbst pflegen ---------- */
.mode-switch { display: inline-flex; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-top: 14px; max-width: 100%; }
.mode-switch button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.mode-switch button:hover { color: var(--text); }
.mode-switch button.active { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--accent); }
.empty-state.setup { text-align: left; padding: 26px 22px; }
.empty-state.setup > h2, .empty-state.setup > p { text-align: center; }
.setup-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 14px; margin: 18px 0 10px; }
.setup-card { display: grid; gap: 12px; align-content: start; background: var(--panel-2); border: 1px solid var(--line-strong); border-radius: 16px; padding: 18px; }
.setup-card.auto { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.setup-card p { margin: 0; color: var(--muted); }
.setup-card label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.setup-card input[inputmode] { width: 100%; }
.setup-card .btn-row { justify-content: flex-start; margin: 0; }
.setup-top { display: flex; align-items: center; gap: 12px; }
.setup-top h3 { margin: 0 0 2px; }
.setup-icon { font-size: 30px; line-height: 1; }
.setup-modes { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.setup-modes legend { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.setup-mode { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400 !important; }
.setup-mode:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.setup-mode input { margin-top: 3px; }
.setup-mode span { display: grid; gap: 2px; }
.setup-mode small { color: var(--muted); }
.autopilot h2 { margin: 2px 0; }
.todo-moves { list-style: none; padding: 0; margin: 14px 0 6px; display: grid; gap: 8px; }
.todo-move { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
.todo-move .tm-main { display: grid; gap: 2px; min-width: 0; }
.todo-move .tm-main small { color: var(--muted); }
.todo-move .tm-usd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.todo-all { align-items: center; gap: 10px 16px; margin: 8px 0 4px; }
.all-done { font-weight: 600; color: var(--up); margin: 14px 0 6px; }
.deposit-due { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0 4px; padding: 12px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 10%, var(--panel-2)); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); }
.deposit-due > span { font-size: 22px; }
.deposit-due > div:nth-child(2) { flex: 1 1 220px; }
.deposit-due .btn-row { margin: 0; }
.target-fold { margin-top: 12px; }
.target-table { width: 100%; margin-top: 8px; }
.way-cta { margin-top: 10px; align-self: flex-start; }
@media (max-width: 560px) {
  .todo-move { grid-template-columns: 1fr auto; grid-template-areas: "tag usd" "main btn"; gap: 6px 10px; }
  .todo-move > .tag { grid-area: tag; justify-self: start; }
  .todo-move .tm-usd { grid-area: usd; justify-self: end; }
  .todo-move .tm-main { grid-area: main; }
  .todo-move button { grid-area: btn; align-self: end; }
  .mode-switch { display: flex; }
  .mode-switch button { flex: 1; padding: 9px 8px; }
}

/* ---------- Autopilot auf der Startseite und im Menü ---------- */
.ap-teaser { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.ap-head { display: flex; gap: 14px; align-items: flex-start; }
.ap-head h2 { margin: 2px 0 6px; font-size: clamp(19px, 2.6vw, 24px); }
.ap-head p { margin: 0; }
.ap-icon { font-size: 34px; line-height: 1; }
.ap-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 14px 0 8px; }
.ap-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.ap-form input { width: 160px; }
.ap-list { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 6px; max-width: 560px; }
.ap-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.ap-list .ap-locked { color: var(--muted); border-style: dashed; }
.ap-list .ap-reserve { background: none; }
.ap-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 0; }
.nav-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 999px; background: var(--accent); color: #111; font-size: 11px; font-weight: 800; vertical-align: 1px; }

.live-dot { display: inline-block; margin-right: 7px; vertical-align: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 25%, transparent); flex: none; }

/* ---------- Challenge: Schlag den Autopiloten ---------- */
.ch-form { grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.ch-bars { display: grid; gap: 10px; margin: 14px 0 16px; }
.ch-bar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; align-items: center; gap: 12px; }
.ch-name { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-track { height: 14px; background: var(--line); border-radius: 999px; overflow: hidden; }
.ch-track i { display: block; height: 100%; border-radius: 999px; }
.ch-table { width: 100%; }
.ap-challenge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }

.coin-ap { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.coin-ap > div { flex: 1 1 260px; }
.coin-ap p { margin: 4px 0; }

@media (max-width: 560px) {
  .ap-head p.muted { display: none; }
  .ap-icon { font-size: 26px; }
  .ap-list li { padding: 6px 10px; }
  .ap-teaser .share-row { display: none; }
  .ap-teaser .btn-row { flex-direction: column; align-items: stretch; }
  .ap-teaser .btn-row .btn { text-align: center; flex: none; }
}

/* ---------- Charts (Lightweight Charts von TradingView) ---------- */
.lw-wrap { position: relative; }
.lw-box { height: 320px; }
.small-chart .lw-box { height: 230px; }
.lw-tools { display: flex; justify-content: flex-end; gap: 4px; margin-bottom: 4px; }
.lw-tools .chip, .pro-bar .chip { padding: 5px 10px; font-size: 13px; background: var(--panel-2); border: 1px solid var(--line); }
.lw-tools .chip.active { color: var(--accent); border-color: var(--accent); }
.lw-legend { position: absolute; left: 6px; top: 4px; z-index: 3; font-size: 12.5px; display: flex; gap: 8px; flex-wrap: wrap; pointer-events: none; max-width: calc(100% - 200px); }
.pro-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.pro-bar .chips { padding: 3px; }
.pro-bar .chips .chip { border: 0; background: none; }
.pro-bar .chips .chip.active { background: var(--panel-2); }
.pro-bar .chip:disabled { opacity: .35; cursor: not-allowed; }
.pro-more { display: flex; flex-wrap: wrap; gap: 6px; }
.pro-more .chip.active { color: var(--accent); border-color: var(--accent); }
.pro-more .tv-chip { color: #2962ff; border-color: color-mix(in srgb, #2962ff 50%, var(--line)); }
.pro-menu { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); font-size: 14px; }
.pro-menu label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.pro-stage { position: relative; }
.pro-box { height: 460px; }
.pro-legend { position: absolute; left: 6px; top: 4px; z-index: 3; display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; pointer-events: none; max-width: calc(100% - 90px); }
.pro-legend b { font-weight: 600; }
.pro-hint { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); z-index: 4; background: var(--accent); color: var(--on-accent); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tv-frame { width: 100%; height: 100%; border: 0; border-radius: 10px; }
.tv-consent { display: grid; gap: 10px; place-content: center; text-align: center; height: 100%; max-width: 460px; margin: 0 auto; }
.pro:fullscreen, .lw-wrap:fullscreen { background: var(--bg); padding: 12px; overflow: auto; }
.pro:fullscreen .pro-box { height: calc(100vh - 150px); }
.lw-wrap:fullscreen .lw-box { height: calc(100vh - 40px); }
.chart-max { position: fixed; inset: 0; z-index: 100; background: var(--bg); padding: 12px; overflow: auto; }
.chart-max .pro-box { height: calc(100vh - 170px); }
.chart-max .lw-box { height: calc(100vh - 60px); }
@media (max-width: 600px) {
  .pro-box { height: 380px; }
  .lw-box { height: 260px; }
  .pro-bar .chips { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .pro-bar .chips::-webkit-scrollbar { display: none; }
  .pro-bar .lbl { display: none; }
  .pro-bar .chip { padding: 5px 8px; }
  .lw-legend, .pro-legend { max-width: calc(100% - 60px); font-size: 11.5px; }

}

/* ---------- Handy: Menü unten wie in einer App ---------- */
.tabbar, .foot-mobile { display: none; }
@media (max-width: 720px) {
  header.top nav { display: none; }
  .foot-mobile:not([hidden]) { display: inline; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; gap: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabbar a { position: relative; flex: 1; display: grid; justify-items: center; gap: 1px; padding: 5px 2px; border-radius: 10px; font-size: 11px; font-weight: 600;
    color: var(--muted); background: none; box-shadow: none; }
  .tabbar a span[aria-hidden] { font-size: 20px; line-height: 1.15; filter: grayscale(.6); }
  .tabbar a b { font-weight: 600; }
  .tabbar a.active { color: var(--accent); background: none; box-shadow: none; }
  .tabbar a.active span[aria-hidden] { filter: none; }
  .tabbar .nav-badge { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .brand { font-size: 17px; gap: 8px; }   /* das Menü ist unten – oben ist wieder Platz für den Namen */
  .brand::before { width: 28px; height: 28px; }
  .chart-max { bottom: 0; z-index: 100; }
}

.chart-title { margin: 0 0 10px; font-size: 18px; }
@media (max-width: 600px) {
  /* Kurs- und Indikatorwerte über dem Chart statt darüber gelegt – sonst verdecken sie die Kerzen */
  .pro-legend, .lw-legend { position: static; max-width: none; margin-bottom: 4px; pointer-events: auto; }
}
@media (max-width: 720px) {
  /* Anmelden zuerst – die Vorteile stehen darunter */
  .gate > .account { order: -1; }
  .gate { margin-top: 16px; }
}
/* In Dialogen: die gewählte Option deutlich zeigen */
.dialog .chips .chip.active { background: var(--accent); color: var(--on-accent); box-shadow: none; }
@media (max-width: 480px) {
  /* Rechner: „Monatlicher Sparplan“ passt sonst nicht ins halbe Feld */
  #calc-form label:nth-of-type(2) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  /* Coin-Vergleich: beide Spalten ohne Wischen sichtbar */
  .cmp-table th, .cmp-table td { padding: 10px 7px; font-size: 13.5px; }
  .cmp-table td:first-child { white-space: normal; font-size: 12.5px; line-height: 1.3; }
  .cmp-table th .coin-cell { flex-direction: column; align-items: flex-end; gap: 4px; }
  .cmp-table th .coin-name { display: none; }
  .cmp-table .badge { font-size: 11px; padding: 3px 7px; }
}
@media (max-width: 600px) {
  /* Daytrading-Beobachtungsliste: „Stand“ als zweite Zeile unter dem Coin */
  #t-watch th:nth-child(n+3), #t-watch td:nth-child(n+3) { display: none; }
  #t-watch th, #t-watch td { padding: 10px 8px; }
  #t-watch .watch-note { display: block; white-space: normal; margin: 6px 0 0 39px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
}

.watch-note { display: none; }

/* ---------- Betreiber-Übersicht: Besucher ---------- */
.admin-tabs { margin: 4px 0 16px; }
.vis-head { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.vis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; margin: 16px 0; }
.vis-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.vis-wide { grid-column: 1 / -1; }
.vis-bars { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.vis-bars li { position: relative; display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 3px 6px; z-index: 0; }
.vis-bars li i { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: color-mix(in srgb, var(--accent) 18%, transparent); z-index: -1; }
.vis-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vis-num { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.vis-num small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.vis-hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; height: 120px; margin-top: 10px; }
.vis-hours div { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }
.vis-hours i { display: block; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--accent); }
.vis-hours span { position: absolute; bottom: -18px; left: 0; font-size: 11px; color: var(--muted); }
.vis-box:has(.vis-hours) { padding-bottom: 28px; }
.vis-path { margin: 4px 0 8px; padding-left: 20px; font-size: 13.5px; columns: 2 260px; }

}
.vis-health { margin: 0 0 12px; font-size: 14px; }

/* Kaufdatum */
input[type="date"] { color-scheme: dark; }
@media (prefers-color-scheme: light) { input[type="date"] { color-scheme: light; } }
.inline-form input[type="date"] { width: 160px; }

/* Ohne Konto gibt es nur die Anmeldung und die Rechtstexte: kein Menü, das ins Leere führt */
body.login-gate header.top nav, body.login-gate .tabbar { display: none; }
.account-pitch { margin: 0 0 14px; color: var(--muted); }
.account-pitch span:first-child { color: var(--text); font-weight: 700; }
@media (max-width: 720px) { body.login-gate { padding-bottom: 16px; } }


/* ---------- Startseite: Wetter als ruhiger Kopf, kleine Übersichten, viel Platz für die Coins ---------- */
.weather { grid-template-columns: 120px minmax(0, 1fr) minmax(260px, auto); gap: 8px 26px; margin: 18px 0 14px; }
.weather-icon .sky { width: 120px; height: 128px; }
.weather-title { font-size: clamp(30px, 4vw, 40px); }
.weather-mood { margin: 0 0 8px; }
.weather-answer { margin: 0 0 10px; font-size: 16px; }
.weather-tip { margin: 0 0 8px; font-size: 14px; }
.weather .share-row { margin: 8px 0 0; }
.weather-stats { display: grid; gap: 10px; align-self: stretch; align-content: center; }
.weather-stats > div { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; padding: 10px 14px; background: var(--panel-2); border-radius: var(--radius-sm); }
.weather-stats .label { grid-column: 1 / -1; margin: 0; }
.weather-stats strong { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.weather-stats strong small { font-size: 13px; color: var(--muted); font-weight: 600; }
.teaser-row { margin: 0 0 14px; gap: 14px; }
.compass-teaser, .calc-teaser { margin: 0; padding: 14px 18px; }
.compass-teaser { align-items: center; gap: 8px 18px; }
.compass-teaser .label { margin: 0; }
.teaser-score { display: flex; flex: 1 1 200px; align-items: center; gap: 10px; }
.teaser-score strong { font-size: 24px; font-weight: 800; }
.teaser-score strong small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.teaser-bar { flex: 1; min-width: 50px; height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.teaser-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--down), var(--hold), var(--up)); background-size: 300px 100%; }
.compass-teaser .teaser-stats { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: var(--muted); }
.compass-teaser .teaser-stats strong { color: var(--text); }
.teaser-head .label { flex-basis: auto; }
.onboard .link-btn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; }
.teaser-head { flex-basis: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.compass-teaser .link-more { font-size: 13.5px; font-weight: 700; color: var(--accent); white-space: nowrap; }
.jump { margin: 0 0 6px; }
#picks-sec { margin-top: 18px; }
.picks-more { margin: 10px 0 0; }
.tools-tabs { margin: 14px 0; }
.tools-tabs .chip { text-decoration: none; }
@media (max-width: 900px) {
  .weather { grid-template-columns: 96px minmax(0, 1fr); }
  .weather-icon .sky { width: 96px; height: 102px; }
  .weather-stats { grid-column: 1 / -1; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .weather-stats > div { grid-template-columns: 1fr; padding: 8px 10px; }
  .weather-stats strong { font-size: 17px; }
  .weather-stats .badge { justify-self: start; }
}
@media (max-width: 560px) {
  .weather { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .weather-icon .sky { width: 76px; height: 82px; }
  .weather .label, .weather-title, .weather-mood { padding-right: 78px; }
  .weather-stats { grid-column: auto; gap: 8px; }
  .weather-stats > div { padding: 8px; align-content: start; }
  .weather-stats .label { font-size: 10.5px; letter-spacing: .04em; padding-right: 0; }
  .weather-stats strong { font-size: 15px; }
  .weather-stats .badge { font-size: 11px; padding: 2px 6px; white-space: normal; }
  .weather-stats .muted, .weather-stats .up, .weather-stats .down { font-size: 12.5px; }
  .weather-stats > div { grid-template-columns: 1fr auto; }
  /* Kaufsignale zum Wischen: So liegt die Coin-Liste nicht drei Bildschirme tiefer */
  .picks { display: flex; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .picks .pick { flex: 0 0 78%; scroll-snap-align: start; }
  .picks .upsell, .picks .no-picks { flex: 0 0 90%; scroll-snap-align: start; }
  .teaser-head { flex-wrap: nowrap; }
  .compass-teaser .link-more { font-size: 0; }
  .compass-teaser .link-more::after { content: '→'; font-size: 18px; }
  .calc-teaser { padding: 12px 16px; }
  .calc-teaser .muted { display: none; }
  .jump .label { display: none; }
  .weather .share-row { gap: 4px 11px; font-size: 13px; }
  .weather-stats .muted, .weather-stats .up, .weather-stats .down { justify-self: start; }
}
@media (max-width: 340px) {
  .weather-stats { grid-auto-flow: row; }
  .weather-stats > div { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
  .weather-stats .label { grid-column: auto; }
}
