/* Wohngebäude-Rechner: Gestaltung nach Vorlage „hell, freundlich, Verlaufsflächen, Grotesk“ (11.11.2026)

   Aufbau: zweizeiliger Kopf (weiße Zeile mit Logo und drei Angaben, darunter Navigationsleiste im Ziegel-Verlauf, die
   beim Scrollen oben bleibt), Kopf-Foto über volle Breite mit Text direkt auf dem hellen Bild und blattförmigen
   Pinselstrich-Formen am Rand, Fotos in schräg beschnittenen Verlaufsrahmen, weiße kantige Karten mit Unterstrich-Titel,
   hellgraue Felder ohne Rahmen, Verlaufs-Knöpfe mit 4 px Ecke. Fuß in Schiefer.

   Farben: Ziegelrot --brick #a8432a (Leitfarbe), Verlauf Ziegelrot -> Terrakotta #bd5634, Schiefer --ink #22313a (Text,
   dunkle Flächen), Sand --sand #f5efe7 (heller Grund), Feldgrau --field-bg #f3f0ec.
   Schrift (SIL OFL 1.1, selbst gehostet, Lizenz in /assets/fonts/OFL-DMSans.txt): DM Sans, variabel (Gewicht 400–700,
   optische Größe 9–40), Überschriften 700.

   Kontrast (gerechnet, WCAG 2.1): Schiefer/Weiß 13,4:1 · Schiefer/Sand 11,7:1 · Schiefer/Feldgrau 11,8:1 ·
   --ink-2/Weiß 7,5:1 · --ink-2/Sand 6,5:1 · --ink-3/Weiß 5,9:1 · --ink-3/Sand 5,2:1 · Ziegel/Weiß 6,0:1 ·
   Ziegel/Sand 5,3:1 · Ziegel/Feldgrau 5,3:1 · Weiß/Ziegel 6,0:1 · Weiß/Terrakotta (Verlaufsende) 4,6:1 ·
   --brick-deep/Weiß 8,0:1 · Weiß/Schiefer 13,4:1 · --foot-text/Schiefer 8,7:1 · --ok/Weiß 6,4:1 */

@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --brick: #a8432a;
  --terra: #bd5634;
  --brick-deep: #8a3520;
  --brick-soft: #f8ebe5;
  --grad: linear-gradient(90deg, var(--brick) 0%, var(--terra) 100%);
  --grad-d: linear-gradient(135deg, var(--brick) 0%, var(--terra) 100%);
  --ink: #22313a;
  --head: #1b262d;
  --ink-2: #4b575d;
  --ink-3: #5a666c;
  --sand: #f5efe7;
  --field-bg: #f3f0ec;
  --surface: #ffffff;
  --line: #e6e1da;
  --line-soft: #efebe6;
  --foot: #22313a;
  --foot-deep: #1b262d;
  --foot-text: #c9d1d5;
  --ok: #2f6b3c;
  --sh: 0 18px 50px -20px rgba(34, 49, 58, .22), 0 2px 8px rgba(34, 49, 58, .05);
  --sh-lg: 0 30px 70px -28px rgba(34, 49, 58, .35), 0 4px 14px rgba(34, 49, 58, .06);
  --r: 2px;
  --r-btn: 4px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --measure: 70ch;
  --wrap: 1240px;
  --pad: 16px;
}
@media (min-width: 720px) { :root { --pad: 32px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 1.0625rem/1.7 var(--font); }
[id] { scroll-margin-top: 76px; }
::selection { background: #f1d5c9; color: var(--ink); }
a { color: var(--brick); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brick-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brick); outline-offset: 2px; }
.navbar :focus-visible, .foot :focus-visible, .qband :focus-visible, .calc-band :focus-visible, .side-cta :focus-visible,
.formula-card :focus-visible, .faq details[open] summary:focus-visible { outline-color: #fff; }
img { max-width: 100%; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 14px; z-index: 80; box-shadow: var(--sh); }
.visually-hidden, .mz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
td.n, th.n, .after b, .rows .v, .amount input { font-variant-numeric: lining-nums tabular-nums; }
.ic { display: block; flex: none; }

.page { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Typografie ---------- */
h1, h2, h3 { color: var(--head); font-family: var(--font); font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.75rem); line-height: 1.08; letter-spacing: -.022em; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 2.7vw, 2.4rem); line-height: 1.15; letter-spacing: -.025em; margin: 2em 0 .5em; text-wrap: balance; }
h3 { font-size: 1.25rem; line-height: 1.3; margin: 1.7em 0 .4em; }
p { margin: 0 0 1em; }
strong, b { font-weight: 700; }
h1, h2, h3, h1 a, h2 a { overflow-wrap: break-word; }
@media (max-width: 480px) { h1, h2, h3 { -webkit-hyphens: auto; hyphens: auto; } .tile h3, .card h3, .qbox h2 { -webkit-hyphens: manual; hyphens: manual; } }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.18rem); line-height: 1.65; color: var(--ink-2); max-width: 56ch; margin: 18px 0 0; }
.credit { font-size: .9rem; color: var(--ink-3); margin: 14px 0 0; }
.credit strong { color: var(--ink); }
.crumbs { font-size: .9rem; color: var(--ink-3); margin: 0 0 18px; }
.crumbs a { color: inherit; }

