/* ========================================
   Veranstaltungsübersicht
======================================== */

.mek-veranstaltungen {
    margin-block: 2rem;
}

.mek-overview-title {
    margin-bottom: 1.5rem;
}

/* ========================================
   Veranstaltungsraster
======================================== */

.mek-basis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 304px), 1fr));
    gap: 24px;
}

/* ========================================
   Veranstaltungskarte
======================================== */

.mek-basis-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    border-radius: 12px;
    overflow: hidden;
}

.mek-basis-card > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

/* ========================================
   Veranstaltungsbild
======================================== */

.mek-card-image {
    display: block;
    width: 302px;
    max-width: 100%;
    margin-inline: auto;
}

.mek-card-image img {
    display: block;
    width: 302px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.mek-basis-card > a > img {
    display: block;
    width: 302px;
    max-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-inline: auto;
}

/* ========================================
   Veranstaltungsinhalt
======================================== */

.mek-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px;
    gap: 8px;
}

.mek-card-body time {
    font-weight: 600;
}


.mek-card-body h3 a {
    color: inherit;
}

.mek-card-link {
    margin-top: auto;
    padding-top: 12px;
}

/* ========================================
   Veranstaltungsadresse
======================================== */

.mek-event-address {
    font-style: normal;
    margin: 0.75em 0;
    overflow-wrap: anywhere;
}

/* ========================================
   Einzelveranstaltung
======================================== */

.mek-single {
    max-width: 900px;
    margin: 40px auto;
    padding: 24px;
    box-sizing: border-box;
}

/* ========================================
   Monatsgruppen
======================================== */

.mek-month-group + .mek-month-group {
    margin-top: 2.5rem;
}

.mek-month-title {
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #ddd;
}

/* ========================================
   Individuelle Monatsübersicht
======================================== */

.post-box > .postblog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 304px), 1fr));
    gap: 24px;
}

.post-box > .monat {
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #ddd;
}

.post-box > .postblog + .monat {
    margin-top: 2.5rem;
}

/* ========================================
   Individuelle Veranstaltungskarten
======================================== */

.mek-basis-grid > .box,
.post-box > .postblog > .box {
    min-width: 0;
}

.mek-basis-grid > .box > a,
.post-box > .postblog > .box > a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.mek-basis-grid > .box figure,
.post-box > .postblog > .box figure {
    width: 302px;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
}

.mek-basis-grid > .box figure img,
.post-box > .postblog > .box figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.mek-basis-grid > .box .event-info,
.post-box > .postblog > .box .event-info,
.mek-basis-grid > .box .box-content,
.post-box > .postblog > .box .box-content {
    padding: 12px 0;
}
