/* ── Lokale Webfonts (DSGVO-konform, keine Verbindung zu Google) ── */

/* Raleway — weights 400–900 (Variable Font) */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/assets/fonts/raleway-latin-ext.woff2') format('woff2');
    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;
}
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400 900;
    font-display: swap;
    src: url('/assets/fonts/raleway-latin.woff2') format('woff2');
    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;
}

/* Nunito — weights 400–700 (Variable Font) */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/nunito-latin-ext.woff2') format('woff2');
    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;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/assets/fonts/nunito-latin.woff2') format('woff2');
    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;
}

:root {
    --bg: #ffffff;
    --bg-soft: #f5f1e8;
    --bg-dark: #121722;
    --surface: #ffffff;
    --surface-strong: #f3f5f8;
    --line: #d4d9df;
    --text: #172033;
    --text-muted: #586274;
    --text-on-dark: #f8fafc;
    --brand: #b78622;
    --brand-text: #7a5e00;  /* Dunkleres Gold für Text auf hellem Grund, WCAG AA */
    --brand-dark: #8f6717;
    --brand-hover: #c39431;
    --accent: #175f57;
    --accent-dim: rgba(23, 95, 87, 0.08);
    --success: #17624f;
    --error: #9f2f2f;
    --shadow: 0 4px 24px rgba(18, 23, 34, 0.10), 0 1px 4px rgba(18, 23, 34, 0.06);
    --shadow-lg: 0 22px 60px rgba(18, 23, 34, 0.16);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 16px;
    --container: 1180px;
    --font-display: 'Raleway', 'Segoe UI', sans-serif;
    --font-body: 'Nunito', 'Segoe UI', sans-serif;
    --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: #000;
    line-height: 1.65;
    padding-bottom: 4.5rem;
    -webkit-font-smoothing: antialiased;
}

/* Homepage: Kontaktformular-Textarea nie hinter CTA-Bar */
.page-home #kontaktformular {
    padding-bottom: 3rem;
}

h1, h2, h3, h4, h5, h6,
.button, .section-kicker, .footer-title,
.nav-list a, .nav-cta, .brand {
    font-family: var(--font-display);
}

main {
    background: #fff;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

button,
input,
textarea {
    font: inherit;
    resize: none !important;
}

button {
    cursor: pointer;
}

.sr-only,
.skip-link:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    left: 1rem;
    top: 1rem;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    z-index: 200;
}

.container {
    width: min(calc(100% - 2rem), var(--container));
    margin: 0 auto;
}

.section {
    padding: 4.5rem 0;
}

.section-soft {
    background: linear-gradient(180deg, rgba(245, 241, 232, 0.75), rgba(255, 255, 255, 1));
}

.section-dark {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.section-heading {
    max-width: 42rem;
    margin-bottom: 2rem;
}

.section-heading h2,
.page-hero h1,
.hero-card h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 5vw, 3.9rem);
    line-height: 1.1;
}

.section-heading p,
.page-lead,
.hero-lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.section-dark .section-heading p,
.section-dark .step-card p,
.section-dark .step-card h3 {
    color: rgba(248, 250, 252, 0.86);
}

.section-kicker {
    margin: 0 0 0.75rem;
    color: var(--brand-text);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

.section-dark .section-kicker {
    color: #f6d488;
}

.section-soft {
    background: linear-gradient(180deg, #f7f3e9 0%, rgba(255,255,255,1) 100%);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.8rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: background var(--transition), border-color var(--transition),
                color var(--transition), transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button:focus-visible,
.nav-toggle:focus-visible,
.calculator-tab:focus-visible,
.stepper button:focus-visible,
.modal-close:focus-visible,
.faq-item summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.button-primary {
    background: var(--brand);
    color: #1f1605;
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--brand-hover);
    box-shadow: 0 6px 20px rgba(183, 134, 34, 0.3);
}

.button-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--line);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    border-color: var(--text);
    background: var(--surface-strong);
}

.button-ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.22);
    color: inherit;
}

.button-ghost:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
}

.button-block {
    width: 100%;
}

