/*
 * IFB Presse & Meilensteine V1.2
 * Dezente textbasierte Darstellung ohne sichtbare Vorschaubilder.
 */

.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-brand: #0000AA;
    --ph-accent: #0F766E;
    --ph-ink: #172033;
    --ph-text: #344054;
    --ph-muted: #667085;
    --ph-line: #D8E5E5;
    --ph-soft: #F6F8FA;
    color: var(--ph-text);
    overflow: clip;
    background: #fff;
}

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

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

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

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

/* Dezenter Hero ohne Bild */
.ifb-press-history-page .ifb-ph-hero {
    padding: 0 0 clamp(54px, 6vw, 78px);
    color: var(--ph-text) !important;
    background: linear-gradient(180deg, #fff, #F8FAFC) !important;
    border-bottom: 1px solid #E6ECEF;
}

.ifb-ph-hero__content {
    max-width: 900px;
    padding-top: clamp(45px, 6vw, 72px);
}

.ifb-ph-hero h1,
.ifb-ph-heading h2,
.ifb-ph-context h2,
.ifb-ph-closing h2 {
    margin: 0;
    color: var(--ph-ink) !important;
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-weight: 820;
    line-height: 1.1;
    letter-spacing: -.035em;
}

.ifb-ph-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(42px, 5vw, 64px);
}

.ifb-ph-lead {
    max-width: 780px;
    margin: 0;
    color: var(--ph-text);
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.7;
}

.ifb-ph-summary {
    margin: 28px 0;
    padding: 18px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    border-top: 1px solid var(--ph-line);
    border-bottom: 1px solid var(--ph-line);
}

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

.ifb-ph-summary strong {
    margin-right: 5px;
    color: var(--ph-ink);
}

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

.ifb-ph-button {
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ph-accent) !important;
    border: 1px solid #B9D6D3;
    border-radius: 9px;
    background: #fff;
    font-weight: 800;
    text-decoration: none !important;
}

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

/* Überschriften */
.ifb-ph-heading {
    max-width: 760px;
    margin-bottom: 30px;
}

.ifb-ph-heading h2,
.ifb-ph-context h2,
.ifb-ph-closing h2 {
    margin-bottom: 12px;
    font-size: clamp(32px, 3.6vw, 46px);
}

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

/* Kompakte Zeitleiste */
.ifb-ph-timeline-section {
    padding: clamp(58px, 6vw, 84px) 0;
}

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

