/**************** RESET STYLES IS A GOOD THING *************************************************************************/
html,
body,
div,
span,
object,
,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
address,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
samp,
small,
strong,
sub,
sup,
var,
b,
i,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
figure,
figcaption,
menu,
footer,
header,
nav,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
}

main,
article,
aside,
canvas,
figure,
figure img,
figcaption,
hgroup,
footer,
header,
nav,
section,
audio,
video {
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

a img {
    border: 0;
}

figure {
    position: relative;
}

figure img {
    width: 100%;
}

img {
    user-drag: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
}

label {
    cursor: pointer;
}

textarea,
input,
button {
    background: none;
    border: none;
    border-radius: 0;
}

* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    height: 100%;
    position: relative;
}

body {
    overflow-x: hidden;
}

.grid {
    position: fixed;
    width: 100%;
    height: 100%;
    -webkit-column-count: 12;
    -moz-column-count: 12;
    column-count: 12;
    margin: 0 auto;
    top: 0;
    left: 0;
    right: 0;
    -webkit-column-gap: 55px;
    -moz-column-gap: 55px;
    column-gap: 55px;
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 100;
    display: none;
}

.grid span {
    display: inline-block;
    height: 100%;
    width: 100%;
    border: 1px solid blue;
}

/* GRID CALCULATION
 * p = Part
 * s = spacing (in PX)
 * t = Total
 * calc((p * (s + 100%)) / t - s)
 */

/**** FONTS ****/

html {
    font-family: "Unica";
    font-size: 20px;
    line-height: 1.4;
}

h1,
h2,
h3,
h4,
h5,
h6,
.template-programm .aside .archive,
strong {
    font-weight: 900;
}

.template-default .aside .subnav a,
.template-programm .aside .archive,
.template-programm .aside .calendar,
.template-programm .intro .slide-news,
h1 {
    font-size: 1.5rem;
    line-height: 1.333333333333333;
    letter-spacing: 0.04em;
}

.template-programm .event h2 {
    font-size: 4rem;
    line-height: 1.0625;
    white-space: pre-line;
    letter-spacing: 0.04em;
}

article p:not(:last-child),
article ul:not(:last-child),
article ol:not(:last-child),
.template-programm .event.entry>*:not(:last-child) {
    margin-bottom: 1.4rem;
}

article a {
    text-decoration: underline;
}

article a:hover {
    color: #009096;
}

.body ul {
    list-style: none;
}

.body ul li li {
    padding-left: 1em;
}

.body ul li:before {
    content: "→";
    margin-right: 0.5em;
    color: #009096;
    vertical-align: text-bottom;
}

.body ol {
    counter-reset: ol;
    list-style: none;
}

.body ol li {
    position: relative;
}

.body ol li li {
    padding-left: 1em;
}

.body ol li:before {
    counter-increment: ol;
    content: counters(ol, ".") ". ";
    color: #009096;
    margin-right: 0.5em;
}

/**** MAIN ****/

main {
    padding: 25px;
}

.burger {
    width: 25px;
    display: inline-block;
    margin-right: 15px;
    cursor: pointer;
}

.burger span {
    width: 100%;
    height: 4px;
    background: black;
    display: block;
    transition: 0.5s;
}

.burger span:not(:last-child) {
    margin-bottom: 4px;
}

.burger:hover span {
    background: #009096;
}

.loader {
    display: block;
    width: 100%;
    height: 20px;
    position: relative;
}

.loader:before,
.loader:after {
    content: ".";
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    display: block;
    position: absolute;
    height: 20px;
    width: 20px;
    margin-left: -10px;
    top: 0;
    left: 50%;
    transform: rotate(0deg);
    transform-origin: center;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: rotate 1s infinite ease-out;
}

.loader:before {
    border-top-color: black;
    animation-delay: 0.3s;
    animation-direction: reverse;
}

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

/******* NAV ******/

nav.main {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    overflow: hidden;
    z-index: 100;
    transform: translateY(-100%);
    transition: 0.5s;
}