.text-link {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

.text-link:hover {
    color: var(--brand-text);
    text-decoration: underline;
    text-underline-offset: 0.2em;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(0, 0, 0, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-on-dark);
    transition: box-shadow var(--transition);
}

.header-shell {
    min-height: 5.35rem;
    display: flex;
    align-items: center;
}

.nav {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
}

.brand img {
    width: clamp(9rem, 45vw, 13.75rem);
    height: auto;
}

.brand picture,
.site-footer picture {
    display: block;
}

.header-phone {
    display: none;
    align-items: center;
    justify-self: end;
    gap: 0.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-on-dark);
}

.icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: var(--radius-sm);
    background: #f6efe1;
    color: var(--brand-dark);
}

.icon-badge img {
    width: 1.2rem;
    height: 1.2rem;
}

.icon-large {
    width: 3rem;
    height: 3rem;
}

.icon-large img {
    width: 1.45rem;
    height: 1.45rem;
}

.nav-toggle {
    justify-self: end;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
}

.nav-toggle span {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: var(--text-on-dark);
}

.nav-panel {
    position: absolute;
    left: 1rem;
    right: 1rem;
    top: calc(100% + 0.75rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    background: rgba(0, 0, 0, 0.98);
    box-shadow: var(--shadow);
    padding: 1rem;
    display: none;
}

.nav-panel.is-open {
    display: block;
}

.nav-list,
.footer-links,
.contact-list,
.feature-list,
.check-list,
.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list {
    display: grid;
    gap: 0.35rem;
}

.nav-list a,
.nav-cta {
    width: 100%;
}

.nav-list a,
.nav-calculator-btn {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    color: rgba(248, 250, 252, 0.8);
    transition: color var(--transition), background var(--transition);
}

.nav-calculator-btn {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.nav-list a:hover,
.nav-calculator-btn:hover {
    color: #f6d488;
    background: rgba(255, 255, 255, 0.06);
}

.nav-list a[aria-current="page"] {
    color: #f6d488;
    background: rgba(246, 212, 136, 0.10);
}

.flash-stack {
    padding-top: 1rem;
}

.flash {
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.flash-success {
    background: rgba(23, 98, 79, 0.1);
    color: var(--success);
}

.flash-error {
    background: rgba(159, 47, 47, 0.1);
    color: var(--error);
}

.hero {
    position: relative;
    min-height: clamp(34rem, 85svh, 52rem);
    display: flex;
    align-items: stretch;
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(140deg, rgba(18, 23, 34, 0.82), rgba(18, 23, 34, 0.46) 55%, rgba(18, 23, 34, 0.18));
    z-index: -1;
}

.hero-media,
.hero-media picture,
.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-media img {
    object-fit: cover;
}

.hero-content {
    position: relative;
    display: grid;
    align-items: end;
    padding: 6rem 0 3rem;
}

.hero-card {
    max-width: 42rem;
    color: var(--text-on-dark);
}

.hero-card h1,
.hero-card .hero-lead {
    color: var(--text-on-dark);
}

.hero-card .section-kicker {
    color: #f6d488;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0 1.75rem;
}

.hero-proofs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.hero-proofs div {
    flex: 1 1 140px;
}

.hero-proofs div,
.stat-card,
.feature-card,
.narrative-card,
.contact-card,
.form-panel,
.cta-panel,
.calculator-summary,
.step-card,
.cta-banner {
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.feature-card,
.narrative-card,
.contact-card,
.stat-card {
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover,
.narrative-card:hover,
.contact-card:hover,
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-proofs div {
    padding: 0.85rem 1rem;
    background: rgba(17, 22, 31, 0.42);
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-proofs dt {
    font-weight: 700;
}

.hero-proofs dd {
    margin: 0;
    color: rgba(248, 250, 252, 0.92);
}

.hero .button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.74);
    background: rgba(17, 22, 31, 0.2);
}

.hero .button-secondary:hover,
.hero .button-secondary:focus-visible {
    color: #fff;
    border-color: #fff;
    background: rgba(17, 22, 31, 0.34);
}

.stats {
    margin-top: -2.5rem;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    gap: 1rem;
}

.stat-card {
    padding: 1.25rem;
}

.stat-card strong {
    display: block;
    font-size: 1.75rem;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.stat-card span {
    color: var(--text-muted);
}

.card-grid,
.steps-grid,
.contact-card-list {
    display: grid;
    gap: 1rem;
}

.feature-card,
.narrative-card,
.contact-card,
.step-card,
.form-panel,
.cta-panel {
    padding: 1.4rem;
}

.feature-card h2,
.feature-card h3,
.narrative-card h2,
.cta-panel h2,
.form-panel h2,
.form-panel h3,
.step-card h3,
.contact-card strong {
    margin: 0 0 0.6rem;
    font-size: 1.2rem;
    line-height: 1.25;
}

.feature-card p,
.narrative-card p,
.contact-card span,
.cta-panel p,
.summary-note,
.summary-list li,
.legal-content p {
    margin: 0;
    color: var(--text-muted);
}

.section-footer {
    margin-top: 1.5rem;
}

.calculator {
    display: grid;
    gap: 1rem;
    overflow: hidden;
}

.calculator-tabs {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    scrollbar-width: thin;
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    padding: 0.75rem 0;
    transition: box-shadow 0.2s ease;
}

.calculator-tabs.is-stuck {
    box-shadow: 0 2px 12px rgba(18, 23, 34, 0.1);
}

.calculator-tab {
    flex: 0 0 auto;
    min-height: 2.85rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-muted);
    transition: background var(--transition), border-color var(--transition),
                color var(--transition), box-shadow var(--transition);
    white-space: nowrap;
}

.calculator-tab:hover:not(.is-active) {
    border-color: var(--brand);
    color: var(--brand-text);
}

.calculator-tab.is-active {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
    color: var(--text-on-dark);
    box-shadow: 0 2px 8px rgba(18, 23, 34, 0.2);
}

/* Kategorie hat Auswahl — goldener Indikator */
.calculator-tab.has-selection:not(.is-active) {
    border-color: var(--brand);
    color: var(--accent);
    background: #fffbef;
}

.calculator-tab.has-selection::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand);
    margin-left: 0.4rem;
    vertical-align: middle;
    flex-shrink: 0;
}

.calculator-tab.has-selection.is-active::after {
    background: #f6d488;
}

/* Smooth pane transitions */
.calculator-pane {
    animation: paneIn 0.22s ease;
}

@keyframes paneIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.calculator-layout {
    display: grid;
    gap: 1rem;
}

.calculator-pane {
    display: none;
}

.calculator-pane.is-active {
    display: block;
}

.calculator-grid {
    display: grid;
    gap: 0.9rem;
}

.calculator-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 1rem;
    display: grid;
    gap: 1rem;
}

.calculator-item-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.calculator-item-image {
    flex: 0 0 4rem;
    width: 4rem;
    height: 4rem;
    border-radius: var(--radius-sm);
    background: #f7f8fb;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.calculator-item-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.35rem;
}

.calculator-item-head h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    line-height: 1.25;
}

