/* Variables */
:root {
    --background: #D1DFE8;
    --background-darker: #2d5751;
    --background-rgb: 209, 223, 232;
    --background-darker-rgb: 35, 80, 78;
    --logobg: #dad8d8;
    --border: #c4c4c4;
    --background-light: #898989;
    --background-dark: #424242;
    --buttons: #B2B3B3;
    --headings: #484a46;
    --copy: #111;
    --copy-light: #dfe5ec;
    --accent: var(--background-dark);
    --secondary: #d4d695;
    --secondary-rgb: 212, 214, 149;
    --shadow: 0 .1em 1em rgba(0, 0, 50, 0.15),
    0 .2em 1.5em rgba(0, 0, 0, 0.075),
    .1em .125em .15em rgba(0, 0, 50, .02),
    .4em .3em 1em rgba(50, 50, 150, .075),
    .05em .05em .2em rgba(0, 0, 0, .05);
    --modern-shadow: 0 4px 6px rgba(0, 0, 0, 0.04),
    0 10px 15px rgba(0, 0, 0, 0.06),
    0 20px 25px rgba(0, 0, 0, 0.08);
    --card-radius: .5em;
    --news-gap: 1.5em;
    --news-media-width: 16em;
    --partner-logo-width: 8em;
    --partner-logo-height: 4.5em;
}

/* lato-300 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/lato-v25-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lato-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/lato-v25-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lato-regular - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/lato-v25-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lato-700 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/lato-v25-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* lato-900 - latin */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Lato';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/lato-v25-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* General */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Lato', sans-serif;
}

body {
    min-width: 320px;
    color: #2d2d2e;
    background-color: var(--background);
}

@view-transition {
    navigation: auto;
}
.subnavi {
    view-transition-name: --persist-nav;
}

img,
svg,
video,
iframe {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: inherit;
}

input,
textarea,
button {
    font-family: inherit;
}

.inner {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    padding-left: 5%;
    padding-right: 5%;
    max-width: 120rem;
    width:100%;
    box-sizing: border-box;
}

p,
li {
    line-height: 1.7em;
}

p,
li {
    font-size: 1.125em;
}