nav.main .background {
    position: absolute;
    background: black;
    width: 200%;
    top: 0;
    height: 100%;
    left: -100%;
    z-index: -1;
    transition: 0.8s ease-out;
    border-bottom-right-radius: 100%;
}

nav.main .inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 35px 30px;
    color: white;
}

nav.main .inner .pages {
    font-weight: bold;
    flex-grow: 1;
}

nav.main .inner .pages .wrap {
    display: inline-block;
    transform: translateY(-100%);
    transition: 0.5s;
}

nav.main .inner .pages a {
    display: block;
    white-space: nowrap;
}

nav.main .inner .pages a:hover,
nav.main .inner .pages a.active {
    color: #009096;
}

nav.main .inner .logo {
    height: 80px;
    margin-top: 50px;
}

nav.main .inner .logo img {
    width: auto;
    height: 100%;
}

nav.main .inner .hide-nav {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1;
}

nav.main.show {
    pointer-events: all;
    transform: translateY(0);
}

nav.main.show .pages .wrap {
    transform: translateY(0);
}

nav.main.show .background {
    left: 0;
    border-bottom-right-radius: 50%;
}

/***** DEFAULT ****/

.template-default main {
    display: flex;
    height: 100%;
    max-width: 965px;
}

.template-default .aside {
    width: 295px;
    display: flex;
    flex-direction: column;
}

.template-default .aside h1 {
    margin-bottom: 30px;
}

.template-default .aside .subnav {
    flex-grow: 1;
}

.template-default .aside .subnav a.hide {
    display: none;
}

.template-default .aside .subnav a.active {
    color: #009096;
}

.template-default .aside .subnav a {
    display: block;
}

.template-default .aside .logo {
    max-width: 200px;
}

.template-default .aside .logo img {
    width: 100%;
}

.template-default .content {
    flex: 1;
    position: relative;
    display: flex;
    min-height: 0;
}

.template-default .content h2 {
    margin-bottom: 20px;
}

.template-default .content .scroll {
    overflow-y: scroll;
    padding-left: 30px;
    width: 100%;
}

.template-default .content .unit {
    min-height: 100%;
}

.template-default .content .unit:not(:last-child) {
    margin-bottom: 100px;
}

.content .block:not(:last-child) {
    margin-bottom: 1.4rem;
}

/*

.template-default .content .unit.iframe{display: flex;}
.template-default .content .unit.iframe iframe{width: 100%; min-height: 600px;}
*/

.content .block-video .wrap {
    width: 100%;
    padding-top: calc(100% / 16 * 9);
    height: 0;
    position: relative;
}

.content .block-video .wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/***** PROGRAMM ****/

.template-programm main {
    height: 100%;
}

.template-programm header.main {
    position: fixed;
    top: 25px;
    left: 25px;
    z-index: 2;
}

.template-programm header.main a {
    display: inline-block;
}

.template-programm .content {
    height: 100%;
    padding-right: 60px;
}

.template-programm .aside {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 25px 25px 25px 0;
    height: 100%;
    width: 85px;
    background: white;
}

.template-programm .aside .inner {
    height: 100%;
    display: inline-flex;
    flex-direction: column;
    position: relative;
    left: 100%;
    transform: translateX(-100%);
}

.template-programm .aside .inner .day {
    width: 60px;
    text-align: right;
    display: inline-block;
}

