:root {
    --margin: 1.25rem;
    --font-size: 1.15625rem;
    --line-height: 1.315rem;
    --clamp: clamp(1rem, 2.9vw , 5rem);
    --letter-spacing: .00625rem;
    --line-thickness: 0.0625rem;
    --line-color: lightgrey;
    --padding: .3125rem;
}

body {
    font-family: 'Times New Roman', Times, serif;
    font-size: var(--font-size);
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
    -webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

main {
    padding: var(--clamp);
}

main.white {
    color: white;
}

main.black {
    color: black;
}

em { font-style: italic;  }
.artists > span:not(:last-of-type)::after { content: ', '; }

/*.artists > span { white-space: nowrap; }*/

.active, .active > * { 
    text-decoration: underline;
    text-underline-offset: .125rem;
    text-decoration-thickness: var(--line-thickness);
}

@media (hover: hover) {
    a:hover, a:hover *, thead button:hover, tbody tr:hover *, input:hover::placeholder, .link:hover > * { 
        text-decoration: underline;
        text-underline-offset: .125rem;
        text-decoration-thickness: var(--line-thickness);
    }

    ul#news li:not(.venue) a:hover, ul#news li:not(.venue) a:hover *:not(.ignore) {
        text-decoration: none;
    }

    li.venue:hover > a {
        text-decoration: underline;
        text-underline-offset: .125rem;
        text-decoration-thickness: var(--line-thickness);
    }
    
}

header {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;
    z-index: 1;
}

header h1 { text-transform: uppercase; }

header > div:first-child {
    display: flex;
    margin-bottom: calc(var(--margin) * 2);
    justify-content: space-between;
}

header > div:first-child > * {
    width: calc(50% - var(--margin) / 2);
    text-align: center;
}

nav > ul {
    width: 100%;
    display: inline-flex;
    justify-content: center;
}

nav > ul > li {
    margin: 0 .5rem;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    max-width: calc( (100% - var(--margin) / 2) / 6 * 4 );
    margin: 0 auto;
    padding-top: var(--margin);
}

.content.full {
    max-width: 100%;
}

.content > div {
    margin: var(--margin) 0;
}

.content > div.text {
    margin-bottom: calc(var(--margin) - .25rem);
}

.content > div:not(.text):not(.cv_press) > ul:not(.list) {
    max-width: calc( (100% - var(--margin) / 2) / 6 * 4 );
    margin: 0 auto;
}

.content > div > ul:not(#multilang):not(#cv):not(.list) > li{
    margin-top: var(--margin);
}

.content > div > ul.list {
    display: flex;
    flex-direction: column;
    margin-top: var(--margin);
}

.content > div > ul.list > li > a{
    display: flex;
}

.content > div > ul.list > li > a > div:nth-child(2) {
    flex: 1 1;
    text-align: left;
    margin: 0 1rem;
}



.content > div > ul.list p span:not(:last-of-type)::after {
    content: ', ';
}

.content > div > ul.list p em {
    margin-right: 1rem;
}

.content > div > ul.list p em {
    font-style: normal;
}

.switch { margin-bottom: var(--margin); }

.content > div > ul > li img {
    width: 100%;
    height: auto;
    font-size: 0;
}

.content > div > ul > li:not(:first-child) img {
    margin-top: var(--margin);
}

.content > div.past > ul > li img {
    margin-bottom: .375rem; /*.25rem;*/
}

.content > div.past > div {
    width: 100%;
    display: inline-flex;
    justify-content: center;
    position: relative;
}

.content > div.past > div > div {
    position: absolute;
    right: 0;
}

.content > .cv_press > ul > li, .content > div > ul.list > li {
    margin-top: 0;
    padding: var(--padding) 0;
    border-bottom: var(--line-thickness) solid var(--line-color);
}

.content > .cv_press > ul, .content > div > ul.list {
    border-top: var(--line-thickness) solid var(--line-color);
}

.content > .cv_press > ul > li div {
    display: flex;
    justify-content: space-between;
    text-align: left;
}

.content > div > h2 {
    margin-bottom: .9375rem;
}

.content > div.current > ul > li img {
    margin-top: var(--margin);
}

.content > div.upcoming > ul > li img {
    margin-top: var(--margin);
}

.content > div.past > table, .content > div.past.table > ul, .content > div.past> ul.list {
    display: none;
}

.content > div.past.table > ul.list {
    display: block;
}

.content > div.past.table > table {
    display: table;
}

.text ul > li:nth-child(even) {
    display: none;
}

/*
.text p.snippet > span:first-child:after {
    content: '... ';
}
*/

.text ul > li > p.snippet > span:last-child {
    display: none !important;
}

.text p:not(:last-of-type) {
    margin-bottom: var(--line-height);
}

.text p a, a.venue {
    text-decoration: underline;
    text-underline-offset: .125rem;
    text-decoration-thickness: var(--line-thickness);
}

