/* Nachrichtenwand – passend zur FairPlay-Hauptseite (Blau #1e40af, Grün #16a34a) */
.fpnews {
    --fpnews-blue: #1e40af;
    --fpnews-text: #1f2937;
    --fpnews-muted: #4b5563;
    --fpnews-border: #e5e7eb;
    --fpnews-radius: 16px;
    --fpnews-focus: #1e40af;
    color: var(--fpnews-text);
    margin: 0 auto;
    max-width: 1200px;
    padding: 2rem 1rem;
    scroll-margin-top: 100px;
}

.fpnews-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: .75rem;
}

.fpnews-title {
    color: var(--fpnews-blue);
    font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
    line-height: 1.15;
    margin: 0;
}

.fpnews-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin: 0;
}

.fpnews-filter-label {
    color: var(--fpnews-muted);
    font-size: .95rem;
}

.fpnews-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.fpnews-chip {
    --fpnews-c-bg: var(--fpnews-blue);
    --fpnews-c-fg: #fff;
    align-items: center;
    background: #fff;
    border: 2px solid var(--fpnews-c-bg);
    border-radius: 999px;
    color: var(--fpnews-text);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    gap: .4rem;
    line-height: 1.2;
    min-height: 44px;
    padding: .45rem 1rem;
    transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.fpnews-chip abbr {
    text-decoration: none;
}

.fpnews-chip-logo {
    background: #fff;
    border-radius: 50%;
    height: 22px;
    object-fit: contain;
    width: 22px;
}

.fpnews-chip:hover {
    box-shadow: 0 2px 10px rgb(0 0 0 / .12);
}

.fpnews-chip[aria-pressed="true"] {
    background: var(--fpnews-c-bg);
    color: var(--fpnews-c-fg);
}

.fpnews-chip:focus-visible,
.fpnews-more-button:focus-visible {
    outline: 3px solid var(--fpnews-focus);
    outline-offset: 3px;
}

.fpnews-status {
    color: var(--fpnews-muted);
    font-size: .9rem;
    margin: 0 0 1.25rem;
}

.fpnews-list {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* gleich hohe Kacheln: 1 Spalte mobil, 2 ab Tablet, 4 ab Desktop (8 Startmeldungen = 2 volle Reihen) */
@media (min-width: 640px) {
    .fpnews-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .fpnews-list {
        gap: 1.25rem;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fpnews-body {
        padding: 1rem 1rem 1.1rem;
    }

    .fpnews-headline {
        font-size: 1.05rem;
    }

    .fpnews-excerpt {
        font-size: .9rem;
    }
}

.fpnews-item {
    display: flex;
    scroll-margin-top: 110px;
}

.fpnews-item:focus {
    outline: none;
}

.fpnews-item:focus-visible .fpnews-card {
    outline: 3px solid var(--fpnews-focus);
    outline-offset: 3px;
}

.fpnews-card {
    background: #fff;
    border: 1px solid var(--fpnews-border);
    border-radius: var(--fpnews-radius);
    box-shadow: 0 5px 15px rgb(0 0 0 / .08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease;
    width: 100%;
}

.fpnews-card::before {
    background: var(--fpnews-c-bg);
    content: "";
    height: 4px;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.fpnews-card:hover {
    box-shadow: 0 14px 30px rgb(0 0 0 / .14);
    transform: translateY(-3px);
}

.fpnews-card:focus-within {
    outline: 3px solid var(--fpnews-focus);
    outline-offset: 3px;
}

.fpnews-media {
    background: #f3f4f6;
}

/* einheitlich 16:9, abweichende Formate werden mittig zugeschnitten */
.fpnews-media img {
    aspect-ratio: 16 / 9;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.fpnews-media-empty {
    aspect-ratio: 16 / 9;
}

.fpnews-media-empty .fpnews-media-placeholder img {
    height: 96px;
    width: 96px;
}

.fpnews-media-placeholder {
    align-items: center;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    display: flex;
    height: 100%;
    justify-content: center;
}

.fpnews-media-placeholder img {
    height: 96px;
    object-fit: contain;
    opacity: .8;
    width: 96px;
}

.fpnews-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .6rem;
    padding: 1.1rem 1.25rem 1.25rem;
}

.fpnews-meta {
    align-items: center;
    color: var(--fpnews-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .875rem;
    gap: .5rem .75rem;
    justify-content: space-between;
    margin: 0;
}

.fpnews-source {
    align-items: center;
    display: inline-flex;
    gap: .5rem;
}

.fpnews-logo {
    align-items: center;
    background: #fff;
    border: 1px solid var(--fpnews-border);
    border-radius: 50%;
    box-shadow: 0 1px 4px rgb(0 0 0 / .1);
    display: inline-flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.fpnews-logo img {
    height: 34px;
    object-fit: contain;
    width: 34px;
}

.fpnews-source-text {
    color: var(--fpnews-text);
    font-weight: 700;
    text-decoration: none;
}

.fpnews-headline {
    font-size: 1.15rem;
    line-height: 1.35;
    margin: 0;
}

.fpnews-headline a {
    color: var(--fpnews-text);
    text-decoration: none;
}

/* ganze Karte klickbar, ohne verschachtelte Links */
.fpnews-headline a::after {
    content: "";
    inset: 0;
    position: absolute;
    z-index: 2;
}

.fpnews-headline a:focus {
    outline: none;
}

.fpnews-card:hover .fpnews-headline a {
    color: var(--fpnews-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.fpnews-excerpt {
    -webkit-box-orient: vertical;
    color: var(--fpnews-muted);
    display: -webkit-box;
    font-size: .95rem;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    line-height: 1.55;
    margin: 0;
    overflow: hidden;
}

.fpnews-origin {
    align-items: center;
    color: var(--fpnews-blue);
    display: inline-flex;
    font-size: .9rem;
    font-weight: 600;
    gap: .35rem;
    margin: auto 0 0;
    padding-top: .25rem;
}

.fpnews-sr {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.fpnews-empty {
    color: var(--fpnews-muted);
    padding: 2rem 0;
    text-align: center;
}

.fpnews-sourcelinks {
    border-top: 1px solid var(--fpnews-border);
    margin-top: 2rem;
    padding-top: 1.25rem;
}

.fpnews-sourcelinks[hidden] {
    display: none;
}

.fpnews-sourcelinks-label {
    color: var(--fpnews-muted);
    font-size: .95rem;
    margin: 0 0 .75rem;
}

.fpnews-sourcelinks ul {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fpnews-sourcelink {
    align-items: center;
    background: #fff;
    border: 2px solid var(--fpnews-c-bg);
    border-radius: 999px;
    color: var(--fpnews-text);
    display: inline-flex;
    font-weight: 600;
    gap: .5rem;
    min-height: 44px;
    padding: .4rem 1.1rem .4rem .5rem;
    text-decoration: none;
}

.fpnews-sourcelink img {
    border-radius: 50%;
    height: 26px;
    object-fit: contain;
    width: 26px;
}

.fpnews-sourcelink abbr {
    text-decoration: none;
}

.fpnews-sourcelink:hover,
.fpnews-sourcelink:focus {
    background: var(--fpnews-c-bg);
    color: var(--fpnews-c-fg);
    text-decoration: none;
}

.fpnews-sourcelink:focus-visible {
    outline: 3px solid var(--fpnews-focus);
    outline-offset: 3px;
}

.fpnews-more {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.fpnews-more[hidden] {
    display: none;
}

.fpnews-more-button {
    align-items: center;
    background: var(--fpnews-blue);
    border: 0;
    border-radius: 999px;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    gap: .5rem;
    justify-content: center;
    line-height: 1.2;
    margin: 0;
    min-height: 44px;
    padding: .6rem 1.5rem;
    text-decoration: none;
}

.fpnews-all-button::after {
    content: "\2192";
    font-size: 1.1em;
    line-height: 1;
}

.fpnews-more-button:hover,
.fpnews-more-button:focus {
    background: #1e3a8a;
    color: #fff;
    text-decoration: none;
}

.fpnews[aria-busy="true"] .fpnews-list {
    opacity: .5;
    transition: opacity .2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .fpnews-card,
    .fpnews-chip {
        transition: none;
    }

    .fpnews-card:hover {
        transform: none;
    }
}

/* Kompakte Darstellung (Startseite): nur Bild, Verband, Datum, Titel */
.fpnews-compact .fpnews-excerpt,
.fpnews-compact .fpnews-origin {
    display: none;
}

.fpnews-compact .fpnews-body {
    gap: .45rem;
    padding: .8rem 1rem 1rem;
}

.fpnews-compact .fpnews-logo {
    height: 34px;
    width: 34px;
}

.fpnews-compact .fpnews-logo img {
    height: 26px;
    width: 26px;
}

.fpnews-compact .fpnews-headline {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    font-size: 1rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    line-height: 1.35;
    overflow: hidden;
}

.fpnews-compact .fpnews-status {
    margin-bottom: 1rem;
}

.fpnews-compact .fpnews-more {
    margin-top: 1.5rem;
}

/* Wand als erster Abschnitt einer Seite (News-Seite): Abstand zum schwebenden Menü wie bei den übrigen Inhaltsseiten */
.main-content > section.fpnews:first-of-type {
    padding-top: clamp(5.5rem, 3rem + 5vw, 7.5rem);
}
