:root {
    --cm-primary: #003398;
    --cm-primary-light: rgba(0, 51, 152, 0.07);
    --cm-primary-border: rgba(0, 51, 152, 0.18);
    --cm-text: #212529;
    --cm-muted: #6c757d;
    --cm-border: #e9ecef;
    --cm-radius: 0.875rem;
    --courseplan-touch-target: 2.75rem;
    --courseplan-card-pad-y: 0.75rem;
    --courseplan-card-pad-x: 0.9rem;
    --courseplan-card-gap: 0.6rem;
}

#hallenbelegung {
    color: var(--cm-text);
}

#hallenbelegung h2,
#hallenbelegung h3,
#hallenbelegung h4 {
    color: var(--cm-primary);
}

.com-reservations-page .com-reservations-form-shell {
    border: 1px solid var(--cm-border);
    border-radius: 1rem;
    background: #fff;
    padding: 1.25rem;
}

.com-reservations-page .venue-guide__kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    color: var(--cm-primary);
    margin-bottom: 0.25rem;
}

.com-reservations-page .venue-guide__panel-title {
    color: var(--cm-primary);
    font-size: 1.8rem;
    line-height: 1.15;
}

.com-reservations-page .card {
    border-radius: 0.9rem;
}

.reservation-stepper {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    position: relative;
}

.reservation-stepper::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--cm-border);
    z-index: 0;
}

.reservation-stepper-step {
    position: relative;
    z-index: 1;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    color: var(--cm-muted);
    cursor: pointer;
}

.reservation-step-dot {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #d1d5db;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 3px solid #fff;
}

.reservation-step-label {
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
}

.reservation-stepper-step.is-active .reservation-step-dot {
    background: var(--cm-primary);
}

.reservation-stepper-step.is-active .reservation-step-label {
    color: var(--cm-primary);
    font-weight: 700;
}

.reservation-stepper-step.is-done .reservation-step-dot {
    background: #198754;
}

.reservation-form-step {
    display: none;
}

.reservation-form-step.is-active {
    display: block;
    animation: reservationFadeIn 0.2s ease;
}

@keyframes reservationFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.reservation-step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--cm-border);
    padding-top: 1rem;
}

.reservation-review-card {
    background: linear-gradient(180deg, rgba(0, 51, 152, .05), rgba(255, 255, 255, .96));
    border: 1px solid rgba(0, 51, 152, .08);
    border-radius: 18px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.reservation-review-head {
    margin-bottom: 1rem;
}

.reservation-review-title {
    color: #17345d;
    font-size: 1.05rem;
    margin: 0 0 .35rem;
}

.reservation-review-text {
    color: #4b647f;
    font-size: .95rem;
}

.reservation-review-grid {
    display: grid;
    gap: .75rem 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.reservation-review-row {
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(0, 51, 152, .08);
    border-radius: 14px;
    padding: .75rem .85rem;
}

.reservation-review-row dt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    color: #5b6f87;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    margin: 0 0 .25rem;
    text-transform: uppercase;
}

.reservation-review-edit {
    color: #003398;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
}

.reservation-review-edit:hover,
.reservation-review-edit:focus {
    text-decoration: underline;
}

.reservation-review-row dd {
    color: #17345d;
    font-weight: 600;
    margin: 0;
    word-break: break-word;
}

.com-reservations-page .form-floating > .form-control,
.com-reservations-page .form-floating > .form-select,
.com-reservations-page .form-floating > textarea.form-control {
    min-height: calc(3.5rem + 2px);
}

.com-reservations-page .form-floating > textarea.form-control {
    min-height: 9rem;
    height: 9rem;
}

.com-reservations-page .form-floating > label {
    color: var(--cm-muted);
}

.reservation-link-box {
    text-decoration: none;
    color: var(--cm-primary);
}

.reservation-link-box:hover,
.reservation-link-box:focus {
    color: #002880;
}

.reservation-links-note {
    color: var(--cm-primary);
}

.reservation-legend .legend-free {
    color: #198754;
}

.reservation-legend .legend-busy {
    color: #dc3545;
}

.reservation-legend .legend-request {
    color: #0d6efd;
}

.reservation-privacy-frame {
    width: 100%;
    min-height: 60vh;
    border: 1px solid var(--cm-border);
    border-radius: 0.5rem;
}

.reservation-date-floating {
    position: relative;
}

.reservation-date-floating > .form-control {
    padding-right: 3rem;
}

.reservation-date-trigger {
    position: absolute;
    right: 0.35rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    border: 0;
    color: var(--cm-primary);
    background: transparent;
    padding: 0.25rem 0.5rem;
}

.reservation-date-trigger:hover,
.reservation-date-trigger:focus {
    color: #002880;
}

.flatpickr-day.flatpickr-day-free {
    color: #198754 !important;
}

.flatpickr-day.flatpickr-day-busy {
    color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.08) !important;
    border-color: rgba(220, 53, 69, 0.35) !important;
    font-weight: 700;
}