[v-show],
[v-if] {
    display: none;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

body {
    min-width: 320px;
    color: #383e53;
    font-family: 'Lato', 'Verdana', 'Arial', 'sans-serif';
}

img,
svg,
iframe {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

a {
    color: inherit;
}
li {
    margin-bottom:.45em;
}
header li {
    margin-bottom:0;
}

input,
textarea,
button {
    font-family: inherit;
}


footer {
    background-color: var(--secondary);
}


header {
    background-color: #fff;
    background-color: var(--secondary);
}

header .logo img {
    border-radius: 50%;
    box-sizing: border-box;
    width: 7em;
    height: 7em;
    position: absolute;
    left: 5%;
    top: 1em;
    z-index: 10;
    object-fit: cover;
    transition: opacity 2s;
}
@media (min-width: 900px) {
    header .logo img {
        width: 9.5em;
        height: 9.5em;
    }
}
header .logo {
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: block;
}
header .logo:hover .logo-img {
    opacity: 0;
}

.image-wrapper {
    overflow: hidden;
    padding-top: 7em;
    width: 100%;
    position: relative;
    padding-bottom: 5em;
}

@media (min-width: 900px) {
    .image-wrapper {
        padding-top: 15em;
    }
}


.image-wrapper img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    top: 0;
    left: 0;
}

.headblock {
    max-width: 50em;
    color: rgba(255, 255, 255, .7);
    bottom: 1em;
}

.headblock h1 {
    font-size: 2.5em;
    font-weight: 900;
}

@media (min-width: 900px) {
    .headblock h1 {
        font-size: 4em;
        font-weight: 900;
    }
}

@media (max-width: 899px) {
    .headblock {
        border-radius: 5px;
        color: rgba(255, 255, 255, 1);
        margin-top:12em;
        width: 100%;
        padding-bottom:4em;
        text-shadow: .1em .1em 2em rgba(0, 0, 0, .8);

        p {
            font-size:.9em;
        }
    }
    .image-wrapper img {
        object-position: 65% 10%;
    }
    .image-wrapper {
        margin:0;
        padding-bottom:0;

    }
}


.headblock h1 span {
    font-weight: 300;
}

.nav-main-toggler {
    cursor: pointer;
    width: 2em;
    display: none;
}

.nav-main-toggler .line {
    height: 5px;
    margin-bottom: 3px;
    background-color: #383e53;
}

.nav-main {
    a {
        transition: background-color .15s;
    }

    a.active,
    a:hover,
    a:focus {
        background-color: rgba(var(--background-rgb), 0.65);
    }
}
@media (min-width: 900px) {
    .nav-main {
        margin-left: auto;
    }

}
@media (max-width: 899px) {
    .nav-main {
        margin-left: auto;
        width: 100%;
    }
}


.nav-main > ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.nav-main ul a {
    display: block;
    padding: .75em 1em;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .025em;
    font-weight: 900;
    font-size:.9em;
    line-height: 1.2em;
}

@media (max-width: 899px) {
    .nav-main ul a {
        text-align: right;
        font-size: .95em;
    }
}

@media (min-width: 900px) {
    .nav-main > ul {
        display: flex;
    }

    .nav-main ul a {
        padding: 1em 1em;

    }
}
.nav-main ul .lang-toggle a {
    padding-top:1.15em;
    padding-bottom:1.15em;
    display: block;
}

.lang-toggle img {
    width: 1.75em;
    height: auto;

    display: block;
    border-radius: .2em;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    max-width: 120rem;
    margin: 0 auto;
    position: relative;
}

@media (min-width: 900px) {
    .header-inner {
        padding-left: 5%;
        padding-right: 5%;
    }
}



.component-image {
    margin-bottom: 5em;

    img {
        width: 100%;
    }
}

.component {
    margin-bottom: 3em;
}

.nav-sub {
    display: none
}

h2 {
    font-size: 2.35em;
    margin-top: 0;
    margin-bottom: .2em;
}

footer .inner {
    padding-top: 1em;
    padding-bottom: 1em;
}

footer .inner a {
    font-size: 1.15em;
    display: inline-block;
    padding: .5em .5em;
    text-decoration: none;
}

.simple-header {
    width: 100%;
    max-height: 12vw;
    object-fit: cover;
}

strong {
    font-weight: 900;
}

@media (min-width: 900px) {
    .subnavi {
        font-size: 1.5em;
        font-weight: bold;
        padding: 0;
        padding-top: 5%;
        padding-bottom: 5%;
        background-color: rgba(255, 255, 255, 0.3);
    }
}


.subnavi a {
    text-decoration: none;
    display: block;
    padding: .5em 1.5rem;
    transition: background-color .15s;

    &.active,
    &:hover,
    &:focus {
        background-color: rgba(var(--secondary-rgb), 0.65);
    }
}

.subnavi .level2 {
    padding-top: .4em;
    padding-bottom: .4em;
    background-color: rgba(255, 255, 255, 0.5);
    border-bottom: 2px dotted rgba(var(--background-rgb), 1);
}

@media (min-width: 900px) {
    .subnavi .level2 {
        font-size: .7em;
    }
}
@media(max-width: 899px) {
    .subnavi .level2 {
        margin-bottom:.4em;
    }
}

@media (min-width: 900px) {
    .aside-and-content {
        display: flex;
        flex: 1;
    }
}


@media (min-width: 900px) {
    aside {
        flex: 0 0 16em;
        padding: 5% 3%;
        background-color: #fff;
        text-align: right;
    }
}

.aside-and-content .content {
    padding: 5% 3%;
    width: 100%;
    box-sizing: border-box;
    max-width:106rem;
}
.page-start .aside-and-content .content {
    max-width: none;
}
@media (min-width: 2400px) {
    .aside-and-content aside {
        flex: 0 0 30%;
    }
}

p {
    margin-top: 0;
    max-width: 65em;
}

.page-start .content {
    padding: 0;
}

.content img,
.content video,
.content iframe {
    border-radius: .3em;
    box-shadow: var(--shadow);
}
.component-text {
    overflow: hidden;
}
@media (min-width: 600px) {
    .component-text .media-position-right,
    .component-text .media-position-left,
    .component-text .media-position-top {
        display: flex;
    }
}

.component-text .media-position-right,
.component-text .media-position-left {
    align-items: center;
}

.component-text .media-position-left {
    flex-direction: row-reverse;
}

.component-text .media-position-top {
    flex-direction: column-reverse;
}

.component-text .media-position-top .media {
    margin-bottom: 3em;
}

.component-text .media-position-bottom .media {
    margin-top: 3em;
}

.component-text .media-position-right .media,
.component-text .media-position-left .media {
    flex: 0 0 40%;
}
.component-text .media-position-right .media img,
.component-text .media-position-left .media img {
    max-width:20em;
}

.component-text .media-position-left .media {
    margin-right: 2%;
}

.component-text .media-position-right .text {
    margin-right: 2%;
}

.component-text .media-position-floatleft .media,
.component-text .media-position-floatright .media {
    position: relative;
    top:.2em;
    margin-bottom:.75em;
    display: block;
}
@media (min-width:600px) {
    .component-text .media-position-floatleft .media {
        float:left;
        margin-right:1em;
    }
    .component-text .media-position-floatright .media {
        float:right;
        margin-left:1em;
    }
}

.component-text h2 {
    margin-bottom: .4em;
}

.subnav-level2.hide {
    display: none;
}
@media (max-width: 899px) {
    .subnav-level2 {
        display: flex;
        flex-wrap: wrap;
        padding:.2rem 1.8rem;
    }
    .subnavi .subnav-level2 a {
        border-radius:.5em;
        border:0;
        margin-right:.3em;
    }
    .subnavi-item {
        border-bottom:2px dotted rgba(255,255,255, 0.5);

        a {
            padding-top:.6em;
            padding-bottom:.6em;
        }
    }
}

.teasers {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 104%;
    margin-left: -2%;
}

.template-teaser {
    margin: 2%;
    background-color: #fff;
    border-radius: .5em;
    overflow: hidden;
    box-shadow: var(--shadow);
    width:21%;
    height: 12em;
    position: relative;
    cursor: pointer;

    img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        box-shadow: none;
    }

    h3 {
        padding: 1em;
        margin: 0;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
        color: var(--copy);
        z-index: 3;
        font-weight: 900;
        font-size: 1.75em;
        transition: color .2s;
        hyphens: auto;

        span {
            font-weight: normal;
            display: block;
        }
    }
}
.template-person {
    background-color: var(--secondary);

    img {
        width:100%;
        height:50%;
        object-fit: cover;
    }
}
@media(max-width: 899px) {
    .teaser {
        width:46%;
        min-width:0;
    }
}