.calculator-item-head p {
    margin: 0;
    color: var(--text-muted);
}

.stepper {
    display: grid;
    grid-template-columns: 3rem 1fr 3rem;
    align-items: center;
    gap: 0.65rem;
}

.stepper button {
    min-height: 3rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.stepper button:hover:not(:disabled) {
    background: var(--brand);
    border-color: var(--brand);
    color: #1f1605;
}

.stepper button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.stepper span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    border-radius: var(--radius-sm);
    background: var(--surface-strong);
    font-weight: 700;
}

.calculator-summary {
    padding: 1.2rem;
    border: 1px solid rgba(212, 217, 223, 0.9);
    align-self: start;
}

.calculator-item {
    transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.calculator-item.is-selected {
    background: #fffbef;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(246, 212, 136, 0.35);
}

.calculator-item.is-selected .calculator-item-image {
    background: rgba(246, 212, 136, 0.25);
    border-color: var(--brand);
}

.calculator-item.is-selected .stepper span {
    background: rgba(246, 212, 136, 0.35);
    color: var(--accent);
}

.summary-total {
    display: grid;
    gap: 0.15rem;
    margin-bottom: 0.9rem;
}

.summary-total strong {
    font-size: 2rem;
    line-height: 1;
}

.summary-total span {
    color: var(--text-muted);
}

.summary-list {
    display: grid;
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.summary-list li {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--line);
}

.summary-empty {
    color: var(--text-muted);
    border-bottom: none !important;
}

/* ── Calculator Teaser (Homepage) ─────────────────────────── */
.calculator-teaser {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 44rem;
    margin: 0 auto;
}

.calculator-teaser-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.calculator-teaser-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: #f7f3e9;
    border: 1px solid rgba(246, 212, 136, 0.5);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    font-family: var(--font-display);
}