.flatpickr-day.flatpickr-day-busy.flatpickr-disabled,
.flatpickr-day.flatpickr-day-busy.notAllowed {
    color: #dc3545 !important;
    background: rgba(220, 53, 69, 0.14) !important;
    border-color: rgba(220, 53, 69, 0.45) !important;
    opacity: 1 !important;
}

#hallenbelegung .btn-primary {
    background: var(--cm-primary);
    border-color: var(--cm-primary);
}

.courseplan-mobile-actions .btn-outline-primary,
.courseplan-weeknav-btn.btn-outline-primary,
.d-none.d-lg-flex .btn-outline-primary,
#hallenbelegung .btn-outline-primary {
    color: var(--color-primary, var(--cm-primary)) !important;
    border-color: var(--color-primary, var(--cm-primary)) !important;
}

.courseplan-mobile-actions .btn-outline-primary:hover,
.courseplan-mobile-actions .btn-outline-primary:focus,
.courseplan-mobile-actions .btn-outline-primary:focus-visible,
.courseplan-mobile-actions .btn-outline-primary:active,
.courseplan-weeknav-btn.btn-outline-primary:hover,
.courseplan-weeknav-btn.btn-outline-primary:focus,
.courseplan-weeknav-btn.btn-outline-primary:focus-visible,
.courseplan-weeknav-btn.btn-outline-primary:active,
.d-none.d-lg-flex .btn-outline-primary:hover,
.d-none.d-lg-flex .btn-outline-primary:focus,
.d-none.d-lg-flex .btn-outline-primary:focus-visible,
.d-none.d-lg-flex .btn-outline-primary:active,
#hallenbelegung .btn-outline-primary:hover,
#hallenbelegung .btn-outline-primary:focus,
#hallenbelegung .btn-outline-primary:focus-visible,
#hallenbelegung .btn-outline-primary:active {
    color: #fff !important;
    background: var(--color-primary, var(--cm-primary)) !important;
    border-color: var(--color-primary, var(--cm-primary)) !important;
}

.courseplan-mobile-filter-btn.is-active {
    color: #fff !important;
    background: var(--color-primary, var(--cm-primary)) !important;
    border-color: var(--color-primary, var(--cm-primary)) !important;
}

#hallenbelegung .btn-primary:hover,
#hallenbelegung .btn-primary:focus {
    background: #002880;
    border-color: #002880;
}

.courseplan-header-desktop {
    padding: 0.75rem 1rem;
    border-radius: 0.7rem;
    background: rgba(0, 51, 152, 0.06);
    border: 1px solid rgba(0, 51, 152, 0.12);
    gap: 1rem;
}

.courseplan-header-desktop-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.custom-flex-item {
    width: 100%;
    border: 0;
    border-radius: 0;
    padding-bottom: 0;
    overflow: visible;
    transition: none;
}

