/* The icon sits across the existing photo and the card body. */
#abteilungen.departments {
    background: linear-gradient(120deg, var(--deep), var(--forest) 64%, #294738);
}
@media (min-width: 760px) {
    #abteilungen.departments {
        background:
            linear-gradient(0deg, var(--deep), transparent 82%),
            linear-gradient(90deg, var(--deep) 2%, #10291fe6 40%, #10291f69 100%),
            url("/assets/waldverjuengung-forstliche-gutachten.webp") center 48% / cover no-repeat,
            var(--forest);
    }
}
#abteilungen .section-head { display: block; }
#abteilungen .section-head .eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
}
#abteilungen .section-head .eyebrow::after {
    content: "";
    width: 42px;
    border-top: 1px solid currentColor;
}
#abteilungen .section-head p {
    max-width: 76ch;
    margin: 14px 0 0;
}
#abteilungen .dept {
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: 0 10px 24px #10291f55;
    text-decoration: none;
}
#abteilungen .dept img { aspect-ratio: 4 / 3; }
#abteilungen .dept-content {
    position: relative;
    padding: 32px clamp(15px, 1.65vw, 24px) 20px;
}
#abteilungen .dept-content::before {
    content: "";
    position: absolute;
    top: 0;
    inset-inline-start: clamp(15px, 1.65vw, 24px);
    transform: translateY(-57%);
    box-sizing: border-box;
    width: 50px;
    height: 50px;
    border: 2px solid var(--paper);
    border-radius: 50%;
    box-shadow: 0 0 0 1px var(--gold);
    background: var(--forest) var(--department-icon) center / 31px 31px no-repeat;
}
#abteilungen .dept:is([href$="jagdhornblaeser.html"], [href$="/hunting-horn-players/"]) {
    --department-icon: url("/assets/fuerst-pless-horn.svg?v=4");
}
#abteilungen .dept:is([href$="jagdhundeausbildung.html"], [href$="/hunting-dog-training/"]) {
    --department-icon: url("/assets/jagdhund-pfote.svg");
}
#abteilungen .dept:is([href$="schiesswesen.html"], [href$="/shooting/"]) {
    --department-icon: url("/assets/schiesswesen-zielscheibe.svg");
}
#abteilungen .dept:is([href$="umweltbildung.html"], [href$="/environmental-education/"]) {
    --department-icon: url("/assets/umweltbildung-blatt.svg");
}
#abteilungen .dept h3 {
    font: 400 clamp(20px, 1.7vw, 27px) / 1.18 var(--serif);
    margin: 3px 0 10px;
}
#abteilungen .dept p { margin-bottom: 18px; line-height: 1.55; }
#abteilungen .dept .arrow {
    align-self: flex-start;
    justify-content: flex-start;
    width: fit-content;
    min-height: 44px;
    padding: 8px 13px;
    border: 0;
    border-radius: 0;
    background: var(--forest);
    color: var(--paper);
}
#abteilungen .dept:is(:hover, :focus-visible) .arrow {
    background: var(--deep);
    text-decoration: underline;
}
