.theaterkit-calendar {
    --tk-calendar-accent: #9f2430;
    --tk-calendar-accent-dark: #741a23;
    --tk-calendar-ink: #1f1d1b;
    --tk-calendar-muted: #68635e;
    --tk-calendar-line: #dedad5;
    --tk-calendar-surface: #fff;
    --tk-calendar-soft: #f5f2ee;
    color: var(--tk-calendar-ink);
    font: inherit;
    margin-block: 1.5rem;
}

.theaterkit-calendar *,
.theaterkit-calendar *::before,
.theaterkit-calendar *::after {
    box-sizing: border-box;
}

.theaterkit-calendar .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    white-space: nowrap;
    width: 1px;
}

.theaterkit-calendar__title {
    margin: 0 0 1.25rem;
}

.theaterkit-calendar__notice,
.theaterkit-calendar__empty {
    background: var(--tk-calendar-soft);
    border-left: 4px solid var(--tk-calendar-accent);
    margin: 0;
    padding: 1rem 1.125rem;
}

.theaterkit-calendar__switch {
    align-items: center;
    background: var(--tk-calendar-soft);
    border-radius: 999px;
    display: inline-flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
}

.theaterkit-calendar__switch-button {
    appearance: none;
    background: transparent;
    border: 0;
    border-radius: 999px;
    color: var(--tk-calendar-ink);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.65rem 1.1rem;
}

.theaterkit-calendar__switch-button:hover,
.theaterkit-calendar__switch-button:focus-visible {
    color: var(--tk-calendar-accent-dark);
}

.theaterkit-calendar__switch-button.is-active {
    background: var(--tk-calendar-accent);
    color: #fff;
}

.theaterkit-calendar__switch-button:focus-visible,
.theaterkit-month-calendar__nav:focus-visible,
.theaterkit-event__button:focus-visible,
.theaterkit-month-calendar__event:focus-visible {
    outline: 3px solid var(--tk-calendar-accent);
    outline: 3px solid color-mix(in srgb, var(--tk-calendar-accent), transparent 55%);
    outline-offset: 2px;
}

.theaterkit-calendar__view.is-hidden {
    display: none;
}

.theaterkit-calendar__month-group + .theaterkit-calendar__month-group {
    margin-top: 2.5rem;
}

.theaterkit-calendar__month-title {
    border-bottom: 2px solid var(--tk-calendar-accent);
    color: var(--tk-calendar-ink);
    font-size: clamp(1.25rem, 1rem + 0.7vw, 1.75rem);
    margin: 0 0 0.8rem;
    padding-bottom: 0.45rem;
}

.theaterkit-calendar__events {
    display: grid;
    gap: 0;
}

.theaterkit-event {
    align-items: stretch;
    background: var(--tk-calendar-surface);
    border-bottom: 1px solid var(--tk-calendar-line);
    display: grid;
    gap: 1.1rem;
    grid-template-columns: 4.5rem minmax(8rem, 11rem) minmax(0, 1fr) auto;
    padding: 1rem 0;
}

.theaterkit-event__date {
    align-items: center;
    align-self: center;
    color: var(--tk-calendar-accent-dark);
    display: flex;
    flex-direction: column;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    text-align: center;
}

