.lvooe-terminkalender-widget {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.lvooe-terminkalender-month {
    width: 100%;
}

.lvooe-terminkalender-month-title {
    text-transform: capitalize;
}

.lvooe-terminkalender-no-events {
    font-size: 1em;
    color: #666;
    margin: -8px 0 0 0;
}

.lvooe-terminkalender-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));

    font-weight: bold;
    text-align: center;
    padding-bottom: 8px;
}

.lvooe-terminkalender-weeks {
    display: flex;
    flex-direction: column;
    gap: 2px;

    background-color: #e0e0e0;
    border: 2px solid #e0e0e0;
}

.lvooe-terminkalender-week {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lvooe-terminkalender-week-daynumbers {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
}

.lvooe-terminkalender-day-number-cell {
    background: white;
    padding: 2px 4px;
    min-width: 0;

    font-size: 0.85em;
    color: #666;
}

.lvooe-terminkalender-day-number-cell-empty {
    background: #e0e0e0;
}

.lvooe-terminkalender-day-number-cell-today {
    background: #f0f0f0;
    box-shadow: inset 0 0 0 2px #C3E7A3;

    font-weight: bold;
    color: #222;
}

.lvooe-terminkalender-week-events {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: minmax(100px, auto);
    gap: 2px;
    min-height: 200px;

    background-color: white;

    /* Grid gaps only create visible lines between actual items, so an empty (or partially
       filled) week would otherwise show no boundaries between its 7 day columns.
       --lvooe-today-highlight is set inline (only on the week containing today) to tint
       today's whole column; it's layered here rather than set directly as background-image
       so it doesn't replace the divider lines below it. */
    background-image:
        var(--lvooe-today-highlight, none),
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(100% / 7 - 1px),
            #e0e0e0 calc(100% / 7 - 1px),
            #e0e0e0 calc(100% / 7)
        );
}

.lvooe-terminkalender-event {
    display: block;
    min-width: 0;
    overflow: hidden;

    text-decoration: none;

    background-color: transparent;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.lvooe-terminkalender-event-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 8px;

    /* Set on this inner element rather than the <a>.lvooe-terminkalender-event itself,
       since Elementor's global link color targets anchors directly and otherwise wins. */
    color: #222;
}

.lvooe-terminkalender-event-has-image .lvooe-terminkalender-event-content {
    color: white;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 70%, rgba(0, 0, 0, 0) 100%);
}

.lvooe-terminkalender-event-content:hover,
.lvooe-terminkalender-event-has-image .lvooe-terminkalender-event-content:hover {
    color: #C3E7A3;
}

.lvooe-terminkalender-event-day-label {
    font-size: 0.7em;
    text-transform: uppercase;
    opacity: 0.8;
    margin: 0 0 2px 0;
}

.lvooe-terminkalender-event-title {
    font-size: 0.8em;
    margin: 0;
}

.lvooe-terminkalender-event-title-mobile {
    display: none;
}

.lvooe-terminkalender-event-location {
    font-size: 0.75em;
    margin: 0;
}

@media (max-width: 768px) {
    .lvooe-terminkalender-event-location {
        display: none;
    }

    .lvooe-terminkalender-event-title {
        font-size: 1em;
    }

    /* h3 picks up Elementor's global heading style (e.g. uppercase transform), which eats
       into the limited space on small screens. A plain div isn't targeted by that style. */
    .lvooe-terminkalender-event-title-desktop {
        display: none;
    }

    .lvooe-terminkalender-event-title-mobile {
        display: block;
    }
}