.events-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.event {
    display: flex;
    flex-direction: row;
    background-color: #e8f2f9; /* Aktualisierter hellblauer Hintergrund für jede Veranstaltung */
    margin-bottom: 20px;
    align-items: flex-start;
    width: 100%;
}

.event-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    margin-right: 20px;
}

.event-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.event-info h3 {
    font-weight: bold;
    margin-top: 10px;
}

.event-info .event-date-time {
    margin-top: 5px; /* Abstand von 5px unter dem Titel */
    color: #4583cf; /* Gleiche Farbe wie der Titel */
}

.event-info .event-excerpt {
    font-size: 0.9em;
    color: #4583cf; /* Gleiche Farbe wie der Titel */
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 5px; /* Abstand zwischen dem Datum/Uhrzeit und dem Textauszug */
    padding-right: 10px; /* Abstand rechts von mindestens 10 Pixeln */
}

/* Stil für Pagination-Links */
.pagination {
    text-align: center;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    list-style: none;
}

.pagination a, .pagination span {
    color: #0056b3; /* Blaue Linkfarbe */
    background-color: #f8f9fa; /* Sehr helles Grau für den Hintergrund */
    border: 1px solid #dee2e6;
    padding: 5px 10px;
    text-decoration: none;
    margin: 0 5px;
    border-radius: 5px;
    font-size: 1em;
}

.pagination a:hover {
    background-color: #e2e6ea; /* Dunklerer Grauton bei Hover */
    color: #004495; /* Dunkleres Blau bei Hover */
}

.pagination .current {
    background-color: #007bff; /* Helle Blaufarbe für aktive Seite */
    color: #ffffff; /* Weiße Schriftfarbe für aktive Seite */
    border-color: #007bff;
}

.pagination .disabled {
    color: #6c757d; /* Grau für deaktivierte Links */
    pointer-events: none;
}

@media (max-width: 768px) {
    .events-container {
        justify-content: center;
    }

    .event {
        flex-direction: column;
        align-items: center;
    }

    .event-image {
        margin-right: 0;
        margin-bottom: 10px;
    }

    
}