.theaterkit-event__weekday,
.theaterkit-event__month {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.theaterkit-event__day {
    font-size: 2rem;
    font-weight: 800;
    margin: 0.15rem 0;
}

.theaterkit-event__image-wrap {
    aspect-ratio: 16 / 10;
    background: var(--tk-calendar-soft);
    border-radius: 0.45rem;
    min-height: 6.5rem;
    overflow: hidden;
}

.theaterkit-event__image {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.theaterkit-event__body {
    align-self: center;
    min-width: 0;
}

.theaterkit-event__artist,
.theaterkit-event__title,
.theaterkit-event__meta,
.theaterkit-event__description,
.theaterkit-event__admission {
    margin: 0;
}

.theaterkit-event__artist {
    color: var(--tk-calendar-accent-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.theaterkit-event__title {
    color: var(--tk-calendar-ink);
    font-size: clamp(1.1rem, 1rem + 0.35vw, 1.4rem);
    line-height: 1.2;
}

.theaterkit-event__title a {
    color: inherit;
    text-decoration: none;
}

.theaterkit-event__title a:hover {
    color: var(--tk-calendar-accent);
}

.theaterkit-event__meta {
    color: var(--tk-calendar-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 0.88rem;
    gap: 0.25rem 0.9rem;
    margin-top: 0.4rem;
}

.theaterkit-event__meta span:not(:last-child)::after {
    content: "·";
    margin-left: 0.9rem;
}

.theaterkit-event__description {
    color: var(--tk-calendar-muted);
    display: -webkit-box;
    font-size: 0.92rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.45;
    margin-top: 0.65rem;
    overflow: hidden;
}

.theaterkit-event__admission {
    color: var(--tk-calendar-ink);
    font-size: 0.86rem;
    font-weight: 700;
    margin-top: 0.55rem;
}

.theaterkit-event__action {
    align-self: center;
}

.theaterkit-event__button {
    background: var(--tk-calendar-accent);
    border: 2px solid var(--tk-calendar-accent);
    border-radius: 0.35rem;
    color: #fff;
    display: inline-block;
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.2;
    padding: 0.7rem 0.9rem;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.theaterkit-event__button:hover {
    background: var(--tk-calendar-accent-dark);
    border-color: var(--tk-calendar-accent-dark);
    color: #fff;
}

.theaterkit-month-calendar {
    border: 1px solid var(--tk-calendar-line);
    border-radius: 0.65rem;
    overflow: hidden;
}

.theaterkit-month-calendar__navigation {
    align-items: center;
    background: var(--tk-calendar-ink);
    color: #fff;
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr) 3rem;
    min-height: 4rem;
}

.theaterkit-month-calendar__title {
    color: inherit;
    font-size: clamp(1.1rem, 1rem + 0.45vw, 1.45rem);
    margin: 0;
    text-align: center;
}

.theaterkit-month-calendar__nav {
    appearance: none;
    align-self: stretch;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 1.5rem;
}

.theaterkit-month-calendar__nav:hover {
    background: rgba(255, 255, 255, 0.12);
}

.theaterkit-month-calendar__weekdays,
.theaterkit-month-calendar__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.theaterkit-month-calendar__weekdays {
    background: var(--tk-calendar-soft);
    border-bottom: 1px solid var(--tk-calendar-line);
    color: var(--tk-calendar-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: center;
    text-transform: uppercase;
}

.theaterkit-month-calendar__weekdays span {
    padding: 0.65rem 0.25rem;
}

.theaterkit-month-calendar__day {
    background: var(--tk-calendar-surface);
    border-bottom: 1px solid var(--tk-calendar-line);
    border-right: 1px solid var(--tk-calendar-line);
    min-height: 8.75rem;
    padding: 0.45rem;
}

.theaterkit-month-calendar__day:nth-child(7n) {
    border-right: 0;
}

.theaterkit-month-calendar__day.is-empty {
    background: var(--tk-calendar-soft);
}

.theaterkit-month-calendar__date {
    align-items: center;
    display: inline-flex;
    font-size: 0.86rem;
    font-variant-numeric: tabular-nums;
    font-weight: 800;
    height: 1.75rem;
    justify-content: center;
    margin-bottom: 0.3rem;
    width: 1.75rem;
}

.theaterkit-month-calendar__day.is-today .theaterkit-month-calendar__date {
    background: var(--tk-calendar-accent);
    border-radius: 50%;
    color: #fff;
}

.theaterkit-month-calendar__event {
    background: #f6e9eb;
    background: color-mix(in srgb, var(--tk-calendar-accent), white 88%);
    border-left: 3px solid var(--tk-calendar-accent);
    border-radius: 0.2rem;
    color: var(--tk-calendar-ink);
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.3rem;
    overflow-wrap: anywhere;
    padding: 0.35rem 0.4rem;
    text-decoration: none;
}

.theaterkit-month-calendar__event:hover {
    background: #edd2d6;
    background: color-mix(in srgb, var(--tk-calendar-accent), white 78%);
    color: var(--tk-calendar-accent-dark);
}

.theaterkit-month-calendar__event-time {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .theaterkit-event {
        grid-template-columns: 4rem minmax(7rem, 9rem) minmax(0, 1fr);
    }

    .theaterkit-event__action {
        grid-column: 3;
    }
}

@media (max-width: 680px) {
    .theaterkit-event {
        gap: 0.8rem;
        grid-template-columns: 3.5rem minmax(0, 1fr);
    }

    .theaterkit-event__date {
        grid-row: 1 / span 2;
    }

    .theaterkit-event__image-wrap {
        display: none;
    }

    .theaterkit-event__body,
    .theaterkit-event__action {
        grid-column: 2;
    }

    .theaterkit-event__action {
        justify-self: start;
    }

    .theaterkit-event__meta span {
        width: 100%;
    }

    .theaterkit-event__meta span::after {
        display: none;
    }

    .theaterkit-month-calendar__weekdays {
        display: none;
    }

    .theaterkit-month-calendar__grid {
        display: block;
    }

    .theaterkit-month-calendar__day,
    .theaterkit-month-calendar__day:nth-child(7n) {
        border: 0;
        border-bottom: 1px solid var(--tk-calendar-line);
        min-height: 0;
        padding: 0.7rem;
    }

    .theaterkit-month-calendar__day.is-empty,
    .theaterkit-month-calendar__day:not(.has-events) {
        display: none;
    }

    .theaterkit-month-calendar__date {
        display: block;
        height: auto;
        margin: 0 0 0.5rem;
        width: auto;
    }

    .theaterkit-month-calendar__date > span[aria-hidden="true"] {
        display: none;
    }

    .theaterkit-month-calendar__date .screen-reader-text {
        clip: auto;
        clip-path: none;
        display: inline;
        height: auto;
        margin: 0;
        overflow: visible;
        padding: 0;
        position: static !important;
        width: auto;
    }

    .theaterkit-month-calendar__day.is-today .theaterkit-month-calendar__date {
        background: transparent;
        color: var(--tk-calendar-accent-dark);
    }

    .theaterkit-month-calendar__event {
        font-size: 0.86rem;
        padding: 0.5rem 0.6rem;
    }
}

/* Public room occupancy calendar (1.4). */
.theaterkit-occupancy__legend {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: flex-end;
    margin: 0 0 0.85rem;
}

.theaterkit-occupancy__legend span {
    align-items: center;
    color: var(--tk-calendar-muted);
    display: inline-flex;
    font-size: 0.75rem;
    font-weight: 750;
    gap: 0.42rem;
}

.theaterkit-occupancy__legend i {
    background: #e6f5ef;
    border: 1px solid #a9d7c5;
    border-radius: 50%;
    height: 0.7rem;
    width: 0.7rem;
}

.theaterkit-occupancy__legend .is-reserved i {
    background: #fff2c9;
    border-color: #dfc467;
}

.theaterkit-occupancy__legend .is-busy i {
    background: #f8deda;
    border-color: #d99089;
}

.theaterkit-occupancy__calendar {
    background: #fff;
    border: 1px solid var(--tk-calendar-line);
    border-radius: 1rem;
    box-shadow: var(--tk-calendar-shadow);
    overflow: hidden;
}

.theaterkit-occupancy__navigation {
    align-items: center;
    border-bottom: 1px solid var(--tk-calendar-line);
    display: grid;
    gap: 0.45rem;
    grid-template-columns: 3rem minmax(0, 1fr) auto 3rem;
    min-height: 4.6rem;
    padding: 0.65rem 0.8rem;
}

.theaterkit-occupancy__title {
    color: var(--tk-calendar-ink);
    font-size: clamp(1.2rem, 1rem + 0.7vw, 1.7rem);
    letter-spacing: -0.035em;
    margin: 0;
}

.theaterkit-occupancy__nav,
.theaterkit-occupancy__today {
    appearance: none;
    background: var(--tk-calendar-soft);
    border: 1px solid var(--tk-calendar-line);
    color: var(--tk-calendar-ink);
    cursor: pointer;
    font: inherit;
}

.theaterkit-occupancy__nav {
    border-radius: 50%;
    font-size: 1.35rem;
    height: 2.75rem;
    transition: background 160ms ease, color 160ms ease;
    width: 2.75rem;
}

.theaterkit-occupancy__nav:hover:not(:disabled) {
    background: var(--tk-calendar-ink);
    color: #fff;
}

.theaterkit-occupancy__nav:disabled {
    cursor: not-allowed;
    opacity: 0.32;
}

.theaterkit-occupancy__today {
    background: #fff;
    border-radius: 999px;
    color: var(--tk-calendar-accent-dark);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.55rem 0.85rem;
}

.theaterkit-occupancy__today:hover {
    background: #f7e9ec;
}

.theaterkit-occupancy__weekdays,
.theaterkit-occupancy__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.theaterkit-occupancy__weekdays {
    border-bottom: 1px solid var(--tk-calendar-line);
    color: #95898c;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.theaterkit-occupancy__weekdays span {
    padding: 0.85rem 0.25rem;
}

.theaterkit-occupancy__day {
    background: #fff;
    border-bottom: 1px solid var(--tk-calendar-line);
    border-right: 1px solid var(--tk-calendar-line);
    min-height: 9.5rem;
    padding: 0.55rem;
}

.theaterkit-occupancy__day:nth-child(7n) {
    border-right: 0;
}

.theaterkit-occupancy__day:nth-child(7n + 6),
.theaterkit-occupancy__day:nth-child(7n) {
    background: #fcf9fa;
}

.theaterkit-occupancy__day.is-empty {
    background: #faf8f8;
}

.theaterkit-occupancy__date {
    align-items: center;
    color: #756b6d;
    display: inline-flex;
    font-size: 0.78rem;
    font-weight: 800;
    height: 1.8rem;
    justify-content: center;
    margin-bottom: 0.45rem;
    width: 1.8rem;
}

.theaterkit-occupancy__date strong {
    font: inherit;
}

.theaterkit-occupancy__weekday-mobile {
    display: none;
}

.theaterkit-occupancy__day.is-today .theaterkit-occupancy__date {
    background: var(--tk-calendar-accent);
    border-radius: 50%;
    box-shadow: 0 5px 12px rgba(157, 32, 53, 0.24);
    color: #fff;
}

.theaterkit-occupancy__rooms {
    display: grid;
    gap: 0.38rem;
}

.theaterkit-occupancy__room {
    background: #eef8f4;
    border-left: 3px solid #3d9a7c;
    border-radius: 0.4rem;
    display: grid;
    gap: 0.1rem;
    min-width: 0;
    padding: 0.5rem 0.55rem;
}

.theaterkit-occupancy__room span {
    color: #56736a;
    font-size: 0.62rem;
    font-weight: 750;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theaterkit-occupancy__room strong {
    color: #216d56;
    font-size: 0.72rem;
}

.theaterkit-occupancy__room.is-reserved {
    background: #fff7dd;
    border-left-color: #c59620;
}

.theaterkit-occupancy__room.is-reserved span,
.theaterkit-occupancy__room.is-reserved strong {
    color: #795c16;
}

.theaterkit-occupancy__room.is-busy {
    background: #fbedeb;
    border-left-color: #c94e46;
}

.theaterkit-occupancy__room.is-busy span,
.theaterkit-occupancy__room.is-busy strong {
    color: #8d3732;
}

@media (max-width: 860px) and (min-width: 681px) {
    .theaterkit-occupancy__day {
        min-height: 8.5rem;
        padding: 0.4rem;
    }

    .theaterkit-occupancy__room {
        padding: 0.4rem;
    }

    .theaterkit-occupancy__room span {
        font-size: 0.56rem;
    }
}

@media (max-width: 680px) {
    .theaterkit-occupancy__legend {
        justify-content: flex-start;
    }

    .theaterkit-occupancy__navigation {
        gap: 0.25rem;
        grid-template-columns: 2.65rem minmax(0, 1fr) auto 2.65rem;
        min-height: 4.2rem;
        padding: 0.5rem;
    }

    .theaterkit-occupancy__title {
        font-size: 1.08rem;
    }

    .theaterkit-occupancy__nav {
        height: 2.4rem;
        width: 2.4rem;
    }

    .theaterkit-occupancy__today {
        font-size: 0.68rem;
        padding: 0.45rem 0.62rem;
    }

    .theaterkit-occupancy__weekdays {
        display: none;
    }

    .theaterkit-occupancy__grid {
        display: block;
    }

    .theaterkit-occupancy__day,
    .theaterkit-occupancy__day:nth-child(7n + 6),
    .theaterkit-occupancy__day:nth-child(7n) {
        align-items: stretch;
        background: #fff;
        border: 0;
        border-bottom: 1px solid var(--tk-calendar-line);
        display: grid;
        gap: 0.7rem;
        grid-template-columns: 3rem minmax(0, 1fr);
        min-height: 0;
        padding: 0.7rem;
    }

    .theaterkit-occupancy__day.is-empty {
        display: none;
    }

    .theaterkit-occupancy__date,
    .theaterkit-occupancy__day.is-today .theaterkit-occupancy__date {
        align-content: center;
        align-items: center;
        align-self: stretch;
        background: var(--tk-calendar-soft);
        border-radius: 0.5rem;
        box-shadow: none;
        color: var(--tk-calendar-ink);
        display: grid;
        height: auto;
        justify-items: center;
        margin: 0;
        padding: 0.35rem;
        width: auto;
    }

    .theaterkit-occupancy__day.is-today .theaterkit-occupancy__date {
        background: var(--tk-calendar-accent);
        color: #fff;
    }

    .theaterkit-occupancy__weekday-mobile {
        display: block;
        font-size: 0.58rem;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .theaterkit-occupancy__date strong {
        font-size: 1rem;
    }

    .theaterkit-occupancy__rooms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theaterkit-occupancy__room {
        justify-content: stretch;
        min-height: 3.5rem;
        padding: 0.55rem 0.6rem;
    }

    .theaterkit-occupancy__room span {
        font-size: 0.64rem;
    }

    .theaterkit-occupancy__room strong {
        font-size: 0.76rem;
    }
}

@media (max-width: 390px) {
    .theaterkit-occupancy__rooms {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .theaterkit-calendar *,
    .theaterkit-calendar *::before,
    .theaterkit-calendar *::after {
        scroll-behavior: auto !important;
    }
}

/* Theme-safe media and photo-rich calendar events (1.3). */
.theaterkit-calendar,
.theaterkit-calendar button,
.theaterkit-calendar input,
.theaterkit-calendar select {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.theaterkit-calendar h2,
.theaterkit-calendar h3,
.theaterkit-calendar h4,
.theaterkit-calendar p {
    font-family: inherit;
}

.theaterkit-event__image-wrap {
    display: block !important;
    max-width: none !important;
    overflow: hidden;
    position: relative;
    width: 100% !important;
}

.theaterkit-event__image-wrap .theaterkit-event__image {
    display: block !important;
    height: 100% !important;
    inset: 0;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    position: absolute;
    width: 100% !important;
}

.theaterkit-month-calendar__event {
    align-items: stretch;
    display: grid;
    gap: 0.42rem;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    padding: 0.32rem;
}

.theaterkit-month-calendar__event.has-image {
    background: #fff;
    border: 1px solid var(--tk-calendar-line);
    border-left: 3px solid var(--tk-calendar-accent);
    box-shadow: 0 3px 10px rgba(50, 30, 34, 0.07);
    grid-template-columns: 2.8rem minmax(0, 1fr);
}

.theaterkit-month-calendar__event-image {
    align-self: stretch;
    background: var(--tk-calendar-soft);
    border-radius: 0.28rem;
    display: block;
    min-height: 2.8rem;
    overflow: hidden;
    position: relative;
}

.theaterkit-month-calendar__event-image img {
    display: block !important;
    height: 100% !important;
    inset: 0;
    max-height: none !important;
    max-width: none !important;
    object-fit: cover !important;
    position: absolute;
    width: 100% !important;
}

.theaterkit-month-calendar__event-copy {
    align-content: center;
    display: grid;
    min-width: 0;
    padding: 0.05rem 0.1rem;
}

.theaterkit-month-calendar__event-time,
.theaterkit-month-calendar__event-title,
.theaterkit-month-calendar__event-meta {
    display: block;
    min-width: 0;
}

.theaterkit-month-calendar__event-title {
    display: -webkit-box;
    font-size: 0.7rem;
    font-weight: 800;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.25;
    overflow: hidden;
}

.theaterkit-month-calendar__event-meta {
    color: var(--tk-calendar-muted);
    font-size: 0.58rem;
    font-weight: 650;
    margin-top: 0.14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.theaterkit-month-calendar__event.has-image.category-konzert,
.theaterkit-month-calendar__event.has-image.category-comedy,
.theaterkit-month-calendar__event.has-image.category-lesung,
.theaterkit-month-calendar__event.has-image.category-vortrag,
.theaterkit-month-calendar__event.has-image.category-reservierung {
    background: #fff;
}

.theaterkit-month-calendar__event.has-image.category-konzert {
    border-left-color: #277b6d;
}

.theaterkit-month-calendar__event.has-image.category-comedy {
    border-left-color: #c1741c;
}

.theaterkit-month-calendar__event.has-image.category-lesung,
.theaterkit-month-calendar__event.has-image.category-vortrag {
    border-left-color: #496eae;
}

.theaterkit-month-calendar__event.has-image.category-reservierung {
    border-left-color: #847b7d;
}

@media (max-width: 680px) {
    .theaterkit-event__image-wrap {
        aspect-ratio: 16 / 10;
        height: auto;
        min-height: 0;
    }

    .theaterkit-month-calendar__event,
    .theaterkit-month-calendar__event.has-image {
        align-items: stretch;
        border-left-width: 4px;
        gap: 0.75rem;
        grid-template-columns: minmax(0, 1fr);
        padding: 0.55rem;
    }

    .theaterkit-month-calendar__event.has-image {
        grid-template-columns: 5.5rem minmax(0, 1fr);
        min-height: 5rem;
    }

    .theaterkit-month-calendar__event-image {
        border-radius: 0.42rem;
        min-height: 4.35rem;
    }

    .theaterkit-month-calendar__event-copy {
        padding: 0.15rem 0.15rem 0.15rem 0;
    }

    .theaterkit-month-calendar__event-time {
        display: block;
        font-size: 0.68rem;
        margin: 0 0 0.18rem;
    }

    .theaterkit-month-calendar__event-title {
        font-size: 0.88rem;
        line-height: 1.25;
    }

    .theaterkit-month-calendar__event-meta {
        font-size: 0.68rem;
        margin-top: 0.3rem;
    }
}

/* Modern card and calendar presentation (1.2). */
.theaterkit-calendar {
    --tk-calendar-accent: #9d2035;
    --tk-calendar-accent-dark: #731426;
    --tk-calendar-ink: #211d1e;
    --tk-calendar-muted: #71686a;
    --tk-calendar-line: #e7e0e1;
    --tk-calendar-surface: #fff;
    --tk-calendar-soft: #f8f5f5;
    --tk-calendar-shadow: 0 16px 45px rgba(49, 30, 34, 0.09);
    --tk-calendar-shadow-hover: 0 22px 55px rgba(49, 30, 34, 0.16);
}

.theaterkit-calendar__switch {
    background: #fff;
    border: 1px solid var(--tk-calendar-line);
    box-shadow: 0 8px 24px rgba(49, 30, 34, 0.08);
    gap: 0.2rem;
    padding: 0.3rem;
}

.theaterkit-calendar__switch-button {
    color: var(--tk-calendar-muted);
    min-width: 7rem;
    padding: 0.72rem 1.2rem;
    transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.theaterkit-calendar__switch-button.is-active {
    background: var(--tk-calendar-ink);
    box-shadow: 0 5px 14px rgba(33, 29, 30, 0.2);
}

.theaterkit-calendar__month-group + .theaterkit-calendar__month-group {
    margin-top: clamp(2.75rem, 5vw, 4.75rem);
}

.theaterkit-calendar__month-title {
    align-items: center;
    border: 0;
    display: flex;
    font-size: clamp(1.45rem, 1.1rem + 1vw, 2.15rem);
    gap: 1rem;
    letter-spacing: -0.035em;
    margin-bottom: 1.25rem;
    padding: 0;
}

.theaterkit-calendar__month-title::after {
    background: linear-gradient(90deg, var(--tk-calendar-accent), transparent);
    content: "";
    flex: 1;
    height: 1px;
    opacity: 0.45;
}

.theaterkit-calendar__events {
    display: grid;
    gap: clamp(1rem, 2vw, 1.5rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.theaterkit-event {
    background: var(--tk-calendar-surface);
    border: 1px solid var(--tk-calendar-line);
    border-radius: 1.1rem;
    box-shadow: var(--tk-calendar-shadow);
    display: grid;
    gap: 0;
    grid-template-areas:
        "media"
        "body"
        "action";
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    padding: 0;
    position: relative;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.theaterkit-event:hover {
    border-color: color-mix(in srgb, var(--tk-calendar-accent), white 58%);
    box-shadow: var(--tk-calendar-shadow-hover);
    transform: translateY(-4px);
}

.theaterkit-event:not(.has-image) {
    background: linear-gradient(155deg, #fff 0%, #fff 68%, #faf4f5 100%);
}

.theaterkit-event:not(.has-image)::before {
    background:
        radial-gradient(circle at 85% 15%, rgba(157, 32, 53, 0.18), transparent 34%),
        linear-gradient(135deg, #32292b, #171315);
    content: "";
    grid-area: media;
    min-height: 9.5rem;
}

.theaterkit-event__image-wrap {
    aspect-ratio: 16 / 10;
    border-radius: 0;
    grid-area: media;
    height: 13.5rem;
    min-height: 0;
    overflow: hidden;
}

.theaterkit-event__image {
    transition: transform 450ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.theaterkit-event:hover .theaterkit-event__image {
    transform: scale(1.035);
}

.theaterkit-event__date {
    align-items: center;
    align-self: start;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 0.8rem;
    box-shadow: 0 9px 25px rgba(25, 16, 18, 0.18);
    color: var(--tk-calendar-accent-dark);
    grid-area: media;
    justify-self: start;
    margin: 1rem;
    min-width: 4.15rem;
    padding: 0.6rem 0.5rem 0.55rem;
    position: relative;
    z-index: 2;
}

.theaterkit-event__weekday {
    color: var(--tk-calendar-muted);
    font-size: 0.62rem;
}

.theaterkit-event__day {
    font-size: 1.85rem;
    letter-spacing: -0.06em;
    margin: 0.18rem 0 0.12rem;
}

.theaterkit-event__month {
    font-size: 0.65rem;
}

.theaterkit-event__body {
    align-self: stretch;
    grid-area: body;
    padding: 1.35rem 1.35rem 1rem;
}

.theaterkit-event__labels {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.65rem;
    margin-bottom: 0.75rem;
}

.theaterkit-event__category {
    background: #f6e8eb;
    border-radius: 999px;
    color: var(--tk-calendar-accent-dark);
    font-size: 0.65rem;
    font-weight: 850;
    letter-spacing: 0.075em;
    line-height: 1;
    padding: 0.48rem 0.62rem;
    text-transform: uppercase;
}

.theaterkit-event__artist {
    color: var(--tk-calendar-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.055em;
    margin: 0;
    text-transform: uppercase;
}

.theaterkit-event__title {
    font-size: clamp(1.2rem, 1.05rem + 0.45vw, 1.5rem);
    letter-spacing: -0.025em;
    line-height: 1.16;
}

.theaterkit-event__title a {
    background-image: linear-gradient(var(--tk-calendar-accent), var(--tk-calendar-accent));
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 2px;
    transition: background-size 180ms ease, color 180ms ease;
}

.theaterkit-event:hover .theaterkit-event__title a {
    background-size: 100% 2px;
}

.theaterkit-event__meta {
    border-top: 1px solid var(--tk-calendar-line);
    color: var(--tk-calendar-muted);
    font-size: 0.78rem;
    gap: 0.35rem 0.75rem;
    margin-top: 0.85rem;
    padding-top: 0.8rem;
}

.theaterkit-event__meta span {
    align-items: center;
    display: inline-flex;
    font-weight: 650;
}

.theaterkit-event__meta span:first-child {
    color: var(--tk-calendar-ink);
    font-weight: 850;
}

.theaterkit-event__meta span:not(:last-child)::after {
    color: #c8bfc1;
    margin-left: 0.75rem;
}

.theaterkit-event__description {
    -webkit-line-clamp: 3;
    font-size: 0.88rem;
    line-height: 1.55;
    margin-top: 0.9rem;
}

.theaterkit-event__admission {
    background: var(--tk-calendar-soft);
    border-radius: 0.45rem;
    display: inline-block;
    font-size: 0.76rem;
    margin-top: 0.85rem;
    padding: 0.4rem 0.55rem;
}

.theaterkit-event__action {
    align-self: end;
    grid-area: action;
    padding: 0 1.35rem 1.35rem;
}

.theaterkit-event__button {
    align-items: center;
    background: var(--tk-calendar-ink);
    border-color: var(--tk-calendar-ink);
    border-radius: 0.65rem;
    display: flex;
    justify-content: space-between;
    padding: 0.82rem 0.95rem;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
    white-space: normal;
    width: 100%;
}

.theaterkit-event__button:hover {
    background: var(--tk-calendar-accent);
    border-color: var(--tk-calendar-accent);
}

.theaterkit-event__button span {
    font-size: 1.1rem;
    transition: transform 160ms ease;
}

.theaterkit-event__button:hover span {
    transform: translateX(3px);
}

.theaterkit-month-calendar {
    background: #fff;
    border: 1px solid var(--tk-calendar-line);
    border-radius: 1rem;
    box-shadow: var(--tk-calendar-shadow);
}

.theaterkit-month-calendar__navigation {
    background: #fff;
    border-bottom: 1px solid var(--tk-calendar-line);
    color: var(--tk-calendar-ink);
    gap: 0.45rem;
    grid-template-columns: 3rem minmax(0, 1fr) auto 3rem;
    min-height: 4.6rem;
    padding: 0.65rem 0.8rem;
}

.theaterkit-month-calendar__title {
    font-size: clamp(1.2rem, 1rem + 0.7vw, 1.7rem);
    letter-spacing: -0.035em;
    text-align: left;
}

.theaterkit-month-calendar__nav {
    align-self: auto;
    background: var(--tk-calendar-soft);
    border: 1px solid var(--tk-calendar-line);
    border-radius: 50%;
    color: var(--tk-calendar-ink);
    height: 2.75rem;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
    width: 2.75rem;
}

.theaterkit-month-calendar__nav:hover {
    background: var(--tk-calendar-ink);
    border-color: var(--tk-calendar-ink);
    color: #fff;
}

.theaterkit-month-calendar__today {
    appearance: none;
    background: #fff;
    border: 1px solid var(--tk-calendar-line);
    border-radius: 999px;
    color: var(--tk-calendar-accent-dark);
    cursor: pointer;
    font: inherit;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 0.55rem 0.85rem;
}

.theaterkit-month-calendar__today:hover {
    background: #f7e9ec;
    border-color: #e2bec6;
}

.theaterkit-month-calendar__weekdays {
    background: #fff;
    color: #95898c;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
}

.theaterkit-month-calendar__weekdays span {
    padding: 0.85rem 0.25rem;
}

.theaterkit-month-calendar__day {
    background: #fff;
    min-height: 9.5rem;
    padding: 0.55rem;
    transition: background 150ms ease;
}

.theaterkit-month-calendar__day:nth-child(7n + 6),
.theaterkit-month-calendar__day:nth-child(7n) {
    background: #fcf9fa;
}

.theaterkit-month-calendar__day:hover:not(.is-empty) {
    background: #faf6f7;
}

.theaterkit-month-calendar__day.is-empty {
    background: #faf8f8;
}

.theaterkit-month-calendar__date {
    color: #756b6d;
    font-size: 0.78rem;
    height: 1.8rem;
    margin-bottom: 0.4rem;
    width: 1.8rem;
}

.theaterkit-month-calendar__day.is-today .theaterkit-month-calendar__date {
    box-shadow: 0 5px 12px rgba(157, 32, 53, 0.24);
}

.theaterkit-month-calendar__event {
    background: #f5e7ea;
    border: 0;
    border-left: 3px solid var(--tk-calendar-accent);
    border-radius: 0.38rem;
    color: #51212b;
    font-size: 0.72rem;
    line-height: 1.35;
    margin-bottom: 0.35rem;
    padding: 0.42rem 0.48rem;
    transition: background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.theaterkit-month-calendar__event:hover {
    background: #ecd0d6;
    box-shadow: 0 5px 12px rgba(83, 32, 43, 0.13);
    color: #41131d;
    transform: translateY(-1px);
}

.theaterkit-month-calendar__event.category-konzert {
    background: #e5f3f0;
    border-left-color: #277b6d;
    color: #174f46;
}

.theaterkit-month-calendar__event.category-comedy {
    background: #fff0d9;
    border-left-color: #c1741c;
    color: #6d410e;
}

.theaterkit-month-calendar__event.category-lesung,
.theaterkit-month-calendar__event.category-vortrag {
    background: #eaf0fa;
    border-left-color: #496eae;
    color: #294a80;
}

.theaterkit-month-calendar__event.category-reservierung {
    background: #efeeee;
    border-left-color: #847b7d;
    color: #575052;
}

.theaterkit-month-calendar__event-time {
    display: block;
    font-size: 0.63rem;
    font-weight: 900;
    letter-spacing: 0.025em;
    margin-bottom: 0.1rem;
    opacity: 0.78;
}

@media (max-width: 980px) {
    .theaterkit-calendar__events {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .theaterkit-event {
        grid-template-columns: minmax(0, 1fr);
    }

    .theaterkit-event__action {
        grid-column: auto;
    }

    .theaterkit-month-calendar__day {
        min-height: 8rem;
        padding: 0.4rem;
    }
}

@media (max-width: 680px) {
    .theaterkit-calendar {
        margin-block: 1rem;
    }

    .theaterkit-calendar__switch {
        display: flex;
        width: 100%;
    }

    .theaterkit-calendar__switch-button {
        flex: 1;
        min-width: 0;
    }

    .theaterkit-calendar__events {
        grid-template-columns: minmax(0, 1fr);
    }

    .theaterkit-event {
        display: grid;
        gap: 0;
        grid-template-columns: minmax(0, 1fr);
    }

    .theaterkit-event__date {
        display: flex;
        grid-area: media;
    }

    .theaterkit-event__image-wrap {
        display: block;
        height: 12rem;
    }

    .theaterkit-event__body,
    .theaterkit-event__action {
        grid-column: auto;
    }

    .theaterkit-event__body {
        padding: 1.15rem 1.15rem 0.9rem;
    }

    .theaterkit-event__action {
        justify-self: stretch;
        padding: 0 1.15rem 1.15rem;
    }

    .theaterkit-event__meta span {
        width: auto;
    }

    .theaterkit-event__meta span::after {
        display: inline;
    }

    .theaterkit-month-calendar {
        border-radius: 0.8rem;
    }

    .theaterkit-month-calendar__navigation {
        gap: 0.25rem;
        grid-template-columns: 2.65rem minmax(0, 1fr) auto 2.65rem;
        min-height: 4.2rem;
        padding: 0.5rem;
    }

    .theaterkit-month-calendar__title {
        font-size: 1.08rem;
    }

    .theaterkit-month-calendar__nav {
        height: 2.4rem;
        width: 2.4rem;
    }

    .theaterkit-month-calendar__today {
        font-size: 0.68rem;
        padding: 0.45rem 0.62rem;
    }

    .theaterkit-month-calendar__day,
    .theaterkit-month-calendar__day:nth-child(7n + 6),
    .theaterkit-month-calendar__day:nth-child(7n) {
        background: #fff;
        padding: 0.9rem;
    }

    .theaterkit-month-calendar__day.has-events + .theaterkit-month-calendar__day.has-events {
        border-top: 0;
    }

    .theaterkit-month-calendar__date {
        border-bottom: 1px solid var(--tk-calendar-line);
        color: var(--tk-calendar-ink);
        font-size: 0.82rem;
        padding-bottom: 0.55rem;
    }

    .theaterkit-month-calendar__event {
        border-left-width: 4px;
        font-size: 0.86rem;
        margin-bottom: 0.45rem;
        padding: 0.65rem 0.7rem;
    }

    .theaterkit-month-calendar__event-time {
        display: inline;
        font-size: 0.72rem;
        margin: 0 0.35rem 0 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .theaterkit-event,
    .theaterkit-event__image,
    .theaterkit-event__button span,
    .theaterkit-month-calendar__event {
        transition: none;
    }

    .theaterkit-event:hover,
    .theaterkit-event:hover .theaterkit-event__image,
    .theaterkit-month-calendar__event:hover {
        transform: none;
    }
}