.bookings-secondary-color {
    color: var(--cm-muted) !important;
}

.list-height {
    height: auto;
    min-height: 0;
}

.tooltip-inner {
    max-width: 300px !important;
}

.courseplan-days-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: var(--courseplan-card-gap);
}

.courseplan-days-row .courseplan-day-col {
    flex: 1 1 auto;
}

.courseplan-day-col .list-group {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

#hallenbelegung .list-group-item {
    border-color: var(--cm-border);
}

#hallenbelegung .courseplan-event-card {
    border: 1px solid var(--color-primary, var(--cm-primary));
    border-radius: 0.6rem;
    background: var(--color-primary, var(--cm-primary)) !important;
    padding: var(--courseplan-card-pad-y) var(--courseplan-card-pad-x);
    margin-top: 0 !important;
    position: relative;
}

#hallenbelegung .courseplan-event-card.has-card-toggle {
    cursor: pointer;
}

.courseplan-card-front {
    position: relative;
    z-index: 2;
    text-align: center;
}

.courseplan-card-front.card {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    height: auto;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.courseplan-card-header {
    background: transparent !important;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.05rem 0 0.35rem;
    margin-bottom: 0.32rem;
}

.courseplan-card-body {
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 1 1 auto;
    padding-bottom: 0.2rem;
}

#hallenbelegung .courseplan-event-card,
#hallenbelegung .courseplan-event-card .courseplan-event-time,
#hallenbelegung .courseplan-event-card .bookings-secondary-color,
#hallenbelegung .courseplan-event-card a,
#hallenbelegung .courseplan-event-card span {
    color: #fff !important;
}

#hallenbelegung .courseplan-event-card a:hover,
#hallenbelegung .courseplan-event-card a:focus {
    color: #fff !important;
    text-decoration-color: rgba(255, 255, 255, 0.9);
}

#hallenbelegung .courseplan-event-card.is-live-now {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.92), 0 10px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

#hallenbelegung .courseplan-event-card.is-live-now::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.6rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    pointer-events: none;
}

.courseplan-event-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0;
}

.courseplan-event-time {
    font-size: clamp(0.98rem, 0.9rem + 0.25vw, 1.08rem);
    font-weight: 700;
    line-height: 1.25;
    color: #111;
    margin-bottom: 0;
    text-align: center;
}

.courseplan-event-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.38rem;
    margin-bottom: 0.34rem;
    text-align: left;
    width: 100%;
}

.courseplan-event-icon-wrap {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
}

.courseplan-event-icon {
    width: auto;
    height: 25px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1);
}

.courseplan-info-dot-static {
    line-height: 1;
    flex: 0 0 auto;
    min-width: 2rem;
    text-align: center;
}

.courseplan-event-title-text {
    font-size: clamp(0.98rem, 0.9rem + 0.22vw, 1.04rem);
    line-height: 1.4;
    word-break: break-word;
    min-width: 0;
    text-align: left;
}

.courseplan-live-now-text {
    display: inline-flex;
    align-items: center;
    position: absolute;
    left: 50%;
    top: -0.62rem;
    transform: translateX(-50%);
    z-index: 8;
    margin-top: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    background: rgba(255, 193, 7, 0.96);
    color: #1f2937;
    white-space: nowrap;
    animation: courseplanLiveBlink var(--courseplan-live-blink-duration, 2s) ease-in-out infinite;
    margin-left: auto;
    margin-right: auto;
}

#hallenbelegung .courseplan-event-card.has-card-toggle.is-flipped .courseplan-live-now-text {
    opacity: 0;
}

@keyframes courseplanLiveBlink {
    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.55);
    }
    50% {
        opacity: 0.45;
        box-shadow: 0 0 0 6px rgba(255, 193, 7, 0.12);
    }
}

#hallenbelegung .list-group-item.is-cancelled-course {
    position: relative;
    overflow: hidden;
    opacity: 0.92;
}

