/* Copyright LOK */
/**
 * Search Form Styles - BEM Structure
 * Block: search-form
 */

/* ========================================
   CSS VARIABLEN
   ======================================== */


/* ========================================
   RESET & BASE
   ======================================== */

* {
    box-sizing: border-box;
}

/* Body-Stile werden von layout.css übernommen – kein Override nötig */

/* ========================================
   BLOCK: search-form
   ======================================== */

.search-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: transparent;
    border-radius: var(--card-radius);
    /* box-shadow: var(--card-shadow); */
    overflow: hidden;

}

.search-form .page-intro {
    margin-bottom: 2rem;
}



/* ========================================
   ELEMENT: __header
   ======================================== */

.search-form__header {
    background-color: var(--color-primary);
    padding: 20px;
}

.search-form__title {
    margin: 0;
    font-size: var(--page-h1-size);
    font-weight: var(--page-h1-weight);
    color: var(--page-h1-color);
}


/* ========================================
   ELEMENT: __section
   ======================================== */

.search-form__section {
    padding: 22px 25px;
    background-color: var(--color-bg-white);
    /* border-left: 5px solid var(--color-border-mid); */
    border-bottom: 1px solid var(--color-border);
    border-radius: 15px 15px;
    /* margin-top: 1rem; */

}

.search-form__section:last-of-type {
    border-bottom: none;
}

/* ========================================
   ELEMENT: __oder-divider
   ======================================== */

.search-form__oder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 20px 20px;


}

.search-form__oder span {
    color: black;
    font-size: var(--font-size-sm);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ========================================
   ELEMENT: __section-title
   ======================================== */

.search-form__section-title {
    margin: 0 0 20px 0;
    font-size: var(--font-size-xl);
    font-weight: bold;
    color: var(--color-text);
    padding-bottom: 10px;
    border-bottom: 3px solid var(--color-border-dark);
}

/* ========================================
   ELEMENT: __form
   ======================================== */

.search-form__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* ========================================
   ELEMENT: __checkboxes
   ======================================== */

.search-form__checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 12px 15px;
    background-color: var(--color-bg-gray);
    border-radius: var(--card-radius);
    border: 1px solid var(--color-border);
}

.search-form__checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.search-form__checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-primary);
}

.search-form__checkbox-label {
    font-size: var(--font-size-base);
    color: var(--color-text);
    font-weight: 500;
}

/* ========================================
   ELEMENT: __label
   ======================================== */

.search-form__label {
    margin: 5px 0 5px 0;
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-mid);
}

/* ========================================
   ELEMENT: __plz-buttons
   ======================================== */

.search-form__plz-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    padding: 5px 0;
}

.search-form__plz-button {
    min-width: 50px;
    height: 50px;
    font-size: var(--font-size-2xl);
    font-weight: bold;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 2px solid var(--color-border-mid);
    border-radius: var(--card-radius);
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.search-form__plz-button:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.search-form__plz-button:active {
    transform: translateY(0);
}

/* ========================================
   ELEMENT: __field
   ======================================== */

.search-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-form__field-label {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--color-text-light);
}

/* ========================================
   ELEMENT: __select
   ======================================== */

.search-form__select {
    padding: 12px 15px;
    font-size: var(--font-size-base);
    font-family: inherit;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 2px solid var(--color-border-mid);
    border-radius: var(--card-radius);
    cursor: pointer;
    transition: border-color 0.2s;
}

.search-form__select:hover {
    border-color: var(--color-border-dark);
}

.search-form__select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

/* ========================================
   ELEMENT: __inline-fields
   ======================================== */

.search-form__inline-fields {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-form__inline-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-form__inline-label {
    font-size: var(--font-size-md);
    font-weight: 600;
    color: var(--color-text-mid);
    white-space: nowrap;
}

.search-form__separator {
    font-size: var(--font-size-md);
    font-weight: 600;
    font-style: italic;
    color: var(--color-text-lightest);
    padding: 0 5px;
}

/* ========================================
   ELEMENT: __input
   ======================================== */

.search-form__input {
    padding: 12px 15px;
    font-size: var(--font-size-base);
    font-family: inherit;
    color: var(--color-text);
    background-color: var(--color-white);
    border: 2px solid var(--color-border-mid);
    border-radius: var(--card-radius);
    transition: border-color 0.2s;
}

.search-form__input:hover {
    border-color: var(--color-border-dark);
}

.search-form__input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.search-form__input--small {
    width: 120px;
}

.search-form__input--large {
    width: 250px;
    flex: 1;
}

.search-form__input::placeholder {
    color: var(--color-text-lightest);
}

/* ========================================
   ELEMENT: __hint
   ======================================== */

.search-form__hint {
    margin: 0;
    font-size: var(--font-size-sm);
    font-style: italic;
    color: var(--color-text-lighter);
}

/* ========================================
   ELEMENT: __submit
   ======================================== */

.search-form__submit {
    padding: 12px 24px;
    font-size: var(--font-size-md);
    font-weight: bold;
    font-family: inherit;
    color: var(--color-black);
    background-color: var(--color-primary);
    border: none;
    border-radius: var(--card-radius);
    cursor: pointer;
    box-shadow: none;
    transition: background-color 0.2s, transform 0.2s;
    align-self: flex-start;
}

.search-form__submit:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.search-form__submit:active {
    transform: translateY(0);
}

/* ========================================
   ELEMENT: __footer
   ======================================== */

.search-form__footer {
    padding: 15px 25px;
}

.search-form__divider {
    border: none;
    border-top: 2px solid var(--color-primary);
    margin: 0;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .search-form {
        border-radius: 0;
    }

    .search-form__header {
        padding: 15px;
    }

    .search-form__title {
        font-size: var(--font-size-3xl);
    }


    .search-form__section {
        padding: 20px;
    }

    .search-form__section-title {
        font-size: var(--font-size-lg);
    }

    .search-form__checkboxes {
        flex-direction: column;
        gap: 12px;
    }

    .search-form__plz-buttons {
        gap: 8px;
    }

    .search-form__plz-button {
        min-width: 50px;
        height: 50px;
        font-size: var(--font-size-2xl);
    }

    .search-form__inline-fields {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form__inline-field {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form__input--small,
    .search-form__input--large {
        width: 100%;
    }

    .search-form__separator {
        text-align: center;
        padding: 5px 0;
    }

    .search-form__submit {
        width: 100%;
        align-self: stretch;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-form {
    animation: fadeIn 0.3s ease-out;
}
