:root {
  --bg: #f4f6f8;
  --card: #ffffff;
  --border: #e2e6ea;
  --ink: #1c2530;
  --muted: #6a7683;
  --accent: #185fa5;
  --accent-soft: #e6f1fb;
  --good: #1f8a52;
  --bad: #c23b3b;
  --gold: #b8860b;
  --sand: #f3ead9;
  --grass: #e4eddc;
  --roof: #2e6fb0;
  --fila: #ef9a44;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(20, 40, 60, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 650; }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--accent);
}
.pill.muted { background: #eef1f4; color: var(--muted); }
.pill.good { background: #e5f4ec; color: var(--good); }

.mono-num { font-variant-numeric: tabular-nums; }
.big { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  font-weight: 650;
  transition: filter 0.12s ease;
}
button:hover { filter: brightness(1.05); }
button:disabled { background: #c7ced4; color: #eef1f4; cursor: not-allowed; }
button.ghost { background: #eef1f4; color: var(--ink); }
button.ghost:hover { background: #e4e9ee; }

input {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}

.muted { color: var(--muted); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.center { text-align: center; }

/* ---- Host layout ---- */
.host-wrap { max-width: 1400px; margin: 0 auto; padding: 18px 22px 40px; }
.host-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 16px;
}
.host-head .title-block { display: flex; flex-direction: column; gap: 8px; }
.host-head h1 { font-size: 28px; }
.host-head .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.host-head .meta .pill { font-size: 16px; padding: 7px 16px; }
.host-head .meta button { padding: 10px 18px; font-size: 16px; }
.icon-btn { padding: 8px 12px !important; font-size: 18px !important; }

/* Phasen-Banner */
.phase-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: center; pointer-events: none;
}
.phase-banner .pb-inner {
  margin-top: 14vh; background: var(--accent); color: #fff;
  padding: 22px 48px; border-radius: 18px; box-shadow: 0 16px 50px rgba(24,95,165,0.4);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.phase-banner .pb-idx { font-size: 15px; font-weight: 600; opacity: 0.85; text-transform: uppercase; letter-spacing: 1.5px; }
.phase-banner .pb-name { font-size: 40px; font-weight: 800; letter-spacing: -1px; }
.phase-banner.show .pb-inner { animation: pbpop 1.9s ease forwards; }
@keyframes pbpop {
  0% { opacity: 0; transform: translateY(-16px) scale(0.94); }
  12% { opacity: 1; transform: translateY(0) scale(1); }
  80% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-10px) scale(0.98); }
}
.qr-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; text-align: center; }
.qr-box img { width: 128px; height: 128px; display: block; }
.qr-box .code { font-weight: 700; letter-spacing: 3px; margin-top: 6px; font-size: 18px; }
.qr-box .hint { font-size: 11px; color: var(--muted); }

.firms { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 20px; }
.firm { position: relative; padding: 18px 20px; }
.firm .fname { font-size: 21px; font-weight: 700; margin-bottom: 2px; }
.firm .cash { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 12px; }
.firm .rows { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; font-size: 17px; }
.firm .rows .r { display: flex; justify-content: space-between; gap: 8px; }
.firm .rows .r b { font-weight: 700; }
.firm .rows .r .k { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.firm .rows .r .k .icon { width: 17px; height: 17px; }
.firm .badge-ready { position: absolute; top: 12px; right: 12px; font-size: 11px; }
.firm.offline { opacity: 0.5; }
.firm.winner { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(184,134,11,0.25); }

.stage { min-height: 240px; padding: 22px 26px; }
.stage h2 { font-size: 28px; margin-bottom: 10px; letter-spacing: -0.5px; }
.stage-sub { font-size: 17px; color: var(--muted); margin: 0 0 14px; line-height: 1.4; }
.stage-sub b { color: var(--ink); }
.market-grid, .order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.tile { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: #fbfcfd; }
.tile .t-name { font-weight: 650; margin-bottom: 6px; font-size: 16px; }
.tile .t-num { font-size: 27px; font-weight: 800; letter-spacing: -0.5px; }
.tile.blue { background: var(--accent-soft); border-color: #cfe4f7; }

.status-bar {
  margin-top: 18px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.confirm-track { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #eef1f4; color: var(--muted); }
.chip.on { background: #e5f4ec; color: var(--good); }

table.reveal { width: 100%; border-collapse: collapse; font-size: 17px; }
table.reveal th, table.reveal td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--border); }
table.reveal th { color: var(--muted); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 0.4px; }
table.reveal td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.reveal.big-table { font-size: 19px; }
table.reveal.big-table td { padding: 13px 12px; }

.lobby-players { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.lobby-players .lp { padding: 8px 16px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; font-weight: 650; }
.lobby-players .lp.bot { background: #eef1f4; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.lobby-players .lp.bot .lvl { font-size: 12px; color: var(--muted); font-weight: 600; }
.lobby-players .lp.bot .rm { cursor: pointer; color: var(--muted); font-weight: 800; padding: 0 2px; }
.lobby-players .lp.bot .rm:hover { color: var(--bad); }
.bot-add { display: flex; gap: 8px; flex-wrap: wrap; }
.bot-add .botbtn { padding: 10px 14px; }
.bot-tag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--muted); background: #eef1f4; border-radius: 999px; padding: 2px 9px; vertical-align: middle; }

.icon { width: 15px; height: 15px; display: inline-block; vertical-align: -2px; opacity: 0.75; }

/* ---- Play (handy) layout ---- */
.play-wrap { max-width: 520px; margin: 0 auto; padding: 12px 14px 90px; }
.play-summary {
  position: sticky; top: 0; z-index: 5; background: var(--bg);
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.play-summary .firm-name { font-weight: 700; font-size: 16px; }
.play-summary .cash { font-size: 20px; font-weight: 700; }
.sum-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.sum-grid .s { background: var(--card); border: 1px solid var(--border); border-radius: 9px; padding: 7px 8px; text-align: center; }
.sum-grid .s .lab { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.sum-grid .s .val { font-size: 16px; font-weight: 700; }

.play-phase { margin-top: 14px; }
.play-phase h2 { font-size: 18px; margin-bottom: 4px; }
.play-phase .desc { color: var(--muted); font-size: 14px; margin-bottom: 14px; }

.stepper { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.stepper .lab { font-weight: 600; }
.stepper .lab .sub { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.stepper .ctrl { display: flex; align-items: center; gap: 10px; }
.stepper .ctrl button { width: 44px; height: 44px; padding: 0; font-size: 22px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.stepper .ctrl button:disabled { background: #eef1f4; color: #c7ced4; }
.stepper .ctrl .num { min-width: 46px; text-align: center; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stepper .ctrl input.num-input { width: 68px; padding: 8px 4px; border: 1px solid var(--border); border-radius: 10px; background: #fff; -moz-appearance: textfield; }
.stepper .ctrl input.num-input::-webkit-outer-spin-button,
.stepper .ctrl input.num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper .ctrl input.num-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

/* Rollen-Infofeld (ausklappbar) */
details.roles { margin: 0 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow: hidden; }
details.roles summary { cursor: pointer; padding: 12px 14px; font-weight: 650; color: var(--accent); list-style: none; }
details.roles summary::-webkit-details-marker { display: none; }
details.roles summary::before { content: 'ℹ️ '; }
details.roles[open] summary { border-bottom: 1px solid var(--border); }
.roles-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.roles-body .role { font-size: 14px; line-height: 1.4; color: var(--muted); }
.roles-body .role b { color: var(--ink); display: inline; }

/* Phasen-Ergebnis auf dem Handy */
.phase-result { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px; margin-top: 6px; }
.res-head { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.res-emoji { font-size: 20px; }
.res-title { font-size: 22px; font-weight: 750; margin: 8px 0 14px; line-height: 1.25; }
.res-title b { color: var(--accent); }
.res-sub { color: var(--muted); font-size: 15px; line-height: 1.4; }
.res-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 16px; }
.res-line b { font-variant-numeric: tabular-nums; font-weight: 700; }
.res-line b.big { font-size: 22px; }
.res-foot { margin-top: 14px; color: var(--muted); font-size: 13px; text-align: center; }

.order-pick { border: 1px solid var(--border); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.order-pick.disabled { opacity: 0.55; }
.order-pick .op-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.order-pick .op-name { font-weight: 650; }
.order-pick .op-meta { font-size: 13px; color: var(--muted); }
.order-pick .op-row { display: flex; align-items: center; gap: 10px; }
.tile .op-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; }
.tile .op-row b { font-weight: 700; font-variant-numeric: tabular-nums; }
.order-pick label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.order-pick input[type=number] { width: 100%; }
.order-pick .warn { font-size: 12px; color: var(--bad); margin-top: 6px; }

.confirm-bar {
  position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 14px;
  background: linear-gradient(to top, var(--bg) 70%, rgba(244,246,248,0));
}
.confirm-bar .inner { max-width: 520px; margin: 0 auto; }
.confirm-bar button { width: 100%; padding: 16px; font-size: 17px; }

.waiting { text-align: center; padding: 30px 10px; color: var(--muted); }
.waiting .big-emoji { font-size: 34px; margin-bottom: 8px; }

.join-card { margin-top: 40px; }
.join-card h1 { font-size: 22px; margin-bottom: 4px; }
.join-card .sub { color: var(--muted); margin-bottom: 18px; }
.join-card .field { margin-bottom: 12px; }
.join-card label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 5px; }
.join-card input { width: 100%; }
.join-card input.code-in { text-transform: uppercase; letter-spacing: 4px; font-weight: 700; }
.join-card button { width: 100%; margin-top: 6px; }
.err { color: var(--bad); font-size: 14px; margin-top: 10px; min-height: 18px; }

.hidden { display: none !important; }

/* ---- Modus-Umschalter (hosten / beitreten) auf der Join-Seite ---- */
.mode-toggle { display: flex; background: #e3e9ef; border-radius: 999px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.mode-toggle button { flex: 1; border: none; background: transparent; font: inherit; font-weight: 650; color: var(--muted); padding: 11px; border-radius: 999px; cursor: pointer; }
.mode-toggle button.on { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(20,40,60,0.12); }

/* ---- Host-Leiste auf dem Handy (wenn ich selbst hoste) ---- */
.host-strip { background: linear-gradient(#1a63a8, #12508f); color: #fff; border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 3px 12px rgba(24,95,165,0.25); }
.host-strip .hs-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.host-strip .hs-code b { font-size: 18px; letter-spacing: 2px; }
.host-strip .hs-tag { font-size: 12px; opacity: 0.85; }
.host-strip .hs-phase { font-weight: 700; }
.host-strip .hs-bots { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.host-strip .hs-bot { flex: 1 1 auto; background: rgba(255,255,255,0.16); color: #fff; border: none; border-radius: 9px; padding: 9px 6px; font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.host-strip .hs-bot:active { background: rgba(255,255,255,0.3); }
.host-strip .hs-start { width: 100%; margin-top: 4px; background: #fff; color: var(--accent); border: none; border-radius: 10px; padding: 13px; font: inherit; font-weight: 700; cursor: pointer; }
.host-strip .hs-start:disabled { opacity: 0.5; }
.host-strip .hs-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.host-strip .hs-ctrl .hs-status { flex: 1; text-align: center; font-size: 13px; opacity: 0.92; }
.host-strip .hs-back, .host-strip .hs-next { border: none; border-radius: 10px; padding: 11px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.host-strip .hs-back { background: rgba(255,255,255,0.16); color: #fff; }
.host-strip .hs-next { background: #fff; color: var(--accent); }
.host-strip .hs-next:disabled, .host-strip .hs-back:disabled { opacity: 0.4; }
.host-strip .hs-info { margin-top: 8px; }
.host-strip .hs-info summary { cursor: pointer; font-size: 13px; opacity: 0.92; }
.host-strip .hs-info-body { margin-top: 8px; text-align: center; background: rgba(255,255,255,0.1); border-radius: 10px; padding: 10px; }
.host-strip .hs-qr { width: 150px; height: 150px; background: #fff; border-radius: 8px; padding: 6px; }
.host-strip .hs-tv { font-size: 13px; margin-top: 8px; word-break: break-all; line-height: 1.4; }
.host-strip .hs-label { font-size: 12px; opacity: 0.85; margin: 10px 0 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.host-strip .hs-exps { display: flex; flex-direction: column; gap: 6px; }
.host-strip .hs-exp { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: rgba(255,255,255,0.12); border: none; border-radius: 10px; padding: 10px 12px; color: #fff; font: inherit; cursor: pointer; }
.host-strip .hs-exp.on { background: rgba(255,255,255,0.24); }
.host-strip .hs-exp-check { width: 22px; height: 22px; flex: none; border-radius: 6px; border: 2px solid rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.host-strip .hs-exp.on .hs-exp-check { background: #fff; color: var(--accent); border-color: #fff; }
.host-strip .hs-exp-body { display: flex; flex-direction: column; gap: 2px; }
.host-strip .hs-exp-body b { font-size: 15px; }
.host-strip .hs-exp-body span { font-size: 12px; opacity: 0.85; line-height: 1.35; }

/* Erweiterungs-Umschalter in der Laptop-Lobby */
.exp-list { display: flex; flex-direction: column; gap: 8px; }
.exp-toggle { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: #f4f6f8; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; }
.exp-toggle.on { background: var(--accent-soft); border-color: #cfe4f7; }
.exp-check { width: 24px; height: 24px; flex: none; border-radius: 7px; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent); }
.exp-toggle.on .exp-check { background: var(--accent); color: #fff; border-color: var(--accent); }
.exp-body { display: flex; flex-direction: column; gap: 2px; }
.exp-name { font-weight: 700; font-size: 16px; }
.exp-desc { font-size: 13px; color: var(--muted); line-height: 1.35; }

/* Außergewöhnliche Großaufträge (Jackpot) hervorheben */
.tile.jackpot { background: linear-gradient(#fdf6e3, #fbedcb); border-color: #e6c56b; }
.tile.jackpot .t-name { color: #9a6b12; }
.order-pick.jackpot { border-color: #e6c56b; background: #fdf6e3; }
.order-pick.jackpot .op-name { color: #9a6b12; }

/* ---- Ansicht-Umschalter (Realansicht / Zahlen) ---- */
.view-toggle { display: inline-flex; background: #e3e9ef; border-radius: 999px; padding: 4px; gap: 4px; }
.view-toggle button { border: none; background: transparent; font: inherit; font-weight: 650; color: var(--muted); padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: 0.15s; }
.view-toggle button.on { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(20,40,60,0.12); }

/* ---- Realansicht: Firmen-Viertel ---- */
.rv-board { position: relative; background: radial-gradient(circle at 30% 15%, #edf3f8, #e7edf3); border: 1px solid var(--border); border-radius: 20px; padding: 20px; margin-bottom: 20px; box-shadow: inset 0 0 60px rgba(24,95,165,0.05); }
.rv-board::before { content: ''; position: absolute; inset: 0; border-radius: 20px; background-image: radial-gradient(#d6e0ea 1.4px, transparent 1.4px); background-size: 26px 26px; opacity: 0.5; pointer-events: none; }
.rv-hub { position: relative; margin: 0 auto 18px; max-width: 460px; background: linear-gradient(#f0f7ff,#e2eefb); border: 1px solid #cfe2f5; border-radius: 16px; padding: 12px 16px; text-align: center; box-shadow: 0 4px 16px rgba(24,95,165,0.12); }
.rv-hub .htitle { font-weight: 800; font-size: 18px; color: var(--accent); }
.rv-hub .hstat { display: flex; justify-content: center; gap: 20px; margin-top: 6px; font-size: 14px; }
.rv-hub .hstat b { display: block; font-size: 20px; }
.rv-plots { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.rv-plot { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 12px; box-shadow: 0 3px 10px rgba(20,40,60,0.06); cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; position: relative; }
.rv-plot:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(20,40,60,0.14); }
.rv-plot.you { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.rv-plot .np { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.rv-plot .np .name { font-weight: 750; font-size: 17px; }
.rv-plot .rank { font-size: 12px; font-weight: 700; color: #fff; background: var(--muted); border-radius: 999px; padding: 2px 9px; }
.rv-plot .rank.r1 { background: var(--gold); } .rv-plot .rank.r2 { background: #8a97a3; } .rv-plot .rank.r3 { background: #b07a4a; }
.rv-plot .cash { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; }
.rv-plot .cash.bad { color: var(--bad); }
.rv-plot .delta { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 9px; margin-left: 6px; vertical-align: middle; }
.rv-plot .delta.up { background: #e5f4ec; color: var(--good); } .rv-plot .delta.down { background: #f6e4e4; color: var(--bad); }
.rv-scene { margin: 6px 0 8px; border-radius: 12px; overflow: hidden; background: linear-gradient(#eef4ea,#e4ecdb); }
.rv-scene svg { display: block; width: 100%; height: auto; }
.rv-badge { font-size: 11px; font-weight: 600; color: var(--muted); background: #eef1f4; border-radius: 999px; padding: 2px 8px; }
.rv-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.rv-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 650; background: #f4f6f8; border: 1px solid var(--border); border-radius: 8px; padding: 4px 9px; }
.rv-chip .mut { color: var(--muted); font-weight: 500; }
.rv-peek { position: absolute; top: 12px; right: 12px; font-size: 11px; color: var(--accent); opacity: 0; transition: 0.15s; }
.rv-plot:hover .rv-peek { opacity: 1; }
.rv-ready { position: absolute; top: 10px; right: 12px; font-size: 11px; }

/* Firmenzentrale-Detail (reinschauen) */
.rv-overlay { position: fixed; inset: 0; background: rgba(28,37,48,0.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 45; }
.rv-hq { width: min(940px, 96vw); max-height: 92vh; overflow: auto; background: var(--card); border-radius: 20px; box-shadow: 0 20px 60px rgba(20,40,60,0.3); }
.rv-hq-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.rv-hq-head .t { font-size: 24px; font-weight: 800; }
.rv-hq-body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; padding: 20px 22px; }
.rv-hq-scene { background: linear-gradient(#eef4ea,#e2ecd8); border-radius: 14px; overflow: hidden; }
.rv-hq-scene svg { display: block; width: 100%; height: auto; }
.rv-panel h3 { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); }
.rv-statgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.rv-statgrid .s { background: #f7f9fb; border: 1px solid var(--border); border-radius: 10px; padding: 9px 11px; display: flex; justify-content: space-between; align-items: baseline; }
.rv-statgrid .s .lab { color: var(--muted); font-size: 13px; } .rv-statgrid .s .v { font-weight: 750; font-size: 18px; }
.rv-flow { display: flex; align-items: center; justify-content: space-between; gap: 6px; background: #f7f9fb; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin-bottom: 16px; }
.rv-flow .node { text-align: center; font-size: 12px; color: var(--muted); } .rv-flow .node b { display: block; font-size: 21px; color: var(--ink); }
.rv-flow .arr { color: var(--muted); font-size: 20px; }
.rv-bars .barrow { display: flex; align-items: center; gap: 10px; margin: 7px 0; font-size: 14px; }
.rv-bars .barrow .lb { width: 78px; color: var(--muted); }
.rv-bars .track { flex: 1; height: 12px; background: #eef1f4; border-radius: 999px; overflow: hidden; }
.rv-bars .fill { height: 100%; border-radius: 999px; }
.rv-pl .row { display: flex; justify-content: space-between; padding: 9px 0; font-size: 16px; border-bottom: 1px solid var(--border); }
.rv-pl .row b { font-variant-numeric: tabular-nums; }
@media (max-width: 780px) { .rv-hq-body { grid-template-columns: 1fr; } }

/* ---- Intro / Erklaer-Reel ---- */
.intro-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(28, 37, 48, 0.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.intro-card {
  width: min(900px, 94vw); background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; box-shadow: 0 12px 40px rgba(20, 40, 60, 0.18);
  padding: 26px 30px 22px; text-align: center;
}
.intro-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.intro-kicker { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; }
.intro-step-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.intro-stage { min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.iv-tag { font-size: 14px; font-weight: 700; color: var(--accent); min-height: 18px; }
.iv-title { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; }
.iv-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.iv-row.big { gap: 18px; }
.iv-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px;
  background: #f4f6f8; border: 1px solid var(--border); font-weight: 650; font-size: 16px;
}
.iv-chip .icon { width: 20px; height: 20px; }
.iv-row.big .iv-chip { font-size: 18px; padding: 16px 22px; }
.iv-tile { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 20px; border-radius: 12px; font-weight: 600; min-width: 110px; }
.iv-tile b { font-size: 22px; }
.iv-tile.blue { background: var(--accent-soft); border: 1px solid #cfe4f7; color: var(--accent); }
.iv-arrow { color: var(--muted); display: inline-flex; }
.iv-arrow .icon { width: 26px; height: 26px; }
.iv-highlight { margin-top: 10px; display: inline-block; padding: 8px 18px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 17px; }
.iv-highlight.bad { background: #f6e4e4; color: var(--bad); }
.iv-note { margin-top: 8px; color: var(--muted); font-size: 15px; }
.iv-trophy { margin-bottom: 4px; }
.intro-caption { margin-top: 16px; font-size: 18px; line-height: 1.45; min-height: 52px; color: var(--ink); }
.intro-dots { display: flex; gap: 8px; justify-content: center; margin: 16px 0 18px; }
.iv-dot { width: 9px; height: 9px; border-radius: 999px; background: #d7dde3; transition: background 0.2s; }
.iv-dot.done { background: #9fc4e6; }
.iv-dot.on { background: var(--accent); transform: scale(1.25); }
.intro-controls { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.intro-controls button { padding: 11px 20px; }
@media (max-width: 560px) {
  .iv-title { font-size: 24px; }
  .intro-caption { font-size: 16px; }
}
