/* 1. Globale Basis: Schriftart, Hintergrund und Haupttext-Farbe */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px; /* Basisgröße aus deinem Code */
    color: #202223; /* Entspricht deiner --text-main Variable */
    background-color: #f3f3f3; /* Entspricht deiner --bg-color Variable */
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* 2. Standard für normale Textabsätze (Paragraphen) */
p {
    color: #6d7175; /* Entspricht deiner --text-muted Variable */
    margin-top: 0;
    margin-bottom: 1rem;
}

/* 3. Globale Standards für alle Überschriften */
h1, h2, h3, h4 {
    color: #202223;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 0;
    margin-bottom: 1rem;
}

/* 4. Spezifische Größen für die Überschriften */
h1 {
    font-size: 2.25rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1rem;
}

/* Der unsichtbare Rahmen für deine Seite */
.container {
    max-width: 1200px; /* Maximale Breite des Inhalts */
    margin: 0 auto;    /* Zentriert den Container auf dem Bildschirm */
    padding: 0 24px;   /* Sorgt für seitlichen Abstand auf kleinen Bildschirmen */
    width: 100%;
    box-sizing: border-box;
}

/* Abstand zwischen den Elementen im freien Text */
.container h1 {
    margin-bottom: 24px; /* Abstand der Überschrift zum Paragraphen */
}

/* 5. Autocomplete Dropdown (angepasst an Paragraphen-Stil) */
#autocomplete-results {
    /* Erbt die Schriftart vom body, exakt wie <p> */
    font-family: inherit;
    /* Setzt die Textfarbe exakt auf die der Paragraphen */
    color: #6d7175;
    font-size: 14px;
}

/* Basis-Styling für die Liste, die von HTMX geladen wird */
#autocomplete-results ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#autocomplete-results li {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #e1e3e5;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

#autocomplete-results li:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

#autocomplete-results li:hover {
    background-color: #f9fafb;
    color: #202223; /* Wird beim Hovern minimal dunkler für besseres Feedback */
}
