.event-box-new  {

    display: grid;
    grid-template-columns: 240px auto;
    grid-template-areas: "l r";
    grid-gap: 1em;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;

    background: #fefefe;

    & + .event-box-new  {
        margin-top: 1em;
    }

    .left   {
        grid-area: l;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .middle {
        grid-area: m;
        position: relative;
    }

    .right  {
        grid-area: r;
    }

    .left, .right   {  
        padding: 1em;
    }

    .left   {
        line-height: 1.25;
    }

    figure  {
        display: block;
        width: 100%;
        position: relative;
        overflow: hidden;

        svg {
            display: block;
            width: 100%;
            height: auto,
        }

        img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            transition: transform 300ms ease-out;
            transform: scale(1.02);
        }
    }

    &:hover figure img  {
        transform: scale(1.05);
    }

    .event-box-title    {
        font-weight: 700;
        text-transform: uppercase;
        font-size: 20px;
        line-height: 1;
        margin-bottom: 1em;
        max-width: 70%;
    }

    .event-box-location {
        font-weight: 700;
        font-size: 16px;
        line-height: 1;
    }

    .event-box-desc {
        font-size: 18px;
        line-height: 1.25;
        margin-bottom: 0.5em;
    }

    .event-box-people   {
        font-size: 16px;
        margin-bottom: 1em;
        display: none !important;
    }

    .event-special-bottom   {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .event-box-last-line    {
        display: flex;
        justify-content: space-between;
        margin-top: 1em;
        width: 100%;
        line-height: 1;
    }

    .event-box-tickets  {
        align-self: flex-end;
        margin-top: auto;
        text-align: right;
        display: inline-flex;
        align-items: center;

        .booking-state  {
            margin-right: 0.5em;
            display: none;
        }

        &:first-child:last-child    {
            margin-left: auto;
        }
    }

    .right  {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    &.is-cancelled  {
        position: relative;
        overflow: hidden;

        .left, .middle, .right  {  
            opacity: 0.5;
        }

        /*
        &::before   {
            content: '';
            width: 200%;
            height: 10px;
            background: #d2005f;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(10deg);
            z-index: 10;
            opacity: 0.5;
        }

        &::after    {
            content: 'abgesagt';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-weight: 700;
            text-transform: uppercase;
            font-size: 50px;
            z-index: 11;
        }
        */
    }

    .event-box-special  {
        display: flex;
        flex-direction: column;
        margin-top: auto;
        letter-spacing: 1px;
        display: inline-flex;
        text-transform: uppercase;
        font-weight: normal;
        color: #B40C54;

        &:not(:first-child) {
            margin-top: 0.25em;
        }

        &.only-mobile:first-child   {
            margin-top: 0 !important;
        }
    }

    /*
    &.notice-color-red .event-box-special  { color: #D2005F; }
    &.notice-color-green .event-box-special  { color: #D2C814; }
    &.notice-color-orange .event-box-special  { color: #FF5F00; }
    &.notice-color-turquoise .event-box-special  { color: #00BED2; }
    */

    .event-box-target-audience  {

        &:first-child   {
            margin-top: 0 !important;
        }
    }

}

@media (max-width: 1000px) and (min-width: 781px)  {
    .event-box-new  {
        grid-template-areas: "l" "r";
        grid-template-columns: 300px auto;
    }


}


@media (min-width: 1001px)  {

    .event-box-last-line    {
        margin-top: 0.5em !important;
    }
    
    .event-box-special + .event-box-last-line   {
        margin-top: 1.5em !important;
    }

    .event-box-location {
        margin-top: 1em;
        width: 100%;
    }

    .event-box-new .right  {
        padding-left: 0 !important;
    }

    .event-box-last-line    {
        flex-wrap: wrap;
    }

}


@media (max-width: 1000px)  {
    .only-desktop, .desktop-only    {
        display: none !important;
    }

    .event-box-tickets  {
        margin-left: auto;
    }

    .event-box-target-audience  {
        text-align: right;
        margin-top: 0.25em;
    }

    .event-box-location {
        font-size: 13px !important;
    }

    .event-box-target-audience  {
        text-align: center;
    }

    .event-box-location {
        text-align: center;
    }

    .event-box-people    {
        font-size: 13px !important;
    }

    .event-box-title    {
        margin-bottom: 0.5em !important;
    }
}

@media (min-width: 1001px)  {
    .only-mobile, .mobile-only  {
        display: none !important;
    }
}


.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {
    color: white;
}

#filter-date    {
    padding: 0.25em 1em;
    max-width: 160px;
}

.calendar-filters-new   {
    display: flex;
    flex-direction: column;
    margin-top: 1.5em;
}

.filter-expander-icon   {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    svg {
        display: block;
        width: 2rem;
        height: auto;
        margin-right: 1em;
    }
    div {
        font-size: 20px;
    }
    cursor: pointer;
}

.calendar-filters-new    {
    *:focus {
        outline: 2px #d2005f solid;
    }
}

.filter-expansion   {
    display: none;
    padding: 1em;
    background: #fff;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    border: 2px black solid;
}

.filter-expander-icon.open + .filter-expansion  {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.filter-expansion-title {
    font-size: 25px;
    line-height: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.filters-close  {
    font-size: 20px;
    line-height: 18px;
    font-weight: 700;
    text-transform: uppercase;
    color: #d2005f;
    background: #fff;
    cursor: pointer;
    display: inline-block;
    border: none;
}

.filter-expansion-list  {
    display: flex !important;
    flex-direction: column;

    margin-top: 1em;
    margin-bottom: 2em;
    
    margin-left: -1em;

    > * {
        margin-left: 1em;
        margin-top: 0.5em;
        min-width: Min(300px, 80vw);
    }

}


@media (min-width: 1001px)  {
    
    .filter-expansion-list  {
        max-width: 70%;
    }
}

.filter-expansion   {


}

.filters-first  {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    .filter-date    {
        margin-right: 1.5em;
    }
    margin-bottom: 1em;
}


@media (max-width: 1000px) {

    .event-box-new  {
        grid-gap: 0;
        grid-template-areas: "l" "r";
        grid-template-columns: 100%;
    }

    .exhibition-box-new  {
        grid-gap: 0;
        grid-template-areas: "l" "r";
        grid-template-columns: 100%;
    }

    
    .event-box-new .right {
        padding-top: 0 !important;
    }

    .left   {
        padding-bottom: 2em !important;
        flex-direction: row !important;
    }
    
    .event-box-title    {
        max-width: none !important;
    }

    .exhibition-box-title    {
        max-width: 100%;
    }

    .filter-expansion   {
        max-width: 100%;
        margin-top: 0.25em;
    }
}



/* Exhibitions page */

.exhibition-box-new  {

    display: grid;
    grid-template-columns: 200px auto;
    grid-template-areas: "l r";
    grid-gap: 1em;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;

    background: #fefefe;

    & + .exhibition-box-new  {
        margin-top: 1em;
    }

    .left   {
        grid-area: l;
    }

    .middle {
        grid-area: m;
        position: relative;
    }

    .right  {
        grid-area: r;
    }

    .left, .right   {  
        padding: 1em;
    }

    .left   {
        line-height: 1.25;
    }

    figure  {
        display: block;
        width: 100%;
        position: relative;
        overflow: hidden;

        svg {
            display: block;
            width: 100%;
            height: auto,
        }

        img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: block;
            object-fit: cover;
            transition: transform 300ms ease-out;
            transform: scale(1.02);
        }
    }

    &:hover figure img  {
        transform: scale(1.05);
    }

    .exhibition-box-title    {
        font-weight: 700;
        text-transform: uppercase;
        font-size: 20px;
        line-height: 1;
        margin-bottom: 0.75em;
        max-width: 70%;
    }

    .exhibition-box-location {
        font-weight: 700;
        text-transform: uppercase;
        font-size: 20px;
        line-height: 1;
        margin-top: 1em;
    }

    .exhibition-box-desc {
        font-size: 18px;
        line-height: 1.25;
        margin-bottom: 0.5em;
    }

    .exhibition-box-people   {
        margin-bottom: 1em;
    }

    .exhibition-box-tickets  {
        align-self: flex-end;
        margin-top: auto;
        text-align: right;
        display: inline-flex;
        align-items: center;

        .booking-state  {
            margin-right: 0.5em;
        }
    }

    .right  {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    &.red   {
        background-color: #d2005f;
        color: white;
        strong  {
            color: white;
            font-size: 1em;
        }
    }

    &.is-cancelled  {
        position: relative;
        overflow: hidden;

        .left, .middle, .right  {  
            opacity: 0.5;
        }

        &::before   {
            content: '';
            width: 200%;
            height: 10px;
            background: #d2005f;
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(10deg);
            z-index: 10;
            opacity: 0.5;
        }

        &::after    {
            content: 'abgesagt';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-weight: 700;
            text-transform: uppercase;
            font-size: 50px;
            z-index: 11;
        }
    }

    .exhibition-box-special  {
        position: absolute;
        top: 1em;
        letter-spacing: 1px;
        left: 0em;
        z-index: 5;
        display: inline-flex;
        text-transform: uppercase;
        color: white;
        background: #d2005f;
        margin-bottom: 1.5em;
        padding: 0.25em 0.75em;
        font-weight: bold;
        box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    }


}




@media (min-width: 1001px)  {
    .event-box-new .right  {
        padding-left: 0 !important;
    }
}




/* Multiselect component */
.multiselect    {

    max-width: 10rem;
    box-sizing: border-box;

    position: relative;

    &:focus-within .ms-title, &:hover .ms-title  {
        border-color: #d2005f;
    }

    [tabindex]:focus  {
        /*outline: revert;*/ 
        outline: 2px #d2005f solid;
    }

    .ms-title   {
        padding: 0.25em 1.5em 0.25em 1em;
        border: 1px black solid;

        &::after    {
            opacity: 0.6;
            content: '▶';
            position: absolute;
            top: 0.25em;
            right: 0.5em;
            transform: rotate(90deg);
            /*transition: transform 300ms linear;*/
        }

        &[aria-expanded="true"]::after {
            transform: rotate(-90deg);
        }
    }

    .ms-title, .ms-option   {
        cursor: pointer;
    }

    &.has-one   {
        .ms-title {
            font-weight: bold;
            color: #d2005f;

            &::after    {
                content: attr(data-selected-filter-count);
                margin-left: 0.25em;
                color: black;
            }
        }
    }

    .ms-title:not([aria-expanded="true"]) + .ms-options {
        display: none;
    }

    .ms-options {
        max-height: Min(15rem, 80vh);
        overflow-y: auto;
        position: absolute;
        top: 100%;
        left: 0;
        width: clamp(100%, 20rem, 100vw);
        display: flex;
        flex-direction: column;
        background: white;
        border: 1px black solid;
        z-index: 10;

        &:focus-within, &:hover  {
            border-color: #d2005f;
        }
    }

    .ms-option  {
        padding: 0.25em 1em;

        &:first-child   {
            margin-top: calc(0.25em * 2);
        }

        &:last-child   {
            margin-bottom: calc(0.25em * 2);
        }

        &[data-selected="true"] {
            font-weight: bold;
            color: #d2005f;

            &::after    {
                content: '⨯';
                margin-left: 0.25em;
                color: black;
            }
        }
    }

}


/* New expanders */
.expanders2025  {
    margin-top: 2em;
    border-top: 2px #ccc solid;
    border-bottom: 2px #ccc solid;
    padding-top: 0.5em;
    padding-bottom: 0.5em;

    
    @media (min-width: 781px) {
        max-width: 50%;
    }
}

.expander2025   {

    & + .expander2025   {
        border-top: 2px #ccc solid;
        padding-top: 0.5em;
        margin-top: 0.5em;
    }

    font-size: 20px;
    @media (max-width: 1280px) {
        font-size: 16px;
    }
    line-height: 1.5;

    .expander-title {
        font-weight: bold;
        text-transform: uppercase;
        color: #d2005f;
        position: relative;
        cursor: pointer;
        outline: revert;

        &::after    {
            margin-left: 0.5em;
            content: '+';
            line-height: 1;
        }
    }

    .expander-content   {
        display: none;
        flex-direction: column;
    }

    .expander-title[aria-expanded="true"]   {
        &::after    {
            content: '–';
        }

        & + .expander-content   {
            display: flex;
            margin-top: 0.25em;
        }
    }
}


/* Event page new */
.event-new  {

    display: flex;
    flex-direction: column;
    font-size: 1.25rem;

    .event-head {
        display: grid;
        grid-template-columns: 100%;
        grid-template-areas: "info";

        &:has(.left)   {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            grid-template-areas: "img info";

        }

        &:not(:has(.left)) .right   {
            background: #E8E8E8;
        }

        .left   {

            grid-area: img;
            position: relative;
            background: #E8E8E8;

            --leftPad: 2rem;

            img {
                position: absolute;
                top: var(--leftPad);
                left: var(--leftPad);
                width: calc(100% - 2*var(--leftPad));
                height: calc(100% - 2*var(--leftPad));
                object-fit: contain;
            }
        }

        .right  {

            grid-area: info;
            padding: 2rem;
            display: flex;
            flex-direction: column;

            > * + * {
                margin-top: 1em;
            }
        }

        h1.title    {
            margin-top: 1.25em;
            line-height: 1.1;
            font-size: 2em;
            font-weight: bold;
        }

        h2.subtitle {
            font-size: 1em;
            font-weight: normal;
            text-transform: none;
            margin-top: 0.5em;
        }

        .price  {
            margin-top: 2em;
        }

    }


    .topline, .bottomline   {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        > *:last-child:not(:first-child)    {
            text-align: right;
        }
    }

    .bottomline {
        grid-template-areas: "target-audience tickets";
        margin-top: 1.5em !important;

        .target-audience {
            grid-area: target-audience;
        }

        .tickets    {
            grid-area: tickets;
            text-align: right;
            font-weight: bold;
        }
    }


    .topline > *:last-child:not(:first-child) {
        font-weight: 700;
    }

    .booking-state  {
        display: none;
    }

    div.signup-button   {
        a   {
            display: inline-block;
            padding: 0.5em 1.5em;
            border: 1.5px #ccc solid;
            background: #fff;
            box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
            font-weight: bold;
            text-transform: uppercase;
            color: #45DFE7;
        }
    }



    .event-body {
        display: flex;
        flex-direction: column;
        padding: 4.375rem 2rem 2rem 2rem;

        > * + * {
            margin-top: 1em;
        }

        h2.subtitle {
            font-weight: normal;
            font-size: 1.5em;
            margin-bottom: 0.5em;
            line-height: 1.1;
        }

        .more-info  {
            font-size: 0.8em;
            margin-top: 3em;
        }

        .ribbon.profile .left    {
            width: 180px;

            img {
                height: auto;
                width: 100%;
            }
        }
    }
}

/*
@media (min-width: 1001px)  {
    .event-head {
        min-height: calc(100vh - 96px);
    }
}
*/

body[data-object="prospect"]    {

    

}

@media (max-width: 1000px)  {

    .event-new  {
        font-size: 1.0rem;

        .event-head {
            grid-template-areas: "info";

            &:has(.left)   {
                grid-template-columns: 100%;
                grid-template-areas: "info" "img";
            }

            .left  {
                min-height: 60vh;
            }
        }
    }

    
}




/* Aussichten */

.red-circle {

    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    padding: Min(15%, 4em);
    overflow: hidden;
    width: 100%;

    max-width: 37.5rem;
    margin: 0 auto 32px auto;

    --circlecol: #d2005f;
    --textcol: #ffffff;

    /* Inner positioner */
    > div   {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        color: var(--textcol);

        * + *   {
            margin-top: 1.0rem;
        }
    }

    &::before   {
        content: '';
        z-index: -1;
        position: absolute;
        inset: 0;
        background: var(--circlecol);
        border-radius: 50%;
    }

    .rc-image-holder    {

        width: 40%;
        max-width: 200px;
        
        img {
            display: block;
            width: 100%;
        }
    }

    @media screen and (max-width: 1200px) {
        .rc-image-holder    {
            max-width: 140px;
        }
    }

    line-height: 1.15;

    .rc-subtitle    {
        font-size: 22px;
        text-align: center;
    }

    .rc-title   {
        font-size: 41px;
    }

    .rc-undertitle  {
        font-size: 16px;
        text-align: center;
    }

}

.ribbon-box.red-fill   {
    width: 100%;
}