.nmw-termine {
    --nmw-termine-card: #b30000;
    --nmw-termine-card-dark: #b30000;
    --nmw-termine-heading: #005b45;

    display: block;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    color: #fff;
    font-family: "Segoe UI", Arial, sans-serif;
}

.nmw-termine,
.nmw-termine * {
    box-sizing: border-box;
}

.nmw-termine-month {
    display: block;
    min-width: 0;
}

.nmw-termine-month + .nmw-termine-month {
    margin-top: 26px;
}

.nmw-termine-month-heading {
    display: flex;
    margin: 0 0 12px;
    align-items: center;
    color: var(--nmw-termine-heading);
    font-family: inherit;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.nmw-termine-grid {
    display: grid;
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
    gap: 16px;
    align-items: stretch;
}

.nmw-termine-item {
    position: relative;
    display: flex;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 9px;
    background: var(--nmw-termine-card);
    box-shadow: 0 8px 22px rgba(59, 17, 19, .15);
    color: #fff;
    cursor: pointer;
    isolation: isolate;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.nmw-termine-item.nmw-termine-reveal-ready {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity .58s cubic-bezier(.22, 1, .36, 1),
        transform .58s cubic-bezier(.22, 1, .36, 1),
        box-shadow .2s ease;
}

.nmw-termine-item.nmw-termine-reveal-ready.nmw-termine-revealed {
    opacity: 1;
    transform: translateY(0);
}

.nmw-termine-item.nmw-termine-reveal-ready.nmw-termine-revealed:hover {
    transform: translateY(-3px);
    transition-duration: .2s;
}

.nmw-termine-item:hover {
    box-shadow: 0 12px 28px rgba(59, 17, 19, .22);
    transform: translateY(-3px);
}

.nmw-termine-item:focus-visible {
    outline: 3px solid rgba(0, 91, 69, .28);
    outline-offset: 3px;
}

.nmw-termine-image {
    position: relative;
    width: 100%;
    aspect-ratio: 2.65 / 1;
    overflow: hidden;
    flex: 0 0 auto;
    background: #005b45;
}

.nmw-termine-image img {
    position: static !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: 50% 50% !important;
}

.nmw-termine-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: rgba(255, 255, 255, .74);
    font-size: 48px;
}

.nmw-termine-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    min-height: 148px;
    padding: 15px 18px 16px;
    flex: 1 1 auto;
    flex-direction: column;
    background: var(--nmw-termine-card);
}

.nmw-termine-schedule {
    display: block;
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-style: normal;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.nmw-termine-title-location {
    display: block;
    min-width: 0;
    margin-top: 7px;
    color: #fff;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.nmw-termine-title,
.nmw-termine-location,
.nmw-termine-title-location-separator {
    color: inherit;
    font: inherit;
}

.nmw-termine-title-location-separator {
    padding: 0 .18em;
}

.nmw-termine-divider {
    width: 100%;
    height: 1px;
    margin: auto 0 10px;
    padding-top: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .48);
}

.nmw-termine-footer {
    display: flex;
    min-width: 0;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.nmw-termine-price {
    display: block;
    min-width: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.nmw-termine-action {
    display: inline-flex;
    min-height: 40px;
    padding: 9px 17px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 4px;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 3px 9px rgba(79, 7, 11, .11);
    color: var(--nmw-termine-card-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .02em;
    text-transform: uppercase;
    pointer-events: none;
}

.nmw-termine-action > span {
    font-size: 15px;
    line-height: 1;
}

.nmw-termine-empty {
    margin: 0;
    padding: 18px 20px;
    border: 1px solid #dce9e4;
    border-radius: 10px;
    background: #f2f7f5;
    color: #005b45;
    font-family: "Segoe UI", Arial, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
    .nmw-termine-item {
        transition: none;
    }

    .nmw-termine-item:hover {
        transform: none;
    }
}
