Files
wibosim/server/public/style.css
T

573 lines
43 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/* WiBoSim – Handelsoberfläche in Dunkel (Standard) und Hell (data-theme="light" auf <html>, gesetzt von js/theme-init.js bzw. js/theme.js). Keine externen Schriften/Bibliotheken. */
:root {
--bg: #0b0f17; --panel: #121826; --panel2: #182033; --panel3: #1e2840; --line: #26314a; --text: #e3e9f5; --muted: #95a1b8;
--up: #2bd36b; --down: #ff5c5c; --accent: #4c8dff; --gold: #f5b942; --focus: #ffd166;
--mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
--radius: 10px;
--link: #8fb6ff; --info: #a9c6ff; --down-soft: #ff8b8b; --violet: #c4b5fd; --violet-bar: #c084fc;
--buy: #17994b; --sell: #d23c3c; --on-signal: #0b0f17; --strong: #fff;
--row-line: #1c2538; --row-hover: #161f31; --tip-bg: #0d1422; --panel-glass: rgba(18,24,38,.96); --recap-from: #18233d;
--overlay: rgba(0,0,0,.62); --shadow: rgba(0,0,0,.45); --shadow-lg: rgba(0,0,0,.6);
--seg-on: var(--panel3); --seg-shadow: none;
color-scheme: dark;
}
/* Helles Farbschema: Texte mindestens WCAG AA auf Panel- und Hintergrundflächen */
:root[data-theme="light"] {
--bg: #f2f4f8; --panel: #ffffff; --panel2: #f6f8fb; --panel3: #e9eef5; --line: #d3dae6; --text: #141b2b; --muted: #566175;
--up: #0b6b34; --down: #b82424; --accent: #1f5bd8; --gold: #855700; --focus: #c25400;
--link: #1d55c8; --info: #1e4fb8; --down-soft: #b42318; --violet: #6d28d9; --violet-bar: #9333ea;
--buy: #12803f; --sell: #c22b2b; --on-signal: #fff; --strong: #000;
--row-line: #e6eaf1; --row-hover: #f1f5fb; --tip-bg: #fff; --panel-glass: rgba(255,255,255,.96); --recap-from: #e4ecfb;
--overlay: rgba(15,23,42,.45); --shadow: rgba(15,23,42,.14); --shadow-lg: rgba(15,23,42,.22);
--seg-on: #fff; --seg-shadow: 0 1px 2px rgba(15,23,42,.18), 0 0 0 1px var(--line);
color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
body { min-height: 100vh; }
h1, h2, h3 { margin: 0; }
p { margin: 6px 0; }
a { color: var(--link); }
button { font: inherit; cursor: pointer; color: inherit; }
button:disabled { cursor: not-allowed; opacity: .55; }
input, select, textarea { font: inherit; background: var(--bg); color: var(--text); border: 1px solid var(--line); border-radius: 7px; padding: 8px 10px; width: 100%; min-height: 38px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus) !important; outline-offset: 2px; }
input:user-invalid { border-color: var(--down); }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 10px; margin: 10px 0; }
legend { color: var(--muted); padding: 0 4px; font-size: 13px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 6px 8px; position: sticky; top: 0; background: var(--panel); z-index: 1; }
td { padding: 6px 8px; border-top: 1px solid var(--row-line); vertical-align: middle; }
th.num, td.num, .num { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); } .muted { color: var(--muted); } .gold-t { color: var(--gold); }
.warn { color: var(--gold); }
.small { font-size: 12px; } .block { display: block; } .center { text-align: center; } .pad { padding: 10px 12px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 4px; background: var(--accent); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }
/* ---------------------------------------------------------------- Schaltflächen */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--accent); color: #fff; border: 0; border-radius: 7px; padding: 8px 14px; font-weight: 600; text-decoration: none; min-height: 36px; }
.btn:hover:not(:disabled) { filter: brightness(1.1); }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.small { padding: 4px 10px; font-size: 12px; min-height: 30px; }
.btn.buy { background: var(--buy); } .btn.sell { background: var(--sell); }
.btn.wide { width: 100%; padding: 11px; font-size: 15px; }
.linkish { background: none; border: 0; padding: 0; color: var(--link); text-decoration: underline; font: inherit; }
.plink { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.plink:hover { color: var(--link); }
.icon-btn { position: relative; background: none; border: 1px solid var(--line); border-radius: 8px; width: 38px; height: 38px; display: grid; place-items: center; color: var(--text); }
.icon-btn .count { position: absolute; top: -6px; right: -6px; background: var(--down); color: #fff; border-radius: 10px; font-size: 12px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; font-weight: 700; }
.theme-ic { display: inline-flex; line-height: 1; }
.seg .theme-ic svg { width: 16px; height: 16px; }
.seg button:has(.theme-ic) { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--down); margin-left: 4px; vertical-align: middle; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-form { display: flex; gap: 8px; margin-bottom: 10px; }
.inline-form input { flex: 1; }
.push { margin-left: auto; align-self: center; }
/* ---------------------------------------------------------------- Kopfzeile */
header.top { display: flex; align-items: center; gap: 18px; padding: 6px 14px; min-height: 56px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: .4px; white-space: nowrap; }
.logo span { color: var(--accent); }
.phase { display: flex; align-items: center; gap: 8px; background: var(--panel2); border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px 4px 10px; min-width: 0; }
.phase-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.phase[data-phase="continuous"] .phase-dot { background: var(--up); box-shadow: 0 0 0 3px color-mix(in srgb, var(--up) 20%, transparent); }
.phase[data-phase="opening"] .phase-dot, .phase[data-phase="closing"] .phase-dot { background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 20%, transparent); }
.phase[data-phase="preopen"] .phase-dot { background: var(--link); }
.phase-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.phase-txt b { font-size: 13px; white-space: nowrap; }
.phase-txt small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat { display: flex; flex-direction: column; line-height: 1.2; }
.stat small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.stat b { font-family: var(--mono); font-size: 14px; white-space: nowrap; }
.stat-btn { background: none; border: 1px solid transparent; border-radius: 8px; padding: 2px 8px; text-align: left; }
.stat-btn:hover { border-color: var(--line); }
.chip { display: inline-block; background: var(--panel3); border-radius: 12px; padding: 2px 9px; font-size: 12px; color: var(--muted); }
.chip.new { background: var(--accent); color: #fff; }
.chip.pos { color: var(--up); } .chip.neg { color: var(--down); }
.spacer { flex: 1; }
.conn { color: var(--gold); font-size: 12px; }
.banner { padding: 8px 16px; background: color-mix(in srgb, var(--accent) 10%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); font-size: 13px; }
.banner.gold { background: color-mix(in srgb, var(--gold) 12%, transparent); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.banner-in { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: color-mix(in srgb, var(--gold) 10%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); font-size: 13px; }
.banner-in.down-b { background: color-mix(in srgb, var(--down) 10%, transparent); border-color: color-mix(in srgb, var(--down) 40%, transparent); }
.stock-col .banner-in { margin: 0 14px 8px; }
.mainnav { display: flex; gap: 2px; padding: 0 10px; background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; }
.mainnav button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 12px; white-space: nowrap; font-weight: 600; }
.mainnav button:hover { color: var(--text); }
.mainnav button[aria-current="page"] { color: var(--text); border-color: var(--accent); }
/* ---------------------------------------------------------------- Ansichten */
main { padding: 10px; outline: none; }
.view { display: none; }
body[data-view="markt"] #v-trade, body[data-view="handeln"] #v-trade { display: grid; }
body[data-view="depot"] #v-depot, body[data-view="termine"] #v-termine, body[data-view="parlament"] #v-parlament,
body[data-view="battles"] #v-battles, body[data-view="clans"] #v-clans, body[data-view="fortschritt"] #v-fortschritt, body[data-view="community"] #v-community,
body[data-view="news"] #v-news, body[data-view="mehr"] #v-mehr { display: block; }
.page { max-width: 1300px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
#v-trade { grid-template-columns: 290px minmax(0, 1fr) 340px; gap: 10px; align-items: start; }
.market-col { position: sticky; top: 112px; max-height: calc(100vh - 124px); }
.stock-col, .ticket-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sticky-trade { display: none; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; }
.card-h { margin: 0; padding: 10px 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 700; }
.h-inline { font-size: 13px; display: inline; }
.card .body { padding: 12px; min-height: 0; }
.card .body.flush { padding: 0; }
.scroll { overflow: auto; }
.scroll-x { overflow-x: auto; }
.scroll-y { max-height: 70vh; overflow-y: auto; }
.h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin: 14px 0 6px; }
.h4:first-child { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid2.tight { gap: 16px; margin: 10px 0; }
.grid3 { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 18px; }
.grid-pa { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 10px; align-items: start; max-width: 1300px; }
.grid-pa .pa-main { display: flex; flex-direction: column; gap: 10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.field { margin-bottom: 9px; }
.field label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.check { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: 13px; }
.check input { width: auto; min-height: 0; }
.err-line { color: var(--down); min-height: 1em; font-size: 13px; }
.lead { font-size: 15px; }
/* Marktliste */
.mlist td { padding: 6px 6px; }
.mlist td.num { font-size: 13px; }
.mlist tr { cursor: pointer; }
.mlist tr:hover td { background: var(--row-hover); }
.mlist tr.sel td { background: var(--panel3); }
.mlist tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.mlist tr.dim { opacity: .55; }
.sym-btn { background: none; border: 0; padding: 0; text-align: left; display: block; }
.sym-btn b { font-size: 14px; }
.sym-btn small { display: block; color: var(--muted); font-size: 12px; max-width: 125px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badges { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 2px; }
.ind { display: block; color: var(--gold); font-size: 12px; }
.badge-s { display: inline-block; font-size: 12px; padding: 0 6px; border-radius: 8px; font-weight: 600; background: var(--panel3); color: var(--muted); line-height: 1.6; white-space: nowrap; }
.badge-s.halt { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.badge-s.auction { background: color-mix(in srgb, var(--link) 18%, transparent); color: var(--info); }
.badge-s.earn { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--info); }
.badge-s.div { background: color-mix(in srgb, var(--up) 15%, transparent); color: var(--up); }
.badge-s.short { background: color-mix(in srgb, var(--down) 18%, transparent); color: var(--down-soft); }
.badge-s.battle { background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); }
.badge-s .gl { border: 0; }
.flash-up { animation: fu .7s; } .flash-down { animation: fd .7s; }
@keyframes fu { from { background: color-mix(in srgb, var(--up) 16%, transparent); } } @keyframes fd { from { background: color-mix(in srgb, var(--down) 16%, transparent); } }
/* Aktienkopf & Chart */
.stock-head { padding: 12px 14px 6px; }
.sh-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.sh-top .sym { font-size: 22px; font-weight: 800; display: inline; margin-right: 8px; }
.px-big { font-size: 22px; font-family: var(--mono); display: flex; gap: 10px; align-items: baseline; }
.px-big .up, .px-big .down, .px-big .flat { font-size: 15px; }
.kv-row { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 10px 0 2px; }
.kv-row div { display: flex; flex-direction: column; }
.kv-row dt { color: var(--muted); font-size: 12px; }
.kv-row dd { margin: 0; font-size: 13px; }
.ind-line { display: inline-block; margin-left: 6px; }
.chart-bar { display: flex; align-items: center; gap: 12px; padding: 0 14px 6px; flex-wrap: wrap; }
.chart-wrap { position: relative; height: 360px; margin: 0 6px 8px; }
.chart-wrap.small { height: 220px; margin: 0; }
.chart-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg); border-radius: 8px; padding: 3px; margin-bottom: 10px; gap: 3px; }
.seg.w-auto { display: inline-grid; width: auto; }
.seg button { border: 0; background: none; color: var(--muted); padding: 7px 12px; border-radius: 6px; font-weight: 600; min-height: 34px; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--seg-on); color: var(--text); box-shadow: var(--seg-shadow); }
.seg.side[data-on="buy"] button[data-side="buy"] { background: var(--buy); color: #fff; }
.seg.side[data-on="sell"] button[data-side="sell"] { background: var(--sell); color: #fff; }
.seg.mini { margin: 0; display: inline-grid; }
.seg.mini button { padding: 4px 10px; min-height: 28px; font-size: 12px; }
.tabs { display: flex; gap: 2px; padding: 4px 8px 0; border-bottom: 1px solid var(--line); overflow-x: auto; align-items: flex-end; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 9px 12px; border-bottom: 2px solid transparent; white-space: nowrap; font-weight: 600; }
.tabs button[aria-selected="true"] { color: var(--text); border-color: var(--accent); }
.tabs.sub { padding: 0; margin-bottom: 8px; }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; font-size: 13px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 140px; margin: 6px 0 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: 12px; color: var(--muted); min-width: 0; }
.bars .b .v { color: var(--text); font-family: var(--mono); }
.bars .b i { display: block; width: 70%; max-width: 44px; border-radius: 3px 3px 0 0; background: var(--up); min-height: 2px; }
.bars .b i.miss { background: var(--down); }
.bars .b i.est { background: repeating-linear-gradient(45deg, transparent 0 4px, color-mix(in srgb, var(--muted) 35%, transparent) 4px 6px); border: 1px dashed var(--muted); }
.an-counts { margin-bottom: 8px; }
.range { position: relative; height: 22px; background: var(--bg); border-radius: 11px; margin: 4px 0; }
.range-bar { position: absolute; top: 7px; height: 8px; background: color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 4px; }
.range-mark { position: absolute; top: 2px; width: 3px; height: 18px; margin-left: -1px; border-radius: 2px; }
.range-mark.med { background: var(--accent); }
.range-mark.cur { background: var(--gold); }
.range-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.rating { font-weight: 700; } .r-Kaufen { color: var(--up); } .r-Verkaufen { color: var(--down); } .r-Halten { color: var(--gold); }
.mini-t td { padding: 3px 6px; font-size: 13px; }
details summary { cursor: pointer; color: var(--link); margin: 6px 0; }
ul.plain { margin: 0; padding-left: 18px; } ul.plain li { margin: 3px 0; }
.flow-row { display: grid; grid-template-columns: 130px 1fr 48px; gap: 8px; align-items: center; margin: 5px 0; font-size: 13px; }
.meter { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.meter div { height: 100%; background: var(--accent); }
.meter.ok div { background: var(--up); } .meter.mid div { background: var(--gold); } .meter.hi div { background: var(--down); }
.meter.xp div { background: linear-gradient(90deg, var(--accent), var(--gold)); }
/* Nachrichten & Kommentare */
ul.news, ul.c-list, ul.inbox, ul.events, ul.cal, ul.quests { list-style: none; margin: 0; padding: 0; }
ul.news li { padding: 8px 0; border-bottom: 1px solid var(--row-line); }
.meta { color: var(--muted); font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
ul.news a { color: var(--text); text-decoration: none; } ul.news a:hover { text-decoration: underline; }
.c-form { margin-bottom: 10px; }
.c-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
ul.c-list li { padding: 8px 0; border-bottom: 1px solid var(--row-line); }
ul.c-list p { margin: 3px 0 0; white-space: pre-wrap; word-break: break-word; }
ul.events li { padding: 5px 0; border-bottom: 1px solid var(--row-line); font-size: 13px; display: flex; gap: 8px; }
/* Ticket, Orderbuch, Umsätze */
.ticket .card-h { text-transform: none; letter-spacing: 0; }
.switch { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; cursor: pointer; }
.switch input { width: auto; min-height: 0; accent-color: var(--accent); }
.qty-quick { display: flex; gap: 6px; margin: -2px 0 8px; }
.qty-quick .btn { flex: 1; }
.adv { border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; margin-bottom: 8px; }
.adv[open] { padding-bottom: 6px; }
.hint { color: var(--muted); font-size: 12px; min-height: 16px; margin: 2px 0 6px; }
dl.est { margin: 4px 0 10px; }
dl.est div { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); margin: 3px 0; font-size: 13px; }
dl.est dd { margin: 0; color: var(--text); font-family: var(--mono); text-align: right; }
dl.est .tot dd { font-weight: 700; }
.book td { padding: 2px 8px; border: 0; font-size: 13px; position: relative; }
.book .barcell { width: 32%; padding: 0 6px 0 0; }
.book .barcell i { display: block; height: 14px; border-radius: 2px; margin-left: auto; }
.book tr.ask .barcell i { background: color-mix(in srgb, var(--down) 35%, transparent); } .book tr.bid .barcell i { background: color-mix(in srgb, var(--up) 35%, transparent); }
.book tr.ask .px-btn { color: var(--down); } .book tr.bid .px-btn { color: var(--up); }
.px-btn { background: none; border: 0; padding: 0; font-family: var(--mono); font-size: 13px; }
.px-btn:hover { text-decoration: underline; }
.book tr.mid td { text-align: center; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 12px; padding: 4px; }
.tape-card .body { max-height: 260px; }
.tape td { font-size: 13px; padding: 2px 8px; border: 0; }
.tape tr.me td { background: color-mix(in srgb, var(--accent) 10%, transparent); }
/* Depot */
.kpis { display: flex; gap: 10px 26px; flex-wrap: wrap; margin-bottom: 10px; }
.kpis div { display: flex; flex-direction: column; min-width: 90px; }
.kpis small { color: var(--muted); font-size: 12px; }
.kpis b { font-family: var(--mono); font-size: 15px; }
.kpis.big b { font-size: 17px; }
.kpis .rank-l { font-family: inherit; font-size: 13px; font-weight: 500; }
.margin-line { display: grid; grid-template-columns: auto minmax(120px, 300px) auto 1fr; gap: 10px; align-items: center; font-size: 13px; }
/* Kalender */
ul.cal li { display: grid; grid-template-columns: 28px 52px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--row-line); align-items: start; }
ul.cal li.past { opacity: .55; }
ul.cal time { font-family: var(--mono); color: var(--muted); }
.ic { font-size: 16px; text-align: center; }
.probs .prob { display: grid; grid-template-columns: 70px 1fr 48px; gap: 8px; align-items: center; margin: 4px 0; font-size: 13px; }
/* Parlament */
.bill-title { font-size: 21px; font-weight: 800; margin: 2px 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chips .chip { font-size: 13px; padding: 3px 10px; }
.big-num { font-size: 34px; font-weight: 800; font-family: var(--mono); }
.votebar { height: 10px; background: var(--down); border-radius: 5px; overflow: hidden; margin: 8px 0 4px; }
.votebar div { height: 100%; background: var(--up); }
.vote-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.vote-btns .btn[aria-pressed="true"] { outline: 2px solid var(--strong); outline-offset: 2px; }
/* Battles */
.battle-card { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; text-align: center; background: var(--panel2); border-radius: 10px; padding: 14px; }
.battle-card .vs { font-weight: 800; color: var(--gold); }
.battle-card .ret { font-size: 22px; font-family: var(--mono); }
.battle-card .me { border: 1px solid var(--accent); border-radius: 8px; padding: 6px; }
.invite { border-color: var(--gold); }
/* Fortschritt */
.level-box { display: flex; gap: 16px; align-items: center; margin-bottom: 12px; }
.level-box .lvl { font-size: 15px; } .level-box .lvl b { font-size: 28px; color: var(--gold); }
.grow { flex: 1; }
ul.quests li { padding: 8px 0; border-bottom: 1px solid var(--row-line); }
ul.quests li.done { opacity: .7; }
.q-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.tiers { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; color: var(--muted); }
.tier { padding: 3px 10px; border-radius: 12px; background: var(--panel3); font-size: 13px; }
.tier.on { background: var(--gold); color: var(--on-signal); font-weight: 700; }
table.league tr.promo td:first-child { box-shadow: inset 3px 0 0 var(--up); }
table.league tr.releg td:first-child { box-shadow: inset 3px 0 0 var(--down); }
tr.me td { background: color-mix(in srgb, var(--accent) 12%, transparent); }
ol.hof { padding-left: 0; list-style: none; } ol.hof li { padding: 3px 0; }
.medal { display: inline-block; width: 28px; }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.ach { background: var(--panel2); border-radius: 8px; padding: 10px; opacity: .45; display: flex; flex-direction: column; gap: 2px; border: 1px solid transparent; }
.ach.on { opacity: 1; border-color: var(--gold); }
.ach .i { font-size: 22px; }
.ach small { color: var(--muted); font-size: 12px; }
.ach-row { display: flex; flex-wrap: wrap; gap: 6px; }
.ach-chip { background: var(--panel3); border-radius: 12px; padding: 2px 10px; font-size: 13px; }
.recap { text-align: center; }
.recap-big { font-size: 38px; font-weight: 800; font-family: var(--mono); margin: 8px 0; }
.recap .kpis { justify-content: center; text-align: left; }
.recap-modal { background: linear-gradient(160deg, var(--recap-from), var(--panel) 60%); }
/* Community */
.online { color: var(--up); } .offline { color: var(--muted); }
ul.inbox li { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--row-line); }
ul.inbox li.unread b { color: var(--strong); }
ul.inbox p { margin: 2px 0 6px; }
/* Mehr (mobil) */
.more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.more-item { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px; text-align: left; display: flex; flex-direction: column; gap: 6px; font-weight: 600; min-height: 84px; }
.more-item span { font-size: 22px; }
/* Glossar */
.gl { border-bottom: 1px dotted var(--muted); cursor: help; }
.gl-i { color: var(--muted); cursor: help; font-size: 13px; text-transform: none; }
.gl-tip { position: fixed; z-index: 90; background: var(--tip-bg); border: 1px solid var(--accent); border-radius: 8px; padding: 9px 11px; font-size: 13px; line-height: 1.45; box-shadow: 0 10px 30px var(--shadow); pointer-events: none; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--text); }
/* Dialoge & Toasts */
.modal-bg { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 12px; }
.modal { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 22px; width: min(460px, 100%); max-height: calc(100vh - 24px); overflow: auto; outline: none; }
.modal.wide { width: min(720px, 100%); }
.modal h2 { margin: 0 0 12px; font-size: 19px; padding-right: 30px; }
.modal-x { position: absolute; top: 10px; right: 10px; background: none; border: 0; font-size: 24px; line-height: 1; color: var(--muted); width: 36px; height: 36px; border-radius: 8px; }
.modal-x:hover { color: var(--text); background: var(--panel2); }
.dlg-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
.dlg-actions.top { margin: -4px 0 8px; justify-content: flex-start; }
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 80; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; position: relative; background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 10px 36px 10px 14px; box-shadow: 0 8px 24px var(--shadow); animation: tin .25s; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.toast b { font-size: 13px; }
.toast.err { border-left-color: var(--down); } .toast.ok { border-left-color: var(--up); } .toast.gold, .toast.warn { border-left-color: var(--gold); }
.toast-x { position: absolute; top: 4px; right: 4px; background: none; border: 0; color: var(--muted); font-size: 18px; width: 28px; height: 28px; }
@keyframes tin { from { transform: translateY(10px); opacity: 0; } }
/* Einführung */
.tour { position: fixed; inset: 0; z-index: 70; }
.tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px var(--overlay); border: 2px solid var(--gold); transition: all .25s; pointer-events: none; }
.tour-card { position: fixed; width: min(380px, calc(100vw - 16px)); background: var(--panel); border: 1px solid var(--gold); border-radius: 12px; padding: 16px 18px; box-shadow: 0 16px 40px var(--shadow-lg); }
.tour-card h2 { font-size: 18px; margin-bottom: 6px; }
.tour.nospot { background: var(--overlay); }
/* Bewegung reduzieren */
@media (prefers-reduced-motion: reduce) {
*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* ---------------------------------------------------------------- Responsiv */
.bnav { display: none; }
@media (max-width: 1250px) {
#v-trade { grid-template-columns: 250px minmax(0, 1fr) 320px; }
.grid3 { grid-template-columns: 1fr 1fr; }
.hide-s { display: none !important; }
}
@media (max-width: 1020px) {
#v-trade { grid-template-columns: 240px minmax(0, 1fr); }
.ticket-col { grid-column: 2; }
.market-col { grid-row: span 2; }
.grid-pa { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
html, body { font-size: 14px; }
body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
header.top { gap: 10px; padding: 6px 10px; min-height: 52px; }
.logo { font-size: 16px; }
header.top { flex-wrap: wrap; row-gap: 6px; }
.phase { padding: 3px 10px 3px 8px; order: 10; flex: 1 1 100%; border-radius: 8px; }
.phase-txt { flex-direction: row; gap: 8px; align-items: baseline; }
#idxStat, #eqBtn { display: none !important; }
#userBtn { padding: 6px 10px; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.mainnav { display: none; }
main { padding: 8px; }
#v-trade { grid-template-columns: 1fr; }
.market-col { position: static; max-height: none; }
.ticket-col { grid-column: auto; }
body[data-view="markt"] .stock-col, body[data-view="markt"] .ticket-col, body[data-view="markt"] .sticky-trade { display: none; }
body[data-view="handeln"] .market-col { display: none; }
body[data-view="handeln"] .sticky-trade { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); padding: 8px; background: var(--panel-glass); border-top: 1px solid var(--line); z-index: 25; }
body[data-view="handeln"] { padding-bottom: calc(124px + env(safe-area-inset-bottom)); }
.sticky-trade .btn { min-height: 44px; flex-direction: column; gap: 0; line-height: 1.15; }
.sticky-trade small { font-family: var(--mono); font-weight: 500; font-size: 12px; }
.chart-wrap { height: 260px; }
.grid2, .grid3, .row3 { grid-template-columns: 1fr; }
.kv-row { gap: 6px 14px; }
.margin-line { grid-template-columns: auto 1fr auto; }
.margin-line .muted { grid-column: 1 / -1; }
.bnav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--panel); border-top: 1px solid var(--line); z-index: 30; }
.bnav button { background: none; border: 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; position: relative; }
.bnav svg { width: 22px; height: 22px; }
.bnav button[aria-current="page"] { color: var(--accent); }
.bnav .dot { position: absolute; top: 8px; right: calc(50% - 18px); }
.toasts { top: 96px; bottom: auto; left: 8px; right: 8px; width: auto; }
.modal { padding: 18px 14px; }
.battle-card .ret { font-size: 17px; }
.flow-row { grid-template-columns: 100px 1fr 44px; }
td, th { padding: 6px 6px; }
}
/* ---------------------------------------------------------------- Anlageklassen & Unternehmensereignisse */
.badge-s.offer { background: color-mix(in srgb, var(--gold) 25%, transparent); color: var(--gold); }
.badge-s.trial { background: color-mix(in srgb, var(--violet) 20%, transparent); color: var(--violet); }
.mlist tr.grp { cursor: default; }
.mlist tr.grp th { position: static; padding: 0; background: var(--panel2); border-top: 1px solid var(--line); }
.grp-btn { width: 100%; text-align: left; background: none; border: 0; padding: 7px 8px; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text); }
.grp-btn:hover { background: var(--panel3); }
.sym-btn small.yl { color: var(--info); }
.unit-line { margin: 4px 0 0; }
.corp-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; background: var(--panel2); }
.corp-box.offer { border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.corp-box .kpis { margin: 6px 0; }
.tender { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
.tender .inline-form { max-width: 440px; margin: 6px 0; }
.chart-wrap.mini { height: 190px; margin: 4px 0; }
.chart-wrap.hemi { height: 210px; margin: 0 0 6px; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: baseline; }
.linkchip { border: 0; cursor: pointer; }
/* ---------------------------------------------------------------- Politik */
.pol-tabs { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 8px 0; }
.pol-body { display: flex; flex-direction: column; gap: 10px; }
.pa-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
ul.pipe-list, ul.prop-list, ul.seat-legend, ul.agenda { list-style: none; margin: 0; padding: 0; }
.pipe, .prop-list li { padding: 10px 0; border-bottom: 1px solid var(--row-line); }
.pipe:first-child, .prop-list li:first-child { padding-top: 0; }
.pipe.live { border-left: 3px solid var(--gold); padding-left: 10px; }
.pipe-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.stepper { display: flex; list-style: none; margin: 8px 0 4px; padding: 0; counter-reset: st; flex-wrap: wrap; row-gap: 4px; }
.stepper li { flex: 1 1 0; min-width: 70px; position: relative; font-size: 12px; color: var(--muted); padding-top: 14px; text-align: center; }
.stepper li::before { content: ''; position: absolute; top: 3px; left: 0; right: 0; height: 4px; background: var(--panel3); }
.stepper li::after { content: ''; position: absolute; top: 0; left: calc(50% - 5px); width: 10px; height: 10px; border-radius: 50%; background: var(--panel3); border: 1px solid var(--line); }
.stepper li.done::before, .stepper li.done::after { background: var(--up); }
.stepper li.cur { color: var(--text); font-weight: 700; }
.stepper li.cur::before { background: linear-gradient(90deg, var(--up), var(--panel3)); }
.stepper li.cur::after { background: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.stepper li.off { opacity: .45; }
.psplit { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 13px; background: var(--bg); border-radius: 8px; padding: 6px 10px; margin: 6px 0; }
.psplit b { font-family: var(--mono); }
.psplit b.big { font-size: 16px; color: var(--gold); }
.badge-s.src-agenda { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--info); }
.badge-s.src-player { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); }
.badge-s.src-news { background: color-mix(in srgb, var(--up) 15%, transparent); color: var(--up); }
.cosign { display: grid; grid-template-columns: minmax(80px, 160px) auto auto auto; gap: 8px; align-items: center; margin-top: 6px; }
.prop-prev { background: var(--bg); border-radius: 8px; padding: 8px 10px; margin: 4px 0 10px; }
.prop-prev:empty { display: none; }
.prop-title { font-weight: 700; font-size: 15px; margin: 0 0 6px; }
.posbars { display: flex; gap: 10px; flex-wrap: wrap; }
.pb { display: inline-flex; flex-direction: column; gap: 2px; }
.pb small { color: var(--muted); font-size: 11px; }
.pbar { position: relative; display: inline-block; width: 64px; height: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.pbar::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--muted); }
.pbar i { position: absolute; top: 0; bottom: 0; background: var(--accent); }
.pbar i.neg { background: var(--violet-bar); }
.seat-legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 14px; margin-bottom: 6px; }
.seat-legend li { display: flex; gap: 6px; align-items: center; font-size: 13px; }
.seat-legend li .muted { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
ul.agenda li { padding: 3px 0; }
ul.agenda li.done { color: var(--up); }
.ballot { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; margin: 4px 0 6px; }
.ballot-btn { display: flex; align-items: center; gap: 4px; text-align: left; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-height: 40px; }
.ballot-btn span:not(.swatch):not(.up) { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ballot-btn[aria-pressed="true"] { border-color: var(--up); background: color-mix(in srgb, var(--up) 12%, transparent); }
.poll-row { display: grid; grid-template-columns: 70px 1fr 56px; gap: 8px; align-items: center; margin: 3px 0; font-size: 13px; }
.pollbar { height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; }
.pollbar i { display: block; height: 100%; }
.nc-card { border-color: var(--gold); }
fieldset.dir { margin: 0 0 9px; padding: 4px 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.scenario { border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); background: color-mix(in srgb, var(--gold) 8%, transparent); border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; }
.scenario.calm { border-color: var(--line); background: var(--panel2); }
.scenario small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.scenario b { font-size: 15px; }
.scenario p { margin: 2px 0 0; font-size: 13px; }
.gov-line { font-size: 13px; }
.ind-t th[scope="row"] { position: static; font-size: 13px; color: var(--text); }
@media (max-width: 760px) {
.cosign { grid-template-columns: 1fr auto; }
.stepper li { min-width: 56px; font-size: 11px; }
.chart-wrap.hemi { height: 180px; }
}
/* ---------------------------------------------------------------- Admin */
.admin-wrap { max-width: 1400px; margin: 0 auto; padding: 10px; display: flex; flex-direction: column; gap: 10px; }
.set-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 10px; }
.set-row { display: grid; grid-template-columns: 1fr 170px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--row-line); }
.set-row label { font-size: 13px; }
.set-row small { display: block; color: var(--muted); font-size: 12px; }
.set-row.changed label { color: var(--gold); }
.set-row.wide { grid-template-columns: 1fr; }
.set-row textarea { min-height: 120px; font-family: var(--mono); font-size: 12px; }
.toggle { position: relative; display: inline-block; width: 46px; height: 26px; }
.toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; min-height: 0; }
.toggle span { position: absolute; inset: 0; background: var(--panel3); border-radius: 13px; border: 1px solid var(--line); }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: left .15s; }
.toggle input:checked + span { background: color-mix(in srgb, var(--up) 35%, transparent); }
.toggle input:checked + span::after { left: 23px; background: var(--up); }
.toggle input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.presets { font-size: 12px; color: var(--muted); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.admin-actions input, .admin-actions select { width: auto; }
.sector-picks { display: flex; flex-wrap: wrap; gap: 4px 12px; }
/* ---------------------------------------------------------------- Clans & Fonds, Turniere */
input.upper { text-transform: uppercase; }
.clan-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.clan-list li .plink { margin-right: auto; }
ul.tours { list-style: none; margin: 0; padding: 0; }
.tours > li.tn { padding: 10px 0; border-bottom: 1px solid var(--line); }
.tn-head { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: flex-start; justify-content: space-between; }
.bracket { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 12px; overflow-x: auto; padding: 6px 0 4px; }
.bracket .round { display: flex; flex-direction: column; justify-content: space-around; gap: 8px; min-width: 0; }
.bracket h4 { margin: 0 0 2px; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.match { background: var(--panel2); border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; font-size: 13px; }
.match.me { border-color: var(--accent); }
.match.running { border-left: 3px solid var(--gold); }
.match .pl { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
.match .pl.win { font-weight: 700; }
.match .pl.win::after { content: '✓'; color: var(--up); margin-left: 4px; }
.match .pl.out { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 50%, transparent); }
.match .pl .num { font-family: var(--mono); font-size: 12px; }
.match .m-foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 4px; }
.match .note { font-size: 11px; color: var(--muted); margin-top: 3px; }
@media (max-width: 760px) {
.bracket { grid-auto-columns: minmax(160px, 78vw); scroll-snap-type: x mandatory; }
.bracket .round { scroll-snap-align: start; }
}
/* Nachrichten-Auswertung */
.nana { display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 4px; font-size: 12px; }
.ntopic { display: inline-flex; gap: 3px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 7px; color: var(--muted); }
.ntopic.up { color: var(--up); } .ntopic.down { color: var(--down); }
.nwhy { flex-basis: 100%; }
.nwhy summary { cursor: pointer; color: var(--muted); width: max-content; }
.nwhy ul { margin: 4px 0; padding-left: 18px; color: var(--muted); }
ul.news .nwhy li { border: 0; padding: 1px 0; }
.news li.nstrong { border-left: 3px solid var(--gold); padding-left: 8px; }
/* Version, Änderungsprotokoll, Update-Hinweis */
.nav-ver { margin-left: auto; display: flex; align-items: center; }
.ver-btn { background: none; border: 0; color: var(--muted); font-size: 12px; padding: 6px 8px; font-family: var(--mono); }
.ver-btn:hover { color: var(--text); text-decoration: underline; }
.changelog { max-height: 65vh; overflow-y: auto; }
.cl-entry { padding: 8px 0; border-top: 1px solid var(--row-line); }
.cl-entry.cl-new { border-left: 3px solid var(--accent); padding-left: 10px; }
.cl-title { font-weight: 600; margin: 2px 0 6px; }
.cl-entry ul { margin: 0; padding-left: 18px; }
.cl-entry li { margin: 4px 0; }
.cl-type { display: inline-block; min-width: 74px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.cl-neu { color: var(--up); } .cl-besser { color: var(--accent); } .cl-fix { color: var(--gold); }
.update-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 90; display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
max-width: min(640px, calc(100vw - 20px)); background: var(--panel); color: var(--text); border: 1px solid var(--line); border-left: 4px solid var(--accent);
border-radius: var(--radius); padding: 10px 14px; box-shadow: 0 8px 28px var(--shadow-lg); }
.update-banner.restart { border-left-color: var(--gold); }
.update-banner .ub-acts { display: flex; gap: 8px; margin-left: auto; }
@media (max-width: 760px) { .update-banner { bottom: 74px; } }