/* bruttonetto.ch – Stylesheet
 *
 * Mobile first: Basisregeln für kleine Bildschirme, Erweiterungen ab 48em (Tablet) und 64em (Desktop).
 * Keine externen Schriften. Keine Inline-Styles (Content-Security-Policy) – alles steht hier.
 *
 * Inhalt: 1 Grundlagen · 2 Bausteine · 3 Kopf · 4 Rechner · 5 Ergebnis · 6 WhatsApp · 7 Abschnitte
 *         8 Beratungsseite · 9 Rechtliches · 10 Fuss · 11 Dialoge · 12 Breakpoints · 13 Druck
 */

/* ===================================================================== 1 Grundlagen */

:root {
    --red: #d91a2a;
    --red-600: #c3141f;
    --red-700: #a8101b;
    --red-900: #6e0a12;
    --red-50: #fdf0f1;
    --ink: #1c1c22;
    --ink-2: #474753;
    --ink-3: #6f6f7c;
    --line: #e7e4e0;
    --line-2: #d6d3ce;
    --paper: #ffffff;
    --sand: #f7f4f0;
    --sand-2: #efeae3;
    --night: #17171c;
    --wa: #128c4a;
    --wa-600: #0f7a40;
    --amber: #f0a23b;

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgb(20 20 30 / 0.06), 0 2px 8px rgb(20 20 30 / 0.05);
    --shadow: 0 2px 4px rgb(20 20 30 / 0.05), 0 12px 32px rgb(20 20 30 / 0.10);
    --shadow-lg: 0 4px 8px rgb(20 20 30 / 0.06), 0 24px 64px rgb(20 20 30 / 0.20);

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-head: "Roboto Slab", "Rockwell", "Museo Slab", "Zilla Slab", "Georgia", serif;
    --wrap: 74rem;
    --gutter: 1rem;
    --section: 3.5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
html:has(dialog[open]) { overflow: hidden; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-700); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--red); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; margin: 0 0 0.55em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.35rem + 3vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p, ul, ol, dl { margin: 0 0 1em; }
p { text-wrap: pretty; }
strong { font-weight: 650; }
code { font-size: 0.9em; background: var(--sand-2); padding: 0.1em 0.35em; border-radius: 4px; }

:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0.5rem; z-index: 100; background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; }
.skip-link:focus { left: 0.5rem; color: #fff; }

.only-desktop { display: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===================================================================== 2 Bausteine */

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -0.2em; }
.icon--lg { width: 1.5em; height: 1.5em; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
    min-height: 48px; padding: 0.7rem 1.3rem; border-radius: 999px;
    font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
    border: 2px solid transparent; transition: background-color 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgb(217 26 42 / 0.28); }
.btn--primary:hover { background: var(--red-600); color: #fff; box-shadow: 0 8px 22px rgb(217 26 42 / 0.36); }
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--sand); color: var(--ink); border-color: var(--ink-3); }
.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgb(18 140 74 / 0.3); }
.btn--whatsapp:hover { background: var(--wa-600); color: #fff; }
.btn--lg { min-height: 56px; font-size: 1.05rem; padding: 0.85rem 1.6rem; }
.btn--block { width: 100%; }
.btn .icon { transition: transform 0.15s; }
.btn:hover .icon { transform: translateX(2px); }

.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.25rem; }
.card__title { font-size: 1.15rem; margin-bottom: 1rem; }

.chip {
    display: inline-flex; align-items: center; gap: 0.45rem;
    font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
    padding: 0.35rem 0.8rem; border-radius: 999px;
    background: var(--red-50); color: var(--red-700); margin-bottom: 1.1rem;
}
.chip--light { background: rgb(255 255 255 / 0.14); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.22); }

