/* /neuigkeiten/, /funktionen/ and the product pages' "Neu in diesem Bereich"
   (neuigkeiten/*.php, funktionen/index.php, renderChangelogAreaNews()).
   Loaded only there, after styles.css; /neuigkeiten/ also loads blog.css for
   the filter chips and the RSS link. */

.changelog-hero {
    padding-bottom: clamp(2rem, 4vw, 3rem);
}

/* The list belongs to the hero's filter: no full section gap between them. */
.changelog-hero + .product-section {
    padding-top: clamp(1rem, 3vw, 2rem);
}

/* ---------------------------------------------------------------- entries */

.changelog-month + .changelog-month {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.changelog-month-title {
    margin-bottom: .5rem;
}

.changelog-roundup {
    margin: 0 0 1.25rem;
}

.changelog-entries {
    display: grid;
    gap: 1rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.changelog-entry {
    padding: 1.25rem 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    box-shadow: var(--shadow-1);
}

.changelog-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin: 0 0 .5rem;
    color: var(--ink-3);
    font-size: .875rem;
}

/* The type is a label with a coloured dot; the colour is never the only
   cue, the word is always there. */
.changelog-type {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .2rem .65rem;
    border-radius: var(--radius-pill);
    background: var(--lavender);
    color: var(--ink);
    font-weight: 600;
}

.changelog-type::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: var(--blue);
}

[data-type="neu"] .changelog-type::before { background: var(--ok); }
[data-type="verbessert"] .changelog-type::before { background: var(--blue); }
[data-type="behoben"] .changelog-type::before { background: var(--peach); }

.changelog-area {
    color: var(--ink-2);
    font-weight: 600;
}

.changelog-title {
    margin: 0 0 .35rem;
    font-size: 1.125rem;
    line-height: 1.35;
}

.changelog-text {
    margin: 0;
    color: var(--ink-2);
}

.changelog-image {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: var(--radius-s);
}

.changelog-empty {
    color: var(--ink-2);
}

.changelog-entries--compact .changelog-entry {
    padding: 1rem 1.25rem;
    box-shadow: none;
}

.changelog-entries--compact .changelog-title {
    font-size: 1rem;
}

/* ------------------------------------------------------------- funktionen */

.funktionen-area {
    scroll-margin-top: var(--header-h);
}

.funktionen-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .funktionen-grid--news {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
        align-items: start;
    }
}

.funktionen-points {
    margin: 1rem 0;
    padding-left: 1.25rem;
}

.funktionen-points li + li {
    margin-top: .4rem;
}

.funktionen-more {
    font-weight: 600;
}

.funktionen-news-title {
    margin: 0 0 .5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ink-3);
}

/* Without a news column the overview keeps a readable line length. */
.funktionen-grid:not(.funktionen-grid--news) .funktionen-what {
    max-width: 48rem;
}

/* --------------------------------------------- product pages: latest entries */

.changelog-area-news .changelog-entries {
    max-width: 48rem;
}

.changelog-area-news-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    font-weight: 600;
}
