.lvooe-berichte-widget {
    --lvooe-berichte-accent: #C3E7A3;

    display: flex;
    flex-direction: column;
    gap: 24px;
    scroll-margin-top: 120px;
}

/* ===== Filter ===== */

.lvooe-berichte-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 16px;
}

.lvooe-berichte-filter-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 0 1 200px;
    margin: 0;
}

.lvooe-berichte-filter-field:first-child {
    flex: 1 1 280px;
}

.lvooe-berichte-filter-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lvooe-berichte-filter input,
.lvooe-berichte-filter select {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid black;
    border-radius: 0;
    background-color: white;
    color: black;
    font-size: 16px;
}

.lvooe-berichte-filter input:focus-visible,
.lvooe-berichte-filter select:focus-visible {
    outline: 2px solid black;
    outline-offset: 2px;
}

.lvooe-berichte-filter-submit {
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 0;
    background-color: black;
    color: white;
}

/* With JavaScript, the list updates immediately and the button is not needed. */
.lvooe-berichte-js .lvooe-berichte-filter-submit {
    display: none;
}

@media (max-width: 767px) {
    .lvooe-berichte-filter-field,
    .lvooe-berichte-filter-field:first-child {
        flex: 1 1 100%;
    }
}

/* ===== Results ===== */

.lvooe-berichte-results {
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.2s;
}

.lvooe-berichte-loading .lvooe-berichte-results {
    opacity: 0.5;
}

.lvooe-berichte-count {
    margin: 0;
    font-size: 14px;
}

.lvooe-berichte-empty {
    padding: 48px 0;
    text-align: center;
}

.lvooe-berichte-reset {
    text-decoration: underline;
}

/* ===== Pagination ===== */

.lvooe-berichte-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.lvooe-berichte-page,
.lvooe-berichte-page-gap {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 8px;
}

.lvooe-berichte-widget .lvooe-berichte-page {
    border: 1px solid black;
    color: black;
}

.lvooe-berichte-widget a.lvooe-berichte-page:hover,
.lvooe-berichte-widget a.lvooe-berichte-page:focus-visible {
    background-color: var(--lvooe-berichte-accent);
    color: black;
}

.lvooe-berichte-widget .lvooe-berichte-page-current {
    background-color: black;
    color: white;
}

@media (max-width: 767px) {
    .lvooe-berichte-pagination {
        gap: 2px;
    }

    .lvooe-berichte-page,
    .lvooe-berichte-page-gap {
        min-width: 36px;
        padding: 0 4px;
    }
}
