/* sitesignal · Design „Signal Pro“ (Design System sitesignal, Theme „Signal Pro hell“)
   Schriften: Bricolage Grotesque (Überschriften, Kennzahlen), Atkinson Hyperlegible (Text), IBM Plex Mono (Daten) */
@import url("https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=IBM+Plex+Mono:wght@400;600&display=swap");

:root {
  /* Signal Pro hell */
  --bg: #EDF1EC;
  --surface: #FFFFFF;
  --sunken: #E3E9E2;
  --hairline: #D5DDD4;
  --ink: #101813;
  --ink-2: #3A4740;
  --ink-3: #56635B;
  --brand: #1F5442;
  --brand-strong: #143A2D;
  --hot: #E8772E;
  --hot-text: #A24F12;
  --hot-soft: #FBE3D1;
  --compare: #3B6EA8;
  --danger: #7A2B0E;
  --data-1: #D4E3D8;
  --data-2: #9CC1AA;
  --data-3: #5F9A7B;
  --data-4: #2E6B52;
  --data-5: #1F5442;
  --chart-axis: #9AA79E;
  --chart-grid: #E3E9E2;
  --selected-wash: rgba(31,84,66,.1);
  --hover-wash: #F6F8F5;
  --shadow-card: inset 0 0 0 1px #D5DDD4, 0 1px 2px rgba(16,24,19,.06);
  --shadow-hot: inset 0 0 0 2px #E8772E;
  --shadow-pop: 0 12px 32px -12px rgba(16,24,19,.45);
  --radius-card: 18px;
  --radius-control: 10px;
  --radius-tile: 6px;

  /* alte Namen, verweisen auf Signal Pro */
  --card: var(--surface);
  --muted: #8E9D93;
  --line: var(--sunken);
  --green: var(--brand);
  --green-dark: var(--brand-strong);
  --sage: var(--data-1);
  --sage-2: var(--data-2);
  --orange: var(--hot);
  --orange-dark: var(--hot-text);
  --orange-soft: var(--hot-soft);
  --orange-on-dark: #F5A36B;
  --red: var(--danger);

  --ease-press: cubic-bezier(.2,.9,.3,1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --side: 248px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Atkinson Hyperlegible", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--text); font-size: 15px; line-height: 1.45; }
a { color: var(--green); }
a:hover { color: var(--green-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, .display { font-optical-sizing: auto; }
.num { font-variant-numeric: tabular-nums; }
.mono, .eyebrow { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Navigation: Seitenleiste am Desktop, Tab-Leiste unten am Handy */
.glass { background: var(--surface); }
header.top { position: fixed; z-index: 20; top: 0; left: 0; bottom: 0; width: var(--side); box-shadow: inset -1px 0 0 var(--hairline); display: flex; flex-direction: column; padding: 24px 14px 20px; overflow-y: auto; }
body.has-nav { padding-left: var(--side); }
.brand { display: flex; flex-direction: column; gap: 2px; padding: 0 12px 24px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
.brand small { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .02em; color: var(--ink-3); }
.brand:hover { color: var(--ink); }
nav.main { display: flex; flex-direction: column; gap: 2px; }
nav.main a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-control); color: var(--ink); text-decoration: none; font-weight: 400; transition: background-color 150ms ease, transform 140ms var(--ease-press); }
nav.main a:active { transform: scale(.97); }
nav.main a svg { flex: none; width: 18px; height: 18px; color: var(--ink-3); }
nav.main a:hover { background: var(--sunken); color: var(--ink); }
nav.main a[aria-current="page"] { background: var(--ink); color: var(--surface); box-shadow: none; font-weight: 700; }
nav.main a[aria-current="page"] svg { color: var(--data-2); }
nav.sub { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 6px 42px; }
nav.sub a { display: flex; align-items: center; min-height: 32px; font-size: 14px; color: var(--ink-2); text-decoration: none; border-radius: 8px; padding: 0 8px; margin-left: -8px; }
nav.sub a:hover { background: var(--sunken); color: var(--ink); }
.side-foot { margin-top: auto; padding: 16px 12px 0; box-shadow: inset 0 1px 0 var(--hairline); display: flex; flex-direction: column; gap: 2px; }
.side-foot a, .logout { display: flex; align-items: center; min-height: 36px; padding: 0; color: var(--ink-2); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.side-foot a:hover, .logout:hover { color: var(--ink); }
.side-foot a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.guestbar { margin-top: 12px; font-size: 13px; line-height: 1.45; color: var(--ink-2); background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.mtop { display: none; }

main.wrap { max-width: 1360px; margin: 0 auto; padding: 28px 28px 56px; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-start; }
.card { background: var(--surface); border-radius: var(--radius-card); padding: 18px 20px; min-width: 0; box-shadow: var(--shadow-card); }
.card.dark { background: var(--ink); color: var(--bg); box-shadow: none; }
.card h2 { margin: 0; font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.card h2.label { font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.card.dark h2.label { color: var(--orange-on-dark); }
.big { font-family: var(--display); font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; margin-top: 6px; }
.lead-h { margin: 0; font-family: var(--display); font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; max-width: 22ch; text-wrap: balance; }
.lead-p { margin: 10px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.sub { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.col-feed { flex: 1 1 250px; max-width: 360px; }
.col-main { flex: 2 1 560px; }
.col-side { flex: 1 1 240px; max-width: 340px; display: flex; flex-direction: column; gap: 16px; }
.col-detail { flex: 1 1 340px; max-width: 460px; display: flex; flex-direction: column; gap: 16px; }

.press { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: var(--radius-control); border: 0; background: var(--brand); color: #FFFFFF; text-decoration: none; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: transform 140ms var(--ease-press), background-color 150ms ease; }
.press:hover { background: var(--brand-strong); color: #FFFFFF; }
.press:active { transform: scale(.97); }
.press[disabled] { opacity: .55; cursor: progress; }
.press.ghost { background: var(--surface); color: var(--brand); box-shadow: inset 0 0 0 1px var(--hairline); }
.press.ghost:hover { background: var(--hover-wash); color: var(--brand-strong); box-shadow: inset 0 0 0 1px var(--data-2); }

/* Aufklappen und Scrollrahmen */
.scrollbox { max-height: 520px; overflow-y: auto; overscroll-behavior: contain; }
details.more { margin-top: 6px; }
details.more > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; color: var(--green); cursor: pointer; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 200ms var(--ease-in-out); }
details.more[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
details.more[open] > summary .when-closed, details.more:not([open]) > summary .when-open { display: none; }
.chev { flex: none; transition: transform 200ms var(--ease-in-out); }
[aria-expanded="true"] > .chev { transform: rotate(90deg); }

/* Live-Punkt: pulsiert dreimal, dann ruhig */
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; animation: pulse 1.4s ease-out 3; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,119,46,.55) } 100% { box-shadow: 0 0 0 10px rgba(232,119,46,0) } }

ol.feed { list-style: none; margin: 14px 0 0; padding: 0; }
ol.feed li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
ol.feed .t { flex: none; width: 44px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 3px; }
ol.feed .w { min-width: 0; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
ol.feed strong { font-weight: 700; }
.c-hot { color: var(--orange-dark); }
.c-firm { color: var(--green); }
.c-anon { color: var(--ink-3); }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 44px; margin-top: 8px; }
.bars div { flex: 1; min-height: 2px; border-radius: 3px; background: var(--sage-2); }
.bars div.peak { background: var(--orange); }

svg.radar { width: 100%; height: auto; margin-top: 12px; }
svg.radar .dot { cursor: pointer; transition: transform 140ms var(--ease-press); transform-box: fill-box; transform-origin: center; }
@media (hover: hover) and (pointer: fine) { svg.radar .dot:hover { transform: scale(1.25); } }

.empty { border: 2px dashed var(--hairline); border-radius: 16px; padding: 18px 20px; margin-top: 16px; color: var(--ink-2); line-height: 1.5; }
pre.code { background: var(--ink); color: var(--bg); padding: 14px 16px; border-radius: 12px; overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; }

/* Firmen */
ul.list { list-style: none; margin: 14px 0 0; padding: 0; }
ul.list button { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 12px 6px; font: inherit; color: inherit; cursor: pointer; border-radius: var(--radius-control); }
ul.list button:hover { background: var(--hover-wash); }
ul.list button[aria-pressed="true"] { background: var(--selected-wash); }
.score { flex: none; width: 42px; height: 42px; border-radius: var(--radius-control); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 17px; background: var(--sage); color: var(--ink); }
.score.hot { background: var(--orange); color: var(--ink); }
.li-main { min-width: 0; flex: 1; }
.li-name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.li-meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-top: 16px; }
.kv div { background: rgba(237,241,236,.1); border-radius: 12px; padding: 10px 12px; }
.kv b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: -0.03em; }
.kv span { font-size: 13px; color: #C3CCC4; }
ol.timeline { list-style: none; margin: 10px 0 0; padding: 0; }
ol.timeline li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
ol.timeline .t { flex: none; width: 92px; font-family: var(--mono); font-size: 12px; padding-top: 2px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
ol.timeline .p { min-width: 0; overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--orange-soft); color: var(--hot-text); margin-left: 6px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
label.search { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-control); background: var(--bg); }
label.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; }
.filters .range { max-width: 100%; overflow-x: auto; }
label.search:focus-within { outline: 2px solid var(--brand); outline-offset: 1px; }

/* Quellen, Orte, Branchen */
.col-mid { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.mix2 { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.mix2 > .card { flex: 1 1 260px; display: flex; flex-direction: column; }
.mix2 .foot { margin-top: auto; padding-top: 14px; }
ul.barlist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bl-head { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bl-name { min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.bl-note { font-weight: 400; color: var(--ink-3); font-size: 14px; }
.bl-val { flex: none; font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.bl-pct { color: var(--ink-3); font-size: 12px; }
.bl-track { height: 8px; border-radius: 3px; background: var(--sunken); margin-top: 6px; overflow: hidden; }
.bl-track div { height: 100%; border-radius: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--sunken); color: var(--ink-2); }
.guess { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; background: var(--sunken); color: var(--ink-3); margin-left: 6px; vertical-align: 2px; }

/* Firmen: Muster und Verlauf */
.stage { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--sage); color: var(--ink); }
.stage.Kaufbereit { background: var(--orange); color: var(--ink); }
.stage.Evaluierung { background: var(--green); color: #FFFFFF; }
.scorebar { display: flex; height: 12px; border-radius: 3px; overflow: hidden; background: rgba(237,241,236,.14); margin-top: 10px; }
.legend.small { margin-top: 10px; font-size: 13px; gap: 6px 14px; color: #C3CCC4; }
.legend.small i { width: 10px; height: 10px; border-radius: 2px; }
.advice { margin: 14px 0 0; font-size: 16px; line-height: 1.5; color: var(--orange-on-dark); }
.days14 { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 0; margin-top: 16px; }
.days14 > div { border-left: 1px solid var(--line); padding: 0 2px 8px; min-height: 100px; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.days14 > div.today { background: rgba(232,119,46,.08); }
.days14 .dl { font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding: 6px 0 4px; text-align: center; line-height: 1.25; font-variant-numeric: tabular-nums; }
.days14 .dl b { display: block; font-size: 13px; color: var(--ink-2); }
.days14 .vd { border-radius: 50%; background: var(--green); flex: none; }
.days14 .vd.buy { background: var(--orange); }
.scrollx { overflow-x: auto; }
ol.sessions { list-style: none; margin: 12px 0 0; padding: 0; }
ol.sessions > li { padding: 14px 0; border-top: 1px solid var(--line); }
.s-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; color: var(--ink-3); }
.s-head b { color: var(--ink); }
.path { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.path span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--bg); }
.path span.buy { background: var(--orange-soft); color: var(--hot-text); font-weight: 700; }
.path i { font-style: normal; color: var(--ink-3); }
select.ind { font: inherit; font-size: 14px; min-height: 36px; border-radius: var(--radius-control); border: 1px solid #3A4740; background: rgba(237,241,236,.08); color: var(--bg); padding: 0 8px; max-width: 100%; }
select.ind option { color: var(--ink); }

/* Briefing */
.brief-head { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; padding: 4px 0 0; }
.brief-head .lead-h { font-size: 44px; max-width: 20ch; }
.kpis { flex: 1 1 100%; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); background: var(--surface); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.kpis > div { padding: 16px 18px; }
.kpis > div + div { box-shadow: inset 1px 0 0 var(--hairline); }
.kpis dt { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-3); }
.kpis dd { margin: 6px 0 0; font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.kpis dd small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; margin-top: 2px; }
.range { display: inline-flex; gap: 2px; background: var(--sunken); padding: 3px; border-radius: var(--radius-control); }
.range button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 400; min-height: 32px; padding: 0 12px; border-radius: 8px; color: var(--ink); cursor: pointer; transition: transform 140ms var(--ease-press), background-color 150ms ease; }
.range button:active { transform: scale(.97); }
.range button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(16,24,19,.1); }
.board { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.board > .card { flex: 1 1 300px; }
.board > .card.Kaufbereit { box-shadow: var(--shadow-hot); }
.board .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.board a.firm { display: flex; justify-content: space-between; gap: 14px; padding: 12px 8px; margin: 0 -8px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; border-radius: var(--radius-control); }
.board a.firm:hover { background: var(--hover-wash); }
.board .fn { display: block; font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.board .fs { display: block; font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.board .fv { flex: none; font-family: var(--display); font-weight: 800; font-size: 18px; }
.daybars { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: 18px; }
.daybars .d { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.daybars .b { background: var(--data-2); border-radius: 3px 3px 0 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.daybars .b div { background: var(--data-5); }
.daybars span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); text-align: center; white-space: nowrap; }
.patterns { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.patterns > div { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.patterns b { display: block; font-size: 15px; }
.patterns .pv { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin: 4px 0; }
.patterns p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-3); }

/* Aufklappbare Zeilen (Briefing) */
.xlist { border-top: 1px solid var(--line); }
details.xrow + details.xrow { border-top: 1px solid var(--line); }
details.xrow > summary { list-style: none; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 16px; gap: 14px; align-items: center; min-height: 64px; padding: 10px 20px; cursor: pointer; transition: background-color 150ms ease; }
details.xrow > summary::-webkit-details-marker { display: none; }
details.xrow > summary:hover, details.xrow[open] { background: var(--hover-wash); }
details.xrow[open] > summary .chev { transform: rotate(90deg); }
details.xrow .av { width: 40px; height: 40px; border-radius: var(--radius-control); display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--display); background: var(--data-1); color: var(--brand-strong); }
details.xrow .av.hot { background: var(--orange-soft); color: var(--orange-dark); }
details.xrow .xt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
details.xrow .xt b { font-size: 16px; }
details.xrow .xt span { font-size: 14px; color: var(--ink-2); }
details.xrow .xs { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--data-1); color: var(--brand-strong); }
details.xrow .xs.hot { background: var(--orange-soft); color: var(--orange-dark); }
details.xrow .xd { padding: 0 20px 18px 74px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
details.xrow .xd p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); flex: 1 1 320px; }
@media (max-width: 720px) {
  .kpis > div + div { box-shadow: inset 0 1px 0 var(--hairline); }
  details.xrow > summary { grid-template-columns: 36px minmax(0, 1fr) 14px; padding: 10px 16px; }
  details.xrow .xs { display: none; }
  details.xrow .xd { padding-left: 16px; }
}

/* Website */
.legend { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--ink-2); }
.legend .lg { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--bg); font: inherit; font-size: 14px; font-weight: 400; color: var(--ink-2); cursor: pointer; transition: transform 140ms var(--ease-press); }
.legend .lg:active { transform: scale(.97); }
.legend .lg[aria-pressed="true"] { background: var(--ink); color: #FFFFFF; font-weight: 700; }
.legend .lg .num { color: inherit; opacity: .7; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.groups { display: flex; flex-direction: column; gap: 22px; margin-top: 24px; }
.groups h2 { margin: 0 0 10px; font-family: var(--text); font-size: 16px; font-weight: 700; }
.groups h2 span { font-weight: 400; color: var(--ink-3); }
.tiles { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { width: 44px; height: 44px; border-radius: var(--radius-tile); border: 0; padding: 0; cursor: pointer; background: var(--sage); transition: transform 140ms var(--ease-press); }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: scale(1.06); } }
.tile[aria-pressed="true"] { transform: scale(1.06); }
.tile:active { transform: scale(.94); }
.tile[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ink); }
.tile.slow { background: var(--orange); }
.tile.err { background: var(--red); }
.tile.ok { background: var(--sage); }
.tile.neu { background: #fff; border: 2px dashed var(--green); }
.tile.warn { background: var(--sage-2); }
.rowline { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.rowline span:first-child { min-width: 0; overflow-wrap: anywhere; }
.uptime { display: flex; gap: 3px; height: 30px; }
.uptime div { flex: 1; border-radius: 3px; background: var(--data-4); }
.uptime div.bad { background: var(--orange); }
.uptime div.none { background: var(--sunken); }
.detail-url { font-family: var(--display); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; word-break: break-word; }
.fix { color: var(--orange-on-dark); }

/* Gastzugang */
.guestbar { font-size: 14px; color: var(--ink-2); }
.guestbar .bar { justify-content: flex-start !important; }
body[data-role="guest"] .owner-only { display: none !important; }
body:not([data-role="guest"]) .guest-only { display: none !important; }
.sharelink { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.sharelink input { flex: 1 1 260px; min-width: 0; min-height: 40px; border-radius: var(--radius-control); border: 0; box-shadow: inset 0 0 0 1px var(--hairline); padding: 0 12px; font: inherit; font-size: 15px; background: #fff; }
.form-row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-end; margin-top: 16px; }
.form-row label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; }
.form-row input[type="text"], .form-row select { min-height: 40px; border-radius: var(--radius-control); border: 0; box-shadow: inset 0 0 0 1px var(--hairline); padding: 0 12px; font: inherit; font-weight: 400; background: #fff; min-width: 200px; }
.form-row input[type="text"]:focus, .form-row select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.form-row .check { flex-direction: row; align-items: center; font-weight: 400; min-height: 40px; }
.form-row .check input { width: 20px; height: 20px; accent-color: var(--green); }
.status { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--sage); }
.status.aktiv { background: var(--green); color: #FFFFFF; }
.status.widerrufen { background: var(--orange-soft); color: var(--hot-text); }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { width: 100%; max-width: 400px; }
.login input { width: 100%; min-height: 44px; border-radius: var(--radius-control); border: 0; box-shadow: inset 0 0 0 1px var(--hairline); padding: 0 14px; font: inherit; font-size: 16px; margin: 14px 0; background: #fff; }
.login input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brand); }
.err-msg { color: var(--red); font-weight: 700; min-height: 1.4em; }

@media (max-width: 720px) {
  body.has-nav { padding-left: 0; padding-bottom: 96px; }
  header.top { top: auto; right: 10px; left: 10px; bottom: 14px; width: auto; height: auto; padding: 6px; border-radius: 18px; flex-direction: row; overflow: visible; background: var(--surface); box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--hairline); }
  header.top .brand, header.top .side-foot, header.top nav.sub, header.top .guestbar { display: none; }
  nav.main { flex-direction: row; flex: 1; gap: 2px; }
  nav.main a { flex: 1; flex-direction: column; justify-content: center; gap: 3px; min-height: 52px; padding: 0 2px; font-size: 11px; font-weight: 400; color: var(--ink-3); border-radius: 12px; }
  nav.main a:active { transform: scale(.94); }
  nav.main a svg { width: 22px; height: 22px; color: currentColor; }
  nav.main a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  nav.main a[aria-current="page"] { background: var(--ink); color: var(--surface); }
  .mtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px 0; }
  .mtop .brand { padding: 0; font-size: 20px; }
  .mtop .acts { display: flex; gap: 8px; align-items: center; }
  .mtop .acts a, .mtop .acts button { min-height: 40px; padding: 0 14px; border-radius: var(--radius-control); background: var(--surface); box-shadow: var(--shadow-card); color: var(--ink-2); font: inherit; font-size: 14px; font-weight: 700; border: 0; display: inline-flex; align-items: center; text-decoration: none; cursor: pointer; }
  .mtop-guest { margin: 10px 16px 0; font-size: 13px; color: var(--ink-2); }
  .brief-head .lead-h { font-size: 32px; }
  main.wrap { padding: 20px 16px 32px; }
  .lead-h { font-size: 32px; }
  .col-feed, .col-side, .col-detail { max-width: none; }
  ul.list.scrollbox, ol.feed.scrollbox { max-height: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .live-dot { animation: none; }
  .press, .tile, svg.radar .dot, nav.main a, .chev, details.more > summary::after, .range button, .legend .lg { transition: none; }
  .press:active, .tile:hover, .tile:active, .tile[aria-pressed="true"], svg.radar .dot:hover, nav.main a:active { transform: none; }
}
@media (prefers-contrast: more) { header.top { box-shadow: inset -1px 0 0 var(--ink); } .card { box-shadow: inset 0 0 0 1px var(--ink); } .tile { outline: 1px solid var(--ink); outline-offset: -1px; } }
@media (max-width: 720px) {
  .board > .card.Kaufbereit { order: -2; }
  .board > .card.Evaluierung { order: -1; }
}

/* Briefing: Signalspalte links, Analyse rechts */
.rail { flex: 1 1 340px; min-width: 0; max-width: 420px; display: flex; flex-direction: column; }
.rail-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rail-head h2 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.rail-bar { margin: 12px 0 14px; height: 4px; border-radius: 2px; background: var(--hairline); overflow: hidden; }
.rail-bar > div { height: 4px; border-radius: 2px; background: var(--brand); transform-origin: left; transition: transform 250ms var(--ease-in-out); }
.ana { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ana-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.ana-head .lead-h { margin-top: 6px; }
.ana-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ana-row > .card { flex: 1 1 320px; }

/* Signalkarte: erledigt gleitet 160 ms raus, danach schließt sich die Lücke 220 ms */
.slot { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 220ms var(--ease-in-out); }
.slot > .in { min-height: 0; overflow: hidden; padding-bottom: 12px; transition: padding-bottom 220ms var(--ease-in-out); }
.slot.gone > .in { padding-bottom: 0; transition-delay: 120ms; }
.slot .sig { transition: transform 200ms var(--ease-out) 140ms, opacity 200ms var(--ease-out) 140ms; }
.slot.gone { grid-template-rows: 0fr; transition-delay: 120ms; }
.slot.gone .sig { transform: translateX(16px); opacity: 0; transition-duration: 160ms; transition-delay: 0ms; }
.sig { padding: 16px 18px; }
.sig.hot { box-shadow: var(--shadow-hot); }
.sig-meta { display: flex; align-items: center; gap: 8px; }
.sig-meta i { width: 8px; height: 8px; border-radius: 50%; background: var(--data-3); flex: none; }
.sig.hot .sig-meta i { background: var(--hot); }
.sig h3 { margin: 8px 0 0; font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.sig p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.sig .acts { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.sig .spark { display: block; width: 100%; height: 44px; margin-top: 10px; }
.sig .chain { margin-top: 10px; display: flex; align-items: flex-end; gap: 4px; height: 40px; }
.sig .chain div { flex: 1; border-radius: 3px; background: var(--data-4); }
.press.quiet { background: transparent; color: var(--ink-2); padding: 0 10px; }
.press.quiet:hover { background: var(--sunken); color: var(--ink); }
.done-all { padding: 24px 18px; text-align: center; animation: settle 300ms var(--ease-out) both; }
.done-all p { margin: 4px 0 0; font-size: 14px; color: var(--ink-3); }
.done-all p.d { margin-top: 10px; font-family: var(--display); font-size: 22px; font-weight: 800; color: var(--ink); }
@keyframes settle { from { opacity: 0; transform: scale(.96); } }

/* Zeitraum mit gleitendem Indikator */
.seg { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 3px; border-radius: var(--radius-control); background: var(--sunken); }
.seg-ind { position: absolute; top: 3px; left: 3px; bottom: 3px; width: calc((100% - 6px) / 3); border-radius: 8px; background: var(--surface); box-shadow: 0 1px 2px rgba(16,24,19,.1); transition: transform 200ms var(--ease-in-out); }
.seg button { position: relative; min-height: 32px; padding: 0 12px; border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--ink); cursor: pointer; }
.seg button[aria-pressed="true"] { font-weight: 700; }

/* Kennzahlenreihe */
.kpirow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); padding: 0; overflow: hidden; }
.kpirow > div { padding: 16px 18px; box-shadow: inset -1px 0 0 var(--hairline), inset 0 -1px 0 var(--hairline); }
.kpirow p { margin: 0; }
.kpirow .v { margin-top: 6px; font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.kpirow .n { margin-top: 2px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.kpirow .warn { color: var(--hot-text); }

/* Diagramme im Briefing */
.legend-s { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--ink-2); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.daybars.grid { position: relative; background: linear-gradient(var(--chart-grid), var(--chart-grid)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--chart-grid), var(--chart-grid)) 0 50% / 100% 1px no-repeat; }
.chart-note { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); }
.phases { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.phases .row { display: flex; justify-content: space-between; font-size: 14px; }
.phases .track { margin-top: 4px; height: 12px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.phases .track div { height: 12px; border-radius: 3px; }
.phases .hot .track { background: var(--hot-soft); }
.phases .hot .row { font-weight: 700; }
.ring-wrap { margin-top: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.ring-wrap ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }

/* Toast mit Rückgängig: kommt von unten, Abgang schneller */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 30; display: flex; align-items: center; gap: 14px; max-width: calc(100vw - 32px); padding: 10px 10px 10px 18px; border-radius: 12px; background: var(--ink); color: #FFFFFF; box-shadow: var(--shadow-pop); transform: translate(-50%, calc(100% + 40px)); opacity: 0; pointer-events: none; transition: transform 180ms var(--ease-out), opacity 180ms var(--ease-out); }
.toast.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; transition-duration: 240ms; }
.toast button { min-height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: #FFFFFF; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: transform 140ms var(--ease-press); }
.toast button:active { transform: scale(.97); }

@media (hover: hover) and (pointer: fine) {
  .card.sig { transition: transform 200ms var(--ease-out) 140ms, opacity 200ms var(--ease-out) 140ms, box-shadow 150ms ease; }
  .card.sig:not(.hot):hover { box-shadow: inset 0 0 0 1px var(--data-2), 0 1px 2px rgba(16,24,19,.06); }
}
@media (max-width: 720px) {
  .rail { max-width: none; }
  .toast { bottom: 104px; }
  .ana-head .lead-h { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .slot, .slot .sig, .slot.gone .sig, .rail-bar > div, .seg-ind { transition: opacity 200ms ease; transition-delay: 0ms; }
  .slot.gone .sig { transform: none; }
  .toast, .toast.on { transition: opacity 200ms ease; }
  .done-all { animation: fade 200ms ease both; }
  .toast button { transition: none; }
}
@keyframes fade { from { opacity: 0; } }

/* Radar: Besuchssignale und Firmenliste links, Streuung rechts */
.step { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--bg); font-size: 13px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.step.hot { background: var(--hot-soft); color: var(--hot-text); font-weight: 700; }
.steps { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.steps .arr { color: var(--ink-3); }
.calm { padding: 18px; margin-bottom: 12px; display: flex; gap: 12px; align-items: center; animation: settle 300ms var(--ease-out) both; }
.calm p { margin: 0; color: var(--ink-2); }
.firmlist { padding: 14px 12px; }
.firmlist .head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 8px; }
.firmlist h2 { font-size: 18px; }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 11px 8px; border: 0; border-radius: var(--radius-control); background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; box-shadow: inset 0 -1px 0 var(--sunken); }
.frow .fname { display: block; overflow-wrap: anywhere; }
.frow .fmeta { display: block; margin-top: 2px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.frow .fbar { display: flex; align-items: center; gap: 8px; }
.frow .track { width: 70px; height: 6px; border-radius: 3px; background: var(--sunken); display: block; overflow: hidden; }
.frow .track span { display: block; height: 6px; border-radius: 3px; background: var(--brand); }
.frow .fv { font-family: var(--mono); font-size: 13px; min-width: 22px; text-align: right; }
.frow[aria-pressed="true"] { background: var(--selected-wash); box-shadow: none; }
.frow[aria-pressed="true"] .fname { font-weight: 700; color: var(--brand); }
.selbox { margin: 10px 8px 4px; padding: 14px; border-radius: 12px; background: var(--hover-wash); }
.selbox p { margin: 0; }
.selbox .nm { margin-top: 4px; font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.selbox .tx { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.livepill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.livepill i { width: 8px; height: 8px; border-radius: 50%; background: var(--data-2); }
.livepill.on i { background: var(--hot); }
.netbar { margin-top: 14px; display: flex; height: 28px; border-radius: 6px; overflow: hidden; gap: 2px; }
.netlegend { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 16px; font-size: 13px; }
.netlegend span { display: flex; justify-content: space-between; gap: 8px; }
.hbars { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.hbars > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) 30px; gap: 8px; align-items: center; }
.hbars .b { height: 10px; border-radius: 3px; }
.hbars .mono { text-align: right; }
svg.scatter { display: block; width: 100%; height: auto; margin-top: 12px; }
svg.scatter .dot { cursor: pointer; transition: transform 140ms var(--ease-press); transform-box: fill-box; transform-origin: center; }
@media (hover: hover) and (pointer: fine) {
  .frow { transition: background-color 150ms ease; }
  .frow:hover { background: var(--hover-wash); }
  .frow[aria-pressed="true"]:hover { background: rgba(31,84,66,.12); }
  svg.scatter .dot:hover { transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .calm { animation: fade 200ms ease both; }
  svg.scatter .dot { transition: none; }
}
