.news-archive {
    padding: 2rem 0 3rem;
}

.news-archive__inner {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.news-archive__heading {
    margin-bottom: 1.5rem;
}

.news-archive__heading h1 {
    margin: .15em 0;
}

.news-archive__heading > p:last-child {
    margin: 0;
}

.news-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.news-archive-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface, #fff);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}

.news-archive-card__media {
    display: block;
    overflow: hidden;
    background: rgba(0,0,0,.04);
}

.news-archive-card__media img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-archive-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem 1rem 1.1rem;
}

.news-archive-card__body time {
    display: block;
    margin-bottom: .45rem;
    font-size: .9rem;
    opacity: .72;
}

.news-archive-card__body h2 {
    margin: 0 0 .65rem;
    font-size: 1.15rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.news-archive-card__body h2 a {
    color: inherit;
}

.news-archive-card__body p {
    margin: 0 0 1rem;
    line-height: 1.5;
}

.news-archive-card__link {
    margin-top: auto;
    font-weight: 700;
}

/* Detailansicht */
.content-shell--post {
    width: min(1100px, calc(100% - 32px));
}

.content-shell--post .content-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: start;
    gap: 2rem;
}

.content-shell--post .content-body {
    max-width: 900px;
}

.content-shell--post .content-featured-image--post {
    overflow: hidden;
    border-radius: 14px;
    background: rgba(0,0,0,.04);
}

.content-shell--post .content-featured-image--post img {
    display: block;
    width: 100%;
    max-height: 560px;
    margin: 0;
    object-fit: cover;
    border-radius: 0;
}

.content-shell--post .wp-block-file,
.content-shell--post object[type="application/pdf"] {
    max-width: 100%;
}

.news-detail__back {
    margin-top: 2.5rem !important;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(20,35,50,.14);
}

.news-detail__back a {
    font-weight: 700;
}

@media (max-width: 900px) {
    .news-archive__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .news-archive-card__media img {
        height: 165px;
    }
}

@media (max-width: 640px) {
    .news-archive {
        padding: 1.25rem 0 2rem;
    }

    .news-archive__inner {
        width: min(100% - 1.25rem, 680px);
    }

    .news-archive__grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .news-archive-card__media img {
        height: 170px;
    }

    .news-archive-card__body {
        padding: .9rem;
    }

    .news-archive-card__body h2 {
        font-size: 1.08rem;
    }

    .news-archive-card__body p {
        font-size: .95rem;
    }

    .content-shell--post {
        width: min(100% - 24px, 1100px);
    }
}

.news-related-card {
    position: sticky;
    top: 1.25rem;
}

.news-related-list {
    display: grid;
    gap: 0;
    margin: .4rem 0 0;
    padding: 0;
    list-style: none;
}

.news-related-list__item {
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255,255,255,.14);
}

.news-related-list__item:first-child {
    padding-top: .35rem;
}

.news-related-list__item:last-child {
    border-bottom: 0;
}

.news-related-list__item time {
    display: block;
    margin-bottom: .25rem;
    font-size: .8rem;
    opacity: .68;
}

.news-related-list__item a {
    display: block;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .content-shell--post .content-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-related-card {
        position: static;
    }
}