.text.bottom {
    margin-top: 1.625rem;
    text-align: left;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--line-height) + .4375rem) 1rem;
    justify-content: center;
    margin-top: var(--margin);
}

.gallery li.landscape, div.gallery > figure {
    width: calc( (100% - var(--margin) / 2) / 8 * 6 );
}

.gallery li.portrait {
    width: calc(50% - var(--margin) / 2);
}

.gallery figure, .related figure {
    display: flex;
    flex-direction: column;
}

.related figcaption {
    margin-top: .625rem;
    margin-bottom: .4375rem;
}

.gallery figcaption {
    margin-top: .1875rem; /* .5625rem; .4375rem; */
    margin-bottom: .25rem; /* -.25rem; */
    text-align: left;
}

.gallery img {
    width: 100%;
    height: auto;
}

ul.artists {
    margin-top: calc( var(--margin) - .1837rem );
    display: flex;
    flex-direction: column;
}

ul.artists > li > div {
    position: fixed;
    z-index: -1;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    opacity: 0;
    
}

ul.artists > li {
    display: inline-block;
    line-height: 1.5;
}

table {
    width: 100%;
    text-align: left;
    margin-top: var(--margin);
}

table, .list {
    font-size: 1.125rem;
}

thead {
    font-size: 1rem;
}

thead, tbody {
    width: 100%;
}

tr {
    border-bottom: var(--line-thickness) solid var(--line-color);
}


tr > *:nth-child(1) {
    width: 25.4%;
    padding-right: var(--margin);
}

tr > *:nth-child(2) {
    width: 25.4%;
    padding-right: var(--margin);
}

tr > *:nth-child(3){
    width: 35%;
    padding-right: var(--margin);
}

tr > *:nth-child(4) {
    width: 15%;
    padding-left: 0;
}

td, th {
    padding: var(--padding) 0;
}

td:last-child {
    text-align: right;
}

button {
    cursor: pointer;
}

.btn.active.desc::after {
    margin-left: var(--padding);
    content: '↓';
    display: inline-block;
}

.btn.active.asc::after {
    margin-left: var(--padding);
    content: '↑';
    display: inline-block;
}
  

.artists a + div {
    transition: opacity cubic-bezier(.4,0,.2,1) .4s;
}

@media (hover: hover) {
    .artists a:hover + div {
        opacity: 1;
        transition: opacity cubic-bezier(.4,0,.2,1) .4s;
    }
}

#news li {
    margin-bottom: calc( var(--margin) + .625rem );
}

#counter {
    margin-top: calc(var(--margin) * 2);
    display: none;
}

#slider {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    position: absolute;
    top: 0; left: 0;
    z-index: -1;
    overflow: scroll;
    scroll-snap-type: y mandatory;
}

#slider li {
    width: inherit;
    height: 100vh;
    height: 100dvh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

#slider li figure {
    width: inherit;
    height: inherit;
    position: relative;
    display: flex;
}

#slider li figure > figcaption {
    position: absolute;
    bottom: calc(var(--margin) * 2);
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    padding: 0 var(--clamp) 0 var(--clamp);
}

#slider li figure > img {
    width: 100%;
    min-height: 100%;
    object-fit: cover;
}

form {
    margin-bottom: var(--margin);
}

input:focus::placeholder {
    color: transparent;
}

.hide {
    display: none;
}

#imprint {
    margin-top: var(--margin);
}

.text.imprint {
    text-align: center;
}

#logos {
    margin-top: calc(var(--margin) * 3);
}

#logos p {
    text-align: left;
}

#logos ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: unset;
    align-items: end;
}

#logos ul li {
    margin-top: 0 !important;
    margin-bottom: calc(var(--margin) / 2);
    margin-right: 1rem;
}

#logos ul li.landscape {
    width: 12.5rem;
}

#logos ul li.portrait, #logos ul li.square {
    width: 4.375rem;
} 

#logos ul li img {
    margin: unset;
    width: auto;
    height: auto;
}

.gallery li.invitation {
    width: 100%;
    margin-top: calc(var(--margin) * 3);
    margin-bottom: calc(var(--margin) * 3);
}

.gallery li.invitation.landscape figure {
    max-width: calc(17.5 * 49.84px);
    width: calc( (100% - var(--margin) / 2) / 8 * 6 );
    margin: 0 auto;
}

.gallery li.invitation.portrait figure{
    max-width: calc(12 * 49.84px);
    width: calc( (100% - var(--margin) / 2) / 8 * 6 );
    margin: 0 auto;
}

.gallery li.invitation img, div.upcoming div.invitation img {
    box-shadow: 0px .125rem .375rem #D5D5D5;
    border-radius: .1875rem;
}

div.upcoming div.invitation {
    width: 100%;
}

div.upcoming div.invitation.landscape > img {
    max-width: calc(17.5 * 49.84px);
    width: calc( (100% - var(--margin) / 2) / 8 * 6 );
}

