
/* MigraKompassen rental budget calculator v5.8 — self contained */
.rb-page{color:#224B60}
.rb-hero{padding:72px 0 78px;background:linear-gradient(115deg,#FFF8F7 0%,#F4F9FA 56%,#EBF3F5 100%);overflow:hidden}
.rb-hero-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);align-items:center;gap:55px}
.rb-hero h1{font-size:clamp(42px,5vw,68px);letter-spacing:-.058em;line-height:1.07;margin:13px 0 23px;color:#173F56}
.rb-lead{font-size:16px;color:#627D8B;line-height:1.83;max-width:620px}
.rb-hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin:30px 0}
.rb-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:45px;padding:11px 17px;text-align:center;font-family:inherit;font-weight:820;font-size:12px;border-radius:9px;text-decoration:none;cursor:pointer;transition:background .16s,border-color .16s}
.rb-btn-primary{background:#B85260;border:1px solid #B85260;color:white!important}
.rb-btn-primary:hover{background:#984553;color:white!important}
.rb-btn-outline{border:1px solid #D1DEE3;background:#fff;color:#436577}
.rb-btn-outline:hover{border-color:#B85260;background:#FFF6F7}
.rb-btn:disabled{opacity:.46;cursor:default}
.rb-simple-link{font-size:13px;font-weight:800;color:#A7505E;text-decoration:none}
.rb-simple-link:hover{text-decoration:underline}
.rb-hero-points{display:flex;gap:11px 22px;flex-wrap:wrap;font-size:11px;font-weight:800;color:#567785}
.rb-hero-points>span>span:first-child{color:#2E7E61}
.rb-hero-visual{border:1px solid #D9E7EB;background:linear-gradient(158deg,#FFF,#F7FAFB);box-shadow:0 32px 68px #1D4A651D;border-radius:22px;padding:28px;min-height:380px;transform:rotate(1.5deg);display:flex;flex-direction:column;justify-content:space-between}
.rb-hero-visual-header{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:10px;color:#69838E;font-weight:900;letter-spacing:.12em}
.rb-hero-visual-header>span:last-child{background:#F1F7F8;color:#447282;border-radius:20px;padding:7px 12px}
.rb-hero-visual-mark{display:grid;place-items:center;width:41px;height:41px;border-radius:12px;background:#F9E7EA;color:#B95461;font-size:28px}
.rb-hero-visual-body{padding:19px 12px}
.rb-paper-label{display:block;font-size:21px;font-weight:890;color:#20465B;letter-spacing:-.038em}
.rb-faux-lines{display:grid;gap:11px;margin:28px 0 26px}
.rb-faux-lines i{height:9px;border-radius:30px;background:#E0EAED;display:block}
.rb-faux-lines i:nth-child(2){width:76%}.rb-faux-lines i:nth-child(3){width:52%}
.rb-faux-chart{height:100px;display:flex;align-items:end;gap:14px}
.rb-faux-chart span{flex:1;border-radius:8px 8px 3px 3px;background:#ADC7D2;height:47%}
.rb-faux-chart span:nth-child(1){background:#C98491;height:71%}
.rb-faux-chart span:nth-child(2){background:#E6BEC5;height:43%}
.rb-faux-chart span:nth-child(3){background:#A3C6BF;height:84%}
.rb-faux-chart span:nth-child(4){background:#87B2C1;height:65%}
.rb-faux-chart span:nth-child(5){background:#D4D6BE;height:56%}
.rb-visual-bottom{display:flex;justify-content:space-between;margin-top:14px;font-size:11px;color:#667F8A;font-weight:780}
.rb-privacy{background:#EFF7F5;border-top:1px solid #DCECE8;border-bottom:1px solid #D9EAE5}
.rb-privacy>.wrap{padding-top:17px;padding-bottom:17px;color:#507469;font-size:12px;line-height:1.7}
.rb-privacy strong{color:#286A50}
.rb-workspace{padding:74px 0 87px;background:#F7FAFA}
.rb-workspace-heading{display:flex;align-items:end;justify-content:space-between;gap:28px;margin-bottom:26px}
.rb-workspace-heading h2,.rb-education h2{color:#173D54;font-size:clamp(30px,3.5vw,42px);letter-spacing:-.045em;line-height:1.2;margin:7px 0 10px}
.rb-workspace-heading p{font-size:13px;color:#67808C;line-height:1.75;max-width:680px}
.rb-workspace-heading>.rb-btn{white-space:nowrap;align-self:center}
.rb-main-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(310px,.88fr);gap:21px;align-items:start}
.rb-input-col{min-width:0}
.rb-household,.rb-scenario{border:1px solid #DEE8EB;background:#fff;box-shadow:0 8px 32px #1B405411;border-radius:15px;padding:24px;margin-bottom:18px}
.rb-scenario[hidden],.rb-compare-result[hidden]{display:none!important}
.rb-scenario-title{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:24px}
.rb-scenario-title>div{display:flex;gap:13px;align-items:center}
.rb-letter{display:grid;place-items:center;width:41px;height:41px;border-radius:11px;flex:0 0 41px;background:#FCE9EC;color:#AB5060;font-size:17px;font-weight:900}
.rb-income-letter{background:#E8F2EF;color:#348367}
.rb-scenario-title h3{font-size:20px;line-height:1.3;color:#21495D;margin:0 0 4px;letter-spacing:-.025em}
.rb-scenario-title p{font-size:11px;line-height:1.55;color:#6D8490;margin:0}
.rb-mini{background:#FFF7F7;color:#9D4D59;border:1px solid #E5C4CB;border-radius:7px;padding:8px 10px;font-size:11px;white-space:nowrap;font-weight:800;cursor:pointer}
.rb-field-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:8px 0 16px;padding-bottom:9px;border-bottom:1px solid #E4ECEE}
.rb-field-heading strong{color:#275064;font-size:14px}
.rb-field-heading span{color:#8A9BA1;font-size:10px;font-weight:760;letter-spacing:.04em;text-transform:uppercase}
.rb-one-time{margin-top:26px}
.rb-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 16px}
.rb-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.rb-field-label{font-weight:830;color:#34596B;font-size:12px;line-height:1.45}
.rb-field input{height:44px;width:100%;min-width:0;border:1px solid #C9D8DE;border-radius:8px;background:#FCFDFD;color:#23485D;padding:0 12px;font-size:14px;font-variant-numeric:tabular-nums;outline-offset:3px}
.rb-field input:focus-visible{outline:3px solid #D7A0A8}
.rb-field input[aria-invalid="true"]{border-color:#B23D4F;background:#FFF4F5}
.rb-field small{font-size:10px;line-height:1.4;color:#7B9099}
.rb-small-print{border-left:3px solid #8CB7A5;background:#F4F9F6;margin-top:24px;padding:10px 14px;font-size:11px;line-height:1.7;color:#59796E}
.rb-actions{display:flex;flex-wrap:wrap;align-items:center;gap:13px}
.rb-input-status{margin:0;color:#AB4251;font-weight:740;font-size:12px;line-height:1.6}
.rb-results{min-width:0;position:sticky;top:18px;background:#173F57;border:1px solid #173F57;border-radius:16px;color:#EFF6F8;padding:25px;box-shadow:0 23px 54px #0B35502B}
.rb-results-head h2{color:#fff;font-size:25px;line-height:1.2;letter-spacing:-.04em;margin:8px 0}
.rb-results-head .eyebrow{color:#F2B6C0}
.rb-results-head p{color:#C6DCE6;font-size:11px;line-height:1.65;margin:0}
.rb-result-primary{margin-top:24px;padding:22px 19px;border:1px solid #7B9CAB80;border-radius:12px;background:linear-gradient(125deg,#2D5D73,#244F68)}
.rb-result-primary small{display:block;font-size:11px;color:#DDEDF3;margin:0 0 10px}
.rb-result-primary strong{font-size:clamp(32px,3.5vw,46px);color:white;font-variant-numeric:tabular-nums;letter-spacing:-.045em;line-height:1.2;display:block}
.rb-result-primary>span{font-size:10px;color:#CCE0E8;line-height:1.6;display:block;margin-top:8px}
.rb-result-cells{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:12px}
.rb-result-cells>div{background:#214D64;border:1px solid #567F92A0;padding:15px 12px;border-radius:9px;min-width:0}
.rb-result-cells span{display:block;font-size:10px;line-height:1.5;color:#C3DDE4}
.rb-result-cells strong{display:block;font-size:18px;letter-spacing:-.018em;line-height:1.4;color:#fff;font-variant-numeric:tabular-nums;margin-top:5px;overflow-wrap:anywhere}
.rb-status-note{color:#C6DFE9;font-size:11px;line-height:1.65;margin:17px 2px 0;padding:11px 13px;background:#1E4A61;border-left:3px solid #8CC3C4;border-radius:7px}
.rb-status-note.rb-status-alert{background:#59394B;color:#FFE7E9;border-color:#F1A4B2}
.rb-breakdown{margin:28px 0;border-top:1px solid #587E90;padding-top:22px}
.rb-breakdown-title{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;margin-bottom:15px}
.rb-breakdown-title strong{color:#fff}.rb-breakdown-title span{font-size:10px;color:#BCD2DA}
.rb-breakdown-bar{display:flex;overflow:hidden;width:100%;height:13px;border-radius:10px;background:#345F72;margin:0 0 17px}
.rb-bar-piece{display:block;height:100%}
.rb-piece-rent{background:#E8A0AC}.rb-piece-electricity{background:#8ED1C0}.rb-piece-heating{background:#C1B7EC}
.rb-piece-internet{background:#8EBFE2}.rb-piece-insurance{background:#E6CB85}.rb-piece-transport{background:#B0D497}
.rb-piece-parking{background:#ECA87D}.rb-piece-other{background:#CBD7DE}
.rb-breakdown-list{display:grid;gap:9px}
.rb-breakdown-item{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px}
.rb-breakdown-item strong{color:#E9F3F6;font-size:11px;white-space:nowrap}
.rb-breakdown-name{display:flex;align-items:center;gap:8px;color:#D0E1E8}
.rb-swatch{height:10px;width:10px;border-radius:3px;flex:0 0 10px}
.rb-empty{color:#BED4DE;font-size:12px}
.rb-compare-result{background:#27556B;border:1px solid #7195A1;border-radius:11px;padding:17px;margin-bottom:18px}
.rb-compare-result .eyebrow{color:#FFCAD2;font-size:10px}
.rb-comp-figures{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:14px 0}
.rb-comp-figures>div{border:1px solid #769DAB70;border-radius:8px;padding:10px}
.rb-comp-figures small{color:#C9E0E7;display:block;font-size:11px}
.rb-comp-figures strong{color:white;font-size:19px;display:block;margin-top:5px}
.rb-compare-result p{font-size:12px;font-weight:800;line-height:1.6;color:white;margin:10px 0}
.rb-compare-result>small{font-size:10px;line-height:1.65;color:#C9E0E7}
.rb-output-actions{display:grid;gap:10px}
.rb-output-actions button{width:100%}
.rb-output-actions .rb-btn-outline{background:transparent;border-color:#8EACB8;color:#EAF3F7}
.rb-output-actions .rb-btn-outline:hover{background:#2C5970;color:white}
.rb-bottom-note{font-size:10px;color:#BBD2DD;line-height:1.7;margin:18px 0 0}
.rb-education{padding:79px 0;background:linear-gradient(140deg,#FFF8F7,#F5FAFB)}
.rb-learn-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin-top:29px}
.rb-learn-grid article{background:#fff;border:1px solid #DFE7EA;border-top:4px solid #B85260;border-radius:12px;padding:25px}
.rb-learn-grid article:nth-child(2){border-top-color:#5D9B92}.rb-learn-grid article:nth-child(3){border-top-color:#7C9EBC}
.rb-learn-grid article>span{color:#B85260;font-weight:850;font-size:12px}
.rb-learn-grid h3{font-size:18px;color:#244B60;margin:11px 0;line-height:1.35}
.rb-learn-grid p{color:#617E8A;font-size:13px;line-height:1.72}
.rb-reference{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#173F57;border-radius:14px;padding:25px;margin-top:26px;color:white}
.rb-reference strong{color:white;font-size:18px}
.rb-reference p{color:#D2E3E9;font-size:12px;max-width:740px;line-height:1.7;margin:8px 0 0}
.rb-reference>a{white-space:nowrap;display:inline-block;background:#BF5A62;color:white;padding:11px 14px;border-radius:8px;text-decoration:none;font-weight:820;font-size:12px}
.rb-disclaimer{color:#6F838E;font-size:11px;margin-top:22px;line-height:1.75}
@media(max-width:1100px){.rb-hero-grid{gap:31px}.rb-main-grid{grid-template-columns:minmax(0,1fr) minmax(300px,.88fr)}.rb-results{padding:19px}}
@media(max-width:860px){.rb-hero-grid{grid-template-columns:1fr}.rb-hero-visual{min-height:240px;transform:none}.rb-workspace-heading{align-items:start;flex-direction:column}.rb-main-grid{grid-template-columns:1fr}.rb-results{position:static}.rb-learn-grid{grid-template-columns:1fr}.rb-hero{padding:54px 0}}
@media(max-width:550px){.rb-hero{padding:49px 0}.rb-hero h1{font-size:clamp(36px,10vw,50px)}.rb-lead{font-size:14px}.rb-hero-visual{padding:19px;min-height:280px}.rb-hero-actions{flex-direction:column;align-items:stretch}.rb-hero-actions .rb-btn{text-align:center}.rb-workspace,.rb-education{padding:51px 0}.rb-input-grid{grid-template-columns:1fr;gap:16px}.rb-household,.rb-scenario{padding:18px}.rb-scenario-title{align-items:start}.rb-scenario-title>div{align-items:start}.rb-scenario-title h3{font-size:17px}.rb-field-heading{margin-bottom:13px}.rb-result-primary strong{font-size:38px}.rb-reference{flex-direction:column;align-items:start}.rb-reference>a{white-space:normal}.rb-hero-points{gap:9px 15px}}
@media(prefers-reduced-motion:reduce){.rb-btn,.rb-breakdown-bar span{transition:none!important}}
@media print{
@page{size:A4;margin:12mm}
body{background:white!important;color:black!important}
header,nav,footer,.rb-hero,.rb-privacy,.rb-workspace-heading,.rb-education,.rb-actions,.rb-output-actions,.topbar,.mainnav,.siteheader{display:none!important}
.rb-page,.rb-workspace{background:#fff!important;margin:0!important;padding:0!important}
.wrap{width:auto!important;max-width:none!important;padding:0!important;margin:0!important}
.rb-main-grid{display:block!important}
.rb-input-col{display:block!important;break-after:page}
.rb-results{position:static!important;background:white!important;color:#222!important;box-shadow:none!important;border:1px solid #ddd!important;padding:15px!important;break-inside:avoid}
.rb-scenario,.rb-household{background:white!important;box-shadow:none!important;border:1px solid #ddd!important;padding:12px!important;margin:0 0 10px!important;break-inside:avoid}
.rb-scenario-title{margin-bottom:8px!important}
.rb-input-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important}
.rb-field input{height:28px!important;font-size:10pt!important}
.rb-field small{font-size:7pt!important}
.rb-field-heading{margin:6px 0!important}
.rb-scenario-title h3{font-size:14pt!important}
.rb-results-head h2,.rb-breakdown-title strong,.rb-breakdown-item strong,.rb-result-cells strong,.rb-result-primary strong,.rb-compare-result p,.rb-comp-figures strong{color:#111!important}
.rb-results-head p,.rb-result-primary small,.rb-result-primary>span,.rb-result-cells span,.rb-breakdown-name,.rb-bottom-note,.rb-status-note{color:#333!important}
.rb-result-primary,.rb-result-cells>div,.rb-compare-result,.rb-status-note{background:white!important;border:1px solid #ddd!important;color:#222!important}
.rb-breakdown-bar{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.rb-breakdown-bar span,.rb-swatch{-webkit-print-color-adjust:exact;print-color-adjust:exact}
.rb-bottom-note{display:block!important}
.rb-scenario[hidden],.rb-compare-result[hidden]{display:none!important}
}

/* Phase 6.1: use accessible button contrast and preserve calculator styling */
.rb-btn-primary{background-color:#AC4B57;border-color:#AC4B57}.rb-btn-primary:hover{background-color:#913C4A}
