:root {
    --hc-ink: #18202a;
    --hc-muted: #667085;
    --hc-border: rgba(24, 32, 42, 0.12);
    --hc-soft: #f7f3ea;
    --hc-card: #ffffff;
    --hc-green: #1c7c54;
    --hc-green-dark: #105b3c;
    --hc-sand: #e8d9bd;
    --hc-blue-soft: #e8f0ff;
    --hc-shadow: 0 24px 70px rgba(24, 32, 42, 0.12);
}

.hc-page .mobile-cta { background: var(--hc-green); }
.hc-page .chatbot-widget { display: none; }

.hc-hero,
.hc-form-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 8vw, 8rem) 0 clamp(3.5rem, 6vw, 6rem);
    background:
        radial-gradient(circle at 14% 18%, rgba(28, 124, 84, 0.18), transparent 30%),
        linear-gradient(135deg, #fffaf0 0%, #f7f9f5 42%, #eaf4ef 100%);
}

.hc-hero::after,
.hc-form-hero::after {
    content: "";
    position: absolute;
    inset: auto -6rem -10rem auto;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background: rgba(28, 124, 84, 0.12);
    filter: blur(8px);
}

.hc-hero-grid,
.hc-form-shell,
.hc-two-col,
.hc-final-box {
    position: relative;
    z-index: 1;
}

.hc-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.75fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.hc-eyebrow {
    margin: 0 0 0.85rem;
    color: var(--hc-green-dark);
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

.hc-hero h1,
.hc-form-intro h1,
.hc-thanks-card h1 {
    margin: 0;
    color: var(--hc-ink);
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 0.94;
    letter-spacing: -0.06em;
    max-width: 10ch;
}

.hc-form-intro h1,
.hc-thanks-card h1 { max-width: 13ch; }

.hc-subline,
.hc-form-intro p,
.hc-thanks-card p,
.hc-section-head p,
.hc-two-col p,
.hc-final-box p {
    color: var(--hc-muted);
    font-size: clamp(1.02rem, 2vw, 1.18rem);
    line-height: 1.75;
}

.hc-subline { max-width: 42rem; margin: 1.35rem 0 0; }

.hc-hero-actions,
.hc-center-actions,
.hc-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
    margin-top: 1.8rem;
}

.hc-region-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.4rem;
}

.hc-region-pills span {
    border: 1px solid var(--hc-border);
    border-radius: 999px;
    background: rgba(255,255,255,0.72);
    padding: 0.46rem 0.72rem;
    color: var(--hc-ink);
    font-weight: 700;
    font-size: 0.84rem;
}

.hc-hero-card,
.hc-thanks-card,
.hc-check-form,
.hc-info-card,
.hc-mini-stack > div {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(255,255,255,0.72);
    box-shadow: var(--hc-shadow);
    backdrop-filter: blur(14px);
    border-radius: 2rem;
}

.hc-hero-card {
    padding: clamp(1.4rem, 3vw, 2.2rem);
}

.hc-solar-card-top {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    padding: 0.9rem;
    border-radius: 1.3rem;
    background: linear-gradient(135deg, rgba(28,124,84,0.13), rgba(232,217,189,0.34));
    color: var(--hc-ink);
}

.hc-solar-card-top span {
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--hc-green);
    color: white;
    font-weight: 900;
}

.hc-hero-card h2,
.hc-section-head h2,
.hc-two-col h2,
.hc-final-box h2 {
    margin: 1.3rem 0 0.75rem;
    color: var(--hc-ink);
    font-size: clamp(1.7rem, 3.5vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hc-check-list {
    display: grid;
    gap: 0.85rem;
    margin: 1.3rem 0;
    padding: 0;
    list-style: none;
}

.hc-check-list li {
    position: relative;
    padding-left: 1.7rem;
    color: var(--hc-ink);
    line-height: 1.55;
}

.hc-check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--hc-green);
    font-weight: 900;
}