#hallenbelegung .cancel-ribbon {
    position: absolute;
    top: 8px;
    right: -34px;
    transform: rotate(38deg);
    background: #d50000;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.3rem 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    z-index: 2;
}

#hallenbelegung .list-group-item a {
    color: var(--cm-muted);
    text-decoration: underline;
    text-underline-offset: 0.14em;
}

#hallenbelegung .list-group-item a:hover,
#hallenbelegung .list-group-item a:focus {
    color: var(--cm-primary);
}

.courseplan-info-row {
    margin-bottom: 1rem;
}

.courseplan-info-dot {
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 0;
    box-shadow: none;
    min-width: 2rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.courseplan-info-dot:focus,
.courseplan-info-dot:focus-visible,
.courseplan-info-dot:active {
    outline: none;
    border: 0;
    box-shadow: none;
}

.courseplan-mobile-detail {
    display: block;
    margin-top: 0.45rem;
    padding: 0.45rem 0.55rem;
    border-left: 2px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.25rem;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition: max-height 0.24s ease, opacity 0.2s ease, margin 0.2s ease, padding 0.2s ease;
}

.courseplan-mobile-detail.is-open {
    max-height: 20rem;
    opacity: 1;
    margin-top: 0.45rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.courseplan-mobile-detail-list {
    margin: 0;
}

.courseplan-mobile-detail-row {
    margin: 0 0 0.25rem;
}

.courseplan-mobile-detail-row:last-child {
    margin-bottom: 0;
}

.courseplan-mobile-detail-row dt {
    font-weight: 700;
    margin: 0;
    color: #ffffff;
}

.courseplan-mobile-detail-row dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.95);
}

.courseplan-flip-back-btn {
    display: none;
    border: 0;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 999px;
    width: 1.45rem;
    height: 1.45rem;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
}

.courseplan-flip-front-hint {
    position: absolute;
    right: 0.3rem;
    bottom: 0.3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.42rem;
    height: 1.42rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.78rem;
    line-height: 1;
    pointer-events: none;
    z-index: 8;
}

#hallenbelegung .courseplan-event-card.has-card-toggle.is-flipped .courseplan-flip-front-hint {
    opacity: 0;
}

