:root{font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#172d30;background:#f5f8fa;font-size:16px;line-height:1.5}
*{box-sizing:border-box}body{margin:0}a{color:#08667c}button,select{font:inherit}button{cursor:pointer}.wrap{max-width:1240px;margin:0 auto;padding:0 20px}.site-head{background:#fff;border-bottom:1px solid #dbe5e8}.head-flex{display:flex;justify-content:space-between;align-items:center;min-height:76px;gap:14px}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#153f45;font-size:1.16rem;font-weight:750}.brand small{display:block;color:#587477;font-size:.74rem;font-weight:450}.logo{display:grid;place-items:center;background:#e1f1ed;color:#157e6a;width:40px;height:40px;border-radius:10px}.back{text-decoration:none}.intro{padding:36px 0 22px}.intro h1{font-size:clamp(1.65rem,3.4vw,2.45rem);line-height:1.17;letter-spacing:-.035em;margin:7px 0 12px;max-width:850px}.intro p{max-width:920px;color:#526c74}.eyebrow{text-transform:uppercase;font-size:.75rem;color:#147b72;letter-spacing:.09em;font-weight:750}.panel{background:#fff;border:1px solid #dce6e9;border-radius:12px;padding:24px;margin-bottom:18px;box-shadow:0 1px 4px #1b34440a}h2{font-size:1.25rem;margin:0 0 8px}h3{font-size:1.02rem;margin:18px 0 10px}.controls{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px}.controls label{min-width:180px;flex:1;display:grid;gap:6px;color:#33545c;font-weight:650;font-size:.87rem}.controls select{width:100%;background:white;color:#17333a;border:1px solid #b5cbd0;border-radius:8px;padding:10px;min-height:43px}.controls button{background:#126f70;color:white;border:0;padding:11px 19px;border-radius:8px;font-weight:700;min-height:43px}.controls button:hover{background:#0d5b60}#status{font-size:.86rem;color:#486970;margin:12px 0 0}.tabs{display:flex;flex-wrap:wrap;gap:6px;margin:22px 0 12px}.tab{background:transparent;color:#45656b;border:1px solid #bfced1;border-radius:9px;padding:10px 14px;font-weight:600}.tab.active{background:#176d6e;color:white;border-color:#176d6e}.hidden{display:none!important}.muted{color:#657d83;margin:4px 0 14px}.facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0}.facts>div{padding:14px;background:#f0f6f7;border-radius:9px;min-height:72px}.facts small{display:block;font-size:.78rem;color:#5d777e}.facts strong{font-size:1.15rem;color:#1c454e;font-variant-numeric:tabular-nums}.chart-scroll{width:100%;overflow-x:auto;padding:12px 0 4px}.histogram{display:flex;gap:4px;align-items:flex-end;min-height:295px;min-width:750px;border-bottom:1px solid #bdcbd0;padding:10px 1px 0}.hist-item{display:grid;grid-template-rows:220px 42px;flex:1;min-width:36px;gap:6px;border:0;background:transparent;color:#425e66;padding:0 2px}.hist-bars{align-self:end;display:flex;justify-content:center;align-items:flex-end;gap:2px;height:220px}.hist-bars i{width:40%;max-width:22px;display:block;min-height:1px;border-radius:3px 3px 0 0}.hist-obs{background:#176d6e}.hist-exp{background:#9bc3d0}.hist-item:hover .hist-bars{background:#f4f9f9}.hist-item.selected{background:#e6f3f1;border-radius:6px}.hist-item:focus-visible,.tab:focus-visible{outline:3px solid #e4a647;outline-offset:2px}.hist-label{display:block;text-align:center;font-size:.69rem;line-height:1.1;word-break:normal;align-content:center}.legend{display:flex;gap:22px;flex-wrap:wrap;margin:10px 0 15px;color:#536a72;font-size:.88rem}.legend i{display:inline-block;width:12px;height:12px;margin-right:5px;border-radius:2px}.legend-observed{background:#176d6e}.legend-expected{background:#9bc3d0}.small{color:#678086;font-size:.84rem;margin:13px 0}.table-wrap{overflow-x:auto;max-height:430px}.table-wrap table{width:100%;border-collapse:collapse;font-size:.9rem;font-variant-numeric:tabular-nums}td,th{padding:9px;border-bottom:1px solid #e5ecee;text-align:right}td:first-child,th:first-child{text-align:left}thead{position:sticky;top:0;background:#ecf3f4}.deviation-high{color:#a04b17;font-weight:700}.deviation-disabled{color:#869ba0}#timeChart svg{width:100%;height:auto;min-width:720px;display:block}.compact{max-width:230px}.two-col{display:grid;grid-template-columns:repeat(2,1fr);gap:25px}.gap-row{display:flex;justify-content:space-between;gap:6px;border-bottom:1px solid #e5eff0;padding:7px 4px;font-size:.91rem}.gap-row strong{font-variant-numeric:tabular-nums}.footer{padding-top:10px;padding-bottom:35px;font-size:.8rem;color:#657e84}.footer a{margin-left:12px}code{background:#eef3f4;padding:2px 5px;border-radius:4px}@media(max-width:700px){.wrap{padding:0 12px}.intro{padding:26px 0 16px}.panel{padding:15px}.back{font-size:.8rem}.facts{grid-template-columns:1fr}.two-col{grid-template-columns:1fr}.controls label{flex-basis:100%}.tab{flex:1;font-size:.87rem}}

/* v2.3.1: Merkmalswartezeiten und Einzelzahlen klar getrennt */
.section-divider{border-top:2px solid #e1ebec;margin:32px 0 25px}
.gap-explanation{background:#edf6f5;border:1px solid #cae1dd;border-radius:10px;padding:14px 17px;margin:15px 0 12px}
.gap-explanation h3{margin:0 0 8px;color:#16494c}
.gap-explanation p{margin:7px 0;line-height:1.55}
.gap-pick{border:1px solid transparent;border-radius:6px;background:transparent;color:#08667c;font-weight:650;padding:5px 8px;text-align:left}
.gap-pick:hover,.gap-pick:focus-visible{background:#d9f0ec;border-color:#77b2ab;outline-offset:2px}
.gap-row-selected{background:#edf7f5}
.gap-row-selected .gap-pick{color:#075d58;text-decoration:underline}
.gap-chart{display:grid;gap:11px;margin:14px 0 20px}
.gap-bar-row{display:grid;grid-template-columns:minmax(185px,1fr) minmax(130px,3fr) 75px;gap:12px;align-items:center;font-size:.87rem;color:#35545a}
.gap-bar-row strong{text-align:right;font-variant-numeric:tabular-nums}
.gap-bar-track{height:16px;border-radius:6px;background:#edf1f3;overflow:hidden}
.gap-bar-fill{display:block;height:100%;border-radius:6px}
.gap-current{background:#147875}.gap-expected{background:#9ebeca}.gap-completed{background:#d9a85b}
@media(max-width:650px){.gap-bar-row{grid-template-columns:1fr 80px;gap:3px 9px}.gap-bar-row>span{grid-column:1/-1}.gap-bar-track{grid-column:1}.gap-bar-row strong{grid-column:2}}

/* v2.3.2: Erklaerungen und eindeutige Wertbezeichnungen */
.metric-help{color:#35545a;background:#f0f6f7;border-left:3px solid #126f70;padding:10px 13px;margin:10px 0 16px;border-radius:0 7px 7px 0;font-size:.91rem;line-height:1.55}
#deviations td:first-child,#metricGaps td:first-child{min-width:185px;max-width:330px}
#deviations th:first-child,#metricGaps th:first-child{text-align:left}

/* v2.3.3: gut lesbare Erklaerkarten mit Rechenbeispielen */
.explanation-card{background:#f0f6f7;border-left:4px solid #126f70;padding:14px 17px;margin:14px 0 18px;border-radius:0 8px 8px 0;color:#2e535b;font-size:.94rem;line-height:1.62}
.explanation-card h3.explanation-heading{font-size:1.05rem;margin:0 0 9px;color:#174e54}
.explanation-card p{margin:7px 0 11px}
.explanation-card p:last-child{margin-bottom:0}
.explanation-card strong{color:#1a494e}
.compact-explanation{background:#f7f9fa;border-left-color:#81aeb5}
@media(max-width:700px){.explanation-card{padding:12px 13px;font-size:.9rem}}

/* v2.3.4: Sprachwahl und mobile Bedienung */
.head-actions{display:flex;align-items:center;gap:17px;flex-wrap:wrap;justify-content:flex-end}
.language-label{display:flex;align-items:center;gap:7px;color:#486a70;font-size:.83rem;font-weight:600}
.language-label select{background:#fff;color:#183d42;border:1px solid #afcbd0;border-radius:7px;padding:7px 8px;max-width:150px}
@media(max-width:680px){.head-flex{flex-wrap:wrap;padding-top:10px;padding-bottom:12px}.head-actions{width:100%;justify-content:space-between}.back{white-space:normal}}

/* v2.3.5: Zahlenstatistik und Häufigkeit aller Hauptzahlen */
.number-hist{display:flex;align-items:flex-end;gap:3px;min-width:max-content;min-height:175px;border-bottom:1px solid #b8cbd0;padding:6px 8px 0}
.number-bar{width:24px;flex:0 0 24px;text-align:center;font-variant-numeric:tabular-nums;color:#4c6970}
.number-bars{height:145px;display:flex;gap:2px;align-items:flex-end;justify-content:center}
.number-bar-observed,.number-bar-expected{display:block;width:8px;min-height:1px;border-radius:3px 3px 0 0}
.number-bar-observed{background:#176d6e}.number-bar-expected{background:#9bc3d0}
.number-bar small{display:block;font-size:11px;margin:4px 0 2px}
.number-rankings{margin-bottom:22px}
.number-rankings td:nth-child(2),.number-rankings td:nth-child(3){font-variant-numeric:tabular-nums}

.lab-link{margin:10px 0 18px}.lab-link a{display:inline-block;padding:13px 18px;border:1px solid #99c9c8;border-radius:9px;background:#edf8f6;color:#136a68;font-weight:750;text-decoration:none}.lab-link a:hover{background:#dff2ed}
