/* ============================================================================
   JP-362 — Infobox mit Box module
   Figma deck instance 248:6706 ("Link-Box-Desktop 1442") inside slide
   248:6683 ("Infobox mit Box"). The deck renders the component at 1000-wide
   (0.694× scale); production tokens below are the design-context values
   multiplied by 1.44 to land at the 1440-viewport spec.

   Composite section: Light Sand outer band hosting a Dark Blue text card
   (flex-1 to a fixed 864) on the left and a Light Blue highlight panel
   (flex-1 to fill the remaining 416) on the right, gap 32, both stretched
   to equal height.

   Scoped to .jtl-infobox-box-section so it doesn't leak.
   ============================================================================ */

/* ── DESKTOP ─────────────────────────────────────────────────────────────── */
.jtl-infobox-box-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;
    overflow: hidden;
}

.jtl-infobox-box {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 32px;
    width: 100%;
    max-width: 1312px;
    margin: 0 auto;
}

/* Left card — Dark Blue, rounded 46, padding 46, fixed 864 wide. */
.jtl-infobox-box__card {
    flex: 0 0 864px;
    width: 864px;
    display: flex;
    align-items: center;
    padding: 46px;
    background-color: #0b1b45; /* JTL Dark Blue */
    border-radius: 46px;
    overflow: hidden;
    box-sizing: border-box;
}

.jtl-infobox-box__text {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
    width: 100%;
    max-width: 745px;
}

.jtl-infobox-box__heading-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 594px;
}

.jtl-infobox-box__heading {
    margin: 0;
    font-family: 'Kurdis', 'Kurdis Wide', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 46px;
    letter-spacing: 0.64px;
    color: #ffffff;
}

/* Suppress theme h2::after orange underline */
.jtl-infobox-box__heading::after {
    display: none !important;
    content: none !important;
    border-bottom-width: 0 !important;
}

.jtl-infobox-box__body-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

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

.jtl-infobox-box__body strong {
    font-weight: 700;
    color: #ffffff;
}

.jtl-infobox-box__buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 32px;
    padding-top: 32px;
    width: 100%;
}

/* Orange pill CTA — Dark Blue text on Orange (Figma intent). */
.jtl-infobox-box__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: 0;
    background-color: #fb581f; /* JTL Orange */
    color: #0b1b45 !important;
    border-radius: 145.323px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0.32px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

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

/* Right highlight panel — Light Blue, rounded 46, padding 46, fills remaining. */
.jtl-infobox-box__highlight {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 46px;
    background-color: #89d2ff; /* JTL Light Blue */
    border-radius: 46px;
    box-sizing: border-box;
}

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

.jtl-infobox-box__highlight-text strong {
    font-weight: 700;
    color: #000000;
}

/* ── MOBILE (no dedicated Figma mobile master for this composite) ────────
   Stack vertically: Text-Box card on top, Highlight panel below. Halve the
   outer padding and the card radius so the smaller viewport doesn't feel
   over-stuffed. */
@media (max-width: 991px) {
    .jtl-infobox-box-section {
        padding: 60px 24px;
    }

    .jtl-infobox-box {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .jtl-infobox-box__card {
        flex: 0 0 auto;
        width: 100%;
        padding: 32px 24px;
        border-radius: 24px;
    }

    .jtl-infobox-box__heading {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 0.48px;
    }

    .jtl-infobox-box__cta {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        justify-content: center;
    }

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