/* ==========================================================================
   EasyAutocomplete Custom Standalone Fix
   ========================================================================== */

/* 1. Die Haupt-Wrapper-Box des Plugins */
.easy-autocomplete.eac-skw {
    position: relative;
    display: block;
    /* Nutze bei Bedarf width: 100% !important; statt der festen 754px */
}

/* 2. Der Container, der die Liste umschließt */
#eac-container-schoolResults {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 9999;
    width: 100%;
    margin-top: 1px;
    background-color: #ffffff;
    border: 1px solid #cccccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
}

/* 3. Die UL-Liste (Bulletpoints entfernen & Reset) */
#eac-container-schoolResults ul {
    list-style-type: none !important; /* Entfernt die Standard-Punkte radikal */
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 300px; /* Begrenzt die Liste, falls es zu viele Schulen sind */
    overflow-y: auto;  /* Erlaubt Scrollen innerhalb der Liste */
}

/* 4. Die einzelnen Zeilen (Schulen) */
#eac-container-schoolResults ul li {
    padding: 10px 15px;
    margin: 0;
    cursor: pointer;
    border-bottom: 1px solid #eeeeee;
    background-color: #ffffff;
    font-family: sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #333333;
    transition: background-color 0.1s ease;
}

/* Letzten Rahmen unten entfernen */
#eac-container-schoolResults ul li:last-child {
    border-bottom: none;
}

/* 5. HOVER und AKTIVE AUSWAHL (.selected) */
#eac-container-schoolResults ul li:hover,
#eac-container-schoolResults ul li.selected {
    background-color: #007bff !important; /* Ein schönes Standard-Blau */
    color: #ffffff !important;
}

/* Textfarbe im Hover/Selected-Zustand für Kind-Elemente anpassen */
#eac-container-schoolResults ul li:hover .eac-item,
#eac-container-schoolResults ul li.selected .eac-item,
#eac-container-schoolResults ul li:hover .eac-item b,
#eac-container-schoolResults ul li.selected .eac-item b {
    color: #ffffff !important;
}

/* 6. Styling für den fettgedruckten, gematchten Text (z.B. "Grun") */
.eac-item b {
    color: #007bff; /* Hebt den passenden Suchbegriff blau hervor */
    font-weight: 700;
}