/* Schutzbedarfsermittlung (einseitig) */
html{scroll-behavior:smooth}
.steps-anchor{display:grid;gap:8px}
.steps-anchor a.step{text-decoration:none;display:flex}
.steps-anchor a.step:hover{background:#ffffff14;color:#fff}
.card{scroll-margin-top:16px}
.req{font-weight:600;color:#976719;font-size:12px}
fieldset{border:0;padding:0;margin:0;min-width:0}
.rpo{display:grid;grid-template-columns:140px 290px;gap:10px}
.chips{display:flex;flex-wrap:wrap;gap:8px 10px;margin:10px 0}
.chips legend{font-size:14px;font-weight:600;padding:0;margin-bottom:6px;float:left;width:100%}
.chip{display:inline-flex;gap:8px;align-items:center;padding:8px 12px;border:1px solid #aab5ba;border-radius:2px;background:#fff;font-weight:400;font-size:13px;cursor:pointer}
.chip input{width:18px;min-height:18px;margin:0;accent-color:#976719}
.chip:has(input:checked){background:#f4f0e7;border-color:#1e2f36}
.check{display:flex;gap:10px;align-items:flex-start;margin:16px 0}
.check input{width:20px;min-height:20px;flex-shrink:0;margin:1px 0;accent-color:#976719}
.proc{border:1px solid #dce1e2;border-left:4px solid #e0aa46;padding:20px 22px;margin:22px 0;background:#fcfcfb}
.proc-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}
.proc-head h3{margin:0;font-size:20px}
.goal{border-top:1px solid #dce1e2;margin-top:22px;padding-top:18px}
.goal h4{font-size:17px;margin:0 0 4px}
.goal h5{font-size:15px;margin:18px 0 4px}
.goal .q{margin:0 0 12px;color:#1e2f36}
.levels{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.levels legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.lv{position:relative;display:flex;flex-direction:column;gap:5px;padding:13px;border:1px solid #aab5ba;border-radius:2px;background:#fff;cursor:pointer;font-weight:400;font-size:13px;line-height:1.4;color:#42565e}
.lv input{position:absolute;opacity:0;inset:0;width:100%;height:100%;min-height:0;margin:0;cursor:pointer}
.lv b{font-size:16px;color:#1e2f36;font-weight:800}
.lv em{font-style:normal;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#976719}
.lv:hover{border-color:#1e2f36}
.lv:has(input:checked){background:#f4f0e7;border-color:#1e2f36;box-shadow:inset 0 -4px #e0aa46}
.lv.l4:has(input:checked){box-shadow:inset 0 -4px #c4561c}.lv.l8:has(input:checked){box-shadow:inset 0 -4px #a8321e}.lv.l1:has(input:checked){box-shadow:inset 0 -4px #2f7a58}
.lv:has(input:focus-visible){outline:3px solid #b9852d;outline-offset:2px}
.times{display:grid;gap:10px;margin:10px 0}
.trow{display:grid;grid-template-columns:150px 230px minmax(0,1fr);gap:14px;align-items:start;padding:12px;border:1px solid #dce1e2;background:#fff}
.trow.main{border-color:#1e2f36;border-left:4px solid #e0aa46;background:#f4f0e7}
.trow .tl b{display:block;font-size:15px}.trow .tl small{color:#5e6a71;font-size:12px}
.trow textarea{min-height:64px}
.rto-box{margin-top:16px;padding:14px 16px;background:#f1f1ee;border-left:3px solid #e0aa46}
.rto-box .field{max-width:360px}
.mta{margin:10px 0 0;font-size:14px;color:#1e2f36}
/* Ergebnisseite */
.sheet{border:1px solid #1e2f36;background:#fff;padding:22px 24px;color:#1e2f36;font-size:14px}
.sheet h4{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#976719;margin:18px 0 8px}
.sheet-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-end;border-bottom:3px solid #e0aa46;padding-bottom:10px}
.sheet-head small{font-size:11px;letter-spacing:.12em;font-weight:800;color:#976719}
.sheet-head h3{margin:2px 0 0;font-size:24px;letter-spacing:-.6px;line-height:1.15}
.sheet-meta{display:grid;gap:4px;text-align:right;font-size:12px;color:#5e6a71}
.state{font-weight:800;padding:3px 8px;border-radius:2px}.state.draft{background:#fff1cf;color:#735214}.state.done{background:#e6f3ed;color:#216144}
.kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 22px;margin:14px 0 4px}
.kv div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:8px;font-size:13px}
.kv dt{font-weight:800;color:#5e6a71}.kv dd{margin:0;overflow-wrap:anywhere;white-space:pre-line}
.kv div:nth-last-child(-n+2){grid-column:1/-1}
.rhythm{margin:6px 0 0;font-size:12px;color:#5e6a71}
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.tiles.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.tile,.res{padding:12px 14px;color:#fff;background:#8a959a}
.tile small,.res small{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.9}
.tile b{display:block;font-size:24px;letter-spacing:-.4px;line-height:1.2}.tile span{display:block;font-size:11px;margin-top:2px}
.c1{background:#2f7a58;color:#fff}.c2{background:#e0aa46;color:#1e2f36}.c4{background:#c4561c;color:#fff}.c8{background:#a8321e;color:#fff}.c0{background:#e8ebec;color:#5e6a71}
.ptable{width:100%;border-collapse:collapse;margin:14px 0 4px;font-size:13px}
.ptable th,.ptable td{border:1px solid #dce1e2;padding:7px 9px;text-align:left;vertical-align:middle}
.ptable thead th{background:#1e2f36;color:#fff;font-size:12px}
.ptable tbody th small{display:block;font-weight:400;color:#5e6a71;font-size:11px}
.ptable .lvc{text-align:center}.ptable .lvc b{display:block}.ptable .lvc small{font-size:10px;opacity:.9}
.curves{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:10px}
.curves figure{margin:0;border:1px solid #dce1e2;padding:8px 10px}.curves figcaption{font-size:12px;font-weight:800;margin-bottom:2px}.curves svg{width:100%;height:auto;display:block}
.notes{margin:0;padding-left:18px;font-size:12.5px;color:#4f4637}
.sheet-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:16px;padding-top:8px;border-top:1px solid #dce1e2;font-size:11px;color:#5e6a71}
.summary-inner .res{background:transparent;border-left:4px solid #e0aa46;padding:6px 0 6px 12px;margin:10px 0;color:#fff}
.summary-inner .res.c1{border-color:#4aa57c}.summary-inner .res.c4{border-color:#e0733a}.summary-inner .res.c8{border-color:#e0533a}.summary-inner .res.c0{border-color:#6b7a81}
.summary-inner .res small{color:#e0aa46}.summary-inner .res b{font-size:19px}
@media(max-width:980px){.levels{grid-template-columns:1fr 1fr}.trow{grid-template-columns:1fr}.kv{grid-template-columns:1fr}.tiles,.tiles.four{grid-template-columns:1fr 1fr}.ptable{display:block;overflow:auto}}
@media(max-width:560px){.levels{grid-template-columns:1fr}.rpo{grid-template-columns:1fr 1fr}.proc{padding:16px 12px}}
@media(max-width:720px){.steps-anchor{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media print{
 @page{size:A4;margin:10mm}
 *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
 body{background:#fff}
 header,aside,.summary,footer,#toast,.mail-dialog,#help,.noprint,main>:not(#s3),#s3>:not(#sheet){display:none!important}
 .layout{display:block}
 main{padding:0;max-width:none}
 #s3{border:0;box-shadow:none;padding:0;margin:0}
 .sheet{border:0;padding:0;font-size:10pt}
 .sheet-head h3{font-size:18pt}
 .tile b{font-size:15pt}.tile{padding:8px 10px}
 .kv div{font-size:9pt}.ptable{font-size:9pt}.ptable th,.ptable td{padding:4px 6px}
 .curves{grid-template-columns:repeat(2,1fr)}.curves figure{break-inside:avoid;padding:4px 6px}
 .sheet h4{margin:10px 0 5px}
}

.fields{align-items:end}
.field{justify-content:flex-end}
.field .hint{margin:0}
.impact-ref{margin:16px 0 8px;border:1px solid #dce1e2;padding:12px 14px;background:#fff}
.impact{font-size:12.5px;line-height:1.4;border-collapse:collapse;min-width:820px;width:100%;margin:10px 0 0}
.impact th,.impact td{border:1px solid #dce1e2;padding:7px 9px;vertical-align:top;text-align:left}
.impact thead th{background:#1e2f36;color:#fff;font-size:12px}
.impact tbody th{width:150px;color:#fff}
.impact tbody th b{display:block;font-size:14px}.impact tbody th span{display:block;font-size:11px;font-weight:600;opacity:.95}
.impact tbody th.h1{background:#2f7a58}.impact tbody th.h2{background:#e0aa46;color:#1e2f36}.impact tbody th.h4{background:#c4561c}.impact tbody th.h8{background:#a8321e}
@media print{.impact-ref{display:none!important}}
.impact{table-layout:fixed}
.impact th:first-child{width:150px}
.impact td{overflow-wrap:break-word;hyphens:auto}
.goal .hint a{color:#76521b}
.impact{min-width:680px}.impact th:first-child{width:128px}
.rto-box .field{max-width:none}.rto-box .alert,.rto-box .notice{margin:10px 0 0}.ptable td.over{background:#fff0e8;color:#9d3428;font-weight:800}
.reql,label.reql,legend.reql{color:#976719;font-weight:800}
.levels legend.reql{position:static;width:auto;height:auto;clip:auto;overflow:visible;font-size:14px;padding:0;margin-bottom:6px;float:left;width:100%}
.levels{grid-template-columns:repeat(4,minmax(0,1fr))}.levels legend{grid-column:1/-1}
.reqnote{margin:-14px 0 24px;font-size:14px;color:#42565e}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.impact tbody th b{font-size:13px;hyphens:manual;overflow-wrap:normal}.impact th:first-child{width:136px}
.labelrow{display:flex;gap:8px;align-items:flex-end}
.tipwrap{position:relative;flex-shrink:0;line-height:1}
button.tip{min-height:0;width:20px;height:20px;padding:0;border-radius:50%;border:1px solid #976719;background:#fff;color:#976719;font-size:12px;font-weight:800;font-style:italic;font-family:Georgia,serif;line-height:1;cursor:help}
button.tip:hover,button.tip:focus-visible{background:#1e2f36;color:#e0aa46;border-color:#1e2f36;filter:none}
.tiptext{display:none;position:absolute;z-index:6;right:-8px;bottom:calc(100% + 8px);width:min(340px,80vw);padding:12px 14px;background:#1e2f36;color:#fff;border-top:3px solid #e0aa46;font-size:13px;font-weight:400;line-height:1.5;box-shadow:0 6px 24px #0003}
.tipwrap:hover .tiptext,.tip:focus+.tiptext{display:block}
.labelrow{position:relative;justify-content:space-between}.tipwrap{position:static}.tiptext{right:0;bottom:calc(100% + 8px)}
.labelrow{display:flex;justify-content:flex-start;align-items:center;gap:8px}.labelrow h4{margin:0}.goal .labelrow{margin-bottom:4px}.tiptext{left:0;right:auto;width:min(380px,100%)}.field>.labelrow{align-items:flex-end}legend .labelrow{font-weight:800}
#s3 .toolbar{flex-wrap:nowrap;gap:8px}#s3 .toolbar button{padding:10px 12px;font-size:14px;white-space:nowrap;flex:0 1 auto}@media(max-width:1020px){#s3 .toolbar{flex-wrap:wrap}}
@media(min-width:1021px) and (max-width:1320px){#s3 .toolbar{gap:6px}#s3 .toolbar button{padding:10px 8px;font-size:12.5px;letter-spacing:-.1px}}
aside #new{margin-top:28px}
.rpo input:disabled{background:#eef0ef;color:#8a959a}
.curves figure{max-width:520px}
.pblocks{display:grid;gap:10px}
.pblock{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:16px;align-items:center;border:1px solid #dce1e2;border-left:4px solid #1e2f36;padding:10px 12px;break-inside:avoid}
.pinfo h5{margin:0;font-size:15px;font-weight:800}.powner{margin:1px 0 0;font-size:12px;color:#5e6a71}
.pchips{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:6px;margin:8px 0}
.pchip{padding:6px 8px}.pchip small{display:block;font-size:9.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;opacity:.9}.pchip b{display:block;font-size:14px;line-height:1.2}
.ptimes{display:flex;gap:18px;margin:0;font-size:12.5px}.ptimes div{display:flex;gap:6px}.ptimes dt{font-weight:800;color:#5e6a71}.ptimes dd{margin:0;font-weight:700}.ptimes .over dd{color:#9d3428}
.pcurve{margin:0}.pcurve figcaption{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#976719}.pcurve svg{width:100%;height:auto;display:block}
@media(max-width:760px){.pblock{grid-template-columns:1fr}}
@media print{.pblock{padding:6px 8px;gap:10px}.pblocks{gap:6px}.pchip b{font-size:11pt}}
.pchips{grid-template-columns:1fr 1fr}.pchip small{letter-spacing:.03em;white-space:nowrap}.pchip{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.pchip b{font-size:13px}@media print{.pchip b{font-size:10pt}}
.pchips{grid-template-columns:1fr;gap:4px}.pchip{padding:4px 10px}.pchip b{white-space:nowrap}
.labelrow h5{margin:0}.labelrow.sub{margin:18px 0 8px}.tiptext{width:min(420px,100%)}