.hc-note,
.hc-legal-note {
    margin: 1rem 0 0;
    color: var(--hc-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.hc-section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.hc-soft-bg { background: var(--hc-soft); }

.hc-trust-strip {
    padding: 1.5rem 0;
    background: #fff;
    border-top: 1px solid var(--hc-border);
    border-bottom: 1px solid var(--hc-border);
}

.hc-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hc-trust-grid article {
    padding: 1rem;
    border-radius: 1.25rem;
    background: #f9faf8;
}

.hc-trust-grid strong,
.hc-trust-grid span,
.hc-mini-stack strong,
.hc-mini-stack span {
    display: block;
}

.hc-trust-grid strong,
.hc-mini-stack strong { color: var(--hc-ink); margin-bottom: 0.35rem; }
.hc-trust-grid span,
.hc-mini-stack span { color: var(--hc-muted); line-height: 1.55; }

.hc-section-head { max-width: 48rem; margin-bottom: 2rem; }

.hc-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.hc-info-card { padding: 1.4rem; }
.hc-info-card > span {
    display: inline-grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    background: var(--hc-green);
    color: white;
    font-weight: 900;
}
.hc-info-card h3 { margin: 1rem 0 0.4rem; color: var(--hc-ink); }
.hc-info-card p { margin: 0; color: var(--hc-muted); line-height: 1.65; }

.hc-two-col,
.hc-final-box {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
}

.hc-mini-stack { display: grid; gap: 0.9rem; }
.hc-mini-stack > div { padding: 1.2rem; }

.hc-final-cta { background: var(--hc-ink); color: white; }
.hc-final-box h2,
.hc-final-box .hc-eyebrow { color: white; }
.hc-final-box p { color: rgba(255,255,255,0.74); }

.hc-form-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(1.4rem, 4vw, 3rem);
    align-items: start;
}

.hc-form-intro {
    position: sticky;
    top: 7rem;
    min-width: 0;
    width: 100%;
}

.hc-form-page .hc-form-intro h1 {
    font-size: clamp(2.15rem, 4.8vw, 4.45rem);
    max-width: 12ch;
    overflow-wrap: break-word;
    hyphens: auto;
}

.hc-check-form {
    min-width: 0;
    width: 100%;
    scroll-margin-top: 8rem;
}

.hc-form-trust {
    display: grid;
    gap: 0.55rem;
    margin-top: 1.5rem;
    color: var(--hc-ink);
    font-weight: 700;
}

.hc-check-form {
    padding: clamp(1rem, 3vw, 2rem);
}

.hc-progress-wrap { margin-bottom: 1.4rem; }
.hc-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
    color: var(--hc-ink);
    font-weight: 800;
}
.hc-progress {
    height: 0.68rem;
    border-radius: 999px;
    background: #eef1ef;
    overflow: hidden;
}
.hc-progress span {
    display: block;
    width: 12.5%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hc-green), #38a169);
    transition: width 0.25s ease;
}

.hc-form-step { display: none; }
.hc-form-step.is-active { display: block; animation: hcFade 0.22s ease; }
@keyframes hcFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.hc-question-head { margin-bottom: 1rem; }
.hc-question-head span {
    display: inline-grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.9rem;
    background: var(--hc-blue-soft);
    color: var(--hc-green-dark);
    font-weight: 900;
    margin-bottom: 0.85rem;
}
.hc-question-head h2,
.hc-question-head h3 {
    color: var(--hc-ink);
    margin: 0;
    letter-spacing: -0.03em;
    line-height: 1.12;
}
.hc-question-head h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.hc-question-head h3 { font-size: 1.08rem; }
.hc-question-head p {
    color: var(--hc-muted);
    line-height: 1.6;
    margin: 0.55rem 0 0;
}
.hc-question-head.compact { margin: 1.6rem 0 0.8rem; }

.hc-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.hc-choice-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.55rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid var(--hc-border);
    border-radius: 1.1rem;
    background: #fff;
    color: var(--hc-ink);
    font-weight: 800;
    cursor: pointer;
    transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.hc-choice-card:hover,
.hc-choice-card:focus-within {
    transform: translateY(-1px);
    border-color: rgba(28, 124, 84, 0.42);
    box-shadow: 0 12px 28px rgba(24,32,42,0.08);
}

.hc-choice-card input {
    flex: 0 0 auto;
    width: 1.05rem;
    height: 1.05rem;
    accent-color: var(--hc-green);
}

.hc-choice-card span,
.hc-question-head,
.hc-form-step {
    min-width: 0;
}

.hc-choice-card span {
    overflow-wrap: anywhere;
}

.hc-choice-card:has(input:checked) {
    border-color: rgba(28, 124, 84, 0.72);
    background: rgba(28, 124, 84, 0.08);
    box-shadow: 0 12px 30px rgba(28, 124, 84, 0.12);
}

.hc-field-grid {
    display: grid;
    gap: 0.9rem;
}
.hc-field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hc-field { display: grid; gap: 0.38rem; color: var(--hc-ink); font-weight: 800; }
.hc-field input {
    width: 100%;
    border: 1px solid var(--hc-border);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    font: inherit;
    color: var(--hc-ink);
    background: #fff;
    outline: none;
}
.hc-field input:focus {
    border-color: rgba(28, 124, 84, 0.68);
    box-shadow: 0 0 0 4px rgba(28, 124, 84, 0.12);
}

.hc-region-helper { margin-top: 1rem; }

.hc-consent-box {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 1.2rem;
    background: #f8faf7;
    border: 1px solid var(--hc-border);
}
.hc-consent-box label {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.75rem;
    align-items: start;
    color: var(--hc-ink);
    line-height: 1.5;
}
.hc-consent-box input { margin-top: 0.2rem; accent-color: var(--hc-green); }

