/* ============================================================================
   JP-367 — Infobox-Split module
   Figma after-spec: node 347:4453 ("Info-Box-Split-Desktop 1440") inside
   frame 248:7287 ("Infobox-Split" before/after slide).

   2-tone curved card: Light Blue panel (eyebrow + heading + play-circle) on
   the left, white panel (description + orange Beratung pill) on the right.
   The 2-tone effect is a white SVG Vector overlaid absolutely on the
   light-blue card; the Vector has a chord curve that creates the smooth
   blue→white boundary on the right portion of the card.

   Source of truth for tokens: get_design_context on node 347:4453.

   All selectors are scoped to .jtl-infobox-split so the stylesheet can ship
   alongside other widgets without leaking.
   ============================================================================ */

/* ── Outer band ──────────────────────────────────────────────────────────── */
/* Full-bleed escape from the WPBakery .container (max 1110) so the card can
   reach Figma width (~1312 inside 64px padding at 1440 viewport). */
.jtl-infobox-split-section {
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 80px 64px;
    background-color: #eeeee7; /* JTL Light Sand */
    box-sizing: border-box;
}

/* ── Card ────────────────────────────────────────────────────────────────── */
.jtl-infobox-split {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    max-width: 1312px;
    margin: 0 auto;
    padding: 46px;
    background-color: #89d2ff; /* JTL Light Blue */
    border-radius: 46px;
    overflow: hidden;
    color: #0b1b45;
}

/* ── White curved Vector overlay (Figma 335:3892) ────────────────────────── */
/* Original viewBox 536.806×342.361, but inside the card the Vector is at
   left=539 (≈41% of 1312), top=-100, w=773 (≈59% of 1312), h=493. The
   transform mirrors the shape horizontally so the curve faces left, meeting
   the left blue panel. */
.jtl-infobox-split__curve {
    position: absolute;
    top: -100px;
    left: 41%;
    width: 59%;
    height: 493px;
    transform: scaleX(-1);
    pointer-events: none;
    display: block;
}

/* ── Content row ─────────────────────────────────────────────────────────── */
.jtl-infobox-split__content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: 144px;
    width: 100%;
}

/* ── Left column (482w) ──────────────────────────────────────────────────── */
.jtl-infobox-split__left {
    flex: 0 0 482px;
    max-width: 482px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.jtl-infobox-split__heading-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.jtl-infobox-split__eyebrow {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    color: #2722f8;             /* JTL Tech Blue */
}

.jtl-infobox-split__heading {
    margin: 0;
    font-family: 'Kurdis', 'Kurdis Wide', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 46px;
    letter-spacing: 0.64px;
    color: #0b1b45;             /* JTL Dark Blue */
}

/* Suppress theme h2::after orange underline and
   the JP-347 precedent. The theme rule
   h2:not(.line-none):not(.h3):not(.h4):not(.h5):not(.h6)::after has
   specificity 0,4,2 so !important is required. */
.jtl-infobox-split__heading::after {
    display: none !important;
    content: none !important;
    border-bottom-width: 0 !important;
}

.jtl-infobox-split__play {
    display: block;
    width: 80px;
    height: 80px;
    margin: 0;
}

/* ── Right column ────────────────────────────────────────────────────────── */
.jtl-infobox-split__right {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.jtl-infobox-split__body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 28px;
    color: #0b1b45;
    word-break: break-word;
}

.jtl-infobox-split__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    padding-top: 32px;
}

/* Orange pill — matches the JP-347 Senden button geometry exactly. */
.jtl-infobox-split__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 0;
    background-color: #fb581f;  /* JTL Orange */
    color: #0b1b45 !important;  /* Dark Blue text (Figma intent — rule 9) */
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.32px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.jtl-infobox-split__cta:hover,
.jtl-infobox-split__cta:focus {
    background-color: #e74914;
    color: #0b1b45 !important;
    text-decoration: none;
}

/* ── Responsive (mobile / tablet) ────────────────────────────────────────── */
@media (max-width: 991px) {
    .jtl-infobox-split-section {
        padding: 40px 16px;
    }

    .jtl-infobox-split {
        padding: 32px 24px;
        border-radius: 28px;
    }

    /* On mobile the curved Vector overlay no longer makes sense — stack the
       columns and let the whole card stay light-blue. */
    .jtl-infobox-split__curve {
        display: none;
    }

    .jtl-infobox-split__content {
        flex-direction: column;
        gap: 32px;
    }

    .jtl-infobox-split__left,
    .jtl-infobox-split__right {
        flex: 1 1 auto;
        max-width: 100%;
        width: 100%;
    }

    .jtl-infobox-split__heading {
        font-size: 28px;
        line-height: 38px;
    }

    .jtl-infobox-split__buttons {
        padding-top: 8px;
    }
}
