: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; }

/* Kredit-Erweiterung (Handy) */
.credit-box { margin: 8px 0 12px; border: 1px solid #cfe4f7; background: var(--accent-soft); border-radius: 12px; padding: 10px 14px 4px; }
.credit-head { font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--accent); }
.credit-head b { font-variant-numeric: tabular-nums; }
.debt-note { color: var(--bad); font-size: 13px; font-weight: 650; margin-top: 2px; }
.contracts-note { color: var(--accent); font-size: 12px; font-weight: 600; margin-top: 3px; line-height: 1.4; }

/* Langfrist-Rahmenvertraege hervorheben */
.tile.longterm { background: #eef4fb; border-color: #cfe0f2; }
.tile.longterm .t-name { color: var(--accent); }
.order-pick.longterm { border-color: #cfe0f2; background: #f2f7fd; }
.order-pick.longterm .op-name { color: var(--accent); }

/* ---- 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; }
}

/* ---- Live-Nachverhandlung ---- */
/* Handy: aktive Nachbiet-Karte */
.tile.nego { border-color: #f0c674; background: #fffaf0; margin-bottom: 12px; }
.tile.nego.is-out { opacity: 0.72; background: #f5f6f7; border-color: var(--border); }
.nego-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.nego-name { font-weight: 700; font-size: 16px; }
.nego-lead { margin-top: 4px; font-size: 14px; color: var(--muted); }
.nego-lead .price { color: var(--accent); font-size: 16px; }
.nego-ctrl { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.nego-ctrl .np-btn { width: 44px; height: 44px; padding: 0; font-size: 22px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.nego-ctrl .np-in { flex: 1; min-width: 60px; padding: 10px 6px; text-align: center; font-size: 20px; font-weight: 700; border: 1px solid var(--border); border-radius: 10px; background: #fff; -moz-appearance: textfield; }
.nego-ctrl .np-in::-webkit-outer-spin-button, .nego-ctrl .np-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nego-ctrl .np-in:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.nego-ctrl .np-suf { font-size: 13px; color: var(--muted); }
.nego-earn { margin-top: 8px; font-size: 13px; }
.nego-outmsg { margin-top: 8px; font-size: 14px; color: var(--bad); }
.nego-out { margin-top: 10px; width: 100%; background: #fbeaea; color: var(--bad); font-weight: 650; }
.tile.nego.is-out .nego-out { background: var(--accent-soft); color: var(--accent); }
/* Handy: Warte-Ansicht waehrend andere nachbieten */
.nego-wrap { text-align: center; }
.nego-round { font-weight: 700; color: var(--accent); }
.nego-subline { font-size: 15px; margin-bottom: 12px; }
.nego-board { display: grid; gap: 6px; }
.nego-mini { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 8px 12px; background: #fffaf0; border: 1px solid #f0c674; border-radius: 10px; text-align: left; }
.nego-mini b { color: var(--accent); }
/* Grosser Screen: Live-Board */
.nego-live-head { font-size: 22px; font-weight: 800; color: var(--accent); margin-top: 8px; }
.tile.nego-live { background: #fffaf0; border-color: #f0c674; }
.nl-price { font-size: 30px; font-weight: 800; color: var(--accent); margin-top: 4px; }
.nl-price .nl-unit { font-size: 15px; font-weight: 600; color: var(--muted); }
.nl-lead { margin-top: 2px; font-size: 15px; }
.nl-chal { margin-top: 4px; font-size: 13px; }

/* ---- Grundversion-Änderungen (Playtest 2026-08-02) ---- */
.rv-plot.offline { opacity: 0.5; }
.sales-hint { font-size: 12px; color: var(--accent); background: var(--accent-soft); border-radius: 8px; padding: 4px 8px; margin: 4px 0; display: inline-block; }
.sales-hint b { font-variant-numeric: tabular-nums; }

/* ---- Aktienmarkt-Erweiterung ---- */
.stocks-box .stocks-sub { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 4px; }
.stock-row { border-top: 1px solid #e6eef6; padding: 8px 0 2px; }
.stock-row:first-of-type { border-top: none; }
.sr-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sr-name { font-weight: 650; }
.sr-price { font-variant-numeric: tabular-nums; font-weight: 700; }
.sr-price .good { font-size: 12px; } .sr-price .bad { font-size: 12px; }
.lev-row { display: flex; gap: 6px; margin: 6px 0 2px; }
.lev-btn { padding: 4px 12px; border-radius: 8px; background: #eef1f4; color: var(--muted); font-weight: 700; font-size: 13px; }
.lev-btn.on { background: var(--accent); color: #fff; }
.ko-note { background: #fbeaea; color: var(--bad); border-radius: 10px; padding: 8px 12px; font-weight: 650; margin-bottom: 10px; }
.pos-item { border: 1px solid #cfe4f7; border-radius: 10px; padding: 8px 10px; margin-bottom: 6px; background: #fff; }
.pos-item.closing { opacity: .6; }
.pi-top { display: flex; align-items: center; gap: 6px; }
.pi-top .pi-val { margin-left: auto; font-variant-numeric: tabular-nums; }
.lev-tag { background: var(--accent-soft); color: var(--accent); border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 700; }
.pos-close { margin-top: 6px; width: 100%; background: #fbeaea; color: var(--bad); font-weight: 650; padding: 6px; }
.pos-close.on { background: var(--accent-soft); color: var(--accent); }
/* Grosser Screen: Ticker */
.stock-ticker { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; }
.stock-ticker .tk-item b { font-variant-numeric: tabular-nums; }
.tk-ko { margin-top: 4px; color: var(--bad); font-weight: 650; font-size: 13px; }

/* ---- Produktkategorien-Erweiterung ---- */
.cat-row { border-top: 1px solid #e6eef6; padding: 8px 0 2px; }
.cat-row:first-of-type { border-top: none; }
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.cat-name { font-weight: 650; }
.req-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.req-chip { font-size: 13px; font-weight: 650; padding: 2px 8px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.req-chip.ok { background: #e5f4ec; color: var(--good); }
.req-chip.miss { background: #fbeaea; color: var(--bad); }
.tile.kombi, .order-pick.kombi { border-color: #d9b3e6; background: #faf4fd; }

/* ---- Filament-Börse: 5 Märkte ---- */
.fila-markets { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.fila-chip { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #eef1f4; color: var(--muted); font-weight: 600; }
.fila-chip.open { background: var(--accent); color: #fff; }
.fila-chip.done { background: #e5f4ec; color: var(--good); text-decoration: line-through; }
.fila-chip b { font-variant-numeric: tabular-nums; }
.fila-last { font-size: 13px; font-weight: 650; color: var(--good); background: #e5f4ec; border-radius: 10px; padding: 6px 10px; margin: 4px 0 2px; }
.fila-last.muted { color: var(--muted); background: #f3f5f7; }
.fila-head { font-size: 20px; font-weight: 800; color: var(--accent); }

/* ---- Verbindungs-Feedback (sanft statt alert) ---- */
.fc-toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: #222b36; color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; box-shadow: 0 8px 24px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 9999; max-width: 90vw; text-align: center; }
.fc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.fc-conn { position: fixed; top: 0; left: 0; right: 0; background: #c9781f; color: #fff; text-align: center; padding: 8px 12px; font-weight: 650; font-size: 14px; transform: translateY(-100%); transition: transform .2s; z-index: 9998; }
.fc-conn.show { transform: translateY(0); }

/* Raumcode auch im laufenden Spiel sichtbar */
.hs-coderow { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.18); font-size: 13px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 10px; }
.hs-coderow b { font-size: 16px; letter-spacing: .1em; color: #fff; }
.firm-code { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* ============================================================
   Übersicht im Spieler-Fenster + Laptop-Querformat
   Schmal (Handy): Umschalter zwischen "Mein Zug" und "Übersicht".
   Breit (Laptop): beide Spalten nebeneinander, größer und ruhiger.
   ============================================================ */
.view-tabs { display: flex; gap: 6px; background: #e9edf1; border-radius: 12px; padding: 4px; margin-bottom: 10px; }
.view-tabs button { flex: 1; padding: 9px 8px; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; font-size: 14px; }
.view-tabs button.on { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(0,0,0,.10); }

/* Schmal: nur eine Spalte sichtbar, gesteuert über .show-board */
.play-col-board { display: none; }
.play-cols.show-board .play-col-me { display: none; }
.play-cols.show-board .play-col-board { display: block; }

/* Übersichts-Panel */
.board-panel { display: flex; flex-direction: column; gap: 10px; }
.bp-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bp-market { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-mchip { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.bp-mchip b { font-variant-numeric: tabular-nums; }
.bp-news { font-size: 13px; font-weight: 650; color: var(--bad); background: #fbeaea; border-radius: 10px; padding: 7px 11px; }
.bp-event { font-size: 13px; background: var(--accent-soft); color: #123; border-radius: 10px; padding: 8px 11px; }
.bp-list { display: flex; flex-direction: column; gap: 8px; }
.bp-row { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: #fbfcfd; }
.bp-row.me { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 2px var(--accent-soft); }
.bp-head { display: flex; align-items: center; gap: 7px; }
.bp-rank { font-size: 12px; font-weight: 800; color: var(--muted); background: #eef1f4; border-radius: 999px; padding: 2px 8px; }
.bp-rank.r1 { background: #f6e6b8; color: #8a6a12; }
.bp-rank.r2 { background: #e6e9ec; color: #5c6570; }
.bp-rank.r3 { background: #f0dfd2; color: #85583a; }
.bp-name { font-weight: 700; font-size: 15px; }
.bp-bot, .bp-you { font-size: 11px; font-weight: 700; color: var(--muted); }
.bp-you { background: var(--accent); color: #fff; border-radius: 6px; padding: 1px 6px; }
.bp-badge { margin-left: auto; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 2px 8px; }
.bp-badge.ok { background: #e5f4ec; color: var(--good); }
.bp-badge.wait { background: #eef1f4; color: var(--muted); }
.bp-badge.off { background: #fbeaea; color: var(--bad); }
.bp-money { display: flex; gap: 14px; margin: 7px 0 6px; }
.bp-money > span { display: flex; flex-direction: column; font-variant-numeric: tabular-nums; font-weight: 750; font-size: 16px; }
.bp-lab { font-size: 10px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.bp-worth { color: var(--accent); }
.bp-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.bp-chip { font-size: 12px; padding: 2px 8px; border-radius: 8px; background: #eef1f4; color: #3a444e; font-weight: 600; font-variant-numeric: tabular-nums; }
.bp-chip.bad { background: #fbeaea; color: var(--bad); }

/* ---- Laptop / Querformat: beide Spalten nebeneinander ---- */
@media (min-width: 900px) {
  .play-wrap { max-width: 1180px; padding: 16px 20px 100px; }
  .view-tabs { display: none; }                 /* nicht nötig, beides sichtbar */
  .play-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .play-cols .play-col-me, .play-cols.show-board .play-col-me { display: block; }
  .play-cols .play-col-board, .play-cols.show-board .play-col-board { display: block; }
  .play-col-board { position: sticky; top: 12px; }
  /* Etwas luftiger und größer, wenn Platz da ist */
  .play-phase { font-size: 16px; }
  .play-phase h2 { font-size: 24px; }
  .sum-grid { grid-template-columns: repeat(6, 1fr); }
  .bp-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .confirm-bar .inner { max-width: 1180px; }
  .confirm-bar button { max-width: 560px; margin: 0 auto; }
}
@media (min-width: 1400px) {
  .play-wrap { max-width: 1360px; }
  .play-cols { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}

/* Nachverhandlung: Gegner, Führung, finale Blind-Runde */
.nego-rivals { font-size: 12px; color: var(--muted); margin-top: 3px; }
.nego-win { font-size: 13px; font-weight: 650; color: var(--good); background: #e5f4ec; border-radius: 10px; padding: 7px 11px; margin: 6px 0; }
.nego-mini.lead { border-color: var(--good); background: #f2fbf6; }

/* ---- Erweiterungs-Pakete in der Lobby ---- */
.hs-grp { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.20); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.hs-grp.on { background: rgba(255,255,255,.20); border-color: rgba(255,255,255,.45); }
.hs-grp.part { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.32); }
.hs-grp-head { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; background: transparent; color: #fff; padding: 11px 12px; }
.hs-grp-head:disabled { opacity: .55; }
.hs-grp-check { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-weight: 800; font-size: 15px; }
.hs-grp.on .hs-grp-check { background: #fff; color: var(--accent); }
.hs-grp-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.hs-grp-body b { font-size: 15px; }
.hs-grp-body span { font-size: 12px; opacity: .85; font-weight: 400; line-height: 1.35; }
.hs-grp-count { flex: 0 0 auto; font-size: 11px; font-weight: 700; background: rgba(255,255,255,.2); border-radius: 999px; padding: 2px 8px; }
.hs-grp-det { border-top: 1px solid rgba(255,255,255,.15); }
.hs-grp-det summary { cursor: pointer; padding: 7px 12px; font-size: 12px; font-weight: 650; color: rgba(255,255,255,.8); list-style: none; }
.hs-grp-det summary::-webkit-details-marker { display: none; }
.hs-subs { padding: 2px 12px 10px; display: flex; flex-direction: column; gap: 5px; }
.hs-sub { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: rgba(255,255,255,.08); color: #fff; border-radius: 9px; padding: 7px 10px; font-size: 13px; font-weight: 600; }
.hs-sub.on { background: #fff; color: var(--accent); }
.hs-sub.soon { opacity: .5; font-weight: 500; }
.hs-sub.soon em { font-style: normal; font-size: 11px; opacity: .8; }
.hs-sub-check { flex: 0 0 18px; text-align: center; font-weight: 800; }

/* Kooperation & Joint Ventures: Riesenauftrag */
.mega-box { border: 2px solid #b8a6e0; background: linear-gradient(180deg,#f7f3ff,#fdfbff); border-radius: 14px; padding: 12px 14px; margin-bottom: 14px; }
.mega-head { font-size: 13px; font-weight: 800; color: #6b4fa8; text-transform: uppercase; letter-spacing: .04em; }
.mega-name { font-size: 18px; font-weight: 800; margin-top: 2px; }
.mega-need { font-size: 14px; font-variant-numeric: tabular-nums; }
.mega-earn { font-size: 13px; font-weight: 650; color: #4b3782; background: #efe8ff; border-radius: 9px; padding: 7px 10px; margin-top: 6px; }
.tile.mega-tile { border: 2px solid #b8a6e0; background: #f7f3ff; }

/* --- Handel zwischen Firmen (Angebot, Annahme, Gegenangebot) --- */
.trade-box { margin-top: 14px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 10px; }
.trade-head { font-weight: 700; font-size: 15px; }
.trade-in { padding: 10px; border-radius: 10px; background: rgba(255,255,255,.06); display: flex; flex-direction: column; gap: 8px; }
.trade-out { font-size: 13px; opacity: .75; }
.trade-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.trade-acts button { padding: 8px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: inherit; font: inherit; cursor: pointer; }
.trade-acts .t-ok { background: #2e7d5b; border-color: #2e7d5b; color: #fff; }
.trade-new { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.trade-new select, .trade-new input { padding: 8px 10px; border-radius: 8px; min-width: 96px; }
.trade-new .t-send { padding: 9px 14px; border-radius: 8px; border: 0; background: var(--accent, #f0872b); color: #14120f; font-weight: 700; cursor: pointer; }
.hs-force { margin-left: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: inherit; font-size: 12px; cursor: pointer; }

/* --- Sprungknöpfe mit Zahl brauchen Breite, nicht nur Höhe --- */
.stepper .ctrl { flex-wrap: wrap; row-gap: 8px; }
.stepper button.step-big {
  width: auto;
  min-width: 44px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
  flex: none;
}
.stepper button.step-huge { font-size: 11px; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.hs-end { margin-left: 8px; padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: inherit; font-size: 12px; cursor: pointer; opacity: .8; }

/* Melde-Blase auch im alten Design (Grundgestalt, Farben aus dem Theme) */
.fb-wrap { position: fixed; right: 18px; bottom: 18px; z-index: 900; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fb-blase { width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.5); color: #fff; display: grid; place-items: center; cursor: pointer; }
.fb-blase svg { width: 21px; height: 21px; }
.fb-karte { width: min(340px, calc(100vw - 36px)); padding: 16px; border-radius: 14px; background: #23252b; border: 1px solid rgba(255,255,255,.15); color: #fff; display: flex; flex-direction: column; gap: 10px; }
.fb-text { width: 100%; box-sizing: border-box; padding: 9px; border-radius: 8px; }
.fb-arten, .fb-knoepfe { display: flex; gap: 7px; }
.fb-art { flex: 1; padding: 7px 4px; border-radius: 8px; cursor: pointer; }
.fb-senden { padding: 8px 14px; border-radius: 8px; border: 0; background: #f0872b; color: #14120f; font-weight: 700; cursor: pointer; }


/* Geschlossen heisst geschlossen: das hidden-Attribut muss die display-Regel oben
   schlagen, sonst steht die Melde-Karte dauerhaft offen. */
.fb-karte[hidden] { display: none !important; }
