/*
 * IFB Presse & Meilensteine V1
 */

.ifb-press-history-page .site.grid-container,
.ifb-press-history-page .site-content,
.ifb-press-history-page .content-area,
.ifb-press-history-page #main,
.ifb-press-history-page .inside-article {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ifb-press-history-page .entry-header,
.ifb-press-history-page .entry-content {
    display: none !important;
}

.ifb-ph-page {
    --ph-navy: #071d3b;
    --ph-blue: #241bff;
    --ph-teal: #079986;
    --ph-muted: #617087;
    --ph-line: #dce4ee;
    --ph-soft: #f5f7fa;
    color: #26384d;
    overflow: clip;
    background: #fff;
}

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

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

.ifb-ph-hero {
    padding-bottom: clamp(78px, 8vw, 118px);
    background:
        radial-gradient(circle at 91% 8%, rgba(36,27,255,.13), transparent 31%),
        radial-gradient(circle at 58% 95%, rgba(7,153,134,.09), transparent 33%),
        linear-gradient(132deg, #fff, #f7f8ff 58%, #f0fbf9);
}

.ifb-ph-breadcrumb {
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--ph-muted);
    font-size: 14px;
}

.ifb-ph-breadcrumb a {
    color: var(--ph-muted);
    text-decoration: none;
}

.ifb-ph-hero__grid {
    padding-top: clamp(54px, 7vw, 88px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(410px, .84fr);
    align-items: center;
    gap: clamp(50px, 7vw, 92px);
}

.ifb-ph-hero h1,
.ifb-ph-heading h2,
.ifb-ph-context h2,
.ifb-ph-cta h2 {
    color: var(--ph-navy);
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-weight: 850;
    line-height: 1.06;
    letter-spacing: -.045em;
}

.ifb-ph-hero h1 {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: clamp(48px, 5.4vw, 75px);
}

.ifb-ph-lead {
    max-width: 720px;
    margin: 0 0 29px;
    color: #4e6075;
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.68;
}

.ifb-ph-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.ifb-ph-button {
    min-height: 52px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ph-navy) !important;
    border: 2px solid #ccd6e3;
    border-radius: 11px;
    background: #fff;
    font-weight: 850;
    text-decoration: none !important;
}

.ifb-ph-button--primary {
    color: #fff !important;
    border-color: var(--ph-blue);
    background: var(--ph-blue);
    box-shadow: 0 13px 28px rgba(36,27,255,.22);
}

.ifb-ph-hero__facts {
    margin: 32px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    list-style: none;
}

.ifb-ph-hero__facts li {
    padding: 16px 17px;
    border: 1px solid rgba(7,29,59,.09);
    border-radius: 13px;
    background: rgba(255,255,255,.75);
}

.ifb-ph-hero__facts strong,
.ifb-ph-hero__facts span {
    display: block;
}

.ifb-ph-hero__facts strong {
    color: var(--ph-navy);
    font-size: 18px;
}

.ifb-ph-hero__facts span {
    margin-top: 3px;
    color: var(--ph-muted);
    font-size: 12.5px;
    line-height: 1.45;
}

.ifb-ph-hero__media {
    position: relative;
}

.ifb-ph-hero__media > img {
    width: 100%;
    aspect-ratio: 1.02 / 1;
    display: block;
    object-fit: cover;
    border: 11px solid #fff;
    border-radius: 28px;
    box-shadow: 0 26px 65px rgba(7,29,59,.17);
}

.ifb-ph-hero__badge {
    width: min(84%, 380px);
    margin: -65px 0 0 -32px;
    padding: 22px 25px;
    position: relative;
    color: #fff;
    border-radius: 17px;
    background: linear-gradient(135deg, var(--ph-navy), #123e6c);
    box-shadow: 0 18px 42px rgba(7,29,59,.22);
}

.ifb-ph-hero__badge strong,
.ifb-ph-hero__badge span {
    display: block;
}

.ifb-ph-hero__badge strong {
    margin-bottom: 5px;
    font-size: 21px;
}

.ifb-ph-hero__badge span {
    color: rgba(255,255,255,.75);
}

/* Timeline */
.ifb-ph-timeline-section {
    padding: clamp(78px, 8vw, 118px) 0;
}

.ifb-ph-heading {
    max-width: 820px;
    margin-bottom: 43px;
}

.ifb-ph-heading--center {
    margin-inline: auto;
    text-align: center;
}

.ifb-ph-heading h2,
.ifb-ph-context h2,
.ifb-ph-cta h2 {
    margin: 0 0 16px;
    font-size: clamp(38px, 4.6vw, 61px);
}

.ifb-ph-heading > p:not(.ifb-ph-eyebrow),
.ifb-ph-context > div > p:not(.ifb-ph-eyebrow),
.ifb-ph-cta > div > p:not(.ifb-ph-eyebrow) {
    color: var(--ph-muted);
    font-size: 17px;
    line-height: 1.7;
}

.ifb-ph-timeline {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    list-style: none;
}

.ifb-ph-timeline li {
    min-height: 220px;
    padding: 25px;
    border: 1px solid var(--ph-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 30px rgba(7,29,59,.05);
}

.ifb-ph-timeline li > span {
    width: fit-content;
    min-width: 66px;
    height: 38px;
    margin-bottom: 30px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 999px;
    background: var(--ph-blue);
    font-weight: 900;
}

.ifb-ph-timeline strong {
    display: block;
    color: var(--ph-navy);
    font-size: 20px;
    line-height: 1.25;
}

.ifb-ph-timeline p {
    color: var(--ph-muted);
    line-height: 1.6;
}

/* Archive */
.ifb-ph-archive-section {
    padding: clamp(78px, 8vw, 120px) 0;
    background: var(--ph-soft);
}

.ifb-ph-filters {
    margin-bottom: 31px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.ifb-ph-filters button {
    min-height: 42px;
    padding: 0 16px;
    color: var(--ph-navy);
    border: 1px solid #cfd8e4;
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.ifb-ph-filters button.is-active {
    color: #fff;
    border-color: var(--ph-blue);
    background: var(--ph-blue);
}

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

.ifb-ph-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ph-line);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 10px 34px rgba(7,29,59,.06);
}

.ifb-ph-card[hidden] {
    display: none !important;
}

.ifb-ph-card__image {
    position: relative;
    overflow: hidden;
    background: #eef2f7;
}

.ifb-ph-card__image img {
    width: 100%;
    aspect-ratio: 1.44 / 1;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.ifb-ph-card:hover .ifb-ph-card__image img {
    transform: scale(1.025);
}

.ifb-ph-card__image span {
    position: absolute;
    left: 16px;
    bottom: 15px;
    padding: 7px 10px;
    color: #fff;
    border-radius: 8px;
    background: rgba(7,29,59,.88);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ifb-ph-card__body {
    min-height: 360px;
    padding: 25px;
    display: flex;
    flex-direction: column;
}

.ifb-ph-card__meta {
    margin: 0 0 11px;
    color: var(--ph-teal);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ifb-ph-card h3 {
    margin: 0 0 11px;
    color: var(--ph-navy);
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.18;
}

.ifb-ph-card__body > p:not(.ifb-ph-card__meta) {
    color: var(--ph-muted);
    line-height: 1.65;
}

.ifb-ph-card__footer {
    margin-top: auto;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    border-top: 1px solid var(--ph-line);
}

.ifb-ph-card__footer span {
    color: #738197;
    font-size: 12px;
}

.ifb-ph-open {
    padding: 0;
    color: var(--ph-blue);
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
}

/* Context */
.ifb-ph-context-section {
    padding: clamp(68px, 7vw, 100px) 0;
}

.ifb-ph-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .64fr);
    align-items: center;
    gap: clamp(46px, 7vw, 88px);
}

.ifb-ph-context aside {
    padding: 31px;
    display: grid;
    gap: 12px;
    border: 1px solid var(--ph-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(7,29,59,.07);
}

.ifb-ph-context aside strong {
    margin-bottom: 7px;
    color: var(--ph-navy);
}

.ifb-ph-context aside a {
    color: var(--ph-blue);
    font-weight: 800;
}

/* CTA */
.ifb-ph-cta-section {
    padding: 70px 0;
    background: #f4f6f9;
}

.ifb-ph-cta {
    padding: clamp(40px, 5.7vw, 68px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 45px;
    color: #fff;
    border-radius: 27px;
    background:
        radial-gradient(circle at 90% 5%, rgba(36,27,255,.42), transparent 34%),
        linear-gradient(135deg, var(--ph-navy), #123e6c 58%, #241bff);
    box-shadow: 0 24px 60px rgba(7,29,59,.20);
}

.ifb-ph-cta h2 {
    color: #fff;
}

.ifb-ph-cta > div > p:not(.ifb-ph-eyebrow) {
    color: rgba(255,255,255,.78);
}

.ifb-ph-button--light {
    color: var(--ph-navy) !important;
    border-color: #fff;
    background: #fff;
}

.ifb-ph-button--outline-light {
    color: #fff !important;
    border-color: rgba(255,255,255,.65);
    background: transparent;
}

/* Dialog */
.ifb-ph-dialog {
    width: min(96vw, 1120px);
    max-height: 94vh;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.ifb-ph-dialog::backdrop {
    background: rgba(4,15,31,.78);
    backdrop-filter: blur(5px);
}

.ifb-ph-dialog__inner {
    max-height: 94vh;
    overflow: auto;
    background: #eef2f6;
}

.ifb-ph-dialog__inner > header {
    padding: 28px 70px 23px 28px;
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom: 1px solid var(--ph-line);
    background: rgba(255,255,255,.97);
}

.ifb-ph-dialog__inner > header p {
    margin: 0 0 7px;
    color: var(--ph-teal);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ifb-ph-dialog__inner > header h2 {
    margin: 0 0 8px;
    color: var(--ph-navy);
    font-size: clamp(25px, 3vw, 38px);
}

.ifb-ph-dialog__inner > header span {
    color: var(--ph-muted);
    font-size: 13px;
}

.ifb-ph-dialog__close {
    width: 42px;
    height: 42px;
    position: fixed;
    margin: 17px 17px 0 0;
    right: max(2vw, calc((100vw - 1120px) / 2));
    z-index: 5;
    display: grid;
    place-items: center;
    color: #fff;
    border: 0;
    border-radius: 50%;
    background: var(--ph-navy);
    font-size: 27px;
    cursor: pointer;
}

.ifb-ph-dialog__pages {
    padding: 24px;
    display: grid;
    gap: 20px;
}

.ifb-ph-dialog__pages img {
    width: min(100%, 920px);
    height: auto;
    margin-inline: auto;
    display: block;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 30px rgba(7,29,59,.12);
}

/* Homepage teaser */
.ifb-ph-home-teaser {
    padding: clamp(72px, 7vw, 105px) 0;
    background: #fff;
}

.ifb-ph-home-heading {
    max-width: 820px;
    margin-bottom: 35px;
}

.ifb-ph-home-heading h2 {
    margin: 0 0 13px;
    color: var(--ph-navy);
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-size: clamp(36px, 4.4vw, 58px);
    font-weight: 850;
    line-height: 1.07;
    letter-spacing: -.04em;
}

.ifb-ph-home-heading > p:not(.ifb-v5-eyebrow) {
    color: var(--ph-muted);
    font-size: 17px;
    line-height: 1.68;
}

.ifb-ph-home-grid {
    margin-bottom: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.ifb-ph-home-card {
    overflow: hidden;
    color: inherit !important;
    border: 1px solid var(--ph-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(7,29,59,.05);
    text-decoration: none !important;
}

.ifb-ph-home-card img {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    display: block;
    object-fit: cover;
}

.ifb-ph-home-card > div {
    padding: 20px;
}

.ifb-ph-home-card span,
.ifb-ph-home-card strong,
.ifb-ph-home-card small {
    display: block;
}

.ifb-ph-home-card span {
    color: var(--ph-teal);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ifb-ph-home-card strong {
    margin: 8px 0;
    color: var(--ph-navy);
    font-size: 19px;
    line-height: 1.25;
}

.ifb-ph-home-card small {
    color: var(--ph-muted);
    line-height: 1.5;
}

/* About teaser */
.ifb-ph-about-teaser {
    background:
        radial-gradient(circle at 92% 12%, rgba(36,27,255,.08), transparent 31%),
        #f7f8ff;
}

.ifb-ph-about-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: clamp(48px, 7vw, 90px);
}

.ifb-ph-about-layout ol {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
}

.ifb-ph-about-layout li {
    padding: 20px;
    border: 1px solid var(--ph-line);
    border-radius: 15px;
    background: #fff;
}

.ifb-ph-about-layout li span,
.ifb-ph-about-layout li strong {
    display: block;
}

.ifb-ph-about-layout li span {
    margin-bottom: 6px;
    color: var(--ph-blue);
    font-size: 13px;
    font-weight: 900;
}

.ifb-ph-about-layout li strong {
    color: var(--ph-navy);
}

/* Responsive */
@media (max-width: 1050px) {
    .ifb-ph-hero__grid,
    .ifb-ph-context,
    .ifb-ph-about-layout {
        grid-template-columns: 1fr;
    }

    .ifb-ph-hero__media {
        max-width: 760px;
    }

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

    .ifb-ph-cta {
        grid-template-columns: 1fr;
    }
}

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

    .ifb-ph-hero__facts,
    .ifb-ph-timeline,
    .ifb-ph-grid,
    .ifb-ph-home-grid,
    .ifb-ph-about-layout ol {
        grid-template-columns: 1fr;
    }

    .ifb-ph-hero__badge {
        width: calc(100% - 22px);
        margin: -42px auto 0;
    }

    .ifb-ph-actions {
        flex-direction: column;
    }

    .ifb-ph-button {
        width: 100%;
    }

    .ifb-ph-card__body {
        min-height: 0;
    }

    .ifb-ph-dialog__pages {
        padding: 12px;
    }

    .ifb-ph-dialog__inner > header {
        padding: 22px 60px 18px 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ifb-ph-card__image img {
        transition: none;
    }
}
