/* ==========================================
   Demo page: Eclectic standard article reset
   ========================================== */

/* automatische Theme-Überschrift ausblenden */
.meta.content article:has(.demo-page--standalone) > h1.title,
.meta.content article:has(.demo-page--standalone) > h1:first-child {
    display: none !important;
}

/* Artikel-Container optisch entfernen */
.meta.content:has(.demo-page--standalone) {
    background: transparent !important;
}

    .meta.content:has(.demo-page--standalone) article {
        max-width: none !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

/* demo nimmt volle verfügbare Breite ein */
.demo-page--standalone {
    width: 100%;
    margin: 0;
}

    /* Hero näher an Header ziehen */
    .demo-page--standalone .demo-hero {
        margin-top: 0 !important;
        border-radius: 0;
    }

/* Falls das Theme dem Artikel weiße Box/Rand gibt */
.meta.content:has(.demo-page--standalone) {
    padding: 0 !important;
}

/* Hintergrund nicht doppelt kartenartig wirken lassen */
body:has(.demo-page--standalone) .meta.content.with-background {
    background-color: transparent !important;
}


/* ==========================================
   CodeRoom Demo Page
   ========================================== */

.demo-page {
    --demo-dark: #111827;
    --demo-text: #1f2937;
    --demo-muted: #64748b;
    --demo-blue: var(--primary-color, #2563eb);
    --demo-blue-dark: var(--secondary-color, #1e40af);
    --demo-orange: var(--action-color, #f59e0b);
    --demo-bg: #f8fafc;
    --demo-soft: #f3f6fb;
    --demo-card: #ffffff;
    --demo-border: rgba(15, 23, 42, 0.10);
    --demo-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
    --demo-shadow-soft: 0 10px 28px rgba(15, 23, 42, 0.08);
    color: var(--demo-text);
}

    .demo-page * {
        box-sizing: border-box;
    }

    .demo-page a::before {
        content: none !important;
    }


/* HERO */

.demo-hero {
    position: relative;
    margin: -10px auto 0 auto;
    padding: 54px 24px 46px;
    overflow: hidden;
    background: radial-gradient(900px 420px at 15% 10%, rgba(37, 99, 235, 0.18), transparent 62%), linear-gradient(135deg, #ffffff 0%, #f3f6fb 100%);
    border-bottom: 1px solid var(--demo-border);
}

    .demo-hero::after {
        content: "";
        position: absolute;
        inset: auto -120px -180px auto;
        width: 460px;
        height: 460px;
        border-radius: 999px;
        background: rgba(245, 158, 11, 0.14);
        filter: blur(8px);
    }

.demo-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 34px;
    align-items: center;
}

.demo-eyebrow {
    margin: 0 0 10px;
    color: var(--demo-blue);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.demo-hero h1 {
    margin: 0 0 16px;
    max-width: 760px;
    font-family: Exo, Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(2.15rem, 4.4vw, 4.15rem);
    line-height: 1.04;
    color: var(--demo-dark);
    text-align: left !important;
}

.demo-lead {
    max-width: 700px;
    margin: 0;
    font-size: 1.18rem;
    line-height: 1.65;
    color: var(--demo-muted);
}

.demo-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.demo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 13px 22px;
    border-radius: 999px;
    font-family: Exo, Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none !important;
    border: 1px solid transparent;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

    .demo-btn:hover {
        transform: translateY(-1px);
        text-decoration: none !important;
    }

.demo-btn-primary {
    background: var(--demo-blue);
    color: #ffffff !important;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
}

    .demo-btn-primary:hover {
        background: var(--demo-blue-dark) !important;
        color: #ffffff !important;
    }

.demo-btn-secondary {
    background: var(--demo-orange);
    color: #111827 !important;
    box-shadow: 0 12px 26px rgba(245, 158, 11, 0.22);
}

    .demo-btn-secondary:hover {
        background: #fbbf24 !important;
        color: #111827 !important;
    }

.demo-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

    .demo-trust-row span {
        display: inline-flex;
        align-items: center;
        padding: 7px 11px;
        border-radius: 999px;
        background: rgba(255,255,255,0.76);
        border: 1px solid var(--demo-border);
        color: #334155;
        font-size: 0.88rem;
        font-weight: 700;
    }

        .demo-trust-row span::before {
            content: "✓";
            margin-right: 7px;
            color: #16a34a;
            font-weight: 900;
        }

.demo-hero-card {
    padding: 18px;
    border-radius: 26px;
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(255,255,255,0.9);
    box-shadow: var(--demo-shadow);
    backdrop-filter: blur(10px);
}

    .demo-hero-card img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 18px;
        object-fit: contain;
    }


/* SECTIONS */

.demo-options-section,
.demo-benefits-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 64px 24px;
}

.demo-section-head {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

    .demo-section-head h2 {
        margin: 0 0 12px;
        font-family: Exo, Roboto, Helvetica, Arial, sans-serif;
        font-size: clamp(1.9rem, 3vw, 2.75rem);
        line-height: 1.12;
        color: var(--demo-dark);
        text-align: center !important;
    }

    .demo-section-head p {
        margin: 0;
        color: var(--demo-muted);
        font-size: 1.05rem;
        line-height: 1.65;
    }


/* OPTION CARDS */

.demo-options-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.demo-option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 30px;
    border-radius: 24px;
    background: var(--demo-card);
    border: 1px solid var(--demo-border);
    box-shadow: var(--demo-shadow-soft);
}

.demo-option-card-highlight {
    border-color: rgba(245, 158, 11, 0.45);
    background: radial-gradient(560px 260px at 100% 0%, rgba(245, 158, 11, 0.16), transparent 60%), #ffffff;
}

.demo-option-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
    font-size: 0.76rem;
    font-weight: 900;
}

.demo-option-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--demo-soft);
    font-size: 1.7rem;
}

