.improve-view .list-view,
.festivals-view .list-view,
.workshops-courses-view .list-view {
    display: none;
}

.list-view .list-view {
    display: flex;
}

.improve-view .card-view,
.festivals-view .card-view,
.workshops-courses-view .card-view {
    display: none;
}

.card-view .card-view {
    display: flex;
}

.card-view .card-view > div {
    padding: 0 7px;
}

.events-view-container.calendar-view .improve-view,
.events-view-container.calendar-view .workshops-courses-view,
.events-view-container.calendar-view .festivals-view {
    display: none;
}

#calendar {
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    display: none;
}

.calendar-view #calendar {
    display: block;
}

#calendar .header {
    height: 50px;
    width: 100%;
    background: rgb(255, 255, 255);
    text-align: center;
    position: relative;
    z-index: 100;
}

#calendar .header h1 {
    margin: 0;
    padding: 0;
    font-size: 20px;
    line-height: 50px;
    font-weight: 500;
    letter-spacing: 1px;
}

#calendar .left,
#calendar .right {
    position: absolute;
    width: 0px;
    height: 0px;
    border-style: solid;
    top: 50%;
    margin-top: -7.5px;
    cursor: pointer;
}

#calendar .left {
    border-width: 7.5px 10px 7.5px 0;
    border-color: transparent rgba(160, 159, 160, 1) transparent transparent;
    left: 20px;
}

#calendar .right {
    border-width: 7.5px 0 7.5px 10px;
    border-color: transparent transparent transparent rgba(160, 159, 160, 1);
    right: 20px;
}

@media (max-width: 620px) {
    #calendar .right {
        border-width: 19.5px 0 19.5px 30px;
        right: 0;
        top: 6px;
    }

    #calendar .left {
        border-width: 19.5px 30px 19.5px 0;
        left: 0;
        top: 6px;
    }
}

#calendar .month {
    /*overflow: hidden;*/
    opacity: 0;
}

#calendar .month.new {
    -webkit-animation: fadeIn 1s ease-out;
    opacity: 1;
}

#calendar .month.in.next {
    -webkit-animation: moveFromTopFadeMonth .2s ease-out;
    -moz-animation: moveFromTopFadeMonth .2s ease-out;
    animation: moveFromTopFadeMonth .2s ease-out;
    opacity: 1;
}

#calendar .month.out.next {
    -webkit-animation: moveToTopFadeMonth .2s ease-in;
    -moz-animation: moveToTopFadeMonth .2s ease-in;
    animation: moveToTopFadeMonth .2s ease-in;
    opacity: 1;
}

#calendar .month.in.prev {
    -webkit-animation: fadeIn 1s ease-out;
    opacity: 1;
}

#calendar .month.out.prev {
    -webkit-animation: fadeIn 1s ease-out;
    opacity: 1;
}

#calendar .week {
    background: #ffffff;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
}

#calendar .day {
    width: 14.2857%;
    text-align: left;
    border: 0 solid;
    padding: 4px 0 4px 12px;
    cursor: default;
    font-family: "Zilla Slab", serif;
    color: #000;
}

#calendar .datetime {
    text-align: center;
    padding: 1rem 3rem;
    border-right: .5px solid #e5e5e5;
}

#calendar .custom-date {
    border: 1px solid #e5e5e5;
    width: 14.2857%;
    height: 140px;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: left;
    vertical-align: top;
    background: #ffffff;
    position: relative;
    z-index: 100;
    color: #000000;
}

@media (max-width: 659px) {
    #calendar .custom-date {
        height: 80px;
        padding: 0 2px;
        text-align: center;
    }
}

#calendar .custom-date.other {
    background-color: #f9fafb;
    color: #666666;
}

#calendar .custom-date.has-events {
    transition: .1s;
    cursor: pointer;
}

#calendar .custom-date.has-events:hover,
#calendar .custom-date.has-events.selected {
    border-bottom: 6px solid rgb(151, 255, 0);
}

#calendar .custom-date.today {
    color: #ffc107;
}

#calendar .day-name {
    font-size: 9px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: rgba(255, 255, 255, .5);
    letter-spacing: .7px;
}

