/* bevoelkerung-struktur.css – Altersaufbau und Herkunft (Statistik Austria) auf bevoelkerung.php */

.bs-aktuell { margin-top: 6px; font-size: .78rem; opacity: .85; }
.bs-aktuell b { font-weight: 700; }

.bs-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.bs-seite { display: flex; flex-direction: column; gap: 16px; }

.bs-legende { display: flex; justify-content: space-between; font-size: .74rem; font-weight: 700; letter-spacing: .04em; margin: 0 4px 6px 38px; }
.bs-legende span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bs-legende .m { color: #1f3347; } .bs-legende .m::before { background: #2f6fa8; }
.bs-legende .w { color: #1f3347; } .bs-legende .w::before { background: #c46a1a; }
.bs-pyr { position: relative; height: 440px; }

.bs-tab { margin-top: 10px; font-size: .8rem; color: var(--text-2, #4a6580); }
.bs-tab summary { cursor: pointer; font-weight: 600; color: var(--g-blau, #437094); }
.bs-tab table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.bs-tab th, .bs-tab td { padding: 4px 8px; text-align: right; border-bottom: 1px solid rgba(67,112,148,.12); }
.bs-tab th:first-child, .bs-tab td:first-child { text-align: left; }
.bs-tab tfoot td { font-weight: 700; border-bottom: 0; }

.bs-h { font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3, #6b8197); margin-bottom: 8px; }
.bs-balken { list-style: none; margin: 0; padding: 0; }
.bs-balken li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 64px; gap: 10px; align-items: center; padding: 6px 0;
  border-top: 1px solid rgba(67,112,148,.1); font-size: .84rem; color: var(--text, #1f3347); }
.bs-balken li:first-child { border-top: 0; }
.bs-balken .nm small, .bs-balken .vl small { display: block; font-size: .7rem; color: var(--text-3, #6b8197); font-weight: 400; }
.bs-balken .br { height: 8px; border-radius: 4px; background: rgba(67,112,148,.12); overflow: hidden; }
.bs-balken .br i { display: block; height: 100%; border-radius: 4px; background: #2f6fa8; }
.bs-balken .vl { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .bs-grid { grid-template-columns: 1fr; }
  .bs-pyr { height: 400px; }
}
