* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: none;
}

@media only screen and (max-width: 700px) {
    .no-mobile {
        display: none !important;
    }
}

@font-face {
    font-family: "Sligoil-Micro";
    src: url("../fonts/Sligoil-Micro.woff2");
    font-weight: 400;
}

.br {
    height: calc(var(--height) * 1rem);
    border: 0.1rem solid rgba(255, 255, 255, 0);
    border-radius: 0.5rem;
    width: 10rem;
    margin-bottom: -1px;
    margin: 0.5rem 0;
    background: var(--bg);
}

html {
    font-family: Arial;
    font-size: max(16px, 2vw);
    line-height: 1.2em;
    --bg: rgba(255, 255, 255);
    /* background: linear-gradient(0deg, #fff, #ff9191) */
}

@media only screen and (max-width: 700px) {
    body[ding-active="headline"] {
        --y-offset: 15vh;
    }

    body[ding-active="intro"] {
        --y-offset: 0vh;
    }

    body {
        --y-offset: 30vh;
    }

    #map {
        margin-top: 30vh;
    }
}
body {
    background: var(--bg);
    position: relative;
    z-index: -3;
    /* background: linear-gradient(-90deg, #fff, #eee); */
}

header,
section {
    transition: opacity 0.3s;
}

.content {
    padding: 0 1rem;
}

.header {
    height: 45vw;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    /* z-index: 7; */
}

@media only screen and (max-width: 700px) {
    .header {
        height: 120vw;
    }
}

.intro-text {
}

.nav {
    display: flex;
    width: 100vw;
    z-index: 5;
    position: fixed;
    height: 2.5rem;
    /* top: calc(100vh - 1.5rem * 1.3); */
    bottom: 0px;
    background: var(--bg);
    padding: 0.1rem 1rem;
    gap: calc(1rem + 2px);
}

.nav::before {
    content: "";
    display: block;
    position: fixed;
    bottom: 2.5rem;
    left: 0;
    height: 1.5rem;
    width: 100vw;
    background: linear-gradient(rgba(255, 255, 255, 0), var(--bg));
}

.sub-nav {
    font-size: 1rem;
}

.sub-nav:not(:first-child) {
    margin-top: 0.5rem;
}

.nav .link {
    display: block;
}

.nav a {
    text-decoration: none;
}

.sub-nav .link {
    margin-right: calc(0.5rem - 2px);
}

body[map-active] .link.box.map,
body[timetable-active] .link.box.timetable {
    /* text-decoration: underline; */
    background: black;
    color: white;
}

@media only screen and (min-width: 701px) {
    .link.box:hover {
        background: black;
        color: white;
    }
}

.nav a:first-of-type {
    min-width: 0;
}

.nav a:first-of-type .link.box {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
}

@media only screen and (min-width: 701px) {
    body[map-active] .link.box.map span::after {
        content: " schließen";
    }

    body[timetable-active] .link.box.timetable span::after {
        content: " schließen";
    }
}

/* headlines */

h1,
h2,
h3,
h4,
h5,
.h1,
.h2,
.h3,
.h4 {
    font-size: 1rem;
    line-height: 1.3em;
    font-weight: normal;
    letter-spacing: 0rem;
    display: inline-block;
    vertical-align: bottom;
    /* background: white; */
    /* padding: .2rem .5rem; */
    /* border: 1px solid transparent; */
    /* border-radius: .4rem */
}

h5 {
    line-height: 1.2rem;
}

p {
    /* background: white; */
    /* display: inline; */
    /* vertical-align: top; */
}

.intro-text p {
    /* column-count: 2; */
    /* column-gap: 0.5rem; */
}

span.letterize:nth-of-type(3) {
    /* background: red; */
    display: inline-block;
    transform: translateY(-0.5em);
}

h2.title .letter {
    transform: translateY(calc(var(--index) * 0.1em));
    display: inline-block;
}

[activate-on-click]:hover {
    cursor: pointer;
}