.template-programm .aside .calendar {
    flex: 1;
    font-variant-numeric: tabular-nums;
    font-weight: 900;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.template-programm .aside .calendar .scroll {
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
}

.template-programm .aside .calendar .row {
    white-space: nowrap;
    text-align: right;
    height: 1.33333333333333em;
}

.template-programm .aside .calendar .row.new-month:not(:first-child) {
    margin-top: 1.3333333333333em;
}

.template-programm .aside .calendar .row.new-year:not(:first-child) {
    margin-top: 1.3333333333333em;
    margin-bottom: -1.3333333333333em;
}

.template-programm .aside .calendar .row .day {
    cursor: pointer;
}

.template-programm .aside .calendar .row .day.active {
    color: #009096;
}

.template-programm .aside .calendar .row .month {
    position: relative;
}

.template-programm .aside .archive {
    display: inline-block;
    text-align: right;
}

.template-programm .aside .archive.active {
    color: #009096;
}

/***** BUTTON ARCHIV & BUTTON DOWNLOAD ****/
.btn {
    background: transparent;
    border: 3px solid black;
    padding: 10px 20px;
}

.download {
    display: inline-block;
    margin-bottom: 45px;
}

.download::after {
    content: "";
    margin-left: 10px;
    height: 20px;
    width: 20px;
    background-image: url("/assets/events/download-icon.svg");
    background-repeat: no-repeat;
    display: inline-block;
    background-size: 100%;
}

.dropbtn {
    font-family: Unica;
    font-size: 20px;
    min-width: 220px;
    margin-right: 75px;
    cursor: pointer;
}

.dropbtn::after {
    content: "↓";
    padding-left: 20px;
    display: inline-block;
    transition: 200ms ease;
    transform-origin: center 15px;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    min-width: 220px;
    z-index: 1;
    border: 3px black solid;
    border-top: 0px solid black;
}

.dropdown-content a {
    padding: 10px 20px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background: black;
    color: white;
}

/* .dropdown-content a:hover::after {content: "←"; padding-left: 10px;} */

.unfoldYear {
    display: block;
}

.arrowDown::after {
    content: "↓";
    transform: rotate(-180deg);
    padding-right: 20px;
    padding-left: 0;
    transition-duration: 400ms;
}

/* .dropdown:hover .dropdown-content, .dropdown:active .dropdown-content {display: block;} */
/* .dropdown:hover .dropbtn::after {content: "↓"; transform: rotate(-180deg); padding-right: 20px; padding-left: 0; transition-duration: 400ms;} */

.intro {
    height: 100%;
    width: 100%;
}

.intro .slides {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
}

.intro .slide {
    position: absolute;
    white-space: nowrap;
    display: inline-block;
}

.intro .slide-text {
    text-transform: uppercase;
    line-height: 0.8;
    font-weight: 900;
    pointer-events: none;
    top: 0;
    right: 0;
    transform: translateX(100%);
    overflow: hidden;
}

.intro .slide-items {
    height: 100%;
    top: 0;
    right: 0;
    transform: translateX(100%);
    padding: 80px 0;
}

.intro .slide-items .slide-inner {
    display: inline-flex;
    height: 100%;
}

.intro .slide-items .item {
    display: inline-block;
    cursor: pointer;
}

.intro .slide-items .item:not(:last-child) {
    margin-right: 210px;
}

.intro .slide-items .item.big {
    width: 400px;
}

.intro .slide-items .item.medium {
    width: 270px;
}

.intro .slide-items .item.small {
    width: 200px;
}

.intro .slide-items .item.top {
    align-self: flex-start;
}

.intro .slide-items .item.middle {
    align-self: center;
}

.intro .slide-items .item.bottom {
    align-self: flex-end;
}

.intro .slide-items .item .image {
    border-radius: 100%;
    width: 100%;
    padding-top: 100%;
    background-size: cover;
    background-position: center center;
    display: block;
}

.intro .slide-news {
    bottom: 0;
    left: 0;
    width: 100%;
    background: #009096;
    z-index: 3;
    height: 60px;
}

.intro .slide-news .inner {
    display: inline-block;
    padding: 12px 25px 14px;
    position: absolute;
    right: 0;
    transform: translateX(100%);
}

.intro .slide-news .news {
    display: inline-block;
    text-transform: uppercase;
    white-space: nowrap;
}

.intro .slide-news .news:not(:last-child) {
    margin-right: 50px;
}

.intro .slide-news .news p {
    display: inline-block;
    margin-bottom: 0;
}

.intro .slide-news .news p:not(:last-child) {
    margin-right: 1rem;
}

.intro .slide-news .news p a:hover {
    color: white;
}

.template-programm .events {
    margin-top: 105px;
    padding-bottom: 25px;
}

.template-programm .events>header {
    margin-bottom: 75px;
}

.template-programm .event:not(:last-child) {
    margin-bottom: 75px;
}

.template-programm .event header {
    margin-bottom: 15px;
}

.template-programm .event h2:not(:last-child),
.template-programm .event figure:not(:last-child) {
    margin-bottom: 20px;
}

.template-programm .event.active h2 {
    color: #009096;
}

.template-programm .event figure {
    max-width: 600px;
}

.template-programm .event figure img {
    width: auto;
    max-width: 100%;
}

.template-programm .event figure img.portrait {
    max-width: 60%;
}

.template-programm .event.entry {
    padding: 60px 0;
}

.template-programm .event.entry .body,
.template-programm .event.entry .blocks {
    max-width: 600px;
}

.template-programm .switch-archive {
    display: flex;
    align-items: center;
}

/* .template-programm .switch-archive a:first-child(){ margin-right: 75px; } */
.template-programm .switch-archive .archive-nav:not(:last-child) {
    margin-right: 75px;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 70px 25px 25px;
    animation: fadeIn 1s;
    opacity: 1;
    display: none;
}

.overlay .background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.5);
}

