/* autocomplete.css - Dropdown für das Typeahead im Chat-Eingabefeld */

#autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    border: 1px solid #c9d2de;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    max-height: 320px;
    overflow-y: auto;
    min-width: 300px;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 0.9rem;
}

.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #f4f7fa;
    color: #1a1a1a;
    transition: background 0.1s;
}

.autocomplete-item:last-of-type {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.aktiv {
    background: #eef2f7;
    color: #0a3d62;
}

.autocomplete-item strong {
    color: #0a3d62;
}

.autocomplete-hinweis {
    padding: 8px 14px;
    color: #888;
    font-size: 0.8rem;
    font-style: italic;
    background: #fafbfc;
    border-top: 1px solid #eef2f7;
}

/* Eingabefeld-Wrapper für Positionierung */
.chat-eingabe-wrapper {
    position: relative;
}

.chat-eingabe-wrapper input#chat-frage {
    position: relative;
    z-index: 1;
}

/* Mobile Anpassung */
@media (max-width: 600px) {
    #autocomplete-dropdown {
        min-width: 0;
        max-height: 240px;
    }
    .autocomplete-item {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
}