.calculator-teaser-text {
    color: var(--text-muted);
    max-width: 32rem;
    margin: 0 auto 1.5rem;
}

.calculator-teaser-hint {
    margin: 0.75rem 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* ── Calculator Modal ──────────────────────────────────────── */
.calc-modal[hidden] {
    display: none;
}

/* ── Mobile-first: Sheet von unten, eine Spalte ── */
.calc-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: modalFadeIn 0.22s ease both;
}

.calc-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 96dvh;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: 0 -8px 60px rgba(8, 11, 18, 0.45);
    animation: modalSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
    overflow: hidden;
}

/* Gesamter Inhalt scrollt in einer Spalte */
.calc-modal-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    flex-direction: column;
}

.calc-modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 20;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid var(--bg-dark);
    background: var(--bg-dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition), border-color var(--transition);
}

.calc-modal-close:hover {
    background: #2a3142;
    border-color: #2a3142;
}

.calc-modal-left {
    padding: 1.5rem 1.25rem 0.5rem;
}

.calc-modal-heading {
    padding-right: 3rem;
    margin-bottom: 1.25rem;
}

.calc-modal-heading h2 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    line-height: 1.2;
}

.calc-modal-lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.calc-modal-panes {
    margin-top: 0.75rem;
}

/* Trennlinie zwischen Calculator und Formular */
.calc-modal-sidebar {
    padding: 1.5rem 1.25rem;
    background: #f7f5f1;
    border-top: 2px solid var(--line);
    margin-top: 1.5rem;
}

