:root {
    --czuk-violett: #53175d;
    --czuk-rot: #c6003d;
    --czuk-text: #514e52;
    --czuk-flaeche: #fbfafb;
    --czuk-rahmen: #d9cbdc;
}

/* Einzelbeitrag: ruhige Editorial-Box mit klarer Informationshierarchie. */
.czuk-terminbox {
    position: relative;
    margin: 0 0 64px;
    border: 1px solid var(--czuk-rahmen);
    border-top: 4px solid var(--czuk-violett);
    color: var(--czuk-text);
    background: var(--czuk-flaeche);
    box-shadow: 0 10px 26px rgba(83, 23, 93, .11);
}

.czuk-terminbox__hauptdaten {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.czuk-terminbox__datum {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 138px;
    gap: 16px;
    padding: 24px 22px;
}

.czuk-terminbox__datum + .czuk-terminbox__datum {
    border-left: 1px solid #e5dde6;
}

.czuk-terminbox__inhalt {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}

.czuk-terminbox__datum strong {
    margin-bottom: 4px;
    color: var(--czuk-rot);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .035em;
}

.czuk-terminbox__inhalt > span {
    overflow-wrap: anywhere;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
}

/* Divi ergänzt in Textinhalten automatisch Zeilenumbrüche zwischen Spans. */
.czuk-terminbox__inhalt > br {
    display: none;
}

.czuk-terminbox__icon {
    display: grid;
    flex: 0 0 54px;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--czuk-violett);
    box-shadow: 0 5px 12px rgba(83, 23, 93, .18);
}

/*
 * WordPress kann durch wpautop() an den eingerückten Zeilen im Icon-Markup
 * zusätzliche <br>-Elemente erzeugen. Ohne diese Regel bilden sie im
 * Grid-Container eigene Zeilen und drücken das eigentliche Symbol nach unten.
 */
.czuk-terminbox__icon > br {
    display: none;
}

.czuk-terminbox__icon svg {
    display: block;
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.czuk-terminbox__weitere {
    padding: 15px 22px 18px;
    border-top: 1px solid #e5dde6;
    background: #f7f4f7;
}

.czuk-terminbox__weitere ul {
    margin: 6px 0 0;
    padding-left: 20px;
}

.czuk-event-label {
    display: inline-block;
    padding: 5px 10px;
    color: #fff;
    background: var(--czuk-violett);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.25;
    text-transform: uppercase;
}

.czuk-terminbox > .czuk-event-label {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 18px;
    transform: translateY(-100%);
}

/* Blogkarten: Termindaten werden zu einer eigenen, klar gerahmten Einheit. */
.et_pb_blog_grid article.category-events {
    border-color: #ddd4df;
    box-shadow: 0 9px 24px rgba(67, 44, 70, .08);
}

.czuk-event-kartenmeta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin: 12px 0 15px;
    padding: 11px 12px 11px 14px;
    border: 1px solid var(--czuk-rahmen);
    border-left: 4px solid var(--czuk-violett);
    color: var(--czuk-text);
    background: #faf8fa;
    font-size: 14px;
    line-height: 1.5;
}

.czuk-event-kartenmeta__zeit {
    font-weight: 700;
}

.czuk-event-kartenmeta__ort {
    color: #6e6870;
    font-size: 13px;
}

/* Das Eckband gehört visuell zur gesamten abgeschlossenen Karte. */
.et_pb_blog_grid article.czuk-event-ist-abgeschlossen,
body.category-events article.czuk-event-ist-abgeschlossen {
    position: relative;
    overflow: hidden;
}

.czuk-event-ist-abgeschlossen .czuk-event-label {
    position: absolute;
    z-index: 5;
    top: 20px;
    right: -42px;
    width: 166px;
    padding: 7px 0;
    transform: rotate(35deg);
    box-shadow: 0 3px 9px rgba(44, 18, 49, .22);
    text-align: center;
}

.et_pb_blog_grid article.category-events .post-meta,
body.category-events article.category-events .post-meta {
    font-size: 0;
}

.et_pb_blog_grid article.category-events .post-meta a,
body.category-events article.category-events .post-meta a {
    font-size: 14px;
}

@media (max-width: 980px) {
    .czuk-terminbox__hauptdaten {
        grid-template-columns: 1fr;
    }

    .czuk-terminbox__datum {
        min-height: 0;
        padding: 20px;
    }

    .czuk-terminbox__datum + .czuk-terminbox__datum {
        border-top: 1px solid #e5dde6;
        border-left: 0;
    }
}

@media (max-width: 480px) {
    .czuk-terminbox {
        margin-bottom: 46px;
    }

    .czuk-terminbox__datum {
        align-items: flex-start;
        gap: 14px;
        padding: 18px 16px;
    }

    .czuk-terminbox__icon {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    .czuk-terminbox__icon svg {
        width: 23px;
        height: 23px;
    }

    .czuk-event-kartenmeta {
        padding-right: 10px;
    }
}