.ifb-ph-timeline--quiet li {
    min-height: 0;
    padding: 19px 0;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 20px;
    border: 0;
    border-top: 1px solid var(--ph-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.ifb-ph-timeline--quiet li > span {
    width: auto;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 0;
    align-items: start;
    justify-content: start;
    color: var(--ph-brand);
    border-radius: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 900;
}

.ifb-ph-timeline--quiet strong {
    display: block;
    margin-bottom: 5px;
    color: var(--ph-ink);
    font-size: 17px;
}

.ifb-ph-timeline--quiet p {
    margin: 0;
    color: var(--ph-muted);
    font-size: 14px;
    line-height: 1.55;
}

/* Textbasiertes Archiv */
.ifb-ph-archive-section--quiet {
    padding: clamp(58px, 6vw, 88px) 0;
    background: var(--ph-soft) !important;
    border-top: 1px solid #E8EDF0;
    border-bottom: 1px solid #E8EDF0;
}

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

.ifb-ph-filters button {
    min-height: 38px;
    padding: 0 14px;
    color: var(--ph-ink);
    border: 1px solid #CDD7DD;
    border-radius: 999px;
    background: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

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

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

.ifb-ph-card--text {
    min-width: 0;
    overflow: visible;
    border: 1px solid var(--ph-line);
    border-radius: 13px;
    background: #fff;
    box-shadow: none;
}

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

.ifb-ph-card--text .ifb-ph-card__body {
    min-height: 0;
    padding: 23px;
    display: flex;
    flex-direction: column;
}

.ifb-ph-card__topline {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ifb-ph-card__category {
    padding: 5px 8px;
    color: #0B5F5A;
    border-radius: 999px;
    background: #EAF7F5;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ifb-ph-card__year {
    color: var(--ph-brand);
    font-size: 12px;
    font-weight: 900;
}

.ifb-ph-card__meta {
    margin: 0 0 9px;
    color: var(--ph-muted);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ifb-ph-card h3 {
    margin: 0 0 10px;
    color: var(--ph-ink) !important;
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-size: 21px;
    font-weight: 820;
    line-height: 1.25;
}

.ifb-ph-card__body > p:not(.ifb-ph-card__meta) {
    margin: 0;
    color: var(--ph-text) !important;
    font-size: 14px;
    line-height: 1.65;
}

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

.ifb-ph-card__footer span {
    color: var(--ph-muted);
    font-size: 11px;
}

.ifb-ph-open {
    padding: 0;
    color: var(--ph-brand) !important;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
}

/* Historischer Kontext */
.ifb-ph-context-section--quiet {
    padding: clamp(52px, 6vw, 76px) 0;
}

.ifb-ph-context {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, .56fr);
    align-items: center;
    gap: clamp(38px, 6vw, 72px);
}

.ifb-ph-context aside {
    padding: 24px;
    display: grid;
    gap: 10px;
    border: 1px solid var(--ph-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: none;
}

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

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

/* Dezenter Abschluss statt großer dunkler CTA */
.ifb-ph-closing-section {
    padding: 0 0 clamp(60px, 7vw, 92px);
}

.ifb-ph-closing {
    padding: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 32px;
    border: 1px solid var(--ph-line);
    border-radius: 14px;
    background: #F8FAFC;
}

/* Dialog: Bilder nur nach bewusstem Klick */
.ifb-ph-dialog {
    width: min(94vw, 1120px);
    max-height: 92vh;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 90px rgba(23,32,51,.28);
}

.ifb-ph-dialog::backdrop {
    background: rgba(23,32,51,.72);
}

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

.ifb-ph-dialog__inner > header {
    padding: 26px 72px 21px 25px;
    border-bottom: 1px solid var(--ph-line);
}

.ifb-ph-dialog__inner > header p,
.ifb-ph-dialog__inner > header h2,
.ifb-ph-dialog__inner > header span {
    margin: 0;
}

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

.ifb-ph-dialog__inner > header h2 {
    margin-top: 7px;
    color: var(--ph-ink) !important;
    font-size: clamp(25px, 3vw, 38px);
}

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

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

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

.ifb-ph-dialog__pages img {
    width: min(100%, 920px);
    height: auto;
    margin-inline: auto;
    display: block;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 22px rgba(23,32,51,.12);
}

/* Startseite: kompakter, rein textbasierter Teaser */
.ifb-ph-home-teaser--quiet {
    padding: clamp(44px, 5vw, 68px) 0;
    background: #fff;
}

.ifb-ph-home-panel {
    padding: clamp(25px, 3.5vw, 38px);
    border: 1px solid var(--ph-line);
    border-radius: 14px;
    background: #F8FAFC;
}

.ifb-ph-home-heading {
    max-width: 720px;
    margin-bottom: 22px;
}

.ifb-ph-home-heading h2 {
    margin: 0 0 9px;
    color: var(--ph-ink) !important;
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-size: clamp(30px, 3.4vw, 43px);
    font-weight: 820;
    line-height: 1.12;
    letter-spacing: -.03em;
}

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

.ifb-ph-home-list {
    margin-bottom: 18px;
    border-top: 1px solid var(--ph-line);
}

.ifb-ph-home-item {
    padding: 15px 0;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) auto;
    align-items: center;
    gap: 15px;
    color: inherit !important;
    border-bottom: 1px solid var(--ph-line);
    text-decoration: none !important;
}

.ifb-ph-home-year {
    color: var(--ph-brand);
    font-size: 12px;
    font-weight: 900;
}

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

.ifb-ph-home-copy strong {
    color: var(--ph-ink);
    font-size: 16px;
    line-height: 1.35;
}

.ifb-ph-home-copy small {
    margin-top: 3px;
    color: var(--ph-muted);
    font-size: 12px;
}

.ifb-ph-home-arrow {
    color: var(--ph-brand);
    font-size: 18px;
}

.ifb-ph-home-link {
    color: var(--ph-brand) !important;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none !important;
}

/* Über IFB: kompakter Meilenstein-Hinweis */
.ifb-ph-about-teaser--quiet {
    padding-block: clamp(48px, 5vw, 72px) !important;
    background: #F8FAFC !important;
}

.ifb-ph-about-panel {
    padding: clamp(25px, 3.5vw, 38px);
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
    align-items: center;
    gap: clamp(36px, 6vw, 70px);
    border: 1px solid var(--ph-line);
    border-radius: 14px;
    background: #fff;
}

.ifb-ph-about-copy h2 {
    margin: 0 0 11px;
    color: var(--ph-ink) !important;
    font-size: clamp(30px, 3.4vw, 43px);
    line-height: 1.12;
}

.ifb-ph-about-copy p:not(.ifb-course-eyebrow) {
    color: var(--ph-muted);
    line-height: 1.65;
}

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

.ifb-ph-about-years li {
    padding: 15px 0;
    border: 0;
    border-top: 1px solid var(--ph-line);
    border-radius: 0;
    background: transparent;
}

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

.ifb-ph-about-years li span {
    margin-bottom: 4px;
    color: var(--ph-brand);
    font-size: 12px;
    font-weight: 900;
}

.ifb-ph-about-years li strong {
    color: var(--ph-ink);
    font-size: 15px;
}

@media (max-width: 900px) {
    .ifb-ph-timeline--quiet,
    .ifb-ph-grid--text,
    .ifb-ph-context,
    .ifb-ph-closing,
    .ifb-ph-about-panel {
        grid-template-columns: 1fr;
    }

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

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

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

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

    .ifb-ph-timeline--quiet,
    .ifb-ph-grid--text,
    .ifb-ph-about-years {
        grid-template-columns: 1fr;
    }

    .ifb-ph-home-item {
        grid-template-columns: 50px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .ifb-ph-home-copy small {
        display: none;
    }

    .ifb-ph-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .ifb-ph-dialog__inner > header {
        padding: 22px 58px 17px 16px;
    }
}