.demo-option-card h3 {
    margin: 0 0 6px;
    font-family: Exo, Roboto, Helvetica, Arial, sans-serif;
    font-size: 1.75rem;
    line-height: 1.15;
    color: var(--demo-dark);
}

.demo-option-sub {
    margin: 0 0 18px;
    color: var(--demo-muted);
    font-weight: 700;
}

.demo-option-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
}

.demo-option-card li {
    position: relative;
    padding: 9px 0 9px 28px;
    border-top: 1px solid rgba(15,23,42,0.08);
    color: #334155;
    line-height: 1.45;
}

    .demo-option-card li::before {
        content: "✓";
        position: absolute;
        left: 0;
        top: 9px;
        color: #16a34a;
        font-weight: 900;
    }

.demo-note {
    margin: auto 0 22px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}


/* FORM SECTION */

.demo-form-section {
    padding: 64px 24px;
    background: radial-gradient(800px 360px at 15% 10%, rgba(37, 99, 235, 0.14), transparent 64%), linear-gradient(180deg, #f3f6fb 0%, #ffffff 100%);
    border-top: 1px solid var(--demo-border);
    border-bottom: 1px solid var(--demo-border);
}

.demo-form-layout {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
    gap: 34px;
    align-items: start;
}

.demo-form-copy h2 {
    margin: 0 0 14px;
    font-family: Exo, Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(1.9rem, 3vw, 2.85rem);
    line-height: 1.12;
    color: var(--demo-dark);
}

.demo-form-copy p {
    max-width: 720px;
    margin: 0 0 22px;
    color: var(--demo-muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.demo-form-benefits {
    display: grid;
    gap: 12px;
    max-width: 680px;
}

    .demo-form-benefits div {
        padding: 16px 18px;
        border-radius: 18px;
        background: rgba(255,255,255,0.75);
        border: 1px solid var(--demo-border);
    }

    .demo-form-benefits strong {
        display: block;
        color: var(--demo-dark);
        margin-bottom: 3px;
    }

    .demo-form-benefits span {
        display: block;
        color: var(--demo-muted);
    }

.demo-form {
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--demo-border);
    box-shadow: var(--demo-shadow);
    overflow: hidden;
}

    .demo-form fieldset {
        width: 100% !important;
        margin: 0 !important;
        padding: 28px !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .demo-form legend {
        width: 100%;
        margin-bottom: 18px;
        font-family: Exo, Roboto, Helvetica, Arial, sans-serif;
        font-size: 1.35rem;
        font-weight: 800;
        color: var(--demo-dark);
    }

    .demo-form label {
        display: block;
        margin: 0 0 6px;
        color: #334155;
        font-weight: 800;
        font-size: 0.92rem;
    }

    .demo-form input[type="text"],
    .demo-form input[type="email"],
    .demo-form select {
        width: 100%;
        min-height: 44px;
        margin: 0 0 15px;
        padding: 10px 12px;
        border: 1px solid rgba(15,23,42,0.16);
        border-radius: 12px;
        background: #f8fafc;
        color: var(--demo-dark);
        font-size: 1rem;
        outline: none;
        transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    }

        .demo-form input[type="text"]:focus,
        .demo-form input[type="email"]:focus,
        .demo-form select:focus {
            border-color: rgba(37, 99, 235, 0.55);
            background: #ffffff;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
        }

    .demo-form select {
        appearance: none;
        background-image: linear-gradient(45deg, transparent 50%, #334155 50%), linear-gradient(135deg, #334155 50%, transparent 50%);
        background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
        background-size: 5px 5px, 5px 5px;
        background-repeat: no-repeat;
        cursor: pointer;
    }

.demo-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.demo-form-submit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
}

.demo-form input[type="submit"] {
    min-height: 48px;
    padding: 13px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--demo-blue);
    color: #ffffff;
    font-family: Exo, Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.24);
    transition: transform 0.16s ease, background 0.16s ease;
}

    .demo-form input[type="submit"]:hover {
        background: var(--demo-blue-dark);
        transform: translateY(-1px);
    }

#spanResult {
    color: #334155;
    font-weight: 700;
}


