/* Self-hosted fonts (fonts/): Bitter + DM Sans are variable fonts — one file
   covers all weights (Bitter wght 100-900, DM Sans wght 100-1000). DM Mono is
   static (400 + 500 only; Google Fonts has no 600 for it, so 600 in CSS keeps
   rendering as synthesized bold, as before). No Google Fonts requests. */

@font-face {
  font-family: "Bitter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/bitter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/dm-mono-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/dm-mono-500-latin.woff2") format("woff2");
}


:root {
  color-scheme: light;
  --paper: #f5f4ed;
  --white: #fffefa;
  --ink: #1d2925;
  --muted: #5a6a62;
  --error: #b34035;
  --green: #245c48;
  --green-dark: #193f34;
  --lime: #d7ed7b;
  --line: #e4e6dc;
  --orange: #e79a62;
  --orange-dark: #d9824a;
  --orange-light: #eda878; /* same accent, lighter — for text on dark green (passes contrast) */
  --mono: "DM Mono", monospace;
  --sans: "DM Sans", sans-serif;
  --display: "Bitter", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 85px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
/* Smooth page load — fade + rise, opacity/transform only (GPU-friendly).
   Pure CSS on purpose: if JS fails, the page still appears. */
main { animation: page-in .5s ease both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }

.site-header { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 10px 7.1%; border-bottom: 1px solid rgba(29,41,37,.08); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 20px var(--display); letter-spacing: -.3px; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px 9px 9px 3px; display: grid; place-items: center; background: var(--orange); color: var(--green-dark); font: 600 12px var(--mono); letter-spacing: -1px; }
.brand-img { width: 30px; height: 30px; display: block; }
.footer-brand .brand-img { width: 26px; height: 26px; }
/* Skip link: hidden until keyboard focus, then a green pill at the top.
   Without this it renders as stray text at the top-left of the page. */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--green); color: #fffefa; font: 600 14px var(--sans); text-decoration: none; transition: top .2s ease; }