.eyebrow { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.78rem; margin-bottom: 0.6rem; }
.eyebrow--light { color: #ffd9dc; }

.pill { display: inline-block; vertical-align: 0.15em; margin-left: 0.25rem; font-family: var(--font); font-size: 0.72rem; font-weight: 700; padding: 0.15rem 0.55rem; border-radius: 999px; background: var(--red-50); color: var(--red-700); letter-spacing: 0.02em; white-space: nowrap; }

.dev-note { background: #fff6d6; border: 1px dashed #c9a400; color: #5c4b00; padding: 0.6rem 0.8rem; border-radius: 8px; font-size: 0.875rem; }

.notice { display: flex; gap: 1rem; border-radius: var(--radius); padding: 1.25rem; }
.notice--error { background: var(--red-50); border: 1px solid #f6c9cd; }
.notice__icon { color: var(--red); font-size: 1.5rem; line-height: 1; }
.notice h2 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.notice p:last-child { margin-bottom: 0; }

.more-link { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 650; text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.more-link--light { color: #fff; }
.more-link--light:hover { color: #fff; }

/* ===================================================================== 3 Kopf */

.site-header {
    position: sticky; top: 0; z-index: 40;
    background: var(--red);
    box-shadow: 0 1px 0 rgb(0 0 0 / 0.08), 0 6px 20px rgb(110 10 18 / 0.18);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; min-height: 60px; }
.site-header__logo { display: block; padding: 0.5rem 0; }
.site-header__logo img { width: 150px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.15rem; }
.site-nav a {
    display: block; color: #fff; text-decoration: none; font-size: 0.9rem; font-weight: 600;
    padding: 0.45rem 0.75rem; border-radius: 999px; transition: background-color 0.15s;
}
.site-nav a:hover { background: rgb(255 255 255 / 0.14); color: #fff; }
.site-nav a[aria-current="page"] { background: #fff; color: var(--red-700); }

/* ===================================================================== 4 Rechner (Startseite) */

.hero {
    position: relative; overflow: hidden; color: #fff;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520' viewBox='0 0 520 520' fill='none' stroke='%23fff' stroke-opacity='.09' stroke-width='10'%3E%3Crect x='60' y='60' width='400' height='400' rx='84'/%3E%3Crect x='160' y='150' width='56' height='220' rx='10' fill='%23fff' fill-opacity='.05' stroke='none'/%3E%3Crect x='300' y='250' width='56' height='120' rx='10' fill='%23fff' fill-opacity='.05' stroke='none'/%3E%3C/svg%3E") no-repeat right -160px top -60px / 520px,
        radial-gradient(1200px 500px at 0% 0%, #e8333f 0%, transparent 60%),
        linear-gradient(160deg, var(--red) 0%, var(--red-700) 70%, var(--red-900) 140%);
    padding: 2.25rem 0 2.5rem;
}
.hero__inner { display: grid; gap: 2rem; position: relative; }
.hero__title { color: #fff; margin-bottom: 0.45em; }
.hero__lead { font-size: 1.1rem; color: rgb(255 255 255 / 0.9); max-width: 34rem; }
.hero__trust { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 0.55rem; font-weight: 550; }
.hero__trust li { display: flex; align-items: center; gap: 0.6rem; }
.hero__trust .icon { width: 1.1rem; height: 1.1rem; padding: 0.3rem; box-sizing: content-box; border-radius: 50%; background: rgb(255 255 255 / 0.16); }
.hero__trust--dark { color: var(--ink-2); }
.hero__trust--dark .icon { background: var(--red-50); color: var(--red); }

.calc {
    background: var(--paper); color: var(--ink);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: 1.25rem; display: grid; gap: 1.1rem;
}
.calc__head { display: flex; align-items: center; gap: 0.85rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.calc__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red-50); color: var(--red); flex: none; }
.calc__title { font-size: 1.3rem; margin: 0; }
.calc__sub { margin: 0; font-size: 0.85rem; color: var(--ink-3); }
.calc__alert { display: flex; align-items: center; gap: 0.5rem; background: var(--red-50); color: var(--red-700); padding: 0.65rem 0.85rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem; }
.calc__privacy { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: -0.35rem 0 0; font-size: 0.82rem; color: var(--ink-3); }

fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field { display: grid; gap: 0.4rem; }
.field__label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); padding: 0; }
.field__help { margin: 0; font-size: 0.82rem; color: var(--ink-3); }
.field__error { color: var(--red-700); font-size: 0.86rem; font-weight: 550; margin: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }

input[type="text"], input[type="number"], select {
    width: 100%; min-height: 50px; padding: 0.65rem 0.85rem;
    font: inherit; font-size: 1rem; /* 16px verhindert das automatische Zoomen auf iOS */
    color: var(--ink); background: #fff;
    border: 1.5px solid var(--line-2); border-radius: 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder { color: #a3a3ad; }
select {
    appearance: none; padding-right: 2.5rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231c1c22' stroke-width='1.6' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.95rem center; background-size: 12px;
}
input:hover, select:hover { border-color: var(--ink-3); }
input:focus, select:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px rgb(37 99 235 / 0.18); }
[aria-invalid="true"], .input-affix:has([aria-invalid="true"]) { border-color: var(--red) !important; background-color: #fffafa; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--sand-2); border-radius: 12px; gap: 4px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.segmented span { display: block; text-align: center; padding: 0.5rem; border-radius: 9px; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.segmented input:focus-visible + span { outline: 3px solid #2563eb; outline-offset: 1px; }

.input-affix { display: flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; transition: border-color 0.15s, box-shadow 0.15s; }
.input-affix:hover { border-color: var(--ink-3); }
.input-affix:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgb(37 99 235 / 0.18); }
.input-affix__text { padding-left: 0.95rem; font-weight: 700; color: var(--ink-3); font-size: 0.95rem; }
.input-affix input { border: 0; box-shadow: none !important; background: transparent; font-size: 1.25rem; font-weight: 650; padding-left: 0.6rem; font-variant-numeric: tabular-nums; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; padding: 0.75rem 0.9rem; border-radius: 12px; background: var(--sand); }
.toggle__text { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.toggle__text small { display: block; font-weight: 400; color: var(--ink-3); font-size: 0.82rem; }

.switch { position: relative; display: inline-block; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.switch__track { position: absolute; inset: 0; border-radius: 999px; background: #c9c6c1; transition: background-color 0.2s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.25); transition: transform 0.2s; }
.switch input:checked + .switch__track { background: var(--red); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:disabled + .switch__track { opacity: 0.55; }
.switch input:focus-visible + .switch__track { outline: 3px solid #2563eb; outline-offset: 2px; }

/* ===================================================================== 5 Ergebnis */

.result { background: var(--sand); padding: 2rem 0 var(--section); scroll-margin-top: 4.5rem; }
.result:focus { outline: none; }
.result__grid { display: grid; gap: 1.25rem; }
.result__grid > * { min-width: 0; }

.result__summary { padding: 1.5rem 1.25rem; border-top: 5px solid var(--red); }
.result__label { font-family: var(--font); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-3); margin-bottom: 0.4rem; }
.result__net { font-family: var(--font-head); font-size: clamp(2.6rem, 1.8rem + 4vw, 4rem); font-weight: 600; color: var(--red); line-height: 1; margin: 0 0 0.6rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.result__ca, .result__cur { font-family: var(--font); font-size: 0.35em; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.result__inputs { font-size: 0.9rem; color: var(--ink-3); margin-bottom: 1.25rem; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(6.5rem, 1fr)); gap: 0.6rem; margin-bottom: 1.4rem; }
.kpis div { background: var(--sand); border-radius: 12px; padding: 0.6rem 0.8rem; }
.kpis dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); font-weight: 650; }
.kpis dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

.bar { border-radius: 999px; overflow: hidden; height: 22px; background: var(--sand-2); margin-bottom: 1rem; }
.bar svg { display: block; width: 100%; height: 100%; }
.seg--net { fill: var(--red); background: var(--red); }
.seg--s1 { fill: #34343e; background: #34343e; }
.seg--s2 { fill: #5d5d6a; background: #5d5d6a; }
.seg--s3 { fill: #8a8a97; background: #8a8a97; }
.seg--s4 { fill: #b5b5c0; background: #b5b5c0; }
.seg--s5 { fill: #d8d8df; background: #d8d8df; }
.seg--s6 { fill: #e9e9ee; background: #e9e9ee; }
.seg--tax { fill: var(--amber); background: var(--amber); }

.legend { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.35rem; font-size: 0.9rem; }
.legend li { display: flex; align-items: center; gap: 0.55rem; }
.legend li span:last-child { margin-left: auto; padding-left: 0.75rem; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.legend li:first-child { font-weight: 700; }
.dot { width: 0.8rem; height: 0.8rem; border-radius: 4px; flex: none; }

.tip { display: flex; gap: 0.75rem; align-items: flex-start; background: #fff8ec; border: 1px solid #f6dfb3; border-radius: 14px; padding: 0.85rem 1rem; font-size: 0.9rem; margin-bottom: 1rem; }
.tip .icon { color: #b5730f; margin-top: 0.15rem; }
.tip p { margin: 0; }

.link-edit { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 650; font-size: 0.92rem; text-decoration: none; }
.link-edit:hover { text-decoration: underline; }

.result__details { padding: 1.25rem 0.5rem 0.75rem; }
.result__details .card__title { padding: 0 0.75rem; }
.result__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.94rem; }
.result__table th, .result__table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.result__table th[scope="row"], .result__table thead th:first-child { text-align: left; white-space: normal; font-weight: 450; }
.result__table thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); font-weight: 700; border-bottom-color: var(--line-2); }
.result__table small { display: block; color: var(--ink-3); font-size: 0.8em; }
.result__table small:empty { display: none; }
.result__table .is-gross th, .result__table .is-gross td { font-weight: 700; }
.result__table .is-total th, .result__table .is-total td { font-weight: 650; background: var(--sand); }
.result__table .is-net th, .result__table .is-net td { font-weight: 750; color: var(--red-700); border-bottom: 0; font-size: 1.05rem; }
/* Schmale Bildschirme: nur Position und Monat; Satz steht unter der Bezeichnung */
.result__table th:nth-child(2), .result__table td:nth-child(2),
.result__table th:nth-child(4), .result__table td:nth-child(4) { display: none; }

.result__notes { list-style: none; padding: 0.75rem 0.75rem 0; margin: 0; font-size: 0.84rem; color: var(--ink-3); display: grid; gap: 0.4rem; }
.result__notes li { padding-left: 1rem; position: relative; }
.result__notes li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-2); }

.cta-card { margin-top: 1.25rem; display: grid; gap: 1rem; align-items: center; background: var(--paper); border: 1px solid #cfe9d9; border-left: 5px solid var(--wa); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.cta-card h3 { margin-bottom: 0.3rem; }
.cta-card p { margin: 0; color: var(--ink-2); }
.cta-card .wa-hint { margin-bottom: 0; }

/* ===================================================================== 6 WhatsApp-Knopf */

.wa-cta { margin: 1.25rem 0; }
.wa-button {
    display: flex; align-items: center; gap: 0.9rem; width: 100%;
    background: var(--wa); color: #fff; text-decoration: none;
    padding: 0.8rem 1.1rem 0.8rem 0.85rem; border-radius: 18px; min-height: 64px;
    box-shadow: 0 8px 24px rgb(18 140 74 / 0.32), inset 0 -2px 0 rgb(0 0 0 / 0.12);
    transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.wa-button:hover { background: var(--wa-600); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 28px rgb(18 140 74 / 0.38); }
.wa-button:active { transform: translateY(0); }
.wa-button__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgb(255 255 255 / 0.16); flex: none; }
.wa-button__icon .icon { width: 1.7rem; height: 1.7rem; }
.wa-button__text { display: grid; line-height: 1.25; }
.wa-button__title { font-weight: 700; font-size: 1.02rem; }
.wa-button__sub { font-size: 0.84rem; opacity: 0.88; }
.wa-button__arrow { margin-left: auto; opacity: 0.85; transition: transform 0.15s; }
.wa-button:hover .wa-button__arrow { transform: translateX(3px); }
.wa-hint { font-size: 0.8rem; color: var(--ink-3); margin: 0.6rem 0 0; line-height: 1.5; }
.wa-cta--light .wa-hint { color: rgb(255 255 255 / 0.8); }
.wa-cta--light .wa-hint a { color: #fff; }
.wa-cta--light .wa-button { box-shadow: 0 8px 24px rgb(0 0 0 / 0.22), inset 0 -2px 0 rgb(0 0 0 / 0.12); }

/* ===================================================================== 7 Abschnitte */

.section { padding: var(--section) 0; }
.section--sand { background: var(--sand); }
.section--flush { padding-top: 0; }
.section--sand + .section--flush, .result + .section { padding-top: var(--section); }
.section__head { text-align: center; max-width: 44rem; margin: 0 auto 2rem; }
.section__head--left { text-align: left; margin-left: 0; }
.section__lead { color: var(--ink-2); font-size: 1.05rem; }

.steps-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; counter-reset: step; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem 1.25rem 1.25rem; box-shadow: var(--shadow-sm); }
.step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; margin-bottom: 0.9rem; box-shadow: 0 6px 16px rgb(217 26 42 / 0.3); }
.step h3 { margin-bottom: 0.35rem; }
.step p { margin: 0; color: var(--ink-2); }

.cards-3, .cards-2 { display: grid; gap: 1rem; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem; box-shadow: var(--shadow-sm); transition: transform 0.2s, box-shadow 0.2s; }
.info-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.info-card__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--red-50); color: var(--red); margin-bottom: 0.9rem; }
.info-card__icon .icon { width: 1.4rem; height: 1.4rem; }
.info-card { position: relative; }
.info-card .pill { position: absolute; top: 1.35rem; right: 1.35rem; margin: 0; }
.info-card h3 { margin-bottom: 0.4rem; }
.info-card p { margin: 0; color: var(--ink-2); font-size: 0.96rem; }
.info-card--accent { background: linear-gradient(160deg, #fff 0%, #fff8ec 100%); border-color: #f6dfb3; }
.info-card--accent .info-card__icon { background: #fdebcc; color: #a86509; }
.info-card--accent .pill { background: #fdebcc; color: #8a5307; }

.split { display: grid; gap: 1.75rem; align-items: center; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; }
.prose > :first-child, .prose > .eyebrow + h2 { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.3rem; }

.convert { padding: 0.5rem 0.5rem 0.25rem; }
.convert__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.convert__table caption { text-align: left; font-weight: 650; padding: 0.75rem 0.75rem 0.5rem; font-size: 0.95rem; }
.convert__table th, .convert__table td { padding: 0.65rem 0.75rem; text-align: right; border-top: 1px solid var(--line); }
.convert__table th[scope="row"], .convert__table thead th:first-child { text-align: left; }
.convert__table thead th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); }
.convert__table td { color: var(--ink-2); }

.feature {
    display: grid; overflow: hidden; border-radius: var(--radius-lg); color: #fff;
    background: radial-gradient(700px 300px at 100% 0%, #e8333f, transparent 70%), linear-gradient(160deg, var(--red) 0%, var(--red-700) 80%);
    box-shadow: var(--shadow);
}
.feature__media { background: #fff; display: grid; place-items: end center; padding: 1.5rem 1.5rem 0; }
.feature__media img { max-width: 280px; }
.feature__body { padding: 1.75rem 1.25rem; }
.feature__body h2 { color: #fff; }
.feature__body > p { color: rgb(255 255 255 / 0.9); }

.faq-wrap { display: grid; gap: 1rem; }
.faq { display: grid; gap: 0.75rem; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color 0.15s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
    list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.2rem; position: relative;
    font-weight: 650; font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; position: absolute; right: 1.1rem; top: 50%; width: 22px; height: 22px; margin-top: -11px;
    border-radius: 50%; background: var(--red-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath stroke='%23a8101b' stroke-width='1.6' stroke-linecap='round' d='M6 2.5v7M2.5 6h7'/%3E%3C/svg%3E") center / 11px no-repeat;
    transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 1.2rem 1.15rem; color: var(--ink-2); }

/* ===================================================================== 8 Beratungsseite */

.page-hero {
    position: relative; overflow: hidden; padding: 2.25rem 0 0;
    background: radial-gradient(600px 400px at 100% 100%, #fbe1e3, transparent 70%), var(--sand);
}
.page-hero__inner { display: grid; gap: 1.5rem; }
.page-hero__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 36rem; }
.page-hero__body .hero__trust { margin-top: 1.25rem; margin-bottom: 0.5rem; }
.page-hero__media { align-self: end; background: #fff; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 1.25rem 1.25rem 0; box-shadow: var(--shadow); max-width: 420px; justify-self: center; }

.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.benefits li { display: flex; gap: 0.8rem; align-items: flex-start; background: var(--paper); border-radius: var(--radius); padding: 1rem 1.1rem; border: 1px solid var(--line); }
.benefits .icon { color: #fff; background: var(--red); border-radius: 50%; padding: 0.25rem; box-sizing: content-box; width: 0.95rem; height: 0.95rem; margin-top: 0.15rem; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; position: relative; padding-bottom: 1.5rem; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 4px; width: 2px; background: var(--line-2); }
.timeline__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; }
.timeline h3 { margin: 0.45rem 0 0.25rem; }
.timeline p { margin: 0; color: var(--ink-2); }

.advisor { text-align: center; padding: 1.75rem 1.5rem; align-self: start; }
.advisor__img { width: 120px; margin: 0 auto 1rem; border-radius: 50%; box-shadow: 0 0 0 6px var(--red-50); }
.advisor__quote { font-family: var(--font-head); font-size: 1.2rem; line-height: 1.4; }
.advisor__meta { color: var(--ink-3); font-size: 0.875rem; margin: 0; }
.advisor .wa-cta { text-align: left; }

.gallery { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; grid-auto-flow: dense; gap: 0.6rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.gallery__a { grid-column: span 2; }
.gallery__b { grid-row: span 2; }

.cta-band {
    display: grid; gap: 1rem; align-items: center; color: #fff; border-radius: var(--radius-lg); padding: 1.75rem 1.25rem;
    background: radial-gradient(700px 300px at 0% 0%, #e8333f, transparent 70%), linear-gradient(160deg, var(--red) 0%, var(--red-700) 90%);
    box-shadow: var(--shadow);
}
.cta-band h2 { color: #fff; margin-bottom: 0.3rem; }
.cta-band p { margin: 0; color: rgb(255 255 255 / 0.9); }
.cta-band .wa-cta { margin: 0; }

/* ===================================================================== 9 Rechtliches */

.page-header { background: radial-gradient(500px 260px at 100% 0%, #fbe1e3, transparent 70%), var(--sand); padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--line); }
.page-header h1 { margin-bottom: 0.2em; }
.page-header__meta { color: var(--ink-3); font-size: 0.9rem; margin: 0; }
.page-header__lead { color: var(--ink-2); font-size: 1.1rem; }
.page-header--center { text-align: center; padding: 4rem 0; }

.legal .prose { max-width: 50rem; }
.prose--legal { font-size: 0.98rem; }
.prose--legal h2 { font-size: 1.35rem; scroll-margin-top: 5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.toc { background: var(--sand); border-radius: var(--radius); padding: 1.1rem 1.25rem 0.5rem; margin-bottom: 1.5rem; }
.toc ol { columns: 1; margin-bottom: 0.5rem; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.address-card { background: var(--sand); border-radius: var(--radius); padding: 1.1rem 1.25rem 0.1rem; }

/* ===================================================================== 10 Fuss */

.site-footer { background: var(--night); color: #b9b9c4; padding: 3rem 0 1.5rem; font-size: 0.93rem; }
.site-footer a, .site-footer .link-button { color: #e4e4ea; text-decoration: none; }
.site-footer a:hover, .site-footer .link-button:hover { color: #fff; text-decoration: underline; }
.site-footer__grid { display: grid; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgb(255 255 255 / 0.1); }
.site-footer__brand img { width: 170px; margin-bottom: 0.9rem; }
.site-footer__brand p { max-width: 22rem; margin: 0; }
.site-footer__col h2 { font-family: var(--font); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 0.8rem; }
.site-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.site-footer__bottom { display: grid; gap: 0.25rem; padding-top: 1.25rem; font-size: 0.84rem; color: #8b8b97; }
.site-footer__bottom p { margin: 0; }

/* ===================================================================== 11 Dialoge (Cookie-Banner, WhatsApp-Hinweis) */

dialog.modal {
    border: 0; padding: 0; color: var(--ink); background: var(--paper);
    width: min(36rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    overflow: auto; overscroll-behavior: contain;
}
dialog.modal::backdrop { background: rgb(14 14 20 / 0.66); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
dialog.modal[open] { animation: modal-in 0.22s ease-out; }
dialog.modal[open]::backdrop { animation: fade-in 0.22s ease-out; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
@keyframes fade-in { from { opacity: 0; } }

.modal__body { padding: 1.6rem 1.4rem 1rem; }
.modal__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--red-50); color: var(--red); margin-bottom: 1rem; }
.modal__icon .icon { width: 1.6rem; height: 1.6rem; }
.modal__icon--green { background: #e3f4ea; color: var(--wa); }
.modal__title { font-size: 1.45rem; margin-bottom: 0.5rem; padding-right: 2rem; }
.modal__text { color: var(--ink-2); font-size: 0.95rem; }
.modal__fine { font-size: 0.8rem; color: var(--ink-3); margin: 0; }
.modal__actions { display: grid; gap: 0.6rem; padding: 1rem 1.4rem 1.4rem; border-top: 1px solid var(--line); background: var(--sand); position: sticky; bottom: 0; }
.modal__actions [hidden] { display: none; }
.modal__close { position: absolute; top: 0.9rem; right: 0.9rem; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--sand); color: var(--ink-2); cursor: pointer; }
.modal__close:hover { background: var(--sand-2); color: var(--ink); }

.consent__options fieldset { border: 0; padding: 0; margin: 0 0 0.5rem; display: grid; gap: 0.6rem; }
.consent__option { display: flex; gap: 0.9rem; align-items: flex-start; padding: 0.85rem 0.95rem; border: 1px solid var(--line); border-radius: 14px; font-size: 0.875rem; color: var(--ink-2); cursor: pointer; }
.consent__option .switch { margin-top: 0.1rem; }
.consent__option strong { display: block; font-size: 0.97rem; color: var(--ink); }

.wa-dialog__facts { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.45rem; font-size: 0.92rem; }
.wa-dialog__facts li { display: flex; gap: 0.55rem; align-items: flex-start; }
.wa-dialog__facts .icon { color: var(--wa); margin-top: 0.15rem; }
.wa-dialog__preview { margin: 0 0 1rem; padding: 0.9rem; border-radius: 14px; background: #efe7dd; }
.wa-dialog__preview figcaption { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--ink-3); margin-bottom: 0.5rem; }
.chat-bubble { position: relative; margin: 0 0 0 auto; max-width: 92%; background: #d9fdd3; color: #111b21; padding: 0.6rem 0.8rem; border-radius: 12px 0 12px 12px; font-size: 0.9rem; line-height: 1.45; box-shadow: 0 1px 1px rgb(0 0 0 / 0.08); }
.chat-bubble::after { content: ""; position: absolute; top: 0; right: -8px; border-width: 0 0 10px 8px; border-style: solid; border-color: transparent transparent transparent #d9fdd3; }

/* ===================================================================== 12 Breakpoints */

@media (min-width: 30em) {
    .site-header__logo img { width: 175px; }
}

@media (min-width: 48em) {
    :root { --gutter: 1.5rem; --section: 4.5rem; }

    .only-mobile { display: none; }
    .only-desktop { display: inline; }
    .site-header__inner { min-height: 72px; }
    .site-header__logo img { width: 210px; }
    .site-nav a { font-size: 0.95rem; padding: 0.5rem 1rem; }

    .hero { padding: 3.5rem 0 4rem; background-position: right -80px top -40px, 0 0, 0 0; background-size: 640px, auto, auto; }
    .calc { padding: 1.6rem; }
    .hero__trust { grid-auto-flow: column; justify-content: start; gap: 1.5rem; }

    .result__summary { padding: 2rem; }
    .result__details { padding: 1.5rem 1rem 1rem; }
    .result__table th:nth-child(2), .result__table td:nth-child(2),
    .result__table th:nth-child(4), .result__table td:nth-child(4) { display: table-cell; }
    .rate-inline { display: none; }
    .legend { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }

    .cta-card { grid-template-columns: 1fr auto; padding: 1.5rem 1.75rem; }
    .cta-card .wa-cta { max-width: 26rem; margin: 0; }

    .wa-button { width: auto; display: inline-flex; padding-right: 1.3rem; }

    .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
    .cards-3 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .cards-2 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .benefits { grid-template-columns: repeat(2, 1fr); }

    .feature { grid-template-columns: 300px 1fr; }
    .feature__media { padding: 2rem 1.5rem 0; }
    .feature__body { padding: 2.5rem 2.5rem 2.25rem 2.25rem; align-self: center; }

    .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 170px; gap: 0.8rem; }
    .gallery__a { grid-column: span 2; grid-row: span 2; }
    .gallery img:nth-child(5), .gallery img:nth-child(6) { grid-column: span 2; }

    .cta-band { grid-template-columns: 1fr auto; padding: 2.25rem 2.5rem; }

    .toc ol { columns: 2; column-gap: 2rem; }

    .site-footer__grid { grid-template-columns: 2fr 1fr 1fr; }
    .site-footer__bottom { grid-template-columns: 1fr auto; }

    .modal__body { padding: 2rem 2rem 1.25rem; }
    .modal__actions { padding: 1.1rem 2rem 1.6rem; grid-template-columns: 1fr 1fr; }
    .consent__actions { grid-template-columns: 1fr 1fr 1.25fr; }
    .consent__actions .btn { white-space: nowrap; padding-left: 0.9rem; padding-right: 0.9rem; }
    .consent__actions:has([data-consent-action="save"]:not([hidden])) { grid-template-columns: 1fr 1.25fr; }
}

@media (min-width: 64em) {
    .hero { padding: 4.5rem 0 5rem; }
    .hero__inner { grid-template-columns: 1fr 27rem; gap: 4rem; align-items: center; }
    .hero__trust { grid-auto-flow: row; }

    .cards-3 { grid-template-columns: repeat(3, 1fr); }
    .split { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
    .split--wide { grid-template-columns: 1.4fr 1fr; align-items: start; }

    .feature { grid-template-columns: 380px 1fr; }
    .feature__media img { max-width: 330px; }

    .faq-wrap { grid-template-columns: 20rem 1fr; gap: 3rem; align-items: start; }
    .faq-wrap .section__head { position: sticky; top: 7rem; }

    .page-hero { padding-top: 3.5rem; }
    .page-hero__inner { grid-template-columns: 1.2fr 1fr; gap: 3.5rem; align-items: end; }
    .page-hero__body { padding-bottom: 3rem; }
    .page-hero__media { max-width: none; justify-self: stretch; }
}

@media (min-width: 80em) {
    /* Zusammenfassung und Tabelle nebeneinander erst, wenn beide genug Platz haben */
    .result__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: start; }
    .result__grid .legend { grid-template-columns: 1fr; }
}

/* ===================================================================== 13 Druck */

@media print {
    .site-header, .site-footer, dialog, .feature, .calc, .wa-cta, .cta-card, .section:not(.result) { display: none !important; }
    .hero { background: none; color: var(--ink); padding: 0; }
    .hero__title, .hero__lead { color: var(--ink); }
    .result { background: none; }
    .card { box-shadow: none; }
}