.page-start .teasers {
    margin-top: -7em;
}

.page-start .teaser {
    cursor: pointer;

    &:after {
        background-image: linear-gradient(to top, rgba(0, 0, 0, .2), rgba(0, 0, 0, 0));
        content: "";
        bottom: 0;
        left: 0;
        width: 100%;
        height: 5em;
        z-index: 2;
        position: absolute;
    }

    &:before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: block;
        z-index: 1;
        background-color: rgba(var(--secondary-rgb), .8);
        backdrop-filter: blur(15px);
        cursor: pointer;
        transition: backdrop-filter .2s ease-in, background-color .5s ease;
    }

    &:hover,
    &:focus {
        h3 {
            color: #fff;
        }

        &:before {
            backdrop-filter: none;
            background-color: rgba(var(--background-darker-rgb), .8);
        }
    }
}

.person {
    background-color: #fff;
    width:15em;
    position:relative;
    margin-right:2em;
    margin-bottom:2em;
    border-radius: 0.5em;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);

    h3 {
        margin:0 0 .5em;
    }
    .main-image {
        width:100%;
    }
    .content {
        padding:1em;
        padding-bottom:2em;
    }
    .data {
        position: absolute;
        bottom:-1em;

        img {
            width:1.5em;
            background-color: var(--background);
            padding:.5em;
            border-radius: 50%;
            margin-right:.5em;
            box-shadow:var(--modern-shadow);
            cursor: pointer;
            transition:transform .2s ease;
        }
        img:hover {
            transform:scale(1.3);
        }
    }
}
.person-info-text {
    display: none;
}
.text-content .media img {
    width:100%;
}
ul {
    margin-bottom:2.5em;
}
.text-content .text {
    flex: 0 0 58%;
}
@media(min-width: 1400px) {
    .text-content .text {
        flex: 0 0 calc(98% - 20em);
    }

    .component-text .media-position-right .media,
    .component-text .media-position-left .media {
        flex: 0 0 20em;
    }
    .component-text .media-position-top .media img {
        max-width:600px;
    }
}
.component-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}
.component-gallery img {
    width:10em;
    margin-right:1em;
    margin-bottom:1em;
}
.component video {
    width:650px;
}
.f-html {
    background-color: var(--background);
    display: block;
}
.component table {
    border:0;
    border-collapse: collapse;
    margin-bottom:2em;
    margin-top:1.5em;
    box-shadow: var(--modern-shadow);
    border-radius: .2em;
    overflow: hidden;
}
.component table td {
    border:0;
    padding:.5em 1em;
    background-color: #dbe5ec;
    border-bottom: 1px solid rgba(136, 159, 170, 0.5);
}
.component table td {
    border-right: 1px solid rgba(255, 255, 255, 0.7);
}