/* BENEFIT ROWS */

.demo-feature-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
    gap: 34px;
    align-items: center;
    margin-top: 34px;
    padding: 30px;
    border-radius: 26px;
    background: #ffffff;
    border: 1px solid var(--demo-border);
    box-shadow: var(--demo-shadow-soft);
}

.demo-feature-row-reverse {
    grid-template-columns: minmax(320px, 1fr) minmax(0, 0.9fr);
}

    .demo-feature-row-reverse .demo-feature-text {
        order: 2;
    }

    .demo-feature-row-reverse .demo-feature-image {
        order: 1;
    }

.demo-feature-text h3 {
    margin: 0 0 12px;
    font-family: Exo, Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(1.55rem, 2.2vw, 2.2rem);
    line-height: 1.15;
    color: var(--demo-dark);
}

.demo-feature-text p {
    margin: 0 0 16px;
    color: #334155;
    font-size: 1.02rem;
    line-height: 1.65;
}

.demo-checklist {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
}

    .demo-checklist li {
        position: relative;
        padding: 8px 0 8px 30px;
        color: #1f2937;
        line-height: 1.45;
    }

        .demo-checklist li::before {
            content: "✓";
            position: absolute;
            left: 0;
            top: 8px;
            color: #16a34a;
            font-weight: 900;
        }

.demo-feature-image {
    display: grid;
    place-items: center;
}

    .demo-feature-image img {
        display: block;
        max-width: 100%;
        height: auto;
        border-radius: 18px;
        object-fit: contain;
    }


/* FINAL CTA */

.demo-final-cta {
    max-width: 1180px;
    margin: 0 auto 64px;
    padding: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-radius: 28px;
    background: radial-gradient(620px 260px at 0% 0%, rgba(125, 211, 252, 0.18), transparent 60%), #111827;
    color: #ffffff;
    box-shadow: var(--demo-shadow);
}

    .demo-final-cta h2 {
        margin: 0 0 10px;
        font-family: Exo, Roboto, Helvetica, Arial, sans-serif;
        font-size: clamp(1.7rem, 3vw, 2.45rem);
        line-height: 1.12;
        color: #ffffff;
    }

    .demo-final-cta p {
        margin: 0;
        max-width: 720px;
        color: rgba(255,255,255,0.78);
        line-height: 1.6;
    }

    .demo-final-cta .demo-eyebrow {
        color: #7dd3fc;
    }

