/* ============================================================================
   JP-358 — Infobox mit Bild module
   Figma masters:
     desktop  351:6707 ("Infobox-mit Bild-Desktop 1441") — 1440 × 576
     mobile   335:4002 ("Infobox-mit Bild-Mobil")        —  375 × 975

   Composite section: Light Sand outer band → white rounded text card (left,
   flex-1) + rounded 416×416 photo (right). Eyebrow + heading + body +
   orange Beratung pill inside the card. Mobile stacks image on top, text
   card below.

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

/* ── DESKTOP ─────────────────────────────────────────────────────────────── */
.jtl-infobox-bild-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-bild {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
    max-width: 1312px;
    margin: 0 auto;
}

/* Left card — white, rounded 46, padding 46, flex-1, stretches to image height. */
.jtl-infobox-bild__card {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 46px;
    background-color: #ffffff;
    border-radius: 46px;
    overflow: hidden;
    box-sizing: border-box;
}

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

/* Sub+headline — gap 6 between eyebrow and heading. */
.jtl-infobox-bild__heading-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    max-width: 594px;
}

.jtl-infobox-bild__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-bild__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 */
.jtl-infobox-bild__heading::after {
    display: none !important;
    content: none !important;
    border-bottom-width: 0 !important;
}

/* Body + button group — gap 24, button row has pt 32. */
.jtl-infobox-bild__body-group {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    width: 100%;
}

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

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

/* Orange pill — same recipe as JP-367 / JP-353. */
.jtl-infobox-bild__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-bild__cta:hover,
.jtl-infobox-bild__cta:focus {
    background-color: #e74914;
    color: #0b1b45 !important;
    text-decoration: none;
}

/* Right photo — 416×416 square, rounded 46, stretches to card height. */
.jtl-infobox-bild__image {
    flex: 0 0 416px;
    width: 416px;
    min-height: 416px;
    align-self: stretch;
    border-radius: 46px;
    overflow: hidden;
    position: relative;
}

.jtl-infobox-bild__image-bg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── MOBILE (Figma 335:4002 — 375 × 975) ─────────────────────────────────
   Outer: px 24 py 60, flex col with small gap 10.
   Image: aspect 1/1 (square, w-full = 327), rounded 24.
   Box: rounded 24, px 24 py 32, gap 32 — same internal text structure.
   Heading: 24/32 ls 0.48 (smaller than desktop).
   Button: full-width inside the row. */
@media (max-width: 991px) {
    .jtl-infobox-bild-section {
        padding: 60px 24px;
    }

    .jtl-infobox-bild {
        flex-direction: column-reverse;
        align-items: stretch;
        justify-content: center;
        gap: 10px;
    }

    .jtl-infobox-bild__image {
        flex: 0 0 auto;
        width: 100%;
        min-height: 0;
        aspect-ratio: 1 / 1;
        border-radius: 24px;
        align-self: stretch;
    }

    .jtl-infobox-bild__card {
        flex: 0 0 auto;
        padding: 32px 24px;
        border-radius: 24px;
        align-self: stretch;
        align-items: flex-start;
    }

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

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