.component table tr:last-child td {
    border-bottom:0;
}
[href*="/tickets/"] {
    background-color: var(--background-darker);
    padding:.5em 1em;
    display:inline-block;
    border-radius: .2em;
    color:#fff;
    text-decoration: none;
    font-weight: bold;
    padding-left:2.5em;
    background-image: url(../images/calendar-add.svg);
    background-repeat: no-repeat;
    background-position: .5em 52%;
    background-size: 1.5em;
}
p a {
    text-underline-offset: .35em;
    color:var(--background-darker);
    font-weight: bold;
}
table {
    width:auto !important;
}
body .external-link {
    background-image: url(../images/redirect.svg);
    background-repeat: no-repeat;
    background-position: calc(100% - .5em) center;
    background-size: .9em;
    padding-right: 2em;
}
footer .inner .external-link {
    padding-right: 1.7em;
    background-position: calc(100% - .5em) 55%;
}
video {
    object-fit: cover;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: var(--news-gap);
    margin-top: 1.5em;
}

.card {
    background-color: #fff;
    border-radius: var(--card-radius);
    box-shadow: var(--modern-shadow);
    overflow: hidden;
    color: var(--copy);
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;

    h3 {
        transition: color .2s;
    }

    &:hover,
    &:focus-visible {
        transform: translateY(-.15em);
        box-shadow: var(--shadow);

        h3 {
            color: var(--background-darker);
        }
    }
}

.news-teaser {
    display: flex;
}

.news-teaser-media {
    flex: 0 0 var(--news-media-width);
    aspect-ratio: 4 / 3;
    background-color: var(--background);
}

/* contain instead of cover: some old news images are portrait covers or a wide logo */
.content .news-teaser-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.news-teaser-text {
    padding: 1.25em 1.75em 1.5em;
    min-width: 0;

    h3 {
        margin: 0 0 .4em;
        font-size: 1.6em;
        font-weight: 900;
        line-height: 1.2;
    }

    p {
        margin-bottom: .6em;
    }
}

.news-date {
    display: block;
    margin-bottom: .4em;
    color: var(--background-light);
    font-size: .95em;
    font-weight: bold;
    letter-spacing: .03em;
}

.news-more,
.news-back {
    color: var(--background-darker);
    font-weight: bold;
}

.news-article .text-content {
    display: flow-root;
}

.news-back {
    display: inline-block;
    margin-top: 2em;
    text-underline-offset: .35em;

    &::before {
        content: "← ";
    }
}

@media (max-width: 699px) {
    .news-teaser {
        flex-direction: column;
        align-items: stretch;
    }

    .news-teaser-media {
        flex-basis: auto;
    }
}

.partner-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 22em), 1fr));
    gap: var(--news-gap);
    margin-top: 1.5em;
}

.partner {
    display: flex;
    align-items: center;
    gap: 1.5em;
    padding: 1em 1.5em;

    h3 {
        margin: 0;
        font-size: 1.3em;
        font-weight: 900;
        line-height: 1.2;
        hyphens: auto;
    }
}

.partner-logo {
    flex: 0 0 var(--partner-logo-width);
    height: var(--partner-logo-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

.content .partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}