/* Rechenklar financial-tool theme. Shared by the directory and all calculators.
   main.css retains structural, interaction, validation and print behavior. */
:root {
  --ink:#182541; --muted:#63708a; --paper:#f6f8fc; --line:#e0e6f0;
  --blue:#2457ed; --green:var(--blue); --mint:#edf2ff; --radius:16px;
  --shadow:0 8px 28px #18254108;
  font-family:"Segoe UI",Arial,Helvetica,sans-serif;
  -webkit-text-size-adjust:100%;
}
h1,h2{font-weight:650;letter-spacing:-.04em;line-height:1.12}
body{background:var(--paper)}
button,input,select{font-variant-numeric:tabular-nums}
a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.wrap{width:min(1200px,calc(100% - 80px))}
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.site-header{height:76px;background:#fff;border-bottom-color:var(--line)}
.logo{font-size:24px;line-height:1;letter-spacing:-1px;gap:10px}
.logo-mark{width:39px;height:40px;border-radius:10px;background:var(--blue);box-shadow:0 3px 8px #2457ed18}
.logo-mark svg{width:26px;height:26px}
.logo small{font-size:10px;letter-spacing:.18em;margin-top:7px}
.nav{font-weight:600}
.nav a:hover{color:var(--green)}
.nav .nav-all{border-color:#d9e3ff;border-radius:10px;min-height:44px;background:var(--mint);gap:18px;color:#204bc5}
.nav .nav-all:hover{background:#e2eaff;border-color:#c3d2ff}
.nav-all svg{width:18px}
.eyebrow,.section-tag{color:var(--green);font-size:11px;letter-spacing:.12em;font-weight:700}
.eyebrow{line-height:1.7}
.dot{background:var(--green);box-shadow:0 0 0 5px #e7edff;flex-shrink:0}
.section-tag{margin-bottom:14px}

/* Homepage */
.hero{grid-template-columns:minmax(0,1.2fr) minmax(0,.8fr);gap:72px;padding:76px 0 66px}
.hero h1{font-size:clamp(44px,4.8vw,68px);letter-spacing:-.055em;margin-bottom:24px}
.hero h1 em{font-style:normal;color:var(--green);font-family:inherit;letter-spacing:-.055em}
.hero p{font-size:17px;margin-bottom:26px}
.hero-search{border-color:#c2cde2;padding:7px;gap:12px;box-shadow:0 6px 22px #18254106}
.hero-search>svg{width:20px;margin-left:10px}
.hero-search input{font-size:16px;padding:13px 0;width:100%}
.hero-search input::placeholder{color:#63708a;opacity:1}
.hero-search button{min-height:48px;padding:15px 18px;font-size:13px;white-space:nowrap}
.quick-search{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;font-size:12px;line-height:1.7;margin-top:16px}
.quick-search a{margin:0;text-decoration-color:#abbcdf}
.hero-art{padding:22px 0;isolation:isolate}
.hero-art::before{content:'';position:absolute;inset:0 -18px;background:#e9efff;border-radius:16px;z-index:-1}
.example-card{transform:none;max-width:none;padding:28px;border-radius:16px;border-color:#d9e2f4;box-shadow:0 18px 42px #18254110}
.example-top{font-size:16px;font-weight:650;gap:16px;padding-bottom:22px}
.example-top span{padding:10px;border-radius:10px;background:var(--mint);color:var(--green)}
.example-inputs{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding-top:24px}
.example-inputs>div{padding:13px 15px;border:1px solid var(--line);border-radius:9px;background:#f7f9fd}
.example-inputs small{font-size:11px;text-transform:none;letter-spacing:0;margin-bottom:8px}
.example-inputs strong{font-size:22px;letter-spacing:-.04em;font-weight:600}
.example-result{background:#142b59;padding:23px;margin-top:20px;border-radius:12px}
.example-result small{font-size:12px;line-height:1.5;color:#d8e4ff;margin-bottom:10px}
.example-result strong{font-size:44px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.example-result span{color:#c7d8f7;opacity:1;margin-top:9px}
.example-link{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:21px;font-size:13px;font-weight:600;text-decoration:none;min-height:44px}
.example-link svg{width:17px}
.hero p.art-caption{font-size:11px;text-align:center;margin:16px 0 0}
.trust-strip{gap:28px;padding:27px 0}
.trust-item{gap:14px}
.trust-item svg{width:23px;height:23px}
.trust-item strong{font-size:13px;line-height:1.6}
.trust-item span{font-size:12px;line-height:1.6;margin-top:3px}
.section{padding:68px 0}
.section-heading{gap:28px}
.card-grid{gap:20px}
.calc-card{padding:28px;border-radius:16px;box-shadow:0 2px 4px #18254102}
.calc-card:hover{border-color:#8ca8f5;box-shadow:0 8px 24px #2457ed0b;transform:translateY(-2px)}
.card-top{gap:16px;margin-bottom:27px}
.icon-block{width:44px;height:44px;border-radius:12px}
.card-type{font-size:11px;text-transform:none;letter-spacing:0;text-align:right;line-height:1.5}
.calc-card h3{font-size:21px;font-weight:650;margin-bottom:12px}
.calc-card p{font-size:14px;line-height:1.75;margin-bottom:26px}
.card-bottom{gap:16px;font-size:13px;padding-top:18px;border-top-color:#e8edf6}
.card-bottom svg{width:18px}
.all-section{scroll-margin-top:24px}
.catalog-toolbar{gap:10px;margin:26px 0 20px}
.filter{background:#fff;border-color:var(--line);border-radius:9px;padding:12px 17px;font-size:13px;min-height:44px;font-weight:550}
.catalog-status{font-size:13px;margin-bottom:22px}
.catalog-list{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:40px}
.catalog-item{padding:21px 0}
.catalog-item span:first-child{min-width:0;overflow-wrap:anywhere;font-size:16px;font-weight:600}
.catalog-item small{font-size:12px;margin-top:6px}
.catalog-item>svg{width:28px;height:28px;padding:5px;border-radius:50%;background:#edf2ff}
.catalog-item:hover{color:var(--green)}
.catalog-item:hover>svg{background:#dae5ff;transform:none}
.no-results{line-height:1.7}
.method-banner{gap:70px;margin-bottom:72px;padding:48px;border-radius:16px;background:#edf2ff}
.method-banner p{font-size:15px}
.method-banner a{display:inline-flex;align-items:center;gap:14px;font-size:14px;min-height:44px}
.method-points{align-content:center;gap:26px}
.method-point{gap:18px}
.point-number{font-size:12px;min-width:34px;height:34px;border-radius:10px;background:#fff}
.method-point strong{font-size:15px}
.method-point p{margin-top:7px;font-size:13px;line-height:1.7}

/* Calculator: a quiet input surface and a clearly separated answer. */
.breadcrumbs{font-size:12px;line-height:1.8;padding-top:26px}
.breadcrumbs a:hover{text-decoration:underline}
.breadcrumbs svg{width:12px;height:12px}
.tool-header{max-width:950px;padding:32px 0 25px}
.tool-header .eyebrow{margin-bottom:13px}
.tool-header .eyebrow svg{width:17px;height:17px}
.tool-header h1{font-size:clamp(32px,3.6vw,48px);margin-bottom:17px}
.tool-header p{font-size:16px;max-width:800px;margin-bottom:20px}
.meta-row{align-items:center;gap:12px 23px;font-size:12px;line-height:1.7}
.meta-row svg{width:15px;height:15px}
.tool-nav{display:flex;flex-wrap:wrap;gap:4px 26px;border-bottom:1px solid var(--line);margin-bottom:30px}
.tool-nav a{display:flex;align-items:center;gap:8px;min-height:48px;font-size:13px;font-weight:600;text-decoration:none;padding:12px 0;border-bottom:2px solid transparent}
.tool-nav a:first-child{color:var(--green);border-bottom-color:var(--green)}
.tool-nav a:hover{color:var(--green);border-bottom-color:#a5baf7}
.tool-nav svg{width:16px;height:16px}
.tool-layout{gap:28px;scroll-margin-top:20px}
.scope-note{padding:18px 21px;background:#edf2ff;border:1px solid #d5e0ff;border-radius:12px;color:#50617f;font-size:13px;line-height:1.8}
.scope-note strong{font-weight:650;margin-bottom:5px}
.form-card{padding:30px;border-color:#dde4f0;box-shadow:0 4px 18px #18254105}
.form-top{gap:18px;margin:-2px 0 26px;padding-bottom:23px;border-bottom:1px solid var(--line)}
.form-top h2{font-size:23px;letter-spacing:-.03em}
.form-step{font-size:11px;text-transform:none;letter-spacing:0;line-height:1.6;text-align:right;max-width:130px}
.fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 22px}
.field label{font-size:13px;line-height:1.6;margin-bottom:9px}
.input-wrap input,.input-wrap select{display:block;min-height:50px;height:50px;padding:12px 13px;border-color:#8392ad;border-radius:9px;background:#fbfcff;font-size:16px;transition:border-color .15s,box-shadow .15s}
.input-wrap input:hover,.input-wrap select:hover{border-color:#637faa}
.input-wrap input:focus,.input-wrap select:focus{border-color:var(--green);background:#fff;box-shadow:0 0 0 3px #2457ed16}
.field input[aria-invalid=true],.field select[aria-invalid=true]{border-color:#b13e25;background:#fff6ef}
.field input[aria-invalid=true]:focus,.field select[aria-invalid=true]:focus{box-shadow:0 0 0 3px #b13e2514}
.input-wrap:has(.input-unit) input{padding-right:60px}
.input-unit{right:14px;top:15px;font-size:13px}
.field-help,.select-choice{font-size:12px;line-height:1.7;margin:8px 0 0;overflow-wrap:anywhere}
.select-choice{padding-left:9px;border-left:2px solid #d4dfff}
.form-actions{padding-top:24px;margin-top:28px;border-top:1px solid var(--line);gap:12px}
.primary{min-height:48px;padding:14px 22px;font-size:14px;line-height:1.6;gap:20px;box-shadow:0 3px 6px #2457ed18;transition:background .15s,box-shadow .15s}
.primary:hover,.hero-search button:hover{background:#1746cf}
.text-button{font-size:12px;min-height:44px}
.privacy-note{font-size:11px;line-height:1.7;gap:8px;align-items:start}
.privacy-note svg{width:14px;height:14px;margin-top:2px}
.error-box{padding:14px 16px;font-size:13px;line-height:1.7}
.result-panel{background:#fff;border-color:#d6e0f1;box-shadow:var(--shadow)}
.result-head{padding:28px 28px 30px;background:linear-gradient(125deg,#192f61,#11254c);border-bottom:3px solid #4f7afa}
.result-status{gap:14px;margin-bottom:24px;padding-bottom:17px;border-bottom:1px solid #ffffff26;font-size:11px;line-height:1.7;letter-spacing:.06em;color:#c2d6ff}
.result-status svg{width:18px;height:18px}
.result-label{color:#d8e4ff;font-size:13px;line-height:1.7;margin-bottom:9px}
.result-value{font-size:clamp(32px,3.6vw,48px);font-weight:550;line-height:1.18;font-variant-numeric:tabular-nums}
.result-value.long{font-size:27px;letter-spacing:-.025em;line-height:1.4}
.result-body{padding:25px 28px 28px}
.result-body>p{font-size:14px;color:var(--muted)}
.result-metric{gap:20px;padding:13px 0;border-bottom-color:#e7ecf4;font-size:13px;line-height:1.7}
.result-metric>span{color:var(--muted)}
.result-metric strong{flex-shrink:0;max-width:52%;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.result-steps{padding-left:19px;margin-top:23px;color:#536580;font-size:12px;line-height:1.85}
.result-steps li+li{margin-top:9px}
.result-steps li::marker{color:var(--green);font-weight:650}
.result-warning{padding:13px 15px;margin-top:17px;color:#725829;background:#faf6e9;border-color:#e7ddba;font-size:12px;line-height:1.8}
.result-actions{margin-top:22px;padding-top:20px;border-top:1px solid var(--line)}
.result-actions button{gap:7px;border-color:#d8e1f0;background:#f6f8fd;text-decoration:none;line-height:1.5;min-height:44px}
.result-actions button:hover{background:#eaf0ff;border-color:#a8bcef}
.result-actions svg{width:15px;height:15px}
.compare-box{padding:15px;margin-top:20px;border-color:#a5bbed;background:#f0f4ff;font-size:13px;line-height:1.8}
.table-scroll{margin-top:22px;border:1px solid var(--line);border-radius:9px}
.table-scroll:focus-visible{outline:3px solid #2457ed;outline-offset:4px}
.result-table{font-size:12px;font-variant-numeric:tabular-nums}
.result-table th{background:#edf2fc}
.result-table th,.result-table td{padding:12px;border-bottom-color:var(--line)}
.result-table tbody tr:nth-child(even){background:#f7f9fd}

/* Supporting content and footer */
.tool-content{gap:48px;margin:64px 0 70px}
.content-section{padding:34px 0;scroll-margin-top:24px}
.content-section h2{font-size:29px;margin-bottom:26px}
.content-section h3{font-size:17px;margin:25px 0 11px}
.content-section p,.content-section li{font-size:14px}
.example-box{border-radius:14px;padding:25px;margin-bottom:18px}
.example-box h3{margin-top:0}
.example-values{font-size:12px;line-height:1.6;margin-bottom:17px}
.example-values span{background:#edf2ff}
.example-box button{font-size:12px;padding:11px 15px;min-height:44px}
.faq summary{padding:20px 32px 20px 0;font-size:14px}
.faq summary:after{top:20px;font-size:20px}
.faq p{margin-bottom:24px}
.source-list li{margin-bottom:17px}
.source-list small{font-size:12px;margin-top:4px}
.related-sidebar{background:#fff;border-radius:16px;border-color:#dce5f6;box-shadow:0 4px 18px #18254104}
.related-sidebar h2{font-size:23px;margin-bottom:14px}
.related-sidebar>p{font-size:13px}
.related-link{font-size:14px;font-weight:550;line-height:1.7;border-color:#d4def0}
.related-link:hover{color:var(--green)}
.related-link:last-child{padding-bottom:0}
.category-header{max-width:800px;padding-bottom:0}
.category-header h1{font-size:46px;margin-bottom:22px}
.category-header p{font-size:17px}
.category-list{padding-top:38px}
.prose{max-width:800px;padding:48px 0 76px}
.prose h2{font-size:27px;margin-top:38px}
.prose p,.prose li{font-size:15px;overflow-wrap:anywhere}
.version-note{font-size:13px;line-height:1.8;background:#faf4df;border-color:#dccc9b;padding:18px}
.toast{width:max-content;max-width:calc(100% - 32px);font-size:13px;line-height:1.6;text-align:center}
.site-footer{padding:48px 0 27px;background:#101d38;color:#f3f6ff}
.site-footer a:focus-visible{outline-color:#9bb7ff}
.footer-top{gap:40px;padding-bottom:38px}
.site-footer .logo-mark{background:#2457ed}
.site-footer .logo small{color:#b9c9eb}
.footer-top p{max-width:400px;margin:22px 0 0;color:#b9c6df;font-size:13px}
.footer-links{flex-wrap:wrap;font-size:13px}
.footer-links a{display:flex;align-items:center;min-height:44px}
.footer-links a:hover{text-decoration:underline}
.footer-bottom{border-top-color:#30405f;padding-top:24px;color:#b9c6df;font-size:11px;line-height:1.7}

@media(min-width:1450px){.hero{padding:85px 0}}
@media(max-width:1050px){
  .wrap{width:calc(100% - 48px)}
  .hero{gap:36px;padding:56px 0}.hero h1{font-size:52px}
  .hero-art::before{inset-inline:-8px}.example-card{padding:21px}
  .example-inputs{gap:9px}.example-inputs>div{padding:12px}
  .hero-search{flex-wrap:wrap}.hero-search input{flex-basis:calc(100% - 50px)}.hero-search button{width:100%}
  .card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .trust-strip{gap:22px}.trust-item{align-items:start}.trust-item svg{margin-top:4px}
  .tool-layout,.tool-content{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:24px}
  .fields{grid-template-columns:minmax(0,1fr)}
  .form-card,.result-head,.result-body{padding:24px}.result-metric{gap:14px}
  .method-banner{padding:36px;gap:38px}
}
/* Keep this breakpoint aligned with the result scroll behavior in app.mjs. */
@media(max-width:720px){
  .wrap{width:calc(100% - 36px)}.site-header{height:72px}.header-inner{gap:14px}
  .logo{font-size:23px;gap:9px}.logo-mark{width:36px;height:38px;border-radius:10px}.logo-mark svg{width:23px;height:23px}.logo small{font-size:8px;letter-spacing:.16em;margin-top:6px}
  .nav .nav-all{font-size:12px;padding:10px 12px;gap:8px}.nav-all svg{width:16px;height:16px}
  .hero{display:block;padding:42px 0 30px}.eyebrow{font-size:10px}
  .hero h1{font-size:clamp(39px,9.8vw,58px);line-height:1.12;margin-bottom:22px}.hero p{font-size:16px;margin-bottom:25px}
  .hero-search{display:grid;grid-template-columns:26px minmax(0,1fr);gap:4px 9px;padding:7px}
  .hero-search>svg{margin-left:7px}.hero-search input{padding:13px 0;font-size:16px}.hero-search button{grid-column:1/-1;font-size:14px}
  .quick-search{font-size:12px;gap:4px 12px}.quick-search a{padding:5px 0;margin:0}
  .hero-art{display:none}
  .trust-strip{grid-template-columns:minmax(0,1fr);gap:18px;padding:24px 0}.trust-item{align-items:center;gap:14px}.trust-item:last-child{display:flex}
  .trust-item svg{width:22px;height:22px;margin:0}.trust-item strong{font-size:13px}.trust-item span{font-size:12px;margin-top:1px}
  .section{padding:43px 0}.section-heading{gap:14px;margin-bottom:26px}.section-heading h2{font-size:30px}.section-heading p{font-size:14px}.section-tag{font-size:10px;margin-bottom:12px}
  .card-grid{gap:16px}.calc-card{padding:23px;min-height:0}.card-top{margin-bottom:22px;align-items:center}.card-type{display:block;font-size:11px}.icon-block{width:44px;height:44px}.calc-card h3{font-size:22px}.calc-card p{font-size:14px}.card-bottom{font-size:13px}
  .catalog-list{grid-template-columns:minmax(0,1fr)}.catalog-toolbar{gap:8px}.filter{font-size:12px;padding:11px 13px}.catalog-item{padding:19px 0}.catalog-item span:first-child{font-size:15px}
  .method-banner{display:block;padding:27px;margin-bottom:44px}.method-banner h2{font-size:31px}.method-banner>div:first-child{margin-bottom:30px}.method-points{gap:25px}
  .breadcrumbs{font-size:11px;padding-top:21px;gap:6px}.tool-header{padding:25px 0 17px}.tool-header .eyebrow{font-size:10px;margin-bottom:13px}
  .tool-header h1{font-size:clamp(29px,8vw,39px);line-height:1.17;margin-bottom:16px}.tool-header p{font-size:15px;margin-bottom:18px}.meta-row{font-size:11px;gap:9px 15px}
  .tool-nav{gap:0 22px;margin-bottom:24px}.tool-nav a{font-size:12px;min-height:44px}
  .tool-layout,.tool-content{grid-template-columns:minmax(0,1fr);gap:24px}.scope-note{padding:17px 19px;font-size:12px}
  .form-card{padding:23px;border-radius:16px}.form-top{gap:15px;margin-bottom:23px;padding-bottom:20px}.form-top h2{font-size:22px}.form-step{font-size:11px;max-width:103px}
  .fields{grid-template-columns:minmax(0,1fr);gap:24px}.field label{font-size:14px}.input-wrap input,.input-wrap select{min-height:52px;height:52px;font-size:16px}.input-unit{top:16px}.field-help,.select-choice{font-size:12px}
  .form-actions{display:grid;grid-template-columns:1fr;gap:5px;margin-top:26px}.form-actions .primary{width:100%;min-height:52px}.form-actions .text-button{justify-self:center}.privacy-note{margin-top:13px;font-size:11px}
  .result-panel{position:static;border-radius:16px}.result-head,.result-body{padding:24px}.result-value{font-size:clamp(31px,10vw,43px)}.result-value.long{font-size:25px}.result-metric{gap:16px;font-size:13px}.result-warning,.result-steps{font-size:12px;line-height:1.8}
  .tool-content{margin:44px 0}.content-section{padding:30px 0}.content-section h2{font-size:27px}.content-section p,.content-section li{font-size:14px}.example-box{padding:21px}.example-box .primary{width:100%}.faq summary{font-size:14px}.related-sidebar{padding:25px;margin:10px 0 0}
  .category-header{padding-top:33px}.category-header h1,.prose h1{font-size:35px}.category-header p{font-size:16px}.prose{padding:35px 0 55px}.prose h2{font-size:25px}
  .site-footer{padding:36px 0 25px}.footer-top{gap:19px;padding-bottom:27px}.footer-top p{font-size:13px}.footer-links{gap:24px;padding-top:0;font-size:13px}.footer-bottom{gap:11px;font-size:11px}
}
@media(max-width:540px){.card-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:360px){
  .wrap{width:calc(100% - 28px)}.logo{font-size:21px;gap:8px}.logo-mark{width:32px;height:36px}.nav .nav-all{padding-inline:10px;gap:6px;font-size:11px}
  .form-card,.result-head,.result-body{padding:20px}.tool-nav{gap:0 18px}.tool-nav a{font-size:11px}.hero h1{font-size:38px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media print{
  .tool-nav,.toast{display:none!important}.wrap{width:100%}.tool-header h1{font-size:26px}
  .tool-layout,.tool-content{display:block}.result-panel,.form-card{box-shadow:none}.result-head{background:#eee;color:#000;border-bottom-color:#777}
  .result-label,.result-status{color:#222}.result-value{font-size:30px}.fields{grid-template-columns:repeat(3,minmax(0,1fr))}
  .result-body{padding:15px}.scope-note{margin:15px 0}
}
