/* Globale Stile */

body {
    background-color: tan;
    /* überschtreibt die styyle.css */
}

/* CSS-Anpassungen für Suche und Sortierung */
.search-container {
    display: flex;
    align-items: center;
    margin-bottom: 30px; /* Mehr Abstand zwischen den Suchfeldern */
    padding-left: 10px;
}

.search-container input[type="text"] {
    width: 40%; /* Relative Breite des linken Suchfelds */
    min-width: 10em; /* Mindestbreite in em */
    max-width: 20em; /* Maximale Breite in em */
    margin-right: 2.5em; /* Abstand zwischen den Suchfeldern in em */

    box-sizing: border-box; /* Box-Modell so einstellen, dass die Breite einschließlich der Polsterung und des Rahmens berechnet wird */
}

#searchInputTags {
    width: 40%; /* Relative Breite des rechten Suchfelds */
    min-width: 10em; /* Mindestbreite in em */
    max-width: 20em; /* Maximale Breite in em */
    box-sizing: border-box; /* Box-Modell so einstellen, dass die Breite einschließlich der Polsterung und des Rahmens berechnet wird */
}

.sort-container {
    margin-left: auto;
    padding-right: 1em;
}

.event-list {
    list-style-type: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.event-list-item {
    width: calc(98% - 6px);
    box-sizing: border-box;
    padding: 0 0.1px;
    margin-bottom: 0.1px;
}

.event-list-item img {
    float: left; /* Bild nach links fließen lassen */
    width: 30%;
    margin-right: 10px; /* Abstand zwischen Bild und Text */
    margin-top: 24px; /* Etwas Abstand oberhalb des Bildes */
    border-style: solid;
    border-width: 3px;
    border-color: white;
}

.event-list-item p {
    margin-top: 0; /* Entfernt den oberen Abstand des Textes */
    vertical-align: top; /* Text soll oben neben dem Bild beginnen */
}

.event-list-item p {
    margin-top: 0; /* Kein Abstand oberhalb des Textes */
    padding-top: 1px; /* Innenabstand um den Text weiter nach oben zu rücken */
    vertical-align: top; /* Sicherstellen, dass der Text oben neben dem Bild beginnt */
}

.event-title {
    font-size: 1.2em;
    margin-bottom: 0.1em;
    color: black;
}

.event-title a {
    color: black;
    text-decoration: none; /* Entfernt den Unterstrich */
}

.event-tags {
    font-size: 0.8em;
    color: #666;
    margin-top: 0; /* Entfernt den Abstand nach oben */
    margin-bottom: -1.5em; /* Beibehaltung des Abstands nach unten */
}

.search-filter-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: -2em;
}

.filter-container,
.search-container,
.search-tags-container,
.sort-container {
    margin-right: 2em;
}

.filter-container {
    display: inline-block;
    vertical-align: top;
    height: 1.4em;
    padding: 0 0.1em;
}

.filter-container select {
    height: 100%;
}

.sort-container {
    margin-right: 0;
}

.filter-container label,
.sort-container label {
    margin-right: 0.3em;
}

/* Anpassung der Suchfeldbreite */
#searchInput,
#searchTagsInput {
    width: 12em;
}

@media (max-width: 768px) {
    .search-filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-container,
    .search-container,
    .search-tags-container {
        margin-right: 0;
        margin-bottom: 1em;
    }
    .sort-container {
        margin-left: 0;
        margin-bottom: 1em;
    }
    #searchInput,
    #searchTagsInput {
        width: auto;
        max-width: 100%;
    }
}

@media screen and (max-width: 480px) {
    video {
        max-width: 100%;
        margin: 0 20 0 20;
        padding: 0.5rem;
    }

    .search-filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-container,
    .search-container,
    .search-tags-container {
        margin-right: 0;

        margin-bottom: 1em;
    }

    #searchInput,
    #searchTagsInput {
        width: auto;
        max-width: 100%;
    }

    .search-container,
    .search-tags-container,
    .sort-container {
        margin-right: 0;
        margin-bottom: 1em;
        padding-left: 10px; /* Abstand zum linken Rand */
        padding-right: 10px; /* Optionaler Abstand zum rechten Rand */
    }

    #searchInput,
    #searchTagsInput {
        width: auto;
        max-width: 100%;
    }
}
