/**
 * Lebendige Erde – Ausgabe/Onlineartikel, Inhaltsnavigation und Anker.
 */

.oa-nav {
    position: sticky;
    top: 120px;
}

.oa-nav-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    gap: 8px;
}

.oa-nav a {
    color: var(--color-content-link);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    padding: 6px 10px;
    border-radius: 8px;
}

.oa-nav .oa-nav-list a.is-anchor-active,
.oa-nav .oa-nav-list a.is-anchor-active > i {
    font-weight: 700;
}

.oa-section {
    scroll-margin-top: 120px;
    display: none;
}

.oa-section:target {
    display: block;
}

/* Ohne URL-Hash den ersten Artikel sichtbar machen. */
.oa-content:not(:has(:target)) .oa-section:first-child {
    display: block;
}

.onlineartikel > section {
    padding-left: 0;
    padding-right: 0;
}