/* Vorzeile: drei kurze senkrechte Striche in Leitfarbe, dann Versalien */
.kicker { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
.kicker::before { content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(90deg, currentColor 0 2px, transparent 2px 6px, currentColor 6px 8px, transparent 8px 12px, currentColor 12px 14px); }

/* Knöpfe: rechteckig, 4 px Ecke */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 14px 28px; border-radius: var(--r-btn); font: 700 1rem/1.2 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: filter .15s, box-shadow .15s, background-color .15s, color .15s; }
.btn-grad { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -12px rgba(168, 67, 42, .7); }
.btn-grad:hover { color: #fff; filter: brightness(.92); }
.btn-white { background: #fff; color: var(--brick); }
.btn-white:hover { color: var(--brick-deep); background: var(--brick-soft); }
.btn-line { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-line:hover { color: #fff; background: var(--ink); }
.btn-wide { width: 100%; }
.link-more { font-weight: 700; color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* ---------- Kopf: weiße Zeile ---------- */
.top { background: #fff; }
.top-in { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; min-width: 0; }
.brand img { display: block; height: 30px; width: auto; max-width: 100%; }
.top-info { list-style: none; margin: 0; padding: 0; display: none; align-items: center; }
.top-info li { display: flex; align-items: center; gap: 12px; padding: 0 26px; border-left: 1px solid var(--line); line-height: 1.3; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.top-info li:first-child { border-left: 0; }
.top-info li:last-child { padding-right: 0; }
.top-info b { display: block; font-size: .86rem; color: var(--head); }
.top-ic { color: var(--brick); stroke-width: 1.5; }
@media (max-width: 979px) { .top { display: none; } }
@media (min-width: 980px) { .top-in { height: 78px; } .brand img { height: 34px; } .top-info { display: flex; } }
@media (min-width: 980px) and (max-width: 1199px) { .top-info li:nth-child(2) { display: none; } .top-info li:nth-child(3) { border-left: 1px solid var(--line); } }

/* ---------- Kopf: Navigationsleiste im Verlauf (bleibt oben) ---------- */
.navbar { position: sticky; top: 0; z-index: 40; background: var(--grad); color: #fff; }
.navbar-in { position: relative; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); height: 60px; display: flex; align-items: center; gap: 8px; }
.nav-logo { display: inline-flex; align-items: center; margin-right: auto; min-width: 0; }
.nav-logo img { display: block; height: 26px; width: auto; max-width: 100%; }
@media (max-width: 360px) { .nav-logo img { height: 21px; } }
.menu { display: none; height: 100%; margin-left: -14px; }
.menu a { display: inline-flex; align-items: center; height: 100%; padding: 0 14px; color: #fff; font-weight: 600; font-size: .96rem; text-decoration: none; white-space: nowrap; position: relative; }
.menu a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 12px; height: 2px; background: #fff; transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s; }
.menu a:hover { color: #fff; }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-cta { display: none; align-items: center; height: 42px; padding: 0 20px; border-radius: var(--r-btn); background: #fff; color: var(--brick); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; margin-left: auto; }
.nav-cta:hover { background: var(--brick-soft); color: var(--brick-deep); }
@media (min-width: 560px) { .nav-cta { display: inline-flex; } }
.burger { margin-left: 4px; }
.burger summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; align-content: center; justify-items: center; gap: 5px; border-radius: var(--r-btn); }
.burger summary:hover, .burger[open] summary { background: rgba(255, 255, 255, .16); }
.burger summary::-webkit-details-marker { display: none; }
.burger summary span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.burger[open] summary span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[open] summary span:nth-child(2) { opacity: 0; }
.burger[open] summary span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: var(--sh-lg); padding: 8px var(--pad) 14px; display: grid; }
.burger:not([open]) .drawer { display: none; }
.drawer a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.05rem; padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
.drawer a:hover, .drawer a[aria-current="page"] { color: var(--brick); }
@media (min-width: 980px) {
  .nav-logo { margin-right: 0; width: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: width .25s, opacity .25s; }
  .navbar.is-stuck .nav-logo { width: 220px; margin-right: 28px; visibility: visible; opacity: 1; }
}
@media (min-width: 1100px) {
  .menu { display: flex; }
  .burger { display: none; }
}
@media (min-width: 1100px) and (max-width: 1259px) { .navbar.is-stuck .nav-logo { width: 0; margin: 0; visibility: hidden; } .menu a { padding: 0 11px; } }
@media (prefers-reduced-motion: reduce) { .menu a::after, .nav-logo, .burger summary span { transition: none; } }

/* ---------- Startseite: Kopf-Foto über volle Breite ---------- */
.hero-home { position: relative; isolation: isolate; margin: 0 calc(50% - 50vw); overflow: hidden; background: #f7f5f2; }
.hero-media { position: relative; }
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-in { position: relative; padding: 32px var(--pad) 48px; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; }
.hero-home h1 { color: var(--head); max-width: 13.5em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 30px 0 0; }
.hero-note { font-size: .88rem; color: var(--ink-3); }
@media (min-width: 900px) {
  .hero-home { height: 620px; }
  .hero-media { position: absolute; inset: 0; z-index: -2; }
  .hero-img { height: 100%; aspect-ratio: auto; }
  .hero-home::before { content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(250, 248, 245, .92) 0%, rgba(250, 248, 245, .78) 34%, rgba(250, 248, 245, 0) 58%); }
  .hero-in { padding-top: 112px; padding-bottom: 0; }
  .hero-home .lead { max-width: 46ch; color: var(--ink); }
  .hero-note { color: var(--ink-2); }
}
@media (min-width: 900px) and (max-width: 1199px) { .hero-home h1 { font-size: 3rem; } .hero-in { padding-top: 90px; } }

/* Blattförmige Pinselstriche in Leitfarbe am Bildrand (Markenornament, rein dekorativ) */
.leaves { position: absolute; z-index: 1; pointer-events: none; display: none; }
.leaves i { position: absolute; display: block; width: 190px; height: 46px; border-radius: 0 100% 0 100%; background: var(--grad); transform: rotate(-35deg); }
.leaves-l { left: -96px; top: 440px; width: 220px; height: 200px; }
.leaves-l i:nth-child(1) { left: 0; top: 0; }
.leaves-l i:nth-child(2) { left: 30px; top: 70px; width: 150px; height: 36px; opacity: .55; }
.leaves-l i:nth-child(3) { left: -30px; top: 130px; width: 120px; height: 30px; opacity: .8; }
.leaves-r { right: -70px; bottom: 70px; width: 220px; height: 200px; }
.leaves-r i:nth-child(1) { right: 0; top: 40px; }
.leaves-r i:nth-child(2) { right: 40px; top: 110px; width: 140px; height: 34px; opacity: .6; }
@media (min-width: 1100px) { .leaves { display: block; } }

/* ---------- Abschnitte ---------- */
.sec { padding: 64px 0; }
@media (min-width: 900px) { .sec { padding: 100px 0; } }
.band-sand { background: var(--sand); box-shadow: 0 0 0 100vmax var(--sand); clip-path: inset(0 -100vmax); }
.sec-head { margin: 0 0 36px; }
.sec-head h2 { margin: 0; }
.sec-head > p { color: var(--ink-2); font-size: 1.04rem; margin: 16px 0 0; max-width: 62ch; }
.sec-head-center { max-width: 780px; margin-left: auto; margin-right: auto; text-align: center; }
@media (min-width: 980px) {
  .sec-head { margin-bottom: 52px; }
  .sec-head-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 72px; align-items: end; }
  .sec-head-row > p { margin: 0; padding-bottom: 6px; }
}

/* Foto im schräg beschnittenen Verlaufsrahmen (Über, Fragen, Seitenköpfe) */
.frame { position: relative; isolation: isolate; padding: 40px 0 0 40px; }
.frame-bg { position: absolute; z-index: -1; left: 0; top: 0; right: 56px; bottom: 56px; background: var(--grad-d);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 0 100%); }
.frame-pic { position: relative; }
.frame-pic img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.frame-tall .frame-pic img { aspect-ratio: 4 / 5; }
.frame-mirror .frame-bg { left: 56px; right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 74%); }
.frame-mirror { padding: 40px 40px 0 0; }
@media (max-width: 599px) { .frame { padding: 22px 0 0 22px; } .frame-bg { right: 28px; bottom: 28px; } .frame-mirror { padding: 22px 22px 0 0; } .frame-mirror .frame-bg { left: 28px; right: 0; } }

/* Über: Foto mit Zahlenkasten links, Text rechts */
.about { display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 980px) { .about { grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 88px; } }
.about-media { position: relative; max-width: 520px; padding-bottom: 36px; }
.about-stat { position: absolute; left: 0; bottom: 0; margin: 0; display: grid; gap: 2px; width: min(300px, 80%); padding: 22px 26px; background: #fff; box-shadow: var(--sh-lg); }
.about-stat b { font-size: clamp(2.2rem, 3.4vw, 2.75rem); line-height: 1.05; letter-spacing: -.03em; color: var(--brick); font-variant-numeric: lining-nums proportional-nums; }
.about-stat span { font-weight: 700; font-size: .98rem; line-height: 1.35; color: var(--head); }
.about-text h2 { margin: 0 0 18px; font-size: clamp(1.8rem, 2.7vw, 2.4rem); }
.about-text > p { color: var(--ink-2); }
.duo-feat { list-style: none; margin: 30px 0 0; padding: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.duo-feat li { display: flex; align-items: center; gap: 16px; padding-right: 20px; min-width: 0; }
.duo-feat li + li { padding: 0 0 0 26px; border-left: 1px solid var(--line); }
.duo-feat .ic { color: var(--brick); stroke-width: 1.4; }
.duo-feat b { font-size: 1.06rem; line-height: 1.35; color: var(--head); }
.about-small { margin: 24px 0 28px; color: var(--ink-2); }
@media (max-width: 520px) { .duo-feat { grid-template-columns: 1fr; gap: 16px; } .duo-feat li + li { padding: 16px 0 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Themen-Raster 3 × 2: Kopfzelle, vier Karten, Fotozelle */
.themen { padding-top: 24px; }
.tgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; } }
.tgrid-head h2 { margin: 0 0 16px; font-size: clamp(1.8rem, 2.6vw, 2.3rem); }
.tgrid-head p:not(.kicker) { color: var(--ink-2); margin: 0; }
.tgrid-head { padding: 8px 12px 8px 0; }
.tgrid-photo { min-width: 0; }
.tgrid-img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; }
.tgrid-photo p { margin: 16px 0 0; color: var(--ink-2); font-size: .95rem; }
.tgrid-btns { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }

/* Weiße kantige Karte mit Unterstrich-Titel, Symbol unten links, runder Pfeilknopf unten rechts */
.tile { position: relative; display: flex; flex-direction: column; padding: 34px 30px 28px; background: #fff; border-radius: var(--r); box-shadow: var(--sh); min-width: 0; transition: box-shadow .2s, transform .2s; }
.tile h3 { margin: 0; font-size: 1.28rem; line-height: 1.3; }
.tile h3::after, .uline::after { content: ""; display: block; width: 40px; height: 3px; margin: 16px 0 16px; background: var(--brick); }
.tile h3 a { color: var(--head); text-decoration: none; }
.tile h3 a::before { content: ""; position: absolute; inset: 0; }
.tile h3 a:focus-visible { outline: none; }
.tile-link:focus-within { outline: 3px solid var(--brick); outline-offset: 3px; }
.tile p { margin: 0 0 22px; color: var(--ink-2); font-size: .97rem; line-height: 1.65; }
.tile-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.tile-ic { color: var(--brick); stroke-width: 1.4; }
.rbtn { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--field-bg); color: var(--ink); transition: background-color .2s, color .2s; }
.tile-link:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.tile-link:hover .rbtn, .card:hover .rbtn { background: var(--brick); color: #fff; }
@media (prefers-reduced-motion: reduce) { .tile, .rbtn { transition: none; } .tile-link:hover { transform: none; } }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Schnellrechner über Foto (Vorlage: Angebotsformular mit Reitern) ---------- */
.calcsec { position: relative; isolation: isolate; margin: 0 calc(50% - 50vw); background: #fff; }
.calcsec-media { position: relative; }
.calcsec-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.calcsec-in { position: relative; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: -48px auto 0; padding: 0 var(--pad) 56px; }
.quick { position: relative; max-width: 500px; }
.qtabs { display: flex; gap: 4px; }
.qtab { flex: 1 1 0; min-width: 0; position: relative; cursor: pointer; display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 10px 8px; text-align: center; font-weight: 700; font-size: .84rem; line-height: 1.25; color: #fff; background: var(--grad); text-wrap: balance; }
.qtab input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.qtab > span { display: block; }
.qtab:hover { filter: brightness(1.06); }
.qtab:has(input:checked) { background: #fff; color: var(--brick); box-shadow: inset 0 3px 0 var(--brick); filter: none; }
.qtab:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: -3px; }
.qbox { padding: 30px 22px 26px; background: #fff; box-shadow: var(--sh-lg); }
.qbox h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
.qsub { margin: 0 0 14px; font-size: .92rem; color: var(--ink-2); line-height: 1.5; }
.quick .line { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 8px 0; border: 0; }
.quick .line label { font-size: .88rem; font-weight: 700; }
.quick .amount { height: 54px; padding: 0 16px; }
.quick .amount input { text-align: left; font-size: 1.12rem; }
.quick .line .note { font-size: .78rem; }
.quick .presets { margin: 10px 0 18px; }
.quick .btn-wide { min-height: 56px; }
@media (min-width: 560px) { .qbox { padding: 36px 34px 32px; } .qtab { font-size: .9rem; } }

/* Ergebnis-Band rechts unten */
.qband { display: flex; align-items: center; gap: 18px; margin: 20px 0 0; padding: 20px 22px; background: var(--grad); color: #fff; }
.qband .ic { color: #fff; stroke-width: 1.4; }
.qband p { margin: 0; display: grid; gap: 2px; min-width: 0; }
.qband span { font-weight: 700; font-size: .95rem; line-height: 1.4; }
.qband span:first-child { font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.25; }
.qband b { white-space: nowrap; font-variant-numeric: lining-nums proportional-nums; }
@media (min-width: 980px) {
  .calcsec { min-height: 760px; display: flex; align-items: center; }
  .calcsec-media { position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; width: 64%; }
  .calcsec-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .6) 14%, rgba(255, 255, 255, 0) 34%); }
  .calcsec-img { height: 100%; aspect-ratio: auto; }
  .calcsec-in { width: 100%; margin-top: 0; padding-top: 72px; padding-bottom: 72px; }
  .qband { position: absolute; right: 0; bottom: 0; margin: 0; width: min(560px, 46vw); padding: 26px 36px; transform: translateY(50%); }
  .calcsec { margin-bottom: 60px; }
}

/* ---------- Foto-Reihe: vier Hochformate, versetzt ---------- */
.photorow { margin: 0 calc(50% - 50vw); padding: 56px 2vw 72px; }
.photorow ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.photorow li:nth-child(even) { transform: translateY(16px); }
.photorow-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
@media (min-width: 900px) { .photorow { padding: 72px 2vw 96px; } .photorow ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } .photorow li:nth-child(odd) { transform: translateY(-24px); } .photorow li:nth-child(even) { transform: translateY(24px); } }

/* ---------- Fragen und Antworten ---------- */
.faq-wrap { display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 980px) { .faq-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 80px; } }
.sec-faq .faq-block { margin: 0; }
.sec-faq .faq-head h2 { margin: 0 0 28px; }
.faq-media { max-width: 520px; justify-self: end; width: 100%; }
.faq-block { margin-top: 64px; }
.faq-block > h2, .faq-head h2 { margin: 0 0 20px; }
.faq { display: grid; gap: 12px; }
.body .faq { margin: 18px 0 24px; }
.faq details { background: #fff; border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) 20px; align-items: center; gap: 16px; padding: 17px 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { margin: 0; font-size: 1.03rem; font-weight: 700; line-height: 1.4; }
.faq summary::after { content: ""; width: 9px; height: 9px; justify-self: center; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); color: var(--ink); }
.faq summary:hover h3 { color: var(--brick); }
.faq details[open] { border-color: transparent; box-shadow: var(--sh); }
.faq details[open] summary { background: var(--grad); }
.faq details[open] summary h3, .faq details[open] summary:hover h3 { color: #fff; }
.faq details[open] summary::after { color: #fff; transform: translateY(3px) rotate(-135deg); }
.faq details p { margin: 0; padding: 18px 22px 20px; color: var(--ink-2); }
.faq-note { margin: 24px 0 0; font-size: .92rem; color: var(--ink-2); }

/* ---------- Rechner mit Rechenweg ---------- */
.sheet { display: grid; grid-template-columns: minmax(0, 1fr); background: #fff; box-shadow: var(--sh); overflow: clip; }
@media (min-width: 900px) { .sheet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
@media (min-width: 1200px) { .sheet { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.inputs { padding: 18px 16px 10px; min-width: 0; }
@media (min-width: 560px) { .inputs { padding: 24px 28px 16px; } }
@media (min-width: 900px) { .inputs { padding: 30px 36px 24px; } }

/* Beispiel-Chips: klein, in einer Reihe (scrollt bei Platzmangel in sich) */
.presets { display: block; margin: 0 0 8px; max-width: 100%; min-width: 0; }
.presets .presets-label { margin: 0 0 6px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.presets-row { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.presets-row::-webkit-scrollbar { display: none; }
.presets-row button { flex: none; font: 600 .82rem/1.2 var(--font); white-space: nowrap; color: var(--ink); background: var(--field-bg); border: 0; border-radius: var(--r-btn); padding: 7px 12px; cursor: pointer; }
.presets-row button:hover { color: var(--brick); }
.presets-row button[aria-pressed="true"] { background: var(--ink); color: #fff; }
@media (max-width: 420px) { .presets-row button { font-size: .76rem; padding: 6px 8px; } }
@media (max-width: 360px) { .presets-row { gap: 4px; } .presets-row button { font-size: .72rem; padding: 5px 7px; } .presets .presets-label { font-size: .7rem; } }

.step { margin: 0 0 6px; }
.step h3 { display: flex; align-items: center; gap: 12px; font-size: 1.06rem; margin: 22px 0 4px; }
.step:first-child h3 { margin-top: 0; }
.step h3 b { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; background: var(--grad); color: #fff; font-size: .86rem; }
.line { display: grid; grid-template-columns: minmax(0, 1fr) 9.5rem; align-items: center; gap: 6px 14px; padding: 10px 0 11px; border-bottom: 1px solid var(--line-soft); }
.line:last-child { border-bottom: 0; }
.line label, .line-label { font-weight: 600; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.line .note { grid-column: 1 / -1; font-size: .82rem; color: var(--ink-3); line-height: 1.45; }
.line.wide { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.amount { display: flex; align-items: center; min-width: 0; height: 46px; padding: 0 12px; background: var(--field-bg); border: 0; border-radius: var(--r); box-shadow: inset 0 -2px 0 transparent; transition: box-shadow .15s, background-color .15s; }
.amount:hover { background: #ece8e2; }
.amount:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--brick); }
.amount input, .amount select { width: 100%; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); padding: 0; }
.amount input { font: 700 1.06rem/1 var(--font); text-align: right; -moz-appearance: textfield; }
.amount input::-webkit-outer-spin-button, .amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount input:focus, .amount select:focus { outline: none; }
.amount .u { color: var(--ink-3); font-size: .82rem; white-space: nowrap; padding-left: 6px; }
@media (prefers-reduced-motion: reduce) { .amount { transition: none; } }
.line[hidden], .line-hint[hidden], [data-show][hidden] { display: none !important; }
.line-hint { margin: 8px 0 2px; padding: 12px 14px; font-size: .9rem; line-height: 1.5; color: var(--ink-2); background: var(--field-bg); }
.line-hint b { color: var(--head); }
.opt { margin-left: 4px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); background: var(--field-bg); padding: 2px 7px; }

/* Auswahl als Segmente (Radiogruppe) */
.choice { display: flex; flex-wrap: wrap; gap: 6px; }
.choice label { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; font-size: .92rem; font-weight: 500; line-height: 1.25; background: var(--field-bg); cursor: pointer; }
.choice label:hover { color: var(--brick); }
.choice label:has(input:checked) { background: var(--ink); color: #fff; font-weight: 700; }
.choice input { accent-color: var(--brick); width: 16px; height: 16px; margin: 0; flex: none; }
.choice label:has(input:focus-visible) { outline: 3px solid var(--brick); outline-offset: 2px; }
.index-set { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.index-set button { font: 600 .8rem/1.2 var(--font); padding: 6px 11px; color: var(--brick); background: var(--field-bg); border: 0; border-radius: var(--r-btn); cursor: pointer; }
.index-set button:hover { background: var(--brick-soft); }
details.more { margin: 8px 0 8px; border-top: 1px solid var(--line-soft); }
details.more summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; color: var(--brick); padding: 16px 0 8px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+"; display: inline-grid; place-items: center; width: 26px; height: 26px; background: var(--brick-soft); font-weight: 700; line-height: 1; }
details.more[open] summary::before { content: "\2212"; }

/* Rechenweg */
.ledger { position: relative; background: #faf8f5; border-top: 1px solid var(--line); padding: 22px 16px 24px; min-width: 0; }
@media (min-width: 560px) { .ledger { padding: 26px 28px 28px; } }
@media (min-width: 900px) { .ledger { border-top: 0; border-left: 1px solid var(--line); padding: 30px 36px 32px; } .ledger-in { position: sticky; top: 84px; } }
.ledger h2 { font-size: 1.5rem; margin: 0 0 10px; }
.ledger h2::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 12px; background: var(--brick); }
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; align-items: baseline; gap: 10px; padding: 9px 0; }
.rows .op { font-weight: 700; color: var(--brick); text-align: center; }
.rows .k { line-height: 1.35; font-size: .97rem; }
.rows .k small { display: block; color: var(--ink-3); font-size: .8rem; font-weight: 400; overflow-wrap: anywhere; margin-top: 2px; }
.rows .k small span { display: inline; }
.rows .v { font-weight: 700; white-space: nowrap; color: var(--head); }
.rows li.sub { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 11px; }
.rows li.sub .k { font-weight: 700; }
.rows li.sub .v { color: var(--brick-deep); }
.rows li.total { margin-top: 14px; padding: 18px 22px; align-items: center; background: var(--grad); color: #fff; grid-template-columns: minmax(0, 1fr) auto; }
.rows li.total .op { display: none; }
.rows li.total .k { font-weight: 700; font-size: 1.04rem; }
.rows li.total .v { font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -.03em; line-height: 1.05; color: #fff; font-variant-numeric: lining-nums proportional-nums; }
.check { margin: 20px 0 0; padding: 16px 18px 10px; background: #fff; box-shadow: inset 4px 0 0 var(--line); }
.check h3 { margin: 0 0 6px; font-size: 1.08rem; }
.check-empty { margin: 0 0 6px; font-size: .9rem; color: var(--ink-2); }
.check[data-level="ok"] { box-shadow: inset 4px 0 0 var(--ok); }
.check[data-level="warn"] { box-shadow: inset 4px 0 0 #b7791f; }
.check[data-level="bad"] { box-shadow: inset 4px 0 0 var(--brick); }
.check[data-level="ok"] [data-out="urteil"] { color: var(--ok); font-weight: 700; }
.check[data-level="warn"] [data-out="urteil"], .check[data-level="bad"] [data-out="urteil"] { color: var(--brick-deep); font-weight: 700; }
.check .rows li { padding: 6px 0; }
.after { margin: 16px 0 0; font-size: .92rem; color: var(--ink-2); display: grid; gap: 4px; }
.after p { margin: 0; }
.after b { font-weight: 700; color: var(--head); white-space: nowrap; }
.fineprint { font-size: .84rem; color: var(--ink-3); margin: 16px 0 0; max-width: var(--measure); padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 480px) {
  .line { grid-template-columns: minmax(0, 1fr) 8rem; }
  .rows li { grid-template-columns: 1.2rem minmax(0, 1fr) auto; gap: 8px; }
  .rows .v { font-size: .96rem; }
  .rows li.total { padding: 14px 16px; }
}

/* Kasten „Rechner einbinden“ */
.embed-box { margin: 18px 0 0; background: #fff; box-shadow: var(--sh); padding: 0 22px; font-size: .92rem; }
.embed-box summary { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; color: var(--head); padding: 16px 0; list-style: none; }
.embed-box summary::-webkit-details-marker { display: none; }
.embed-box summary::before { content: "+"; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; background: var(--brick-soft); color: var(--brick); font-weight: 700; }
.embed-box[open] summary::before { content: "\2212"; }
.embed-in { padding: 0 0 18px; color: var(--ink-2); }
@media (min-width: 980px) { .embed-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4px 32px; } .embed-in > p:first-child { grid-row: span 4; } }
.embed-in p { margin: 0 0 10px; }
.embed-label { display: block; font-weight: 700; font-size: .85rem; margin: 0 0 4px; color: var(--head); }
.embed-box textarea { display: block; width: 100%; max-width: 100%; min-height: 7.5em; resize: vertical; font: .78rem/1.45 var(--mono); color: var(--ink); background: var(--field-bg); border: 0; padding: 10px; margin: 0 0 4px; overflow-wrap: anywhere; }
.embed-box textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--brick); }
.embed-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.embed-copy { font: 700 .9rem/1.2 var(--font); padding: 10px 18px; color: #fff; background: var(--grad); border: 0; border-radius: var(--r-btn); cursor: pointer; }
.embed-copy:hover { filter: brightness(.92); }
.embed-status { color: var(--brick-deep); font-weight: 700; }
.embed-status:empty { display: none; }
.embed-note { font-size: .84rem; color: var(--ink-3); margin-bottom: 0 !important; }

/* Formel und Indextabelle */
.duo { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.duo-figure { margin-top: 48px; }
@media (min-width: 1200px) { .duo-figure { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; } }
@media (min-width: 980px) { .duo-text { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; } }
.duo .tablewrap { margin: 0; }
.duo-text .body { max-width: none; }
.duo-text .body > h2:first-of-type { margin-top: 0; }
.duo-side { display: grid; gap: 18px; min-width: 0; }
.duo-side .offer, .duo-side .caveat { margin: 0; }
.side-text { margin: 0; font-size: .95rem; color: var(--ink-2); }
@media (min-width: 980px) { .duo-side { position: sticky; top: 84px; } }
.formula-card { padding: 30px 30px 24px; background: var(--grad-d); color: #fff; }
.formula-card .kicker { color: #fff; }
.formula-card .formula { margin: 0 0 14px; font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.4; color: #fff; letter-spacing: -.01em; }
.formula span { box-shadow: inset 0 -2px 0 rgba(255, 255, 255, .7); }
.formula-ex { margin: 0 0 16px; padding: 10px 14px; background: rgba(255, 255, 255, .14); font-variant-numeric: tabular-nums; }
.formula-ex b { white-space: nowrap; }
.formula-card p { font-size: .96rem; }
.formula-note { margin: 0; font-size: .88rem; border-top: 1px solid rgba(255, 255, 255, .3); padding-top: 14px; }

/* Rechenbeispiele */
.cases { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case { min-width: 0; padding: 26px 26px 14px; background: #fff; box-shadow: var(--sh); }
.case-n { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); }
.case table { font-size: .92rem; }
.case caption { padding: 0 0 14px; font-size: 1.12rem; }
.case caption::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 12px; background: var(--brick); }
.case th { background: none; padding: 8px 0; border-bottom: 1px solid var(--line); }
.case td { padding: 9px 0; }
.case td.n { padding-left: 12px; vertical-align: top; font-weight: 700; }
.case td small { display: block; margin-top: 2px; font-size: .8rem; color: var(--ink-3); line-height: 1.4; }
.case tr.sum td { background: var(--brick); color: #fff; border-top: 0; }
.case tr.sum td:first-child { padding-left: 12px; }
.case tr.sum td.n { color: #fff; padding-right: 12px; font-size: 1.2rem; font-variant-numeric: lining-nums proportional-nums; }
.case tr.sum td small { color: rgba(255, 255, 255, .9); }
.case td:first-child { -webkit-hyphens: auto; hyphens: auto; }
@media (max-width: 400px) { .case { padding: 18px 14px 8px; } .case table { font-size: .86rem; } .case td.n { padding-left: 8px; } .case tr.sum td.n { font-size: 1.05rem; } }
.note-bar { display: flex; gap: 16px; align-items: flex-start; margin: 28px 0 0; padding: 20px 24px; background: #fff; box-shadow: var(--sh); color: var(--ink-2); }
.note-bar .ic { width: 40px; height: 40px; color: var(--brick); }

/* Schritt für Schritt */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); counter-reset: flow; }
@media (min-width: 640px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow li { display: flex; flex-direction: column; padding: 30px 28px 26px; background: #fff; box-shadow: var(--sh); }
.flow-n { font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; color: var(--brick); margin-bottom: 18px; }
.flow h3 { margin: 0; font-size: 1.22rem; }
.flow h3::after { content: ""; display: block; width: 40px; height: 3px; margin: 14px 0; background: var(--brick); }
.flow p { margin: 0 0 18px; font-size: .96rem; color: var(--ink-2); }
.flow a { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .95rem; text-decoration: none; }
.flow a:hover { text-decoration: underline; }

/* Produkte: Anzeigen-Kasten neben der Amazon-Liste */
.shop-main { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); align-items: start; }
.shop-main .mz-box, .shop-main .mz-prods { margin: 0; }
@media (min-width: 1100px) { .shop-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); } .shop-main .mz-box { grid-template-columns: minmax(0, 1fr); } }
.sec-sources { padding-top: 0; }
.sec-sources .sources { max-width: none; border-top: 1px solid var(--line); padding-top: 12px; }
@media (min-width: 900px) { .sec-sources .sources ol { columns: 2; column-gap: 56px; } .sec-sources .sources li { break-inside: avoid; } }

/* ---------- Seitenköpfe der Unterseiten: Sand-Fläche, Text links, Foto im Verlaufsrahmen rechts ---------- */
.phead { position: relative; margin: 0 calc(50% - 50vw); background: var(--sand); overflow: hidden; }
.phead-in { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 36px var(--pad) 44px; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
.phead-text { min-width: 0; }
.phead h1 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.12; max-width: 22ch; }
.phead .lead { max-width: 56ch; }
.phead .frame { max-width: 600px; }
@media (min-width: 1000px) { .phead-in { grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 64px; padding-top: 56px; padding-bottom: 64px; } }
.phead.no-img .phead-in { grid-template-columns: minmax(0, 1fr); }
main > .phead + .about-facts { margin-top: 32px; }

/* Kopf der Rechtsseiten und der 404-Seite */
.hero { position: relative; margin: 0 calc(50% - 50vw) 8px; padding: 44px max(var(--pad), calc(50vw - 450px)); background: var(--sand); }
.hero h1 { max-width: 24ch; font-size: clamp(2rem, 3.6vw, 3rem); }
.hero .credit { margin-top: 12px; }
main > .hero-tight ~ .body { max-width: 900px; margin: 40px auto 0; }
main > .hero:not(.hero-tight) { text-align: center; }
main > .hero:not(.hero-tight) h1, main > .hero:not(.hero-tight) .lead { margin-left: auto; margin-right: auto; }
.hero-tight ~ .body h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 1.6em; }

/* Über uns */
.about-facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .about-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.about-facts li { display: flex; align-items: center; gap: 14px; padding: 20px 22px; background: #fff; box-shadow: var(--sh); font-weight: 700; font-size: .98rem; color: var(--head); }
.about-facts .ic { width: 34px; height: 34px; color: var(--brick); }
.about-grid { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); margin-top: 32px; }
@media (min-width: 1000px) { .about-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 64px; } }
.about-grid .body { max-width: none; }
.about-side { display: grid; gap: 20px; align-content: start; min-width: 0; }
.about-card h2 { font-size: 1.5rem; margin: 0 0 14px; }
.about-photo-note { font-size: .84rem; color: var(--ink-3); margin: 0; }
.about-person { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; align-items: start; }
.about-person img { width: 120px; height: 120px; object-fit: cover; }
.about-person p { margin: 0 0 10px; font-size: .94rem; }
@media (max-width: 420px) { .about-person { grid-template-columns: 1fr; } }

/* Rechner-Band (Übersichten) */
.calc-band { display: grid; grid-template-columns: minmax(0, 1fr); margin: 72px 0 0; background: var(--grad-d); color: #fff; overflow: clip; }
@media (min-width: 900px) { .calc-band { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); } }
.calc-band-media { min-height: 240px; position: relative; }
.calc-band-img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .calc-band-img { position: absolute; inset: 0; } }
.calc-band-text { padding: 30px 22px; }
@media (min-width: 900px) { .calc-band-text { padding: 48px 52px; } }
.calc-band .kicker { color: #fff; }
.calc-band h2 { margin: 0 0 10px; color: #fff; }
.calc-band h2 a { color: #fff; text-decoration: none; }
.calc-band h2 a:hover { text-decoration: underline; }
.calc-band-facts { list-style: none; margin: 22px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.calc-band-facts li { padding: 14px 16px; background: rgba(255, 255, 255, .12); display: grid; gap: 2px; }
.calc-band-facts b { font-size: clamp(1.3rem, 2vw, 1.55rem); line-height: 1.1; white-space: nowrap; font-variant-numeric: lining-nums proportional-nums; }
.calc-band-facts span { font-size: .86rem; }
.calc-band-note { font-size: .86rem; margin: 0 0 18px; }

/* ---------- Fließtext ---------- */
.body { max-width: var(--measure); padding-bottom: 8px; overflow-wrap: break-word; }
.body ul, .body ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.body li { margin: 0 0 .45em; }
.body li::marker { color: var(--brick); font-weight: 700; }
.facts { background: #fff; box-shadow: var(--sh); padding: 24px 28px 10px; margin: 0 0 36px; border-top: 3px solid var(--brick); }
.facts > p:first-child { margin-bottom: .6em; }
.facts > p:first-child strong { font-size: 1.3rem; font-weight: 700; color: var(--head); }
.facts > p:first-child strong::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 10px; background: var(--brick); }
.facts ul { margin-bottom: 12px; }
.facts p:last-child { margin-bottom: 12px; }
.facts .facts-stand { font-size: .84rem; color: var(--ink-2); margin: -4px 0 12px; }
.caveat { background: var(--sand); padding: 16px 20px; margin: 28px 0; font-size: .92rem; color: var(--ink-2); box-shadow: inset 3px 0 0 var(--brick); }
.caveat strong { color: var(--head); }
.checks { list-style: none; padding-left: 0 !important; }
.checks li { padding-left: 2em; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 1.1em; height: 1.1em; border: 2px solid var(--brick); background: #fff; }

/* Tabellen: kantig, Kopfzeile Sand, scrollen bei Bedarf in sich */
.tablewrap { overflow-x: auto; margin: 18px 0 26px; max-width: 100%; background: #fff; box-shadow: var(--sh); }
table { border-collapse: collapse; width: 100%; font-size: .94rem; line-height: 1.5; }
caption { text-align: left; font-weight: 700; font-size: 1.1rem; line-height: 1.3; padding: 16px 18px 12px; color: var(--head); }
th { text-align: left; font-weight: 700; font-size: .82rem; padding: 11px 14px; background: var(--sand); color: var(--head); vertical-align: bottom; }
td { padding: 10px 14px; border-top: 1px solid var(--line-soft); vertical-align: top; }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
td:first-child { min-width: 5ch; }
td.n, th.n { text-align: right; white-space: nowrap; }
td.calc { color: var(--ink-3); font-size: .87rem; }
tr.sum td { font-weight: 700; background: var(--brick-soft); border-top: 0; }
tr.sum td.n { color: var(--brick-deep); }
td, th { overflow-wrap: break-word; }
.fig, .post-fig { margin: 28px 0 32px; }
.fig img, .post-fig img { display: block; width: 100%; height: auto; }
.fig figcaption, .post-fig figcaption { font-size: .87rem; color: var(--ink-3); margin-top: 10px; }

.author { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 16px; align-items: start; margin: 40px 0 0; padding: 22px; background: var(--sand); max-width: var(--measure); }
.author strong { font-size: 1.06rem; }
.author p { margin: 0; color: var(--ink-2); }
.author-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--brick); }
.author-text p { margin: 0; }
.author-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 4px !important; color: var(--head) !important; }
.social { display: inline-flex; gap: 6px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: var(--ink-2); background: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); }
.social a:hover, .social a:focus-visible { color: #fff; background: var(--brick); box-shadow: none; }
.social svg { width: 16px; height: 16px; }
.social-lg a { width: 38px; height: 38px; }
.social-lg svg { width: 18px; height: 18px; }
.meta-author { display: inline-flex; align-items: center; gap: 6px; }
.meta-author img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.sources { font-size: .9rem; color: var(--ink-2); max-width: var(--measure); }
.sources h2 { font-size: 1.4rem; }
.sources ol { padding-left: 1.4em; }
.sources li { margin-bottom: .35em; }
.sources li::marker { color: var(--ink-3); font-weight: 600; }
.sources a { overflow-wrap: anywhere; }

/* ---------- Karten mit Foto (Übersichten, Weiterlesen, 404) ---------- */
.cards { margin-top: 64px; }
.cards > h2 { margin: 0 0 24px; }
.cards ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .cards ul { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .cards ul { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; } }
@media (min-width: 980px) and (max-width: 1199px) { .cards ul:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .cards ul:has(> li:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } .cards ul:has(> li:nth-child(4):last-child) .card-body { padding: 20px 22px; } }
.card { position: relative; display: flex; flex-direction: column; background: #fff; box-shadow: var(--sh); overflow: clip; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--sh-lg); transform: translateY(-3px); }
.card:focus-within { outline: 3px solid var(--brick); outline-offset: 3px; }
.card-media { position: relative; }
.card-media .card-img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.badge { position: absolute; left: 0; bottom: 0; max-width: calc(100% - 24px); background: var(--grad); color: #fff; font-weight: 700; font-size: .8rem; padding: 6px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 26px 22px; }
.card-meta { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); }
.card h3 { margin: 8px 0 0; font-size: 1.22rem; line-height: 1.3; text-wrap: pretty; }
.card h3::after { content: ""; display: block; width: 40px; height: 3px; margin: 14px 0; background: var(--brick); }
.card h3 a { color: var(--head); text-decoration: none; }
.card h3 a:focus-visible { outline: none; }
.card h3 a::before { content: ""; position: absolute; inset: 0; }
.card p { margin: 0 0 18px; color: var(--ink-2); font-size: .95rem; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-more { font-weight: 700; font-size: .92rem; color: var(--brick); }
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* ---------- Fuß: Schiefer, mehrspaltig ---------- */
.foot { margin-top: 100px; background: var(--foot); color: var(--foot-text); font-size: .94rem; }
.home .foot { margin-top: 0; }
.foot-in { max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 56px var(--pad) 36px; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .foot-in { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 72px; padding-bottom: 44px; } .foot-brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .foot-in { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 48px; } .foot-brand { grid-column: auto; } }
.foot-logo { display: inline-block; }
.foot-logo img { display: block; height: 28px; width: auto; max-width: 100%; }
.foot-brand p { margin: 18px 0 22px; max-width: 46ch; }
.foot-cta { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--r-btn); background: var(--grad); color: #fff; font-weight: 700; text-decoration: none; }
.foot-cta:hover { color: #fff; filter: brightness(1.08); }
.foot-h { margin: 0 0 14px; color: #fff; font-weight: 700; font-size: 1.1rem; }
.foot-h::after { content: ""; display: block; width: 32px; height: 3px; margin-top: 10px; background: var(--terra); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-col a, .foot-base a { color: var(--foot-text); text-decoration: none; }
.foot-col a:hover, .foot-base a:hover { color: #fff; text-decoration: underline; }
.foot-base { background: var(--foot-deep); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 28px; padding: 18px var(--pad) 22px; font-size: .84rem; color: var(--foot-text); }

/* ---------- Einwilligungsbanner ---------- */
.consent { position: fixed; z-index: 70; left: 12px; right: 12px; bottom: 12px; max-width: 540px; max-height: calc(100vh - 24px); overflow-y: auto; background: #fff; box-shadow: var(--sh-lg); border-top: 4px solid var(--brick); padding: 22px 24px; }
@media (min-width: 720px) { .consent { left: 32px; right: auto; bottom: 32px; } }
.consent[hidden] { display: none; }
.consent h2 { font-size: 1.3rem; margin: 0 0 8px; }
.consent p { font-size: .9rem; color: var(--ink-2); margin: 0 0 12px; }
.consent-more { margin: 0 0 12px; font-size: .92rem; }
.consent-more summary { cursor: pointer; color: var(--brick); font-weight: 700; margin-bottom: 8px; }
.consent-more label { display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.consent-more input { accent-color: var(--brick); width: 18px; height: 18px; }
.consent-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.consent-btn { font: 700 .95rem/1.2 var(--font); padding: 13px; border: 0; border-radius: var(--r-btn); background: var(--grad); color: #fff; cursor: pointer; }
.consent-btn:hover { filter: brightness(.92); }
.consent-btns .consent-btn[data-consent="none"] { background: #fff; color: var(--brick); box-shadow: inset 0 0 0 1.5px var(--brick); }
.consent-more .consent-btn { margin-top: 6px; background: #fff; color: var(--brick); box-shadow: inset 0 0 0 1.5px var(--brick); }
.consent-more .consent-btn:hover, .consent-btns .consent-btn[data-consent="none"]:hover { background: var(--brick-soft); filter: none; }

/* ---------- Anzeigen: Kennzeichnung, Partnerkasten, Amazon-Liste, Angebots-Fenster ---------- */
.ad-tag, .offer-tag, .mz-tag { display: inline-block; font-size: .7rem; font-weight: 700; line-height: 1.6; letter-spacing: .04em; color: var(--ink-2); background: var(--field-bg); padding: 0 8px; white-space: nowrap; }
.ad-tag { margin-left: 6px; vertical-align: 2px; }
.offer { display: block; max-width: 100%; margin: 28px 0; padding: 22px 24px; font-size: .92rem; background: #fff; box-shadow: var(--sh); }
.offer p { margin: 0 0 8px; }
.offer-head { display: flex; align-items: center; gap: 10px; }
.offer-name { font-weight: 700; font-size: 1.1rem; color: var(--head); }
.offer-head::after { content: none; }
.offer-lead { font-weight: 600; font-size: .97rem; line-height: 1.5; color: var(--ink); padding-top: 12px; border-top: 3px solid var(--brick); border-image: linear-gradient(90deg, var(--brick) 0 40px, transparent 40px) 1; }
.offer-points { list-style: none; padding: 0 !important; margin: 0 0 16px !important; display: grid; gap: 6px; }
.offer-points li { position: relative; padding-left: 26px; color: var(--ink-2); line-height: 1.45; margin: 0; }
.offer-points li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: var(--brick-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23a8432a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.offer-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.offer-cta span { font-size: .82rem; color: var(--ink-2); }
.offer-btn, .mz-cta { display: inline-block; padding: 12px 20px; font: 700 .92rem/1.2 var(--font); color: #fff; background: var(--grad); border-radius: var(--r-btn); text-decoration: none; }
.offer-btn:hover, .offer-btn:focus-visible, .mz-cta:hover, .mz-cta:focus-visible { color: #fff; filter: brightness(.92); }
.offer-note { font-size: .78rem; color: var(--ink-3); margin: 10px 0 0 !important; }

.mz-prods { margin: 28px 0; background: #fff; box-shadow: var(--sh); overflow: clip; font-size: .92rem; }
.mz-prods p { margin: 0; }
.mz-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 16px 20px; background: var(--sand); }
.mz-head strong { flex: 1 1 200px; font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: var(--head); }
.mz-head img { height: 22px; width: auto; background: #fff; padding: 4px 8px; box-sizing: content-box; }
.mz-intro { padding: 14px 20px 2px; color: var(--ink-2); }
.mz-prods ul { list-style: none; margin: 0; padding: 0; }
.mz-prods li { display: flex; align-items: center; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); margin: 0; }
.mz-text { flex: 1 1 auto; min-width: 0; }
.mz-name { font-weight: 700; color: var(--head); overflow-wrap: anywhere; }
.mz-use, .mz-check { color: var(--ink-2); line-height: 1.45; }
.mz-check span { font-weight: 700; color: var(--ink); }
.mz-btn { flex: none; display: inline-block; padding: 10px 16px; font: 700 .86rem/1.2 var(--font); color: var(--brick); background: #fff; border-radius: var(--r-btn); box-shadow: inset 0 0 0 1.5px var(--brick); text-decoration: none; white-space: nowrap; }
.mz-btn:hover, .mz-btn:focus-visible { background: var(--grad); color: #fff; box-shadow: none; }
.mz-note { padding: 12px 20px; font-size: .76rem; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 560px) { .mz-prods li { flex-direction: column; align-items: stretch; gap: 8px; } .mz-btn { text-align: center; } }

.mz-box { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin: 28px 0; background: #fff; box-shadow: var(--sh); overflow: hidden; font-size: .93rem; }
@media (min-width: 760px) { .mz-box { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; } }
.mz-box-img { display: block; line-height: 0; }
.mz-box-img img { display: block; width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.mz-box-text { padding: 20px 22px 14px; }
@media (min-width: 760px) { .mz-box.mz-box-sq { grid-template-columns: 300px minmax(0, 1fr); align-items: center; } .mz-box.mz-box-nopic { grid-template-columns: minmax(0, 1fr); } }
.mz-box-sq .mz-box-img img { height: auto; min-height: 0; object-fit: contain; }
@media (max-width: 759px) { .mz-box-sq .mz-box-img { display: none; } }
.mz-box-logo { height: 26px; width: auto; max-width: 150px; object-fit: contain; }
.mz-box p { margin: 0 0 8px; max-width: none; }
.mz-box-head { display: flex; align-items: center; gap: 10px; }
.mz-box-title { font-weight: 700; font-size: 1.1rem; line-height: 1.3; color: var(--head); }
.mz-box-title::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 10px; background: var(--brick); }
.mz-box ul { margin: 0 0 12px; padding-left: 18px; }
.mz-box li { margin: 0 0 4px; line-height: 1.4; }
.mz-box li::marker { color: var(--brick); }
.mz-box .mz-note { padding: 0; margin: 0; }

.promo { position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 340px; max-width: calc(100vw - 24px); background: #fff; box-shadow: var(--sh-lg); border-top: 4px solid var(--brick); padding: 16px 18px 14px; font-size: .88rem; line-height: 1.45; opacity: 0; transform: translateY(24px); transition: opacity .25s ease, transform .25s ease; }
.promo[hidden] { display: none; }
.promo.in { opacity: 1; transform: none; }
.promo p { margin: 0 0 8px; }
.promo-head { display: flex; align-items: center; gap: 10px; min-height: 28px; padding-right: 34px; }
.promo-logo { height: 26px; width: auto; max-width: 150px; object-fit: contain; }
.promo-name { font-weight: 700; font-size: 1.02rem; }
.promo-x { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--field-bg); font: 400 1.4rem/1 var(--font); color: var(--ink); cursor: pointer; }
.promo-x:hover, .promo-x:focus-visible { background: var(--brick-soft); }
.promo-img { display: block; margin: 0 0 10px; line-height: 0; }
.promo-img img { display: block; width: 100%; height: auto; }
.promo-lead { color: var(--ink); }
.promo-note { font-size: .74rem; color: var(--ink-3); margin: 0 !important; }
@media (max-width: 640px) { .promo { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; padding: 14px 16px 12px; } .promo-img { display: none; } }
@media (prefers-reduced-motion: reduce) { .promo { transition: none; } }

/* ---------- Artikel: Kopf, Inhaltsverzeichnis, Text, Seitenleiste ---------- */
.progress { position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: 0 50%; }
.post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0 0; }
.post-tags li { font-size: .8rem; font-weight: 700; color: var(--ink-2); background: #fff; padding: 4px 12px; }
.post-tags li:first-child { background: var(--grad); color: #fff; }
.post-intro { margin: 32px 0 0; display: grid; gap: 16px; }
.post-intro .lead { margin: 0; max-width: 72ch; color: var(--ink); }
.post-intro .post-meta, .post-intro .share { align-self: start; }
@media (min-width: 1100px) {
  .post-intro { grid-template-columns: minmax(0, 1fr) 300px; gap: 0 40px; margin-top: 44px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
  .post-intro .lead { grid-row: span 2; max-width: none; font-size: 1.22rem; }
  .post-intro .post-meta { margin: 0; flex-direction: column; gap: 6px; padding: 18px 20px; background: #fff; box-shadow: var(--sh); }
  .post-intro .share { margin-top: 14px; }
}
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--ink-2); margin: 0; }
.post-meta a { color: inherit; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin: 36px 0 0; }
@media (min-width: 1100px) { .post-grid { grid-template-columns: 240px minmax(0, 1fr) 300px; gap: 40px; } }
.post-main { min-width: 0; overflow-wrap: break-word; }
.post-main .body, .post-main .author, .post-main .sources { max-width: 100%; }
.post-main img { max-width: 100%; }
.post-main .body > h2:first-child { margin-top: 0; }
.post-main .body h2 { font-size: clamp(1.55rem, 2.3vw, 1.95rem); margin-top: 1.9em; }

/* Inhaltsverzeichnis: am Desktop mitlaufend, mobil nicht sticky */
.post-toc { min-width: 0; position: static; }
@media (min-width: 1100px) { .post-toc { position: sticky; top: 84px; align-self: start; } }
.toc-box { background: #fff; box-shadow: var(--sh); overflow: clip; }
.toc-box summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; padding: 16px 18px; list-style: none; display: flex; justify-content: space-between; align-items: center; color: var(--head); }
.toc-box summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; background: var(--brick-soft); color: var(--brick); font-weight: 700; }
.toc-box[open] summary::after { content: "\2212"; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-list { list-style: none; margin: 0; padding: 0 8px 12px; max-height: 55vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.toc-list li { margin: 0; }
.toc-list a { display: block; padding: 6px 10px; color: var(--ink-2); text-decoration: none; font-size: .88rem; line-height: 1.35; }
.toc-list .toc-h3 a { padding-left: 22px; font-size: .82rem; }
.toc-list a:hover { color: var(--head); background: var(--field-bg); }
.toc-list a.active { color: var(--brick); font-weight: 700; background: var(--brick-soft); box-shadow: inset 3px 0 0 var(--brick); }
@media (min-width: 1100px) {
  .toc-list { max-height: calc(100vh - 180px); }
  .toc-box summary { cursor: default; pointer-events: none; }
  .toc-box summary::after, .toc-box[open] summary::after { content: none; }
}
.post-side { min-width: 0; }
.side-card { background: #fff; box-shadow: var(--sh); padding: 24px; margin: 0 0 22px; font-size: .94rem; }
.side-card p { margin: 0 0 8px; }
.side-kicker { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brick); }
.side-title { font-weight: 700; font-size: 1.35rem; line-height: 1.25; color: var(--head); }
.side-cta { background: var(--grad-d); color: #fff; }
.side-cta .side-title, .side-cta .side-kicker { color: #fff; }
.side-ic { width: 44px; height: 44px; color: #fff; margin-bottom: 14px; stroke-width: 1.4; }
.side-btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; padding: 13px 14px; font: 700 .98rem/1.2 var(--font); color: var(--brick); background: #fff; border-radius: var(--r-btn); text-decoration: none; }
.side-btn:hover, .side-btn:focus-visible { background: var(--brick-soft); color: var(--brick-deep); }
.side-more .side-kicker::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 10px; background: var(--brick); }
.side-more ul { list-style: none; padding: 0; margin: 0 0 10px; }
.side-more li { padding: 11px 0; border-bottom: 1px solid var(--line-soft); display: grid; gap: 2px; }
.side-more li a { font-weight: 700; font-size: 1rem; text-decoration: none; color: var(--head); line-height: 1.35; }
.side-more li a:hover { color: var(--brick); }
.side-more li span { font-size: .8rem; color: var(--ink-3); }
.side-all { font-weight: 700; font-size: .9rem; }
@media (min-width: 1100px) {
  .side-sticky { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; overscroll-behavior: contain; padding: 0 12px 24px 12px; margin: 0 -12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}

/* Teilen-Leiste: reine Links */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 100%; }
.share-top { margin: 0; }
.share-end { margin: 8px 0 0; padding: 0 0 20px; }
.share-end + .author { margin-top: 0; }
.share-title { margin: 0; font-weight: 700; font-size: .98rem; color: var(--head); flex-basis: 100%; }
.share-list { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; min-width: 0; }
.share-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 10px; border: 0; border-radius: 50%; background: var(--field-bg); color: var(--ink-2); font: inherit; font-size: .85rem; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; transition: color .15s, background-color .15s; }
.share-btn svg { flex: none; display: block; }
.share-btn:hover, .share-btn:focus-visible, .share-btn.is-done { color: #fff; background: var(--brick); }
.share-native { padding: 0 14px 0 12px; border-radius: var(--r-btn); }
.share-status { font-size: .82rem; font-weight: 700; color: var(--brick-deep); min-height: 1em; }
.share-status:empty { display: none; }

/* ---------- Einbett-Seite /embed/… (im iframe fremder Websites, 320 bis 800 px) ---------- */
body.embed { display: flow-root; font-size: .95rem; line-height: 1.5; overflow-x: hidden; background: #fff; }
.em { padding: 12px 12px 10px; max-width: 800px; margin: 0 auto; }
.em-title { font-size: 1.25rem; line-height: 1.25; max-width: none; margin: 0 0 4px; }
.em-title::after { content: ""; display: block; width: 40px; height: 3px; margin-top: 8px; background: var(--brick); }
.em .presets { margin: 10px 0 0; }
.em-sheet { margin-top: 12px; box-shadow: 0 0 0 1px var(--line); }
.em .inputs { padding: 12px 14px 4px; }
.em .step h3 { font-size: .98rem; margin: 14px 0 2px; }
.em .step:first-child h3 { margin-top: 0; }
.em .step h3 b { width: 22px; height: 22px; font-size: .78rem; }
.em .line { padding: 7px 0 8px; gap: 4px 12px; }
.em .line:not(.wide) { grid-template-columns: minmax(0, 1fr) 8rem; }
.em .line label, .em .line-label { font-size: .9rem; }
.em .line .note { font-size: .78rem; }
.em .amount { height: 40px; }
.em .amount input { font-size: 1rem; }
.em .choice label { padding: 6px 10px; font-size: .88rem; }
.em .ledger { padding: 14px 14px 16px; }
.em .ledger h2 { font-size: 1.15rem; }
.em .rows li { padding: 5px 0; }
.em .rows li.total { padding: 10px 14px; margin-top: 8px; }
.em .rows li.total .v { font-size: clamp(1.6rem, 6vw, 2.1rem); }
.em .after { margin-top: 12px; font-size: .86rem; }
@media (min-width: 620px) {
  .em-sheet { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .em .ledger { border-top: 0; border-left: 1px solid var(--line); }
  .em .ledger-in { position: static; }
}
@media (max-width: 380px) {
  .em { padding: 10px 8px; }
  .em .inputs, .em .ledger { padding-left: 12px; padding-right: 12px; }
  .em .line:not(.wide) { grid-template-columns: minmax(0, 1fr) 7.5rem; }
}
.em-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; margin: 10px 2px 0; font-size: .8rem; color: var(--ink-3); }
.em-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.em-brand:hover strong { text-decoration: underline; }
.em-brand img { display: block; width: 20px; height: 20px; }

/* ---------- Vernetzung der Schwesterseiten (netzwerk.py) ---------- */
.netz { margin: 0 calc(50% - 50vw); padding: 56px var(--pad) 64px; background: var(--sand); }
.netz-in { max-width: var(--wrap); margin: 0 auto; }
.netz h2 { font-size: 1.35rem; margin: 0 0 6px; }
.netz p { margin: 0 0 20px; font-size: .92rem; color: var(--ink-2); max-width: none; }
.netz ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.netz li { margin: 0; padding: 16px 18px; background: #fff; box-shadow: var(--sh); display: grid; gap: 4px; align-content: start; }
.netz li a { font-weight: 700; text-decoration: none; }
.netz li a:hover { text-decoration: underline; }
.netz li span { font-size: .86rem; line-height: 1.45; color: var(--ink-2); }

/* ---------- Druck ---------- */
@media print {
  body { background: #fff; }
  .top, .navbar, .foot, details.more summary, .share, .promo, .mz-prods, .mz-box, .offer, .consent, .progress, .hero-media, .leaves, .calcsec-media, .photorow, .frame, .embed-box, .post-side, .netz { display: none !important; }
  .hero-home, .phead, .calc-band, .calcsec { color: var(--ink); background: #fff; margin: 0; height: auto; min-height: 0; }
  .hero-home::before { display: none; }
  .sheet, .card, .tile, .faq details, .tablewrap, .case, .qbox { box-shadow: none; }
  .band-sand { box-shadow: none; background: #fff; }
  .ledger { background: #fff; }
  .qband, .rows li.total, .case tr.sum td { background: #fff; color: var(--ink); }
}