@media (min-width: 992px) {
    #hallenbelegung .courseplan-event-card {
        min-height: 9.7rem;
        height: 9.7rem;
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle {
        position: relative;
        min-height: 9.7rem;
        height: 9.7rem;
        transform-style: flat;
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-card-front,
    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        transition: transform 0.5s ease;
        height: 100%;
        transform-origin: center center;
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-card-front {
        transform: rotateY(0deg);
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail {
        position: absolute;
        inset: 0;
        margin: 0;
        padding: 0.88rem 0.58rem 0.48rem;
        max-height: none;
        opacity: 1;
        overflow: hidden;
        border-radius: 0.45rem;
        border-left: 0;
        background: rgba(255, 255, 255, 0.12);
        transform: rotateY(180deg);
        font-size: 0.8rem;
        line-height: 1.15;
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-flip-back-btn {
        display: inline-flex;
        position: absolute;
        bottom: 0.26rem;
        right: 0.3rem;
        z-index: 4;
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle.is-flipped .courseplan-card-front {
        transform: rotateY(-180deg);
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle.is-flipped .courseplan-mobile-detail {
        transform: rotateY(0deg);
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail-list {
        display: grid;
        gap: 0.12rem;
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail-row {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 0.28rem;
        align-items: start;
        margin-bottom: 0;
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail-row dt,
    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail-row dd {
        font-size: 0.76rem;
        line-height: 1.1;
        margin: 0;
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail-row dt {
        white-space: nowrap;
        opacity: 0.95;
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail-row dd {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail-row--contact_person,
    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail-row--email {
        display: block;
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail-row--contact_person dt,
    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail-row--email dt {
        display: block;
        margin-bottom: 0.04rem;
    }

    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail-row--contact_person dd,
    #hallenbelegung .courseplan-event-card.has-card-toggle .courseplan-mobile-detail-row--email dd {
        display: block;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        word-break: break-word;
    }
}

.courseplan-weeknav {
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.courseplan-weeknav-label {
    font-size: 1.15rem;
    line-height: 1.1;
    color: var(--cm-primary);
    min-width: 15rem;
    text-align: center;
}

.courseplan-weeknav-btn {
    min-width: var(--courseplan-touch-target);
    min-height: var(--courseplan-touch-target);
    font-size: 1.25rem;
    border-width: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.6rem;
}

.courseplan-weekpicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.courseplan-weekpicker-input {
    min-width: 10.25rem;
}

.courseplan-weekpicker-desktop {
    position: relative;
    margin: 0 0.5rem;
}

.courseplan-weekpicker-mobile-inline {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.courseplan-weekpicker-display {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--courseplan-touch-target);
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--color-primary, var(--cm-primary));
    border-radius: 0.45rem;
    color: var(--color-primary, var(--cm-primary));
    font-size: 1.15rem;
    line-height: 1.1;
    white-space: nowrap;
    background: transparent;
    cursor: pointer;
}

.courseplan-weekpicker-overlay-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

.courseplan-weeknav-today {
    min-height: var(--courseplan-touch-target);
}

.courseplan-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.courseplan-filters-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.courseplan-filters-label {
    color: var(--cm-primary);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
}

.courseplan-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
    min-height: var(--courseplan-touch-target);
}

.courseplan-active-filter-badge {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.courseplan-empty-message {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 3rem;
    border-style: dashed;
    border-width: 1px;
    border-color: rgba(108, 117, 125, 0.35) !important;
    border-radius: 0.5rem;
}

.courseplan-empty-message-text {
    line-height: 1.25;
}

.courseplan-mobile-filter-btn.has-active-filter {
    position: relative;
}

.courseplan-mobile-filter-btn.has-active-filter::after {
    content: '';
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #dc3545;
    border: 1px solid #fff;
}

.courseplan-chip:focus-visible,
.courseplan-mobile-btn:focus-visible,
.courseplan-weeknav-btn:focus-visible,
.courseplan-weekpicker-display:focus-visible,
.courseplan-info-dot:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

#hallenbelegung .courseplan-chip:hover,
#hallenbelegung .courseplan-chip:focus,
#hallenbelegung .courseplan-chip:focus-visible {
    background-color: var(--color-primary, var(--cm-primary)) !important;
    border-color: var(--color-primary, var(--cm-primary)) !important;
    color: #fff !important;
}

#hallenbelegung .courseplan-chip.active,
#hallenbelegung .courseplan-chip.is-active {
    background-color: var(--color-primary, var(--cm-primary)) !important;
    border-color: var(--color-primary, var(--cm-primary)) !important;
    color: #fff !important;
}

.courseplan-chip .chip-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: var(--chip-color, transparent);
    border: 1px solid rgba(0, 0, 0, 0.15);
    display: inline-block;
}

@media (min-width: 768px) {
    .courseplan-days-row {
        flex-wrap: nowrap !important;
    }

    .custom-flex-item {
        min-width: 120px;
        flex: 0 0 calc((100% - (6 * var(--courseplan-card-gap))) / 7);
        max-width: calc((100% - (6 * var(--courseplan-card-gap))) / 7);
    }

    #hallenbelegung .courseplan-event-card {
        min-height: 8.9rem;
    }
}

@media (max-width: 767px) {
    .courseplan-flip-front-hint {
        display: none !important;
    }

    .courseplan-mobile-filter-btn {
        min-height: var(--courseplan-touch-target);
        border-width: 2px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    #hallenbelegung {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .list-height {
        height: auto;
    }

    .courseplan-days-row {
        width: 100%;
        gap: 0.75rem;
        margin-left: 0;
        margin-right: 0;
    }

    .courseplan-days-row .courseplan-day-col,
    .custom-flex-item.courseplan-day-col {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        border: 0;
        border-bottom: 0;
        border-radius: 0;
        overflow: hidden;
        padding-bottom: 0;
    }

    .courseplan-days-row .list-group-item {
        border-radius: 0;
    }

    #hallenbelegung .courseplan-event-card {
        padding: var(--courseplan-card-pad-y) var(--courseplan-card-pad-x);
    }

    .courseplan-event-time {
        font-size: 1rem;
    }

    .courseplan-event-title-text {
        font-size: 1rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: left;
    }

    .courseplan-event-title-row {
        width: 100%;
        justify-content: flex-start;
        text-align: left;
    }

    .courseplan-mobile-detail {
        width: 100%;
        box-sizing: border-box;
        margin-top: 0.45rem;
        padding: 0.45rem 0.55rem;
        border-radius: 0.25rem;
        background: rgba(255, 255, 255, 0.08);
        border-left: 2px solid rgba(255, 255, 255, 0.45);
        color: rgba(255, 255, 255, 0.95);
        line-height: 1.45;
        font-size: 0.88rem;
    }

    .courseplan-info-dot {
        min-width: 2rem;
        min-height: 2rem;
    }

    .courseplan-info-dot i {
        margin: 0 !important;
    }

    .courseplan-mobile-actions {
        align-items: center;
        --bs-gutter-x: 0;
        --bs-gutter-y: 0;
    }

    .courseplan-mobile-actions-left,
    .courseplan-mobile-actions-right {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding-left: 0;
        padding-right: 0;
    }

    .courseplan-mobile-actions-right {
        justify-content: flex-end;
    }

    .courseplan-mobile-btn {
        border-width: 2px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        --bs-btn-line-height: 1;
        min-width: var(--courseplan-touch-target);
        min-height: var(--courseplan-touch-target);
    }

    .courseplan-mobile-btn i {
        margin: 0 !important;
        width: 1em;
        height: 1em;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .reservation-stepper {
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .reservation-stepper::before {
        display: none;
    }

    .reservation-step-label {
        font-size: 0.7rem;
    }

    .reservation-review-grid {
        grid-template-columns: 1fr;
    }

    .custom-flex-item {
        width: 100%;
        max-width: 100%;
    }

    .courseplan-weeknav {
        width: 100%;
        justify-content: center;
        gap: 0.75rem;
    }

    .courseplan-weeknav-label {
        min-width: auto;
        font-size: 1rem;
    }

    .courseplan-weeknav-btn {
        min-width: var(--courseplan-touch-target);
        min-height: var(--courseplan-touch-target);
        font-size: 1.4rem;
    }

    .courseplan-weekpicker-mobile-inline .courseplan-weekpicker-display {
        width: 100%;
        font-size: 1rem;
        justify-content: space-between;
    }

    .courseplan-weekpicker-mobile-inline .courseplan-weekpicker-overlay-input {
        width: 100%;
        height: 3rem;
    }

    .courseplan-chips {
        width: 100%;
        gap: 0.4rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 0.15rem;
    }

    .courseplan-chip {
        font-size: 0.78rem;
        padding: 0.3rem 0.6rem;
        flex: 0 0 auto;
    }

    .courseplan-filters-label {
        font-size: 1.3rem;
    }

    #hallenbelegung h2 {
        font-size: 1.8rem;
    }

    #hallenbelegung h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 991px) {
    .courseplan-flip-front-hint {
        display: none !important;
    }

    #hallenbelegung .courseplan-info-dot,
    #hallenbelegung .courseplan-info-dot-static {
        display: inline-flex !important;
    }

    .courseplan-event-title-row {
        width: 100%;
        justify-content: flex-start !important;
        text-align: left !important;
    }

    .courseplan-event-icon-wrap {
        align-self: flex-start;
    }

    .courseplan-event-title-text {
        text-align: left !important;
    }
}