.hc-form-actions {
    justify-content: space-between;
    padding-top: 1.3rem;
    border-top: 1px solid var(--hc-border);
}
.hc-submit { display: none; }
.hc-form-actions.is-last .hc-submit { display: inline-flex; }
.hc-form-actions.is-last [data-hc-next] { display: none; }

.hc-error-box,
ul.errorlist {
    border-radius: 1rem;
    background: #fff3f0;
    color: #9a3412;
}
.hc-error-box { padding: 1rem; margin-bottom: 1rem; display: grid; gap: 0.25rem; }
ul.errorlist { list-style: none; margin: 0.5rem 0 0; padding: 0.7rem 0.85rem; font-weight: 700; }

.hc-client-error {
    margin: 0.55rem 0 0;
    padding: 0.75rem 0.85rem;
    border-radius: 0.9rem;
    background: #fff3f0;
    color: #9a3412;
    font-weight: 800;
    line-height: 1.45;
}

.hc-choice-card.hc-needs-input,
.hc-field.hc-needs-input,
.hc-consent-box label.hc-needs-input {
    border-color: rgba(220, 38, 38, 0.58);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.hc-consent-box label.hc-needs-input {
    border-radius: 0.85rem;
    padding: 0.55rem;
    background: rgba(255, 243, 240, 0.75);
}

.hc-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.hc-thanks-hero { min-height: 68vh; display: flex; align-items: center; }
.hc-thanks-card { max-width: 44rem; padding: clamp(1.5rem, 4vw, 3rem); }
.hc-success-mark {
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: var(--hc-green);
    color: white;
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}
.hc-next-box {
    display: grid;
    gap: 0.3rem;
    margin-top: 1.2rem;
    padding: 1rem;
    border-radius: 1.2rem;
    background: #f8faf7;
    color: var(--hc-ink);
    border: 1px solid var(--hc-border);
}
.hc-next-box span { color: var(--hc-muted); line-height: 1.6; }

@media (max-width: 1120px) {
    .hc-form-page .hc-form-shell {
        grid-template-columns: 1fr;
    }
    .hc-form-page .hc-form-intro {
        position: static;
        max-width: 46rem;
    }
    .hc-form-page .hc-form-intro h1 {
        max-width: 16ch;
    }
}

@media (max-width: 980px) {
    .hc-hero-grid,
    .hc-form-shell,
    .hc-two-col,
    .hc-final-box,
    .hc-trust-grid,
    .hc-step-grid {
        grid-template-columns: 1fr;
    }
    .hc-form-intro { position: static; }
    .hc-hero h1,
    .hc-form-intro h1,
    .hc-thanks-card h1 { max-width: 100%; }
}

@media (max-width: 720px) {
    .hc-hero,
    .hc-form-hero { padding-top: 4.2rem; }
    .hc-choice-grid,
    .hc-field-grid.two { grid-template-columns: 1fr; }
    .hc-check-form { border-radius: 1.35rem; }
    .hc-form-actions { position: sticky; bottom: 3.8rem; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); margin: 1rem -0.6rem -0.6rem; padding: 0.8rem; border-radius: 1rem; }
    .hc-form-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Mobile-Fix: Check bleibt lesbar, scrollbar und wird nicht von Navbar/CTA überdeckt. */
body.hc-form-page .site-header {
    z-index: 90;
}

body.hc-form-page main {
    overflow: visible;
}

@media (max-width: 820px) {
    body.hc-form-page {
        padding-bottom: 0 !important;
        overflow-x: hidden;
    }

    body.hc-form-page .mobile-cta {
        display: none !important;
    }

    body.hc-form-page .site-header {
        position: sticky;
        top: 0;
        padding-top: max(0.55rem, env(safe-area-inset-top));
        background: linear-gradient(180deg, rgba(250,247,242,0.98), rgba(250,247,242,0.72));
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    body.hc-form-page .nav-wrap {
        min-height: 64px;
        border-radius: 18px;
        background: rgba(255,255,255,0.96);
        box-shadow: 0 10px 28px rgba(23,26,30,0.08);
    }

    body.hc-form-page .site-nav {
        z-index: 95;
    }

    .hc-form-page .hc-form-hero {
        overflow: visible;
        padding: 0.9rem 0 calc(1.4rem + env(safe-area-inset-bottom));
    }

    .hc-form-page .hc-form-shell {
        display: block;
        width: min(100% - 1rem, 1200px);
    }

    .hc-form-page .hc-form-intro {
        position: static;
        top: auto;
        max-width: 100%;
        padding: 0.55rem 0.15rem 0.9rem;
    }

    .hc-form-page .hc-eyebrow {
        margin-bottom: 0.45rem;
        font-size: 0.7rem;
        letter-spacing: 0.1em;
    }

    .hc-form-page .hc-form-intro h1 {
        max-width: 100%;
        font-size: clamp(1.6rem, 7vw, 2.15rem);
        line-height: 1.04;
        letter-spacing: -0.045em;
    }

    .hc-form-page .hc-form-intro p {
        margin-top: 0.7rem;
        font-size: 0.94rem;
        line-height: 1.52;
    }

    .hc-form-page .hc-form-trust {
        margin-top: 0.85rem;
        gap: 0.35rem;
        font-size: 0.88rem;
        line-height: 1.35;
    }

    .hc-form-page .hc-check-form {
        width: 100%;
        max-height: none;
        overflow: visible;
        margin-top: 0.55rem;
        padding: 0.85rem;
        border-radius: 1.1rem;
        scroll-margin-top: 6.2rem;
    }

    .hc-form-page .hc-progress-wrap {
        margin-bottom: 1rem;
    }

    .hc-form-page .hc-progress-top {
        font-size: 0.88rem;
        margin-bottom: 0.45rem;
    }

    .hc-form-page .hc-progress {
        height: 0.55rem;
    }

    .hc-form-page .hc-question-head {
        margin-bottom: 0.75rem;
    }

    .hc-form-page .hc-question-head span {
        width: 2rem;
        height: 2rem;
        border-radius: 0.75rem;
        margin-bottom: 0.65rem;
        font-size: 0.86rem;
    }

    .hc-form-page .hc-question-head h2 {
        font-size: clamp(1.22rem, 5.7vw, 1.62rem);
        line-height: 1.12;
        letter-spacing: -0.025em;
    }

    .hc-form-page .hc-question-head h3 {
        font-size: 0.98rem;
        line-height: 1.18;
    }

    .hc-form-page .hc-question-head p {
        margin-top: 0.45rem;
        font-size: 0.9rem;
        line-height: 1.48;
    }

    .hc-form-page .hc-question-head.compact {
        margin: 1.05rem 0 0.55rem;
    }

    .hc-form-page .hc-choice-grid,
    .hc-form-page .hc-field-grid.two {
        grid-template-columns: 1fr;
        gap: 0.55rem;
    }

    .hc-form-page .hc-choice-card {
        min-height: auto;
        align-items: flex-start;
        gap: 0.58rem;
        padding: 0.68rem 0.72rem;
        border-radius: 0.88rem;
        font-size: 0.93rem;
        line-height: 1.25;
    }

    .hc-form-page .hc-choice-card:hover,
    .hc-form-page .hc-choice-card:focus-within {
        transform: none;
    }

    .hc-form-page .hc-choice-card input {
        width: 1rem;
        height: 1rem;
        margin-top: 0.08rem;
    }

    .hc-form-page .hc-field {
        gap: 0.3rem;
        font-size: 0.92rem;
    }

    .hc-form-page .hc-field input {
        min-height: 46px;
        padding: 0.72rem 0.82rem;
        border-radius: 0.85rem;
        font-size: 16px;
    }

    .hc-form-page .hc-region-helper {
        gap: 0.4rem;
        margin-top: 0.75rem;
    }

    .hc-form-page .hc-region-helper span {
        padding: 0.36rem 0.55rem;
        font-size: 0.78rem;
    }

    .hc-form-page .hc-consent-box {
        gap: 0.7rem;
        padding: 0.75rem;
        border-radius: 1rem;
    }

    .hc-form-page .hc-consent-box label {
        gap: 0.58rem;
        font-size: 0.88rem;
        line-height: 1.38;
    }

    .hc-form-page .hc-form-actions {
        position: static !important;
        bottom: auto !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.6rem;
        margin: 1rem 0 0;
        padding: 0.85rem 0 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .hc-form-page .hc-form-actions .btn {
        width: 100%;
        min-height: 48px;
        justify-content: center;
        padding: 0.72rem 0.78rem;
        font-size: 0.94rem;
    }

    .hc-form-page .hc-form-actions.is-last [data-hc-next] {
        display: none !important;
    }

    .hc-form-page .hc-submit {
        min-width: 0;
    }

    .hc-form-page .hc-legal-note,
    .hc-form-page .hc-client-error,
    .hc-form-page ul.errorlist {
        font-size: 0.86rem;
        line-height: 1.38;
    }

    .hc-form-page .hc-client-error {
        padding: 0.65rem 0.72rem;
    }
}

@media (max-width: 380px) {
    .hc-form-page .hc-form-intro h1 {
        font-size: 1.48rem;
    }

    .hc-form-page .hc-form-intro p,
    .hc-form-page .hc-form-trust,
    .hc-form-page .hc-question-head p,
    .hc-form-page .hc-choice-card,
    .hc-form-page .hc-consent-box label {
        font-size: 0.84rem;
    }

    .hc-form-page .hc-check-form {
        padding: 0.7rem;
    }
}
