/* Steuer Check D/A/CH (r31): effective r337 cascade of tools/steuer-check/index.html (head stylesheet with its revision
   blocks v1042, v1885, v1886, v2067, v2068, v2070, the Prüfstand stylesheet v2947–v2949 and r4x-insights-inline) in
   FINAL v18 tokens, light and dark. r337 showed the page dark only; colours now follow the central theme. Loaded only on
   /tools/steuer-check/.
   Staged r337 elements keep their form: the country cards with flags, the selected-country context, step badges, the
   two-step import flow, the manual toggle with divider, toggle and mode groups, result headers with country flag and tone,
   formula lines, the legal section with § badge and dashed note, the info grid with gold edge, the readiness checks,
   year cards with main value edge and accordion, netto breakdown, collapsible tables with scroll hints, the simulation
   cards, the paused card, the Prüfstand section with benefits, Plus marks and the compare view, the print layout.
   Buttons, the tool icon and the eyebrow use the central components; the H1 follows the central scale. Text never goes
   below .66rem; labels and marks use .72rem. Breakpoints 1180/820/760/720/600/560/520 stay. */
@layer components {
 .tool-page--steuer-check {
  --sc-border-strong: color-mix(in srgb, var(--text) 22%, transparent);
  --sc-gold-wash: linear-gradient(135deg, var(--gold-soft), color-mix(in srgb, var(--gold) 3%, transparent));
  --sc-fade: color-mix(in srgb, var(--surface) 88%, transparent);
 }
 .tool-page--steuer-check :is(button, a, summary, input, select):focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
 .sc-page { max-width: 680px; margin: 0 auto; padding: clamp(28px, 5vw, 64px) 0 var(--s8); color: var(--text); font-size: .94rem; line-height: 1.6; }

 /* ── Hero ─────────────────────────────────────────────────── */
 .sc-eyebrow { margin: 0 0 var(--s2); color: var(--accent-text); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
 .sc-title-row { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s3); }
 .sc-title { margin: 0; letter-spacing: -.03em; }
 .sc-title-icon { flex: 0 0 56px; width: 56px; height: 56px; }
 .sc-title-icon img { width: 42px; height: 42px; display: block; object-fit: contain; }
 .sc-sub { margin: 0 0 var(--s5); color: var(--text-muted); font-size: .94rem; line-height: 1.6; }
 .sc-stand { margin: var(--s2) 0 var(--s5); color: var(--text-faint); font-size: .72rem; letter-spacing: .01em; line-height: 1.5; }
 .sc-disclaimer { margin-bottom: var(--s6); padding: var(--s4) var(--s5); border: 1px solid var(--gold-border); border-radius: var(--radius-control); background: var(--gold-soft); color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
 .sc-disclaimer strong { color: var(--accent-text); font-weight: 600; }

 /* ── Cards, titles, grids, fields ─────────────────────────── */
 .sc-card { margin-bottom: var(--s4); padding: var(--s6); border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--surface); }
 .sc-card--info, .sc-card--scope { border-color: var(--info-border); background: var(--info-soft); }
 .sc-card-title { margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--border-soft); color: var(--text-muted); font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
 .sc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
 .sc-field { display: flex; flex-direction: column; gap: var(--s2); }
 .sc-field label { color: var(--text-muted); font-size: .82rem; font-weight: 500; }
 .sc-field input, .sc-field select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--input); color: var(--text); font: inherit; font-size: .94rem; transition: border-color var(--motion-fast) var(--ease-standard); appearance: none; -webkit-appearance: none; }
 .sc-field input:focus, .sc-field select:focus { outline: none; border-color: var(--gold); }
 .sc-field input::placeholder { color: var(--text-faint); }
 .sc-field input.err, .sc-kauf-row input.err { border-color: var(--danger); }
 .sc-hint { color: var(--text-faint); font-size: .72rem; line-height: 1.4; }
 .sc-err { display: none; color: var(--danger); font-size: .72rem; }
 .sc-err.show { display: block; }
 .sc-scope-text { color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
 .sc-scope-text strong { color: var(--text); font-weight: 600; }

 /* ── Country choice (step 1) ──────────────────────────────── */
 .sc-land-step-head { margin-bottom: var(--s5); }
 .sc-land-step-head .sc-import-head-title { font-size: 1.06rem; }
 .sc-land-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
 .sc-land-btn { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface-muted); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard); }
 .sc-land-btn:hover:not(.on) { border-color: var(--sc-border-strong); }
 .sc-land-btn.on { border-color: var(--gold); background: var(--gold-soft); }
 .sc-land-flag { display: flex; flex-shrink: 0; align-items: center; }
 .sc-land-flag-svg { display: block; width: 28px; height: 18.67px; border-radius: var(--radius-badge); box-shadow: 0 0 0 1px var(--border); }
 .sc-land-flag-svg--square { width: 20px; height: 20px; }
 .sc-land-text { display: flex; flex-direction: column; gap: 2px; }
 .sc-land-name { color: var(--text); font-size: .94rem; font-weight: 600; }
 .sc-land-sys { color: var(--text-faint); font-size: .72rem; }
 .sc-land-context { margin-top: var(--s4); padding: var(--s4) var(--s5); border: 1px solid var(--gold-border); border-radius: var(--radius-control); background: var(--sc-gold-wash); }
 .sc-land-context-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s2); }
 .sc-land-context-kicker { color: var(--accent-text); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
 .sc-land-context-head strong { color: var(--text); font-size: .82rem; font-weight: 600; }
 .sc-land-context-sub { margin: 0; color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
 .sc-land-context-stand { margin-top: var(--s2); color: var(--text-faint); font-size: .72rem; line-height: 1.45; }
 .sc-land-disclaimer { margin: var(--s4) 0 0; padding: var(--s3) var(--s4); border-color: var(--gold-border); background: var(--surface-muted); }
 .sc-land-panel { display: none; }
 .sc-land-panel.show { display: block; animation: sc-fade-in .2s ease-out; }
 @keyframes sc-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

 /* ── Help disclosures ("Standardfall", Näherungssatz) ─────── */
 .sc-help { margin-top: var(--s4); font-size: .82rem; }
 .sc-help summary { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 600; list-style: none; cursor: pointer; }
 .sc-help summary::-webkit-details-marker { display: none; }
 .sc-help summary::before { content: '+'; display: inline-block; width: 14px; height: 14px; border: 1px solid var(--gold-border); border-radius: var(--radius-badge); font-size: .72rem; font-weight: 700; line-height: 12px; text-align: center; }
 .sc-help[open] summary::before { content: '−'; }
 .sc-help-body { margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--radius-control); background: var(--surface-strong); color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
 .sc-help-body ul { margin: var(--s2) 0; padding-left: 20px; }
 .sc-help-body ul li { margin-bottom: 3px; }
 .sc-standardfall-inline { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--border-soft); }
 .sc-standardfall-inline.sc-help summary { display: flex; width: 100%; justify-content: space-between; gap: var(--s3); color: var(--text-muted); }
 .sc-standardfall-inline.sc-help summary::before { content: 'i'; flex: 0 0 auto; width: 18px; height: 18px; border-radius: var(--radius-pill); font-size: .72rem; line-height: 16px; }
 .sc-standardfall-inline.sc-help summary::after { content: '▸'; color: var(--accent-text); transition: transform var(--motion-fast) var(--ease-standard); }
 .sc-standardfall-inline.sc-help[open] summary::after { transform: rotate(90deg); }
 .sc-standardfall-inline.sc-help[open] summary::before { content: 'i'; }
 .sc-standardfall-inline .sc-help-body { margin-top: var(--s3); background: var(--surface-muted); }
 /* r337 generated list inside "Was bedeutet Standardfall?" (inline styles with v18 tokens) */
 .sc-standardfall-inline .sc-help-body ul { margin-left: 0; padding-left: 20px; }

 /* ── Step heads and import (step 2) ───────────────────────── */
 .sc-import-card-head { display: flex; flex-wrap: nowrap; align-items: center; justify-content: flex-start; gap: var(--s3); margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--border-soft); }
 .sc-step-badge { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--gold-border); border-radius: var(--radius-control); background: var(--gold-soft); color: var(--accent-text); font-size: 1.06rem; font-weight: 700; }
 .sc-import-head-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
 .sc-import-kicker { margin: 0; color: var(--accent-text); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
 .sc-import-head-title { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--text); font-size: .94rem; font-weight: 600; line-height: 1.2; }
 .sc-import-head-sub { margin: 0; color: var(--text-faint); font-size: .72rem; font-weight: 500; }
 .sc-import-pt-icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: var(--radius-badge); }
 .sc-release-badge { display: inline-flex; align-items: center; gap: 7px; width: max-content; margin-top: var(--s2); padding: 5px 9px; border: 1px solid var(--success-border); border-radius: var(--radius-pill); background: var(--success-soft); color: var(--success); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
 .sc-release-badge::before { content: ""; width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
 .sc-import-actions { display: flex; flex-direction: column; gap: var(--s3); }
 .sc-import-flow { padding: var(--s4); border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface-muted); }
 .sc-import-flow__kicker { margin: 0 0 var(--s3); color: var(--text-muted); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
 .sc-import-flow__steps { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: stretch; gap: var(--s2); }
 .sc-import-flow__arrow { display: grid; place-items: center; color: var(--accent-text); font-size: 1.1rem; font-weight: 700; }
 .sc-import-flow__hint { margin: var(--s3) 0 0; color: var(--text-faint); font-size: .72rem; }
 .sc-import-cta { gap:10px;min-height:52px;padding:11px 16px;text-align:left; }
 .sc-import-cta__icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: var(--radius-badge); }
 .sc-import-cta__step { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 31px; height: 25px; padding: 0 7px; border: 1px solid var(--gold-border); border-radius: var(--radius-button); background: var(--gold-soft); color: var(--accent-text); font-size: .72rem; font-weight: 800; letter-spacing: .05em; }
 .sc-import-cta__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.2; }
 .sc-import-cta__label { font-size: .82rem; font-weight: 600; }
 .sc-import-cta__sub { color: var(--text-faint); font-size: .72rem; font-weight: 500; }
 .sc-import-cta--primary .sc-import-cta__step { border-color: color-mix(in srgb, var(--button-text) 28%, transparent); background: color-mix(in srgb, var(--button-text) 10%, transparent); color: var(--button-text); }
 .sc-import-cta--primary .sc-import-cta__sub { color: color-mix(in srgb, var(--button-text) 72%, transparent); }
 .sc-import-cta--full { width: 100%; }
 .sc-import-handoff-shortcut { padding-top: var(--s3); border-top: 1px solid var(--border-soft); }
 .sc-import-handoff-shortcut__kicker { display: block; margin-bottom: var(--s2); color: var(--accent-text); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
 .sc-import-summary-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); margin-top: var(--s3); }
 .sc-import-summary-val { color: var(--accent-text); font-size: 1.38rem; font-weight: 700; line-height: 1.2; }
 .sc-import-summary-lbl { margin-top: 2px; color: var(--text-faint); font-size: .72rem; }
 .sc-import-summary-warn { margin-top: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--gold-border); border-radius: var(--radius-control); background: var(--gold-soft); color: var(--text-muted); font-size: .82rem; }
 .sc-import-summary-warn .sc-toggle { display: inline-flex; width: auto; min-height: 34px; margin: 8px 0 0; padding: 7px 11px; vertical-align: middle; }
 .sc-import-readiness { margin-top: var(--s4); overflow: hidden; border: 1px solid var(--border-soft); border-radius: var(--radius-control); background: var(--surface-muted); }
 .sc-import-readiness__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); padding: var(--s4); border-bottom: 1px solid var(--border-soft); }
 .sc-import-readiness__title { color: var(--text); font-size: .94rem; }
 .sc-import-readiness__sub { margin: 3px 0 0; color: var(--text-muted); font-size: .82rem; }
 .sc-status-pill { flex: 0 0 auto; padding: 5px 10px; border: 1px solid var(--success-border); border-radius: var(--radius-pill); background: var(--success-soft); color: var(--success); font-size: .72rem; font-weight: 700; }
 .sc-status-pill--warn { border-color: var(--gold-border); background: var(--gold-soft); color: var(--accent-text); }
 .sc-import-checks { display: grid; }
 .sc-import-check { display: grid; grid-template-columns: 24px minmax(120px, .7fr) minmax(0, 1.5fr); gap: var(--s2); align-items: start; padding: 12px var(--s4); border-top: 1px solid var(--border-soft); font-size: .82rem; }
 .sc-import-check:first-child { border-top: 0; }
 .sc-import-check__icon { display: grid; place-items: center; width: 20px; height: 20px; border-radius: var(--radius-pill); background: var(--success-soft); color: var(--success); font-size: .72rem; font-weight: 800; }
 .sc-import-check--warn .sc-import-check__icon { background: var(--gold-soft); color: var(--accent-text); }
 .sc-import-check__label { color: var(--text); font-weight: 700; }
 .sc-import-check__value { color: var(--text-muted); }
 .sc-import-details { margin-top: var(--s3); border: 1px solid var(--border-soft); border-radius: var(--radius-control); background: var(--surface-muted); }
 .sc-import-details > summary { padding: 11px 13px; color: var(--accent-text); font-size: .82rem; font-weight: 700; list-style: none; cursor: pointer; }
 .sc-import-details > summary::-webkit-details-marker { display: none; }
 .sc-import-details > summary::after { content: " +"; }
 .sc-import-details[open] > summary::after { content: " −"; }
 .sc-ambiguity-list { display: grid; gap: 8px; padding: 0 13px 13px; }
 .sc-ambiguity-row { display: grid; grid-template-columns: 100px minmax(70px, .5fr) minmax(0, 1fr); gap: 8px; padding: 9px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-control); color: var(--text-muted); font-size: .72rem; }
 .sc-ambiguity-row strong { color: var(--text); }

 /* ── Manual calculation (toggle, divider, toggles, modes) ─── */
 .sc-manual-divider { display: flex; align-items: center; gap: var(--s3); margin: var(--s5) 0 var(--s3); }
 .sc-manual-divider-line { flex: 1; height: 1px; background: var(--border); }
 .sc-manual-divider-text { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: 6px 16px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: var(--surface); color: var(--text-muted); font-size: .82rem; font-weight: 500; white-space: nowrap; }
 .sc-manual-toggle { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); width: 100%; margin: 0 0 var(--s4); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard); }
 .sc-manual-toggle:hover { border-color: var(--gold-border); background: var(--gold-soft); }
 .sc-manual-section-head { flex: 1; min-width: 0; margin: 0; }
 .sc-manual-section-title { display: flex; align-items: center; gap: 10px; }
 .sc-manual-heading-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
 .sc-manual-heading-copy strong { color: var(--text); font-size: clamp(1.18rem, 2.4vw, 1.5rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
 .sc-manual-heading-copy span { color: var(--text-faint); font-size: .82rem; font-weight: 400; line-height: 1.6; }
 .sc-manual-title-icon { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid var(--gold-border); border-radius: var(--radius-control); background: var(--gold-soft); }
 .sc-manual-title-icon img { display: block; width: 20px; height: 20px; }
 .sc-manual-toggle__action { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; color: var(--accent-text); font-size: .72rem; font-weight: 600; white-space: nowrap; }
 .sc-manual-toggle__arrow { font-size: .94rem; line-height: 1; }
 .sc-manual-toggle[aria-expanded="true"] .sc-manual-toggle__arrow { transform: rotate(180deg); }
 .sc-manual-wrap { transition: opacity .2s ease; }
 .sc-manual-wrap:not(.is-open) { max-height: 0; overflow: hidden; opacity: 0; }
 .sc-manual-wrap.is-open { max-height: none; opacity: 1; }
 .sc-manual-wrap.is-deemph.is-open { margin-top: var(--s3); opacity: .85; }
 @keyframes sc-manual-flash { 0% { box-shadow: 0 0 0 0 transparent; } 25% { box-shadow: 0 0 0 3px var(--gold-border); } 100% { box-shadow: 0 0 0 0 transparent; } }
 .sc-manual-wrap.sc-flash > .sc-card:first-of-type, .sc-manual-wrap.sc-flash > .sc-method-notice { border-radius: var(--radius-card); animation: sc-manual-flash 1.3s ease-out; }
 .sc-toggle-group { display: flex; gap: var(--s2); }
 .sc-toggle { flex: 1; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface-muted); color: var(--text-muted); font: inherit; font-size: .82rem; font-weight: 500; text-align: center; cursor: pointer; transition: border-color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard); }
 .sc-toggle.on { border-color: var(--gold); background: var(--gold-soft); color: var(--accent-text); }
 .sc-toggle:hover:not(.on) { border-color: var(--sc-border-strong); color: var(--text); }
 a.sc-toggle { text-decoration: none; }
 .sc-mode-group { display: flex; gap: var(--s2); margin-bottom: var(--s5); }
 .sc-mode-btn { flex: 1; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface-strong); color: var(--text-muted); font: inherit; font-size: .82rem; text-align: center; cursor: pointer; transition: border-color var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard); }
 .sc-mode-btn.on { border-color: var(--gold); background: var(--gold-soft); color: var(--accent-text); }
 .sc-mode-btn:hover:not(.on) { color: var(--text); }
 .sc-panel { display: none; }
 .sc-panel.show { display: block; }
 .sc-kauf-list { display: flex; flex-direction: column; gap: var(--s3); margin-bottom: var(--s4); }
 .sc-kauf-row { display: grid; grid-template-columns: 1fr 1fr 32px; gap: var(--s3); align-items: end; padding: var(--s3); border: 1px solid var(--border-soft); border-radius: var(--radius-control); background: var(--surface-muted); }
 .sc-kauf-del { width: 32px; height: 38px; border: 1px solid var(--border); border-radius: var(--radius-control); background: none; color: var(--text-faint); font-size: 1rem; cursor: pointer; transition: border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard); }
 .sc-kauf-del:hover:not(:disabled) { border-color: var(--danger-border); color: var(--danger); }
 .sc-kauf-del:disabled { opacity: .3; cursor: not-allowed; }
 .sc-add-btn { width:100%;justify-content:flex-start; }
 .sc-avg { display: none; margin-top: var(--s4); padding: var(--s3) var(--s4); border: 1px solid var(--gold-border); border-radius: var(--radius-control); background: var(--gold-soft); }
 .sc-avg.show { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
 .sc-avg-label { color: var(--text-muted); font-size: .82rem; }
 .sc-avg-sub { margin-top: 2px; color: var(--text-faint); font-size: .72rem; }
 .sc-avg-val { color: var(--accent-text); font-size: 1.38rem; font-weight: 700; text-align: right; }
 .sc-infobox { margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--radius-control); background: var(--surface-strong); color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
 .sc-infobox strong { color: var(--accent-text); }
 .sc-mining-row { margin-bottom: var(--s2); padding: var(--s3) var(--s4); border-radius: var(--radius-control); background: var(--surface-strong); color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
 .sc-mining-row strong { color: var(--text); }
 .sc-mining-warn { margin-top: var(--s4); padding: var(--s3) var(--s4); border: 1px solid var(--gold-border); border-radius: var(--radius-control); background: var(--gold-soft); color: var(--accent-text); font-size: .82rem; }
 .sc-method-notice { margin-bottom: var(--s4); padding: var(--s4) var(--s5); border: 1px solid var(--gold-border); border-radius: var(--radius-control); background: var(--gold-soft); }
 .sc-method-notice-title { margin-bottom: var(--s2); color: var(--accent-text); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
 .sc-method-notice-body { color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
 .sc-steuersatz-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
 .sc-steuersatz-val { color: var(--accent-text); font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
 .sc-steuersatz-sub, .sc-steuersatz-range { color: var(--text-faint); font-size: .72rem; line-height: 1.4; }
 .sc-steuersatz-range { text-align: right; }
 .sc-range { width: 100%; height: 4px; border-radius: var(--radius-pill); background: var(--border); outline: none; cursor: pointer; appearance: none; -webkit-appearance: none; }
 .sc-range::-webkit-slider-thumb { width: 18px; height: 18px; border: 2px solid var(--surface); border-radius: var(--radius-pill); background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); cursor: pointer; appearance: none; -webkit-appearance: none; }
 .sc-range::-moz-range-thumb { width: 18px; height: 18px; border: 2px solid var(--surface); border-radius: var(--radius-pill); background: var(--gold); cursor: pointer; }
 .sc-steuersatz-marks { display: flex; justify-content: space-between; margin-top: 6px; color: var(--text-faint); font-size: .72rem; }
 .sc-sh-row { display: flex; align-items: flex-start; gap: 14px; padding: var(--s3) 0; border-bottom: 1px solid var(--border-soft); cursor: pointer; }
 .sc-sh-row--last { padding-bottom: 0; border-bottom: none; }
 .sc-sh-row input[type=checkbox] { flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; accent-color: var(--gold); cursor: pointer; }
 .sc-sh-title { display: block; color: var(--text); font-size: .82rem; font-weight: 500; line-height: 1.4; }
 .sc-sh-sub { display: block; margin-top: 2px; color: var(--text-faint); font-size: .72rem; line-height: 1.45; }
 .sc-btn.btn { width: 100%; margin-top: var(--s5); }

 /* ── Manual result ────────────────────────────────────────── */
 .sc-result { display: none; margin-top: var(--s4); overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-card); animation: sc-fade-in .2s ease-out; }
 .sc-result.show { display: block; }
 .sc-res-header { padding: var(--s4) var(--s5); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
 .sc-res-header.green { border-bottom: 1px solid var(--success-border); background: var(--success-soft); color: var(--success); }
 .sc-res-header.gold { border-bottom: 1px solid var(--gold-border); background: var(--gold-soft); color: var(--accent-text); }
 .sc-res-header.red { border-bottom: 1px solid var(--danger-border); background: var(--danger-soft); color: var(--danger); }
 .sc-res-header.blue { border-bottom: 1px solid var(--info-border); background: var(--info-soft); color: var(--info); }
 /* r337 country flag in front of every result header (pure CSS, no change to the result functions). */
 #landpanel-at .sc-res-header::before { content: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMyAyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIzIiBoZWlnaHQ9IjIiIGZpbGw9IiNFRDI5MzkiLz48cmVjdCB3aWR0aD0iMyIgaGVpZ2h0PSIwLjY2NjciIHk9IjAuNjY2NyIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg=="); display: inline-block; width: 18px; height: 12px; margin-right: 8px; border-radius: var(--radius-badge); vertical-align: middle; }
 #landpanel-de .sc-res-header::before { content: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMyAyIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxyZWN0IHdpZHRoPSIzIiBoZWlnaHQ9IjAuNjY2NyIgZmlsbD0iIzAwMCIvPjxyZWN0IHdpZHRoPSIzIiBoZWlnaHQ9IjAuNjY2NyIgeT0iMC42NjY3IiBmaWxsPSIjREQwMDAwIi8+PHJlY3Qgd2lkdGg9IjMiIGhlaWdodD0iMC42NjY3IiB5PSIxLjMzMzMiIGZpbGw9IiNGRkNFMDAiLz48L3N2Zz4="); display: inline-block; width: 18px; height: 12px; margin-right: 8px; border-radius: var(--radius-badge); vertical-align: middle; }
 #landpanel-ch .sc-res-header::before { content: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMzIgMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHJlY3Qgd2lkdGg9IjMyIiBoZWlnaHQ9IjMyIiByeD0iMyIgZmlsbD0iI0ZGMDAwMCIvPjxyZWN0IHg9IjEzIiB5PSI2IiB3aWR0aD0iNiIgaGVpZ2h0PSIyMCIgZmlsbD0iI2ZmZiIvPjxyZWN0IHg9IjYiIHk9IjEzIiB3aWR0aD0iMjAiIGhlaWdodD0iNiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg=="); display: inline-block; width: 13px; height: 13px; margin-right: 8px; border-radius: var(--radius-badge); vertical-align: middle; }
 .sc-res-body { padding: var(--s5); background: var(--surface); }
 .sc-res-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--border-soft); }
 .sc-res-row:last-of-type { border-bottom: none; }
 .sc-res-lbl { color: var(--text-muted); font-size: .82rem; }
 .sc-res-val { font-size: .94rem; font-weight: 500; text-align: right; }
 .sc-res-val.big { color: var(--accent-text); font-size: 1.38rem; font-weight: 700; }
 .sc-res-val.pos { color: var(--success); }
 .sc-res-val.neg { color: var(--danger); }
 .sc-res-val-wrap { display: flex; flex-direction: column; align-items: flex-end; }
 .sc-res-formula { margin-top: 2px; color: var(--text-faint); font-size: .72rem; text-align: right; }
 .sc-res-note { margin-top: var(--s4); padding: var(--s3) var(--s4); border-radius: var(--radius-control); background: var(--surface-strong); color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
 .sc-res-note strong { color: var(--accent-text); }

 /* ── Legal section and info grid ──────────────────────────── */
 .sc-info-section-head { display: flex; flex-direction: column; gap: 4px; margin-top: var(--s8); margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--border-soft); }
 .sc-info-section-title { color: var(--text); font-size: 1.38rem; font-weight: 600; line-height: 1.2; }
 .sc-info-section-sub { color: var(--text-faint); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
 .sc-legal-head { flex-direction: row; align-items: center; gap: var(--s4); margin-bottom: var(--s3); padding: var(--s4) var(--s5); border: 1px solid var(--gold-border); border-left: 3px solid var(--gold); border-radius: var(--radius-control); background: var(--sc-gold-wash); }
 .sc-legal-badge { display: flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--gold-border); border-radius: var(--radius-card); background: var(--gold-soft); color: var(--accent-text); font-size: 1.88rem; line-height: 1; }
 .sc-legal-head-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
 .sc-legal-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-text); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
 .sc-legal-gavel { flex: 0 0 auto; width: 15px; height: 15px; }
 .sc-legal-note { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 var(--s5); padding: var(--s3) var(--s4); border: 1px dashed var(--gold-border); border-radius: var(--radius-control); background: var(--surface-strong); }
 .sc-legal-note-icon { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; color: var(--accent-text); }
 .sc-legal-note p { margin: 0; color: var(--text-faint); font-size: .72rem; line-height: 1.6; }
 .sc-legal-note strong { color: var(--text-muted); font-weight: 600; }
 .sc-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: 0; }
 .sc-info-block { padding: var(--s4) var(--s4) var(--s4) calc(var(--s4) - 2px); border: 1px solid var(--border-soft); border-left: 3px solid var(--gold-border); border-radius: var(--radius-control); background: var(--surface); transition: border-color var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard); }
 .sc-info-block:hover { border-left-color: var(--gold); box-shadow: var(--shadow-card); transform: translateY(-1px); }
 .sc-info-block h4 { margin: 0 0 var(--s2); color: var(--text); font-size: .94rem; font-weight: 600; transition: color var(--motion-fast) var(--ease-standard); }
 .sc-info-block:hover h4 { color: var(--accent-text); }
 .sc-info-block p { margin: 0; color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
 .sc-info-block--review { border-color: var(--gold-border); background: var(--gold-soft); }
 .sc-info-block--review h4 { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); color: var(--accent-text); }
 .sc-info-block[data-severity="info"] { border-color: var(--success-border); background: var(--success-soft); }
 .sc-info-block[data-severity="critical"] { border-color: var(--danger-border); background: var(--danger-soft); }
 .sc-info-block-date { color: var(--text-faint); font-size: .72rem; font-weight: 400; letter-spacing: 0; text-transform: none; white-space: nowrap; }
 .sc-review-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 var(--s3); }
 .sc-review-filter-btn { padding: 7px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-pill); background: var(--surface-muted); color: var(--text-muted); font: inherit; font-size: .72rem; cursor: pointer; }
 .sc-review-filter-btn.is-active { border-color: var(--gold); background: var(--gold-soft); color: var(--accent-text); }
 .sc-footer-note { margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--border-soft); color: var(--text-faint); font-size: .72rem; line-height: 1.6; text-align: center; }

 /* ── Import results: result anchor, year cards, notes ─────── */
 .sc-import-results { margin-bottom: var(--s4); }
 .sc-import-results .sc-card { margin-bottom: var(--s3); }
 .sc-result-anchor { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); padding: var(--s4) var(--s5); border: 1px solid var(--gold-border); border-radius: var(--radius-card); background: linear-gradient(180deg, var(--gold-soft), color-mix(in srgb, var(--gold) 4%, transparent)); }
 .sc-result-anchor__copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
 .sc-result-anchor__kicker { margin: 0; color: var(--accent-text); font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
 .sc-result-anchor__title { margin: 0; color: var(--text); font-size: 1.38rem; font-weight: 600; line-height: 1.2; }
 .sc-result-anchor__sub { margin: 0; color: var(--text-faint); font-size: .72rem; }
 .sc-import-precision-note { margin-bottom: var(--s3); padding: var(--s4) var(--s5); border: 1px solid var(--success-border); border-radius: var(--radius-control); background: var(--success-soft); color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
 .sc-import-precision-note strong { color: var(--success); }
 .sc-import-precision-note.sc-import-precision-note--warn { border-color: var(--gold); background: var(--gold-soft); }
 .sc-import-precision-note--warn strong { color: var(--accent-text); }
 .sc-quelle { display: block; margin-top: var(--s2); color: var(--text-faint); font-size: .72rem; font-style: italic; }
 .sc-quelle a { color: var(--accent-text); text-decoration: none; }
 .sc-quelle a:hover { text-decoration: underline; }
 .sc-year-filter { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-bottom: var(--s4); }
 .sc-year-filter-label { margin-right: var(--s2); color: var(--text-faint); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
 .sc-year-filter-btn { padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: transparent; color: var(--text-muted); font: inherit; font-size: .82rem; font-weight: 500; cursor: pointer; transition: border-color var(--motion-fast) var(--ease-standard), color var(--motion-fast) var(--ease-standard); }
 .sc-year-filter-btn:hover { border-color: var(--gold-border); color: var(--accent-text); }
 .sc-year-filter-btn.is-active { border-color: var(--gold); background: var(--gold-soft); color: var(--accent-text); }
 .sc-year-card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--border-soft); }
 .sc-year-card-title { color: var(--text); font-size: 1.38rem; font-weight: 600; }
 .sc-year-card-count { color: var(--text-faint); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
 .sc-year-result { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s4); align-items: end; }
 .sc-year-result-lbl { margin-bottom: 4px; color: var(--text-faint); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
 .sc-year-result-val { color: var(--accent-text); font-size: 2rem; font-weight: 700; line-height: 1; }
 .sc-year-result-val2 { color: var(--text); font-size: 1.38rem; font-weight: 600; line-height: 1; }
 .sc-year-result-val2.pos { color: var(--success); }
 .sc-year-result-val2.neg { color: var(--danger); }
 .sc-year-result-main { padding-left: var(--s3); border-left: 3px solid var(--gold); }
 .sc-year-card--accordion { position: relative; padding-bottom: var(--s4); }
 .sc-year-card--accordion .sc-year-card-head { padding-right: 220px; }
 .sc-year-card--accordion .sc-year-card-count { margin-right: var(--s3); }
 .sc-year-card--accordion .sc-year-card-details { display: none; margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--border-soft); }
 .sc-year-card--accordion.is-open .sc-year-card-details { display: block; }
 .sc-year-card--accordion :is(.sc-year-card-head, .sc-year-result, .sc-netto-breakdown) { cursor: pointer; }
 .sc-year-card-toggle { position: absolute; top: var(--s5); right: var(--s5); display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border: 1px solid var(--gold-border); border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--accent-text); font: inherit; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
 .sc-year-card-toggle::after { content: '▸'; font-size: .72rem; }
 .sc-year-card--accordion.is-open .sc-year-card-toggle::after { content: '▾'; }
 .sc-netto-breakdown { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--border-soft); border-radius: var(--radius-control); background: var(--surface-muted); font-size: .82rem; }
 .sc-netto-part { display: flex; flex-direction: column; gap: 2px; }
 .sc-netto-part-lbl { color: var(--text-faint); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
 .sc-netto-op { color: var(--text-faint); font-size: 1.06rem; }
 .sc-netto-breakdown .pos, .sc-sim-metric-val.pos { color: var(--success); }
 .sc-netto-breakdown .neg, .sc-sim-metric-val.neg { color: var(--danger); }
 .sc-import-totals { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); margin-top: var(--s3); padding: var(--s4) var(--s5); border: 1px solid var(--gold); border-radius: var(--radius-control); background: var(--surface-muted); }
 .sc-import-totals-lbl { color: var(--text-faint); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
 .sc-import-totals-val { color: var(--accent-text); font-size: 1.75rem; font-weight: 700; }

 /* ── Collapsible sections and tables ──────────────────────── */
 .sc-collapsible { margin-top: var(--s4); }
 .sc-collapsible--table { padding-top: var(--s3); border-top: 1px solid var(--border-soft); }
 .sc-collapsible-summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: var(--s3) 0; color: var(--text); font-size: .82rem; font-weight: 600; list-style: none; cursor: pointer; }
 .sc-collapsible-summary::-webkit-details-marker { display: none; }
 .sc-collapsible-hint { display: inline-flex; align-items: center; gap: 5px; padding: 5px 13px; border: 1px solid var(--gold-border); border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--accent-text); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; transition: border-color var(--motion-fast) var(--ease-standard); }
 .sc-collapsible-summary:hover .sc-collapsible-hint, .sc-collapsible[open] .sc-collapsible-hint { border-color: var(--gold); }
 .sc-collapsible-hint::after { content: "▸"; font-size: .72rem; }
 .sc-collapsible[open] .sc-collapsible-hint::after { content: "▾"; }
 .sc-result-context { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border-soft); }
 .sc-result-context > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s4); border: 1px solid var(--gold-border); border-radius: var(--radius-control); background: var(--gold-soft); color: var(--accent-text); font-weight: 700; list-style: none; cursor: pointer; }
 .sc-result-context > summary::-webkit-details-marker { display: none; }
 .sc-result-context > summary::after { content: "Details öffnen +"; color: var(--text-muted); font-size: .72rem; font-weight: 600; }
 .sc-result-context[open] > summary::after { content: "Details schließen −"; }
 .sc-result-context__sub { display: block; margin-top: 3px; color: var(--text-muted); font-size: .72rem; font-weight: 400; }
 .sc-result-context__body { margin-top: var(--s3); }
 .sc-result-context__head { display: flex; align-items: center; gap: 9px; margin-bottom: var(--s3); color: var(--text-faint); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
 .sc-excluded-list { display: grid; gap: var(--s3); margin-top: var(--s3); }
 .sc-excluded-item { min-width: 0; padding: var(--s3) var(--s4); border: 1px solid var(--border-soft); border-radius: var(--radius-control); background: var(--surface-muted); }
 .sc-excluded-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); }
 .sc-excluded-item-title, .sc-excluded-item strong { display: block; color: var(--accent-text); }
 .sc-excluded-item p { margin: 4px 0 0; color: var(--text-muted); font-size: .82rem; }
 .sc-excluded-item details { margin-top: var(--s2); }
 .sc-excluded-item summary { list-style: none; }
 .sc-excluded-item summary::-webkit-details-marker { display: none; }
 .sc-excluded-toggle { padding: 5px 12px; border: 1px solid var(--gold-border); border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--accent-text); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; cursor: pointer; }
 .sc-excluded-toggle:hover { border-color: var(--gold); }
 .sc-excluded-empty { margin-top: var(--s2); color: var(--text-faint); font-size: .82rem; }
 .sc-excluded-table-wrap { margin-top: var(--s3); }
 .sc-import-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
 .sc-import-table th { padding: var(--s2) var(--s3); border-bottom: 1px solid var(--border); color: var(--text-faint); font-size: .72rem; font-weight: 600; letter-spacing: .05em; text-align: left; text-transform: uppercase; }
 .sc-import-table td { padding: var(--s3); border-bottom: 1px solid var(--border-soft); color: var(--text); }
 .sc-import-table tr:last-child td { border-bottom: none; }
 .sc-import-table tbody tr:nth-child(even) { background: var(--surface-muted); }
 .sc-import-table tbody tr:hover { background: var(--gold-soft); }
 .sc-import-table :is(.pos) { color: var(--success); }
 .sc-import-table :is(.neg) { color: var(--danger); }
 .sc-import-table .muted { color: var(--text-faint); }
 .sc-import-table th:last-child { width: 38px; }
 .sc-import-table td:last-child { padding: var(--s2); text-align: center; }
 .sc-dt { display: block; line-height: 1.2; }
 .sc-dt-date { display: block; white-space: nowrap; }
 .sc-dt-time { display: block; font-size: .82em; letter-spacing: .02em; white-space: nowrap; opacity: .6; }
 .sc-row-formula { display: block; margin-top: 3px; color: var(--text-faint); font-size: .68rem; line-height: 1.25; white-space: normal; }
 .sc-import-row-flag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: var(--radius-pill); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
 .sc-import-row-flag--review { border: 1px solid var(--gold-border); background: var(--gold-soft); color: var(--accent-text); }
 .sc-import-row-flag--free { border: 1px solid var(--success-border); background: var(--success-soft); color: var(--success); }
 .sc-row-manual-btn { padding:var(--s2); }
 
 .sc-scroll-hint { display: none; align-items: center; justify-content: center; gap: 8px; margin-bottom: var(--s2); padding: 7px 12px; border: 1px solid var(--gold-border); border-radius: var(--radius-control); background: var(--gold-soft); color: var(--text-muted); font-size: .72rem; font-weight: 500; letter-spacing: .02em; }
 .sc-table-scroll { margin: 0 calc(-1 * var(--s2)); padding: 0 var(--s2); overflow-x: scroll; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
 .sc-table-scroll::-webkit-scrollbar { height: 6px; }
 .sc-table-scroll::-webkit-scrollbar-track { background: transparent; }
 .sc-table-scroll::-webkit-scrollbar-thumb { border-radius: var(--radius-badge); background: var(--border); }
 .sc-table-scroll::-webkit-scrollbar-thumb:hover { background: var(--gold-border); }
 .sc-table-scroll .sc-import-table { min-width: 680px; }
 .sc-table-scroll .sc-import-table :is(td, th) { white-space: nowrap; }
 .sc-table-scroll-top { height: 16px; margin: 0 calc(-1 * var(--s2)) var(--s2); padding: 0 var(--s2); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; scrollbar-color: var(--gold-border) transparent; }
 .sc-table-scroll-top::-webkit-scrollbar { height: 8px; }
 .sc-table-scroll-top::-webkit-scrollbar-track { border-radius: var(--radius-pill); background: var(--surface-muted); }
 .sc-table-scroll-top::-webkit-scrollbar-thumb { border-radius: var(--radius-pill); background: var(--gold-border); }
 .sc-table-scroll-top-inner { height: 1px; }
 .sc-table-scroll-top.sc-scroll-hidden { display: none; }
 .sc-table-scroll-wrap { position: relative; }
 .sc-table-scroll-wrap::after { content: ''; position: absolute; top: 0; right: 0; z-index: 2; width: 52px; height: calc(100% - 7px); background: linear-gradient(to right, transparent, var(--sc-fade)); pointer-events: none; transition: opacity .25s; }
 .sc-table-scroll-wrap.sc-no-overflow::after, .sc-table-scroll-wrap.sc-at-end::after { opacity: 0; }
 .sc-import-table--excluded .muted { color: var(--text-faint); }
 .sc-print-only { display: none; }

 /* ── Paused card (country calculation waits for data) ─────── */
 .sc-paused-card { border: 1px solid var(--gold-border); border-radius: var(--radius-card); }
 .sc-paused-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-bottom: var(--s3); }
 .sc-paused-flag { display: inline-flex; line-height: 0; }
 .sc-flag { display: inline-block; border-radius: var(--radius-badge); box-shadow: 0 0 0 1px var(--border); vertical-align: middle; }
 .sc-paused-title { color: var(--text); font-size: 1.38rem; font-weight: 600; letter-spacing: .01em; }
 .sc-paused-badge { margin-left: auto; padding: 5px 14px; border: 1px solid var(--gold-border); border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--accent-text); font-size: .72rem; letter-spacing: .09em; text-transform: uppercase; white-space: nowrap; }
 .sc-paused-lead { max-width: 62ch; margin: 0 0 var(--s4); color: var(--text-muted); line-height: 1.6; }
 .sc-paused-list { margin: 0 0 0 20px; padding: 0; color: var(--text-muted); }
 .sc-paused-list li { margin: var(--s2) 0; line-height: 1.5; }

 /* ── Was-wäre-wenn Simulation ─────────────────────────────── */
 .sc-sim-card { border-color: var(--gold-border); background: linear-gradient(180deg, var(--gold-soft), var(--surface)); }
 .sc-sim-card--teaser { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--gold-soft), var(--surface) 52%, var(--gold-soft)); }
 .sc-sim-card--teaser::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: .8; }
 .sc-sim-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s4); }
 .sc-sim-card--teaser .sc-sim-head { margin-bottom: var(--s3); }
 .sc-sim-kicker { margin: 0 0 4px; color: var(--accent-text); font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
 .sc-sim-title { margin: 0; color: var(--text); font-size: 1.38rem; line-height: 1.16; }
 .sc-sim-copy { max-width: 72ch; margin: var(--s2) 0 0; color: var(--text-muted); font-size: .82rem; line-height: 1.55; }
 .sc-sim-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--gold-border); border-radius: var(--radius-pill); background: var(--gold-soft); color: var(--accent-text); font-size: .72rem; font-weight: 600; white-space: nowrap; }
 .sc-sim-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); margin: var(--s4) 0; }
 .sc-sim-metric { padding: var(--s3); border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface-muted); }
 .sc-sim-metric-lbl { display: block; margin-bottom: 4px; color: var(--text-faint); font-size: .72rem; }
 .sc-sim-metric-val { display: block; color: var(--text); font-size: 1.38rem; font-weight: 700; line-height: 1.15; }
 .sc-sim-status { margin-top: var(--s3); padding: var(--s3); border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface-muted); color: var(--text-muted); font-size: .82rem; line-height: 1.5; }
 .sc-sim-status--warn { border-color: var(--gold-border); background: var(--gold-soft); }
 .sc-sim-status--ch { border-color: var(--gold-border); }
 .sc-sim-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
 .sc-sim-actions .sc-btn.btn { width: auto; margin-top: 0; }
 .sc-sim-actions--hero { margin-top: var(--s4); }
 .sc-sim-actions--hero .sc-btn.btn { min-width: 260px; }
 .sc-sim-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin-top: var(--s4); }
 .sc-sim-step { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface-muted); color: var(--text-muted); font-size: .72rem; line-height: 1.35; }
 .sc-sim-step strong { display: block; margin-bottom: 2px; color: var(--text); font-size: .82rem; }
 .sc-sim-info { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--border-soft); }
 .sc-sim-info summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); color: var(--text-muted); font-size: .82rem; font-weight: 500; list-style: none; cursor: pointer; }
 .sc-sim-info summary::-webkit-details-marker { display: none; }
 .sc-sim-info summary::after { content: '▸'; color: var(--accent-text); font-size: .75rem; }
 .sc-sim-info[open] summary::after { content: '▾'; }
 .sc-sim-info-body { margin-top: var(--s3); }
 .sc-sim-info-note { margin: var(--s3) 0 0; color: var(--text-faint); font-size: .72rem; line-height: 1.5; }
 .sc-sim-stale-details { margin-top: var(--s2); }
 .sc-sim-stale-details summary { padding: 6px 0; font-size: .75rem; cursor: pointer; opacity: .85; }

 /* ── Footer actions, print button, back to top ────────────── */
 .sc-footer-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: var(--s6); }
 .sc-mini-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
 .sc-mini-actions a { display: inline-flex; align-items: flex-start; justify-content: center; gap: 10px; max-width: 340px; min-height: 42px; padding: 10px 16px; border: 1px solid var(--gold-border); border-radius: var(--radius-card); background: var(--gold-soft); color: var(--accent-text); font-size: .82rem; font-weight: 600; text-align: left; text-decoration: none; transition: transform var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard); }
 .sc-mini-actions a:hover { border-color: var(--gold); transform: translateY(-1px); }
 .sc-mini-actions__icon-wrap { flex: 0 0 38px; width: 38px; height: 38px; }
 .sc-mini-actions__icon { display: block; flex: 0 0 auto; width: 22px; height: 22px; object-fit: contain; }
 .sc-mini-actions__text { display: flex; flex-direction: column; gap: 3px; }
 .sc-mini-actions__label { color: var(--accent-text); font-size: .82rem; font-weight: 600; }
 .sc-mini-actions__desc { color: var(--text-muted); font-size: .75rem; font-weight: 400; line-height: 1.4; }
 .sc-print-btn.btn { margin: 0 auto; letter-spacing: .02em; }
 .sc-plus-feature-mark { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1px solid var(--gold-border); border-radius: var(--radius-button); background: var(--gold-soft); color: var(--accent-text); font-size: .88rem; font-weight: 700; line-height: 1; }
 .sc-plus-feature-mark::before { content: '+'; }
 .sc-print-brand { display: none; }
 .sc-print-brand__row { display: flex; align-items: center; gap: 16px; margin-bottom: 10px; }
 .sc-print-brand__logo { display: block; width: 180px; max-width: 42vw; height: auto; }
 .sc-print-brand__meta { display: flex; flex-direction: column; gap: 2px; }
 .sc-print-brand__title { color: var(--text); font-size: 1.38rem; font-weight: 700; line-height: 1.15; }
 .sc-print-brand__sub { color: var(--text-muted); font-size: .75rem; line-height: 1.4; }
 .sc-to-top { position: fixed; right: var(--s4); bottom: calc(var(--bottom-nav-space, 0px) + var(--s4)); z-index: var(--z-sticky); display: flex; align-items: center; justify-content: center; width: var(--touch-target); height: var(--touch-target); border: 1px solid var(--border); border-radius: var(--radius-button); background: var(--surface); color: var(--text); box-shadow: var(--shadow-elevated); opacity: 0; transform: translateY(10px); pointer-events: none; cursor: pointer; transition: opacity .25s ease, transform .25s ease; }
 .sc-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
 .sc-to-top:active { transform: translateY(0) scale(.96); }
 .sc-to-top svg { width: 20px; height: 20px; }

 /* ── Prüfstand (Verlauf) ──────────────────────────────────── */
 #sc-verlauf { margin-top: var(--s6); }
 #sc-verlauf .sc-verlauf-intro { margin-bottom: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--border-soft); }
 #sc-verlauf .sc-verlauf-intro__kicker { color: var(--accent-text); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
 #sc-verlauf .sc-verlauf-title-row { display: flex; align-items: center; gap: 8px; margin: 5px 0 8px; }
 #sc-verlauf .sc-verlauf-intro h2 { margin: 0; font-size: 1.38rem; line-height: 1.25; }




 #sc-verlauf .sc-verlauf-benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: var(--s3) 0 10px; }
 #sc-verlauf .sc-verlauf-benefit { display: flex; align-items: flex-start; gap: 7px; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-control); background: var(--surface-muted); color: var(--text-muted); font-size: .72rem; }
 #sc-verlauf .sc-verlauf-benefit__check { flex: 0 0 auto; color: var(--success); font-size: .82rem; font-weight: 800; line-height: 1.25; }
 #sc-verlauf .sc-verlauf-save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: var(--s3); margin-bottom: 4px; padding: 12px; border: 1px solid var(--gold-border); border-radius: var(--radius-card); background: var(--gold-soft); }
 #sc-verlauf .sc-verlauf-save-context { display: block; flex-basis: 100%; padding-left: 1px; color: var(--text-faint); font-size: .72rem; }
 #sc-verlauf .sc-verlauf-save-pin { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
 #sc-verlauf .sc-verlauf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border-soft); }
 #sc-verlauf .sc-verlauf-row:first-child { border-top: none; }
 #sc-verlauf .sc-verlauf-row.is-selected { margin: 4px -10px; padding: 10px 10px 10px 14px; border-top-color: transparent; border-radius: var(--radius-control); background: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
 #sc-verlauf .sc-verlauf-row.is-selected + .sc-verlauf-row { border-top-color: transparent; }
 #sc-verlauf .sc-verlauf-row.is-locked { opacity: .58; }
 #sc-verlauf .sc-verlauf-meta { flex: 1 1 240px; min-width: 0; color: var(--text-muted); font-size: .84rem; }
 #sc-verlauf .sc-verlauf-meta strong { color: var(--text); font-size: .88rem; }
 #sc-verlauf .sc-verlauf-badge { display: inline-block; margin-left: 6px; padding: 2px 6px; border: 1px solid var(--gold-border); border-radius: var(--radius-badge); color: var(--accent-text); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
 #sc-verlauf .sc-verlauf-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
 #sc-verlauf .sc-verlauf-btn { gap:6px; }
 
 
 
 
 
 #sc-verlauf .sc-verlauf-ico { display: inline-flex; flex: 0 0 auto; }
 #sc-verlauf .sc-verlauf-del { width:var(--touch-target);padding:0; }
 
 #sc-verlauf .sc-verlauf-empty { padding: 6px 0 2px; color: var(--text-muted); font-size: .82rem; }
 #sc-verlauf .sc-verlauf-plus-note { display: flex; align-items: flex-start; gap: 8px; margin: 4px 0 10px; padding: 9px 11px; border: 1px solid var(--gold-border); border-radius: var(--radius-control); background: var(--gold-soft); color: var(--text-muted); font-size: .75rem; line-height: 1.5; }
 #sc-verlauf .sc-verlauf-plus-note--access { margin-top: 2px; }
 #sc-verlauf .sc-verlauf-plus-note--compare { margin-top: 0; }
 #sc-verlauf .sc-verlauf-plus-mark { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 18px; height: 18px; margin-top: 1px; border: 1px solid var(--gold-border); border-radius: var(--radius-button); background: var(--gold-soft); color: var(--accent-text); font-size: .88rem; font-weight: 700; line-height: 1; }
 #sc-verlauf .sc-verlauf-plus-mark::before { content: '+'; }
 #sc-verlauf-compare { margin-top: 14px; padding: 14px; border: 1px solid var(--gold-border); border-radius: var(--radius-control); background: var(--gold-soft); scroll-margin-top: calc(var(--tool-shell-offset, 0px) + 16px); }
 #sc-verlauf-compare .sc-verlauf-view-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--gold-border); }
 #sc-verlauf-compare .sc-verlauf-view-heading { min-width: 0; }
 #sc-verlauf-compare .sc-verlauf-view-kicker { display: block; margin-bottom: 3px; color: var(--accent-text); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
 #sc-verlauf-compare .sc-verlauf-view-title { display: block; color: var(--text); font-size: .94rem; line-height: 1.4; }
 #sc-verlauf-compare .sc-verlauf-view-position { flex: 0 0 auto; padding: 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--text-muted); font-size: .72rem; white-space: nowrap; }
 #sc-verlauf-compare .sc-verlauf-view-close { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-button); background: var(--surface); color: var(--text); font: inherit; font-size: .75rem; font-weight: 700; cursor: pointer; }
 #sc-verlauf-compare h4 { margin: 12px 0 6px; color: var(--accent-text); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
 #sc-verlauf-compare h4:first-child { margin-top: 0; }
 #sc-verlauf-compare ul { margin: 4px 0 0; padding-left: 18px; }
 #sc-verlauf-compare li { margin: 2px 0; color: var(--text-muted); font-size: .84rem; line-height: 1.55; }
 #sc-verlauf-compare .sc-verlauf-note { margin-top: 12px; color: var(--text-muted); font-size: .75rem; }
 #sc-verlauf-compare .sc-verlauf-print-support { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
 #sc-verlauf-compare .sc-verlauf-print-support button { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border: 1px solid var(--gold-border); border-radius: var(--radius-button); background: var(--surface); color: var(--accent-text); font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; }
 #sc-verlauf-compare .sc-verlauf-print-support > span { color: var(--text-faint); font-size: .72rem; }
 .sc-verlauf-print-sheet { display: none; }
 .sc-verlauf-print__kicker { display: block; margin-bottom: 5px; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
 .sc-verlauf-print__title { margin: 0 0 14px; font-size: 1.38rem; line-height: 1.25; }
 .sc-verlauf-print__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; margin-bottom: 18px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-control); }
 .sc-verlauf-print__meta-item { display: flex; flex-direction: column; gap: 2px; }
 .sc-verlauf-print__meta-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
 .sc-verlauf-print__meta-value { font-size: .75rem; font-weight: 600; }
 .sc-verlauf-print-sheet h4 { margin: 16px 0 6px; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
 .sc-verlauf-print-sheet ul { margin: 4px 0 0; padding-left: 20px; }
 .sc-verlauf-print-sheet li { margin: 2px 0; font-size: .75rem; line-height: 1.5; }
 .sc-verlauf-print__note { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--border); font-size: .72rem; line-height: 1.5; }
 .sc-insights-inline-wrap { margin-top: var(--s5); }

 /* ── R4X Insights box (r337 r4x-insights-inline, context "steuer") ── */
 .tool-page--steuer-check .r4x-insights-inline { margin: 28px 0 8px; padding: 18px 18px 14px; border: 1px solid var(--gold-border); border-radius: var(--radius-card); background: var(--gold-soft); }
 .tool-page--steuer-check .r4x-insights-inline__eyebrow { margin: 0 0 6px; color: var(--accent-text); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
 .tool-page--steuer-check .r4x-insights-inline__title { margin: 0 0 4px; color: var(--text); font-size: 1rem; font-weight: 700; }
 .tool-page--steuer-check .r4x-insights-inline__text { margin: 0 0 12px; color: var(--text-muted); font-size: .84rem; line-height: 1.5; }
 .tool-page--steuer-check .r4x-insights-inline__row { display: flex; flex-wrap: wrap; gap: 8px; }
 .tool-page--steuer-check .r4x-insights-inline__row input { flex: 1 1 200px; min-width: 0; }
 .tool-page--steuer-check .r4x-insights-inline__note { margin: 10px 0 0; color: var(--text-muted); font-size: .72rem; line-height: 1.45; }
 .tool-page--steuer-check .r4x-insights-inline__note a { color: inherit; text-decoration: underline; }
 .tool-page--steuer-check .r4x-insights-inline__feedback { margin: 10px 0 0; color: var(--accent-text); font-size: .82rem; }

 /* ── Former r337 inline styles (route classes, see build/extract-tool-pages.mjs) ── */
 .tool-page--steuer-check .sc-u-mt2 { margin-top: var(--s2); }
 .tool-page--steuer-check .sc-u-mt3 { margin-top: var(--s3); }
 .tool-page--steuer-check .sc-u-mt4 { margin-top: var(--s4); }
 .tool-page--steuer-check .sc-u-mb3 { margin-bottom: var(--s3); }
 .tool-page--steuer-check .sc-u-mb4 { margin-bottom: var(--s4); }
 .tool-page--steuer-check .sc-u-block { display: block; }
 .tool-page--steuer-check .sc-u-copy { color: var(--text-muted); font-size: .82rem; line-height: 1.6; }
 .tool-page--steuer-check .sc-u-strong { color: var(--text); }
 .tool-page--steuer-check .sc-u-optional { color: var(--text-faint); font-weight: 400; }
 .tool-page--steuer-check .sc-u-note { margin-top: var(--s2); color: var(--text-faint); font-size: .72rem; }
 /* r44 (r35 V10): generated lists, warning lines, option checkboxes and the history action row. */
 .tool-page--steuer-check ul.sc-u-list-ok { margin: 0 0 var(--s3) calc(var(--s4) + var(--s1)); }
 .tool-page--steuer-check ul.sc-u-list-warn { margin: 0; padding-left: calc(var(--s4) + var(--s1)); }
 .tool-page--steuer-check ul.sc-u-list-details { margin: var(--s2) 0 0 calc(var(--s4) + var(--s1)); }
 .tool-page--steuer-check .sc-u-warning-line { margin: 0 0 calc(var(--s1) * 1.5); }
 .tool-page--steuer-check .sc-u-check { margin-top: calc(var(--s1) * .75); }
 .tool-page--steuer-check .sc-u-actions { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
}

/* Breakpoints of the r337 page (same widths). */
@layer components {
 @media (min-width: 820px) {
  .sc-import-results { width: min(1120px, calc(100vw - 40px)); margin-left: 50%; transform: translateX(-50%); }
  .sc-import-results .sc-card { padding: var(--s6) var(--s5); }
  .sc-table-scroll { margin: 0; padding: 0; overflow-x: auto; }
  .sc-table-scroll .sc-import-table { min-width: 0; }
  .sc-table-scroll .sc-import-table :is(td, th) { padding: 10px 9px; line-height: 1.35; vertical-align: top; white-space: normal; }
  .sc-table-scroll .sc-import-table th { line-height: 1.25; }
  .sc-import-table--documentation, .sc-import-table--disposals { font-size: .75rem; table-layout: fixed; }
  .sc-import-table--problems { font-size: .75rem; table-layout: auto; }
  .sc-collapsible--primary { margin-top: var(--s4); padding: 0 var(--s4); border: 1px solid var(--gold-border); border-radius: var(--radius-card); }
  .sc-collapsible--primary > .sc-collapsible-summary { padding: var(--s4) 0; border-top: none; letter-spacing: .02em; }
  .sc-collapsible--primary[open] { padding-bottom: var(--s3); }
  .sc-tax-doc-card > .sc-collapsible--doc { margin-top: 0; padding-top: 0; overflow: hidden; border-top: none; border-radius: var(--radius-control); }
  .sc-tax-doc-card > .sc-collapsible--doc + .sc-collapsible--doc { margin-top: 3px; }
  .sc-tax-doc-card > .sc-collapsible--doc:nth-of-type(even) { background: var(--surface-muted); }
  .sc-tax-doc-card > .sc-collapsible--doc > .sc-collapsible-summary { padding: var(--s3) var(--s4); }
  .sc-tax-doc-card > .sc-collapsible--doc[open] { background: var(--surface-strong); }
  .sc-import-table--problems :is(th, td) { white-space: normal; word-break: break-word; }
  .sc-import-table--problems :is(th, td):nth-child(1) { width: 80px; white-space: nowrap; }
  .sc-import-table--problems :is(th, td):nth-child(2) { width: 120px; white-space: nowrap; }
  .sc-import-table--problems :is(th, td):nth-child(3) { width: 110px; }
  .sc-import-table--problems :is(th, td):nth-child(4), .sc-import-table--problems :is(th, td):nth-child(5) { min-width: 190px; }
  .sc-import-table--documentation :is(th, td):nth-child(1) { width: 96px; white-space: nowrap; }
  .sc-import-table--documentation :is(th, td):nth-child(2) { width: 64px; white-space: nowrap; }
  .sc-import-table--documentation :is(th, td):nth-child(3) { width: 142px; }
  .sc-import-table--documentation :is(th, td):nth-child(4) { width: 128px; white-space: nowrap; }
  .sc-import-table--documentation :is(th, td):nth-child(5), .sc-import-table--documentation :is(th, td):nth-child(6) { width: 138px; white-space: nowrap; }
  .sc-import-table--documentation :is(th, td):nth-child(7) { width: 96px; }
  .sc-import-table--wrapnote { table-layout: auto; }
  .sc-import-table.sc-import-table--wrapnote :is(th, td) { width: auto; vertical-align: top; white-space: nowrap; }
  .sc-import-table.sc-import-table--wrapnote :is(th, td):last-child { min-width: 220px; line-height: 1.35; white-space: normal; word-break: break-word; }
  .sc-import-table--disposals :is(th, td):nth-child(1) { width: 92px; white-space: nowrap; }
  .sc-import-table--disposals :is(th, td):nth-child(2) { width: 138px; }
  .sc-import-table--disposals :is(th, td):nth-child(3) { width: 118px; white-space: nowrap; }
  .sc-import-table--disposals :is(th, td):nth-child(4), .sc-import-table--disposals :is(th, td):nth-child(5) { width: 112px; white-space: nowrap; }
  .sc-import-table--disposals :is(th, td):nth-child(6) { width: 78px; white-space: nowrap; }
  .sc-import-table--disposals :is(th, td):nth-child(7) { width: 122px; }
  .sc-import-table--disposals :is(th, td):nth-child(8) { width: 150px; }
  .sc-import-table--disposals :is(th, td):nth-child(9) { width: 42px; text-align: center; }
  .sc-table-scroll .sc-import-table--excluded :is(td, th):last-child { width: auto; min-width: 160px; max-width: 260px; padding: var(--s2) var(--s3); text-align: left; white-space: normal; }
  .sc-table-scroll .sc-import-table--documentation :is(th, td):last-child { width: 96px; padding: 10px 9px; text-align: left; }
  .sc-table-scroll .sc-import-table--disposals :is(th, td):last-child { width: 42px; padding: 10px 8px; text-align: center; }
  .sc-table-scroll .sc-import-table--simulation { width: 100%; min-width: 0; font-size: .75rem; table-layout: fixed; }
  .sc-table-scroll .sc-import-table--simulation :is(th, td) { padding: 10px 8px; line-height: 1.35; overflow-wrap: anywhere; word-break: normal; white-space: normal; }
  .sc-import-table--simulation :is(th, td):nth-child(1) { width: 16%; }
  .sc-import-table--simulation :is(th, td):nth-child(2) { width: 18%; }
  .sc-import-table--simulation :is(th, td):nth-child(3), .sc-import-table--simulation :is(th, td):nth-child(4) { width: 14%; }
  .sc-import-table--simulation :is(th, td):nth-child(5) { width: 16%; }
  .sc-import-table--simulation :is(th, td):nth-child(6) { width: 22%; }
  .sc-collapsible--simulation .sc-scroll-hint { display: none; }
  .sc-collapsible--simulation .sc-table-scroll { margin: 0; padding: 0; overflow-x: visible; }
  .sc-collapsible--simulation .sc-table-scroll-wrap::after { display: none; }
  .sc-table-scroll .sc-import-table--swap-doc { width: 100%; min-width: 0; font-size: .75rem; table-layout: fixed; }
  .sc-table-scroll .sc-import-table--swap-doc :is(th, td) { padding: 10px 9px; line-height: 1.35; overflow-wrap: anywhere; vertical-align: top; word-break: normal; white-space: normal; }
  .sc-import-table--swap-doc :is(th, td):nth-child(1) { width: 96px; }
  .sc-import-table--swap-doc :is(th, td):nth-child(2), .sc-import-table--swap-doc :is(th, td):nth-child(3) { width: 24%; }
  .sc-import-table--swap-doc :is(th, td):nth-child(4) { width: 130px; }
  .sc-import-table--swap-doc :is(th, td):nth-child(5) { width: 210px; }
 }
 @media (min-width: 1180px) { .sc-import-results { width: min(1180px, calc(100vw - 56px)); } }
 @media (max-width: 760px) { .sc-sim-head { flex-direction: column; } .sc-sim-metrics, .sc-sim-steps { grid-template-columns: 1fr; } .sc-sim-badge { white-space: normal; } }
 @media (max-width: 720px) { .sc-year-card--accordion .sc-year-card-head { padding-right: 0; } .sc-year-card-toggle { position: static; justify-content: center; width: 100%; margin-top: var(--s3); } }
 @media (max-width: 600px) { .sc-land-grid { grid-template-columns: 1fr; } .sc-paused-badge { margin-left: 0; } .sc-paused-title { font-size: 1.06rem; } }
 @media (max-width: 560px) {
  .sc-page { padding-top: 28px; }
  .sc-title-row { align-items: flex-start; gap: 12px; }
  .sc-title-icon { flex-basis: 48px; width: 48px; height: 48px; }
  .sc-title-icon img { width: 36px; height: 36px; }
  .sc-land-context { padding: var(--s4); }
  .sc-land-context-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .sc-land-step-head { align-items: flex-start; }
  .sc-land-step-head .sc-step-badge { width: 36px; height: 36px; }
  .sc-mini-actions { width: 100%; }
  .sc-mini-actions a { justify-content: flex-start; width: 100%; max-width: none; }
  .sc-mini-actions__icon-wrap { width: 36px; height: 36px; }
  .sc-mini-actions__icon { width: 20px; height: 20px; }
  .sc-import-flow__steps { grid-template-columns: 1fr; gap: var(--s2); }
  /* UX r31 (Daniel 30.09.2026, overlap): the rotated r337 arrow kept the column width and, turned by 90°, lay as a
     243 px tall strip over the centre of both import buttons (a tap there did nothing). It now stays in its own row. */
  .sc-import-flow__arrow { justify-self: center; width: 28px; min-height: 18px; transform: rotate(90deg); pointer-events: none; }
 .sc-import-cta { gap:10px;min-height:52px;padding:11px 16px;text-align:left; }
  .sc-import-summary-row { grid-template-columns: repeat(2, 1fr); }
  .sc-import-readiness__head { display: block; }
  .sc-status-pill { display: inline-flex; margin-top: 10px; }
  .sc-import-check { grid-template-columns: 22px 1fr; }
  .sc-import-check__value { grid-column: 2; }
  .sc-ambiguity-row { grid-template-columns: 1fr 1fr; }
  .sc-ambiguity-row span:last-child { grid-column: 1 / -1; }
  .sc-manual-toggle { flex-direction: column; align-items: flex-start; gap: var(--s3); }
  .sc-manual-toggle__action { align-self: flex-end; }
  .sc-result-context > summary { flex-direction: column; align-items: flex-start; }
  .sc-year-result { grid-template-columns: 1fr; gap: var(--s3); }
  .sc-sim-actions--hero .sc-btn.btn { width: 100%; min-width: 0; }
  .sc-sim-info { margin-top: var(--s3); }
  #sc-verlauf .sc-verlauf-row { box-sizing: border-box; align-items: stretch; max-width: 100%; }
  #sc-verlauf .sc-verlauf-row.is-selected { margin: 4px -6px; padding-left: 10px; }
  #sc-verlauf .sc-verlauf-meta { flex-basis: 100%; width: 100%; }
  #sc-verlauf .sc-verlauf-actions { display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 8px; width: 100%; max-width: 100%; min-width: 0; }
  #sc-verlauf .sc-verlauf-btn--view { grid-column: 1; grid-row: 1; justify-content: center; width: 100%; }
  #sc-verlauf .sc-verlauf-del { display: grid; place-items: center; grid-column: 2; grid-row: 1; width: var(--touch-target); min-width: var(--touch-target); padding: 7px; }
  #sc-verlauf .sc-verlauf-btn--compare { grid-column: 1 / -1; grid-row: 2; justify-content: center; width: 100%; max-width: 100%; min-width: 0; line-height: 1.35; text-align: center; white-space: normal; }
  #sc-verlauf-compare .sc-verlauf-view-position { white-space: normal; }
  #sc-verlauf .sc-verlauf-benefits { grid-template-columns: 1fr; }
  #sc-verlauf .sc-verlauf-title-row { align-items: flex-start; }

 }
 @media (max-width: 520px) {
  .sc-grid, .sc-info-grid { grid-template-columns: 1fr; }
  .sc-kauf-row { grid-template-columns: 1fr 1fr; }
  .sc-legal-badge { width: 42px; height: 42px; font-size: 1.63rem; }
  .sc-legal-head { gap: var(--s3); padding: var(--s3) var(--s4); }
 }
}

/* Print layout of the r337 page (current result or one Prüfstand). The layout layer outranks the component rules, so no
   priority flag is needed; controls that the page script shows with an inline display are hidden visually instead. */
@layer layout {
 @media print {
  body[data-surface] { padding: 0; background: var(--print-paper); }
  :is(.site-header, [data-info-bar], [data-install-hint], .workspace-bar, .site-footer, .skip-link, .consent-notice, .feedback, [data-bottom-nav], .bottom-nav) { display: none; }
  .tool-page--steuer-check :is(.sc-no-print, .sc-land-card, .sc-toggle-group, .sc-mode-group, .sc-add-btn, .sc-kauf-del, .sc-help, #import-empty-state, .sc-import-actions, .sc-stand, .sc-year-filter, .sc-collapsible-summary, .sc-manual-divider, .sc-row-manual-btn, .sc-scroll-hint, .sc-table-scroll-top, .sc-manual-toggle, .saved-results-slot) { display: none; }
  .tool-page--steuer-check :is(button, input[type=range], #sc-verlauf, #sc-print-btn, #sc-verlauf-save-btn, #import-handoff-wrap, .sc-manual-divider) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .tool-page--steuer-check .sc-page { max-width: 100%; padding: 0; color: var(--text); }
  .tool-page--steuer-check .sc-print-brand { display: block; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
  .tool-page--steuer-check .sc-print-brand .logo-dark { display: none; }
  .tool-page--steuer-check .sc-print-brand .logo-light { display: block; }
  .tool-page--steuer-check #sc-print-date { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: .72rem; }
  .tool-page--steuer-check :is(.sc-card, .sc-result, .sc-import-results, .sc-disclaimer, .sc-method-notice, .sc-import-precision-note, .sc-import-totals, .sc-info-grid, .sc-info-block) { break-inside: avoid; box-shadow: none; }
  .tool-page--steuer-check .sc-import-results { width: auto; margin-left: 0; transform: none; }
  .tool-page--steuer-check details.sc-collapsible > * { display: block; }
  .tool-page--steuer-check .sc-manual-wrap.is-deemph { max-height: none; overflow: visible; opacity: 1; }
  .tool-page--steuer-check .sc-table-scroll { margin: 0; padding: 0; overflow: visible; }
  .tool-page--steuer-check .sc-table-scroll .sc-import-table { min-width: 0; font-size: .66rem; }
  .tool-page--steuer-check .sc-table-scroll .sc-import-table :is(td, th) { white-space: normal; }
  .tool-page--steuer-check .sc-import-table.sc-print-cap tbody tr:nth-child(n+61) { display: none; }
  .tool-page--steuer-check .sc-print-only { display: block; margin-top: 6px; color: var(--text-muted); font-size: .66rem; font-style: italic; }
  body.sc-print-mode-verlauf .tool-page--steuer-check .sc-page > :not(.sc-print-brand, #sc-print-date, #sc-verlauf-print-sheet) { display: none; }
  body.sc-print-mode-verlauf .tool-page--steuer-check #sc-verlauf-print-sheet { display: block; }
  body.sc-print-mode-verlauf .tool-page--steuer-check .sc-verlauf-print__kicker { color: var(--accent-text); }
  body.sc-print-mode-verlauf .tool-page--steuer-check :is(.sc-verlauf-print__meta-label, .sc-verlauf-print__note) { color: var(--text-muted); }
 }
}
