/* ============================================================
   CRC 1333 – Unified Filterbar Styling (News, Events, Publications)
   Barrierefrei, konsistent, browseruebergreifend
============================================================ */

/* Wrapper */
.crc-news-filter,
.crc-event-filter {
    margin-bottom: 2rem;
}

/* Labels */
.crc-news-filter label,
.crc-event-filter label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

/* Fieldset */
.crc-news-filter fieldset,
.crc-event-filter fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

/* Gruppen */
.crc-news-filter__group,
.crc-event-filter__group,
.crc-news-filter__actions,
.crc-event-filter__actions,
.crc-news-filter__reset,
.crc-event-filter__reset {
    display: flex;
    flex-direction: column;
}

/* Abstand */
.crc-news-filter__group,
.crc-event-filter__group {
    margin-bottom: 1rem;
}

/* ------------------------------------------------------------
   INPUTS + SELECTS – EINHEITLICHE HÖHE & STYLING
------------------------------------------------------------ */

.crc-news-filter select,
.crc-event-filter select,
.crc-news-filter input[type="search"],
.crc-event-filter input[type="search"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    width: 100%;
    border: 2px solid var(--crc-blau);
    background: #fff;
    color: #222;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;

    font-size: 1rem;
    line-height: 1.25;
    min-height: 44px; /* WCAG-konform */
    box-sizing: border-box;

    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000000' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
}

/* Hover */
.crc-news-filter select:hover,
.crc-event-filter select:hover,
.crc-news-filter input[type="search"]:hover,
.crc-event-filter input[type="search"]:hover {
    border-color: var(--crc-blau);
}

/* Fokus */
.crc-news-filter select:focus-visible,
.crc-event-filter select:focus-visible,
.crc-news-filter input[type="search"]:focus-visible,
.crc-event-filter input[type="search"]:focus-visible {
    outline: 3px solid var(--crc-blau);
    outline-offset: 2px;
}

/* ------------------------------------------------------------
   Buttons
------------------------------------------------------------ */

.crc-news-filter button,
.crc-event-filter button {
    padding: 0.55rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    text-align: center;
    min-height: 44px; /* gleiche Höhe */
}

/* Reset-Link */
.crc-news-filter__reset a,
.crc-event-filter__reset a {
    background: none;
    border: 1px solid transparent;
    padding: 0.55rem 1rem;
    color: var(--crc-blau);
    text-decoration: underline;
    border-radius: 4px;
    min-height: 44px; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.crc-news-filter__reset a:hover,
.crc-event-filter__reset a:hover {
    color: var(--crc-body);
    border-color: var(--crc-body);
}

/* Fokus */
.crc-news-filter__reset a:focus-visible,
.crc-event-filter__reset a:focus-visible {
    outline: 2px solid var(--crc-blau);
    outline-offset: 2px;
}
.crc-news-filter button:focus-visible,
.crc-event-filter button:focus-visible {
    outline: 2px solid var(--crc-blau);
    outline-offset: 2px; /* Abstand vergrößert */
}


/* ------------------------------------------------------------
   Desktop / Tablet
------------------------------------------------------------ */
@media (min-width: 768px) {
    .crc-news-filter fieldset,
    .crc-event-filter fieldset {
        display: flex;
        align-items: flex-end;
        gap: 1rem;
        flex-wrap: nowrap;
    }

    .crc-news-filter__group,
    .crc-event-filter__group,
    .crc-news-filter__actions,
    .crc-event-filter__actions,
    .crc-news-filter__reset,
    .crc-event-filter__reset {
        margin-bottom: 0;
        flex: 1 1 auto;
    }

    /* Buttons & Reset schmal halten */
    .crc-news-filter__actions,
    .crc-event-filter__actions,
    .crc-news-filter__reset,
    .crc-event-filter__reset {
        flex: 0 0 auto;
    }
}
