.category-menu-list {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1rem;
}
.category-menu-list-item {
    background-color: #ffffff;
    position: relative;
}
.category-menu:not(.selected) .category-menu-list-item-link,
.category-menu.selected .category-menu-list-item {
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr;
}
.category-menu:not(.selected) .category-menu-list-item-link {
    grid-template-rows: 10rem auto;
}
.category-menu-list-item-link:focus {
    outline-color: var(--color-primary-1);
}
.category-menu.selected .category-menu-list-item-link::after {
    content: '';
    inset: 0;
    position: absolute;
    width: 100%;
    height: 80%;
    display: inline;
}
.category-menu.selected .category-menu-list-item {
    grid-template-rows: auto;
}
.category-menu-list-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.category-menu-list-item a:focus .category-menu-list-item-content-desc-title,
.category-menu-list-item a:hover .category-menu-list-item-content-desc-title {
    color: var(--color-primary-1);
}
.category-menu-list-item-content-desc-title svg {
    vertical-align: middle;
    stroke: var(--color-primary-1);
    stroke-width: 0;
    fill: transparent;
}
.category-menu-list-teaser-img {
    display: block;
    object-fit: cover;
}
.category-menu-list-teaser {
    width: 100%;
    display: block;
}
.category-menu-list-item-content,
.category-menu.selected .category-menu-list-item-content {
    width: 100%;
    padding: 1.5rem 0.5rem;
    position: relative;
}
.category-menu-list-item-content-label {
    width: fit-content;
    margin: 0;
    padding: 0.25rem 1rem;
    background-color: var(--color-primary-2);
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    white-space: nowrap;
    text-align: center;
    text-transform: uppercase;
    color: #ffffff;
    font-weight: 400;
    font-size: var(--font-size-14);
    font-family: var(--secondary-font-family);
}
.category-menu-list-item-content-desc-title {
    hyphens: auto;
    -ms-hyphenate-limit-lines: 2;
    -webkit-hyphenate-limit-lines: 2;
    hyphenate-limit-lines: 2;
    font-size: var(--font-size-28);
    font-weight: 500;
    margin: 1rem 0;
}
.category-menu-list-item-content-desc p {
    margin-bottom: 0;
    font-size: var(--font-size-14);
}
.category-menu.selected .news-item-tags {
    bottom: 0;
    padding: 0 0 1.5rem 0;
    position: relative;
    margin: 0 0.5rem;
}

/* Especially for Mobile */

@container (max-width: 503px) {
    .category-menu-list-item-content-desc-title {
        font-weight: 700;
        font-size: var(--font-size-18);
        margin: 0.5rem 0;
    }
    .category-menu-list-teaser
        ~ .category-menu-list-item-content
        .category-menu-list-item-content-desc-title {
        margin-top: 0;
    }
    .category-menu-list-item-content {
        position: static;
        padding: 0.5rem;
    }
    .category-menu-list-teaser-img {
        height: 150px;
    }
    .category-menu-list-item-content-desc-title svg {
        vertical-align: text-bottom;
    }
    .category-menu:not(.selected) .category-menu-list-item-link,
    .category-menu.selected .category-menu-list-item {
        grid-template-rows: auto;
    }
    .category-menu-list {
        grid-template-columns: 1fr;
        grid-gap: 1rem;
    }
    .category-menu-list-item-content-desc p {
        line-height: 1.2;
        font-family: var(--secondary-font-family);
        font-weight: 600;
    }
}
@container (min-width: 684px) {
    .category-menu-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .category-menu.selected
        .category-menu-list-item:nth-child(odd)
        .news-item-tags {
        right: 0;
        width: 50%;
    }
    .category-menu.selected h3 {
        margin: 1rem 0;
    }
    .category-menu:not(.selected)
        .category-menu-list-item:last-child:nth-child(odd)
        .category-menu-list-item-link {
        grid-template-columns: 1fr 1fr;
    }
    .category-menu:not(.selected).category-menu-list-item:last-child:nth-child(
            odd
        )
        .category-menu-list-item-link {
        grid-template-columns: 1fr 1fr;
    }
    .category-menu.selected .category-menu-list-item:last-child:nth-child(odd) {
        grid-template-rows: auto auto;
    }
    .category-menu-list-item:last-child:nth-child(odd) img {
        object-fit: cover;
    }
    .category-menu-list-item:last-of-type:nth-child(odd)
        .category-menu-list-teaser-img,
    .category-menu.selected
        .category-menu-list-item:last-of-type:nth-child(odd)
        .category-menu-list-teaser-img {
        height: 100%;
    }
    .category-menu.selected .category-menu-list-item-content {
        padding: 1.5rem;
    }
}
@container (max-width: 935px) {
    .category-menu.selected .category-menu-list-item-content {
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        align-items: flex-end;
    }
    .category-menu.selected .category-menu-list {
        grid-template-columns: 1fr;
        grid-gap: 1rem;
    }
}