div.upcoming div.invitation.portrait > figure {
    max-width: calc(12 * 49.84px);
    width: calc( (100% - var(--margin) / 2) / 8 * 6 );
}

#newsletter input:first-child {
    width: 100%;
}

#newsletter input:last-child {
    cursor: pointer;
}

.flip { 
    cursor: pointer; 
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
}

.flip div {
    position: relative;
    padding-bottom: calc(var(--margin) * 3);
    width: calc( (100% - var(--margin) / 2) / 8 * 6 );
    margin: 0 auto;
    transition: transform .6s ease-out;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -moz-transform-style: preserve-3d;
    -o-transform-style: preserve-3d;
    -ms-transform-style: preserve-3d;
    display: flex;
    justify-content: center;
}

.flip.landscape div {
    max-width: calc(17.5 * 49.84px);
}

.flip.portrait div {
    max-width: calc(12 * 49.84px);
}

.flip figure {
    width: 100% !important;
    position: absolute;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
}

.flip.it div{
    transform: rotateY(180deg) translateZ(1px);
}

.flip figure:last-child {
    transform: rotateY(180deg) translateZ(1px);
}

.flip figcaption {
    background-color: white;
}

.announcement {
    margin-bottom: var(--margin);
}

/*
@media (min-width: 2080px) { 
    .text {
        width: calc( (100% - var(--margin) / 2) / 8 * 4 );
        align-self: center;
    }
}

@media ((min-width: 1047px) and (max-width: 2079px)) { 
    .text {
        width: 61.75rem;
        align-self: center;
    }
}
*/

@media (min-width: 769px) {
    .content > .cv_press button {
        cursor: default;
    }
    .content > .cv_press button.active {
        text-decoration: none;
    }

    .content .text.mobile, .content div.mobile {
        display: none;
    }

    thead.mobile {
        display: none;
    }
}

@media (hover: hover) {
    .content div.mobile:not(.text) {
        display: none;
    }
}

@media (max-width: 768px) {

    html {
        font-size: 13px;
    }

    .content .text.desktop {
        display: none;
    }

    header > div:first-child {
        flex-direction: column;
        margin-bottom: 0;
    }
    header > div:first-child > * {
        width: 100%;
    }
    header > div:first-child > nav {
        order: 1;
        margin-bottom: calc(var(--margin) * 2);
    }
    header > div:first-child > div {
        order: 2;
    }

    .unseen {
        margin-top: calc(var(--margin) * 2);
    }

    header > div:last-child:not(.unseen) {
        display: none;
    }
    .content > div:not(.text):not(.cv_press) > ul {
        max-width: unset;
    }

    
    thead > tr > th:not(:first-child) { display: none; }
    thead > tr > th:first-child {
        font-size: var(--font-size);
    }
    thead:not(.mobile) {
        display: none;
    }

    td, th {
        padding: 0;
    }
    
    tr {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        padding-top: var(--padding);
        padding-bottom: var(--padding);
    }

    tr > * {
        flex: 1 1 50%;
    }

    tr > *:nth-of-type(-n+1)  {
        flex: 1 1 100%;
    }

    tr > *:last-child {
        flex: 1 1 50%;
        align-self: flex-end;
    }

    tr > *:nth-child(3) p {
        font-style: italic;
    }

    .gallery li.landscape, 
    .gallery li.portrait, 
    div.gallery > figure, 
    .gallery li.invitation.landscape > figure, 
    .gallery li.invitation.portrait > figure, .flip > div {
        width: 100%;
    }

    .gallery li.invitation.portrait {
        width: 80%;
    }

    .content > .cv_press ul li {
        display: none;
    }

    .content > .cv_press ul.press li:not(.cv) {
        display: block;
    }

    .content > .cv_press ul.press li:not(.cv) {
        display: block;
    }

    .content > .cv_press ul.cv li.cv {
        display: block;
    }

    .content > div:not(.text):not(.cv_press) > ul:not(.list) {
        max-width: unset;
    }

    ul#news li:not(.venue) .ignore, li.venue > a {
        text-decoration: underline;
        text-underline-offset: .125rem;
        text-decoration-thickness: var(--line-thickness);
    }
    ul.list li span {
        display: block;
    }
    ul.list *::after {
       display: none;
    }
    .content > div > ul.list > li > a {
        flex-wrap: wrap;
    }
    .content > div > ul.list > li > a > div:nth-child(1) {
        width: 100%;
        text-align: left;
    }
    .content > div > ul.list > li > a > div:nth-child(2) {
        margin-left: 0;
    }
    .content > div > ul.list > li > a > div:nth-child(3) {
        align-self: flex-end;
    }

    .content ul.artists h2 {
        font-size: 1.1875rem;
    }

    .content > div.mobile > ul > li {
        line-height: var(--line-height);
    }
    
    .content > div.mobile > ul > li img {
        margin-bottom: .25rem;
    }

    .content > div.mobile {
        margin-top: 1.575rem;
    }
}

@media (max-width: 280px) {
    html {
        font-size: 12px;
    }
}