.header-area .menu ul li.menu-spacer {
	margin-left: 2rem !important;
	margin-right: 2rem !important;
}

.filtern,
.button-holder {
    flex-wrap: wrap;
}
.filtern {
    gap: 10px;
}
.filtern-left input {
    border-width: 1px;
    padding: 0 5px;
}

/* Filter Reset Button */
.filter-reset-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 15px;
    background-color: #ededed;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 12px;
    color: #000;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.filter-reset-btn:hover {
    background-color: #e0e0e0;
    border-color: #c4c4c4;
}
.filter-reset-btn i {
    font-size: 10px;
}

/* Month Picker Styles - matches .select select styling */
.month-picker-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.month-picker {
    width: 179px;
    height: 30px;
    padding: 0 25px 0 5px;
    border: solid 1px #053787;
    border-radius: 0;
    font-size: var(--xxs);
    font-weight: normal;
    background-color: #fff;
    background-image: url(../img/arrow-down.svg);
    background-size: 12px;
    background-position: 97% center;
    background-repeat: no-repeat;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.month-picker:hover,
.month-picker:focus {
    outline: none;
}
.month-picker::placeholder {
    color: #000;
    font-weight: normal;
}
.month-picker-clear {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    padding: 2px 4px;
    cursor: pointer;
    color: #666;
    font-size: 10px;
    line-height: 1;
    z-index: 1;
}
.month-picker-clear:hover {
    color: var(--color-magenta);
}

/* Flatpickr Customization */
.flatpickr-calendar {
    font-family: inherit;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.flatpickr-months {
    padding: 10px 5px 5px;
}
.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    padding: 5px 10px;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--color-magenta);
}
.flatpickr-current-month {
    font-size: 14px;
    font-weight: 600;
}
.flatpickr-monthSelect-month {
    font-size: 13px;
    padding: 12px 8px;
    border-radius: 6px;
    transition: all 0.15s ease;
}
.flatpickr-monthSelect-month:hover {
    background-color: #f5f5f5;
    border-color: #f5f5f5;
}
.flatpickr-monthSelect-month.selected,
.flatpickr-monthSelect-month.startRange,
.flatpickr-monthSelect-month.endRange {
    background-color: var(--color-magenta);
    border-color: var(--color-magenta);
}
.flatpickr-monthSelect-month.inRange {
    background-color: rgba(222, 22, 130, 0.15);
    border-color: rgba(222, 22, 130, 0.15);
    box-shadow: -5px 0 0 rgba(222, 22, 130, 0.15), 5px 0 0 rgba(222, 22, 130, 0.15);
}
.flatpickr-monthSelect-month.today {
    border-color: var(--color-magenta);
}

.nomargin-bottom {
    margin-bottom: 0;
}

.course-description .wpb-content-wrapper > .vc_row:first-of-type,
.lounge-description .wpb-content-wrapper > .vc_row:first-of-type {
    padding-top: 0 !important;
}

.course-description .wpb-content-wrapper > .vc_row:last-of-type,
.lounge-description .wpb-content-wrapper > .vc_row:last-of-type {
    padding-bottom: 0 !important;
}

.course-description .wpb-content-wrapper > .vc_row:last-of-type .wpb_text_column:last-child,
.lounge-description .wpb-content-wrapper > .vc_row:last-of-type .wpb_text_column:last-child {
    margin-bottom: 0 !important;
}

@media only screen and (max-width: 991px) {
    .search_form,
    .filtern-left {
        width: 100%;
    }
    .search_form {
        max-width: 465px;
    }
    .menu ul li {
        display: block;
        white-space: nowrap;
    }
    .footer-top .menu {
        width: 100%;
        max-width: 100%;
    }
    .footer-top .menu-nav {
        width: 100%;
    }
    .news-inner {
        gap: 15px;
    }

    .referent-header{
        padding: 130px 0;
    }
}

@media only screen and (max-width: 767px) {
    .register-area:after,
    .register-area:before {
        width: calc(100% - 15px);
    }
    .footer-top .menu-nav {
        flex-direction: column;
    }
    .grid-item {
        width: 100%;
        max-width: 100%;
    }
    .grid-item {
        width: 100%;
        max-width: 100%;
    }
    .single-line-form > form > .wpforms-field-container {
        width: 100%;
    }
    .grid-container.masonry-enabled .grid-item {
        width: 100%;
        position: unset !important;
    }
    .grid-container.masonry-enabled {
        display: flex;
        flex-direction: column;
        height: auto !important;
    }
}
@media only screen and (max-width: 575px) {
    .filtern-left .select {
        width: 100%;
    }
    .filtern-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .filtern-left input,
    .select select {
        width: 100%;
    }
    .month-picker-wrapper {
        width: 100%;
    }
    .month-picker {
        width: 100%;
    }
    .filter-reset-btn {
        width: 100%;
        justify-content: center;
    }
    .single-line-form > form > .wpforms-field-container {
        width: 100%;
    }
    .footer-social-icons-and-spi {
        display: flex;
        flex-direction: column-reverse;
        justify-content: flex-start;
        gap: 16px;
    }
    .footer-top .social-icon {
        justify-content: flex-start;
        margin-bottom: 20px;
    }
}
/* Timer Date & Time Display */
.timer .timer-datetime {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.timer .timer-datetime > i {
    margin-top: 2px;
}
.timer .timer-date-time-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}
.timer .timer-date {
    font-weight: 600;
}
.timer .timer-time {
    font-size: 0.85em;
    opacity: 0.9;
}

/* Ausgebucht Tag */
.ausgebucht-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--color-magenta);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.ausgebucht-tag span {
    display: block;
    line-height: 1;
}

@media only screen and (max-width: 420px) {
    .select {
        flex-direction: unset;
        flex-wrap: wrap;
    }
    .select select {
        width: calc(100% - 85px);
    }
    .ausgebucht-tag {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}