/*
 * IFB Aktuelles V1
 * Beitragsübersicht, Archive und Einzelbeiträge.
 */

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

.ifb-aktuelles-page .page-header,
.ifb-aktuelles-page .entry-header,
.ifb-aktuelles-page .entry-content,
.ifb-article-page .site-main > article > .inside-article > .entry-header,
.ifb-article-page .site-main > article > .inside-article > .entry-content {
    display: none !important;
}

.ifb-news-page,
.ifb-article {
    overflow: clip;
    color: var(--ifb-v5-text, #26384d);
    background: #fff;
}

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

.ifb-news-page h1,
.ifb-news-page h2,
.ifb-news-page h3,
.ifb-article h1,
.ifb-article h2,
.ifb-article h3 {
    color: var(--ifb-v5-navy, #071d3b);
    font-family: Manrope, Inter, system-ui, sans-serif;
    letter-spacing: -.035em;
}

.ifb-news-eyebrow {
    margin: 0 0 13px;
    color: var(--ifb-v5-teal, #079986);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ifb-news-lead {
    max-width: 760px;
    margin: 0;
    color: var(--ifb-v5-text, #26384d);
    font-size: clamp(19px, 1.8vw, 22px);
    line-height: 1.65;
}

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

.ifb-news-breadcrumb a {
    color: var(--ifb-v5-muted, #617087);
    text-decoration: none;
}

.ifb-news-breadcrumb a:hover {
    color: var(--ifb-v5-brand, #241bff);
}

/* Hero */
.ifb-news-hero {
    padding-bottom: clamp(72px, 8vw, 108px);
    background:
        radial-gradient(circle at 92% 10%, rgba(36,27,255,.12), transparent 34%),
        radial-gradient(circle at 54% 100%, rgba(7,153,134,.1), transparent 34%),
        linear-gradient(130deg, #fff 0%, #f7f8ff 55%, #f1fbfa 100%);
}

.ifb-news-hero__grid {
    padding-top: clamp(62px, 7vw, 94px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, .75fr);
    align-items: center;
    gap: clamp(48px, 7vw, 90px);
}

.ifb-news-hero h1,
.ifb-news-archive-hero h1,
.ifb-article-hero h1 {
    max-width: 820px;
    margin: 0 0 24px;
    font-size: clamp(48px, 5.8vw, 76px);
    font-weight: 850;
    line-height: 1.04;
}

.ifb-news-hero__panel {
    padding: clamp(31px, 4vw, 45px);
    color: #fff;
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255,255,255,.13), transparent 34%),
        linear-gradient(140deg, var(--ifb-v5-navy, #071d3b), #123e6c);
    box-shadow: var(--ifb-v5-shadow, 0 24px 70px rgba(7,29,59,.13));
}

.ifb-news-hero__panel .ifb-news-eyebrow {
    color: #80eadc;
}

.ifb-news-hero__panel h2 {
    margin: 0 0 25px;
    color: #fff;
    font-size: 35px;
}

.ifb-news-hero__icon {
    width: 58px;
    height: 58px;
    margin-bottom: 22px;
    display: grid;
    place-items: center;
    color: var(--ifb-v5-navy, #071d3b);
    border-radius: 17px;
    background: #80eadc;
}

.ifb-news-topic-links {
    display: grid;
    gap: 9px;
}

.ifb-news-topic-links a {
    padding: 13px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #fff !important;
    border-bottom: 1px solid rgba(255,255,255,.16);
    font-weight: 750;
    text-decoration: none;
}

.ifb-news-topic-links__hint {
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 14px;
    line-height: 1.6;
}

/* Fakten */
.ifb-news-facts {
    border-top: 1px solid var(--ifb-v5-line, #dce4ee);
    border-bottom: 1px solid var(--ifb-v5-line, #dce4ee);
    background: #fff;
}

.ifb-news-facts__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ifb-news-facts__grid > div {
    min-height: 110px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--ifb-v5-line, #dce4ee);
}

.ifb-news-facts__grid > div:last-child {
    border-right: 0;
}

.ifb-news-facts strong {
    margin-bottom: 5px;
    color: var(--ifb-v5-brand, #241bff);
    font-size: 20px;
}

.ifb-news-facts span {
    color: var(--ifb-v5-muted, #617087);
    font-size: 14px;
}

/* Hervorgehobener Beitrag */
.ifb-news-featured-section {
    padding: clamp(78px, 8vw, 112px) 0 36px;
}

.ifb-news-featured {
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
    min-height: 520px;
    border: 1px solid var(--ifb-v5-line, #dce4ee);
    border-radius: 28px;
    background: #fff;
    box-shadow: var(--ifb-v5-shadow, 0 24px 70px rgba(7,29,59,.13));
}

.ifb-news-featured__media {
    min-height: 100%;
    display: block;
    overflow: hidden;
    background: #eef1ff;
}

.ifb-news-featured__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.ifb-news-featured:hover .ifb-news-featured__media img {
    transform: scale(1.025);
}

.ifb-news-featured__fallback {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    background:
        radial-gradient(circle at 75% 15%, rgba(255,255,255,.18), transparent 30%),
        linear-gradient(145deg, var(--ifb-v5-brand, #241bff), var(--ifb-v5-navy, #071d3b));
}

.ifb-news-featured__fallback span {
    font-size: 72px;
    font-weight: 900;
    letter-spacing: -.06em;
}

.ifb-news-featured__fallback strong {
    font-size: 25px;
}

.ifb-news-featured__content {
    padding: clamp(38px, 5vw, 64px);
    align-self: center;
}

.ifb-news-featured__content h2 {
    margin: 0 0 20px;
    font-size: clamp(34px, 4vw, 50px);
    line-height: 1.1;
}

.ifb-news-featured__content h2 a,
.ifb-news-card h3 a {
    color: inherit !important;
    text-decoration: none !important;
}

.ifb-news-featured__content > p:not(.ifb-news-eyebrow) {
    margin-bottom: 28px;
    color: var(--ifb-v5-muted, #617087);
    font-size: 18px;
    line-height: 1.72;
}

/* Beitragskarten */
.ifb-news-list-section,
.ifb-news-related-section {
    padding: clamp(72px, 8vw, 108px) 0;
}

.ifb-news-list-section {
    background: var(--ifb-v5-surface, #f6f8fb);
}

.ifb-news-related-section {
    background: var(--ifb-v5-surface, #f6f8fb);
}

.ifb-news-section-head {
    max-width: 780px;
    margin-bottom: 42px;
}

.ifb-news-section-head h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.08;
}

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

.ifb-news-card {
    overflow: hidden;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--ifb-v5-line, #dce4ee);
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 9px 30px rgba(7,29,59,.05);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.ifb-news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(36,27,255,.26);
    box-shadow: var(--ifb-v5-shadow-sm, 0 12px 36px rgba(7,29,59,.08));
}

.ifb-news-card__media {
    height: 225px;
    display: block;
    overflow: hidden;
    background: #eef1ff;
}

.ifb-news-card__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .3s ease;
}

.ifb-news-card:hover .ifb-news-card__media img {
    transform: scale(1.035);
}

.ifb-news-card__fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 10%, rgba(255,255,255,.18), transparent 32%),
        linear-gradient(145deg, var(--ifb-v5-brand, #241bff), #554dff);
}

.ifb-news-card__fallback svg {
    width: 42px;
    height: 42px;
}

.ifb-news-card__fallback strong {
    font-size: 20px;
}

.ifb-news-card__content {
    padding: 25px;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.ifb-news-card__meta {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px 14px;
    color: var(--ifb-v5-muted, #617087);
    font-size: 12px;
}

.ifb-news-card__meta a {
    padding: 5px 8px;
    color: var(--ifb-v5-teal, #079986) !important;
    border-radius: 999px;
    background: #e7f8f5;
    font-weight: 850;
    text-decoration: none;
}

.ifb-news-card h3 {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.22;
}

.ifb-news-card__content > p {
    margin: 0 0 20px;
    color: var(--ifb-v5-muted, #617087);
    line-height: 1.65;
}

.ifb-news-card__link {
    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;
}

/* Buttons */
.ifb-news-button {
    min-height: 51px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #fff !important;
    border: 2px solid transparent;
    border-radius: 12px;
    background: var(--ifb-v5-brand, #241bff);
    box-shadow: 0 13px 30px rgba(36,27,255,.2);
    font-weight: 800;
    text-decoration: none !important;
}

.ifb-news-button:hover {
    background: var(--ifb-v5-brand-dark, #1510c8);
}

.ifb-news-button--light {
    color: var(--ifb-v5-navy, #071d3b) !important;
    background: #fff;
    box-shadow: none;
}

.ifb-news-button--outline {
    color: #fff !important;
    border-color: rgba(255,255,255,.65);
    background: transparent;
    box-shadow: none;
}

/* Pagination */
.ifb-news-pagination {
    margin-top: 42px;
}

.ifb-news-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ifb-news-pagination .page-numbers {
    min-width: 44px;
    min-height: 44px;
    padding: 8px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ifb-v5-navy, #071d3b);
    border: 1px solid var(--ifb-v5-line, #dce4ee);
    border-radius: 9px;
    background: #fff;
    text-decoration: none;
}

.ifb-news-pagination .current {
    color: #fff;
    border-color: var(--ifb-v5-brand, #241bff);
    background: var(--ifb-v5-brand, #241bff);
}

/* Leerzustand */
.ifb-news-empty-section {
    padding: clamp(80px, 10vw, 140px) 0;
}

.ifb-news-empty {
    max-width: 780px;
    margin-inline: auto;
    padding: clamp(36px, 5vw, 58px);
    text-align: center;
    border: 1px solid var(--ifb-v5-line, #dce4ee);
    border-radius: 25px;
    background: #fff;
    box-shadow: var(--ifb-v5-shadow-sm, 0 12px 36px rgba(7,29,59,.08));
}

.ifb-news-empty .ifb-news-hero__icon {
    margin-inline: auto;
}

.ifb-news-empty h2 {
    margin: 0 0 15px;
    font-size: 38px;
}

.ifb-news-empty p {
    margin-bottom: 25px;
    color: var(--ifb-v5-muted, #617087);
}

/* CTA */
.ifb-news-cta-section {
    padding: 0 0 clamp(80px, 8vw, 112px);
    background: var(--ifb-v5-surface, #f6f8fb);
}

.ifb-news-cta {
    padding: clamp(40px, 5vw, 62px);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) auto;
    align-items: center;
    gap: 38px;
    color: #fff;
    border-radius: 28px;
    background: linear-gradient(125deg, var(--ifb-v5-navy, #071d3b), #123e6c 62%, var(--ifb-v5-brand, #241bff));
    box-shadow: var(--ifb-v5-shadow, 0 24px 70px rgba(7,29,59,.13));
}

.ifb-news-cta h2,
.ifb-news-cta p {
    color: #fff;
}

.ifb-news-cta h2 {
    margin: 0 0 12px;
    font-size: clamp(32px, 4vw, 48px);
}

.ifb-news-cta p:not(.ifb-news-eyebrow) {
    margin: 0;
    opacity: .88;
}

.ifb-news-cta .ifb-news-eyebrow {
    color: #80eadc;
}

.ifb-news-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Archiv */
.ifb-news-archive-hero {
    padding-bottom: clamp(70px, 8vw, 105px);
    background:
        radial-gradient(circle at 91% 10%, rgba(36,27,255,.11), transparent 34%),
        linear-gradient(130deg, #fff, #f5f7ff);
}

.ifb-news-archive-hero .ifb-news-eyebrow {
    margin-top: clamp(55px, 7vw, 90px);
}

.ifb-news-archive-description {
    max-width: 760px;
    color: var(--ifb-v5-muted, #617087);
    font-size: 18px;
    line-height: 1.7;
}

/* Einzelbeitrag */
.ifb-article-hero {
    padding-bottom: clamp(72px, 8vw, 108px);
    background:
        radial-gradient(circle at 91% 10%, rgba(36,27,255,.12), transparent 34%),
        linear-gradient(130deg, #fff, #f5f7ff);
}

.ifb-article-hero__content {
    max-width: 970px;
    padding-top: clamp(58px, 7vw, 90px);
}

.ifb-article-lead {
    max-width: 820px;
    margin: 0;
    color: var(--ifb-v5-muted, #617087);
    font-size: clamp(19px, 2vw, 23px);
    line-height: 1.7;
}

.ifb-article-featured-image {
    margin: -52px 0 0;
    overflow: hidden;
    border-radius: 27px;
    box-shadow: var(--ifb-v5-shadow, 0 24px 70px rgba(7,29,59,.13));
}

.ifb-article-featured-image img {
    width: 100%;
    max-height: 680px;
    display: block;
    object-fit: cover;
}

.ifb-article-layout {
    padding-top: clamp(70px, 8vw, 108px);
    padding-bottom: clamp(80px, 9vw, 125px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: clamp(48px, 7vw, 90px);
}

.ifb-article-content {
    max-width: 820px;
    color: var(--ifb-v5-text, #26384d);
    font-size: 18px;
    line-height: 1.82;
}

.ifb-article-content > *:first-child {
    margin-top: 0;
}

.ifb-article-content h2 {
    margin: 2em 0 .65em;
    font-size: clamp(30px, 3.5vw, 43px);
    line-height: 1.15;
}

.ifb-article-content h3 {
    margin: 1.7em 0 .55em;
    font-size: 27px;
}

.ifb-article-content a {
    color: var(--ifb-v5-brand, #241bff);
}

.ifb-article-content img {
    border-radius: 17px;
}

.ifb-article-content blockquote {
    margin: 2em 0;
    padding: 23px 27px;
    color: var(--ifb-v5-navy, #071d3b);
    border-left: 4px solid var(--ifb-v5-teal, #079986);
    background: #f0faf8;
    font-size: 21px;
}

.ifb-article-contact-card {
    position: sticky;
    top: 120px;
    padding: 28px;
    border: 1px solid var(--ifb-v5-line, #dce4ee);
    border-radius: 21px;
    background: #fff;
    box-shadow: var(--ifb-v5-shadow-sm, 0 12px 36px rgba(7,29,59,.08));
}

.ifb-article-contact-card h2 {
    margin: 0 0 13px;
    font-size: 29px;
}

.ifb-article-contact-card > p:not(.ifb-news-eyebrow) {
    color: var(--ifb-v5-muted, #617087);
    line-height: 1.65;
}

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

    .ifb-news-featured {
        grid-template-columns: 1fr;
    }

    .ifb-news-featured__media,
    .ifb-news-featured__fallback {
        min-height: 390px;
    }
}

@media (max-width: 900px) {
    .ifb-news-hero__grid,
    .ifb-news-cta,
    .ifb-article-layout {
        grid-template-columns: 1fr;
    }

    .ifb-article-contact-card {
        position: static;
        max-width: 650px;
    }
}

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

    .ifb-news-facts__grid,
    .ifb-news-grid {
        grid-template-columns: 1fr;
    }

    .ifb-news-facts__grid > div {
        min-height: 86px;
        border-right: 0;
        border-bottom: 1px solid var(--ifb-v5-line, #dce4ee);
    }

    .ifb-news-facts__grid > div:last-child {
        border-bottom: 0;
    }

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

    .ifb-news-featured__media,
    .ifb-news-featured__fallback {
        min-height: 300px;
    }

    .ifb-news-cta__actions {
        align-items: stretch;
    }

    .ifb-news-cta__actions .ifb-news-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ifb-news-featured__media img,
    .ifb-news-card,
    .ifb-news-card__media img,
    .ifb-news-topic-links a {
        transition: none;
    }
}
