/* Local additions to the shared trainer presentation. */
body.trainer-page[data-trainer="rangieren"]{--amber:#efb7a2;--accent-wash:#3a2e2c;--accent-soft:#3c302e}
.trainer-page[data-trainer="rangieren"] .nav{max-width:760px;grid-template-columns:repeat(5,minmax(0,1fr))}
.trainer-page[data-trainer="rangieren"] #app:is([data-screen="understand"],[data-screen="guide"]){max-width:960px}
.rangier-learning-path{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px;border:1px solid var(--line);border-radius:var(--ui-radius);background:var(--panel)}
.rangier-learning-path h2{font-size:17px;line-height:1.4;margin:0 0 5px}
.rangier-learning-path p{font-size:13px;color:var(--muted);margin:0;line-height:1.5}
.rangier-learning-path button{flex:none}
.guide-count{margin:14px 0 10px}
.rangier-rule{margin:9px 0;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.rangier-rule summary{padding:14px 16px;cursor:pointer;line-height:1.5;color:var(--text)}
.rangier-rule summary>span{display:inline-grid;gap:4px;max-width:calc(100% - 22px);vertical-align:middle}
.rangier-rule summary small{color:var(--muted);font-size:11px;font-weight:500}
.rangier-rule summary strong{font-size:14px;font-weight:650}
.rangier-rule-detail{padding:0 16px 16px;border-top:1px solid var(--line-soft)}
.rangier-rule-prompt{margin:14px 0;color:#c3d2df;font-size:13px;line-height:1.6}
.rangier-rule-detail .answer-main{margin-top:12px}
.rangier-compare-wrap{overflow-x:auto;overscroll-behavior-x:contain;margin-top:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel)}
.rangier-compare{width:100%;border-collapse:collapse;table-layout:fixed;min-width:570px;font-size:13px;line-height:1.6}
.rangier-compare th,.rangier-compare td{padding:14px 16px;text-align:left;vertical-align:top;border-bottom:1px solid var(--line-soft);overflow-wrap:break-word}
.rangier-compare thead th{font-size:13px;font-weight:700;color:var(--amber);background:#1d2934}
.rangier-compare th:first-child{width:24%}
.rangier-compare tbody th{font-size:12px;font-weight:650;color:#c0cfdd}
.rangier-compare td{color:#d5e0e9}
.rangier-compare td strong{display:block;font-size:12px;font-weight:650;line-height:1.5;margin-bottom:7px}
.rangier-compare td p{margin:0 0 9px}
.rangier-compare .ref{font-size:11px;line-height:1.6}
.rangier-compare tr:last-child>*{border-bottom:0}
.rangier-comparison-cases{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.rangier-comparison-cases ul,.rangier-extra-cases{list-style:none;margin:0;padding:0;display:grid;gap:9px}
.rangier-extra-cases{grid-template-columns:1fr 1fr}
.rangier-case{display:grid;gap:7px;width:100%;height:100%;padding:14px;text-align:left;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--text);cursor:pointer}
.rangier-case strong{font-size:14px;line-height:1.4;font-weight:650}
.rangier-case>span{font-size:12px;line-height:1.6;color:var(--muted)}
.rangier-case small{font-size:12px;line-height:1.5;color:var(--amber);font-weight:650}
.rangier-source-list{margin:16px 0 0;padding-left:20px;display:grid;gap:10px}
.rangier-source-list li{font-size:13px;line-height:1.6}
.rangier-scope{margin:16px 0;padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#14222e}
.rangier-scope summary{font-size:13px;font-weight:600;line-height:1.5;cursor:pointer}
.rangier-scope p{margin:10px 0 0;color:var(--muted);font-size:12px;line-height:1.7}
[data-rangieren-calculator][hidden]{display:none!important}
.rangieren-calc{margin-top:24px;padding:18px;border:1px solid var(--line);border-radius:var(--ui-radius);background:var(--panel)}
.rangieren-calc [hidden]{display:none!important}
.rangieren-calc h2{margin:0 0 8px;font-size:19px;line-height:1.4;letter-spacing:-.02em}
.rangieren-calc h3{margin:18px 0 9px;font-size:15px;line-height:1.4}
.rangieren-calc p{font-size:13px;line-height:1.6;color:var(--muted)}
.calc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}
.calc-fields label{display:flex;flex-direction:column;gap:7px;min-width:0;color:#dce6ef;font-size:13px;font-weight:600;line-height:1.5}
.calc-fields label.calc-empty{flex-direction:row;align-items:flex-start;grid-column:1/-1;gap:9px}
.calc-empty input[type="checkbox"]{flex:none;width:19px;height:19px;margin:1px 0 0;accent-color:var(--amber)}
.rangieren-calc :is(input:not([type="checkbox"]),select){box-sizing:border-box;display:block;width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #435972;border-radius:10px;background:#111c29;color:#f2f6fa;font:400 16px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif}
.rangieren-calc :is(button,input,select):focus-visible{outline:2px solid var(--amber);outline-offset:3px}
.rangieren-calc button{min-height:44px;padding:10px 14px;border:1px solid #405268;border-radius:10px;background:#192737;color:#e0e9f3;font:650 14px/1.4 system-ui,-apple-system,"Segoe UI",sans-serif;cursor:pointer}
.rangieren-calc button[type="submit"]{background:var(--amber);border-color:var(--amber);color:#13212b}
.calc-result{margin-top:16px;padding:14px;border:1px solid #3d6054;border-left:3px solid #8fdfb7;border-radius:10px;background:#142629;color:#e0f0e8;font-size:14px;line-height:1.6}
.calc-result strong{font-size:16px;color:#e5f7ed}
.calc-result[data-status="missing"]{border-color:#786044;border-left-color:#edc28c;background:#30291f;color:#f4dfbf}
.calc-result[data-status="missing"] strong{color:#ffe2b7}
.calc-result[data-status="missing"] p{color:#e6d0b0}
.calc-result p{color:#c3dbce;margin:7px 0}
.calc-note{font-size:12px;line-height:1.6;color:var(--muted);margin:10px 0}
.calc-checks{display:grid;gap:9px;padding:0;margin:14px 0;list-style:none;font-size:13px;line-height:1.6;color:#cad8e2}
.calc-checks label{display:flex;gap:9px;align-items:flex-start;font-size:13px;line-height:1.6;color:#d1dfe8}
.calc-checks input[type="checkbox"]{flex:none;width:19px;height:19px;margin:1px 0 0;accent-color:var(--amber)}
@media(max-width:600px){.calc-fields{grid-template-columns:1fr;gap:12px}.rangieren-calc{padding:16px}.rangieren-calc button[type="submit"]{width:100%}}
@media(max-width:600px){.trainer-page[data-trainer="rangieren"] .nav{gap:2px;padding:3px;grid-template-columns:repeat(5,minmax(80px,1fr));overflow-x:auto;overscroll-behavior-x:contain}.trainer-page[data-trainer="rangieren"] .nav button{font-size:12px;padding:8px 4px;min-width:0}.rangier-learning-path{display:block;padding:16px}.rangier-learning-path button{margin-top:14px;width:100%}.rangier-comparison-cases,.rangier-extra-cases{grid-template-columns:1fr;gap:0}.rangier-extra-cases{gap:9px}.rangier-compare th,.rangier-compare td{padding:12px}.rangier-rule summary{padding:13px}.rangier-rule-detail{padding:0 13px 14px}}
@media(max-width:600px){
 .trainer-page[data-trainer="rangieren"] .nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;overflow:visible}
 .trainer-page[data-trainer="rangieren"] .nav button{min-width:0;grid-column:span 3;padding:9px 4px;white-space:nowrap}
 .trainer-page[data-trainer="rangieren"] .nav button:nth-child(-n+3){grid-column:span 2}
 .rangier-compare{display:block;min-width:0;table-layout:auto}
 .rangier-compare thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .rangier-compare tbody{display:block}
 .rangier-compare tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);border-bottom:1px solid var(--line)}
 .rangier-compare tr:last-child{border-bottom:0}
 .rangier-compare tbody th:first-child{display:block;width:auto;grid-column:1/-1;padding-bottom:7px;color:var(--amber);font-size:13px;border:0;background:#1d2934}
 .rangier-compare td{display:block;min-width:0;border:0;font-size:12px;padding-top:9px;hyphens:auto}
 .rangier-compare td:not([colspan])::before{display:block;font-size:11px;font-weight:700;color:var(--muted);margin-bottom:7px}
 .rangier-compare td:nth-child(2):not([colspan])::before{content:"Verständigung" / ""}
 .rangier-compare td:nth-child(3):not([colspan])::before{content:"Zustimmung" / ""}
 .rangier-compare td[colspan]{grid-column:1/-1}
}
