:root {
  --ink: #10231c;
  --muted: #607068;
  --green-950: #0c2e22;
  --green-800: #174c39;
  --green-600: #2f7659;
  --green-100: #dcebe4;
  --mint: #eff7f2;
  --lime: #d8f06a;
  --paper: #fbfcfa;
  --line: #d9e1dc;
  --orange: #b95826;
  --shadow: 0 16px 45px rgba(16, 35, 28, .09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.site-header { position: relative; min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1200px; margin: auto; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px 10px 10px 2px; background: var(--green-950); color: var(--lime); }
.brand small { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; letter-spacing: 0; margin-top: 2px; }
nav { display: flex; gap: 24px; }
nav a { text-decoration: none; color: var(--muted); font-weight: 650; font-size: .9rem; }
nav a:hover { color: var(--ink); }
.main-nav { align-items: center; gap: 22px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-menu { position: relative; }
.nav-menu > summary { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); font-weight: 700; font-size: .9rem; cursor: pointer; list-style: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary:hover, .nav-menu[open] > summary { border-color: var(--green-600); }
.nav-menu > summary:focus-visible, .nav-panel a:focus-visible, .nav-links a:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }
/* Offenes Menü: unsichtbare Fläche über der Seite, ein Tipp daneben schließt es (ohne JavaScript). */
.nav-menu[open] > summary::before { content: ""; position: fixed; inset: 0; z-index: 40; cursor: default; }
.nav-icon, .nav-icon::before, .nav-icon::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, background-color .2s; }
.nav-icon { position: relative; }
.nav-icon::before, .nav-icon::after { content: ""; position: absolute; left: 0; }
.nav-icon::before { top: -5px; }
.nav-icon::after { top: 5px; }
.nav-menu[open] .nav-icon { background-color: transparent; }
.nav-menu[open] .nav-icon::before { transform: translateY(5px) rotate(45deg); }
.nav-menu[open] .nav-icon::after { transform: translateY(-5px) rotate(-45deg); }
.nav-label-short { display: none; }
.nav-panel { position: absolute; top: calc(100% + 10px); right: 0; z-index: 50; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 36px; width: 500px; padding: 22px 26px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
.nav-heading { margin: 0 0 4px; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.nav-panel ul { margin: 0; padding: 0; list-style: none; }
.nav-panel a { display: block; padding: 6px 0; color: var(--ink); font-size: .95rem; }
.nav-panel a:hover { color: var(--green-600); }
.nav-panel a[aria-current="page"] { color: var(--green-600); }
.nav-panel a[aria-current="page"]::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.hero { max-width: 900px; padding: 84px 24px 64px; margin: auto; text-align: center; }
.eyebrow { display: block; color: var(--green-600); text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; font-weight: 800; margin-bottom: 14px; }
h1 { max-width: 820px; margin: 0 auto 22px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.7rem, 7vw, 5.4rem); line-height: .98; letter-spacing: -.055em; font-weight: 500; }
h1 em { color: var(--green-600); font-weight: inherit; }
.hero > p { max-width: 690px; margin: auto; color: var(--muted); font-size: 1.2rem; line-height: 1.65; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.04; letter-spacing: -.045em; }
.hero > p.providers { margin-top: 16px; font-size: .9rem; line-height: 1.55; }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; margin: 28px 0; color: var(--green-800); font-size: .92rem; font-weight: 650; }
.primary-button { display: inline-block; border-radius: 10px; padding: 14px 22px; background: var(--green-950); color: white; text-decoration: none; font-weight: 750; box-shadow: 0 6px 0 #061a13; }
.primary-button:hover { transform: translateY(1px); box-shadow: 0 5px 0 #061a13; }
.notice { max-width: 1152px; margin: 0 auto 32px; padding: 16px 20px; background: #fff8dc; border: 1px solid #e9d791; border-radius: 12px; color: #5e4b16; line-height: 1.5; }
.notice strong { margin-right: 6px; }
.tool-overview, .calculator, .offer-section, .scenario-section, .knowledge, .method { max-width: 1200px; margin: auto; padding: 76px 24px; }
.tool-overview { padding-top: 38px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-grid a { min-height: 210px; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: white; text-decoration: none; box-shadow: 0 8px 30px rgba(16, 35, 28, .04); transition: transform .2s, border-color .2s, box-shadow .2s; }
.tool-grid a:hover { transform: translateY(-3px); border-color: #adc7bb; box-shadow: var(--shadow); }
.tool-grid span { color: var(--green-600); text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 850; }
.tool-grid h3 { margin: 28px 0 9px; font: 500 1.55rem Georgia, serif; }
.tool-grid p { margin: 0; color: var(--muted); line-height: 1.6; font-size: .92rem; }
.calculator { padding-top: 40px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 500; letter-spacing: -.035em; }
.text-button { border: 0; border-bottom: 1px solid currentColor; background: none; padding: 3px 0; color: var(--green-600); cursor: pointer; }
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr); gap: 28px; align-items: start; }
#calculator-form { min-width: 0; }
.form-card, .assumptions-panel { background: white; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; overflow: hidden; }
.form-card-title { width: 100%; border: 0; background: white; display: flex; justify-content: space-between; align-items: center; padding: 20px; text-align: left; cursor: pointer; color: var(--ink); }
.form-card-title > span:first-child { display: flex; align-items: center; gap: 13px; }
.form-card-title b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--green-800); background: var(--green-100); font-size: .9rem; }
.form-card-title span span { font-weight: 800; }
.form-card-title small { display: block; color: var(--muted); font-weight: 500; margin-top: 3px; font-size: .8rem; }
.chevron { font-size: 1.35rem; transition: transform .2s; }
.form-card.open .chevron { transform: rotate(180deg); }
.form-card-body { display: none; grid-template-columns: 1fr 1fr; gap: 18px; padding: 4px 20px 22px; }
.form-card.open .form-card-body, .assumptions-panel[open] .form-card-body { display: grid; }
label { min-width: 0; color: #3f5048; font-size: .86rem; font-weight: 700; }
label.wide, .wide { grid-column: 1 / -1; }
.optional { color: var(--muted); font-weight: 500; }
input:not([type="checkbox"]), select { width: 100%; height: 44px; display: block; margin-top: 7px; padding: 0 12px; border: 1px solid #bdc8c2; border-radius: 8px; background: #fff; color: var(--ink); outline: none; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus { border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(47, 118, 89, .13); }
.input-suffix { position: relative; display: block; }
.input-suffix input { padding-right: 52px; }
.input-suffix i { position: absolute; right: 11px; top: 21px; color: var(--muted); font-style: normal; font-size: .78rem; font-weight: 600; }
.hint { display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 1px solid #9eaaa4; border-radius: 50%; color: var(--muted); background: white; font-size: .7rem; font-weight: 700; cursor: pointer; vertical-align: 1px; position: relative; }
.hint::before { content: ''; position: absolute; inset: -12px; }
.hint[aria-expanded="true"] { color: white; background: var(--green-600); border-color: var(--green-600); }
.hint:focus-visible { outline: 2px solid var(--green-600); outline-offset: 2px; }
label, .uncertainty > span { position: relative; }
.hint-bubble { position: absolute; z-index: 6; left: 0; right: 0; top: calc(100% + 6px); max-width: 340px; padding: 10px 12px; border-radius: 8px; background: var(--ink); color: white; font-size: .8rem; font-weight: 500; line-height: 1.45; text-transform: none; letter-spacing: 0; box-shadow: 0 10px 28px rgba(16, 35, 28, .22); }
.uncertainty .hint-bubble { background: white; color: var(--ink); }
.check-label { display: flex; gap: 10px; align-items: center; min-height: 44px; padding-top: 17px; cursor: pointer; }
.check-label input { width: 19px; height: 19px; accent-color: var(--green-600); }
.toggle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.assumptions-panel summary { padding: 18px 20px; font-weight: 800; cursor: pointer; color: var(--green-800); }
.assumptions-panel > p { padding: 0 20px; color: var(--muted); line-height: 1.5; font-size: .9rem; }
.assumptions-grid { padding-top: 8px; }
.error-box { color: #7d271a; background: #fff0ed; border: 1px solid #e8b6ae; border-radius: 10px; padding: 14px 18px; line-height: 1.55; }
.results { position: sticky; top: 18px; background: var(--green-950); color: white; border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.results-topline { display: flex; justify-content: space-between; font-size: .77rem; color: #b9d0c6; text-transform: uppercase; letter-spacing: .08em; }
.main-result { padding: 30px 0 26px; border-bottom: 1px solid rgba(255,255,255,.15); }
.main-result small { display: block; color: #b9d0c6; }
.main-result strong { display: inline-block; margin: 7px 8px 5px 0; font-family: Georgia, serif; font-size: 3.2rem; font-weight: 500; letter-spacing: -.04em; }
.main-result > span { color: #b9d0c6; }
.main-result p { margin: 0; color: #92ad9f; font-size: .8rem; }
.comparison-bars { padding: 24px 0 12px; }
.comparison-bars > div { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-bottom: 16px; font-size: .84rem; }
.comparison-bars b { color: var(--lime); }
.comparison-bars i { grid-column: 1 / -1; height: 6px; background: rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; }
.comparison-bars u { display: block; height: 100%; width: 30%; background: var(--lime); border-radius: 6px; transition: width .35s; }
.comparison-bars > div:last-child u { background: #77b59a; }
.bars-title { margin: 0 0 12px; color: #b9d0c6; font-size: .74rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.warning-box { margin-top: 16px; padding: 13px 15px; border-radius: 9px; background: #fff3d6; color: #5e4310; font-size: .84rem; line-height: 1.5; }
.warning-box div + div { margin-top: 8px; }
.year-note { margin-top: 12px; color: #b9d0c6; font-size: .76rem; line-height: 1.5; }
.verdict { padding: 13px 15px; border-radius: 9px; background: rgba(216,240,106,.12); color: #eef8bd; font-size: .88rem; line-height: 1.45; margin-bottom: 16px; }
.key-values { margin: 0; }
.key-values div { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.11); font-size: .82rem; }
.key-values dt { color: #b9d0c6; }
.key-values dd { margin: 0; font-weight: 750; text-align: right; }
.uncertainty { margin-top: 18px; padding: 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; }
.uncertainty span { display: block; color: #b9d0c6; font-size: .76rem; margin-bottom: 5px; }
.uncertainty .hint { margin-left: 3px; background: transparent; color: white; border-color: #718b80; }
.result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.result-actions button { border: 1px solid rgba(255,255,255,.23); border-radius: 7px; padding: 9px; background: rgba(255,255,255,.07); color: white; cursor: pointer; font-size: .78rem; }
.result-actions button:hover { background: rgba(255,255,255,.14); }
.result-actions .wide-action { grid-column: 1 / -1; background: transparent; }
.local-note { margin: 15px 0 0; color: #92ad9f; font-size: .72rem; text-align: center; }
.local-note a { color: #cfe3d9; }
.offer-section { max-width: none; background: var(--mint); padding-left: max(24px, calc((100vw - 1152px)/2)); padding-right: max(24px, calc((100vw - 1152px)/2)); }
.offer-grid { display: grid; grid-template-columns: .7fr 1fr 1fr; gap: 28px; align-items: center; }
.offer-score { min-height: 210px; padding: 28px; border-radius: 14px; background: white; border: 1px solid var(--line); }
.offer-score span { display: inline-block; padding: 5px 9px; border-radius: 5px; color: var(--green-950); background: var(--lime); font-size: .75rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.offer-score strong { display: block; font: 500 2.4rem Georgia, serif; margin: 25px 0 7px; }
.offer-score small { color: var(--muted); line-height: 1.5; }
.offer-details { margin: 0; }
.offer-details div { border-bottom: 1px solid var(--line); padding: 14px 0; }
.offer-details dt { color: var(--muted); font-size: .78rem; }
.offer-details dd { margin: 5px 0 0; font-weight: 750; line-height: 1.35; }
.offer-grid > p { color: var(--muted); line-height: 1.7; }
.scenario-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.scenario-card { min-height: 185px; padding: 19px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.scenario-card.regular { background: var(--green-950); color: white; border-color: var(--green-950); }
.scenario-card span { display: block; min-height: 40px; color: var(--muted); font-size: .77rem; font-weight: 750; line-height: 1.35; }
.scenario-card.regular span, .scenario-card.regular p { color: #b9d0c6; }
.scenario-card strong { display: block; font: 500 1.75rem Georgia, serif; margin: 15px 0 10px; }
.scenario-card p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.scenario-card em { display: inline-block; margin-top: 12px; padding: 3px 8px; border-radius: 5px; background: var(--green-100); color: var(--green-800); font-size: .68rem; font-style: normal; font-weight: 750; }
.scenario-card em.no-bike { background: #f1ece2; color: #6b5a33; }
.scenario-card.regular em { background: rgba(216, 240, 106, .18); color: var(--lime); }
.scenario-footnote { margin: 18px 0 0; color: var(--muted); font-size: .82rem; }
.payslip-section { max-width: 900px; margin: auto; padding: 76px 24px 40px; }
.section-intro { color: var(--muted); line-height: 1.6; margin: -12px 0 6px; }
.section-intro a { color: var(--green-600); }
.data-table.payslip-table { min-width: 340px; }
.payslip-table tr.sum th, .payslip-table tr.sum td { border-top: 2px solid var(--line); font-weight: 700; }
.payslip-table tr.total th, .payslip-table tr.total td { background: var(--mint); font-weight: 800; }
.knowledge { background: white; max-width: none; padding-left: max(24px, calc((100vw - 1152px)/2)); padding-right: max(24px, calc((100vw - 1152px)/2)); }
.guide-list { max-width: 850px; margin: auto; }
.guide-list details { border-top: 1px solid var(--line); }
.guide-list details:last-child { border-bottom: 1px solid var(--line); }
.guide-list summary { position: relative; padding: 22px 42px 22px 0; font: 500 1.35rem Georgia, serif; cursor: pointer; }
.guide-list summary::after { content: '+'; position: absolute; right: 10px; color: var(--green-600); }
.guide-list details[open] summary::after { content: '−'; }
.guide-list p { max-width: 730px; margin: -4px 0 22px; color: var(--muted); line-height: 1.7; }
.guide-list a { color: var(--green-600); font-weight: 650; }
.method { padding-bottom: 90px; }
.formula-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.formula-grid article { position: relative; padding: 25px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.formula-grid article > b { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--green-100); color: var(--green-800); }
.formula-grid h3 { margin: 18px 0 8px; }
.formula-grid p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .9rem; }
.method-details { margin-top: 22px; padding: 18px 22px; border-radius: 10px; background: #f2f5f3; }
.method-details summary { font-weight: 800; cursor: pointer; }
.method-details li { margin: 10px 0; color: var(--muted); line-height: 1.55; }
.data-status { color: var(--muted); font-size: .82rem; line-height: 1.6; }
footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 25px max(24px, calc((100vw - 1152px)/2)); background: var(--green-950); color: #b9d0c6; font-size: .8rem; }
footer nav { gap: 22px; flex-wrap: wrap; }
.footer-guides { margin-left: auto; }
footer nav a { color: #dcebe4; font-size: .8rem; font-weight: 600; }
footer nav a:hover { color: white; }
.legal { max-width: 780px; margin: auto; padding: 56px 24px 88px; line-height: 1.7; }
.legal h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 28px; text-align: left; }
.legal h2 { font-size: 1.45rem; letter-spacing: -.02em; margin: 40px 0 12px; }
.legal p, .legal li { color: #34453d; }
.legal ul { padding-left: 20px; }
.legal li { margin: 6px 0; }
.legal a:not(.primary-button) { color: var(--green-600); }
.legal-date { color: var(--muted) !important; margin-top: -14px; }
.legal-caps { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--mint); }
.article { max-width: 860px; margin: auto; padding: 56px 24px 88px; line-height: 1.7; }
.article h1 { max-width: none; margin: 0 0 22px; text-align: left; font-size: clamp(2.1rem, 5vw, 3.3rem); line-height: 1.06; }
.article h2 { font-size: clamp(1.55rem, 3.1vw, 2.05rem); letter-spacing: -.025em; margin: 56px 0 14px; }
.article h3 { font: 500 1.28rem Georgia, serif; margin: 34px 0 8px; }
.article p, .article li { color: #34453d; }
.article .lead { font-size: 1.14rem; color: var(--ink); }
.article a:not(.primary-button) { color: var(--green-600); }
.article-meta { color: var(--muted) !important; font-size: .86rem; margin: -6px 0 26px; }
.answer-box { padding: 20px 22px; border-radius: 14px; background: var(--mint); border: 1px solid var(--green-100); }
.answer-box ul { margin: 0; padding-left: 20px; }
.answer-box li { margin: 8px 0; }
.table-wrap { overflow-x: auto; margin: 18px 0 8px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.data-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .92rem; }
.data-table th, .data-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { background: #f2f5f3; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; }
.data-table tbody tr:last-child td, .data-table tbody tr:last-child th { border-bottom: 0; }
.data-table tbody th { font-weight: 700; color: var(--ink); }
.data-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.provider-table { min-width: 760px; font-size: .88rem; }
.mini-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 18px 0 6px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.mini-calc .error-box { grid-column: 1 / -1; margin: 0; }
.provider-table td { line-height: 1.5; }
.table-note { color: var(--muted) !important; font-size: .84rem; margin: 6px 0 0; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; padding: 0; list-style: none; }
.facts li { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.facts span { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.facts strong { display: block; margin-top: 4px; font: 500 1.35rem Georgia, serif; color: var(--ink); }
.cta-row { margin: 26px 0; }
.sources { font-size: .88rem; }
.sources li { margin: 6px 0; overflow-wrap: anywhere; }
.independence { margin-top: 40px; padding: 16px 18px; border-radius: 10px; background: #f2f5f3; color: var(--muted) !important; font-size: .86rem; line-height: 1.6; }
.not-found { min-height: 55vh; }
.not-found .primary-button { margin-top: 10px; }
#toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 130%); z-index: 10; padding: 11px 17px; border-radius: 8px; background: #081e16; color: white; box-shadow: var(--shadow); transition: transform .25s; font-size: .86rem; }
#toast.show { transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .results { position: static; order: -1; }
  .offer-grid { grid-template-columns: 1fr 1fr; }
  .offer-grid > p { grid-column: 1 / -1; }
  .scenario-grid { grid-template-columns: repeat(2, 1fr); }
}
/* Kompakter Kopf: nur „Rechner“ und das Menü, das Menü öffnet sich über die volle Breite. */
@media (max-width: 1040px) {
  .main-nav { gap: 8px; }
  .nav-links a:not(:first-child) { display: none; }
  .nav-links a:first-child { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--green-950); color: white; }
  .nav-links a:first-child:hover { background: var(--green-800); }
  .nav-label-short { display: inline; }
  .nav-label-long { display: none; }
  .nav-menu { position: static; }
  .nav-panel { top: 100%; left: 0; right: 0; width: auto; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; overscroll-behavior: contain; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); border-width: 0 0 1px; border-radius: 0 0 14px 14px; }
  .nav-panel a { padding: 12px 0; line-height: 1.25; }
}
@media (max-width: 359px) {
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .site-header { min-height: 64px; gap: 12px; padding: 12px 16px; }
  .brand small { display: none; }
  .nav-panel { grid-template-columns: 1fr; gap: 16px; padding: 18px 20px 22px; }
  .nav-panel a { font-size: 1rem; }
  .nav-links a:first-child, .nav-menu > summary { padding: 0 12px; }
  .hero { padding: 62px 18px 48px; }
  .hero > p { font-size: 1.03rem; }
  .notice { margin: 0 16px 22px; font-size: .9rem; }
  .calculator, .scenario-section, .method, .payslip-section { padding: 52px 16px; }
  .offer-section, .knowledge { padding: 52px 16px; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 24px; }
  .form-card-body, .assumptions-panel[open] .form-card-body { grid-template-columns: 1fr; }
  label.wide, .wide { grid-column: auto; }
  .toggle-grid { grid-template-columns: 1fr; gap: 0; }
  .results { padding: 22px 18px; border-radius: 14px; }
  .main-result strong { font-size: 2.65rem; }
  .tool-grid, .offer-grid, .scenario-grid, .formula-grid { grid-template-columns: 1fr; }
  .offer-grid > p { grid-column: auto; }
  .scenario-card { min-height: auto; }
  footer { flex-direction: column; align-items: flex-start; padding: 24px 16px; }
  .footer-guides { margin-left: 0; gap: 14px 18px; }
  .legal { padding: 40px 16px 64px; }
  .article { padding: 40px 16px 64px; }
  .facts { grid-template-columns: 1fr; }
  .mini-calc { grid-template-columns: 1fr; }
}

@media print {
  :root { background: white; }
  .site-header, .hero, .notice, form, .result-actions, .local-note, .knowledge, footer, #toast, .text-button, .hint, .hint-bubble { display: none !important; }
  .cta-row { display: none !important; }
  .table-wrap { overflow: visible; }
  .calculator, .offer-section, .scenario-section, .method { padding: 18px 0; max-width: 100%; }
  .calc-layout, .offer-grid { display: block; }
  .results { position: static; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .section-heading { margin-bottom: 15px; }
  .scenario-grid { grid-template-columns: repeat(3, 1fr); }
  .scenario-card { break-inside: avoid; min-height: 145px; }
  .offer-score, .offer-details, .offer-grid > p { margin-bottom: 14px; }
  h2 { font-size: 2rem; }
}
