.ifb-lt-section {
    --lt-navy: #071d3b;
    --lt-blue: #241bff;
    --lt-teal: #079986;
    --lt-orange: #ef9f1a;
    --lt-text: #53647a;
    --lt-line: #dce4ee;
    padding: clamp(58px, 6vw, 88px) 0;
    background: #fff;
}

.ifb-lt-section--integrationskurse,
.ifb-lt-section--berufssprachkurse,
.ifb-lt-section--azav {
    background: linear-gradient(135deg, #f1fbf8, #fff);
}

.ifb-lt-section--pruefungen,
.ifb-lt-section--firmenkurse {
    background: linear-gradient(135deg, #f7f8ff, #fff);
}

.ifb-lt-shell {
    width: min(calc(100% - 40px), 1280px);
    margin-inline: auto;
}

.ifb-lt-heading {
    max-width: 900px;
    margin-bottom: 32px;
}

.ifb-lt-eyebrow {
    margin: 0 0 10px;
    color: var(--lt-teal);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ifb-lt-heading h2 {
    margin: 0;
    color: var(--lt-navy);
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-size: clamp(32px, 4.2vw, 52px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.ifb-lt-group + .ifb-lt-group {
    margin-top: 38px;
}

.ifb-lt-group > h3 {
    margin: 0 0 16px;
    color: var(--lt-navy);
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-size: 21px;
    font-weight: 850;
}

.ifb-lt-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ifb-lt-grid--count-1 {
    grid-template-columns: minmax(0, 760px);
}

.ifb-lt-grid--count-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ifb-lt-card {
    min-height: 190px;
    padding: 25px;
    display: grid;
    grid-template-columns: 132px 1fr;
    align-items: center;
    gap: 24px;
    border: 1px solid var(--lt-line);
    border-top-width: 4px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 34px rgba(7, 29, 59, .06);
}

.ifb-lt-logo {
    min-height: 96px;
    padding: 14px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #f7f9fc;
}

.ifb-lt-logo img {
    width: 100%;
    max-width: 118px;
    max-height: 72px;
    object-fit: contain;
}

.ifb-lt-logo--fallback span {
    color: var(--lt-navy);
    font-size: 19px;
    font-weight: 900;
    text-align: center;
}

.ifb-lt-copy strong {
    display: block;
    margin-bottom: 8px;
    color: var(--lt-navy);
    font-size: 21px;
}

.ifb-lt-copy p {
    margin: 0;
    color: var(--lt-text);
    line-height: 1.58;
}

.ifb-lt-certificate {
    margin-top: 10px;
    display: block;
    color: #405269;
    font-size: 12.5px;
    font-weight: 750;
}

.ifb-lt-card--bamf { border-top-color: var(--lt-teal); }
.ifb-lt-card--quacert { border-top-color: #446b54; }
.ifb-lt-card--telc { border-top-color: var(--lt-blue); }
.ifb-lt-card--testdaf { border-top-color: #0a5796; }
.ifb-lt-card--gast { border-top-color: var(--lt-orange); }

.ifb-lt-note {
    max-width: 960px;
    margin: 24px 0 0;
    padding: 16px 18px;
    color: #526176;
    border: 1px solid #cfdce5;
    border-radius: 12px;
    background: rgba(255,255,255,.82);
    font-size: 13.5px;
    line-height: 1.6;
}

@media (max-width: 1050px) {
    .ifb-lt-grid,
    .ifb-lt-grid--count-2 {
        grid-template-columns: 1fr;
    }

    .ifb-lt-card {
        min-height: 0;
    }
}

@media (max-width: 620px) {
    .ifb-lt-shell {
        width: min(calc(100% - 28px), 1280px);
    }

    .ifb-lt-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ifb-lt-logo {
        width: min(100%, 240px);
        margin-inline: auto;
    }
}


/* Sichere automatische Platzierung */
.ifb-lt-auto-source {
    display: block;
}

.ifb-lt-auto-source > .ifb-lt-section {
    margin: 0;
}

.ifb-lt-auto-source--fallback {
    border-top: 1px solid #dce4ee;
}

/* Breitere Logos, damit offizielle Wortmarken gut erkennbar bleiben. */
.ifb-lt-logo img {
    max-width: 156px;
    max-height: 82px;
}

/* V2.2: Logo-Ladezustand und sichere Fallbackanzeige */
.ifb-lt-logo {
    position: relative;
    overflow: hidden;
}

.ifb-lt-logo-error {
    display: none;
    color: var(--lt-navy);
    font-size: 18px;
    font-weight: 900;
    text-align: center;
}

.ifb-lt-logo.is-broken img {
    display: none !important;
}

.ifb-lt-logo.is-broken .ifb-lt-logo-error {
    display: block;
}

.ifb-lt-logo-preview code {
    max-width: 100%;
    margin-top: 8px;
    display: block;
    overflow-wrap: anywhere;
    font-size: 11px;
}

/* Wenn JavaScript nicht läuft, bleibt der Bereich sichtbar vor dem Footer. */
.ifb-lt-auto-source {
    width: 100%;
    clear: both;
}