.demo-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    flex-shrink: 0;
}


/* RESPONSIVE */

@media (max-width: 980px) {
    .demo-hero-inner,
    .demo-form-layout,
    .demo-feature-row,
    .demo-feature-row-reverse {
        grid-template-columns: 1fr;
    }

        .demo-feature-row-reverse .demo-feature-text,
        .demo-feature-row-reverse .demo-feature-image {
            order: initial;
        }

    .demo-options-grid {
        grid-template-columns: 1fr;
    }

    .demo-final-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .demo-final-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .demo-hero {
        padding: 38px 18px;
    }

    .demo-options-section,
    .demo-benefits-section,
    .demo-form-section {
        padding: 46px 18px;
    }

    .demo-option-card,
    .demo-feature-row,
    .demo-final-cta {
        padding: 22px;
    }

    .demo-form fieldset {
        padding: 22px !important;
    }

    .demo-form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .demo-btn,
    .demo-form input[type="submit"] {
        width: 100%;
    }

    .demo-hero-actions,
    .demo-final-actions {
        width: 100%;
    }

    .demo-option-badge {
        position: static;
        display: inline-flex;
        width: fit-content;
        margin-bottom: 14px;
    }
}


/* Demo-Seite ohne Theme-Einschiebe-Animation */
.meta.content:has(.demo-page--standalone) article,
.meta.content:has(.demo-page--standalone) article *,
.demo-page--standalone,
.demo-page--standalone * {
    animation: none !important;
}

/* ==========================================
   HARD FIX: Optionskarten links sauber einrücken
   ========================================== */

.demo-option-card {
    --card-edge: 34px;
    --content-inset: 22px;
    --check-indent: 34px;
    padding: 0 !important;
    overflow: hidden;
}

    /* Header-Elemente bekommen echten linken Abstand */
    .demo-option-card > .demo-option-icon,
    .demo-option-card > h3,
    .demo-option-card > .demo-option-sub {
        margin-left: calc(var(--card-edge) + var(--content-inset)) !important;
        margin-right: calc(var(--card-edge) + var(--content-inset)) !important;
    }

    .demo-option-card > .demo-option-icon {
        margin-top: 34px !important;
    }

    /* Badge bleibt rechts */
    .demo-option-card > .demo-option-badge {
        top: 24px !important;
        right: 24px !important;
    }

    /* Liste bekommt ebenfalls echten Innenabstand */
    .demo-option-card > ul {
        width: auto !important;
        margin: 22px var(--card-edge) 26px var(--card-edge) !important;
        padding: 0 !important;
        list-style: none !important;
    }

        .demo-option-card > ul > li {
            padding: 11px 0 11px var(--check-indent) !important;
        }

            .demo-option-card > ul > li::before {
                left: 4px !important;
            }

    /* Hinweistext und Button sauber auf gleicher Card-Fläche */
    .demo-option-card > .demo-note {
        margin-left: var(--card-edge) !important;
        margin-right: var(--card-edge) !important;
        margin-bottom: 24px !important;
    }

    .demo-option-card > .demo-btn {
        margin-left: var(--card-edge) !important;
        margin-right: var(--card-edge) !important;
        margin-bottom: 0 !important;
        width: auto !important;
    }

/* Mobile */
@media (max-width: 640px) {
    .demo-option-card {
        --card-edge: 22px;
        --content-inset: 6px;
        --check-indent: 30px;
    }

        .demo-option-card > .demo-option-icon {
            margin-top: 26px !important;
        }
}

.demo-option-card > .demo-btn {
    margin-bottom: 28px !important;
}
