@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:ital,wght@0,100..900;1,100..900&family=Geist:ital,wght@0,100..900;1,100..900&display=swap');

html {
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}

:root {
    --font-sans: "Geist", sans-serif;
    --font-mono: "Geist Mono", monospace;
    --font-body: 1rem;
    --font-large: 2rem;
    --line-height-large: 1.3;
    --font-very-large: 3.333rem;
    --font-very-very-large: 4.166rem;
    --line-height-very-very-large: 1;
    --line-height-very-large: 1.2;
    --font-small: 0.73rem;
    --font-medium: 1.666rem;
    --font-nav: 0.833rem;
    --font-hero-title: 1.25rem;

    --pico-color: black;

    --context-background: #EDEDED;
    --neutral-background: #DBDBDB;
    --light-neutral-background:  #F2F2F2;

    --gap: 2rem;

    --plyr-color-main: var(--foreground-color);
}

@view-transition { navigation: auto; }

/* shorter than the default, feels snappier on page loads */
::view-transition-group(root) { animation-duration: .15s; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

html, body {
    scroll-behavior: smooth;
    max-width: 100vw;
    overflow-x: hidden;
    color: black;
}

body {
    font-family: var(--font-sans);
    font-optical-sizing: auto;
    font-weight: 400;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: white;
    overflow-x: hidden;
}
.container {
    max-width: min(62rem, calc(100% - 2rem));
    margin: 0 auto;
    padding: 0;
}
.mono, blockquote, code, pre, h1, h2, h3 {
    font-family: var(--font-mono);
    font-weight: normal;
}
p {
    color: inherit;
}
blockquote {
    font-size: var(--font-large);
    line-height: var(--line-height-large);
    margin: 0;
    color: inherit;
}

hr {
    margin: 2em 0;
}
.bold-title {
    font-weight: 700;
    margin-bottom: .5em;
    font-size: 1em;
}

.bold-title + p {
    margin-top: 0;
}

.breadcrumb {
    font-size: var(--font-small);
    font-weight: 400;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a, .link {
    color: inherit;
    text-decoration: none;
    text-underline-offset: .2em;
    text-decoration-thickness: 1px;
}
a.link-only-hover,
.nav-lang a[aria-current="true"]{
    text-decoration: none;
}
a:not(.no-link):hover {
    text-decoration: underline;
}
p a {
    text-decoration: underline;
}
p:first-child {
    margin-top: 0;
}
p:last-child {
    margin-bottom: 0;
}
figcaption {
    margin-top: 1rem;;
}
.font-sans {
    font-family: var(--font-sans);
}
.font-mono {
    font-family: var(--font-mono);
}
.logo {
    width: 15rem;
}
.intro {
    font-size: var(--font-medium);
}
#lottie-keyvisual {
    width: 100%;
    aspect-ratio: 1920 / 1080;
}
.context {
    margin: 2rem 0;
    font-family: var(--font-mono);
    background: var(--context-background);
    outline: 1rem solid var(--context-background);
}
.full-width-column {
    grid-column: 1 / -1;
}
.content-column {
    grid-column: 2 / -1;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--gap);
}
body > .wrapper {
    padding-top: 3.5rem;
}
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    height: 3.5rem;
    transition: box-shadow 0.3s ease;
}

html.scrolled header {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}
.header-content {
    display: flex;
    gap: 3rem;
    justify-content: space-between;
    align-items: center;
    font-size: var(--font-nav);
}
.navs {
    display: flex;
    gap: inherit;
    justify-content: space-around;
    align-items: center;
}
.navs nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}
.nav-lang a {
    text-decoration: underline;
    font-size: 0.8em;
    text-transform: uppercase;
}
.hero {
    background-color: var(--background-color);
    min-height: 30vw;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--header-font-color);
}
.hero h2 {
    font-size: var(--font-hero-title);
    font-weight: 400;
}
.hero .headline, .large-title {
    font-size: min(var(--font-very-large), 8vw);
    line-height: var(--line-height-very-large);
    font-weight: 300;
}
.tpl-Room .hero .headline,
.thumbnail-home-links .hero .headline {
    font-size: min(var(--font-very-very-large), 8vw);
    line-height: var(--line-height-very-very-large);
    min-width: calc(min(62rem, 100vw - 2rem) * 0.65);
    width: calc(min(62rem, 100vw - 2rem) * 0.65);
    max-width: calc(min(62rem, 100vw - 2rem) * 0.65);
}