.box-wrapper img.image {
    display: inline-block;
    position: absolute;
    left: calc(100% + 0.25rem + 0.5rem);
    top: 50%;
    transform: translateY(-50%);
    width: 30vw;
    /* max-width: 40vw;
    max-height: 80vh; */
    opacity: 0;
    display: none;
    /* transition: opacity 0.3s 0.2s; */
    z-index: 4;
    border: 2px solid black;
    border-radius: 2rem;
    /* pointer-events: none; */
}

.box-wrapper img.image.multiple {
    width: 23vw;
}

.box-wrapper img.image:nth-of-type(2) {
    left: calc(100% + 23vw + 0.25rem + 1rem);
}

.box.invert {
    background: black;
    color: var(--bg);
}

span.listen {
    /* letter-spacing: 0.07em; */
    font-size: 1rem;
    line-height: 1.2rem;
    /* font-weight: bold; */
    background: black;
    display: inline-block;
    color: var(--bg);
    /* margin-left: auto; */
    left: 100%;
    /* top: auto; */
    transform: translateX(calc(-100% + 0.5rem + 4px))
        translateY(calc(100% + 0.5rem - 2px));
    position: absolute;
    bottom: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    /* transition: opacity 0.3s 0.2s; */
    /* text-align: right; */
}

span.listen.right {
    left: 0;
    transform: translateY(calc(100% + 0.5rem - 2px));
}

.box-wrapper img.image.right {
    right: calc(100% + 0.25rem + 0.5rem);
    left: auto;
}

.box-wrapper[active] .image {
    opacity: 1;
    display: block;
}

@media only screen and (max-width: 700px) {
    .box-wrapper img.image,
    .box-wrapper img.image.right {
        left: calc(-0.25rem - 2px);
        top: calc(100% + 2.5rem - 2px);
        width: calc(100vw - 2rem + 0.5rem + 4px);
        transform: unset;
    }

    .box-wrapper.no-audio img.image,
    .box-wrapper.no-audio im.image.right {
        top: calc(100% + 0.5rem);
    }
}

.box-wrapper[active] .listen {
    opacity: 1;
    pointer-events: all;
}

.box-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.box-wrapper:hover .box,
.box-wrapper:hover .text-container > p,
.box:not(.hidden):hover,
.box.active,
.text-container.active > p,
.box-wrapper[active] .box,
.box-wrapper[active] .text-container > p {
    border-color: black;
}

.box,
.text-container > p {
    display: inline-block;
    vertical-align: bottom;
    border: 2px solid transparent;
    /* transition: border 0.3s 0.2s; */
    border-radius: 0.5em;
    margin: 0 calc(-0.25rem - 2px) -2px calc(-0.25rem - 2px);
    padding: 0 0.25rem;
    background: var(--bg);
}

.text-container {
    /* border: 1px solid black; */
    display: inline-block;
    vertical-align: bottom;
    /* max-width: 25rem; */
}

