.statistics-page {
  --statistics-navy: #1e293b;
  --statistics-slate: #475569;
  --statistics-muted: #64748b;
  --statistics-border: #dbe5e1;
  --statistics-grid: #e7eeeb;
  --statistics-green: #059669;
  --statistics-green-dark: #047857;
  --statistics-green-soft: #ecfdf5;
  --statistics-blue: #334e68;
  --statistics-blue-soft: #eaf1f6;
  --statistics-surface: #ffffff;
}

.statistics-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(16, 185, 129, 0.14), transparent 33%),
    linear-gradient(145deg, #f8fffc 0%, #f2f7f7 100%);
}

.statistics-hero .subpage-hero-content {
  max-width: 980px;
}

.statistics-main {
  display: grid;
  gap: 1.5rem;
  max-width: 1180px;
}

.statistics-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: -94px;
  position: relative;
  z-index: 2;
}

.statistics-kpi {
  display: flex;
  min-width: 0;
  min-height: 160px;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(4, 120, 87, 0.16);
  border-radius: 20px;
  box-shadow: 0 22px 48px -32px rgba(15, 23, 42, 0.44);
}

.statistics-kpi-total {
  background: var(--statistics-navy);
  border-color: var(--statistics-navy);
}

.statistics-kpi-label {
  color: var(--statistics-muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.statistics-kpi strong {
  margin: 0.75rem 0 0.55rem;
  color: var(--statistics-navy);
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1;
  letter-spacing: -0.035em;
}

.statistics-kpi small {
  color: var(--statistics-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.statistics-kpi-total .statistics-kpi-label,
.statistics-kpi-total small {
  color: #cbd5e1;
}

.statistics-kpi-total strong {
  color: #6ee7b7;
}

.statistics-intro,
.statistics-chart-card,
.statistics-table-card,
.statistics-info-card,
.statistics-cta {
  background: var(--statistics-surface);
  border: 1px solid var(--statistics-border);
  border-radius: 24px;
  box-shadow: 0 22px 55px -38px rgba(15, 23, 42, 0.36);
}

.statistics-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
  margin-top: 1rem;
  padding: clamp(1.6rem, 4vw, 2.6rem);
}

.statistics-intro h2,
.statistics-card-header h2,
.statistics-info-card h2,
.statistics-cta h2 {
  margin: 0;
  color: var(--statistics-navy);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.statistics-intro > p,
.statistics-card-header p,
.statistics-info-card p,
.statistics-info-card li,
.statistics-cta p {
  color: var(--statistics-slate);
  line-height: 1.75;
}

.statistics-intro > p {
  margin: 0;
  font-size: 1.02rem;
}

.statistics-eyebrow {
  margin: 0 0 0.55rem !important;
  color: var(--statistics-green-dark) !important;
  font-size: 0.78rem !important;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.statistics-chart-card,
.statistics-table-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.statistics-card-header {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.statistics-card-header p:not(.statistics-eyebrow) {
  margin: 0.45rem 0 0;
  color: var(--statistics-muted);
  font-size: 0.92rem;
}

.statistics-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding-top: 0.5rem;
}

.statistics-legend span {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--statistics-slate);
  font-size: 0.84rem;
  font-weight: 700;
}

.legend-line {
  display: inline-block;
  width: 30px;
  border-top: 4px solid var(--statistics-green);
  border-radius: 99px;
}

.legend-line-protestant {
  border-color: var(--statistics-blue);
  border-top-style: dashed;
}

.statistics-chart-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: #a7c7bd #edf5f2;
  scrollbar-width: thin;
}

.statistics-chart-scroll:focus-visible,
.statistics-table-scroll:focus-visible {
  outline: 3px solid rgba(5, 150, 105, 0.35);
  outline-offset: 4px;
}

.statistics-chart {
  display: block;
  width: 100%;
  min-width: 760px;
  height: auto;
}

.statistics-chart-scroll-small .statistics-chart {
  min-width: 620px;
}

.chart-grid line {
  stroke: var(--statistics-grid);
  stroke-width: 1.4;
}

.chart-axis {
  stroke: #94a3b8;
  stroke-width: 1.6;
}

.chart-axis-labels text,
.change-scale text {
  fill: var(--statistics-muted);
  font-family: "Inter", sans-serif;
  font-size: 12px;
  text-anchor: end;
}

.chart-axis-labels text:nth-last-child(-n+9) {
  text-anchor: middle;
}

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.chart-line-catholic {
  stroke: var(--statistics-green);
}

.chart-line-protestant {
  stroke: var(--statistics-blue);
  stroke-dasharray: 13 9;
}

.chart-dots circle {
  fill: #ffffff;
  stroke-width: 3;
}

.chart-dots-catholic circle {
  stroke: var(--statistics-green);
}

.chart-dots-protestant circle {
  stroke: var(--statistics-blue);
}

.chart-annotations text,
.bar-labels text,
.change-bars text {
  fill: var(--statistics-slate);
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.chart-annotations .annotation-title {
  fill: var(--statistics-navy);
  font-size: 14px;
  font-weight: 850;
  text-anchor: middle;
}

.chart-annotations text:nth-child(2) {
  fill: var(--statistics-muted);
  font-size: 11px;
  font-weight: 600;
  text-anchor: middle;
}

.chart-annotations .annotation-catholic {
  fill: var(--statistics-green-dark);
}

.chart-annotations .annotation-protestant {
  fill: var(--statistics-blue);
}

.statistics-chart-note,
.statistics-table-note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  color: var(--statistics-muted);
  border-top: 1px solid var(--statistics-grid);
  font-size: 0.82rem;
  line-height: 1.6;
}

.statistics-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.bar-catholic {
  fill: var(--statistics-green);
  stroke: var(--statistics-green-dark);
  stroke-width: 1.5;
}

.bar-protestant {
  fill: var(--statistics-blue);
  stroke: #243b53;
  stroke-width: 1.5;
}

.bar-rounded {
  stroke-dasharray: 5 4;
}

.bar-labels text {
  text-anchor: middle;
}

.bar-labels .bar-year {
  fill: var(--statistics-navy);
  font-size: 15px;
  font-weight: 850;
}

.bar-labels .bar-series {
  fill: var(--statistics-muted);
  font-size: 11px;
  font-weight: 650;
}

.change-scale line {
  stroke: #94a3b8;
  stroke-width: 1.4;
}

.change-scale text {
  text-anchor: middle;
}

.change-category {
  fill: var(--statistics-navy) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.change-value {
  font-size: 14px !important;
}

.change-value-invert {
  fill: #ffffff !important;
  font-weight: 800;
}

.statistics-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--statistics-border);
  border-radius: 16px;
}

.statistics-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #ffffff;
}

.statistics-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.statistics-table th,
.statistics-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--statistics-grid);
  color: var(--statistics-slate);
  font-size: 0.92rem;
  text-align: right;
  white-space: nowrap;
}