/* Especially for Desktop */

@container (min-width: 504px) {
    .category-menu.selected
        .category-menu-list-item:not(:last-of-type):nth-child(odd),
    .category-menu.selected .category-menu-list-item:nth-child(even) {
        grid-template-columns: 1fr 1fr;
    }
    .category-menu.selected
        .category-menu-list-item:not(:last-of-type):nth-child(odd)
        .news-item-tags {
        right: 0;
        width: 50%;
    }
    .category-menu.selected
        .category-menu-list-item:nth-child(even)
        .news-item-tags {
        width: 50%;
    }
    .category-menu.selected .news-item-tags {
        position: relative;
        grid-column-end: 3;
        grid-column-start: 1;
        width: 100%;
        margin: 1.5rem 0.5rem 0 0.5rem;
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
    .category-menu.selected .category-menu-list-item:nth-child(even) picture {
        order: 1;
    }
    .category-menu.selected .category-menu-list-teaser-img {
        object-fit: cover;
    }
    .category-menu-list-item-content,
    .category-menu.selected .category-menu-list-item-content {
        padding: 1.5rem;
    }
}
@container (min-width: 684px) {
    .category-menu.selected
        .category-menu-list-item:not(:last-of-type):nth-child(odd) {
        grid-template-columns: 2fr 3fr;
    }
    .category-menu.selected .category-menu-list-item:nth-child(even) {
        grid-template-columns: 3fr 2fr;
    }
    .category-menu.selected
        .category-menu-list-item:not(:last-of-type):nth-child(odd)
        .news-item-tags,
    .category-menu.selected
        .category-menu-list-item:nth-child(even)
        .news-item-tags {
        width: 60%;
    }
}
@container (min-width: 936px) {
    .category-menu.selected
        .category-menu-list-item:not(:last-of-type):nth-child(odd)
        .news-item-tags {
        width: 60%;
    }
    .category-menu.selected
        .category-menu-list-item:nth-child(even)
        .news-item-tags {
        width: 60%;
    }
    .category-menu.selected
        .category-menu-list-item:last-of-type:nth-child(odd)
        .category-menu-list-teaser-img {
        height: 100%;
    }
    .category-menu.selected
        .category-menu-list-item:last-of-type:nth-child(odd)
        picture {
        grid-row-end: 3;
        grid-row-start: 1;
    }
    .category-menu.selected
        .category-menu-list-item:last-of-type:nth-child(odd) {
        grid-template-rows: 1fr auto;
    }
    .category-menu.selected
        .category-menu-list-item:last-of-type:nth-child(odd)
        .news-item-tags {
        grid-column-start: 2;
    }
    .category-menu:not(.selected)
        .category-menu-list-item:last-of-type:nth-child(odd)
        .category-menu-list-item-link {
        grid-template-rows: 20rem auto;
    }
    .category-menu:not(.selected) .category-menu-list-item-link {
        grid-template-rows: 15rem auto;
    }
}