#calendar .day-number {
    font-weight: 600;
    font-size: 24px;
    letter-spacing: 1.5px;
}

#calendar .custom-date .day-events {
    list-style: none;
    margin-top: 3px;
}

#calendar .custom-date .day-events .event-title {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
    height: 36px;
    word-wrap: normal;
    color: black;
    font-size: 13px;
}

@media (max-width: 659px) {
    #calendar .custom-date .day-events .event-title {
        display: none;
    }
}

#calendar .blue {
    background: rgba(156, 202, 235, 1);
}

#calendar .orange {
    background: rgba(247, 167, 0, 1);
}

#calendar .green {
    background: rgba(153, 198, 109, 1);
}

#calendar .yellow {
    background: rgba(249, 233, 0, 1);
}

#calendar .details {
    position: relative;
    width: 100%;
    border-radius: 4px;
    overflow: hidden;
    transition: height 0.2s ease;
}

#calendar .details.in {
    -webkit-animation: moveFromTopFade .5s ease forwards;
    -moz-animation: moveFromTopFade .5s ease forwards;
    animation: moveFromTopFade .5s ease forwards;
}

#calendar .details.out {
    -webkit-animation: moveToTopFade .5s ease forwards;
    -moz-animation: moveToTopFade .5s ease forwards;
    animation: moveToTopFade .5s ease forwards;
}

.animated {
    overflow: hidden;
    transition: height 0.5s ease;
    /* Adjust duration and easing as needed */
}

#calendar .arrow {
    position: absolute;
    top: -5px;
    left: 50%;
    margin-left: -2px;
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 0 5px 5px 5px;
    border-color: transparent transparent rgba(164, 164, 164, 1) transparent;
    transition: all 0.7s ease;
}

#calendar .events {
    width: 100%;
}

#calendar .events.in {
    -webkit-animation: fadeIn .2s ease both;
    -moz-animation: fadeIn .2s ease both;
    animation: fadeIn .2s ease both;
}

#calendar .events.in {
    -webkit-animation-delay: .2s;
    -moz-animation-delay: .2s;
    animation-delay: .2s;
}

#calendar .event {
    font-size: 16px;
    line-height: 22px;
    letter-spacing: .5px;
    vertical-align: top;
    display: flex;
    align-items: center;
    gap: 2rem;
    border: .5px solid #e5e5e5;
    border-bottom: none;
}

#calendar .event:not():first-child {
    border-bottom: .5px solid #e5e5e5;
}

#calendar .event:last-child {
    border-bottom: .5px solid #e5e5e5;
}

#calendar .event.empty {
    color: #eee;
}

#calendar .event-category {
    height: 10px;
    width: 10px;
    display: inline-block;
    margin: 6px 0 0;
    vertical-align: top;
}

#calendar .event span {
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 18px;
    height: 36px;
    word-wrap: break-word;
    color: black;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 500;
}

.custom-date .day-events span {
    color: white;
    padding: 2px 4px;
    font-size: 1rem;
    border-radius: 9999px;
    display: block;
    width: 100%;
    text-align: center;
}

@media (max-width: 720px) {
    .custom-date .day-events span {
        font-size: .75rem;
    }
}

.custom-date .day-events span.color-Festival {
    background: #dc3545;
}

.custom-date .day-events span.color-Auftritt {
    background: #6c757d;
}

.custom-date .day-events span.color-Workshop {
    background: #007bff;
}

.custom-date .day-events span.more {
    border: none;
    color: #5c5c5c;
}

#calendar .legend {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 30px;
    background: rgba(60, 60, 60, 1);
    line-height: 30px;

}

#calendar .entry {
    position: relative;
    padding: 0 0 0 25px;
    font-size: 13px;
    display: inline-block;
    line-height: 30px;
    background: transparent;
}

#calendar .entry:after {
    position: absolute;
    content: '';
    height: 5px;
    width: 5px;
    top: 12px;
    left: 14px;
}

#calendar .entry.blue:after {
    background: rgba(156, 202, 235, 1);
}

