/* EXT:news list view: responsive cards, limited to three columns. */
.news-list {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .news-list-kachel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .news-list-kachel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.news-list-kachel .news-kachel-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgb(0 0 0 / 8%);
    border-radius: 1rem;
    background: var(--surface, #fff);
    box-shadow: 0 0.75rem 1.75rem rgb(0 0 0 / 8%);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-list-kachel .news-kachel-item:hover {
    transform: translateY(-0.2rem);
    box-shadow: 0 1rem 2rem rgb(0 0 0 / 12%);
}

.news-kachel-media {
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.news-kachel-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.news-kachel-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 0.75rem;
    padding-inline: 1rem;
    padding-bottom: 1rem;
}

.news-kachel-badge {
    display: inline-flex;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #c11718;
    color: #fff;
    font-size: 0.85rem;
    text-decoration: none;
}

.news-kachel-title {
    display: -webkit-box;
    min-height: calc(1.25rem * 2);
    overflow: hidden;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-kachel-teaser {
    margin: 0;
    color: inherit;
    font-size: 1rem;
    font-weight: 400;
}

.news-kachel-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
}

.news-kachel-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.news-kachel-date {
    color: rgb(0 0 0 / 55%);
    font-size: 0.9rem;
}

@media (prefers-reduced-motion: reduce) {
    .news-list-kachel .news-kachel-item {
        transition: none;
    }
}
