﻿.events {
    max-width: 1300px;
    margin: 120px auto 80px auto;
    padding: 0px;
}

.events-wrapper {
    max-width: 1300px;
    margin: 0px auto;
    margin-bottom: 60px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 40px; /* Abstand zwischen Kacheln */
    justify-content: center;
    border-top:0px;
}
/* Datum horizontal anzeigen */
.events-date {
    display: block;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    /*color: #666;*/
    margin-bottom: 20px;
    margin-left: 0px;
    border: none;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    width: auto;
    height: auto;
    position: absolute;
    top: -40px;
    left: -30px;
    background-color: #fff;
    padding: 0px 50px;
    font-weight: 600;
    font-size: 14px;
    /*color: #666;*/
}

/* Datumselemente nebeneinander */
.day, .month, .year {
    display: inline-block;
}

/* Container pro Event */
.event-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    /*margin-bottom: 30px;*/
    flex-wrap: nowrap;
    /*******************************************/
    width: 500px;
    display: block;
    position: relative;
    /*******************************************/
    width: calc(50% - 20px); /* Zwei nebeneinander mit Abstand */
    position: relative;
    padding-top: 40px;
    padding-bottom: 0px;
    border:0px;
}

/* Linker Bereich: Event-Infos als Kachel */
.event-left {
    display: block;
    width: 30%;
    /* background-color: #f6f6f6; */
    padding: 16px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative; /* Wichtig, damit .events-date sich relativ dazu positionieren kann */
    padding: 30px 20px 20px 20px; /* Etwas mehr Top-Padding für den Content */
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
    text-align: left;
    background-color: #fff;
    /*******************************************/
    width: 100%;
    padding-bottom: 50px;
    /*******************************************/
    height: 200px;
}

/* Rechter Bereich: Button außerhalb */
.event-right {
    width: 30%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /*******************************************/
    width: auto;
    display: block;
    position: absolute;
    bottom: 15px;
    right: 45px;
}

/* Titel */
.event-title {
    font-size: 18px;
    font-weight: bold;
    color: var(--header-color);
    margin-bottom: 4px;
}

/* Ort */
.event-location {
    font-size: 15px;
    font-style: italic;
    color: #444;
    margin-bottom: 4px;
}

/* Beschreibung */
.event-description {
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin: 0px;
}

.event-info {
    color: black;
    /* font-family: 'Open Sans', sans-serif; */
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (max-width: 910px) {
    .events {
        flex-direction: column;
        align-items: center;
    }

        .events .event-row {
            width: 100%;
            height: auto;
        }

    .event-left {
        width: 100%;
        height: auto;
    }

    .event-right {
        /* position: static;*/
        margin-top: 15px;
        display: flex;
        /* justify-content: center;*/
    }
}
