@font-face{font-family:Source;src:url('assets/font-regular.ttf')}@font-face{font-family:Source;src:url('assets/font-semibold.ttf');font-weight:600}*{box-sizing:border-box}body{margin:0;background:#f3f5f6;color:#20384b;font:17px/1.55 Source,Arial,sans-serif}header{background:#fff;border-bottom:1px solid #d6dee3;padding:18px max(22px,calc((100% - 1196px)/2));display:flex;justify-content:space-between;align-items:center;gap:22px}header img{width:210px;height:70px;object-fit:contain}header span{font-size:14px}main{max-width:1240px;margin:auto;padding:28px 22px 48px}.intro{max-width:760px;margin-bottom:30px}.kicker{color:#b43c4c;font-weight:600;font-size:15px;margin:0 0 10px}h1{font-size:clamp(36px,4.2vw,54px);line-height:1.09;letter-spacing:-.035em;margin:12px 0 20px;font-weight:600}h2{font-size:25px;line-height:1.2;font-weight:600;margin:0 0 18px;letter-spacing:-.02em}.notice{padding:16px 18px;border-left:3px solid #b43c4c;background:#fff;font-size:16px}.layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);gap:24px;align-items:start}.card{background:#fff;border:1px solid #d6dee3;border-radius:8px;padding:26px;margin-bottom:24px;min-width:0}.section-head{display:flex;align-items:center;gap:14px;margin-bottom:22px}.section-head h2{margin:0}.number{border:1px solid #a8bdcc;border-radius:50%;width:34px;height:34px;display:grid;place-items:center;flex:none;font-weight:600}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}label{display:block;font-size:16px;font-weight:600;min-width:0}label>span{font-weight:400;color:#526471}input,select,button{font:inherit;min-height:46px;border:1px solid #8b9ca8;border-radius:5px;color:#20384b}input,select{width:100%;padding:10px;margin-top:6px;background:#fff}select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2320384b' stroke-width='2'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat}small,.hint{display:block;font-size:14px;font-weight:400;color:#526471;line-height:1.5;margin-top:7px}.hint{margin-bottom:0}.check{display:flex;align-items:flex-start;gap:12px;font-weight:400;margin-top:18px}.check input{width:20px;min-width:20px;height:20px;min-height:20px;margin:3px 0 0;accent-color:#20384b}details{margin-top:24px;border-top:1px solid #d6dee3;padding-top:18px}summary{cursor:pointer;font-weight:600;padding:4px 0}fieldset{border:0;padding:0;margin:22px 0 0;min-width:0}legend{font-size:18px;font-weight:600;padding:0 0 14px}fieldset>label{margin-top:18px}.actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:32px}button{padding:11px 16px;background:white;cursor:pointer}.primary{background:#20384b;color:white;border-color:#20384b}button:hover{filter:brightness(.94)}:focus-visible{outline:3px solid #b43c4c;outline-offset:3px}[hidden]{display:none!important}.summary{position:sticky;top:20px}.outcome{border-top:1px solid #d6dee3;display:grid;gap:6px;padding-top:20px;margin-top:24px}.outcome strong{font-size:20px;margin-bottom:12px}dl{margin:16px 0}dt{font-size:14px;color:#526471}dd{margin:0 0 14px;font-weight:600;overflow-wrap:anywhere}#review{font-size:15px}#review ul{padding-left:20px}#review .alert,#changed{padding:12px;background:#f6eaed;border-left:3px solid #b43c4c}#review .ok{padding:12px;background:#e8edf0}#annual{margin-top:8px}table{border-collapse:collapse;width:100%;font-size:15px}th,td{text-align:left;padding:12px;border-bottom:1px solid #d6dee3;vertical-align:top}th{background:#e8edf0}.table-wrap{max-width:100%;overflow:auto}a{color:#164f70}footer{font-size:14px;color:#526471}input:invalid:not(:placeholder-shown){box-shadow:none}@media(max-width:900px){.layout{grid-template-columns:1fr}.summary{position:static}}@media(max-width:550px){header{padding:14px 18px;flex-wrap:wrap;gap:6px}header img{width:180px;height:58px}main{padding:22px 16px 32px}.card{padding:20px 16px}.grid{grid-template-columns:1fr;gap:18px}.actions button{width:100%}h2{font-size:23px}table{min-width:560px}.intro p{font-size:16px}}@media print{header,.actions,form,#annual,footer{display:none}.layout{display:block}.summary{position:static}.outcome{display:none}}

.choice{margin:22px 0}.segments{display:grid;grid-template-columns:1fr 1fr;gap:12px}.segments label{padding:14px;border:1px solid #8b9ca8;border-radius:6px;display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:400}.segments label:has(input:checked){background:#e8edf0;border-color:#20384b;box-shadow:inset 0 0 0 1px #20384b}.segments input{width:19px;height:19px;min-height:19px;margin:0;accent-color:#20384b;flex:none}.view-switch{display:flex;gap:8px;margin-bottom:10px}.view-switch button{flex:1}.view-switch [aria-pressed="true"]{color:#fff;background:#20384b}.text-button{font-size:14px;min-height:32px;padding:4px 8px;margin-top:6px;text-decoration:underline;border:0}#christmas-fields{margin-top:16px}.card>label{margin-top:18px}@media(max-width:550px){.segments{grid-template-columns:1fr}.summary h2{font-size:23px}}

.field{position:relative;min-width:0}.field>label{padding-right:30px}.help-button{position:absolute;right:0;top:0;border:1px solid #8b9ca8;border-radius:50%;width:25px;height:25px;min-height:25px;padding:0;line-height:1;font-size:15px;font-weight:600}#help-modal{max-width:min(560px,calc(100vw - 32px));max-height:80vh;overflow:auto;border:1px solid #8b9ca8;border-radius:8px;padding:26px;color:#20384b;font:17px/1.6 Source,Arial,sans-serif}#help-modal::backdrop{background:#20384b99}#result-rows tr.emphasis{background:#e8edf0;font-weight:600}#results td:not(:first-child),#results th:not(:first-child){text-align:right;white-space:nowrap}#results table{min-width:720px}#results th:first-child{width:42%}#results td{padding:10px}#results .notice{margin:18px 0}h3{font-size:21px;font-weight:600}#method>p{max-width:85ch}#pdf-download{margin-top:8px}
.field:has(>label[hidden]){display:none!important}

.field>label{padding-right:48px}.help-button{width:44px;height:44px;min-height:44px;background:transparent;border:0;font-size:0;top:-8px}.help-button::before{content:"?";display:inline-grid;place-items:center;width:25px;height:25px;border:1px solid #8b9ca8;border-radius:50%;font-size:15px;background:#fff}.table-scroll-hint{font-size:14px;color:#4b6172}@media(max-width:600px){#results th:first-child{width:145px;min-width:145px;max-width:145px;white-space:normal}#results td:first-child{max-width:145px;white-space:normal;overflow-wrap:anywhere}#results table{table-layout:fixed;min-width:510px;width:510px}#results th:not(:first-child){width:121px;font-size:13px;white-space:normal}#results td:not(:first-child){font-size:14px;padding:8px 5px}}

@media(max-width:600px){#results td:first-child,#results th:first-child{hyphens:auto;overflow-wrap:normal;word-break:normal}}@media(max-width:360px){#results th:first-child{width:125px;min-width:125px;max-width:125px}#results td:first-child{max-width:125px}#results table{min-width:440px;width:440px}#results th:not(:first-child){width:105px}#results td:not(:first-child){font-size:13px;padding:8px 3px}}

/* UI R0004: Nur Richtungswahl, ein umbeschriftetes Betragsfeld, zugehöriges Ergebnis. */
.segments label{align-items:flex-start;min-height:96px}.segments input{margin-top:3px}.segments .option-copy{display:grid;gap:5px;min-width:0;color:#20384b}.segments .option-copy strong{font-weight:600;line-height:1.35}.segments .option-copy small{margin:0;line-height:1.45}.segments label:focus-within{outline:3px solid #b43c4c;outline-offset:3px}#gross-result-wrap{display:grid;gap:6px}#gross-result-wrap strong{display:block}#gross-result-wrap span{font-size:16px}.choice:first-of-type{margin-top:0}

/* UI R0005: ein Formular, fünf erreichbare Arbeitsbereiche. */
.layout.has-tabs{display:block}.has-tabs .summary{position:static}.lohn-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 20px;position:relative;z-index:1}.lohn-tabs button{display:flex;align-items:center;gap:10px;min-height:76px;padding:12px;text-align:left;font-size:16px;font-weight:600;line-height:1.3;background:#fff;border-color:#a8bdcc;min-width:0}.lohn-tabs .tab-number{display:grid;place-items:center;border:1px solid #a8bdcc;border-radius:50%;width:30px;height:30px;flex:none}.lohn-tabs .tab-title{overflow-wrap:normal}.lohn-tabs [aria-selected="true"]{background:#20384b;color:white;border-color:#20384b}.lohn-tabs [aria-selected="true"] .tab-number{border-color:#b9cbd5}.tab-panel{min-width:0}.tab-navigation{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:20px 0}.tab-navigation p{margin:0;font-size:15px;color:#526471}.tab-navigation button{min-width:110px}.tab-navigation button:disabled{opacity:.45;cursor:default}.current-state{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 20px;margin:0 0 22px;background:#e8edf0;border-left:3px solid #20384b}.current-state p{margin:0}.current-state #tab-state{font-weight:600}.current-state #tab-kpis:not(:empty){margin-top:5px}.current-state[data-state="changed"],.current-state[data-state="error"]{border-color:#b43c4c}.has-tabs .outcome{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:20px;margin-top:0}.kpi-pair{display:grid;align-content:start;gap:8px}.has-tabs .kpi-pair strong{font-size:28px;line-height:1.2}.overview-details{margin:16px 0}.has-tabs .summary dl{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr);gap:8px 20px}.has-tabs .summary dd{margin:0}.has-tabs #review:empty{display:none}.has-tabs #review:not(:empty){margin:18px 0}.has-tabs #method{margin-top:24px}@media(max-width:700px){.lohn-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.lohn-tabs button{min-height:76px;padding:12px 10px;font-size:15px}.lohn-tabs button:last-child{grid-column:1/-1}.current-state{align-items:stretch;flex-direction:column;gap:12px;padding:16px}.current-state button{width:100%}.has-tabs .summary dl{display:block}.has-tabs .summary dd{margin:0 0 14px}.tab-navigation{gap:8px}.tab-navigation button{min-width:90px;padding:10px}.tab-navigation p{font-size:13px}.has-tabs .outcome{grid-template-columns:1fr}.tab-panel>.section-head h2{font-size:25px}}

@media(max-width:700px){.lohn-tabs button{gap:8px;padding:12px 8px}.lohn-tabs .tab-number{width:24px;height:24px;font-size:14px}}

/* LOHN-SCHMAL-IFRAME-R0001: vollständige Reitertitel bei schmaler Theme-Einbettung. */
@media(max-width:319px){.lohn-tabs{grid-template-columns:minmax(0,1fr)}.lohn-tabs button:last-child{grid-column:auto}}

/* RC5: retain controls inside very narrow embedded documents. */
@media (max-width: 360px) {
 .tab-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
 }
 .tab-navigation p {
  grid-column: 1 / -1;
  grid-row: 1;
  text-align: center;
 }
 .tab-navigation button {
  min-width: 0;
  width: 100%;
  grid-row: 2;
 }
 .tab-navigation #tab-prev { grid-column: 1; }
 .tab-navigation #tab-next { grid-column: 2; }
}

/* Explicit download after asynchronous PDF creation. */
.pdf-ready { margin: 12px 0 20px; }
.pdf-ready p { margin: 0 0 10px; }
.pdf-ready-link {
 display: inline-flex;
 align-items: center;
 min-height: 46px;
 max-width: 100%;
 padding: 11px 16px;
 border: 1px solid #20384b;
 border-radius: 5px;
 background: #20384b;
 color: #fff;
 font-weight: 600;
 text-decoration: none;
 overflow-wrap: anywhere;
}
.pdf-ready-link:focus-visible { outline: 3px solid #b43c4c; outline-offset: 3px; }
