/* ---------------------------------------------------------------------
 * P4 Heizreport (SHK Weiß)
 * Startkasten vor dem Wärmepumpen-Check und dem Förderrechner.
 * Farben aus der Blocksy-Palette, Akzent aus den Plugin-Einstellungen.
 * ------------------------------------------------------------------- */

.p4-heizreport {
    --p4hr-accent: var(--theme-palette-color-1, #0192cb);
    --p4hr-ink: var(--theme-palette-color-4, #1e262e);
    --p4hr-text: var(--theme-palette-color-3, #687279);
    --p4hr-line: #e3e8ee;
    --p4hr-soft: #f4f7f9;

    box-sizing: border-box;
    margin: 0 0 48px;
    color: var(--p4hr-text);
    font-family: inherit;
}

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

.p4-heizreport__gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 32px 36px;
    background: var(--p4hr-soft);
    border: 1px solid var(--p4hr-line);
    border-top: 4px solid var(--p4hr-accent);
    text-align: center;
}

.p4-heizreport.is-ready .p4-heizreport__gate {
    display: none;
}

.p4-heizreport__icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    color: var(--p4hr-accent);
}

.p4-heizreport .p4-heizreport__title {
    --theme-text-decoration: none;
    margin: 0 0 12px;
    color: var(--p4hr-ink);
    font-size: clamp(22px, 2.6vw, 28px);
    line-height: 1.3;
}

.p4-heizreport__text {
    max-width: 560px;
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.7;
}

/* Alle Eigenschaften explizit, damit Theme-Buttonstile nicht durchschlagen */
.p4-heizreport .p4-heizreport__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin: 0;
    padding: 14px 32px;
    background: var(--p4hr-accent);
    border: 2px solid var(--p4hr-accent);
    border-radius: 0;
    box-shadow: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.p4-heizreport .p4-heizreport__btn:hover,
.p4-heizreport .p4-heizreport__btn:focus-visible {
    background: var(--p4hr-ink);
    border-color: var(--p4hr-ink);
    color: #fff;
}

.p4-heizreport .p4-heizreport__btn:focus-visible {
    outline: 2px solid var(--p4hr-accent);
    outline-offset: 3px;
}

.p4-heizreport .p4-heizreport__btn:disabled {
    cursor: progress;
    opacity: 0.75;
}

.p4-heizreport__error {
    margin: 16px 0 0;
    color: #b32d2e;
    font-size: 15px;
}

.p4-heizreport__note {
    max-width: 560px;
    margin: 24px 0 0;
    font-size: 13px;
    line-height: 1.6;
}

.p4-heizreport__note a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 600px) {
    .p4-heizreport__gate {
        padding: 36px 20px 28px;
    }

    .p4-heizreport .p4-heizreport__btn {
        width: 100%;
    }
}