.calc-summary {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.calc-form-lead {
    margin: 0 0 1.25rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ── Desktop: Zwei Spalten nebeneinander ── */
@media (min-width: 900px) {
    .calc-modal {
        align-items: center;
        padding: 1.5rem;
    }

    .calc-modal-panel {
        width: min(100%, 76rem);
        height: auto;
        max-height: calc(100dvh - 3rem);
        flex-direction: row;
        border-radius: 1.5rem;
    }

    .calc-modal-scroll {
        flex-direction: row;
        overflow: hidden;
    }

    .calc-modal-left {
        flex: 1 1 auto;
        overflow-y: auto;
        padding: 2.5rem 2rem;
        min-height: 0;
    }

    .calc-modal-sidebar {
        flex: 0 0 min(24rem, 36%);
        overflow-y: auto;
        border-top: none;
        border-left: 2px solid var(--line);
        margin-top: 0;
        padding: 2.5rem 2rem;
        background: #f7f5f1;
    }

    .calc-modal-close {
        right: 1.25rem;
        top: 1.25rem;
    }
}

.split-layout,
.cta-grid,
.faq-layout,
.footer-grid,
.cta-banner {
    display: grid;
    gap: 1.25rem;
}

.image-stack {
    display: grid;
    gap: 0.8rem;
}

.image-stack picture,
.side-image picture {
    display: block;
}

.image-stack img,
.side-image img {
    border-radius: var(--radius);
    min-height: 14rem;
    object-fit: cover;
    width: 100%;
}

.copy-panel {
    display: grid;
    gap: 1rem;
    align-content: start;
}

.copy-panel blockquote {
    margin: 0;
    padding: 1rem 1rem 1rem 1.15rem;
    border-left: 4px solid var(--brand);
    background: var(--surface-strong);
    color: var(--text);
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.check-list,
.feature-list {
    display: grid;
    gap: 0.75rem;
}

.check-list li,
.feature-list li {
    position: relative;
    padding-left: 1.4rem;
}

.check-list li::before,
.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: var(--brand);
}

.steps-grid {
    color: var(--text);
}

.step-card {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.step-number {
    display: inline-flex;
    min-width: 3rem;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(246, 212, 136, 0.18);
    color: #f6d488;
    font-weight: 700;
    margin-bottom: 1rem;
}

.two-column-list {
    display: grid;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 0 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item[open] {
    border-color: var(--brand);
    box-shadow: 0 2px 12px rgba(183, 134, 34, 0.10);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.1rem 0;
    font-family: var(--font-display);
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color var(--transition);
}

.faq-item summary:hover {
    color: var(--brand-text);
}

.faq-item summary::after {
    content: '+';
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--brand);
    transition: transform var(--transition);
    line-height: 1;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin: 0 0 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    animation: faqExpand 0.22s ease;
}

@keyframes faqExpand {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

.cta-panel {
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.cta-panel p,
.cta-panel dd,
.cta-panel a {
    color: rgba(248, 250, 252, 0.88);
}

.contact-facts {
    margin: 0;
    display: grid;
    gap: 1rem;
}

.contact-facts dt {
    font-size: 0.9rem;
    color: #f6d488;
    margin-bottom: 0.2rem;
    font-weight: 700;
}

.contact-facts dd {
    margin: 0;
    font-weight: 600;
}

.form-panel {
    background: #fff;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-grid {
    display: grid;
    gap: 0.95rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field span,
.checkbox span {
    font-weight: 600;
}

.field input,
.field textarea {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    padding: 0.9rem 0.95rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: var(--font-body);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.field input:invalid:not(:placeholder-shown),
.field textarea:invalid:not(:placeholder-shown) {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(159, 47, 47, 0.08);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(159, 47, 47, 0.08);
}

.field textarea {
    resize: none !important;
    min-height: 8rem;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #7a8494;
}

.checkbox {
    display: grid;
    grid-template-columns: 1.2rem 1fr;
    gap: 0.75rem;
    align-items: start;
}

.checkbox input {
    margin-top: 0.2rem;
}

.form-actions {
    display: grid;
    gap: 0.75rem;
}

.form-hint,
.form-status {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.form-status.is-success {
    color: var(--success);
    font-weight: 700;
}

.form-status.is-error {
    color: var(--error);
    font-weight: 700;
}

.page-hero {
    padding: 3.25rem 0 2rem;
    background: linear-gradient(180deg, #faf7f1, #ffffff);
    border-bottom: 1px solid rgba(212, 217, 223, 0.6);
}

.breadcrumbs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.narrative-grid,
.legal-content {
    display: grid;
    gap: 1rem;
}

.cta-banner {
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--line);
}

.cta-banner h2 {
    margin: 0 0 0.5rem;
}

.cta-banner p {
    margin: 0;
    color: var(--text-muted);
}

.cta-banner-actions {
    display: grid;
    gap: 0.75rem;
}

.contact-card span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-card a {
    font-weight: 700;
    text-decoration: none;
}

.contact-card,
.contact-card a,
.contact-card strong {
    color: var(--text);
}

.legal-content {
    max-width: 48rem;
}

.legal-block {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.legal-block h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.legal-footnote {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.site-footer {
    padding: 3rem 0 6rem;
    background: #11161f;
    color: #e8edf5;
}

.footer-grid {
    align-items: start;
}

.footer-logo {
    width: 10rem;
}

.footer-copy,
.footer-links a,
.contact-list,
.footer-bottom {
    color: rgba(232, 237, 245, 0.75);
}

.footer-links a {
    text-decoration: none;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: #f6d488;
}

.contact-list a {
    color: rgba(232, 237, 245, 0.75);
    text-decoration: none;
    transition: color var(--transition);
}

.contact-list a:hover {
    color: #f6d488;
}

.footer-title {
    margin: 0 0 0.85rem;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-links,
.contact-list {
    display: grid;
    gap: 0.5rem;
}

.social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1rem;
}

.social-list a {
    color: #f6d488;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    transition: color var(--transition), opacity var(--transition);
}

.social-list a:hover {
    color: #fff;
    opacity: 0.9;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.95rem;
}

.mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 150;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.65rem;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(212, 217, 223, 0.8);
    box-shadow: 0 -4px 20px rgba(18, 23, 34, 0.08);
    overflow: hidden;
    clip-path: inset(0 0 -20px 0);
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-cta-bar > * {
    min-width: 0;
}

.mobile-cta-bar.is-visible {
    transform: translateY(0);
}

.privacy-note {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: calc(5.5rem + env(safe-area-inset-bottom));
    z-index: 140;
    display: grid;
    gap: 0.75rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(18, 23, 34, 0.97);
    color: var(--text-on-dark);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.privacy-note p {
    margin: 0.25rem 0 0;
    color: rgba(248, 250, 252, 0.82);
}

/* ── Modal ───────────────────────────────────────────────────── */
.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: modalFadeIn 0.22s ease both;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 11, 18, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Split panel: sidebar (dark) + body (light) */
.modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    max-height: 94dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -8px 60px rgba(8, 11, 18, 0.45);
    animation: modalSlideUp 0.32s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Left / top sidebar */
.modal-sidebar {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 1.25rem 1.25rem 1rem;
    position: relative;
    overflow: hidden;
}

.modal-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 100% 0%, rgba(246, 212, 136, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 0% 100%, rgba(23, 95, 87, 0.22) 0%, transparent 65%);
    pointer-events: none;
}

.modal-sidebar > * { position: relative; }

.modal-eyebrow {
    margin: 0 0 0.6rem;
    color: var(--brand);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.modal-title {
    margin: 0 0 1.25rem;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 3vw, 1.45rem);
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
}

/* Volume display */
.modal-volume-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(246, 212, 136, 0.25);
}

.modal-volume-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(248, 250, 252, 0.72);
    font-size: 0.85rem;
}

.modal-volume-label svg {
    flex-shrink: 0;
    opacity: 0.65;
}

.modal-volume-box strong {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.volume-empty-hint {
    margin: -0.4rem 0 0.85rem;
    color: rgba(248, 250, 252, 0.52);
    font-size: 0.82rem;
    line-height: 1.5;
}

.volume-empty-hint a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
    transition: opacity var(--transition);
}

.volume-empty-hint a:hover { opacity: 0.8; }

/* Trust list */
.modal-trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    gap: 0.55rem;
}

.modal-trust li {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.85rem;
    color: rgba(248, 250, 252, 0.78);
    line-height: 1.4;
}

.modal-trust li svg {
    flex-shrink: 0;
    color: var(--brand);
}

/* Form column */
.modal-body {
    overflow-y: auto;
    padding: 1.25rem;
    flex: 1 1 auto;
    min-height: 0;
}

/* Close button — top-right over both panels */
.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 10;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

@media (min-width: 640px) {
    .modal {
        align-items: center;
        padding: 1.5rem;
    }

    .modal-panel {
        width: min(100%, 62rem);
        max-height: calc(100dvh - 3rem);
        flex-direction: row;
        border-radius: 1.5rem;
    }

    .modal-sidebar {
        flex: 0 0 min(20rem, 38%);
        padding: 2.5rem 2rem;
        border-radius: 1.5rem 0 0 1.5rem;
        overflow-y: auto;
    }

    .modal-trust {
        display: flex;
    }

    .modal-close {
        right: 1.25rem;
        top: 1.25rem;
    }

    .modal-body {
        padding: 2.5rem 2rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
}

@media (min-width: 640px) {
    .stats-grid,
    .card-grid,
    .steps-grid,
    .contact-card-list,
    .narrative-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .field-wide {
        grid-column: 1 / -1;
    }

}

@media (min-width: 980px) {
    body {
        padding-bottom: 0;
    }

    .header-shell {
        min-height: 6.25rem;
    }

    .brand img {
        width: 17rem;
    }

    .header-phone {
        display: inline-flex;
    }

    .nav {
        grid-template-columns: auto auto 1fr;
    }

    .nav-toggle {
        display: none;
    }

    .nav-panel {
        position: static;
        display: block;
        border: 0;
        box-shadow: none;
        padding: 0;
        background: transparent;
        justify-self: end;
    }

    .nav-list {
        display: flex;
        align-items: center;
        gap: 0.25rem;
    }

    .nav-list a,
    .nav-calculator-btn {
        width: auto;
        color: var(--text-on-dark);
    }

    .nav-cta {
        width: auto;
    }

    .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .calculator-layout {
        grid-template-columns: minmax(0, 1.9fr) minmax(18rem, 22rem);
        align-items: start;
    }

    .calculator-summary {
        position: sticky;
        top: calc(6rem + 1rem);
    }

    .calculator-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .split-layout,
    .cta-grid,
    .cta-banner,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    }

    .faq-layout {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: start;
    }

    .two-column-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mobile-cta-bar {
        display: none;
    }

    .privacy-note {
        left: auto;
        right: 1.5rem;
        bottom: 1.5rem;
        width: min(26rem, calc(100vw - 3rem));
    }
}

@media (min-width: 1080px) {
    .split-layout {
        grid-template-columns: 1.05fr 0.95fr;
    }

    .split-layout-reverse {
        grid-template-columns: 0.95fr 1.05fr;
    }

    .cta-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }

    .calculator-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-content {
        padding-top: 8rem;
    }
}