.skip-link:focus-visible { top: 12px; outline: 2px solid var(--orange); outline-offset: 2px; }
.brand-period { color: var(--orange); }
.top-nav { display: flex; align-items: center; gap: 37px; margin-left: 65px; color: #64716c; font-size: 14px; }
.top-nav a:hover, .text-link:hover { color: var(--green); }
.header-cta { min-height: 44px; display: inline-flex; align-items: center; padding: 10px 17px; border: 1px solid transparent; border-radius: 6px; background: var(--orange); color: var(--green-dark); font-size: 14px; font-weight: 700; transition: background .2s, transform .15s; }
.header-cta:hover { background: var(--orange-dark); }
.header-cta:active { transform: scale(.97); }
.header-cta span { padding-left: 8px; color: var(--green-dark); }

.hero { position: relative; min-height: 480px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 48px 12.2% 60px 14%; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 300px at 78% 30%, #d7ed7b33, transparent 70%), radial-gradient(360px 260px at 88% 75%, #245c4814, transparent 70%), radial-gradient(380px 260px at 6% 88%, #e79a6226, transparent 70%); pointer-events: none; }
.hero-copy { position: relative; z-index: 2; padding-bottom: 13px; }
.eyebrow { margin: 0 0 20px; color: var(--green); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 1.4px; }
.eyebrow-dot { width: 6px; height: 6px; display: inline-block; margin: 0 7px 1px 0; border-radius: 50%; background: var(--orange); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 0; font: 700 clamp(45px, 5vw, 65px)/1.14 var(--display); letter-spacing: -1px; }
.hero h1 span { color: var(--green); }
.hero-description { max-width: 430px; margin: 22px 0 28px; color: #4f5f56; font-size: 17px; line-height: 1.8; }
.text-link { display: inline-flex; gap: 12px; align-items: center; color: var(--green); font-size: 14px; font-weight: 700; }
.hero-visual { position: relative; height: 365px; display: grid; place-items: center; }
.map-card { position: relative; z-index: 1; width: min(390px, 100%); height: 280px; padding: 18px 22px 15px; border: 1px solid #e5e3d6; border-radius: 4px; background: #fffdf6; box-shadow: 0 20px 50px #35584915; transform: rotate(3deg); }
.map-card-top { display: flex; align-items: center; justify-content: space-between; color: #8d9991; font: 9px var(--mono); letter-spacing: .5px; }
.map-compass { color: var(--green); font-size: 11px; }
.map-drawing { position: relative; height: 188px; margin: 10px -3px 4px; overflow: hidden; background: #f1f0e2; }
.street { position: absolute; z-index: 1; display: block; background: #fffdf6; border: 1px solid #e9e5d6; }
.street-one { width: 120%; height: 18px; top: 87px; left: -10%; transform: rotate(-23deg); }
.street-two { width: 20px; height: 120%; top: -10%; left: 47%; transform: rotate(18deg); }
.street-three { width: 120%; height: 13px; top: 30px; left: -10%; transform: rotate(26deg); }
.block { position: absolute; z-index: 0; display: block; width: 57px; height: 36px; border-radius: 2px; background: #d6dfc9; }
.block-one { top: 22px; left: 32px; }.block-two { right: 27px; top: 113px; width: 70px; height: 46px; }.block-three { bottom: 17px; left: 80px; width: 45px; height: 25px; }
.park { position: absolute; right: 33px; top: 17px; color: #8d9f7e; font: 8px var(--mono); letter-spacing: 1px; }
.route { position: absolute; z-index: 2; left: 68px; top: 74px; width: 158px; height: 48px; border-top: 2px dashed #e09059; border-right: 2px dashed #e09059; border-radius: 0 28px 0 0; transform: rotate(-17deg); }
.route-pin { position: absolute; z-index: 3; width: 9px; height: 9px; border: 2px solid #fffdf6; border-radius: 50%; background: #e09059; }
.pin-start { left: 61px; top: 105px; }.pin-end { right: 94px; top: 57px; }
.map-scale { display: flex; align-items: center; gap: 8px; width: 110px; color: #87918a; font: 8px var(--mono); }
.scale-line { position: relative; width: 63px; height: 1px; background: var(--green); }
.scale-line::before, .scale-line::after { position: absolute; top: -3px; width: 1px; height: 7px; background: var(--green); content: ""; }.scale-line::before { left: 0; }.scale-line::after { right: 0; }
.floating-note { position: absolute; z-index: 3; left: 1px; bottom: 21px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid #ecece2; border-radius: 7px; background: var(--white); box-shadow: 0 9px 25px #26352f12; transform: rotate(-2deg); }
.note-icon { color: var(--green); font-size: 20px; }.floating-note strong, .floating-note small { display: block; }.floating-note strong { font: 700 15px var(--display); }.floating-note small { padding-top: 3px; color: var(--muted); font-size: 11px; }.note-equals { color: #adb5aa; font-size: 15px; }
.visual-orbit { position: absolute; border: 1px solid #d9e3ce; border-radius: 50%; }.orbit-one { width: 370px; height: 370px; }.orbit-two { width: 300px; height: 300px; border-style: dashed; opacity: .8; }
.hero-index { position: absolute; right: -37px; bottom: 22px; color: #9aa39b; font: 9px var(--mono); letter-spacing: 1px; }

.calculator-section { padding: 36px 11.2% 64px; background: #eaece3; scroll-margin-top: 70px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; max-width: 1050px; margin: 0 auto 25px; }
.section-heading .eyebrow, .quick-title .eyebrow, .guide-intro .eyebrow, .faq-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2, .quick-title h2, .faq-heading h2 { margin: 0; font: 600 29px/1.25 var(--display); letter-spacing: -0.3px; }
.section-heading > p { margin: 0 2px 3px 0; color: #4f5f56; font-size: 15px; line-height: 1.75; }
.calculator { display: grid; grid-template-columns: 1fr 290px; max-width: 1050px; min-height: 385px; margin: auto; overflow: hidden; border: 1px solid #e7e8df; border-radius: 10px; background: var(--white); box-shadow: 0 18px 48px #293e3010; }
.calc-main { padding: 20px 33px 24px; }
.calc-toolbar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid #eff0e9; }
.live-indicator { color: #5a6a62; font: 11px var(--mono); text-transform: uppercase; letter-spacing: .5px; }.live-indicator span { display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: #76a876; }
.reset-button { min-height: 44px; padding: 0 4px; border: 0; background: transparent; color: #5a6a62; font-size: 13px; cursor: pointer; }.reset-button span { margin-left: 4px; font-size: 16px; vertical-align: -1px; }
#scale-form { padding-top: 20px; }
.target-label, .field label { display: block; margin-bottom: 10px; color: #4f5f56; font-size: 14px; font-weight: 600; letter-spacing: .2px; }
/* Segmented target control — travelling indicator (ui_motion pattern), replaces the dropdown */
.target-segmented { position: relative; display: flex; margin-bottom: 21px; padding: 4px; border-radius: 8px; background: #eef1e6; }
.target-segmented button { position: relative; z-index: 1; flex: 1; min-height: 44px; padding: 8px 6px; border: 0; background: transparent; color: #5a6a62; font: 600 13px var(--display); cursor: pointer; transition: color .2s; }
.target-segmented button[aria-pressed="true"] { color: var(--green-dark); }
.seg-indicator { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 6px; background: var(--white); box-shadow: 0 2px 8px #293e3020; transition: transform .25s ease; }
.target-segmented[data-active="1"] .seg-indicator { transform: translateX(100%); }
.target-segmented[data-active="2"] .seg-indicator { transform: translateX(200%); }
.input-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.field label { margin-bottom: 10px; font-size: 14px; }
.input-with-unit, .ratio-input { display: flex; height: 48px; align-items: center; border: 1px solid #e2e7dc; border-radius: 5px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.input-with-unit:focus-within, .ratio-input:focus-within { border-color: #82a993; box-shadow: 0 0 0 3px #245c4810; }
.field.is-valid .input-with-unit, .field.is-valid .ratio-input { border-color: #76a876; }
.field.is-invalid .input-with-unit, .field.is-invalid .ratio-input { border-color: var(--error); box-shadow: 0 0 0 3px #b3403518; }
.input-with-unit input, .ratio-input input { min-width: 0; width: 100%; height: 100%; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font: 500 16px var(--mono); }
.input-with-unit input::placeholder { color: #8a938c; font: 13px var(--sans); }
.input-with-unit select { height: 100%; min-height: 44px; padding: 0 10px 0 4px; border: 0; outline: 0; background: transparent; color: #4f5f56; font: 13px var(--mono); cursor: pointer; }
.ratio-input { padding-left: 11px; }.ratio-leading { flex-shrink: 0; color: #5a6a62; font: 13px var(--mono); }.ratio-input input { padding-left: 5px; }
.input-with-unit input:disabled, .ratio-input input:disabled { background: #f8f9f4; color: #89958c; cursor: not-allowed; }
.form-error { margin: 12px 0 0; color: var(--error); font-size: 14px; line-height: 1.6; }
.calculate-button { display: flex; width: 100%; height: 60px; align-items: center; justify-content: space-between; margin-top: 24px; padding: 0 22px; border: 0; border-radius: 8px; background: var(--orange); color: var(--green-dark); font-size: 17px; font-weight: 700; letter-spacing: .2px; cursor: pointer; box-shadow: 0 8px 20px #e79a6266, inset 0 0 0 1px #ffffff2e; transition: background .2s, transform .15s, box-shadow .2s; }
.calculate-button:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 12px 26px #e79a6280, inset 0 0 0 1px #ffffff2e; }.calculate-button:active { transform: scale(.98); box-shadow: 0 4px 12px #e79a6266, inset 0 0 0 1px #ffffff2e; }.calculate-button span { color: var(--green-dark); font-size: 20px; }
.live-hint { margin: 12px 0 0; color: #5a6a62; font-size: 14px; line-height: 1.65; }
.result-panel { margin-top: 15px; padding: 14px 15px 12px; border-radius: 5px; background: #f1f5e9; transition: background .25s; }
.result-panel.flash { animation: result-flash .35s ease; }
@keyframes result-flash { from { background: #fbeedf; } to { background: #f1f5e9; } }
.result-topline { display: flex; align-items: center; justify-content: space-between; color: #5a6a62; font: 12px var(--mono); letter-spacing: .75px; }
.result-check { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #dce9c7; color: var(--green); font-size: 12px; }
.result-value { margin: 6px 0 4px; color: var(--green-dark); font: 700 32px var(--display); letter-spacing: -0.3px; }
.result-context { margin: 0 0 8px; color: #4f5f56; font-size: 15px; line-height: 1.75; }
.result-also { margin: 0 0 12px; color: #5a6a62; font: 13px var(--mono); line-height: 1.65; }
.result-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; border-top: 1px solid #e1e9d8; color: #4f5f56; font: 12px var(--mono); }
.result-meta button { flex-shrink: 0; min-height: 44px; padding: 0 6px; border: 0; background: transparent; color: var(--green); font: 600 13px var(--sans); cursor: pointer; transition: background .2s, color .2s; border-radius: 4px; }
.result-meta button.copied { background: var(--green); color: #fff; }
.result-label { margin: 0 0 6px; color: #5a6a62; font: 12px var(--mono); letter-spacing: .75px; }
.result-panel > .copy-button { display: block; width: 100%; min-height: 48px; margin-top: 12px; padding: 10px 16px; border: 1px solid #cfd8c8; border-radius: 8px; background: #fffefa; color: var(--green); font: 600 14px var(--sans); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.result-panel > .copy-button:hover { border-color: var(--green); background: #eef1e6; }
.result-panel > .copy-button.copied { background: var(--green); border-color: var(--green); color: #fffefa; }
.calc-aside { padding: 30px 26px; background: #f3f5ec; }
.aside-number { color: #849283; font: 9px var(--mono); letter-spacing: .8px; }
.aside-art { position: relative; height: 112px; margin: 20px 0 16px; overflow: hidden; border-radius: 5px; background: #e6ecdc; }
.aside-art::before, .aside-art::after { position: absolute; content: ""; }
.aside-art::before { top: 0; left: 50%; width: 1px; height: 100%; background: #cbd6c3; }
.aside-art::after { top: 50%; left: 0; width: 100%; height: 1px; background: #cbd6c3; }
.art-short, .art-long { position: absolute; z-index: 1; top: 50%; height: 2px; background: var(--green); transform: translateY(-50%); }
.art-short { left: 21%; width: 22%; }.art-long { right: 20%; width: 42%; border-top: 1px dashed var(--orange); background: transparent; }
.art-short::before, .art-short::after, .art-long::before, .art-long::after { position: absolute; top: -4px; width: 1px; height: 10px; background: var(--green); content: ""; }.art-short::before, .art-long::before { left: 0; }.art-short::after, .art-long::after { right: 0; }
.art-label { position: absolute; z-index: 2; top: 18px; right: 18px; color: #72836d; font: 9px var(--mono); }
.calc-aside .aside-title { margin-bottom: 10px; font: 600 19px/1.35 var(--display); letter-spacing: -.4px; }
.calc-aside p { margin-bottom: 16px; color: #4f5f56; font-size: 14px; line-height: 1.75; }
.calc-aside a { display: inline-flex; min-height: 44px; align-items: center; color: var(--green); font-size: 14px; font-weight: 700; }.calc-aside a span { padding-left: 7px; }

.quick-examples { padding: 64px 11.2% 70px; }
.quick-title { max-width: 1050px; margin: auto auto 8px; }.quick-title h2 { font-size: 24px; }
.examples-hint { max-width: 1050px; margin: 0 auto 24px; color: #5a6a62; font-size: 14px; line-height: 1.6; }
/* No tile borders (Charles Liu) — cards separated by gap + background, staggered entry */
.example-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1050px; margin: auto; }
.example-card { display: flex; min-height: 104px; align-items: center; gap: 14px; padding: 22px; border: 0; border-radius: 8px; background: #fffefa; color: inherit; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 2px 10px #293e300d; transition: transform .18s, box-shadow .18s; animation: card-in .4s ease both; }
.example-card:nth-child(2) { animation-delay: .08s; }
.example-card:nth-child(3) { animation-delay: .16s; }
@keyframes card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.example-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #293e3014; }
.example-card:active { transform: scale(.98); }
.example-symbol { display: grid; flex-shrink: 0; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #edf2e4; color: var(--green); font-size: 17px; }
.example-text { display: flex; flex-direction: column; gap: 6px; }
.example-title { font: 600 15px var(--display); }
.example-sub { color: #5a6a62; font-size: 13px; line-height: 1.5; }.example-sub i { padding: 0 3px; color: var(--orange); font-style: normal; }
.example-arrow { margin-left: auto; color: #5a6a62; font-size: 16px; }

/* Maßstabstabelle — ordered scale table, rows tap to fill the calculator */
.table-section { padding: 64px 11.2% 70px; }
.table-section .quick-title { margin-bottom: 10px; }
.table-intro { max-width: 1050px; margin: 0 auto 24px; color: #4f5f56; font-size: 15px; line-height: 1.75; }
.scale-links-section { padding: 48px 11.2% 56px; }
.scale-links { max-width: 1050px; margin: 0 auto; color: #4f5f56; font-size: 15px; line-height: 1.9; }
.scale-links a { color: var(--green); font-weight: 600; }
.scale-links a:hover { text-decoration: underline; }
.scale-links [aria-current="page"] { color: var(--ink); font-weight: 700; }
.table-wrap { max-width: 1050px; margin: auto; border-radius: 8px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; overflow-x: auto; }
.scale-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.scale-table th, .scale-table td { padding: 14px 16px; text-align: left; white-space: nowrap; }
.scale-table thead th { color: var(--green); font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .8px; border-bottom: 2px solid #e7e8df; }
.scale-table tbody th { font: 600 15px var(--mono); color: var(--green-dark); }
.scale-table tbody td { color: #4f5f56; }
.scale-table tbody td:nth-child(2) { font-family: var(--mono); color: var(--ink); }
.scale-table tbody tr { border-bottom: 1px solid #eef0e9; cursor: pointer; transition: background .15s; }
.scale-table tbody tr:last-child { border-bottom: 0; }
.scale-table tbody tr:hover { background: #f1f5e9; }
.scale-table tbody tr:active { background: #e4edcf; }
.scale-table tbody tr:nth-child(even) { background: #fafaf5; }
.scale-table tbody tr:nth-child(even):hover { background: #f1f5e9; }
/* Length table (per-scale lookup, borrowed from the #1 competitor, own design). */
.length-tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; max-width: 1050px; margin: 0 auto; }
.length-tables .table-wrap { margin: 0; width: 100%; }
.length-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.length-table th, .length-table td { padding: 14px 16px; text-align: left; white-space: nowrap; }
.length-table thead th { color: var(--green); font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .8px; border-bottom: 2px solid #e7e8df; }
.length-table tbody th { font: 600 15px var(--mono); color: var(--green-dark); }
.length-table tbody td { color: var(--ink); font-family: var(--mono); }
.length-table tbody tr { border-bottom: 1px solid #eef0e9; cursor: pointer; transition: background .15s; }
.length-table tbody tr:last-child { border-bottom: 0; }
.length-table tbody tr:hover { background: #f1f5e9; }
.length-table tbody tr:active { background: #e4edcf; }
.length-table tbody tr:nth-child(even) { background: #fafaf5; }
.length-table tbody tr:nth-child(even):hover { background: #f1f5e9; }
/* Praxis-Beispiel (Diagramm auf den Maßstabsseiten) — reines CSS, kein Bild.
   Die Größe des Rechtecks kommt aus dem HTML (width + aspect-ratio). */
.diagram { max-width: 560px; margin: 0 auto; text-align: center; }
.diagram-size { margin: 0 0 12px; color: var(--green-dark); font: 600 14px var(--mono); }
.diagram-box { display: grid; place-items: center; margin: 0 auto; border: 2px solid var(--green); border-radius: 6px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; }
.diagram-box span { padding: 12px; color: var(--green-dark); font: 600 16px var(--display); }
.diagram-real { margin: 12px 0 0; color: #4f5f56; font-size: 15px; }
/* Statische Tabellen (Rechenbeispiele, Vergleich) — keine Klick-Zeilen. */
.scale-table--static tbody tr { cursor: default; }
/* Leserfreundliche Tabellen (nur Brutto-Netto): Zellen umbrechen statt
   seitlich zu scrollen, Geldbeträge rechtsbündig, Überschrift und Hinweis
   mit Abstand, Karten mit Abstand zueinander. */
.table-wrap.table-wrap--reader { margin: 0 auto 32px; padding: 0 20px 20px; }
.table-wrap--reader .scale-table caption { caption-side: top; padding: 14px 0 6px; text-align: left; color: var(--green); font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .8px; }
.table-wrap--reader .scale-table th,
.table-wrap--reader .scale-table td { white-space: normal; line-height: 1.5; }
.table-wrap--reader .scale-table td:last-child,
.table-wrap--reader .scale-table th:last-child { text-align: right; }
.table-wrap--reader .table-note { margin: 16px 0 4px; color: #4f5f56; font-size: 14px; line-height: 1.65; }
.table-wrap--reader .grenze-sub { display: block; margin-top: 2px; color: #7a8a80; font-size: 12px; }
@media (max-width: 900px) {
  .table-wrap.table-wrap--reader { padding: 0 12px 16px; }
}

.practice-section { padding: 48px 11.2% 24px; }
.practice-section .faq-list { max-width: 1050px; margin: 0 auto; }
.practice-number { margin-right: 6px; }

/* Two-scale compare — same length on a different map */
.compare-section { padding: 24px 11.2% 70px; background: #f5f4ed; }
.compare-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; max-width: 1050px; margin: 0 auto 12px; }
.compare-section .form-error { max-width: 1050px; margin: 0 auto 12px; }
.compare-result { max-width: 1050px; margin: 0 auto; }
.guide-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 0 10%; padding: 80px 15% 92px; background: var(--green-dark); color: #fffefa; }
.guide-section > [class$="-note"] { grid-column: 1 / -1; }
.guide-intro .eyebrow { color: var(--orange); }.guide-intro h2 { margin: 0 0 20px; font: 600 34px/1.22 var(--display); letter-spacing: -0.5px; }.guide-intro h2 span { color: var(--orange); }
.guide-intro > p:not(.eyebrow) { max-width: 360px; margin: 0; color: #c2cec5; font-size: 15px; line-height: 1.8; }
.formula-card { display: flex; flex-direction: column; gap: 10px; margin-top: 30px; padding: 20px; border: 1px solid #49675c; border-radius: 5px; background: #21483c; }
.formula-card span { color: #aebfb2; font: 10px var(--mono); text-transform: uppercase; letter-spacing: .8px; }.formula-card strong { color: var(--orange-light); font: 500 14px var(--mono); line-height: 1.5; }.formula-card small { color: #afbeb3; font-size: 12px; line-height: 1.6; }
.guide-steps { display: flex; flex-direction: column; justify-content: center; }
.guide-step { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid #426055; }.guide-step:first-child { padding-top: 0; }.guide-step:last-child { padding-bottom: 0; border-bottom: 0; }
.step-number { color: #98ae9d; font: 12px var(--mono); }.guide-step h3 { margin: 0 0 8px; font: 600 16px var(--display); }.guide-step p { max-width: 460px; margin: 0 0 12px; color: #c0cdc4; font-size: 14px; line-height: 1.8; }
.step-equation { display: inline-block; padding: 8px 10px; border-radius: 3px; background: #254c40; color: var(--orange-light); font: 12px var(--mono); }

.faq-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 0 10%; padding: 81px 15% 90px; }.faq-heading h2 { font-size: 31px; line-height: 1.17; }
.faq-list details { border-bottom: 1px solid #e2e5dc; }.faq-list details:first-child { border-top: 1px solid #e2e5dc; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 0; color: #34443b; font-size: 15px; font-weight: 600; line-height: 1.5; list-style: none; cursor: pointer; }.faq-list summary::-webkit-details-marker { display: none; }.faq-list summary span { color: var(--green); font: 22px var(--sans); transition: transform .2s; }.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 570px; margin: -4px 35px 20px 0; color: #4f5f56; font-size: 14px; line-height: 1.8; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 22px 7.1%; border-top: 1px solid #e4e6dc; color: #5a6a62; font-size: 12px; }.footer-brand { color: var(--ink); font-size: 16px; }.footer-brand .brand-mark { width: 26px; height: 26px; font-size: 10px; }.site-footer p { margin: 0; }.site-footer > span { font: 11px var(--mono); }

@media (max-width: 900px) {
  .site-header { padding: 0 5%; }.hero { padding: 52px 7% 66px; }.calculator-section, .quick-examples, .table-section { padding-right: 7%; padding-left: 7%; }
  .guide-section, .faq-section { padding-right: 9%; padding-left: 9%; gap: 0 7%; }
  .hero-index { right: 12px; }
  .target-segmented button { white-space: nowrap; font-size: 12px; }
  /* At tablet width the calculator + aside side-by-side squeezes the 3 inputs
     (scale value was clipped) — stack the card and give inputs room. */
  .calculator { grid-template-columns: 1fr; }
  .calc-aside { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 4px 18px; padding: 20px 24px; }.aside-number { grid-column: 1 / -1; }.aside-art { grid-row: span 3; height: 105px; margin: 8px 0 0; }.calc-aside .aside-title { margin: 6px 0 0; }.calc-aside p { margin: 0; }.calc-aside a { align-self: start; }
  .input-grid { grid-template-columns: 1fr 1fr; gap: 13px 10px; }.scale-field { grid-column: 1 / -1; }
  .length-tables { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 68px; }.site-header { min-height: 60px; }.top-nav, .site-nav { display: none; }.header-cta { padding: 10px 12px; font-size: 12px; }
  .target-segmented button { font-size: 12px; }
  .hero { display: block; min-height: auto; padding: 40px 7% 30px; }.hero h1 { font-size: clamp(43px, 12vw, 58px); letter-spacing: -2px; }.hero-description { font-size: 16px; line-height: 1.8; }
  .hero-visual { height: 310px; margin: 22px 0 0; }.map-card { width: min(390px, 89%); }.floating-note { left: -3px; bottom: 0; }.orbit-one { width: 320px; height: 320px; }.orbit-two { width: 270px; height: 270px; }.hero-index { right: 12px; bottom: 3px; }
  .calculator-section { padding: 50px 5% 56px; }.section-heading { align-items: start; gap: 15px; flex-direction: column; }.section-heading h2 { font-size: 24px; }.section-heading > p br { display: none; }
  .calculator { grid-template-columns: 1fr; }.calc-main { padding: 20px 17px; }.calc-aside { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 4px 18px; padding: 20px 18px; }.aside-number { grid-column: 1 / -1; }.aside-art { grid-row: span 3; height: 105px; margin: 8px 0 0; }.calc-aside .aside-title { margin: 6px 0 0; }.calc-aside p { margin: 0; }.calc-aside a { align-self: start; }
  .input-grid { grid-template-columns: 1fr 1fr; gap: 13px 10px; }.scale-field { grid-column: 1 / -1; }.target-segmented { margin-bottom: 18px; }
  .quick-examples { padding: 48px 5%; }.example-strip { grid-template-columns: 1fr; }.example-card { min-height: 80px; }
  .table-section { padding: 48px 5%; }.scale-links-section { padding: 40px 5% 48px; }.scale-table { font-size: 13px; }.scale-table th, .scale-table td { padding: 12px 8px; white-space: normal; line-height: 1.45; }.scale-table thead th { font-size: 11px; }.scale-table tbody th { font-size: 13px; } .length-table { font-size: 13px; }.length-table th, .length-table td { padding: 12px 8px; }.length-table thead th { font-size: 11px; }.length-table tbody th { font-size: 13px; }
  .practice-section { padding: 48px 5%; }
  .compare-section { padding: 48px 5%; }.compare-grid { grid-template-columns: 1fr; }
  .guide-section, .faq-section { grid-template-columns: 1fr; gap: 33px; padding: 56px 8%; }.guide-intro h2 { font-size: 31px; }.formula-card { margin-top: 19px; }.faq-section { gap: 26px; }.faq-heading h2 { font-size: 28px; }
  .site-footer { flex-wrap: wrap; gap: 10px; padding: 20px 6%; }.site-footer p { order: 3; width: 100%; }
}
/* Hub — tool grid, categories, why, hub hero visual */
.tools-section { padding: 56px 11.2% 64px; background: #eaece3; scroll-margin-top: 70px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1050px; margin: auto; }
.tool-card { display: flex; min-height: 104px; align-items: center; gap: 14px; padding: 22px; border-radius: 8px; background: #fffefa; color: inherit; text-align: left; box-shadow: 0 2px 10px #293e300d; transition: transform .18s, box-shadow .18s; }
/* Live tools pop: orange top edge + warm icon chip. "Bald da" cards stay flat and quiet. */
a.tool-card { border-top: 3px solid var(--orange); box-shadow: 0 4px 16px #293e3012; }
a.tool-card .tool-icon { background: #fbeedd; color: var(--green-dark); }
a.tool-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px #293e3014; }
a.tool-card:active { transform: scale(.98); }
.tool-icon { display: grid; flex-shrink: 0; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #edf2e4; color: var(--green); font-size: 17px; }
.tool-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tool-title { font: 600 15px var(--display); }
.tool-desc { color: #5a6a62; font-size: 13px; line-height: 1.5; }
.tool-arrow { margin-left: auto; flex-shrink: 0; color: #5a6a62; font-size: 16px; }
.tool-badge { display: inline-block; flex-shrink: 0; padding: 3px 9px; border-radius: 20px; background: #eef1e6; color: #5a6a62; font: 11px var(--mono); white-space: nowrap; }
.tool-card--soon { background: #f4f3ea; box-shadow: none; }
.tool-card--soon .tool-icon { background: #e9eae0; color: #8a938c; }
.categories-section { padding: 64px 11.2% 70px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1050px; margin: auto; }
.cat-card { padding: 24px; border-radius: 8px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; }
.cat-card h3 { margin: 0 0 8px; font: 600 18px var(--display); letter-spacing: -.3px; }
.cat-card ul { margin: 0; padding: 0; list-style: none; }
.cat-card li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #eef0e9; font-size: 15px; }
.cat-card li:last-child { border-bottom: 0; }
.cat-card li a { color: var(--green); font-weight: 700; }
.why-section { padding: 64px 11.2% 70px; background: var(--green-dark); color: #fffefa; }
.why-section .eyebrow { color: var(--orange); }
.why-section .quick-title h2 { color: #fffefa; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1050px; margin: 24px auto 0; }
.why-item { padding: 22px; border-radius: 8px; background: #21483c; }
.why-icon { display: grid; width: 36px; height: 36px; margin-bottom: 14px; place-items: center; border-radius: 50%; background: #edf2e4; color: var(--green); font-size: 17px; font-weight: 700; }
.why-item h3 { margin: 0 0 6px; font: 600 16px var(--display); }
.why-item p { margin: 0; color: #c0cdc4; font-size: 14px; line-height: 1.75; }
.hub-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hub-mini { width: min(340px, 92%); padding: 16px 18px; border-radius: 8px; background: var(--white); box-shadow: 0 12px 30px #293e3014; text-align: left; }
.hub-mini:nth-child(1) { transform: rotate(-1.5deg); }
.hub-mini:nth-child(2) { transform: rotate(1deg); }
.hub-mini:nth-child(3) { transform: rotate(-.5deg); }
.hub-mini-label { display: block; margin-bottom: 6px; color: #849283; font: 9px var(--mono); letter-spacing: .8px; }
.hub-mini strong { display: block; font: 700 20px var(--display); letter-spacing: -.4px; }
.hub-mini small { color: var(--muted); font-size: 12px; }
.more-tools { padding: 64px 11.2% 70px; }
.more-tools-link { max-width: 1050px; margin: 22px auto 0; }
.more-tools-link a { color: var(--green); font-size: 14px; font-weight: 700; }
.input-grid--two { grid-template-columns: 1fr 1fr; }
/* Input boxes stay aligned in every grid row (2026-11-20): labels wrap to
   different heights ("Länge auf dem Plan" runs to two lines at ~960px,
   "Maßstab" fits on one), which pushed some boxes a full line below the
   others. A two-line minimum label height equalises them, so every box
   starts at the same height. This replaces the earlier margin-top:auto
   fix on the boxes (Altersrechner, 2026-11-20): that breaks rows where
   one field has a hint below its box, e.g. the scale field. */
.field label { line-height: 1.65; min-height: 3.3em; }
.input-with-unit input[type="date"] { font-family: var(--sans); font-size: 15px; font-weight: 500; }
.result-value--age { font-size: 26px; line-height: 1.3; }

/* Hub responsive — NOTE: these must sit AFTER the hub base rules above,
   or the base 3-col grid wins on source order. */
@media (max-width: 900px) {
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .tools-section, .categories-section, .why-section, .more-tools { padding: 48px 5%; }
  .tool-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .input-grid--two { grid-template-columns: 1fr; }
  .hub-visual { gap: 10px; }
  .hub-mini { width: min(340px, 100%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  main { animation: none; }
  .example-card { animation: none; }
}

/* Tool pages: compact hero — the calculator, not the intro, is the star.
   Lecture point 3: the tool must sit above the fold. The hero visual
   (map card) is hidden here; the H1 + one-line intro stay. */
.tool-page .hero { min-height: 0; grid-template-columns: 1fr; padding: 34px 11.2% 30px; }
.tool-page .hero-visual { display: none; }
.tool-page .hero h1 { font-size: clamp(34px, 4vw, 46px); }
.tool-page .hero-description { margin: 14px 0 0; }
.tool-page .hero .text-link { display: none; }
.tool-page .hero-copy { padding-bottom: 0; }
.tool-page .calculator-section { padding-top: 16px; }
.tool-page .section-heading { margin-bottom: 15px; }
.tool-page .calc-main { padding-top: 12px; }
.tool-page .calc-toolbar { padding-bottom: 8px; }
@media (max-width: 680px) {
  /* On phones the intro line costs a full screen of scroll — the H1 says
     what the tool does. Hide it so the first input sits above the fold. */
  .tool-page .hero-description { display: none; }
  .tool-page .calculator-section { padding-top: 24px; }
  .tool-page .section-heading { margin-bottom: 12px; }
  .tool-page .target-segmented { margin-bottom: 12px; }
}

/* Preset chips (Maßstab: häufige Maßstäbe, ein Tipp füllt den Rechner) */
.preset-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.preset-label { margin-right: 2px; color: #5a6a62; font-size: 13px; font-weight: 600; }
.preset-chip { min-height: 44px; padding: 8px 14px; border: 1px solid #e2e7dc; border-radius: 20px; background: #fff; color: var(--green); font: 600 13px var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.preset-chip:hover { border-color: var(--green); background: #f1f5e9; }
.field-hint { display: block; margin-top: 8px; color: #5a6a62; font-size: 13px; line-height: 1.5; }
.result-actions { display: flex; flex-wrap: wrap; gap: 4px; }
/* Flächen-Rechner — wie der Vergleichs-Rechner aufgebaut */
.area-section { padding: 24px 11.2% 70px; }
.area-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; max-width: 1050px; margin: 0 auto 12px; }
.area-section .form-error { max-width: 1050px; margin: 0 auto 12px; }
#area-result-panel { max-width: 1050px; margin: 0 auto; }
/* Bildschirm-Lineal */
.ruler-section { padding: 48px 11.2% 70px; }
.ruler-box { max-width: 1050px; margin: 0 auto; padding: 24px; border-radius: 8px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; }
.ruler-calibrate { overflow-x: auto; }
.ruler-cal-label { color: #4f5f56; font-size: 14px; font-weight: 600; }
.ruler-cal-line { height: 6px; margin: 12px 0 4px; border-radius: 3px; background: var(--green); }
.ruler-cal-value { color: #5a6a62; font: 12px var(--mono); }
.ruler-slider-label { display: block; margin: 20px 0 8px; color: #4f5f56; font-size: 14px; font-weight: 600; }
.ruler-box input[type="range"] { width: 100%; accent-color: var(--green); }
.ruler-display { margin-top: 24px; overflow-x: auto; border-top: 2px solid var(--green); }
.ruler-ticks { position: relative; height: 56px; }
.ruler-tick { position: absolute; top: 0; width: 1px; height: 12px; background: var(--green); }
.ruler-tick span { position: absolute; top: 14px; left: -4px; color: #5a6a62; font: 11px var(--mono); }
.ruler-note { margin: 16px 0 8px; color: #4f5f56; font-size: 14px; }
@media (max-width: 680px) {
  .area-grid { grid-template-columns: 1fr; }
  .ruler-section { padding: 48px 5%; }
  .area-section { padding: 24px 5% 56px; }
}
/* Drucken: nur der Rechner mit Ergebnis */
@media print {
  .site-header, .hero, .quick-examples, .table-section, .scale-links-section, .guide-section, .practice-section, .compare-section, .area-section, .ruler-section, .faq-section, .more-tools, .site-footer, .calc-aside, .preset-chips, .ad-slot, .back-to-top { display: none !important; }
  body { background: #fff; }
  .calculator-section { padding: 0; background: none; }
  .calculator { box-shadow: none; }
  main { animation: none; }
}
/* Ad slot placeholder (2026-11-24) — reserved space below the tool for
   future AdSense. Pure CSS: no scripts, no external requests. Fixed
   heights reserve the space so a real ad loads without layout shift
   (leaderboard 728x90 on desktop, medium rectangle 300x250 on phones).
   The label is "Anzeige" on this site; concretecalc. uses "Advertisement"
   in its own slot markup — the class is shared, the text is per-site. */
.ad-slot { max-width: 728px; margin: 32px auto 0; padding: 20px 20px 16px; border: 1px dashed var(--line); border-radius: 8px; background: var(--white); text-align: center; }
.ad-slot-label { display: block; margin-bottom: 10px; color: var(--muted); font: 500 10px var(--mono); text-transform: uppercase; letter-spacing: 1.5px; }
.ad-slot-box { display: grid; place-items: center; min-height: 90px; color: var(--muted); font-size: 13px; }
@media (max-width: 680px) {
  .ad-slot { margin-top: 24px; }
  .ad-slot-box { min-height: 250px; }
}
/* Back-to-top button (2026-11-25) — fixed bottom-right, appears after
   500 px of scroll (JS toggles .is-visible). Orange button, dark-green
   arrow — same language as the calculate button. JS lifts it above the
   footer so it never covers footer text. Hidden in print (see print list).
   Tokens are shared with concretecalc.: build_styles.py swaps green->slate
   and orange->amber, so this block flows through unchanged in shape. */
.back-to-top { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--orange); color: var(--green-dark); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 8px 20px #293e301f; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s ease, transform .25s ease, visibility .25s, background .2s; }
.back-to-top:hover { background: var(--orange-dark); }
.back-to-top:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top.is-visible:active { transform: scale(.96); }
@media (max-width: 680px) {
  .back-to-top { right: 12px; width: 44px; height: 44px; font-size: 20px; }
}
/* Prozentrechner (2026-11-25) — Modus-Auswahl mit 8 Modi. Kein Schiebe-Pill
   wie beim Maßstab (3 Modi), sondern ein Raster aus Schaltflächen: 4 Spalten
   auf dem Computer, 2 auf dem Handy. Aktiver Modus ist grün. */
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 21px; padding: 4px; border-radius: 12px; background: #eef1e6; }
.mode-btn { min-height: 44px; padding: 8px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: 600 13px var(--sans); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.mode-btn:hover { background: #fffefa; color: var(--green); }
.mode-btn[aria-pressed="true"] { background: var(--green); color: #fffefa; box-shadow: 0 2px 8px #245c4833; }
/* Nur die Felder des aktiven Modus sind sichtbar; display: contents lässt
   die .field-Kinder direkt im .input-grid liegen. */
.mode-fields { display: none; }
.mode-fields.is-active { display: contents; }
/* Prozentrechner: zwei Felder nebeneinander (der Maßstab hat drei). */
.prozent-page .input-grid { grid-template-columns: 1fr 1fr; }
/* Einheit hinten im Eingabefeld (%, €) — wie .ratio-leading, nur rechts. */
.unit-suffix { flex-shrink: 0; padding-right: 12px; color: #5a6a62; font: 13px var(--mono); }
/* Prozentrechner — Hero-Karte (reines CSS, kein Bild): alter Preis
   durchgestrichen, neuer Preis groß, Ersparnis darunter. */
.percent-card { width: min(340px, 100%); padding: 26px 26px 22px; border-radius: 10px; background: var(--white); box-shadow: 0 18px 48px #293e3010; }
.percent-card-top { display: flex; align-items: center; justify-content: space-between; color: #8d9991; font: 9px var(--mono); letter-spacing: .5px; }
.percent-badge { padding: 4px 8px; border-radius: 4px; background: var(--orange); color: var(--green-dark); font: 700 13px var(--sans); }
.percent-prices { display: flex; align-items: baseline; gap: 12px; margin: 20px 0 10px; }
.percent-old { color: #9aa39b; font: 600 20px var(--display); text-decoration: line-through; }
.percent-arrow { color: var(--orange); font-size: 20px; }
.percent-new { color: var(--green-dark); font: 700 34px var(--display); letter-spacing: -0.5px; }
.percent-note { color: var(--muted); font-size: 14px; }
@media (max-width: 680px) {
  .mode-grid { grid-template-columns: 1fr 1fr; }
}
/* Prozentrechner: fehlerhaftes Feld rot umranden (Meldung steht in .form-error). */
.prozent-page .field.has-error input { border-color: var(--error); }

/* BMI-Rechner (2026-11-26): zwei Felder nebeneinander (wie Prozent). */
.bmi-page .input-grid { grid-template-columns: 1fr 1fr; }
/* BMI-Rechner: fehlerhaftes Feld rot umranden (Meldung steht in .form-error). */
.bmi-page .field.has-error input { border-color: var(--error); }
/* „(optional)" hinter dem Feldnamen — leise, damit Pflichtfelder zuerst auffallen. */
.field-optional { color: var(--muted); font: 400 13px var(--sans); }
/* BMI-Rechner — Hero-Karte (reines CSS, kein Bild): BMI groß, Kategorie darunter. */
.bmi-card { width: min(340px, 100%); padding: 26px 26px 22px; border-radius: 10px; background: var(--white); box-shadow: 0 18px 48px #293e3010; }
.bmi-card-top { display: flex; align-items: center; justify-content: space-between; color: #8d9991; font: 9px var(--mono); letter-spacing: .5px; }
.bmi-badge { padding: 4px 8px; border-radius: 4px; background: var(--green); color: #fffefa; font: 700 13px var(--sans); }
.bmi-card-value { margin: 20px 0 4px; color: var(--green-dark); font: 700 34px var(--display); letter-spacing: -0.5px; }
.bmi-card-cat { color: var(--green); font: 600 15px var(--display); }
.bmi-card-note { margin-top: 10px; color: var(--muted); font-size: 14px; }
/* BMI-Farbskala im Ergebnis: 6 WHO-Klassen über den Bereich 14–42,
   der Marker zeigt den eigenen BMI (JS setzt left in %). */
.bmi-scale { margin: 14px 0 4px; }
.bmi-scale-track { position: relative; display: flex; height: 12px; border-radius: 6px; }
.bmi-seg { height: 100%; }
.bmi-seg--unter { width: 16.07%; background: #8fb8d8; border-radius: 6px 0 0 6px; }
.bmi-seg--normal { width: 23.21%; background: #4d9b6a; }
.bmi-seg--ueber { width: 17.86%; background: var(--orange); }
.bmi-seg--adi1 { width: 17.86%; background: var(--orange-dark); }
.bmi-seg--adi2 { width: 17.86%; background: #c25e3a; }
.bmi-seg--adi3 { width: 7.14%; background: var(--error); border-radius: 0 6px 6px 0; }
.bmi-scale-marker { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
.bmi-scale-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 10px 0 0; color: #5a6a62; font: 11px var(--mono); }
.bmi-scale-legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; background: var(--dot, #999); }
.lg-unter { --dot: #8fb8d8; }
.lg-normal { --dot: #4d9b6a; }
.lg-ueber { --dot: var(--orange); }
.lg-adi1 { --dot: var(--orange-dark); }
.lg-adi2 { --dot: #c25e3a; }
.lg-adi3 { --dot: var(--error); }
/* Zusatzzeilen im Ergebnis (Abstand zum Normalgewicht, Taille, Altershinweis). */
.result-extra { margin: 0 0 12px; color: #5a6a62; font: 13px var(--mono); line-height: 1.7; }
.result-extra:empty { display: none; }
/* Hinweis unter dem Ergebnis: BMI ist kein Arzt. */
.bmi-disclaimer { margin: 12px 0 0; color: #5a6a62; font-size: 13px; line-height: 1.6; }
/* Eigene Zeile in der WHO-Tabelle markieren („← du" hängt am Kategorienamen). */
.scale-table tbody tr.is-you,
.scale-table tbody tr.is-you:nth-child(even) { background: #e4edcf; }
.scale-table tbody tr.is-you th:first-child::after { content: " ← du"; color: var(--green); font-weight: 700; }
/* Quellenzeile unter der WHO-Tabelle. */
.sources-line { margin: 14px auto 0; max-width: 1050px; color: #5a6a62; font-size: 13px; line-height: 1.7; }
.sources-line a { color: var(--green); }
/* Ehrlicher Kasten unter der WHO-Tabelle: Alterstabellen sind nicht von der WHO. */
.bmi-note { margin: 24px auto 0; max-width: 1050px; padding: 18px 20px; border-radius: 8px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; }
.bmi-note h3 { margin: 0 0 8px; color: var(--green-dark); font: 700 18px var(--display); }
.bmi-note p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.65; }
@media (max-width: 680px) {
  /* BMI-Rechner: Beispielkarten brechen auf dem Handy um — die Ergebniszeile
     geht auf eine eigene Zeile, sonst quetscht sich „175 cm · 70 kg" zu einer
     senkrechten Spalte und das Ergebnis läuft aus dem Bildschirm. */
  .bmi-page .example-card { flex-wrap: wrap; }
  .bmi-page .example-card h3 { font-size: 16px; }
  .bmi-page .example-result { flex-basis: 100%; }
}

/* Tage-Rechner (2026-11-26): drei Modi (zwischen / plus / bis) im
   Modus-Raster — 3 Spalten auf dem Computer, 2 auf dem Handy.
   Zwei Felder nebeneinander, wie bei Prozent und BMI. */
.tage-page .mode-grid { grid-template-columns: repeat(3, 1fr); }
.tage-page .input-grid { grid-template-columns: 1fr 1fr; }
/* Tage-Rechner: fehlerhaftes Feld rot umranden (Meldung steht in .form-error). */
.tage-page .field.has-error input { border-color: var(--error); }
/* Datumseingabe + kleiner „Heute“-Knopf daneben. */
.date-row { display: flex; gap: 8px; align-items: stretch; }
.date-row input[type="date"] { flex: 1 1 auto; min-width: 0; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); font: 500 15px var(--sans); }
.date-row input[type="date"]:focus { border-color: var(--green); outline: none; }
.today-btn { flex: 0 0 auto; min-height: 48px; padding: 8px 14px; border: 1px solid #e2e7dc; border-radius: 8px; background: #fffefa; color: var(--green); font: 600 13px var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
.today-btn:hover { border-color: var(--green); background: #f1f5e9; }
/* Häkchen-Zeilen (Enddatum mitzählen / Nur Arbeitstage). */
.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; color: var(--ink); font: 600 15px var(--sans); cursor: pointer; }
.check-row input[type="checkbox"] { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); cursor: pointer; }
/* Feiertage-Box: Textfeld (ein Datum pro Zeile) + Knopf für die
   bundesweiten Feiertage. Nur sichtbar, wenn „Nur Arbeitstage“ an ist. */
.holiday-box { margin: 4px 0 16px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #f8f7f0; }
.holiday-box label { display: block; margin-bottom: 8px; color: var(--ink); font: 600 15px var(--sans); }
.holiday-box textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); font: 500 14px var(--mono); resize: vertical; }
.holiday-box textarea:focus { border-color: var(--green); outline: none; }
.holiday-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.holiday-box .field-hint { margin: 10px 0 0; }
/* Tage-Rechner — Hero-Karte (reines CSS, kein Bild): Urlaub, 18 Tage groß. */
.tage-card { width: min(340px, 100%); padding: 26px 26px 22px; border-radius: 10px; background: var(--white); box-shadow: 0 18px 48px #293e3010; }
.tage-card-top { display: flex; align-items: center; justify-content: space-between; color: #8d9991; font: 9px var(--mono); letter-spacing: .5px; }
.tage-badge { padding: 4px 8px; border-radius: 4px; background: var(--orange); color: var(--green-dark); font: 700 13px var(--sans); }
.tage-card-value { margin: 20px 0 4px; color: var(--green-dark); font: 700 34px var(--display); letter-spacing: -0.5px; }
.tage-card-cat { color: var(--green); font: 600 15px var(--display); }
.tage-card-note { margin-top: 10px; color: var(--muted); font-size: 14px; }
/* Ehrlicher Kasten unter der Anleitung: Fristen nach dem BGB. */
.tage-note { margin: 24px auto 0; max-width: 1050px; padding: 18px 20px; border-radius: 8px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; }
.tage-note h3 { margin: 0 0 8px; color: var(--green-dark); font: 700 18px var(--display); }
.tage-note p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.65; }
.tage-note a { color: var(--green); }
@media (max-width: 680px) {
  /* Tage-Rechner: Modus-Raster auf dem Handy 2-spaltig (die 3-spaltige
     .tage-page-Regel oben würde sonst wegen der höheren Spezifität gewinnen). */
  .tage-page .mode-grid { grid-template-columns: 1fr 1fr; }
  /* Tage-Rechner: Datumsfelder untereinander — zwei Spalten sind auf dem Handy
     zu eng (natives Datumsfeld + Heute-Knopf brauchen je ~245 px, sonst läuft
     .calc-main aus der Karte und wird rechts abgeschnitten). */
  .tage-page .input-grid { grid-template-columns: 1fr; }
  /* Tage-Rechner: Beispielkarten brechen auf dem Handy um — die Ergebniszeile
     geht auf eine eigene Zeile (gleiche Falle wie beim BMI am 390px-Bildschirm). */
  .tage-page .example-card { flex-wrap: wrap; }
  .tage-page .example-card h3 { font-size: 16px; }
  .tage-page .example-result { flex-basis: 100%; }
}

/* Stunden-Rechner / Arbeitszeitrechner (2026-11-26): drei Modi (Von–bis /
   Liste / Umrechner) im Modus-Raster — 3 Spalten auf dem Computer, 2 auf
   dem Handy. Zwei Felder nebeneinander, wie bei Prozent, BMI und Tage. */
.stunden-page .mode-grid { grid-template-columns: repeat(3, 1fr); }
.stunden-page .input-grid { grid-template-columns: 1fr 1fr; }
/* Stunden-Rechner: fehlerhaftes Feld rot umranden (Meldung steht in .form-error). */
.stunden-page .field.has-error input { border-color: var(--error); }
.stunden-page .time-row.has-error input { border-color: var(--error); }
/* Uhrzeit-Eingaben (nativ, 24 Stunden) — wie die Datumsfelder beim Tage-Rechner. */
.stunden-page input[type="time"] { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); font: 500 15px var(--sans); }
.stunden-page input[type="time"]:focus { border-color: var(--green); outline: none; }
/* Pause: eigene Zeile über beide Spalten. */
.stunden-page .pause-field { grid-column: 1 / -1; }
/* Stunden-Rechner — Hero-Karte (reines CSS, kein Bild): 8:00 netto groß. */
.stunden-card { width: min(340px, 100%); padding: 26px 26px 22px; border-radius: 10px; background: var(--white); box-shadow: 0 18px 48px #293e3010; }
.stunden-card-top { display: flex; align-items: center; justify-content: space-between; color: #8d9991; font: 9px var(--mono); letter-spacing: .5px; }
.stunden-badge { padding: 4px 8px; border-radius: 4px; background: var(--orange); color: var(--green-dark); font: 700 13px var(--sans); }
.stunden-card-value { margin: 20px 0 4px; color: var(--green-dark); font: 700 34px var(--display); letter-spacing: -0.5px; }
.stunden-card-cat { color: var(--green); font: 600 15px var(--display); }
.stunden-card-note { margin-top: 10px; color: var(--muted); font-size: 14px; }
/* Zeiten-Liste: Wochentag + Eingabe + Leeren-Knopf. min-width: 0 überall,
   damit auf dem Handy nichts aus der Karte läuft (gleiche Falle wie beim
   Tage-Rechner am 390px-Bildschirm). */
.time-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.time-row { min-width: 0; }
.time-row-grid { display: grid; grid-template-columns: 46px minmax(0, 1fr) 44px; gap: 8px; align-items: center; min-width: 0; }
.day-label { color: var(--muted); font: 600 13px var(--mono); }
.time-clear { min-height: 48px; padding: 0; border: 1px solid #e2e7dc; border-radius: 8px; background: #fffefa; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; transition: border-color .2s, color .2s; }
.time-clear:hover { border-color: var(--error); color: var(--error); }
/* Sanfte Korrektur bei der 60er-Falle („Meinst du 7:45? Das sind 7,75 Stunden."). */
.trap-hint { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.trap-hint[hidden] { display: none; }
/* Umrechner: drei Felder nebeneinander (Uhrzeit / Dezimal / Minuten). */
.stunden-page .converter-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
/* Ehrlicher Kasten unter der Anleitung: Zeitumstellung. */
.stunden-note { margin: 24px auto 0; max-width: 1050px; padding: 18px 20px; border-radius: 8px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; }
.stunden-note h3 { margin: 0 0 8px; color: var(--green-dark); font: 700 18px var(--display); }
.stunden-note p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.65; }
/* Indexmiete-Rechner: Monats-Auswahl und Datumseingaben wie die
   Datums-/Uhrzeitfelder der anderen Rechner. */
.indexmiete-page .field select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); font: 500 15px var(--sans); }
.indexmiete-page .field select:focus { border-color: var(--green); outline: none; }
.indexmiete-page .field.has-error select,
.indexmiete-page .field.has-error input { border-color: var(--error); }
.indexmiete-page input[type="date"] { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); font: 500 15px var(--sans); }
.indexmiete-page input[type="date"]:focus { border-color: var(--green); outline: none; }
/* Eigene VPI-Werte: Das .input-grid-Display würde sonst das hidden-Attribut
   schlagen (gleiche Falle wie .trap-hint beim Stunden-Rechner). */
.indexmiete-page #eigen-felder[hidden] { display: none; }
/* Indexmiete-Rechner — Hero-Karte (reines CSS, kein Bild): neue Miete groß. */
.indexmiete-card { width: min(340px, 100%); padding: 26px 26px 22px; border-radius: 10px; background: var(--white); box-shadow: 0 18px 48px #293e3010; }
.indexmiete-card-top { display: flex; align-items: center; justify-content: space-between; color: #8d9991; font: 9px var(--mono); letter-spacing: .5px; }
.indexmiete-badge { padding: 4px 8px; border-radius: 4px; background: var(--orange); color: var(--green-dark); font: 700 13px var(--sans); }
.indexmiete-card-value { margin: 20px 0 4px; color: var(--green-dark); font: 700 34px var(--display); letter-spacing: -0.5px; }
.indexmiete-card-cat { color: var(--green); font: 600 15px var(--display); }
.indexmiete-card-note { margin-top: 10px; color: var(--muted); font-size: 14px; }
/* Geplant, noch nicht beschlossen: der Mietrechts-Entwurf (BT-Drucks. 21/6807). */
.indexmiete-note { margin: 24px auto 0; max-width: 1050px; padding: 18px 20px; border-radius: 8px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; }
.indexmiete-note h3 { margin: 0 0 8px; color: var(--green-dark); font: 700 18px var(--display); }
.indexmiete-note p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.65; }
/* VPI-Tabelle: Monatswerte sind antippbar und füllen den Rechner. */
.vpi-cell { cursor: pointer; }
.vpi-cell:hover { background: #eef3e3; }
.vpi-cell.is-latest { background: #e4edcf; font-weight: 700; }
.vpi-cell.is-you { outline: 2px solid var(--green); outline-offset: -2px; }
@media (max-width: 680px) {
  /* Stunden-Rechner: Modus-Raster auf dem Handy 2-spaltig (die 3-spaltige
     .stunden-page-Regel oben würde sonst wegen der höheren Spezifität gewinnen). */
  .stunden-page .mode-grid { grid-template-columns: 1fr 1fr; }
  /* Stunden-Rechner: Eingabefelder untereinander — zwei Spalten sind auf dem
     Handy zu eng (native Uhrzeit-Felder brauchen je ~130 px, sonst läuft
     .calc-main aus der Karte und wird rechts abgeschnitten). */
  .stunden-page .input-grid { grid-template-columns: 1fr; }
  .stunden-page .converter-grid { grid-template-columns: 1fr; }
  /* Stunden-Rechner: Beispielkarten brechen auf dem Handy um — die Ergebniszeile
     geht auf eine eigene Zeile (gleiche Falle wie bei BMI und Tage). */
  .stunden-page .example-card { flex-wrap: wrap; }
  .stunden-page .example-card h3 { font-size: 16px; }
  .stunden-page .example-result { flex-basis: 100%; }
  /* Indexmiete-Rechner: Eingabefelder untereinander — drei Spalten sind auf
     dem Handy zu eng (gleiche Falle wie bei Tage und Stunden). */
  .indexmiete-page .input-grid { grid-template-columns: 1fr; }
}

/* Quadratmeter-Rechner: Form-Auswahl als 3er-Raster (6 Formen), zwei
   Eingabefelder nebeneinander. Eigenständige <select>s (Form, Wohnfläche,
   Verschnitt) bekommen die 48-px-Box — nur direkte .field-Kinder, damit
   die Einheiten-Auswahl in .input-with-unit ihre eigene Regel behält. */
.quadratmeter-page .mode-grid { grid-template-columns: repeat(3, 1fr); }
.quadratmeter-page .input-grid { grid-template-columns: 1fr 1fr; }
.quadratmeter-page .field > select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); font: 500 15px var(--sans); }
.quadratmeter-page .field > select:focus { border-color: var(--green); outline: none; }
.quadratmeter-page .field.has-error select,
.quadratmeter-page .field.has-error input { border-color: var(--error); }
/* [hidden] muss gegen .input-grid-Display gewinnen (gleiche Falle wie
   #eigen-felder beim Indexmiete-Rechner). */
.quadratmeter-page #boden-felder[hidden],
.quadratmeter-page #qm-gewicht-feld[hidden],
.quadratmeter-page #verschnitt-eigen-feld[hidden] { display: none; }
/* Quadratmeter-Rechner — Hero-Karte (reines CSS, kein Bild): 14,4 m² groß. */
.quadratmeter-card { width: min(340px, 100%); padding: 26px 26px 22px; border-radius: 10px; background: var(--white); box-shadow: 0 18px 48px #293e3010; }
.quadratmeter-card-top { display: flex; align-items: center; justify-content: space-between; color: #8d9991; font: 9px var(--mono); letter-spacing: .5px; }
.quadratmeter-badge { padding: 4px 8px; border-radius: 4px; background: var(--orange); color: var(--green-dark); font: 700 13px var(--sans); }
.quadratmeter-card-value { margin: 20px 0 4px; color: var(--green-dark); font: 700 34px var(--display); letter-spacing: -0.5px; }
.quadratmeter-card-cat { color: var(--green); font: 600 15px var(--display); }
.quadratmeter-card-note { margin-top: 10px; color: var(--muted); font-size: 14px; }
/* Checkbox-Zeilen (Wohnfläche, Bodenbelag): Kasten mit Haken links. */
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 14px 16px; border: 1px solid #e2e7dc; border-radius: 8px; background: #fffefa; }
.check-row input[type="checkbox"] { flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--green); cursor: pointer; }
.check-label { display: block; color: var(--ink); font-size: 14px; line-height: 1.6; cursor: pointer; }
.check-label strong { color: var(--green-dark); }
.check-label span { display: block; color: #5a6a62; font-size: 13px; }
/* Weitere Räume: eine Karte je Raum, min-width: 0 überall, damit auf dem
   Handy nichts aus der Karte läuft (gleiche Falle wie beim Tage-Rechner
   am 390px-Bildschirm). */
.room-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.room-row { min-width: 0; padding: 16px; border: 1px solid #e2e7dc; border-radius: 8px; background: #fffefa; }
.room-row-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 10px; align-items: end; min-width: 0; }
.room-row-top .field { min-width: 0; }
.room-delete { width: 44px; }
.room-measure { margin-top: 14px; min-width: 0; }
.room-measure-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; min-width: 0; }
.room-measure-grid .field { min-width: 0; }
.room-foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; margin-top: 14px; min-width: 0; }
.room-foot .field { min-width: 0; flex: 1 1 200px; }
.room-area { margin: 0; color: var(--green); font: 600 14px var(--mono); white-space: nowrap; }
.room-area:empty { display: none; }
#add-room { width: 100%; min-height: 48px; margin-top: 12px; padding: 8px 14px; border: 1px dashed #cbd6c3; border-radius: 8px; background: transparent; color: var(--green); font: 600 14px var(--sans); cursor: pointer; transition: border-color .2s, background .2s; }
#add-room:hover { border-color: var(--green); background: #f1f5e9; }
#add-room:disabled { border-color: #e2e7dc; color: #9aa39b; cursor: default; background: transparent; }
/* Zimmer-Tabelle: Zeilen sind antippbar und füllen den Rechner. */
.zimmer-row:focus-visible { outline: 2px solid var(--green); outline-offset: -2px; }
/* Ehrlicher Kasten unter der Anleitung: Fläche auf dem Plan. */
.quadratmeter-note { margin: 24px auto 0; max-width: 1050px; padding: 18px 20px; border-radius: 8px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; }
.quadratmeter-note h3 { margin: 0 0 8px; color: var(--green-dark); font: 700 18px var(--display); }
.quadratmeter-note p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.65; }
@media (max-width: 680px) {
  /* Quadratmeter-Rechner: Modus-Raster auf dem Handy 2-spaltig, Eingaben
     untereinander — zwei Spalten sind auf dem Handy zu eng (gleiche Falle
     wie bei Tage und Stunden). */
  .quadratmeter-page .mode-grid { grid-template-columns: 1fr 1fr; }
  .quadratmeter-page .input-grid { grid-template-columns: 1fr; }
  .quadratmeter-page .room-measure-grid { grid-template-columns: 1fr; }
  /* Raumkopf auf dem Handy: Name + Löschen oben, Form darunter. */
  .quadratmeter-page .room-row-top { grid-template-columns: minmax(0, 1fr) 44px; }
  .quadratmeter-page .room-shape-field { grid-column: 1 / -1; }
  /* Quadratmeter-Rechner: Beispielkarten brechen auf dem Handy um — die
     Ergebniszeile geht auf eine eigene Zeile (gleiche Falle wie bei BMI,
     Tage und Stunden). */
  .quadratmeter-page .example-card { flex-wrap: wrap; }
  .quadratmeter-page .example-card h3 { font-size: 16px; }
  .quadratmeter-page .example-result { flex-basis: 100%; }
}

/* Schlafzyklus-Rechner (2026-11-26): drei Modi (Aufwachen / Ins Bett /
   Jetzt) im Modus-Raster — 3 Spalten auf dem Computer, 2 auf dem Handy.
   Uhrzeit-Eingaben nativ, 24 Stunden, wie beim Stunden-Rechner. */
.schlafzyklus-page .mode-grid { grid-template-columns: repeat(3, 1fr); }
.schlafzyklus-page .input-grid { grid-template-columns: 1fr 1fr; }
.schlafzyklus-page .mode-fields .input-grid { grid-template-columns: 1fr; }
.schlafzyklus-page input[type="time"] { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); font: 500 15px var(--sans); }
.schlafzyklus-page input[type="time"]:focus { border-color: var(--green); outline: none; }
.schlafzyklus-page .field > select { width: 100%; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); font: 500 15px var(--sans); }
.schlafzyklus-page .field > select:focus { border-color: var(--green); outline: none; }
.schlafzyklus-page .field.has-error select,
.schlafzyklus-page .field.has-error input { border-color: var(--error); }
/* Schlafzyklus-Rechner — Hero-Karte (reines CSS, kein Bild): 23:15 groß. */
.schlafzyklus-card { width: min(340px, 100%); padding: 26px 26px 22px; border-radius: 10px; background: var(--white); box-shadow: 0 18px 48px #293e3010; }
.schlafzyklus-card-top { display: flex; align-items: center; justify-content: space-between; color: #8d9991; font: 9px var(--mono); letter-spacing: .5px; }
.schlafzyklus-badge { padding: 4px 8px; border-radius: 4px; background: var(--orange); color: var(--green-dark); font: 700 13px var(--sans); }
.schlafzyklus-card-value { margin: 20px 0 4px; color: var(--green-dark); font: 700 34px var(--display); letter-spacing: -0.5px; }
.schlafzyklus-card-cat { color: var(--green); font: 600 15px var(--display); }
.schlafzyklus-card-note { margin-top: 10px; color: var(--muted); font-size: 14px; }
/* Zyklus-Tabelle: Zeilen sind antippbar und wählen die Zeile. Die gewählte
   Zeile ist markiert („← empfohlen"), wie „← du" beim BMI-Rechner. */
.zyklus-row { cursor: pointer; }
.zyklus-row:hover { background: #f1f5e9; }
.scale-table tbody tr.is-pick { background: #eef3e4; }
.scale-table tbody tr.is-pick th:first-child::after { content: " ← empfohlen"; color: var(--green); font-weight: 700; }
/* Ehrliche Kästen: Nickerchen (unter dem Rechner) und Schichtarbeit
   (unter der Anleitung). Medizin-Hinweis unter dem Rechner. */
.schlafzyklus-note { margin: 24px auto 0; max-width: 1050px; padding: 18px 20px; border-radius: 8px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; }
.schlafzyklus-note h3 { margin: 0 0 8px; color: var(--green-dark); font: 700 18px var(--display); }
.schlafzyklus-note p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.65; }
.schlafzyklus-note a { color: var(--green); }
.schlafzyklus-medizin { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (max-width: 680px) {
  /* Schlafzyklus-Rechner: Modus-Raster auf dem Handy 2-spaltig, Eingaben
     untereinander — zwei Spalten sind auf dem Handy zu eng (gleiche Falle
     wie bei Tage und Stunden). */
  .schlafzyklus-page .mode-grid { grid-template-columns: 1fr 1fr; }
  .schlafzyklus-page .input-grid { grid-template-columns: 1fr; }
  /* Schlafzyklus-Rechner: Beispielkarten brechen auf dem Handy um — die
     Ergebniszeile geht auf eine eigene Zeile (gleiche Falle wie bei BMI,
     Tage und Stunden). */
  .schlafzyklus-page .example-card { flex-wrap: wrap; }
  .schlafzyklus-page .example-card h3 { font-size: 16px; }
  .schlafzyklus-page .example-result { flex-basis: 100%; }
}

/* Bürgergeld-Rechner (2026-11-26): Haushalt als 2er-Raster (Alleinstehend /
   Mit Partner), Kinder als +/−-Zeilen je Altersband, Mehrbedarfe als
   Checkboxen. Die Aufschlüsselung im Ergebnis ist eine Label-Wert-Liste. */
.buergergeld-page .mode-grid { grid-template-columns: repeat(2, 1fr); }
.buergergeld-page .field.has-error input { border-color: var(--error); }
/* Hero-Karte (reines CSS, kein Bild): Anspruch groß, Hinweis darunter. */
.bg-card { width: min(340px, 100%); padding: 26px 26px 22px; border-radius: 10px; background: var(--white); box-shadow: 0 18px 48px #293e3010; }
.bg-card-top { display: flex; align-items: center; justify-content: space-between; color: #8d9991; font: 9px var(--mono); letter-spacing: .5px; }
.bg-badge { padding: 4px 8px; border-radius: 4px; background: var(--orange); color: var(--green-dark); font: 700 13px var(--sans); }
.bg-card-value { margin: 20px 0 4px; color: var(--green-dark); font: 700 34px var(--display); letter-spacing: -0.5px; }
.bg-card-cat { color: var(--green); font: 600 15px var(--display); }
.bg-card-note { margin-top: 10px; color: var(--muted); font-size: 14px; }
/* Kinder-Zeilen: Label links, Schrittzähler rechts. */
.bg-kinder { margin: 0 0 21px; padding: 0; border: 0; }
.bg-kinder legend { margin: 0 0 6px; padding: 0; color: var(--ink); font: 600 14px var(--sans); }
.bg-kinder-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid #eef1ea; }
.bg-kinder-row:last-of-type { border-bottom: 0; }
.bg-kinder-label { color: var(--ink); font: 600 15px var(--sans); }
.bg-kinder-label small { display: block; margin-top: 2px; color: var(--muted); font: 400 13px var(--sans); }
.bg-stepper { display: flex; flex-shrink: 0; align-items: center; gap: 8px; }
.bg-step-btn { width: 40px; height: 40px; border: 1px solid #e2e7dc; border-radius: 8px; background: #fffefa; color: var(--green); font: 700 18px var(--sans); cursor: pointer; transition: border-color .2s; }
.bg-step-btn:hover { border-color: var(--green); }
.bg-step-btn:disabled { opacity: .35; cursor: not-allowed; }
.bg-step-count { min-width: 28px; text-align: center; font: 700 17px var(--mono); }
/* Alleinerziehend ist nur ohne Partner wählbar — ausgegraut, nicht weg. */
.check-row.is-disabled { opacity: .5; cursor: not-allowed; }
/* Aufschlüsselung im Ergebnis: Label links, Betrag rechts. */
.buergergeld-page .result-extra div { display: flex; justify-content: space-between; gap: 12px; }
.buergergeld-page .result-extra div span:last-child { white-space: nowrap; }
/* Ehrliche Kästen: „Geplant, noch nicht beschlossen" (unter den Regelsätzen)
   und „Was der Rechner nicht prüft" (unter der Anleitung). */
.buergergeld-note { margin: 24px auto 0; max-width: 1050px; padding: 18px 20px; border-radius: 8px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; }
.buergergeld-note h3 { margin: 0 0 8px; color: var(--green-dark); font: 700 18px var(--display); }
.buergergeld-note p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.65; }
.buergergeld-note a { color: var(--green); }
@media (max-width: 960px) {
  /* Bürgergeld-Rechner: Beispielkarten stapeln sich schon ab Tablet —
     die langen Beträge (1.508,68 €) sprengen sonst die 3 Spalten: Die
     Karten sind mindestens 260–300 px breit, der Streifen nur ~675 px. */
  .buergergeld-page .example-strip { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  /* Bürgergeld-Rechner: Haushalt-Raster 2-spaltig lassen (nur 2 Knöpfe),
     Eingaben untereinander — drei Spalten sind auf dem Handy zu eng. */
  .buergergeld-page .input-grid { grid-template-columns: 1fr; }
  .buergergeld-page .example-card { flex-wrap: wrap; }
  .buergergeld-page .example-card h3 { font-size: 16px; }
  .buergergeld-page .example-result { flex-basis: 100%; }
}

/* Grundsteuer-Rechner (2026-11-26): Grundstücksart als 3er-Raster (Wohnen /
   Gewerbe / Unbebaut), zwei Felder nebeneinander, Messbetrag und Hebesatz
   als Aufschlüsselung im Ergebnis. */
.grundsteuer-page .mode-grid { grid-template-columns: repeat(3, 1fr); }
.grundsteuer-page .input-grid { grid-template-columns: 1fr 1fr; }
.grundsteuer-page .field.has-error input { border-color: var(--error); }
/* Hero-Karte (reines CSS, kein Bild): Jahressteuer groß, Hinweis darunter. */
.gs-card { width: min(340px, 100%); padding: 26px 26px 22px; border-radius: 10px; background: var(--white); box-shadow: 0 18px 48px #293e3010; }
.gs-card-top { display: flex; align-items: center; justify-content: space-between; color: #8d9991; font: 9px var(--mono); letter-spacing: .5px; }
.gs-badge { padding: 4px 8px; border-radius: 4px; background: var(--orange); color: var(--green-dark); font: 700 13px var(--sans); }
.gs-card-value { margin: 20px 0 4px; color: var(--green-dark); font: 700 34px var(--display); letter-spacing: -0.5px; }
.gs-card-cat { color: var(--green); font: 600 15px var(--display); }
.gs-card-note { margin-top: 10px; color: var(--muted); font-size: 14px; }
/* Aufschlüsselung im Ergebnis: Label links, Betrag rechts. */
.grundsteuer-page .result-extra div { display: flex; justify-content: space-between; gap: 12px; }
.grundsteuer-page .result-extra div span:last-child { white-space: nowrap; }
/* Ehrliche Kästen: „Wo steht mein Grundsteuerwert?" (im Rechner) und
   „Was der Rechner nicht rechnet" (unter der Anleitung). */
.grundsteuer-note { margin: 24px auto 0; max-width: 1050px; padding: 18px 20px; border-radius: 8px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; }
.grundsteuer-note h3 { margin: 0 0 8px; color: var(--green-dark); font: 700 18px var(--display); }
.grundsteuer-note p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.65; }
.grundsteuer-note a { color: var(--green); }
@media (max-width: 960px) {
  /* Grundsteuer-Rechner: Beispielkarten stapeln sich schon ab Tablet —
     die langen Rechenwege sprengen sonst die 3 Spalten (gleiche Falle wie
     beim Bürgergeld-Rechner). */
  .grundsteuer-page .example-strip { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  /* Grundsteuer-Rechner: Modus-Raster auf dem Handy 2-spaltig, Eingaben
     untereinander — drei Spalten sind auf dem Handy zu eng. */
  .grundsteuer-page .mode-grid { grid-template-columns: 1fr 1fr; }
  .grundsteuer-page .input-grid { grid-template-columns: 1fr; }
  .grundsteuer-page .example-card { flex-wrap: wrap; }
  .grundsteuer-page .example-card h3 { font-size: 16px; }
  .grundsteuer-page .example-result { flex-basis: 100%; }
}

/* Kreditrechner (2026-11-26): zwei Modi (Rate / Leisten können), Felder
   untereinander, Monatsrate und Gesamtkosten als Aufschlüsselung im
   Ergebnis. Der Tilgungsplan zeigt erst 12 Monate, auf Wunsch alle. */
.kredit-page .mode-grid { grid-template-columns: repeat(2, 1fr); }
.kredit-page .field.has-error input { border-color: var(--error); }
/* Hero-Karte (reines CSS, kein Bild): Monatsrate groß, Hinweis darunter. */
.kredit-card { width: min(340px, 100%); padding: 26px 26px 22px; border-radius: 10px; background: var(--white); box-shadow: 0 18px 48px #293e3010; }
.kredit-card-top { display: flex; align-items: center; justify-content: space-between; color: #8d9991; font: 9px var(--mono); letter-spacing: .5px; }
.kredit-badge { padding: 4px 8px; border-radius: 4px; background: var(--orange); color: var(--green-dark); font: 700 13px var(--sans); }
.kredit-card-value { margin: 20px 0 4px; color: var(--green-dark); font: 700 34px var(--display); letter-spacing: -0.5px; }
.kredit-card-cat { color: var(--green); font: 600 15px var(--display); }
.kredit-card-note { margin-top: 10px; color: var(--muted); font-size: 14px; }
/* Aufschlüsselung im Ergebnis: Label links, Betrag rechts. */
.kredit-page .result-extra div { display: flex; justify-content: space-between; gap: 12px; }
.kredit-page .result-extra div span:last-child { white-space: nowrap; }
/* Ehrliche Kästen: „Effektiver Jahreszins oder Sollzins?" (im Rechner) und
   „Was der Rechner nicht macht" (unter der Anleitung). */
.kredit-note { margin: 24px auto 0; max-width: 1050px; padding: 18px 20px; border-radius: 8px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; }
.kredit-note h3 { margin: 0 0 8px; color: var(--green-dark); font: 700 18px var(--display); }
.kredit-note p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.65; }
.kredit-note a { color: var(--green); }
/* Tilgungsplan: Fußzeile mit den Summen, Knopf zum Aufklappen. */
.kredit-page .scale-table tfoot th, .kredit-page .scale-table tfoot td { font-weight: 700; background: var(--paper); }
.kredit-page .table-toggle { margin-top: 12px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--green); font: 600 15px var(--sans); cursor: pointer; }
.kredit-page .table-toggle:hover { border-color: var(--green); }
/* Raten-Tabelle: Zeilen sind klickbar (laden Zins + Laufzeit). */
.kredit-page .raten-row { cursor: pointer; }
.kredit-page .raten-row:hover td, .kredit-page .raten-row:hover th { background: #f0f1e8; }
@media (max-width: 960px) {
  /* Kreditrechner: Beispielkarten stapeln sich schon ab Tablet —
     die langen Rechenwege sprengen sonst die 3 Spalten (gleiche Falle wie
     beim Bürgergeld- und Grundsteuer-Rechner). */
  .kredit-page .example-strip { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  /* Kreditrechner: Eingaben untereinander — zwei Spalten sind auf dem
     Handy zu eng. */
  .kredit-page .example-card { flex-wrap: wrap; }
  .kredit-page .example-card h3 { font-size: 16px; }
  .kredit-page .example-result { flex-basis: 100%; }
}

/* Brutto-Netto-Rechner (2026-11-26): drei 2er-Raster (Zeitraum, Kirche,
   RV-pflichtig), Eingaben zu zweit nebeneinander, Steuerklasse und
   Bundesland als Auswahl im Eingabefeld, Aufschlüsselung im Ergebnis.
   Der Rechner rechnet nach dem BMF Programmablaufplan 2026. */
.bruttonetto-page .mode-grid { grid-template-columns: repeat(2, 1fr); }
.bruttonetto-page .input-grid { grid-template-columns: 1fr 1fr; }
.bruttonetto-page .input-with-unit select { width: 100%; }
.bruttonetto-page .field.has-error input, .bruttonetto-page .field.has-error select { border-color: var(--error); }
/* Aufschlüsselung im Ergebnis: Label links, Betrag rechts. */
.bruttonetto-page .result-extra div { display: flex; justify-content: space-between; gap: 12px; }
.bruttonetto-page .result-extra div span:last-child { white-space: nowrap; }
.bruttonetto-page .result-extra .bn-total { border-top: 1px solid #e1e9d8; padding-top: 6px; font-weight: 700; color: var(--green-dark); }
/* Minijob-/Midijob-Hinweis unter dem Ergebnis. */
.bn-jobnote { margin: 12px 0 0; padding: 12px; border-radius: 5px; background: #fffefa; color: var(--ink); font-size: 14px; line-height: 1.65; }
.bn-jobnote[hidden] { display: none; }
/* Ehrliche Kästen: „Was der Rechner braucht — und was nicht" (im Rechner)
   und „Was der Rechner nicht rechnet" (unter der Anleitung). */
.bruttonetto-note { margin: 24px auto 0; max-width: 1050px; padding: 18px 20px; border-radius: 8px; background: #fffefa; box-shadow: 0 2px 10px #293e300d; }
.bruttonetto-note h3 { margin: 0 0 8px; color: var(--green-dark); font: 700 18px var(--display); }
.bruttonetto-note p { margin: 0; color: var(--ink); font-size: 15px; line-height: 1.65; }
.bruttonetto-note a { color: var(--green); }
/* Tabellenzeilen sind klickbar (laden Brutto bzw. Steuerklasse). */
.bruttonetto-page .bn-row { cursor: pointer; }
.bruttonetto-page .bn-row:hover td, .bruttonetto-page .bn-row:hover th { background: #f0f1e8; }
@media (max-width: 960px) {
  /* Brutto-Netto-Rechner: Beispielkarten stapeln sich schon ab Tablet —
     die langen Rechenwege sprengen sonst die 3 Spalten (gleiche Falle wie
     beim Bürgergeld-, Grundsteuer- und Kreditrechner). */
  .bruttonetto-page .example-strip { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  /* Brutto-Netto-Rechner: Eingaben untereinander — zwei Spalten sind auf
     dem Handy zu eng. */
  .bruttonetto-page .input-grid { grid-template-columns: 1fr; }
  .bruttonetto-page .example-card { flex-wrap: wrap; }
  .bruttonetto-page .example-card h3 { font-size: 16px; }
  .bruttonetto-page .example-result { flex-basis: 100%; }
}
