body.ernst-neu.ernst-home #eh-aktuelles .eh-news-carousel__controls {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: -20px 0 16px;
}

body.ernst-neu.ernst-home #eh-aktuelles .eh-news-carousel__controls[hidden] {
    display: none;
}

body.ernst-neu.ernst-home #eh-aktuelles .eh-news-carousel__controls button {
    display: grid;
    place-items: center;
    inline-size: 44px;
    block-size: 44px;
    padding: 0;
    border: 1px solid #93a286;
    border-radius: 50%;
    background: transparent;
    color: var(--eh-green, #002729);
    font: 400 23px/1 system-ui, sans-serif;
    cursor: pointer;
}

body.ernst-neu.ernst-home #eh-aktuelles .eh-news-carousel__controls button[aria-disabled="true"] {
    opacity: .44;
    cursor: default;
}

body.ernst-neu.ernst-home #eh-aktuelles .eh-news-carousel__controls button[aria-disabled="false"]:hover {
    background: var(--eh-green, #002729);
    color: white;
}

body.ernst-neu.ernst-home #eh-aktuelles .eh-news-carousel :is(button, a):focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}

body.ernst-neu.ernst-home #eh-aktuelles .eh-news-carousel__track {
    --news-gap: 30px;
    --news-columns: 3;
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--news-columns) - 1) * var(--news-gap)) / var(--news-columns));
    gap: var(--news-gap);
    overflow-x: auto;
    padding-block-end: 4px;
    scroll-snap-type: x mandatory;
}

body.ernst-neu.ernst-home #eh-aktuelles .eh-news-carousel--ready .eh-news-carousel__track {
    scrollbar-width: none;
}

body.ernst-neu.ernst-home #eh-aktuelles .eh-news-carousel__track > article {
    scroll-snap-align: start;
}

@media (max-width: 899px) {
    body.ernst-neu.ernst-home #eh-aktuelles .eh-news-carousel__track {
        --news-columns: 2;
        --news-gap: 22px;
    }
}

@media (max-width: 599px) {
    body.ernst-neu.ernst-home #eh-aktuelles .eh-news-carousel__track {
        --news-columns: 1;
        --news-gap: 18px;
    }

    body.ernst-neu.ernst-home #eh-aktuelles .eh-news-carousel__controls {
        margin-block-start: -8px;
    }
}
