.search-bar {
    background: var(--color-black);
    color: var(--color-white);
}
.search-bar__form {
    display: flex; align-items: center; gap: 24px;
    padding: 23.5px 0;
    flex-wrap: wrap;
}
.search-bar__label {
    font-family: var(--font-heading); font-size: 24px; line-height: 32px; font-weight: 600;
    color: var(--color-white);
}
.search-bar__field {
    position: relative; height: 56px;
    display: inline-flex; align-items: center;
    background: rgba(243, 243, 242, 0.08);
    border: 2px solid var(--color-white);
    border-radius: 6px;
    padding: 0 24px;
    width: 397px;
}
.search-bar__field--wide { flex: 1 1 320px; min-width: 320px; }
.search-bar__select,
.search-bar__input {
    appearance: none;
    -webkit-appearance: none;
    background-color: transparent;
    border: 0;
    color: var(--color-white);
    font-family: var(--font-body); font-size: 18px; line-height: 26px; font-weight: 500;
    width: 100%;
    padding-right: 30px;
    outline: none;
    cursor: pointer;
}
.search-bar__select {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}
.search-bar__select option { color: var(--color-white); background-color: var(--color-black-soft); padding: 10px 16px; }
.search-bar__select option:checked,
.search-bar__select option:hover { color: var(--color-white); background-color: var(--color-blue); }
.search-bar__input::placeholder { color: var(--color-white); opacity: 0.85; }
.search-bar__submit {
    margin-left: auto;
    height: 56px;
    font-size: 18px;
}

@media (max-width: 767px) {
    .search-bar__form {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px 0;
    }
    .search-bar__label { width: 100%; font-size: 20px; line-height: 28px; }
    .search-bar__field,
    .search-bar__field--wide { width: 100%; min-width: 0; }
    .search-bar__submit { width: 100%; margin-left: 0; }
}

/* Custom dropdown (replaces the native select popup) */
.cs__native { display: none; }
.cs__trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; height: 100%; padding: 0; border: 0; background: transparent;
    color: var(--color-white);
    font-family: var(--font-body); font-size: 18px; line-height: 26px; font-weight: 500;
    cursor: pointer; text-align: left;
}
.cs__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Subject dropdown before an Abschluss is chosen (cascade). */
.cs--disabled { opacity: 0.5; }
.cs--disabled .cs__trigger { cursor: not-allowed; }
.cs__chevron {
    width: 9px; height: 9px; flex-shrink: 0; margin-top: -3px;
    border-right: 2px solid var(--color-white); border-bottom: 2px solid var(--color-white);
    transform: rotate(45deg); transition: transform .2s ease;
}
.cs--open .cs__chevron { transform: rotate(-135deg); margin-top: 3px; }
.cs__panel {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0; z-index: 40;
    margin: 0; padding: 8px; list-style: none;
    background: var(--color-black-soft); border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
    max-height: 340px; overflow-y: auto;
}
.cs__option {
    padding: 11px 16px; border-radius: 8px; cursor: pointer;
    color: var(--color-grey); font-size: 17px; line-height: 24px;
    transition: background-color .15s ease, color .15s ease;
}
.cs__option:hover,
.cs__option[aria-selected="true"] { background: var(--color-blue); color: var(--color-white); }
