/* Comunio Assistant dashboard - "Flutlicht": near-black ground, one lime
   accent, Space Grotesk for figures and headings, Inter for text.

   Colour rules (checked with the dataviz palette validator, 2026-11-02):
   - --good/--warn/--crit are a player's fitness only, always with a label.
   - --series (#74a214) is our own data in charts; --lime is UI accent only
     (too light to be a data colour on this ground).
   - --up/--down (blue/red) are value gains/losses, always with a sign. */
:root {
  --bg: #0a0c10;
  --side: #0c0f14;
  --s1: #12151b;
  --s2: #171b22;
  --s3: #1f242d;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .14);
  --ink: #eef1f5;
  --ink2: #b6bcc7;
  --muted: #8b93a1;
  --lime: #c5f04a;
  --lime-hover: #d6ff6b;
  --limed: rgba(197, 240, 74, .12);
  --series: #74a214;
  --other: #6b7383;
  --up: #3987e5;
  --down: #e66767;
  --good: #0ca30c;
  --warn: #fab219;
  --crit: #d03b3b;
  --grid: #262b34;
  --axis: #383d47;
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Space Grotesk", Inter, system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body {
  color: var(--ink);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lime); }
a:hover { color: #e2ff96; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.app { min-height: 100vh; display: flex; flex-wrap: wrap; }
.side {
  flex: 1 1 232px; max-width: 264px; padding: 24px 16px;
  border-right: 1px solid var(--line); background: var(--side);
  display: flex; flex-direction: column; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand b { display: block; font: 700 17px/1 var(--font-num); letter-spacing: .02em; }
.brand small { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav > a {
  display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--ink2); text-decoration: none; font-weight: 500;
  transition: background .2s, color .2s;
}
.nav > a:hover { background: var(--s2); color: var(--ink); }
.nav > a.on { background: var(--limed); color: var(--lime); }
.subnav { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 4px 44px; padding-left: 8px; border-left: 1px solid var(--line); }
.subnav a { display: flex; align-items: center; min-height: 36px; padding: 0 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; }
.subnav a:hover { color: var(--ink); background: var(--s2); }
.subnav a.on { color: var(--lime); }
.sidefoot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.runcard { padding: 14px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); font-size: 12px; color: var(--ink2); display: flex; flex-direction: column; gap: 6px; }
.runcard strong { color: var(--ink); }
.logout { width: 100%; justify-content: flex-start; background: transparent; border-color: transparent; color: var(--ink2); }

.main { flex: 999 1 560px; min-width: 0; padding: 28px 32px 56px; }
.wrap { max-width: 1240px; margin: 0 auto; }
.top { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.h1 { margin: 4px 0 0; font: 600 30px/1.1 var(--font-num); letter-spacing: -.01em; }
.h2 { margin: 0; font: 600 17px/1.2 var(--font-num); }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.grid + .grid { margin-top: 16px; }
.c3 { grid-column: span 3; } .c3.third { grid-column: span 4; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }

/* ---------- surfaces ---------- */
.card {
  min-width: 0; padding: 20px; border-radius: 16px; background: var(--s1); border: 1px solid var(--line);
  animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; transition: border-color .25s;
}
.card:hover { border-color: var(--line2); }
.card.hero { padding: 24px; background: #141a10; border-color: rgba(197, 240, 74, .22); }
.card.hero:hover { border-color: rgba(197, 240, 74, .38); }
.card.stack { display: flex; flex-direction: column; gap: 16px; }
.cardhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.stack > .cardhead { margin-bottom: 0; }
.sub { font-size: 12px; color: var(--muted); }
.panel { padding: 14px; border-radius: 12px; background: var(--s2); }
.info { padding: 14px; border-radius: 12px; background: var(--s2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.infos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* ---------- text & atoms ---------- */
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.big { font: 600 26px/1.15 var(--font-num); font-variant-numeric: tabular-nums; margin-top: 6px; }
.muted { color: var(--muted); } .ink2 { color: var(--ink2); }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
.r { text-align: right; }
.row { display: flex; align-items: center; gap: 12px; }
.wrapflex { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--s3); color: var(--ink2); font-size: 12px; font-weight: 500; white-space: nowrap;
}
.chip.lime { background: var(--limed); color: var(--lime); }
.chip.warn { background: rgba(250, 178, 25, .12); color: var(--warn); }
.chip.crit { background: rgba(208, 59, 59, .16); color: #ffb4b4; }
.chip.small { padding: 1px 7px; font-size: 10px; }
.chip strong { color: var(--ink); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.live { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.live.pulse { animation: pulse 2.4s infinite; }
.star { color: var(--lime); }
.pos { display: inline-block; padding: 2px 7px; border-radius: 6px; background: var(--s3); color: var(--ink2); font-size: 11px; font-weight: 600; letter-spacing: .04em; }
.lock { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; background: rgba(250, 178, 25, .12); color: var(--warn); font-size: 11px; font-weight: 600; }
.alert { padding: 12px 14px; border-radius: 12px; background: rgba(208, 59, 59, .12); color: #ffb4b4; font-size: 13px; }
.alert.warn { background: rgba(250, 178, 25, .1); color: #ffd98a; }
.textlink { font-size: 13px; font-weight: 600; text-decoration: none; }
.empty { margin: 0; color: var(--muted); font-size: 13px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  text-align: center; border-radius: 10px; border: 1px solid var(--line2); background: var(--s2); color: var(--ink);
  font: 600 14px var(--font); cursor: pointer; text-decoration: none; transition: background .2s;
}
.btn:hover { background: var(--s3); color: var(--ink); }
.btn.lime { background: var(--lime); color: var(--bg); border-color: transparent; }
.btn.lime:hover { background: var(--lime-hover); color: var(--bg); }
.iconbtn {
  width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s;
}
.iconbtn:hover { background: var(--s3); color: var(--ink); }
.inline-form { margin: 0; }
.rerun { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }

/* Avatar: the ligainsider photo where there is one, initials otherwise; the
   ring is the fitness colour, the small badge the club crest. */
.av {
  position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%;
  background: var(--s3); color: var(--ink); border: 2px solid transparent;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 13px var(--font-num);
}
.av img.photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: top; }
.av .crest { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; object-fit: contain; }
.av .badge-star { position: absolute; top: -6px; right: -7px; font-size: 13px; color: var(--lime); line-height: 1; }
.av.lg { width: 56px; height: 56px; font-size: 18px; border-width: 3px; }
.av.lg .crest { width: 22px; height: 22px; }

/* ---------- meters & bars ---------- */
.track { height: 8px; border-radius: 999px; background: var(--s3); overflow: hidden; }
.track.thin { height: 4px; }
.track.mid { height: 6px; }
.fill { display: block; height: 100%; border-radius: 999px; background: var(--series); transform-origin: left center; animation: grow 1.1s cubic-bezier(.2, .7, .2, 1) both; }
.segbar { display: flex; gap: 2px; height: 12px; border-radius: 999px; overflow: hidden; }
.segbar > div { height: 100%; transform-origin: left center; animation: grow 1s cubic-bezier(.2, .7, .2, 1) both; }
.depthdot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.depthdot.filled { background: var(--lime); }
.depthdot.bench { border: 2px solid var(--muted); }
.depthdot.missing { border: 2px solid var(--crit); }
.ring { animation: ringin 1.6s cubic-bezier(.3, .6, .2, 1) both; }
/* The countdown inside the ring: numbers large, units small - it has 72 px. */
.cd { font-size: 18px; font-weight: 600; white-space: nowrap; }
.cd small { margin-left: 1px; font-size: 12px; font-weight: 500; color: var(--ink2); }
/* revealed left to right by a clip, not a dash: Chrome measures dashes on a
   non-scaling stroke in screen pixels, so a stretched line lost its end */
.draw { animation: draw 1.8s cubic-bezier(.3, .6, .2, 1) both; }
.fadein { animation: fadein 1.2s ease .6s both; }
.bar { position: absolute; top: 0; height: 100%; border-radius: 4px; animation: grow 1s cubic-bezier(.2, .7, .2, 1) both; }
.bar.up { background: var(--up); transform-origin: left center; }
.bar.down { background: var(--down); transform-origin: right center; }
.bar.flat { background: var(--muted); }
.hbar { height: 12px; border-radius: 6px; background: var(--s3); overflow: hidden; }
.hbar > span { display: block; height: 100%; background: var(--series); transform-origin: left center; animation: grow 1s cubic-bezier(.2, .7, .2, 1) both; }

/* ---------- lists ---------- */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; padding-top: 0; }
.list.start > li { align-items: flex-start; }
.list.compact > li { padding: 8px 0; font-size: 13px; }

/* ---------- advisor ---------- */
.kind {
  display: inline-flex; align-items: center; justify-content: center; min-width: 92px; height: 28px; padding: 0 10px;
  border-radius: 8px; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; flex: none;
}
.kind.bid { background: var(--lime); color: var(--bg); }
.kind.sell { background: transparent; color: var(--ink); border: 1px solid var(--line2); }
.kind.hold, .kind.watch { background: var(--s3); color: var(--ink2); }
.step { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 12px; background: rgba(10, 12, 16, .55); border: 1px solid var(--line); }
.step.locked, .action.locked { opacity: .55; }
.action { padding: 18px; border-radius: 14px; background: rgba(10, 12, 16, .6); border: 1px solid var(--line); animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.action + .action { margin-top: 12px; }
.action p { margin: 12px 0 0; line-height: 1.6; color: var(--ink2); }
.link-follow { display: flex; align-items: center; gap: 8px; margin: 0 0 0 30px; padding: 8px 0 8px 18px; border-left: 2px dashed rgba(197, 240, 74, .35); font-size: 12px; color: var(--lime); }
.follow-hint { display: flex; align-items: center; gap: 8px; padding-left: 18px; font-size: 12px; color: var(--muted); }
.summary { margin: 0; font-size: 17px; line-height: 1.6; max-width: 72ch; }
.notebook-num {
  width: 22px; height: 22px; flex: none; border-radius: 6px; background: var(--s3); color: var(--lime);
  font: 600 12px var(--font-num); display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}

/* ---------- forms ---------- */
.note-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 16px; margin: 0 0 18px; border-radius: 12px; background: var(--s2); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink2); }
.field.wide, .note-form .wide { grid-column: 1 / -1; }
.field select, .field input, .field textarea {
  min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line2);
  background: #0e1116; color: var(--ink); font: 400 14px var(--font);
}
.field textarea { min-height: 76px; resize: vertical; }
details.add > summary { list-style: none; cursor: pointer; }
details.add > summary::-webkit-details-marker { display: none; }
details.add > summary.btn { width: max-content; }
details.add[open] > summary.btn { background: var(--s3); }
details.fold > summary { cursor: pointer; color: var(--ink2); font-size: 13px; font-weight: 600; min-height: 36px; display: flex; align-items: center; }

/* ---------- pitch ---------- */
.pitch { position: relative; overflow: hidden; border-radius: 16px; background: #0f1410; border: 1px solid rgba(255, 255, 255, .06); padding: 22px 8px; display: flex; flex-direction: column; gap: 22px; }
.pitch.small { padding: 18px 6px; gap: 16px; }
.pitch .mark { position: absolute; border: 1px solid rgba(255, 255, 255, .07); pointer-events: none; }
.pitch .halfway { left: 14px; right: 14px; top: 50%; border-width: 1px 0 0; }
.pitch .circle { left: 50%; top: 50%; width: 110px; height: 110px; margin: -55px 0 0 -55px; border-radius: 50%; }
.pitch .box-top { left: 28%; right: 28%; top: 0; height: 60px; border-top: 0; }
.pitch .box-bottom { left: 28%; right: 28%; bottom: 0; height: 60px; border-bottom: 0; }
.prow { position: relative; display: flex; justify-content: space-around; }
.pl {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; padding: 6px 0;
  border: 0; border-radius: 12px; background: transparent; color: inherit; font: inherit; cursor: pointer;
  animation: pop .6s cubic-bezier(.2, .8, .3, 1.2) both; transition: background .2s;
}
.pl:hover { background: rgba(255, 255, 255, .04); }
.pl .av { width: 54px; height: 54px; border-width: 3px; font-size: 15px; transition: transform .25s, box-shadow .25s; }
.pitch.small .pl { width: 76px; cursor: default; }
.pitch.small .pl .av { width: 42px; height: 42px; font-size: 13px; }
.pl.sel .av { transform: scale(1.1); box-shadow: 0 0 0 4px rgba(197, 240, 74, .35); }
.pname { max-width: 96px; font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pmeta { font-size: 11px; color: var(--muted); }
.benchbtn { flex-direction: row; width: auto; padding: 6px 12px 6px 6px; gap: 10px; background: var(--s2); }
.benchbtn .av { width: 38px; height: 38px; border-width: 2px; font-size: 12px; }
.statgrid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; }
.statgrid > div { padding: 12px; border-radius: 12px; background: var(--s2); }
.statgrid .num { font-size: 20px; font-weight: 600; white-space: nowrap; }

/* ---------- tabs, segmented controls, toggles ---------- */
.tabs, .seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); }
.tabs button, .seg button {
  min-height: 40px; min-width: 48px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent;
  color: var(--ink2); font: 600 13px var(--font); cursor: pointer; transition: background .2s, color .2s;
}
.tabs button:hover, .seg button:hover { color: var(--ink); }
.tabs button.on, .seg button.on { background: var(--lime); color: var(--bg); }
.pillbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pillbar button {
  min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: transparent;
  color: var(--ink2); font: 500 13px var(--font); cursor: pointer;
}
.pillbar button.on { background: var(--s3); color: var(--ink); border-color: transparent; }
.tog {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line2); background: transparent; color: var(--ink2); font: 500 13px var(--font); cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.tog .box { width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.tog .box svg { opacity: 0; }
.tog[aria-pressed="true"] { border-color: rgba(197, 240, 74, .5); color: var(--ink); background: var(--limed); }
.tog[aria-pressed="true"] .box { background: var(--lime); border-color: var(--lime); }
.tog[aria-pressed="true"] .box svg { opacity: 1; }

/* ---------- player cards (Kaderliste) ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.pcard {
  display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; background: var(--s1);
  border: 1px solid var(--line); animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; transition: border-color .2s, transform .2s;
}
.pcard:hover { border-color: var(--line2); transform: translateY(-2px); }
.pcard.flash { border-color: var(--lime); }
.pcard .newsline { border-top: 1px solid var(--line); padding-top: 10px; font-size: 12px; }
.newsitems { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.newsitems a { color: var(--ink); text-decoration: none; }
.newsitems a:hover { color: var(--lime); }

/* ---------- charts ---------- */
.chart { position: relative; height: 240px; }
.chart.stretch { flex: 1 1 240px; height: auto; min-height: 240px; }
.chart svg.plot { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart .ylab { position: absolute; left: 0; transform: translateY(-50%); font-size: 11px; color: var(--muted); }
.chart .xlab { position: absolute; top: calc(88.33% + 6px); transform: translateX(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; }
.chart .xlab.last { transform: translateX(-100%); }
.chart .cross { position: absolute; top: 6.7%; bottom: 11.7%; width: 1px; background: rgba(255, 255, 255, .22); pointer-events: none; }
.chart .marker { position: absolute; width: 10px; height: 10px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--series); border: 2px solid var(--s1); pointer-events: none; }
.scatter { position: relative; height: 340px; }
.scatter .plot { position: absolute; left: 40px; right: 14px; top: 10px; bottom: 30px; }
.scatter .gl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--grid); }
.scatter .gl.base { border-color: var(--axis); }
.scatter .ylab { position: absolute; left: -32px; transform: translateY(50%); font-size: 11px; color: var(--muted); }
.scatter .xlab { position: absolute; bottom: -24px; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.pt {
  position: absolute; width: 26px; height: 26px; margin: 0 0 -13px -13px; padding: 0; border: 0; background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center; animation: pop .5s cubic-bezier(.2, .8, .3, 1.3) both;
}
.pt span { width: 11px; height: 11px; border-radius: 50%; transition: transform .2s; }
.pt:hover span, .pt.hov span, .pt:focus-visible span { transform: scale(1.5); }
.pt.cand span { background: var(--series); box-shadow: 0 0 0 2px var(--s1); }
.pt.other span { background: var(--other); box-shadow: 0 0 0 2px var(--s1); }
.pt.out span { border: 2px solid var(--crit); }
.ptlabel { position: absolute; transform: translate(10px, 50%); font-size: 12px; font-weight: 600; color: var(--ink); pointer-events: none; white-space: nowrap; }
.tooltip {
  position: absolute; z-index: 2; padding: 10px 12px; border-radius: 10px; background: #252b35; border: 1px solid var(--line2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font-size: 12px; white-space: nowrap; pointer-events: none;
}
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sw.sq { border-radius: 3px; width: 12px; height: 12px; }
.sw.ring { background: transparent; border: 2px solid; }

/* ---------- market table ---------- */
.tablebox { overflow-x: auto; }
.trow {
  display: grid; grid-template-columns: minmax(220px, 2.4fr) 52px 64px 150px 104px 112px 84px 118px 96px;
  align-items: center; gap: 8px; min-width: 1030px; padding: 10px 12px; border-top: 1px solid var(--line); transition: background .2s;
}
.trow:hover { background: rgba(255, 255, 255, .025); }
.mgroup.cand .trow { background: rgba(197, 240, 74, .045); }
.trow.thead { border-top: 0; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.trow.thead button { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.trow.thead button:hover { color: var(--ink); }
.trow.thead button[aria-sort="ascending"], .trow.thead button[aria-sort="descending"] { color: var(--lime); }
.newsbtn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line2); background: transparent; color: var(--ink2); font: 500 12px var(--font); cursor: pointer; }
.newsbtn[aria-expanded="true"] { background: var(--s3); color: var(--ink); }
.newsbtn[aria-expanded="true"] svg { transform: rotate(180deg); }
.newsbtn svg { transition: transform .2s; }
.newsdetail { min-width: 1030px; padding: 4px 12px 14px 58px; display: flex; flex-direction: column; gap: 8px; animation: rise .35s ease both; }
.newsdetail .when { width: 92px; flex: none; }
.mgroup.flash .trow { background: var(--limed); }
/* "Von dir eingestellt" / "Zum Kaufen": the two blocks of the offers table */
.tgroup { min-width: 1030px; padding: 14px 12px 8px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.mgroup.own .trow { background: rgba(255, 255, 255, .03); }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 380px; padding: 32px; border-radius: 18px; background: var(--s1); border: 1px solid var(--line); animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; display: flex; flex-direction: column; gap: 18px; }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw { from { clip-path: inset(-10px 100% -10px -10px); } to { clip-path: inset(-10px -10px -10px -10px); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes ringin { from { stroke-dashoffset: 251.3; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(12, 163, 12, .55); }
  70% { box-shadow: 0 0 0 9px rgba(12, 163, 12, 0); }
  100% { box-shadow: 0 0 0 0 rgba(12, 163, 12, 0); }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .c3 { grid-column: span 6; }
  .c4, .c5, .c6, .c7, .c8 { grid-column: span 12; }
}
@media (max-width: 860px) {
  .c3.third { grid-column: span 12; }
  .side { max-width: none; min-width: 0; flex-basis: 100%; padding: 14px 16px; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .nav { flex-direction: row; overflow-x: auto; }
  .nav > a { white-space: nowrap; }
  .subnav, .sidefoot { display: none; }
  .main { padding: 20px 16px 40px; }
  .pitch .pl { width: 72px; }
  .pitch .pl .av { width: 44px; height: 44px; }
  .infos { grid-template-columns: 1fr; }
  .note-form { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  /* the offers table becomes a card per offer: name + price, then position,
     points, status and the premium under the price, then rating + news.
     The market value is left out - the premium already relates to it. */
  .trow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-width: 0; }
  .mgroup .c-pl { order: 1; flex: 1 1 calc(100% - 120px); }
  .mgroup .c-ask { order: 2; margin-left: auto; }
  .mgroup .c-pos { order: 3; }
  .mgroup .c-pts { order: 4; }
  .mgroup .c-st { order: 5; }
  .mgroup .c-prem { order: 6; margin-left: auto; }
  .mgroup .c-mv { display: none; }
  .mgroup .c-sc { order: 7; flex: 1 1 150px; }
  .mgroup .c-news { order: 8; }
  .mgroup .c-pts:not(:empty)::after { content: " P"; font-weight: 400; color: var(--muted); }
  .trow.thead { gap: 4px 14px; }
  .trow.thead > .c-st, .trow.thead > .c-news { display: none; }
  .newsdetail { min-width: 0; padding-left: 12px; }
  .tgroup { min-width: 0; }
  .mgroup.own .c-sc { display: none; }  /* "Dein Spieler" already says it */
}
@media (max-width: 600px) {
  .c3 { grid-column: span 12; }
  .step, .action > .row, .mwrap { flex-wrap: wrap; }
  .kind { min-width: 0; }
  .step > .grow, .action > .row > .grow, .mwrap > .grow { flex-basis: 140px; }
  .step > .r, .action > .row > .r, .mwrap > .r { margin-left: auto; }
  .h1 { font-size: 26px; }
  .pitch .pmv { display: none; }
  /* the four pages as a tab bar */
  .nav { gap: 4px; }
  .nav > a { position: relative; flex: 1 1 0; min-width: 0; flex-direction: column; justify-content: center; gap: 4px; min-height: 56px; padding: 6px 2px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
