/* ==================================================================
   KI (mit) System – Ergänzungen zum Designsystem für den E-Book-Funnel.
   Wird nach styles.css und brand.css geladen und nutzt deren Tokens.
   ================================================================== */

/* ---------- Hero mit Formular -------------------------------------- */

/* Das Formular ist der Zweck dieser Seite und steht deshalb im ersten
   Bildschirm: Auf dem Desktop rechts in der ersten Zeile, auf dem Smartphone
   direkt unter der Überschrift. Die ausführlichen Argumente folgen darunter. */
.hero--lead {
    min-height: 0;
    padding: 104px 0 76px;
}

@media (max-width: 719px) {
    .hero--lead {
        padding: 100px 0 60px;
    }
}

.hero__grid--lead {
    gap: 28px;
    align-items: start;
}

@media (min-width: 960px) {
    .hero__grid--lead {
        grid-template-columns: 1.02fr 0.98fr;
        grid-template-areas:
            "einstieg formular"
            "details  formular";
        column-gap: 56px;
        row-gap: 32px;
    }

    .hero__grid--lead .hero__content {
        grid-area: einstieg;
    }

    .hero__grid--lead .hero__details {
        grid-area: details;
    }

    .hero__visual--lead {
        grid-area: formular;
    }
}

/* Die Formularkarte bringt ihre eigene Fläche mit, deshalb entfällt hier
   das Glas-Panel der übrigen Hero-Visuals. */
.hero__visual--lead {
    display: grid;
    gap: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.hero--lead .hero__claim {
    margin-bottom: 0;
}

.hero__details {
    display: grid;
}

.hero .lead-benefits {
    list-style: none;
    margin: 24px 0 22px;
    padding: 0;
    display: grid;
    gap: 12px;
    max-width: 46ch;
}

.hero .lead-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: #293039;
    font-size: 1rem;
    line-height: 1.5;
}

/* Bezeichnung und Erläuterung stehen jeweils auf eigenen Zeilen: Der Blick
   erfasst so zuerst die vier Werkzeuge, dann die Erklärung dazu. */
.hero .lead-benefits strong {
    display: block;
    margin-bottom: 2px;
    color: #ffffff;
    font-weight: 800;
}

.hero .lead-benefits svg {
    color: #ffffff;
    flex: none;
    margin-top: 4px;
}

/* ---------- E-Book-Cover ------------------------------------------- */

/* Kleines Motiv in der Kartenkopfzeile: Es zeigt, was man bekommt, ohne das
   Formular aus dem ersten Bildschirm zu schieben. */
.ebook-thumb {
    margin: 0;
    width: 104px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 26px rgba(31, 40, 50, 0.22);
}

.ebook-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.ebook-cover {
    margin: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 26px 64px rgba(31, 40, 50, 0.34);
}

.ebook-cover img {
    display: block;
    width: 100%;
    height: auto;
}

.ebook-cover--final {
    max-width: 280px;
    margin: 0 auto 32px;
    box-shadow: 0 18px 44px rgba(31, 40, 50, 0.18);
}

/* ---------- Formularkarte im Hero ---------------------------------- */

.form-card--lead {
    max-width: none;
    margin: 0;
    padding: 22px 28px 26px;
    scroll-margin-top: 110px;
}

.form-card__head {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 18px;
    row-gap: 6px;
    margin-bottom: 16px;
}

.form-card__head .ebook-thumb {
    grid-row: span 2;
}

.form-card__title {
    grid-column: 2;
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.22;
}

.form-card__sub {
    grid-column: 2;
    margin: 0;
    color: #686e76;
    font-size: 0.92rem;
    line-height: 1.5;
}

/* Auf schmalen Displays reicht die Restbreite neben dem Motiv nur für die
   Überschrift; der Zusatz läuft darunter über die volle Kartenbreite. */
@media (max-width: 479px) {
    .form-card--lead {
        padding: 22px 20px 24px;
    }

    .form-card__head {
        column-gap: 14px;
        row-gap: 10px;
    }

    .form-card__head .ebook-thumb {
        grid-row: auto;
        width: 76px;
    }

    .form-card__title {
        font-size: 1.28rem;
    }

    .form-card__sub {
        grid-column: 1 / -1;
    }
}

.lead-form--compact {
    gap: 12px;
}

.field__optional {
    color: var(--text-dim);
    font-weight: 400;
}

.form-actions--single {
    display: grid;
    margin-top: 4px;
}

.btn--block {
    width: 100%;
    justify-content: center;
}

/* Der Consent-Text ist länger als auf den übrigen Formularen: ohne
   schrumpfbare Basis würde er in der schmalen Hero-Spalte unter die
   Checkbox rutschen. */
.form-card--lead .form-consent > span:not(.field-error) {
    flex: 1 1 0;
    min-width: 0;
}

.lead-form.is-complete .field,
.lead-form.is-complete .form-consent,
.lead-form.is-complete .form-actions,
.lead-form.is-complete .form-hint,
.lead-form.is-complete .cf-turnstile,
.lead-form.is-complete .g-recaptcha {
    display: none;
}

/* ---------- Hinweis nach dem Absenden ------------------------------ */

.mail-next[hidden] {
    display: none;
}

.mail-next {
    border: 1px solid rgba(82, 98, 119, 0.24);
    background: #eceef2;
    border-radius: var(--radius-sm);
    padding: 22px;
    display: grid;
    gap: 10px;
}

.mail-next h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #22272f;
}

.mail-next p {
    margin: 0;
    color: #4f555d;
    font-size: 0.95rem;
    line-height: 1.55;
}

.mail-next__hint {
    font-size: 0.88rem;
    color: #7f858c;
}

/* ---------- Vorschaustreifen -------------------------------------- */

.preview-strip {
    margin-top: 40px;
    display: grid;
    gap: 18px;
    grid-template-columns: 1fr;
}

@media (min-width: 760px) {
    .preview-strip {
        grid-template-columns: repeat(3, 1fr);
    }
}

.preview-strip__item {
    margin: 0;
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 12px;
    display: grid;
    gap: 10px;
    box-shadow: 0 14px 40px rgba(42, 51, 61, 0.1);
}

.preview-strip__item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #f7f5f4;
}

.preview-strip__item figcaption {
    color: #686e76;
    font-size: 0.85rem;
    text-align: center;
}

/* ---------- Abschluss-CTA ----------------------------------------- */

.cta-final .lead,
.cta-final .form-benefits span {
    color: #eceef2;
}

.cta-final .form-benefits svg {
    color: #ffffff;
}

.cta-final__aside {
    margin: 22px auto 0;
    max-width: 62ch;
    text-align: center;
    color: #dfe4ea;
    font-size: 0.95rem;
}

.cta-final__aside a {
    color: #ffffff;
    text-decoration: underline;
}

/* ---------- Statusseiten (Link abgelaufen, Fehler) ---------------- */

.status-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background: var(--bg);
}

.status-card {
    max-width: 580px;
    text-align: center;
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 44px 34px;
    box-shadow: 0 24px 72px rgba(42, 51, 61, 0.16);
}

.status-card__logo {
    margin-bottom: 18px;
}

.status-card h1 {
    font-size: 1.7rem;
    margin: 0 0 14px;
}

.status-card p {
    color: #4f555d;
    line-height: 1.65;
    margin: 0;
}

.status-card__actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