.small-title {
    font-family: var(--font-sans);
    font-size: var(--font-body);
    font-weight: 700;
    margin-top: 3rem;
}
.hero .headline {
    margin-bottom: 0;
}
.tpl-Person .hero .headline::before {
    content: "„";
}
.tpl-Person .hero .headline::after {
    content: "”";
}

.thumbnail-home-links {
    margin-top: calc(0rem - var(--gap));
}

.thumbnail-home-links {
    margin-bottom: calc(var(--gap) * 2);
}

footer {
    background-color: black;
    color: white;
    font-size: var(--font-small);
    padding: 1rem 0;
    margin-top: var(--gap);
}
footer > .container > :last-child {
    grid-column: -2/-1;
    text-align: right;
}

.footer-links {
    display: flex;
    gap: .4rem;
    flex-direction: column;
}

.audio-player {
  position: relative;
  margin: 6rem 0 3rem;
}

.plyr--audio {
  background: transparent;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 1rem;
  position: relative;
  z-index: 1;
  --plyr-progress-loading-background: black;
  --plyr-audio-progress-buffered-background: black;
  --plyr-range-thumb-shadow: none;
  --plyr-range-thumb-background: var(--plyr-color-main);
  --plyr-audio-progress-current-background: var(--plyr-color-main);
  --plyr-range-track-height: .2rem;
  --plyr-range-thumb-height: .8rem;
  --plyr-control-icon-size: 1.9rem;
}

.plyr--audio .plyr__controls .plyr__controls__item:first-child {
    position: absolute;
    bottom: 3rem;
    left: 0;
}

.plyr--audio .plyr__controls {
    padding: 0;
}

.plyr--audio .plyr__controls > [data-plyr="play"] {
  background: var(--plyr-color-main);
  color: #fff;
  border-radius: 50%;
  padding: .9rem;
  grid-column: 1;
  grid-row: 1;
}

.plyr--audio .plyr__controls > [data-plyr="play"] .icon--not-pressed {
    translate: 10% 0;
}

.plyr--audio .plyr__time {
  font-size: var(--font-small);
  position: absolute;
  bottom: -1rem;
  left: 0;
}

.plyr--audio .plyr__time--current {
    left: auto;
    right: 0;
    text-align: right;
}

.plyr--audio .plyr__time--current:before {
    display: none;
}

.plyr--audio .plyr__progress {
  grid-column: 1 / span 2;
  grid-row: 2;
  margin-top: 10px;
}

.audio-player label {
    font-weight: 600;
    font-family: var(--font-mono);
    position: absolute;
    z-index: 2;
    top: -2.9rem;
    left: 4rem;
}

.full-window-width-background {
    position: relative;
}

.full-window-width-background:before {
    content: '';
    position: absolute;
    bottom: -2.9rem;
    top: -2.9rem;
    left: 0;
    right: 0;
    scale: 2 1;
    z-index: 0;
    background-color: var(--light-neutral-background);
}


.thumbnail-links {
    gap: 1rem;
    margin-bottom: 10rem;
}

.thumbnail-link {
    padding: 1rem;
    background-color: var(--background-color);
    position: relative;
    z-index: 1;
    color: var(--header-font-color);
}

.small-thumbnails {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr 1fr;
    position: relative;
}

.small-thumbnails .thumbnail-link {
    min-height: 23rem;
}

.thumb-title {
    font-weight: 400;
}

.tpl-Room .thumb-title {
    font-size: var(--font-medium);
}

.thumbnail-link .headline {
    font-size: var(--font-medium);
    font-weight: 600;
}

.readmore__toggle {
    cursor: pointer;
    text-decoration: underline;
    font-size: var(--font-small);
    font-size: 1em;
    outline: none;
    color: inherit;
    border: none;
    padding: 0;
    background: none;
    font-family: inherit;
    line-height: 1;
    text-underline-offset: .2em;
    text-decoration-thickness: 1.5px;
}
.content-column {
    width: 100%;
    padding-right: 1.5%;
}

