.section-title {
    font-size: 24px;
    color: #e94e77;
    margin: 20px 0;
    font-weight: bold;
}

.section-title-nothing {
    font-size: 24px;
    color: #29314f;
    margin: 20px 0;
    font-weight: bold;
}
.events-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    width: 100%;
    padding: 20px;
}

.event-card {
    background: #11101d;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1 1 calc(33% - 30px) !important; /* Drei Karten nebeneinander */
}

.event-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.event-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 15px;
}

.event-title {
    font-size: 20px;
    color: #e94e77;
    margin-bottom: 10px;
    font-weight: bold;
}

.event-description {
    font-size: 14px;
    color: #c1c1d1;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.event-read-more {
    font-size: 12px;
    color: #e94e77;
    cursor: pointer;
    text-decoration: underline;
    margin-top: 5px;
}

/* Responsives Design für verschiedene Bildschirmgrößen */
@media (max-width: 1024px) {
    .event-card {
        flex: 1 1 calc(50% - 20px) !important; /* Zwei Karten nebeneinander auf Tablets */
        margin-bottom: 20px;
        width: 280px;
    }
}

@media (max-width: 768px) {
    .event-card {
        flex: 1 1 100% !important; /* Eine Karte pro Zeile auf mobilen Geräten */
        margin-bottom: 20px;
        width: 280px;
    }

    .event-image {
        height: 200px;
        
    }

    .section-title {
        font-size: 20px;
    }

    .section-title-nothing {
        font-size: 20px;
    }

    .event-title {
        font-size: 18px;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding-top: 60px;
}

.modal-content {
    background-color: #1a1a2e;
    margin: 5% auto;
    padding: 20px;
    border: none;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.event-meta {
    font-size: 14px;
    color: #c1c1d1;
    text-align: right;
}

.event-meta p {
    margin: 0;
}

h2#modalEventTitle {
    font-size: 26px;
    margin-bottom: 0;
    color: #e94e77;
}

#modalEventDescription {
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.event-timing {
    display: flex;
    /* justify-content: flex-start; */
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.event-timing-item {
    background-color: #e94e77;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.event-timing-item:first-child {
    background-color: #5477f5;
}

.event-timing-item:last-child {
    background-color: #f44336;
}

.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #e94e77;
}

.modal-image {
    width: 100%;
    border-radius: 8px;
    display: block;        /* Block-Element */
    margin: 0 auto 30px;   /* Zentriert das Bild horizontal und fügt 30px Abstand nach unten hinzu */
}