#calendar .entry.orange:after {
    background: rgba(247, 167, 0, 1);
}

#calendar .entry.green:after {
    background: rgba(153, 198, 109, 1);
}

#calendar .entry.yellow:after {
    background: rgba(249, 233, 0, 1);
}

/* Animations are cool!  */
@-webkit-keyframes moveFromTopFade {
    from {
        -webkit-height: 0;
    }

    to {
        -webkit-height: auto;
    }
}

@-moz-keyframes moveFromTopFade {
    from {
        -moz-height: 0;
    }

    to {
        -moz-height: auto;
    }
}

@keyframes moveFromTopFade {
    from {
        height: 0;
    }

    to {
        height: auto;
    }
}

@-webkit-keyframes moveToTopFade {
    from {
        -webkit-height: 100px;
    }

    to {
        -webkit-height: 0;
    }
}

@-moz-keyframes moveToTopFade {
    from {
        -moz-height: 100px;
    }

    to {
        -moz-height: 0;
    }
}

@keyframes moveToTopFade {
    from {
        height: auto;
    }

    to {
        height: 0;
    }
}

@-webkit-keyframes moveToTopFadeMonth {
    to {
        opacity: 0;
        -webkit-transform: translateY(-30%) scale(.95);
    }
}

@-moz-keyframes moveToTopFadeMonth {
    to {
        opacity: 0;
        -moz-transform: translateY(-30%);
    }
}

@keyframes moveToTopFadeMonth {
    to {
        opacity: 0;
        -moz-transform: translateY(-30%);
    }
}

@-webkit-keyframes moveFromTopFadeMonth {
    from {
        opacity: 0;
        -webkit-transform: translateY(30%) scale(.95);
    }
}

@-moz-keyframes moveFromTopFadeMonth {
    from {
        opacity: 0;
        -moz-transform: translateY(30%);
    }
}

@keyframes moveFromTopFadeMonth {
    from {
        opacity: 0;
        -moz-transform: translateY(30%);
    }
}

@-webkit-keyframes moveToBottomFadeMonth {
    to {
        opacity: 0;
        -webkit-transform: translateY(30%) scale(.95);
    }
}

@-moz-keyframes moveToBottomFadeMonth {
    to {
        opacity: 0;
        -webkit-transform: translateY(30%);
    }
}

@keyframes moveToBottomFadeMonth {
    to {
        opacity: 0;
        -webkit-transform: translateY(30%);
    }
}

@-webkit-keyframes moveFromBottomFadeMonth {
    from {
        opacity: 0;
        -webkit-transform: translateY(-30%) scale(.95);
    }
}

@-moz-keyframes moveFromBottomFadeMonth {
    from {
        opacity: 0;
        -webkit-transform: translateY(-30%);
    }
}

@keyframes moveFromBottomFadeMonth {
    from {
        opacity: 0;
        -webkit-transform: translateY(-30%);
    }
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
}

@-moz-keyframes fadeIn {
    from {
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
}

@-webkit-keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@-moz-keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@-webkit-keyframes fadeOutShink {
    to {
        opacity: 0;
        padding: 0px;
        height: 0px;
    }
}

@-moz-keyframes fadeOutShink {
    to {
        opacity: 0;
        padding: 0px;
        height: 0px;
    }
}

@keyframes fadeOutShink {
    to {
        opacity: 0;
        padding: 0px;
        height: 0px;
    }
}

.loader {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-block;
    border-top: 3px solid #555555;
    border-right: 3px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    position: absolute;
    top: 100px;
    opacity: 0;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.events-mark-wrapper {
    text-align: right;
    margin-top: 10px;
}

.events-mark-wrapper .badge {
    border-radius: 9999px;
}

.events-mark-wrapper .badge:not(:last-child) {
    margin-right: 10px;
}

.events-view-container.only-list-view {
    display: block;
    justify-content: center;
    position: relative;
}

.events-view-container.only-list-view > * {
    display: none;
}

.events-view-container.only-list-view .list-view {
    display: block;
}

.events-view-container.only-list-view.calendar-view > div {
    display: block;
}

.calendar-view .improve-view {
    display: none;
}