:root{--ink:#142d3a;--muted:#516672;--teal:#0e6271;--teal-dark:#094351;--accent:#137a8a;--paper:#f5f7f6;--line:#dce4e5;--soft:#eaf2f2;--warn:#86520d;--warn-bg:#fff4df;--navy:#193c50;--radius:14px;--shadow:0 7px 22px #193c5008;--font:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:94px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);line-height:1.6;font-size:15px}a{color:var(--teal);text-decoration-thickness:1px;text-underline-offset:3px}button,input,select{font:inherit}button,a,select,input{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}input,select{color:var(--ink);border:1px solid #bdcbcf;border-radius:8px;padding:10px 12px;background:white;min-width:0}input[type=range]{accent-color:var(--teal);padding:0;width:100%;border:none;background:none}input[type=checkbox]{accent-color:var(--teal);width:18px;height:18px;flex-shrink:0}input:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible,path:focus-visible{outline:3px solid #24a0b7;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.2}h1{font-size:clamp(30px,3.3vw,48px);font-weight:730;letter-spacing:-1.65px;margin-bottom:16px}h1 span{font-weight:500;color:var(--teal)}h2{font-size:29px;letter-spacing:-.75px;margin:0}h3{font-size:19px;font-weight:650;letter-spacing:-.3px}p{margin-bottom:14px}code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.85em;overflow-wrap:anywhere}[hidden]{display:none!important}.small-muted{font-size:13px;color:var(--muted)}.tiny{font-size:11.5px;color:var(--muted)}.eyebrow{color:var(--teal);font-size:11px;font-weight:750;letter-spacing:1.65px;text-transform:uppercase;margin:0 0 9px}.skip-link{position:fixed;top:-100px;left:20px;background:white;padding:14px;z-index:100}.skip-link:focus{top:10px}.site-header{height:85px;background:#fff;border-bottom:1px solid var(--line);display:flex;gap:32px;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1390px)/2));position:relative;z-index:20}.brand{display:flex;align-items:center;gap:12px;line-height:1.15;font-weight:780;font-size:11px;letter-spacing:1.6px;color:var(--ink);text-decoration:none}.brand small{display:block;font-size:13px;font-weight:500;letter-spacing:.1px;margin-top:6px;white-space:nowrap}.brand-mark{font-size:17px;letter-spacing:-.5px;background:var(--teal-dark);color:white;padding:11px 8px;position:relative;width:45px;height:45px;border-radius:6px}.brand-mark span{position:absolute;font-size:14px;right:3px;top:1px;color:#a0d4d6}.site-header nav{display:flex;gap:26px}.site-header nav a{font-size:13px;font-weight:600;color:var(--ink);text-decoration:none;padding:10px 0}.site-header nav a:hover{color:var(--teal);border-bottom:2px solid var(--teal)}.build-date{font-size:11px;color:var(--muted);line-height:1.5;text-align:right}.build-date strong{display:block;color:var(--ink);font-weight:600}main{max-width:1390px;margin:auto;padding:0 28px}main>section{margin-bottom:54px}.hero{padding:46px 0 16px;display:grid;grid-template-columns:1fr 290px;gap:60px;align-items:end;margin-bottom:20px!important}.hero .eyebrow{display:flex;gap:8px;align-items:center}.status-dot{width:7px;height:7px;background:var(--accent);display:inline-block;border-radius:50%}.lede{color:var(--muted);font-size:16px;max-width:720px;line-height:1.65;margin-bottom:0}.hero-note{border-left:2px solid var(--teal);padding:5px 0 8px 22px;margin-bottom:4px}.hero-note p{font-size:19px;font-weight:570;line-height:1.4;margin:12px 0}.hero-note a{font-size:12px}.pill{display:inline-flex;gap:6px;align-items:center;font-size:10px;line-height:1.5;letter-spacing:.6px;font-weight:750;text-transform:uppercase;padding:5px 9px;border-radius:5px;color:var(--teal);background:var(--soft)}.pill.neutral{background:#edf0f4;color:#466076}.pill.warning{background:var(--warn-bg);color:var(--warn)}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:20px!important}.kpi{padding:22px 20px 18px;background:white;border:1px solid var(--line);border-top:3px solid var(--teal);border-radius:var(--radius);box-shadow:var(--shadow)}.kpi.is-estimate{border-top-color:var(--warn)}.kpi p{font-size:12px;font-weight:560;color:var(--muted);margin-bottom:10px;line-height:1.4;min-height:33px}.kpi strong{font-size:29px;letter-spacing:-1px;font-weight:720;display:block;white-space:nowrap}.kpi strong small{font-size:16px;font-weight:500;letter-spacing:0}.kpi>span{display:block;font-size:10px;color:var(--muted);line-height:1.5;margin-top:10px}.definition-strip{border:1px solid #d5e3e4;border-radius:10px;display:flex;gap:12px;padding:14px 18px;align-items:center;background:#edf4f4;margin-bottom:40px}.definition-strip p{margin:0;font-size:12px;line-height:1.6;color:#334e58}.definition-strip>a{flex-shrink:0;font-size:12px;font-weight:650}.info-icon{border:1px solid #6b8e99;color:var(--teal);width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-family:serif;flex-shrink:0;font-size:14px}.section-heading{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:20px;margin-bottom:22px}.section-heading>*{min-width:0}.map-toolbar{display:flex;gap:12px;padding:18px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:14px;align-items:end;position:relative;z-index:15}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field label{font-size:11px;font-weight:700;color:var(--muted)}.field select,.field input{width:100%;font-size:13px}.layer-field{flex:1.3}.search-field{flex:1;position:relative}.search-results{position:absolute;top:75px;background:white;box-shadow:0 8px 25px #193c5020;border:1px solid var(--line);width:100%;z-index:30;max-height:300px;overflow:auto;border-radius:8px}.search-results button{padding:10px;text-align:left;display:block;border:0;border-bottom:1px solid var(--line);width:100%;background:white;font-size:12px}.search-results button:hover{background:var(--soft)}.button{display:inline-flex;align-items:center;justify-content:center;padding:10px 14px;min-height:40px;border:1px solid var(--line);border-radius:7px;font-size:12px;font-weight:650;text-decoration:none;white-space:nowrap;line-height:1.5}.button-light{background:white;color:var(--ink)}.button-light:hover:not(:disabled){background:var(--soft);border-color:#aac7ce}.button-primary{background:var(--teal);color:#fff;border-color:var(--teal)}.button-primary:hover{background:var(--teal-dark)}.map-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.map-card,.detail-card,.chart-card{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.map-card-top{padding:22px 24px 0;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.map-card-top>*{min-width:0}.map-card-top h3{margin:10px 0 6px;font-size:19px}.map-card-top p{font-size:11px;color:var(--muted);margin:0}.zoom-controls{display:flex;gap:1px;border:1px solid var(--line);border-radius:7px;overflow:hidden;flex-shrink:0}.zoom-controls button{border:none;background:white;padding:4px;width:32px;height:32px;color:var(--ink);font-size:20px;line-height:1}.zoom-controls button:hover{background:var(--soft)}.map-stage{height:555px;position:relative;overflow:hidden;margin-top:5px;background:radial-gradient(ellipse at center,#f0f5f4 0%,#fff 75%)}#map{width:100%;height:100%;display:block;touch-action:pan-y}.map-feature{stroke:#fff;stroke-width:.8;vector-effect:non-scaling-stroke;cursor:pointer;transition:fill .2s}
.grid-cell{shape-rendering:crispEdges}.map-feature:hover,.map-feature.is-selected{stroke:var(--ink);stroke-width:2}
/* Eigene Spalten: die vorhandene Pyramide hat drei, diese vier — links Männer,
   Mitte das Alter, rechts Frauen, ganz rechts der Anteil der hier Geborenen. */
.survey-block-title{font-size:15px;font-weight:650;margin:22px 0 4px}
.survey-block-note{font-size:12px;line-height:1.65;padding:13px 16px;max-width:1100px}
.survey-block-title:first-child{margin-top:0}
.survey-meta{margin:0 0 12px;line-height:1.6}

#foreign-age .py-row{display:grid;grid-template-columns:1fr 3.4rem 1fr 3rem;align-items:center;gap:.3rem;margin-bottom:2px}
#foreign-age .py-age{font-size:.7rem;color:var(--muted);text-align:center;opacity:1;font-variant-numeric:tabular-nums}
#foreign-age .py-bar{display:flex;gap:0;height:12px}
#foreign-age .py-total{font-size:.7rem;color:var(--muted);text-align:right;font-variant-numeric:tabular-nums}
#foreign-age .py-seg{display:block;height:100%}

#map-outline path{fill:none;pointer-events:none;vector-effect:non-scaling-stroke;stroke-linejoin:round}
#map-outline .selection{stroke:var(--ink);stroke-width:2.4}
#map-outline .hover{stroke:var(--ink);stroke-width:1.8;opacity:.7}
#map-outline .elsewhere{stroke:#dfc185;stroke-width:2}.map-label{font-size:13px;fill:var(--ink);font-weight:650;paint-order:stroke;stroke:white;stroke-width:3px;stroke-linejoin:round;pointer-events:none}.map-tooltip{position:absolute;top:12px;left:18px;background:#fffefc;border:1px solid var(--line);box-shadow:0 3px 12px #193c5015;border-radius:7px;padding:10px 12px;font-size:12px;line-height:1.6;pointer-events:none;max-width:260px}.map-tooltip strong{display:block}.north{position:absolute;top:20px;right:28px;text-align:center;font-size:11px;line-height:1.5;color:#6a858d}.map-unavailable{position:absolute;inset:50px 12%;display:flex;flex-direction:column;justify-content:center;align-items:start;border:1px dashed #bbcdd0;padding:36px;border-radius:14px;background:#ffffffed;max-width:560px;margin:auto;z-index:2}.map-unavailable h3{font-size:29px;line-height:1.25;margin:12px 0 16px;letter-spacing:-.8px}.map-unavailable p{font-size:13px;color:var(--muted)}.map-unavailable code{background:#edf3f2;padding:9px 11px;border-radius:6px;display:inline-block;margin-bottom:8px}.map-unavailable p code{padding:2px 4px;display:inline;margin:0}.map-legend{padding:8px 24px 14px;display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;font-size:10px;color:var(--muted)}.legend-key{display:inline-flex;gap:6px;align-items:center}.legend-swatch{display:inline-block;width:21px;height:10px;border-radius:2px}.map-note{border-top:1px solid var(--line);padding:15px 24px 0;font-size:12px;color:var(--muted);line-height:1.6;margin:0}.map-attribution{padding:10px 24px 16px;font-size:9px;color:var(--muted);line-height:1.7}
.map-attribution.dataset-line{padding-top:0}.detail-card{padding:24px;position:sticky;top:20px}.detail-card h3{font-size:24px;line-height:1.25;margin:6px 0 24px}.detail-stat{padding:16px 0;border-top:1px solid var(--line)}.detail-stat:first-child{padding-top:0;border-top:0}.detail-stat .label{font-size:11px;color:var(--muted);display:block}.detail-stat strong{display:block;font-size:25px;line-height:1.25;letter-spacing:-.6px;margin:7px 0}.detail-stat .meta{font-size:11px;color:var(--muted);line-height:1.5;display:block}.detail-card .notice{font-size:12px;padding:13px;margin:8px 0 18px}.detail-card .button{width:100%;margin-top:8px}.detail-card .tiny{margin:9px 0 0}.notice{border:1px solid #cddfe2;border-radius:9px;background:#f0f6f6;font-size:13px;padding:17px 20px;line-height:1.7}.notice p:last-child{margin:8px 0 0}.notice.warning{border-color:#e5ca97;background:var(--warn-bg);color:#624413;margin-bottom:14px}.notice.warning p{font-size:13px}.checkline{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;margin-top:12px}.scenario-controls{border:1px solid #e2caa0;padding:20px;border-radius:10px;background:#fffaf0;margin:0 0 14px;display:grid;grid-template-columns:1fr 1fr;gap:15px 32px}.scenario-controls label{font-size:12px;font-weight:650;display:block;margin-bottom:8px}.scenario-controls output{font-weight:750}.range-labels{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);margin-top:4px}.scenario-controls>p{font-size:12px;grid-column:1/-1;margin:0;color:var(--warn)}.data-details{border:1px solid var(--line);border-radius:10px;background:white;margin-top:18px;overflow:hidden}.data-details>summary{font-size:13px;font-weight:650;padding:17px 20px;cursor:pointer;list-style-position:inside}.data-details[open]>summary{border-bottom:1px solid var(--line);margin-bottom:15px}.data-details>h3,.data-details>p{margin:24px 20px 12px}.data-details>.table-scroll{margin:0 20px 20px}.data-details>summary span{color:var(--muted);font-size:11px;margin-left:8px}.table-tools{display:flex;gap:12px;align-items:end;padding:0 20px 15px;flex-wrap:wrap}.table-tools>label{align-self:center;font-size:12px}.table-tools input{font-size:12px}.table-tools .field{flex:1}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;line-height:1.6;font-variant-numeric:tabular-nums}caption{text-align:left;color:var(--muted);font-size:11px;margin:8px 0}th{text-align:left;font-size:10px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;border-bottom:1px solid #c1d2d5;white-space:nowrap;padding:10px 12px}td{border-bottom:1px solid #e9eef0;padding:10px 12px;vertical-align:top}td.numeric,th.numeric{text-align:right;white-space:nowrap}tbody tr:hover{background:#f6f9f9}td button.link-button{border:0;background:none;color:var(--teal);font:inherit;padding:0;text-align:left;text-decoration:underline;text-underline-offset:3px}.pagination{display:flex;gap:14px;justify-content:center;align-items:center;margin:15px;font-size:12px;color:var(--muted)}.origin-controls{display:flex;gap:15px;align-items:end;margin-bottom:15px}.origin-controls .field{flex:1;max-width:780px}.chart-card{padding:25px 28px}.chart-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:15px}.chart-header>*{min-width:0}.chart-header h3{margin:11px 0 9px;font-size:24px;line-height:1.3}.chart-warning{font-size:12px;color:var(--muted);border-left:3px solid #a6c4c9;padding-left:12px;margin:12px 0 26px;max-width:960px}.horizontal-bars{display:grid;gap:15px;margin:12px 0 24px}.bar-row{display:grid;grid-template-columns:245px 1fr 170px;gap:16px;align-items:center;min-height:26px}.bar-name{font-size:13px;line-height:1.4}.bar-track{height:15px;background:#f1f4f4;border-radius:3px;position:relative}.bar-fill{height:100%;background:var(--teal);border-radius:3px;min-width:2px}.bar-value{font-size:13px;text-align:right;font-variant-numeric:tabular-nums;font-weight:600;line-height:1.3}.bar-value small{display:block;font-weight:400;font-size:10px;color:var(--muted);margin-top:3px}.bar-whisker{height:23px;position:absolute;top:-4px;border:1px solid #172c35;border-top:none;border-bottom:none;background:linear-gradient(to bottom,transparent 11px,#172c35 11px,#172c35 12px,transparent 12px);min-width:1px;pointer-events:none}.source-note{font-size:11px;color:var(--muted);line-height:1.7;margin:14px 0 0}.source-note a{white-space:normal}.compact-details{border-top:1px solid var(--line);padding-top:15px;margin-top:16px}.compact-details summary{cursor:pointer;font-size:12px;font-weight:600}.context-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.context-grid h3{font-size:21px;line-height:1.3;margin:12px 0}.chart-explainer{font-size:12px;color:var(--muted);margin-bottom:24px}.stack-row{display:flex;gap:13px;align-items:center;margin:13px 0;font-size:12px}.stack-year{width:38px;flex-shrink:0;font-weight:650}.stack-track{display:flex;width:100%;height:35px;border-radius:4px;overflow:hidden;background:#e8eeee}.stack-segment{color:white;display:flex;align-items:center;justify-content:center;font-size:10px;white-space:nowrap;overflow:hidden;border-right:1px solid #ffffff40}
.stack-segment>span{padding:0 4px}.compact-legend{display:flex;flex-wrap:wrap;gap:8px 13px;font-size:10px;color:var(--muted);margin-top:20px}.compact-legend span{display:flex;gap:5px;align-items:center}.context-number{font-size:35px;font-weight:720;letter-spacing:-1px;margin-bottom:8px}.context-number small{font-size:13px;color:var(--muted);font-weight:500;letter-spacing:0;display:inline-block;margin-left:10px}.vertical-bars{height:192px;display:grid;grid-template-columns:repeat(8,1fr);gap:12px;border-bottom:1px solid var(--line);padding-top:25px;margin-bottom:32px}.vbar-cell{height:165px;position:relative;display:flex;align-items:end;justify-content:center}.vbar-fill{width:68%;background:#507c91;border-radius:4px 4px 0 0;position:relative;min-height:2px}.vbar-fill.warning{background:#a78350}.vbar-value{position:absolute;top:-22px;left:50%;transform:translateX(-50%);font-size:10px}.vbar-label{position:absolute;bottom:-24px;left:50%;transform:translateX(-50%);font-size:10px;color:var(--muted)}.method-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;margin-bottom:22px}.method-grid article{background:white;border:1px solid var(--line);border-radius:12px;padding:25px}.method-number{font-size:12px;color:var(--teal);background:var(--soft);width:32px;height:32px;display:grid;place-items:center;border-radius:50%;font-weight:700;margin-bottom:18px}.method-grid h3{font-size:19px;line-height:1.35;margin-bottom:12px}.method-grid p{font-size:13px;color:var(--muted);margin:0}.method-body{padding:6px 23px 23px}.method-body p{font-size:13px;color:var(--muted);max-width:1100px}.method-body h3{margin:22px 0 12px}.formula{display:block;font-size:16px;padding:18px;background:#edf3f3;border-radius:8px;margin-bottom:18px;white-space:normal}.method-section>.notice{margin-top:18px}.download-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.download-grid a{border:1px solid var(--line);border-radius:10px;background:#fff;padding:20px;display:flex;flex-direction:column;gap:8px;text-decoration:none}.download-grid a:hover{border-color:var(--teal);box-shadow:var(--shadow)}.download-grid a>span{font-size:10px;font-weight:800;letter-spacing:1px;color:var(--teal)}.download-grid strong{font-size:16px;color:var(--ink)}.download-grid small{font-size:12px;line-height:1.6;color:var(--muted)}.sources-heading{margin-top:34px}.sources-list{display:grid;grid-template-columns:1fr 1fr;gap:15px 28px}.source-item{border-top:1px solid var(--line);padding:15px 0;font-size:12px;scroll-margin-top:50px}.source-item a{font-weight:620;display:block;line-height:1.5}.source-item span{color:var(--muted);font-size:11px;display:block;margin-top:6px}.source-item p{font-size:11px;color:var(--muted);margin:6px 0 0}footer{max-width:1390px;border-top:1px solid var(--line);margin:auto;padding:30px 28px 44px;display:flex;gap:35px;align-items:start;justify-content:space-between;font-size:11px;color:var(--muted)}footer strong{font-size:12px;color:var(--ink)}footer p{margin:5px 0;max-width:490px}footer>a{white-space:nowrap}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 22px;border-radius:9px;background:var(--teal-dark);color:white;box-shadow:0 8px 25px #193c5030;font-size:13px;z-index:100;max-width:90vw}.noscript{background:var(--warn-bg);padding:25px;margin:20px}.empty-state{padding:20px;color:var(--muted);font-size:13px}.data-details table td:nth-child(4){max-width:500px;overflow-wrap:anywhere}.selected-flag{display:inline-block;padding:3px 7px;border-radius:4px;background:var(--warn-bg);color:var(--warn);font-size:10px;font-weight:650}
dialog#about{width:min(760px,94vw);max-height:88vh;padding:0 30px 34px;border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 60px #193c5030;color:var(--ink);background:var(--paper);overflow:auto;overscroll-behavior:contain}dialog#about::backdrop{background:#0c242e88}dialog#about h2{font-size:27px;margin:0 0 6px}dialog#about h3{font-size:15px;margin:26px 0 9px;padding-top:15px;border-top:1px solid var(--line)}dialog#about p{font-size:13px;line-height:1.7;margin-bottom:11px}dialog#about address{font-style:normal;font-size:13px;line-height:1.7}dialog#about .tiny{line-height:1.65}.dialog-heading{position:sticky;top:0;background:var(--paper);display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;padding:22px 0 14px;margin-bottom:6px;z-index:1}.dialog-heading>*{min-width:0}.text-button{border:1px solid var(--line);background:white;color:var(--ink);border-radius:7px;padding:7px 12px;font-size:12px;font-weight:650}.text-button:hover{background:var(--soft);border-color:#aac7ce}.build-details{display:grid;grid-template-columns:minmax(0,190px) minmax(0,1fr);gap:7px 18px;font-size:12px;margin:0 0 4px}.build-details dt{color:var(--muted);font-weight:650}.build-details dd{margin:0;overflow-wrap:anywhere}.build-details .hashcell{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px}.legal-table{width:100%;font-size:12px;min-width:520px}.legal-table td{overflow-wrap:anywhere}dialog#about .table-scroll{margin-bottom:10px}.legal-table td{vertical-align:top}.nav-about{border:1px solid var(--line);background:white;color:var(--ink);border-radius:7px;padding:8px 12px;font-size:12px;font-weight:650;white-space:nowrap}.nav-about:hover{background:var(--soft);border-color:#aac7ce;color:var(--teal)}footer .nav-about{align-self:start}.cohort-bars{margin:10px 0 4px;display:grid;gap:5px}.cohort-row{display:grid;grid-template-columns:minmax(0,96px) minmax(0,1fr) 46px;gap:8px;align-items:center;font-size:11px;color:var(--muted)}.cohort-track{background:#eef2f3;border-radius:3px;height:11px;overflow:hidden;display:block}.cohort-track i{display:block;height:100%;background:var(--teal);border-radius:3px}.cohort-value{text-align:right;font-variant-numeric:tabular-nums;color:var(--ink)}.cohort-missing{grid-column:2/4;font-style:italic}.spark{display:flex;gap:5px;align-items:flex-end;height:54px;margin:8px 0 4px}.spark-col{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;gap:3px}.spark-col i{display:block;width:100%;background:var(--teal);border-radius:2px 2px 0 0;min-height:2px}.spark-col em{font-style:normal;font-size:9px;color:var(--muted)}#pyramid{display:grid;gap:2px;margin:6px 0 12px}.py-row{display:grid;grid-template-columns:1fr 58px 1fr;align-items:center;gap:6px}.py-bar{display:flex;height:13px}.py-left{justify-content:flex-end;flex-direction:row-reverse}.py-seg{display:block;height:100%}.py-left .py-seg:last-child{border-radius:3px 0 0 3px}.py-right .py-seg:last-child{border-radius:0 3px 3px 0}.py-age{font-size:10px;color:var(--muted);text-align:center;font-variant-numeric:tabular-nums}#pyramid-card{margin-top:18px}.kind-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,190px),1fr));gap:10px;margin:14px 0 16px}.kind{border:1px solid var(--line);border-radius:9px;padding:12px 14px;background:#fff}.kind strong{display:block;font-size:12px;margin-bottom:5px}.kind span{font-size:11px;color:var(--muted);line-height:1.6}.kind-tag{display:inline-block;padding:2px 7px;border-radius:4px;font-size:10px;font-weight:700;white-space:nowrap}.kind-register{background:#e7eff1;color:#1d5568}.kind-fortschreibung{background:#eef2f3;color:#46606c}.kind-sample{background:#fdf3e2;color:#7a5a1d}.kind-census{background:#e9f1e8;color:#37603a}.kind-model{background:var(--warn-bg);color:var(--warn)}.bar-reference{position:absolute;top:-3px;bottom:-3px;width:2px;background:#8a4b6d;opacity:.7}.bar-track-signed{background:linear-gradient(to right,#f1f4f4 0 50%,#e3e9e9 50% 50.4%,#f1f4f4 50.4% 100%)}.bar-fill.negative{background:#a8743a}.inst-filter{display:flex;flex-wrap:wrap;gap:12px 18px;align-items:end;padding:14px 18px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:14px}.inst-filter .field{min-width:180px}.inst-filter .field select{font-size:13px}.inst-filter .checkline{margin-top:0;align-self:center}.inst-filter>p{flex-basis:100%;margin:0;line-height:1.6}.inst-filter #filter-count{margin-left:auto;align-self:center}.info-toggle{border:1px solid #6b8e99;color:var(--teal);background:white;width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-family:serif;font-size:13px;padding:0;line-height:1}.info-toggle[aria-expanded=true]{background:var(--teal);color:white}.inst-coverage-body{padding:0 20px 18px}.inst-point{stroke:#fff;stroke-width:1;vector-effect:non-scaling-stroke;opacity:.9}.inst-point:hover{stroke:var(--ink);stroke-width:2}@media(min-width:1550px){.map-stage{height:615px}}@media(max-width:1120px){.site-header{gap:20px;padding:0 24px}.site-header nav{gap:18px}.build-date{display:none}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{grid-template-columns:1fr 260px;gap:32px}.map-layout{grid-template-columns:minmax(0,1fr) 265px}.map-toolbar{flex-wrap:wrap}.layer-field{flex-basis:45%}.search-field{flex-basis:38%}.bar-row{grid-template-columns:205px 1fr 150px}.detail-card{padding:20px}.map-unavailable{inset:45px 8%;padding:26px}.map-unavailable h3{font-size:25px}}
@media(max-width:800px){dialog#about{width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;border-radius:0;border:0;padding:0 18px 26px}.build-details{grid-template-columns:minmax(0,1fr);gap:2px 0}.build-details dd{margin-bottom:9px}dialog#about h2{font-size:23px}.site-header{height:auto;min-height:80px;padding:16px 20px;flex-wrap:wrap;gap:12px}.site-header nav{width:100%;flex-wrap:wrap;justify-content:space-between;gap:10px}.site-header nav a{font-size:12px;padding:6px 0}.brand small{font-size:12px}.brand-mark{width:38px;height:38px;font-size:15px;padding:10px 5px}main{padding:0 18px}.hero{grid-template-columns:1fr;padding-top:30px;gap:22px}.hero-note{display:none}h1{font-size:36px}.lede{font-size:14px}.kpi{padding:17px 15px}.kpi strong{font-size:26px}.kpi strong small{font-size:13px}.kpi>span{font-size:10px}.kpi-grid{gap:10px}.kpi p{font-size:11px}.definition-strip{align-items:start;padding:12px;gap:9px}.definition-strip>a{display:none}.definition-strip p{font-size:11px}.map-layout{grid-template-columns:1fr}.detail-card{position:static;display:block}.detail-card h3{font-size:22px;margin-bottom:15px}.detail-stat strong{font-size:23px}.map-toolbar{padding:13px;gap:10px}.layer-field,.search-field{flex-basis:100%}.map-stage{height:auto;aspect-ratio:760/700;min-height:300px;max-height:70dvh}.map-unavailable{inset:30px 8%;padding:24px}.map-card-top{padding:20px 18px 0}.map-card-top h3{font-size:17px}.map-card-top p{font-size:10px}.map-attribution{padding:10px 18px 14px}.map-note{padding:13px 18px 0}.section-heading{align-items:start}.section-heading h2,.chart-header h3{overflow-wrap:anywhere}.section-heading>.small-muted{display:none}h2{font-size:25px}.context-grid,.method-grid{grid-template-columns:1fr}.origin-controls{flex-wrap:wrap}.origin-controls .field{flex-basis:100%;width:100%}.origin-controls select{font-size:12px}.chart-card{padding:21px 18px}.chart-header h3{font-size:21px}.bar-row{grid-template-columns:minmax(100px,145px) 1fr 100px;gap:9px}.bar-name{font-size:11px}.bar-value{font-size:11px}.bar-value small{font-size:9px}.bar-track{height:13px}.bar-whisker{top:-5px}.horizontal-bars{gap:18px}.scenario-controls{grid-template-columns:1fr}.download-grid,.sources-list{grid-template-columns:1fr}.download-grid{gap:12px}footer{padding:25px 18px;flex-direction:column;gap:16px}.method-grid{gap:12px}.method-grid article{padding:20px}.method-grid .method-number{margin-bottom:12px}.data-details>summary{font-size:12px;padding:15px}.data-details>.table-scroll{margin:0 10px 10px}.table-tools{padding:0 12px 12px}.table-tools .field{flex-basis:100%}main>section{margin-bottom:38px}.definition-strip{margin-bottom:32px}.chart-header{align-items:start}.chart-header>.small-muted{display:none}.map-legend{padding:8px 18px 12px}.detail-card .button{width:auto}}
@media(max-width:400px){.cohort-row{grid-template-columns:minmax(0,74px) minmax(0,1fr) 42px;gap:6px}.kpi-grid{grid-template-columns:1fr}h1{font-size:31px}.kpi strong{font-size:23px}.kpi strong small{font-size:11px}.kpi{padding:16px 12px}.bar-row{grid-template-columns:115px 1fr 87px;gap:8px}.map-unavailable h3{font-size:23px}.map-unavailable p{font-size:12px}.map-unavailable{inset:25px 6%;padding:21px}.section-heading .button{white-space:normal;text-align:center;max-width:140px}.vertical-bars{gap:8px}.table-tools .button{width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.map-feature{transition:none}}@media print{.site-header nav,.map-toolbar,.zoom-controls,.button,.search-results,.scenario-controls,.toast,footer{display:none!important}body{background:white;font-size:11px}main{padding:0}h1{font-size:30px}.hero{padding-top:10px;grid-template-columns:1fr}.hero-note{display:none}.kpi-grid{grid-template-columns:repeat(4,1fr)}.kpi strong{font-size:21px}.map-stage{height:auto;aspect-ratio:760/700;min-height:280px;max-height:66dvh}.map-layout{grid-template-columns:1fr 250px}.detail-card{position:static}.map-attribution{display:block}.chart-card,.map-card,.detail-card{box-shadow:none;break-inside:avoid}section{break-inside:avoid}a{color:inherit}.data-details:not([open]){display:none}.map-unavailable{position:static;height:auto}.context-grid{grid-template-columns:1fr 1fr}.sources-list{grid-template-columns:1fr 1fr}}

/* Links belonging to one institution: each point on the institutions layer carries the
   source it was taken from, so the evidence is one click away rather than in a footnote. */
.inst-links{display:flex;flex-wrap:wrap;gap:.4rem .8rem;margin:.3rem 0 .2rem}
.inst-links a{font-size:.86rem}

/* What the institutions layer leaves out, shown beside it rather than inferred. */
.inst-coverage{margin:.5rem 0 .2rem;padding:.7rem .9rem;border:1px solid var(--rule,#dcd6cb);border-radius:6px;background:rgba(0,0,0,.02)}
.inst-coverage-head{margin:.1rem 0 .3rem;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;opacity:.75}
.inst-coverage-list{margin:0 0 .6rem;padding-left:1.1rem;font-size:.86rem;line-height:1.45}
.inst-coverage-list li{margin-bottom:.15rem}


/* Age structure as three panels — everyone, men, women — sharing one scale, so a bar
   means the same length in each. They sit side by side where there is room and stack
   below it, because a bar chart squeezed into a third of a phone screen says nothing. */
.py-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1.1rem}
.py-panel{min-width:0}
.py-title{margin:0 0 .45rem;font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;opacity:.72}
.py-row{display:grid;grid-template-columns:2.7rem 1fr 2.1rem;align-items:center;gap:.35rem;margin-bottom:2px}
.py-age{font-size:.7rem;opacity:.7;text-align:right}
.py-bar{display:flex;gap:2px;height:11px}
.py-seg{display:block;height:100%;border-radius:0 3px 3px 0}
.py-seg:only-child{border-radius:3px}
.py-total{font-size:.68rem;opacity:.55;text-align:right;font-variant-numeric:tabular-nums}
@media (max-width:820px){
  .py-panels{grid-template-columns:1fr;gap:1.4rem}
  .py-row{grid-template-columns:3.1rem 1fr 2.4rem}
}

/* Institutions that sit close together are drawn as one circle carrying their number;
   581 separate dots at state scale is an ink blot in which Stuttgart is one smudge. */
.inst-cluster circle{fill:#17505f;fill-opacity:.9;stroke:#fcfcfb;stroke-width:1.5;cursor:pointer}
.inst-cluster:hover circle,.inst-cluster:focus-visible circle{fill:#0f3b47}
.inst-cluster-count{fill:#fff;font-size:8px;font-weight:600;text-anchor:middle;
  dominant-baseline:central;pointer-events:none;font-variant-numeric:tabular-nums}
/* Where zooming can no longer separate them, the circle opens this list instead. */
.inst-group-list{margin:.4rem 0 0;padding-left:1.2rem;display:flex;flex-direction:column;gap:.3rem}
.inst-group-list button{display:block;width:100%;text-align:left;background:none;border:0;
  padding:.25rem .3rem;border-radius:4px;cursor:pointer;font:inherit;color:inherit}
.inst-group-list button:hover,.inst-group-list button:focus-visible{background:rgba(23,80,95,.09)}
.inst-group-list .meta{display:block;font-size:.78rem;opacity:.7}

.touch-hint{display:none}
@media (hover:none) and (pointer:coarse){.touch-hint{display:block;margin:8px 0 0;font-size:12px;color:var(--muted)}}

@media (hover:none) and (pointer:coarse){.zoom-controls button{min-width:44px;min-height:44px}.inst-filter .field{min-width:100%}}

/* Eine Grafik größer ansehen. Auf schmalen Schirmen ist die gestapelte Leiste so
   klein, dass nur noch die breitesten Abschnitte beschriftet werden können. */
.chart-enlarge{border:1px solid var(--line);background:#fff;color:var(--ink);
 border-radius:7px;padding:5px 10px;font-size:11px;font-weight:650;white-space:nowrap;
 cursor:pointer}
.chart-enlarge:hover{background:var(--soft);border-color:#aac7ce}
.chart-card>.chart-enlarge{position:absolute;top:16px;right:16px}
.chart-card{position:relative}
dialog#chart-zoom{width:min(1200px,96vw);max-height:92dvh;padding:0 26px 26px;
 border:1px solid var(--line);border-radius:14px;background:var(--paper);color:var(--ink);
 overflow:auto;overscroll-behavior:contain}
dialog#chart-zoom::backdrop{background:#0c242e88}
dialog#chart-zoom .stack-track{height:54px}
dialog#chart-zoom .stack-segment{font-size:12px}
dialog#chart-zoom .chart-enlarge{display:none}
@media(max-width:800px){dialog#chart-zoom{width:100vw;max-width:100vw;height:100dvh;
 max-height:100dvh;border-radius:0;border:0;padding:0 16px 20px}}
.segment-key{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));
 gap:4px 16px;margin:10px 0 0;font-size:11px;color:var(--muted);list-style:none;padding:0}
.segment-key li{display:flex;gap:7px;align-items:baseline}
.segment-key b{font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums}

/* Der Kopf einer Tabelle ist jetzt ein Knopf. Er darf nicht wie einer aussehen,
   aber er muss sich wie einer verhalten — und die Ausrichtung der Spalte behalten. */
.th-sort{all:unset;box-sizing:border-box;display:block;width:100%;cursor:pointer;
 text-align:inherit;font:inherit;color:inherit;letter-spacing:inherit;
 text-transform:inherit}
.th-sort:hover{color:var(--teal)}
.th-sort:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.th-arrow{margin-left:4px;font-size:9px;color:var(--teal)}
th[aria-sort="ascending"] .th-sort,th[aria-sort="descending"] .th-sort{color:var(--teal)}
@media (hover:none) and (pointer:coarse){.th-sort{padding:6px 0}}

/* Sprachwahl: drei Kürzel, die aktive hervorgehoben. Kein Auswahlfeld, weil drei
   Möglichkeiten in einem Feld mehr Klicks kosten als nebeneinander. */
.lang-switch{display:inline-flex;border:1px solid var(--line);border-radius:7px;
 overflow:hidden;background:#fff}
.lang-switch button{all:unset;cursor:pointer;padding:7px 10px;font-size:12px;
 font-weight:650;color:var(--muted);line-height:1}
.lang-switch button+button{border-left:1px solid var(--line)}
.lang-switch button:hover{background:var(--soft);color:var(--teal)}
.lang-switch button[aria-pressed="true"]{background:var(--teal);color:#fff}
.lang-switch button:focus-visible{outline:2px solid var(--teal);outline-offset:-2px}
@media (hover:none) and (pointer:coarse){.lang-switch button{padding:10px 13px}}

/* Theme views share the map's grouped selection pattern. */
.view-toolbar{padding:18px;background:white;border:1px solid var(--line);border-radius:12px;margin-bottom:14px}
.view-toolbar .field{max-width:850px}
.view-panel>.origin-controls{padding:0 2px}
.disclosure-body{padding:0 20px 20px}
.anchor-target{display:block;scroll-margin-top:94px}
.view-panel .chart-header h3{max-width:1000px}
@media(max-width:800px){.view-toolbar{padding:13px}.disclosure-body{padding:0 12px 12px}}

/* Answer distributions use one bar per population, with explicit category keys. */
.survey-distribution{margin:22px 0}.survey-distribution>strong,.survey-comparison>strong{display:block;font-size:13px;margin-bottom:9px}.survey-stack{display:flex;width:100%;height:34px;background:repeating-linear-gradient(135deg,#edf1f2,#edf1f2 5px,#e1e7e9 5px,#e1e7e9 7px);border-radius:5px;overflow:hidden}.survey-stack>span{display:flex;align-items:center;justify-content:center;color:#fff;font-size:12px;font-weight:650;min-width:0}.survey-key{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:9px;font-size:11px}.survey-key span{display:flex;align-items:center;gap:5px}.survey-key i{width:12px;height:12px;border-radius:2px;flex-shrink:0}.survey-key strong{font-variant-numeric:tabular-nums}.survey-item-detail{margin:-9px 0 5px;font-size:12px}.survey-item-detail summary{cursor:pointer;color:var(--teal);padding:5px 0}.survey-item-detail .survey-distribution{margin:12px 0}.survey-time{display:block;width:100%;max-height:420px;margin-top:18px}.survey-time text{fill:var(--ink);font-size:13px}.survey-comparison{margin:20px 0}.survey-comparison .bar-row{margin:8px 0}#survey-enlarge{margin:0 0 15px}.survey-block-title{margin-bottom:12px}
@media(max-width:600px){.survey-stack{height:30px}.survey-key{gap:7px 12px}.survey-time text{font-size:16px}.survey-comparison .bar-row{grid-template-columns:100px minmax(0,1fr) 65px}}

.survey-panel{border-top:1px solid var(--line);padding:16px 0}.survey-panel>summary{cursor:pointer;font-size:15px;font-weight:650;color:var(--teal);padding:4px 0}.survey-panel[open]>summary{margin-bottom:12px}.survey-series-dot{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px}.survey-evidence{margin-top:14px}.survey-panel>.survey-meta{margin-bottom:12px}.survey-panel .survey-panel{padding-left:12px}

.survey-matrix{width:100%;table-layout:fixed;min-width:0}.survey-matrix th,.survey-matrix td{padding:15px 9px;white-space:normal;overflow-wrap:anywhere}.survey-matrix tbody th{font-size:12px}.survey-matrix td{text-align:center;font-size:16px;font-weight:650;font-variant-numeric:tabular-nums}.survey-question{border-left:3px solid var(--teal);padding:10px 15px;margin:16px 0;background:#f2f6f7}.survey-question p{margin:5px 0}.survey-dot-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:8px 18px;margin:22px 0}.survey-dot-row>strong{font-size:13px;align-self:center}.survey-dot-axis{position:relative;height:55px;background:repeating-linear-gradient(90deg,#edf1f2,#edf1f2 1px,transparent 1px,transparent 25%);border-bottom:1px solid var(--line)}.survey-dot{position:absolute;width:11px;height:11px;border-radius:50%;transform:translateX(-50%)}.survey-dot-values{grid-column:2;display:flex;flex-wrap:wrap;gap:6px 14px;font-size:11px}.survey-dot-scale{display:flex;justify-content:space-between;margin-left:168px;font-size:11px}.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:600px){.survey-dot-row{grid-template-columns:95px minmax(0,1fr);gap:8px 10px}.survey-dot-scale{margin-left:105px}.survey-matrix th,.survey-matrix td{padding:12px 5px;font-size:11px}.kpi-grid{grid-template-columns:1fr}}

.survey-matrix th{text-transform:none;letter-spacing:0;line-height:1.4;hyphens:auto}.survey-matrix th:first-child{width:31%}

.survey-shared-key{margin:14px 0 22px}.survey-compact-row{display:grid;grid-template-columns:minmax(100px,220px) minmax(0,1fr);gap:15px;align-items:center;margin:10px 0}.survey-compact-row>strong{font-size:12px;font-weight:550}.survey-compact-row .survey-stack{margin:0;height:30px}.survey-country-group{margin:18px 0}.survey-country-group h5{margin:0 0 8px;font-size:14px}.survey-shared-distributions>.tiny{margin:12px 0}.survey-compact-row .survey-stack span{font-size:11px}@media(max-width:600px){.survey-compact-row{grid-template-columns:1fr;gap:4px;margin:12px 0}.survey-compact-row .survey-stack{height:28px}}