.statistics-table th:first-child,
.statistics-table td:first-child,
.statistics-table th:last-child,
.statistics-table td:last-child {
  text-align: left;
}

.statistics-table thead th {
  background: #f1f7f5;
  color: var(--statistics-navy);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.statistics-table tbody tr:nth-child(even) {
  background: #fbfdfc;
}

.statistics-table tbody tr:hover {
  background: var(--statistics-green-soft);
}

.statistics-table tbody tr:last-child {
  background: #ecfdf5;
}

.statistics-table tbody tr:last-child th,
.statistics-table tbody tr:last-child td {
  color: var(--statistics-navy);
  font-weight: 750;
}

.statistics-table tbody tr:last-child > * {
  border-bottom: 0;
}

.statistics-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.statistics-info-card {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.statistics-info-card p {
  margin: 0.9rem 0 0;
}

.statistics-info-card ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

.statistics-info-card li + li {
  margin-top: 0.6rem;
}

.statistics-source-list {
  list-style: none;
  padding: 0 !important;
}

.statistics-source-list li {
  padding: 0.8rem 0;
  border-top: 1px solid var(--statistics-grid);
}

.statistics-source-list a {
  color: var(--statistics-green-dark);
  font-weight: 750;
  text-underline-offset: 0.18em;
}

.statistics-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.7fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  background:
    radial-gradient(circle at 92% 10%, rgba(16, 185, 129, 0.18), transparent 35%),
    var(--statistics-navy);
  border-color: var(--statistics-navy);
}

.statistics-cta h2,
.statistics-cta p {
  color: #ffffff;
}

.statistics-cta .statistics-eyebrow {
  color: #6ee7b7 !important;
}

.statistics-cta p:not(.statistics-eyebrow) {
  margin: 0.8rem 0 0;
  color: #cbd5e1;
}

.statistics-cta-action {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}

.statistics-cta-action .btn {
  justify-content: center;
  text-align: center;
}

.statistics-cta-action small {
  color: #cbd5e1;
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 960px) {
  .statistics-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: -74px;
  }

  .statistics-chart-grid,
  .statistics-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .statistics-main {
    gap: 1rem;
  }

  .statistics-chart-scroll-small .statistics-chart {
    min-width: 0;
  }

  .statistics-chart-scroll-small .chart-axis-labels text,
  .statistics-chart-scroll-small .change-scale text {
    font-size: 20px;
  }

  .statistics-chart-scroll-small .bar-labels text,
  .statistics-chart-scroll-small .change-category,
  .statistics-chart-scroll-small .change-value {
    font-size: 21px !important;
  }

  .statistics-chart-scroll-small .bar-labels .bar-series {
    font-size: 17px;
  }

  .statistics-kpis {
    grid-template-columns: 1fr 1fr;
    margin-top: -58px;
  }

  .statistics-kpi {
    min-height: 145px;
  }

  .statistics-intro,
  .statistics-cta {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .statistics-card-header {
    flex-direction: column;
  }

  .statistics-chart-card,
  .statistics-table-card {
    border-radius: 18px;
  }
}

@media (max-width: 480px) {
  .statistics-kpis {
    grid-template-columns: 1fr;
    margin-top: -46px;
  }

  .statistics-kpi {
    min-height: 132px;
  }

  .statistics-intro,
  .statistics-chart-card,
  .statistics-table-card,
  .statistics-info-card,
  .statistics-cta {
    border-radius: 16px;
  }
}

@media print {
  .statistics-page .site-header,
  .statistics-page .breadcrumbs-container,
  .statistics-page .statistics-cta,
  .statistics-page .site-footer {
    display: none !important;
  }

  .statistics-kpis {
    margin-top: 0;
  }

  .statistics-chart-scroll,
  .statistics-table-scroll {
    overflow: visible;
  }

  .statistics-chart {
    min-width: 0;
  }

  .statistics-chart-card,
  .statistics-table-card,
  .statistics-info-card,
  .statistics-kpi {
    box-shadow: none;
    break-inside: avoid;
  }
}
