/*
 * IFB BAMF & TestDaF V1
 */

/* Siteweite Topbar */
.ifb-topbar__trust {
    gap: 16px;
}

.ifb-topbar__trust span {
    white-space: nowrap;
}

/* Startseite: 5 Vertrauenskacheln */
.ifb-home-v5 .ifb-v5-proof__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ifb-home-v5 .ifb-v5-proof__grid > div:nth-child(4) {
    border-right: 1px solid var(--ifb-v5-line, #dce4ee);
}

/* Prominenter Startseitenbereich */
.ifb-bt-home-spotlight {
    padding: clamp(68px, 7vw, 104px) 0;
    background:
        radial-gradient(circle at 12% 8%, rgba(7,153,134,.08), transparent 28%),
        radial-gradient(circle at 90% 12%, rgba(36,27,255,.08), transparent 31%),
        #fff;
}

.ifb-bt-home-heading {
    max-width: 920px;
    margin: 0 auto 38px;
    text-align: center;
}

.ifb-bt-home-heading h2 {
    margin: 0 0 14px;
    color: var(--ifb-v5-navy, #071d3b);
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-size: clamp(36px, 4.3vw, 58px);
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.ifb-bt-home-heading > p:not(.ifb-v5-eyebrow) {
    color: var(--ifb-v5-muted, #617087);
    font-size: 18px;
}

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

.ifb-bt-home-card {
    min-height: 465px;
    padding: clamp(31px, 4vw, 45px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--ifb-v5-line, #dce4ee);
    border-radius: 25px;
    box-shadow: 0 18px 48px rgba(7,29,59,.10);
}

.ifb-bt-home-card::after {
    content: "";
    width: 210px;
    height: 210px;
    position: absolute;
    top: -105px;
    right: -85px;
    border-radius: 50%;
    pointer-events: none;
}

.ifb-bt-home-card--bamf {
    background: linear-gradient(145deg, #effaf8, #fff);
}

.ifb-bt-home-card--bamf::after {
    background: rgba(7,153,134,.10);
}

.ifb-bt-home-card--testdaf {
    background: linear-gradient(145deg, #f1f2ff, #fff);
}

.ifb-bt-home-card--testdaf::after {
    background: rgba(36,27,255,.10);
}

.ifb-bt-card-top {
    margin-bottom: 27px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 11px;
    position: relative;
    z-index: 1;
}

.ifb-bt-mark {
    min-height: 42px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    color: #fff;
    border-radius: 10px;
    background: var(--ifb-v5-navy, #071d3b);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .02em;
}

.ifb-bt-home-card--bamf .ifb-bt-mark,
.ifb-bt-funding-banner .ifb-bt-mark {
    background: var(--ifb-v5-teal, #079986);
}

.ifb-bt-home-card--testdaf .ifb-bt-mark,
.ifb-bt-testdaf-section .ifb-bt-mark {
    background: var(--ifb-v5-brand, #241bff);
}

.ifb-bt-card-kicker {
    color: var(--ifb-v5-muted, #617087);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.ifb-bt-home-card h3 {
    margin: 0 0 14px;
    color: var(--ifb-v5-navy, #071d3b);
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-size: clamp(28px, 3vw, 39px);
    font-weight: 850;
    line-height: 1.12;
}

.ifb-bt-home-card > p {
    color: #53647a;
    font-size: 16.5px;
    line-height: 1.7;
}

.ifb-bt-home-card ul {
    margin: 22px 0 28px;
    padding: 0;
    display: grid;
    gap: 11px;
    list-style: none;
}

.ifb-bt-home-card li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--ifb-v5-navy, #071d3b);
    font-size: 14px;
    font-weight: 720;
}

.ifb-bt-home-card li svg {
    flex: 0 0 auto;
    color: var(--ifb-v5-teal, #079986);
}

.ifb-bt-card-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.ifb-bt-card-actions a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ifb-v5-brand, #241bff) !important;
    font-weight: 850;
    text-decoration: none !important;
}

/* BAMF-Banner auf Kursseiten */
.ifb-bt-funding-banner {
    padding: 32px 0;
    border-bottom: 1px solid var(--ifb-v5-line, #dce4ee);
    background: linear-gradient(135deg, #eefaf8, #f9fffd);
}

.ifb-bt-funding-banner--vocational {
    background: linear-gradient(135deg, #f0f4ff, #fbfcff);
}

.ifb-bt-funding-inner {
    padding: clamp(28px, 3.5vw, 42px);
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr) auto;
    align-items: center;
    gap: 34px;
    border: 1px solid rgba(7,153,134,.22);
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 15px 42px rgba(7,29,59,.08);
}

.ifb-bt-funding-copy {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 18px;
}

.ifb-bt-funding-copy h2 {
    margin: 0 0 9px;
    color: var(--ifb-v5-navy, #071d3b);
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 850;
    line-height: 1.12;
}

.ifb-bt-funding-copy p:not(.ifb-course-eyebrow) {
    margin: 0;
    color: #53647a;
    line-height: 1.62;
}

.ifb-bt-funding-points {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 13px;
    list-style: none;
}

.ifb-bt-funding-points li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    color: var(--ifb-v5-navy, #071d3b);
}

.ifb-bt-funding-points li > svg {
    color: var(--ifb-v5-teal, #079986);
}

.ifb-bt-funding-points strong,
.ifb-bt-funding-points span {
    display: block;
}

.ifb-bt-funding-points strong {
    margin-bottom: 2px;
    font-size: 14px;
}

.ifb-bt-funding-points span {
    color: #617087;
    font-size: 12.5px;
    line-height: 1.5;
}

/* TestDaF-Prüfungsseite */
.ifb-bt-testdaf-exam-card {
    border-color: rgba(36,27,255,.25);
    background:
        radial-gradient(circle at 100% 0%, rgba(36,27,255,.10), transparent 32%),
        #fff;
}

.ifb-bt-testdaf-exam-card .ifb-exams-label {
    color: #fff;
    background: var(--ifb-v5-brand, #241bff);
}

.ifb-bt-testdaf-section {
    background:
        radial-gradient(circle at 94% 8%, rgba(36,27,255,.12), transparent 30%),
        linear-gradient(135deg, #f5f6ff, #fff);
}

.ifb-bt-testdaf-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(350px, .72fr);
    align-items: center;
    gap: clamp(48px, 7vw, 88px);
}

.ifb-bt-testdaf-heading {
    margin-bottom: 25px;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
}

.ifb-bt-testdaf-heading h2 {
    margin: 0;
    color: var(--ifb-v5-navy, #071d3b);
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-size: clamp(38px, 4.6vw, 59px);
    font-weight: 850;
    line-height: 1.06;
    letter-spacing: -.04em;
}

.ifb-bt-testdaf-side {
    padding: clamp(29px, 3.8vw, 43px);
    color: #fff;
    border-radius: 24px;
    background: linear-gradient(145deg, var(--ifb-v5-navy, #071d3b), #174270);
    box-shadow: 0 22px 55px rgba(7,29,59,.18);
}

.ifb-bt-testdaf-side .ifb-course-eyebrow {
    color: #80eadc;
}

.ifb-bt-testdaf-side h3 {
    margin: 0 0 23px;
    color: #fff;
    font-size: 29px;
}

.ifb-bt-testdaf-side ol {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
    list-style: none;
}

.ifb-bt-testdaf-side li {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
}

.ifb-bt-testdaf-side li > span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--ifb-v5-navy, #071d3b);
    border-radius: 50%;
    background: #80eadc;
    font-weight: 900;
}

.ifb-bt-testdaf-side strong,
.ifb-bt-testdaf-side small {
    display: block;
}

.ifb-bt-testdaf-side strong {
    color: #fff;
}

.ifb-bt-testdaf-side small {
    margin-top: 3px;
    color: rgba(255,255,255,.72);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 1100px) {
    .ifb-home-v5 .ifb-v5-proof__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ifb-home-v5 .ifb-v5-proof__grid > div {
        border-bottom: 1px solid var(--ifb-v5-line, #dce4ee);
    }

    .ifb-home-v5 .ifb-v5-proof__grid > div:nth-child(3) {
        border-right: 0;
    }

    .ifb-home-v5 .ifb-v5-proof__grid > div:nth-child(n+4) {
        border-bottom: 0;
    }

    .ifb-bt-funding-inner {
        grid-template-columns: 1fr 1fr;
    }

    .ifb-bt-funding-inner > .ifb-course-button {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .ifb-bt-home-grid,
    .ifb-bt-testdaf-layout {
        grid-template-columns: 1fr;
    }

    .ifb-bt-home-card {
        min-height: 0;
    }

    .ifb-bt-funding-inner {
        grid-template-columns: 1fr;
    }

    .ifb-bt-funding-inner > .ifb-course-button {
        grid-column: auto;
    }
}

@media (max-width: 650px) {
    .ifb-home-v5 .ifb-v5-proof__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ifb-home-v5 .ifb-v5-proof__grid > div,
    .ifb-home-v5 .ifb-v5-proof__grid > div:nth-child(3),
    .ifb-home-v5 .ifb-v5-proof__grid > div:nth-child(4) {
        border-right: 1px solid var(--ifb-v5-line, #dce4ee);
        border-bottom: 1px solid var(--ifb-v5-line, #dce4ee);
    }

    .ifb-home-v5 .ifb-v5-proof__grid > div:nth-child(even) {
        border-right: 0;
    }

    .ifb-home-v5 .ifb-v5-proof__grid > div:last-child {
        grid-column: 1 / -1;
        border-right: 0;
        border-bottom: 0;
    }

    .ifb-bt-home-spotlight {
        padding-block: 64px;
    }

    .ifb-bt-home-card {
        padding: 27px;
    }

    .ifb-bt-funding-copy,
    .ifb-bt-testdaf-heading {
        grid-template-columns: 1fr;
    }

    .ifb-bt-funding-inner,
    .ifb-bt-testdaf-side {
        padding: 27px;
    }

    .ifb-bt-card-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* g.a.s.t.-Startseitenkarte */
.ifb-bt-home-card--gast {
    background:
        radial-gradient(circle at 100% 0%, rgba(245,154,0,.10), transparent 32%),
        linear-gradient(145deg, #fff8ec, #fff);
}

.ifb-bt-home-card--gast::after {
    background: rgba(245,154,0,.11);
}

.ifb-bt-home-card--gast .ifb-bt-mark {
    background: #4f5861;
}

.ifb-bt-home-card--gast li svg {
    color: #d97f00;
}

/* g.a.s.t.-Prüfungskarte */
.ifb-bt-gast-exam-card {
    border-color: rgba(79,88,97,.25);
    background:
        radial-gradient(circle at 100% 0%, rgba(245,154,0,.11), transparent 32%),
        #fff;
}

.ifb-bt-gast-exam-card .ifb-exams-label {
    color: #fff;
    background: #4f5861;
}

/* g.a.s.t.-Abschnitt */
.ifb-bt-gast-section {
    background:
        radial-gradient(circle at 92% 8%, rgba(245,154,0,.13), transparent 31%),
        linear-gradient(135deg, #fffaf1, #fff);
}

.ifb-bt-gast-heading {
    max-width: 960px;
    margin-bottom: 38px;
}

.ifb-bt-gast-heading > div {
    margin-bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.ifb-bt-gast-heading .ifb-bt-mark {
    background: #4f5861;
}

.ifb-bt-gast-heading .ifb-course-eyebrow {
    margin: 0;
    color: #d97f00;
}

.ifb-bt-gast-heading h2 {
    margin: 0 0 16px;
    color: var(--ifb-v5-navy, #071d3b);
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-size: clamp(39px, 4.7vw, 60px);
    font-weight: 850;
    line-height: 1.06;
    letter-spacing: -.04em;
}

.ifb-bt-gast-heading > p {
    max-width: 900px;
    color: #53647a;
    font-size: 17px;
    line-height: 1.7;
}

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

.ifb-bt-gast-grid article {
    min-height: 315px;
    padding: 29px;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(79,88,97,.18);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(7,29,59,.06);
}

.ifb-bt-gast-number {
    width: 49px;
    height: 49px;
    margin-bottom: 25px;
    display: grid;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: #4f5861;
    font-size: 14px;
    font-weight: 900;
}

.ifb-bt-gast-grid h3 {
    margin: 0 0 11px;
    color: var(--ifb-v5-navy, #071d3b);
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-size: 24px;
    font-weight: 850;
}

.ifb-bt-gast-grid p {
    color: #53647a;
    line-height: 1.65;
}

.ifb-bt-gast-grid a {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--ifb-v5-brand, #241bff) !important;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none !important;
}

.ifb-bt-gast-note {
    margin-top: 20px;
    padding: 19px 21px;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 11px;
    border: 1px solid #efc46d;
    border-radius: 14px;
    background: #fff6dc;
}

.ifb-bt-gast-note > svg {
    color: #d97f00;
}

.ifb-bt-gast-note p {
    margin: 0;
    color: #665532;
    font-size: 14px;
    line-height: 1.6;
}

.ifb-bt-gast-actions {
    margin-top: 27px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 1180px) {
    .ifb-bt-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ifb-bt-home-card--gast {
        grid-column: 1 / -1;
        min-height: 0;
    }

    .ifb-home-v5 .ifb-v5-proof__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ifb-bt-gast-grid {
        grid-template-columns: 1fr;
    }

    .ifb-bt-gast-grid article {
        min-height: 0;
    }
}

@media (max-width: 650px) {
    .ifb-bt-home-grid {
        grid-template-columns: 1fr;
    }

    .ifb-bt-home-card--gast {
        grid-column: auto;
    }

    .ifb-home-v5 .ifb-v5-proof__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ifb-bt-gast-actions {
        flex-direction: column;
    }

    .ifb-bt-gast-actions .ifb-course-button {
        width: 100%;
    }
}
