.statistics-page { width: min(100%, 1080px); margin: 0 auto; }
.data-status { margin: 0 0 12px; color: var(--muted); font-size: .88rem; }
.stat-region-filter { display: flex; justify-content: flex-end; margin: 0 0 14px; }
.stat-intro { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-kpi, .stat-panel { min-width: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 30px rgba(24,64,48,.06); }
.stat-kpi { display: grid; gap: 7px; padding: 20px; }
.stat-kpi span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.stat-kpi strong { color: var(--brand-dark); font-size: clamp(1.4rem, 2.5vw, 2rem); letter-spacing: -.04em; line-height: 1.15; }
.stat-kpi small, .data-footnote { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.stat-panel { padding: 22px; margin-bottom: 18px; }
.stat-panel-heading { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 14px; }
.stat-panel-heading .eyebrow { margin: 0 0 5px; color: var(--brand); font-size: .68rem; }
.stat-panel h2 { margin: 0; font-size: 1.22rem; letter-spacing: -.025em; }
.stat-panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: .85rem; max-width: 680px; }
.stat-filter { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; color: var(--muted); font-size: .8rem; }
.stat-filter select { padding: 9px 28px 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font: inherit; }
.table-scroll { max-width: 100%; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.statistics-page table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.statistics-page th, .statistics-page td { padding: 11px 13px; border-bottom: 1px solid #edf1ee; text-align: right; white-space: nowrap; }
.statistics-page th { color: var(--muted); background: var(--surface-soft); font-size: .74rem; font-weight: 700; }
.statistics-page th:first-child, .statistics-page td:first-child { text-align: left; }
.statistics-page tbody tr:last-child td { border-bottom: 0; }
.statistics-page tbody tr:hover { background: #f7fbf8; }
.table-scroll.compact { max-height: 390px; }
.compact table { font-size: .78rem; }
.compact th, .compact td { padding: 9px 10px; }
.stat-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.stat-grid .stat-panel { display: flex; flex-direction: column; }
.stat-grid .data-footnote { margin: 10px 0 0; }
.subsidy-summary { margin: -3px 0 12px; padding: 12px; border-radius: 10px; color: var(--brand-dark); background: var(--surface-soft); font-size: .84rem; font-weight: 600; }
.subsidy-canton-title { margin: 15px 0 8px; font-size: .95rem; }
.transfer-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.transfer-stats article { display: grid; gap: 5px; min-width: 0; padding: 14px; border-radius: 12px; background: var(--surface-soft); }
.transfer-stats span, .transfer-stats small { color: var(--muted); font-size: .76rem; }
.transfer-stats strong { color: var(--brand-dark); font-size: clamp(1.25rem, 2.5vw, 1.75rem); line-height: 1.1; }
.statistics-page tr.risk-contributor td { color: #176b4d; font-weight: 700; }
.statistics-page tr.risk-recipient td { color: #b42318; font-weight: 700; }
.stat-filter input[type="search"] { width: min(230px, 52vw); padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--surface); font: inherit; }
.wide-table { max-height: 620px; }
.wide-table table { min-width: 1500px; }
.wide-table thead { position: sticky; top: 0; z-index: 1; }
.canton-sort { padding: 2px 4px; border: 0; color: inherit; background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.canton-sort:hover, .canton-sort:focus-visible { color: var(--brand-dark); text-decoration: underline; }
.canton-sort[aria-pressed="true"] { color: var(--brand-dark); }
.statistics-page td.risk-value-contributor { color: #176b4d; font-weight: 700; }
.statistics-page td.risk-value-recipient { color: #b42318; font-weight: 700; }
.statistics-page tr.table-total td { position: sticky; bottom: 0; color: var(--ink); background: #eaf4ee; font-weight: 700; border-top: 2px solid var(--line); }
.data-footnote { margin: 12px 0 0; }
.statistics-source { margin: 2px 0 22px; color: var(--muted); font-size: .82rem; }
.statistics-source a { color: var(--brand-dark); }
@media (max-width: 780px) { .stat-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-grid { grid-template-columns: 1fr; } .transfer-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-panel-heading { align-items: start; flex-direction: column; } }
@media (max-width: 520px) { .stat-intro { grid-template-columns: 1fr 1fr; gap: 9px; } .stat-kpi { padding: 14px; } .stat-kpi small { font-size: .7rem; } .stat-panel { padding: 16px; } .stat-filter { width: 100%; justify-content: space-between; } }
