.news-col {
    width: 100%;
    max-width: 64rem;
}

.news-filter {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.news-filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 1 auto;
    min-width: max-content;
}

.news-filter-group > .text-muted {
    flex: 0 0 auto;
    white-space: nowrap;
}

.news-filter-control {
    flex: 0 1 16rem;
    max-width: 16rem;
}

.news-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 16rem;
    text-align: left;
}

.news-filter-toggle::after {
    margin-left: auto;
}

.news-filter-summary {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-filter-menu {
    min-width: 16rem;
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.35rem;
}

.news-filter-menu .form-check {
    margin: 0;
    padding: 0.45rem 0.5rem 0.45rem 2rem;
    border-radius: 0.25rem;
}

.news-filter-menu .form-check:hover,
.news-filter-menu .form-check:focus-within {
    background: color-mix(in oklab, var(--accent-color), white 96%);
}

.news-filter-menu .form-check-label {
    display: block;
    cursor: pointer;
}

.news-eintrag {
    display: grid;
    grid-template-columns: minmax(5.5rem, 7rem) minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: start;
    padding-bottom: 1.25rem;
    min-width: 0;
    transition: background-color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.news-eintrag:last-child {
    padding-bottom: 0;
}

.news-eintrag.filter-treffer {
    background: color-mix(in oklab, var(--accent-color), white 96%);
    border-radius: 0.5rem;
    box-shadow: inset 3px 0 var(--accent-color);
}

.news-eintrag.filter-abgeschwaecht {
    opacity: 0.45;
}

.news-eintrag.filter-runde-ausgeblendet {
    display: none;
}

.news-rail {
    position: relative;
    padding-top: 0.25rem;
    text-align: right;
    align-self: stretch;
}

.news-rail::before {
    content: "";
    position: absolute;
    top: 0.4rem;
    bottom: -1.25rem;
    right: -0.75rem;
    width: 1px;
    background: var(--bs-border-color);
}

.news-eintrag:last-child .news-rail::before {
    bottom: 0.55rem;
}

.news-rail::after {
    content: "";
    position: absolute;
    top: 0.35rem;
    right: calc(-0.75rem - 4px);
    width: 0.8rem;
    height: 0.8rem;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 3px var(--bs-body-bg);
}

.news-datum {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.25;
}

.news-datum-tag {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    font-variant-numeric: tabular-nums;
}

.news-datum-zeit {
    font-size: 0.8rem;
    color: var(--bs-secondary-color);
    font-variant-numeric: tabular-nums;
}

.news-artikel {
    min-width: 0;
}

.news-artikel-kopf {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
    margin-bottom: 0;
}

.news-runde-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid color-mix(in oklab, var(--accent-color), white 72%);
    background: color-mix(in oklab, var(--accent-color), white 93%);
    color: color-mix(in oklab, var(--accent-color), black 25%);
}

.news-runde-badge .bi {
    font-size: 0.8rem;
}

.news-artikel-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    column-gap: 0.75rem;
    row-gap: 0.2rem;
    min-width: 0;
    margin: 0 0 0.5rem;
}

.news-begegnung-meta {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1 1 20rem;
    min-width: 0;
}

.news-begegnung-meta .news-begegnung-link {
    flex: 1 1 auto;
}

.news-artikel-meta .announcement-byline {
    flex: 0 1 auto;
    min-width: 0;
    margin: 0 0 0 auto;
    font-size: 0.8rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.news-artikel-kopf-inhalt {
    display: contents;
}

.news-artikel .announcement-title {
    text-wrap: balance;
}

.news-begegnung-link {
    font-weight: 700;
    color: var(--font-color);
    text-decoration: none;
    flex: 1 1 14rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

.news-begegnung-link:hover,
.news-begegnung-link:focus-visible {
    color: var(--accent-color);
}

.news-begegnung-link:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    border-radius: 2px;
}

.btn-theme-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    background-color: var(--accent-light);
    border: 1px solid color-mix(in oklab, var(--accent-color), white 65%);
    color: var(--accent-color);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-theme-edit:hover,
.btn-theme-edit:focus-visible {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.btn-theme-edit:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.announcement-empty {
    border: 2px dashed color-mix(in oklab, var(--accent-color), white 65%);
    background: color-mix(in oklab, var(--accent-color), white 96%);
    padding: 3rem 2rem;
    color: var(--bs-secondary-color);
}

.announcement-empty .bi {
    display: block;
    font-size: 3rem;
    color: color-mix(in oklab, var(--accent-color), black 35%);
    margin-bottom: 0.75rem;
}

.announcement-empty-title {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin: 0 0 0.35rem;
}

@media (min-width: 640px) {
    .news-artikel-kopf {
        align-items: flex-start;
        flex-wrap: nowrap;
    }

    .news-artikel-kopf-inhalt {
        display: flex;
        align-items: center;
        flex: 1 1 auto;
        flex-wrap: wrap;
        gap: 0.5rem;
        min-width: 0;
    }

    .news-artikel-kopf-inhalt > .announcement-title {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .news-artikel-kopf > .btn-theme-edit {
        flex: 0 0 auto;
        align-self: flex-start;
    }
}

@media (max-width: 639.98px) {
    .news-filter {
        justify-content: flex-start;
    }

    .news-filter-group {
        flex: 1 1 100%;
        min-width: 0;
    }

    .news-filter-control {
        flex: 1 1 auto;
        max-width: none;
    }

    .news-filter-toggle {
        max-width: none;
    }

    .news-begegnung-meta {
        flex-basis: 100%;
    }

    .news-eintrag {
        grid-template-columns: 1fr;
        column-gap: 0;
        padding-bottom: 1.5rem;
    }

    .news-eintrag.filter-treffer {
        padding-inline-start: 0.75rem;
    }

    .news-eintrag:last-child {
        padding-bottom: 0;
    }

    .news-rail {
        padding-top: 0;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .news-rail::before,
    .news-rail::after {
        display: none;
    }

    .news-datum {
        flex-direction: row;
        align-items: baseline;
        gap: 0.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-theme-edit,
    .news-eintrag {
        transition: none;
    }
}