.overlay .wrap {
    position: relative;
    height: 100%;
    border: 3px solid black;
    background: white;
    animation: fadeUp 1.5s;
    transform: translateY(0);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.overlay .wrap .close {
    position: absolute;
    width: 30px;
    height: 30px;
    background: white;
    border: inherit;
    border-radius: 100%;
    top: 5px;
    right: 15px;
    cursor: pointer;
}

.overlay .wrap .close:before,
.overlay .wrap .close:after {
    content: ".";
    font-size: 0;
    line-height: 0;
    letter-spacing: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    height: 3px;
    background: black;
    width: 60%;
}

.overlay .wrap .close:before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.overlay .wrap .close:after {
    transform: translate(-50%, -50%) rotate(45deg);
}

.overlay .wrap iframe {
    width: 100px;
    min-width: 100%;
    max-width: 100%;
    height: 100%;
    width: 1px;
    min-width: 100%;
    *width: 100%;
}

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

@keyframes fadeUp {
    from {
        transform: translateY(50%);
    }
}

/******* Misc *******/

.cf:after {
    content: ".";
    font-size: 0;
    line-height: 0;
    clear: both;
    display: block;
    visibility: hidden;
    opacity: 0;
}

@media all and (max-width: 800px) {

    html,
    .dropbtn,
    .monthly::after {
        font-size: 16px;
    }

    .template-default main {
        flex-direction: column;
    }

    .template-default .subnav,
    .template-default .aside .logo {
        display: none;
    }

    .template-default .content .scroll {
        padding-left: 0;
    }

    .dropbtn::after {
        transform-origin: center calc(15px / 20 * 16);
    }

    .template-programm .aside {
        display: none;
    }

    nav.main .inner .pages {
        margin-top: 20px;
    }

    .template-programm .content {
        padding-right: 0;
    }

    .template-programm .event h2 {
        font-size: 2rem;
        hyphens: auto;
    }

    .overlay {
        display: none !important;
    }

    .dropdown {
        display: inline-block;
    }

    .archive-nav {
        display: none;
    }
}

.block-team {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    column-gap: 30px;
    row-gap: 28px;
    margin-bottom: 1rem;
}
}

.team-member p:last-child {
    margin-bottom: 0;
}

.block-team .pronouns {
    font-style: italic;
    margin-bottom: 8px;
}

.portrait {
    width: 100%;
    position: relative;
    aspect-ratio: 5 / 7;
    background-color: red;
    margin-bottom: 18px;
}

.portrait.multi img:first-of-type {
    z-index: 1;
}

@media (hover: none) {
    .portrait.multi img:first-of-type {
        animation: cycleImages 2s step-end infinite;
    }
}

@media (hover:hover) {
    .portrait.multi:hover img:first-of-type {
        opacity: 0;
    }
}

@keyframes cycleImages {
    50% {
        opacity: 0;
    }
}

.portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}
