/* GB-R4 (R4.5): Branchen-Radar – serverseitig gerenderte Seiten (backend/app/routers/radar_pages.py).
   Gleiche Farbwelt wie die öffentlichen Seiten («Swiss Ink», PublicEditorial.css): ruhiges Tiefblau, ein Akzent.
   Kein JavaScript, keine Webfonts; 390–1440 px ohne waagrechtes Scrollen (Tabellen scrollen in ihrem Rahmen). */
:root {
  --page: #0a1628; --panel: #0e1e36; --raised: #142846; --text: #e8eef6; --muted: #a0afc4; --line: rgba(255, 255, 255, .09);
  --accent: #3a6dd6; --accent-text: #8cb4fa; --bar: #3a6dd6; --bar-bg: rgba(140, 180, 250, .12);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: linear-gradient(180deg, #0c1a30 0, var(--page) 520px); color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
.rd-skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--accent); color: #fff; border-radius: 8px; }
.rd-skip:focus { left: 16px; z-index: 10; }

.rd-head, main, .rd-foot { width: min(calc(100% - 32px), 1120px); margin-inline: auto; }
.rd-head { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.rd-logo img { display: block; width: 132px; height: auto; }
.rd-head nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.rd-head nav a { color: var(--muted); }
.rd-head nav a:hover { color: var(--text); text-decoration: none; }
.rd-head .rd-cta { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 600; }
.rd-head .rd-cta:hover { background: #4172da; color: #fff; }

main { padding: 28px 0 72px; }
.rd-crumbs { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.rd-crumbs span[aria-current] { color: var(--text); }
.rd-hero { padding: 34px 0 10px; }
.rd-kicker { margin: 0; color: var(--accent-text); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 12px 0 14px; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; font-weight: 650; letter-spacing: -.025em; }
.rd-lead { max-width: 760px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
h2 { margin: 0 0 4px; font-size: 19px; font-weight: 650; letter-spacing: -.01em; }
.rd-sub { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
section { margin-top: 26px; }

.rd-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 28px 0 0; }
.rd-kpis div { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.rd-kpis dt { color: var(--muted); font-size: 13px; line-height: 1.35; }
.rd-kpis dd { margin: 0; font-size: 30px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }

.rd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin-top: 26px; }
.rd-grid section { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.rd-bars { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.rd-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label num" "bar bar"; align-items: baseline; gap: 5px 12px; font-size: 14px; }
.rd-bar-label { grid-area: label; min-width: 0; overflow-wrap: anywhere; }
.rd-bars li .rd-bar { grid-area: bar; }
.rd-bars li b { grid-area: num; }
.rd-bar { height: 8px; border-radius: 99px; background: var(--bar-bg); overflow: hidden; }
.rd-bar i { display: block; height: 100%; border-radius: 99px; background: var(--bar); }
.rd-bars b { min-width: 3ch; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.rd-empty, .rd-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.rd-table-wrap { margin-top: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.rd-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.rd-table th, .rd-table td { padding: 11px 16px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rd-table th:first-child { text-align: left; white-space: normal; }
.rd-table thead th { color: var(--muted); font-size: 12px; font-weight: 600; background: var(--raised); }
.rd-table tbody tr:last-child > * { border-bottom: 0; }
.rd-table tbody th { font-weight: 600; }
.rd-thin > * { color: var(--muted); }
.rd-thin a { color: var(--muted); }
.rd-thin-note { margin: 26px 0 0; padding: 18px 20px; border: 1px dashed rgba(140, 180, 250, .35); border-radius: 12px; color: var(--muted); }

.rd-cta-box { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 24px;
  border: 1px solid rgba(140, 180, 250, .28); border-radius: 14px; background: var(--raised); }
.rd-cta-box strong { display: block; font-size: 17px; }
.rd-cta-box span { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
.rd-cta-box a { flex: none; min-height: 46px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; }
.rd-cta-box a:hover { background: #4172da; text-decoration: none; }

.rd-links { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.rd-links a { display: inline-block; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--panel); color: var(--text); font-size: 13px; }
.rd-links a:hover { border-color: rgba(140, 180, 250, .45); text-decoration: none; }

.rd-foot { padding: 26px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.rd-foot p { margin: 0 0 12px; max-width: 820px; }
.rd-foot nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.rd-foot nav a { color: var(--muted); }

@media (max-width: 760px) {
  .rd-head { min-height: 64px; }
  .rd-logo img { width: 112px; }
  .rd-head nav { gap: 14px; font-size: 13px; }
  .rd-head nav a:not(.rd-cta):first-child { display: none; }
  .rd-head .rd-cta { min-height: 38px; padding: 0 12px; }
  .rd-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-kpis dd { font-size: 24px; }
  .rd-lead { font-size: 16px; }
  .rd-cta-box { flex-direction: column; align-items: stretch; }
  .rd-cta-box a { justify-content: center; }
  .rd-table th, .rd-table td { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