.text-container > p {
    margin-top: 0.5rem;
    /* word break */
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.box.hidden {
    border-color: transparent !important;
}

a {
    color: black;
}

h2,
.h2 {
    /* font-size: 1.6rem; */
    /* font-size: 3.2rem; */
    font-size: 6vw;
    font-family: "Sligoil-Micro";
    font-weight: normal;
    letter-spacing: -0.067em;
    /* letter-spacing: -0.1em; */
}

h2.headline {
    --zoom: 1.5;
    line-height: 0.8em;
    transition: transform 100ms;
    transform-origin: top left;
    transform: translate(-0.1rem, -0vw);
    text-shadow: 1px 1px 0 var(--bg);
    background: none;
}

.headline-container {
    width: 100%;
    position: relative;
}

h2.title {
    /* font-size: 1.6rem; */
    /* font-size: 3.2rem; */
    font-size: 6vw;
    font-family: "Sligoil-Micro";
    line-height: 1em;
    font-weight: normal;
    letter-spacing: -0.1em;
    width: 100%;
    text-align: center;
    text-shadow: 2px 2px 0 var(--bg);
    position: relative;
    z-index: 7;
}

h3.subtitle {
    /* width: 100%; */
    font-size: 1rem;
    width: max-content;
    margin: 1em auto 0 auto;
    display: block;
    mix-blend-mode: difference;
}

/* media querys for headline fonts */
@media only screen and (max-width: 700px) {
    h2.title {
        font-size: 20vw;
    }
    h3.subtitle {
        font-size: 1.5rem;
    }
    h2.headline {
        font-size: 10vw;
        transform: scale(var(--zoom)) translate(-0.165em, -0vw) !important;
        padding-bottom: 1em;
        /* color: rgb(255, 118, 118); */
    }

    .col[sticky] {
        z-index: 10;
    }

    h2.headline .letter {
        transform: translateY(
            calc(var(--index, 0) * var(--shift-amount, 1.8vh))
        ) !important;
    }
}

[sticky] {
    position: sticky;
    top: -1px;
    z-index: 3;
}

[sticky].sticky {
    pointer-events: none;
    z-index: 10;
}

.letter {
    display: inline-block;
    transition: transform 100ms;
    /* mix-blend-mode: multiply; */
}

h2.headline.sticky,
.sticky > h2.headline {
    transform: scale(var(--zoom)) translate(-0.45rem, -0vw);
    /* color: rgb(255, 118, 118); */
}

h2.headline.sticky .letter,
.sticky > h2.headline .letter {
    transform: translateY(calc(var(--index, 0) * var(--shift-amount, 1.8vh)));
}

h3,
.h3 {
    /* font-family: "Sligoil-Micro"; */

    /* font-weight: bold; */
    font-size: 1.5rem;
}

#map text {
    font-size: calc(1463 / var(--window-width, 375) * 1rem);
}

h4,
.h4 {
    font-size: 1.5rem;
    line-height: 1.1em;
}

h4.box, .h4.box {
    /* compensate for narrowser line-height */
    padding: 0.1em 0.25rem;
}

.layout {
    font-size: 0;
    vertical-align: top;
    position: relative;
    margin: 0 -0.5rem;
    width: 100%;
    transition: width 0.3s;
}

body[timetable-active] .layout {
    width: calc(100% * 2 / 3);
}

p {
    font-size: 1rem;
}

.col {
    display: inline-block;
    vertical-align: top;
    width: calc(var(--col, 1) * 100%);
    padding: 0 0.5rem;
}

@media only screen and (max-width: 700px) {
    .col {
        width: 100%;
    }
}

.col.margin-bottom {
}

.col.bottom {
    vertical-align: bottom;
}

[ding-active="headline"] .dings.disko {
    --rand: 1 !important;
    /* filter: drop-shadow(0px 0px 20px blue); */
}

img.dings {
    display: block;
    position: fixed;
    width: var(--edit-w, 20vw);
    height: var(--edit-h, auto);
    min-height: 2vw;
    top: 0;
    left: 0;
    transform: translate(var(--edit-x, 10vw), var(--edit-y, 20vw))
        rotate(var(--edit-r, 0)) scale(var(--edit-s, 1));
    opacity: var(--edit-o, 1);
    transition: transform 0.5s ease-in-out calc(var(--rand) * 0.4s),
        opacity 0.2s ease-in-out calc(var(--rand) * 0.7s);
    will-change: opacity, transform;
    /* mix-blend-mode: soft-light; */
    mix-blend-mode: difference;
    /* border-radius: 0.25rem; */
}

img.dings.image {
    transform: translate(var(--edit-x, 60vw), var(--edit-y, 20vh))
        rotate(var(--edit-r, 0)) scale(var(--edit-s, 1));
    transition: transform 0.5s, opacity 0.5s, width 0.5s, height 0.5s;
}

/* img.dings.image {
    object-fit: cover;
    object-position: center center;
} */

/* img.dings::after {
    content: "test";
    display: block;
    font-size:1rem;
    line-height: 1em;
} */

body[ding-edit] img.dings {
    transition: none;
    pointer-events: all;
    opacity: calc(var(--edit-o, 1) + 0.2);
}

body[ding-edit] img.dings:hover {
    outline: 2px solid red;
}

body[ding-edit] [activate-on-hover] {
    outline: 2px solid gray;
    outline-offset: -2px;
}

body[ding-edit]:not([ding-active]) img.dings.ding {
    display: none;
}
body[ding-edit]:not([image-active]) img.dings.image {
    display: none;
}

