/* Wrap: relative für Overlay */
.nlcm-grid-wrap {
    position: relative;
}

/* Inner: transition */
.nlcm-grid-inner {
    transition: opacity .22s ease;
    opacity: 1;
}

/* Beim Laden: Content ausfaden */
.nlcm-grid-wrap.is-loading .nlcm-grid-inner {
    opacity: .35;
    pointer-events: none;
}

/* Loader Overlay */
.nlcm-grid-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 20;
}

/* Loader sichtbar während loading */
.nlcm-grid-wrap.is-loading .nlcm-grid-loader {
    display: flex;
}

/* Spinner Kreis */
.nlcm-grid-loader::before {
    content: "";
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid currentColor;
    border-right-color: transparent;
    animation: nlcmSpin .8s linear infinite;
    opacity: .9;
}

.ovaem_events_filter .ovaem_events_filter_content .ova-item .wrap_content {
    height: 420px;
    overflow: hidden;
}

@keyframes nlcmSpin {
    to {
        transform: rotate(360deg);
    }
}

/* Filterbar: alles in eine Reihe */
#nlcm-filterbar .ovaem_search_event {
    display: flex;
    flex-wrap: wrap; /* falls mobil umbrechen darf */
    gap: 1%;
}

/* die 4 Spalten */
#nlcm-filterbar .ovaem_search_event > .ovaem_name_event,
#nlcm-filterbar .ovaem_search_event > .ovaem_cat,
#nlcm-filterbar .ovaem_search_event > .ovaem_submit {
    flex: 0 0 24%;
    max-width: 24%;
    margin-right: 0 !important; /* gap übernimmt den Abstand */
}

/* falls das Theme den Submit blockt */
#nlcm-filterbar .ovaem_search_event > .ovaem_submit {
    width: auto !important;
    float: none !important;
    clear: none !important;
}

/* Inputs/Selects in der Spalte volle Breite */
#nlcm-filterbar .ovaem_search_event input,
#nlcm-filterbar .ovaem_search_event select,
#nlcm-filterbar .ovaem_search_event button {
    width: 100%;
}

.ovaem_events_filter .ovaem_events_filter_content .ova-item .wrap_content .more_detail .btn_link {
    text-transform: none;
}

/* Pagination */
.nlcm-pagination {
    clear: both;
    margin-top: 1rem;
}

.nlcm-pagination ul.page-numbers {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.nlcm-pagination ul.page-numbers li {
    margin: 0;
    padding: 0;
}

.nlcm-pagination ul.page-numbers a,
.nlcm-pagination ul.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Calendar */
.fc-event {
    font-size: 12px;
    overflow: hidden;
    padding: 2px 4px;
    line-height: 1.5;
}

/* Kalender: Event-Schriftfarbe weiß erzwingen (inkl. Links) */
#nlcm-calendar .nlcm-event-inner,
#nlcm-calendar .nlcm-event-inner *,
#nlcm-calendar .nlcm-event-link,
#nlcm-calendar .fc-event,
#nlcm-calendar .fc-event a,
#nlcm-calendar .fc-list-event a,
#nlcm-calendar .fc-list-event-title a {
    color: #fff !important;
}

#nlcm-calendar .fc-event .fc-event-main,
#nlcm-calendar .fc-daygrid-event .fc-event-title,
#nlcm-calendar .fc-timegrid-event .fc-event-title {
    color: #fff !important;
}

.fc .fc-list-event:hover td {
    background-color: transparent;
}

/* Request form */
.nlcm-request-form {
    margin: 20px 0;
}

.nlcm-request-form__title {
    margin: 0 0 15px;
}

.course-dates {
    margin: 6px 0 10px;
    font-size: 14px;
    color: #666;
}

.course-dates .icon_calendar {
    margin-right: 6px;
    color: #999;
}

/* Utility classes */
.mb-3 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 3rem;
}

/* CTA link */
.book_now_btn {
    display: block;
}

/* Colors */
.hover-bg-wahrnehmung:hover {
    background-color: #36a9e1 !important;
}

.hover-bg-erkenntnis:hover {
    background-color: #95c11f !important;
}

.hover-bg-wissen:hover {
    background-color: #a3195b !important;
}

/* Member area: Status-Badges */
.nlcm-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 999px;
    background: #e9ecef;
    color: #333;
}
.nlcm-badge--requested { background: #fff3cd; color: #7a6400; }
.nlcm-badge--approved  { background: #d1e7dd; color: #0f5132; }
.nlcm-badge--completed { background: #cfe2ff; color: #084298; }
.nlcm-badge--intake    { background: #e2e3e5; color: #41464b; }
.nlcm-badge--default   { background: #e9ecef; color: #333; }

/* Member area: Kurs-Header mit Titel links, Status-Chip rechts */
.nl-member-course-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.nl-member-course-title {
    margin: 0 0 8px;
    flex: 1 1 auto;
}
.nl-member-course-header .nlcm-badge {
    flex: 0 0 auto;
    white-space: nowrap;
}