
.news-container {
    display: flex;
    align-items: flex-start;
    gap: 66.667px;
    align-self: stretch;
}

.news-article {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 44.444px;
    flex: 1 0 0;
}

.news-body + h3 {
    font-size: var(--font-size-20);
}

.news-body ~ .contact-container {
   flex-direction: row!important;
   gap: 40px;
}

.news-body ~ .contact-container .contact + .contact {
  margin-top: 0px;
}

.news-image-container {
    position: relative;
}

.news-image-container img {
    max-width: 100%;
    height: auto;
}

.news-content-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 17.778px;
    align-self: stretch;
}
.news-categories {
    gap: 8px;
    position: absolute;
    bottom: 0%;
    display: flex;
    flex-wrap: wrap;
    padding: 5px;
}

.news-category {
    border-radius: 38.889px;
    background: rgba(0, 0, 0, 0.53);
    backdrop-filter: blur(1.9999998807907104px);
    display: flex;
    padding: 2px 8px;
    align-items: flex-start;
}

.news-category .badge {
    font-size: 14px;
    padding: 0.5rem 0.3rem 0.4rem 0.3rem;
}

.news-list-category-item {
    border: 1px solid var(--Grey);
}

.news-list-category-item .badge {
    padding: 0.5rem 0.3rem 0.3rem 0.3rem;
}

.news-list-category-item:not(:has(.badge.sgang)) .badge {
  opacity: 0.7;
}

.news-list-category-item:has(.badge.sgang) {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    background-color: rgba(var(--RedRGB), 1)!important;
    opacity: 1!important;

}

.news-list-category-item:has(.badge.sgang) .sgang,
.news-list-category-item:has(.badge.sgang)::after {
    color: white!important;
}

.news-list-category-item:has(.badge.sgang)::after {
   content: "";
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    display: inline-block;
    transition: transform 0.2s ease;
}

.news-list-category-item:has(.badge.sgang):hover::after {
    transform: rotate(-45deg) translate(2px, 2px);
    color: var(--Red)!important;
}

.news-list-category-item:has(.badge.sgang):hover {
    background-color: white!important;
    border: 1px solid var(--Red);
}

.news-list-category-item:has(.badge.sgang):hover .sgang{
   color: var(--Red)!important;
}

.news-category .badge:focus {
    outline: 3px solid var(--Red);
    outline-offset: 2px;
}

.news-categories .news-category:nth-child(n+4) {
    display: none;
}

.categories-container .news-list-category-item {background-color: var(--Grey)!important; }
.categories-container .news-list-category-item .badge {font-size: var(--font-size-16);color: var(--Black)!important;}


.news-category-form {
    justify-self: end;
    align-self: end;
}

.news-category-select {
    background-color: var(--Grey);
    border: none;
    border-bottom: 1px solid rgba(9, 9, 9, 0.20);
    display: flex;
    padding: 14px 20px 10px 18px;
    align-items: flex-start;
    gap: 20px;
}


/* Wähle das div aus, auf das direkt ein form folgt */
.container-top div:has(+ form) h2 {
    margin-bottom: 0;
}

.news-category-form .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}


.news-category-select:focus {
    outline: 3px solid var(--Red);
    outline-offset: 2px;
}


.news-article-detail header {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.news-article-detail {
    gap: 100px;
    display: flex;
    flex-direction: column;
}


.article-author h3{
    font-size: var(--font-size-20);
}