body[ding-edit] [activate-on-hover][ding-active],
body[ding-edit] [activate-on-hover][image-active] {
    outline: 2px solid black;
    outline-offset: -2px;
}

body[ding-edit] [activate-on-hover][ding-active],
body[ding-edit] [activate-on-hover][image-active] {
    outline: 2px solid black;
    outline-offset: -2px;
}

body[ding-edit] .dinge {
    z-index: 999;
}

.dinge {
    /* transform-style: preserve-3d; */
    width: 100vw;
    min-height: 300vh;
    top: 0;
    left: 0;
    overflow: hidden;
    position: fixed;
    mix-blend-mode: difference;
    pointer-events: none;
    z-index: 6;
    transform: unset;
}

.dinge.images {
    mix-blend-mode: unset;
    z-index: 6;
}

p.small {
    font-size: 0.8rem;
}

body[map-active] section:not(.map-container),
body[map-active] header {
    opacity: 0;
}

body[map-active] section.map-container {
    display: block;
}

body[map-active] {
    overflow: hidden;
    max-height: 100vh;
    touch-action:none;
}

body[timetable-active] .timetable-container {
    transform: translateX(calc(-100vw * 1 / 3));
    z-index: 3;
}

section.timetable-container {
    width: calc(100vw * 1 / 3);
    height: calc(var(--vh, 1vh) * 100);
    overflow: scroll;
    padding: calc(0.25rem) 1rem 4rem 0;
    position: fixed;
    top: 0;
    left: 100vw;
    transition: transform 0.3s;
}

section.timetable-container .box {
    margin-bottom: calc(0.25rem + 2px);
    margin-left: 0;
}

@media only screen and (max-width: 700px) {
    body[timetable-active] section.timetable-container {
        /* z-index: 11; */
        transform: translateX(calc(-100vw + 0.5rem));
    }

    section.timetable-container {
        width: calc(100vw - .5rem);
    }

    body[timetable-active] .layout {
        width: inherit;
    }

    body[timetable-active] section:not(.timetable-container),
    body[timetable-active] header {
        opacity: 0;
    }

    body[timetable-active] section.timetable-container {
        display: block;
    }

    body[timetable-active] {
        overflow: hidden;
        max-height: 100vh;
    }
}

.time {
    display: inline-block;
    width: 3.3rem;
    margin-left: calc(-3.3rem);
    font-size: 1rem;

    display: inline-block;
    vertical-align: top;
    border: 2px solid transparent;
    /* transition: border 0.3s 0.2s; */
    border-radius: 0.5em;
    /* margin: 0 calc(-0.25rem - 2px) -2px calc(-0.25rem - 2px); */
    padding: 0 0.25rem;
    background: var(--bg);
}

.slot {
    margin-bottom: calc(1rem - 2px);
    padding-left: 3.3rem;
    font-size: 0;
}

.slot-name {
    font-size: 1rem;
    display: inline-block;
    vertical-align: top;
    border: 2px solid transparent;
    margin-left: -2px;
    /* transition: border 0.3s 0.2s; */
    border-radius: 0.5em;
    /* margin: 0 calc(-0.25rem - 2px) -2px calc(-0.25rem - 2px); */
    padding: 0 0.25rem;
    background: var(--bg);
}

a:hover > .slot > .time, a:hover > .slot > .slot-name, a:hover > .slot > .slot-text {
    border-color: black;
    cursor: pointer;
}

.slot-text {
    font-size: 1rem;
    font-style: italic;
    display: block;

    vertical-align: top;
    border: 2px solid transparent;
    margin-left: -2px;
    /* transition: border 0.3s 0.2s; */
    border-radius: 0.5em;
    /* margin: 0 calc(-0.25rem - 2px) -2px calc(-0.25rem - 2px); */
    padding: 0 0.25rem;
    background: var(--bg);
}

.day {
    margin-bottom: 1rem;
}

section.map-container {
    position: fixed;
    top: 0;
    left: 0;
    /* width: max(100vw, 700px); */
    width: 100vw;
    z-index: 4;
    display: none;
    min-height: 100vh;
}

#map {
    width: 100vw;
    height: 100%;
}