.text-body p > br + a {
    display: inline-block;
    margin-top: .5em;
}

.text-body > .grid-left {
    width: 30%;
    float: left;
    clear: both;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-body > .grid-right,
.text-body > :has(.grid-right) {
    width: calc(70% - .5rem);
    float: right;
}

.text-body > *:has(+.grid-left):before {
    content: '';
    display: block;
    width: 100%;
    clear: both;
}

.text-body > *:not(.grid-left, .grid-right, .readmore__content) {
    content: '';
    display: block;
    width: 100%;
    clear: both;
}

.edit-page-link {
    position: fixed;
    top: 0;
    right: 0;
}

.edit-page-link a {
    padding: .1rem .4rem;
    font-size: var(--font-small);
    text-decoration: none;
    background-color: white;
    outline: 1px solid black;
    z-index: 1000;
    opacity: .2;
    transition: all 0.2s ease;
    display: block;
}
.edit-page-link a:hover {
    text-decoration: none;
    background-color: black;
    color: white;
    opacity: 1;
}

.carousel {
  position: relative;
}

/* ---------- Thumnails layout ---------- */
.thumbnails-carousel {
    position: relative;
    margin-bottom: 10rem;
}

.embla__viewport {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.embla__container {
    display: flex;            /* overrides .grid */
    gap: 1rem;
    margin-bottom: 0;
    touch-action: pan-y pinch-zoom;
}

.carousel--text .embla__slide {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
}
.carousel--text .embla__slide figure { margin: 0; }
.carousel--text .embla__slide img { display: block; width: 100%; height: auto; }

.thumbnail-link {
    flex: 0 0 min(15rem, 26%);
    min-width: 0;
    min-height: 20rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;          /* clips the SVG shape */
    isolation: isolate;
}

.thumbnail-link .headline,
.thumbnail-link .thumb-title {
    position: relative;
    z-index: 1;                /* above the shape */
}

.thumbnail-link .headline {
    margin: 0;
    font-size: var(--font-medium);
}
.thumb-title {
    font-size: var(--font-body);
    margin: 0;
}

.thumbnail-link {
    border-radius: .5rem;
}

.thumbnails-carousel .thumbnail-link {
    min-width: 14.74rem;
}

.room-thumbnails .thumbnail-link {
    border-radius: .5rem;
    background-size: calc(100% - 4rem);
    background-position: center 8rem;
}

/* ---------- SVG shape (uses the room's SVG as a mask) ---------- */
.interview-thumbnails .thumbnail-link::before {
    content: '';
    position: absolute;
    z-index: 0;
    height: 110%;              /* square is a bit taller than the card */
    aspect-ratio: 1;           /* width follows height, so it's ~150% of the card width */
    top: -5%;
    left: 50%;
    transform: translateX(-50%);   /* centered, then mirrored */
    background-color: var(--shape-color, transparent);
    -webkit-mask: var(--shape) center / 100% 100% no-repeat;
            mask: var(--shape) center / 100% 100% no-repeat;
}

/* ---------- Variations ---------- */

.interview-thumbnails .thumbnail-link {
    --fg-tone: color-mix(in oklab, var(--foreground-color), black var(--tone-step, 0%));
}

/* 1 – foreground, bold italic, no shape */
.interview-thumbnails .thumbnail-link:nth-child(6n+1) {
    background-color: var(--fg-tone);
}
.interview-thumbnails .thumbnail-link:nth-child(6n+1) .headline {
    font-weight: 700;
    font-style: italic;
}

/* 2 – background, blended shape, light weight */
.interview-thumbnails .thumbnail-link:nth-child(6n+2) {
    background-color: var(--background-color);
    --shape-color: color-mix(in oklab, var(--fg-tone), var(--background-color));
    /*
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    */
}
.interview-thumbnails .thumbnail-link:nth-child(6n+2) .headline {
    font-weight: 300;
}

/* 3 – foreground, blended shape, bold */
.interview-thumbnails:not(.thumbnails-carousel) .thumbnail-link:nth-child(6n+3){
    background-color: white;
    color: black;
}
.interview-thumbnails.thumbnails-carousel .thumbnail-link:nth-child(6n+4) {
    background-color: var(--background-color);
}
.interview-thumbnails:not(.thumbnails-carousel) .thumbnail-link:nth-child(6n+3) .headline,
.interview-thumbnails.thumbnails-carousel .thumbnail-link:nth-child(6n+4) .headline {
    font-weight: 300;
    font-style: italic;
}

/* 4 – background grey,  no shape */
.interview-thumbnails .thumbnail-link:nth-child(6n+4) {
    background-color: var(--neutral-background);
    color: black;
    /*
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    */
}
.interview-thumbnails .thumbnail-link:nth-child(6n+4) .headline {
    font-weight: 300;
}

/* 5 – background white or light, italic, no shape */
.interview-thumbnails.thumbnails-carousel .thumbnail-link:nth-child(6n+4),
.interview-thumbnails:not(.thumbnails-carousel) .thumbnail-link:nth-child(6n+5) {
    background-color: var(--fg-tone);
    --shape-color: color-mix(in oklab, var(--fg-tone), var(--background-color));
}
.interview-thumbnails.thumbnails-carousel .thumbnail-link:nth-child(6n+4) .headline,
.interview-thumbnails:not(.thumbnails-carousel) .thumbnail-link:nth-child(6n+5) .headline {
    font-weight: 700;
}

/* 6 – background, bold italic, no shape */
.interview-thumbnails .thumbnail-link:nth-child(6n+6) {
    background-color: var(--background-color);
    /*
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    */
}
.interview-thumbnails .thumbnail-link:nth-child(6n+6) .headline {
    font-weight: 700;
    font-style: italic;
}

.embla__btn {
    position: absolute;
    top: 4rem;
    z-index: 2;
    width: 3rem;           /* 70px */
    height: 3rem;
    padding: 0;
    border: 0;
    border-radius: 50%;        /* the circle from your SVG */
    background-color: #555555;
    background-image: url("data:image/svg+xml,%3Csvg width='70' height='70' viewBox='0 0 70 70' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 35h32M39 23l12 12-12 12' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    cursor: pointer;
    transition: background-color .2s ease;
}

.embla__btn:hover {
    background-color: black;
}

.embla__btn[hidden] {
    display: none;
}

.embla__btn--prev {
    left: 0;
    transform: scaleX(-1) translateX(30%);     /* flips the arrow to point back */
}

.embla__btn--next {
    right: 0;
    transform: translateX(30%);
}

.thumbnail-home-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    --duration: .8s;
}

.thumbnail-home-links .hero :is(h2, h3) {
    margin: 0;
}

.thumbnail-home-links .hero .link {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
}

.hero,
.thumbnail-home-links .hero {
    overflow: hidden;
    width: 100%;
    min-height: 22rem;
    height:  22rem;
    max-height: 22rem;
    position: relative;
    justify-content: flex-end;
    background-color: var(--background-color);
}

.thumbnail-home-links .hero {
    justify-content: space-between;
    min-height: 20rem;
    height:  20rem;
    max-height: 20rem;
    transition: all ease var(--duration);
}

@media (prefers-contrast: more) {
    body {
        --background-color: var(--background-color-more);
      }

    .hero,
    .thumbnail-home-links .hero {
        background-color: var(--background-color-more, var(--background-color));
        border: 2px solid #222;
      }
}

@media (forced-colors: active) {
    .hero,
    .thumbnail-home-links .hero { border: 1px solid CanvasText; }
}

.hero img,
.thumbnail-home-links .hero img {
    position: absolute;
    z-index: 0;
    bottom: 0;
    right: 0;
    transition: all ease var(--duration);
    max-width: none;
    translate: var(--x-translate, 0) var(--y-translate, 0);
    height: var(--height, 100%);
    max-height: var(--height, 100%);
}

.hero > * {
    position: relative;
}

@media screen and (min-width: 900px) and (prefers-reduced-motion: no-preference) {

    .thumbnail-home-links .hero {
        max-width: calc(75.5% - 1rem);
    }

    .thumbnail-home-links :is(.headline, .link) {
        transition: opacity ease-in calc(var(--duration) * 0.8) calc(var(--duration) * 0.2);
    }

    :is(
        /* secondary card at rest: no hover, no focus */
        .thumbnail-home-links .hero:not(:nth-child(odd):last-child):is(:nth-child(2), :nth-child(3), :nth-child(6), :nth-child(7)):not(:hover, :has(:focus-visible)),

        /* secondary card while the pointer is elsewhere in the grid: focus is ignored */
        .thumbnail-home-links:hover .hero:not(:nth-child(odd):last-child):is(:nth-child(2), :nth-child(3), :nth-child(6), :nth-child(7)):not(:hover),

        /* partner of a hovered card (3, 7) */
        .thumbnail-home-links .hero:not(:nth-child(odd):last-child):is(:nth-child(3), :nth-child(7)):hover + .hero,

        /* partner of a focused card (3, 7), only if the pointer is outside the grid */
        .thumbnail-home-links:not(:hover) .hero:not(:nth-child(odd):last-child):is(:nth-child(3), :nth-child(7)):has(:focus-visible) + .hero,

        /* card before a hovered card (2, 6) */
        .thumbnail-home-links .hero:not(:nth-child(odd):last-child):has(+ :nth-child(2):hover, + :nth-child(6):hover),

        /* card before a focused card (2, 6), only if the pointer is outside the grid */
        .thumbnail-home-links:not(:hover) .hero:not(:nth-child(odd):last-child):has(+ :nth-child(2) :focus-visible, + :nth-child(6) :focus-visible)
      ) {
        max-width: 24.5%;

        & :is(.headline, .link) {
          opacity: 0;
          transition: opacity ease-out .2s 0s;
        }

        & img {
          rotate: -90deg;
          scale: .55;
          translate: var(--x-translate-small, 5.75rem) var(--y-translate-small, 2.5rem);
        }
      }


    .thumbnail-home-links .hero:nth-child(odd):last-child {
        max-width: 100% !important;
    }

    .thumbnail-home-links .hero:nth-child(odd):last-child :is(.headline, .link) {
        opacity: 1 !important;
    }

    .thumbnail-home-links .hero:nth-child(odd):last-child .headline {
        min-width: 0;
        width: 90%;
        max-width: 50rem;
    }

}

.hamburger {
    display: none;
}

@media screen and (max-width: 899px) {
    .hamburger {
        display: block;
        position: fixed;
        top: .4rem;
        right: .5rem;
        z-index: 1000;
        padding: .5rem;
    }
    .hamburger-box {
        width: 2rem;
        height: 2rem;
    }
    .hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
        width: 2rem;
        height: .2rem;
        border-radius: .1rem;
        background-color: black;
    }
    .hamburger-inner::before {
        top: -0.6rem;
    }
    .hamburger-inner::after {
        bottom: -0.6rem;
    }
    .hamburger.is-active .hamburger-inner,
    .hamburger.is-active .hamburger-inner::before,
    .hamburger.is-active .hamburger-inner::after {
        background-color: var(--header-font-color);
    }
    .hamburger:hover,
    .hamburger.is-active:hover {
        opacity: 1;
    }
    .navs {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        color: var(--header-font-color);
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        z-index: 999;
        height: 100vh;
        overflow-y: auto;
        z-index: 999;
        font-size: var(--font-large);
        justify-content: space-evenly;
    }
    .navs > nav:first-child {
        flex-direction: column;
    }
    .hamburger:not(.is-active) ~ .navs {
        display: none;
    }
    .content-column {
        grid-column: 1 / -1;
    }
    .small-thumbnails {
        grid-template-columns: 1fr 1fr;
    }

    .hero.full-width-column,
    .thumbnail-home-links {
        margin-top: calc(0rem - var(--gap));
    }
    .tpl-Room .hero .headline, .thumbnail-home-links .hero .headline {
        min-width: 100%;
        width: 100%;
        max-width: 100%;
    }

    footer .grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 600px) {
    .small-thumbnails {
        grid-template-columns: 1fr;
    }
    .full-window-width-background {
        margin-bottom: 4rem;
        margin-top: 4rem;
    }
    .hero.full-width-column,
    .thumbnail-home-links {
        margin-top: 0;
    }
    footer .grid {
        grid-template-columns: 1fr;
    }
    footer > .container > :last-child {
        grid-column: 1 / 1;
        text-align: left;
    }
    .navs a {
        text-align: center;
        display: block;
        line-height: 1.1;
    }
}
