:root {
  --fw: 300;
  --fw-bold: 700;
  --fs-f-s: 0.75;
  --fs-f-l: 1.125;
  --fs: clamp(1rem, calc(0.5rem + 1.5 * 1vmax), 2rem);
  --fs-l: calc(var(--fs) * var(--fs-f-l));
  --fs-s: calc(var(--fs) * var(--fs-f-s));
  --base-dist: var(--fs);
}

body {
  font-size: var(--fs);
  font-weight: var(--fw);
  letter-spacing: .1em;
}

small,
.sm {
  font-size: var(--fs-s);
}

strong,
b {
  font-weight: var(--fw-bold);
}

a,
a:visited {
  text-decoration: none;
  color: rgb(91 209 215);
  transition: all .25s ease;
}

a:hover {
  color: rgb(56, 133, 137);
}

p {
  margin: .5em 0;
}

h1,
h3 {
  display: inline-block;
  font-size: var(--fs-l);
  font-weight: var(--fw-bold);
  margin: 0;
  line-height: 1.4;
  filter: drop-shadow(0 0 .01em rgb(0 0 0 / 1));
}

h1 {
  font-size: calc(var(--fs-l) * 2);
  text-transform: uppercase;
}

section {
  display: flex;
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  margin: 0 auto;
  /* Needs to be here for iOS (and normally) */
  scroll-margin: 0;
  scroll-snap-align: start;
  overflow: hidden;
  filter: none;
  transition: none;
  contain: layout;
}

section.visible {
  transition: all .15s ease;
  filter: saturate(.4);
}

section.fixed {
  filter: saturate(1);
}

picture {
  display: flex;
  --pos-h: center;
  --pos-v: center;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

picture img {
  object-fit: cover;
  flex: 1;
  width: 100%;
  height: 100%;
  object-position: var(--pos-h, center) var(--pos-v, center);
}

.content {
  position: relative;
  font-weight: var(--fw-light);
  display: flex;
  overflow: auto;
  flex: 1;
  justify-content: end;
  align-items: end;
  max-height: calc(100% - var(--side-dist) * 2);
  max-height: 100%;
  --side-dist: min(10vh, calc(var(--base-dist) * 2));
  --pv: var(--side-dist);
  padding: var(--pv) var(--side-dist);
  --mask-width: var(--side-dist);
  mask-image: linear-gradient(180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 1) var(--mask-width),
      rgba(255, 255, 255, 1) calc(100% - var(--mask-width)),
      rgba(255, 255, 255, 0) calc(100% - var(--mask-width) * .25),
      rgba(255, 255, 255, 0) 100%);
  -webkit-overflow-scrolling: touch;
  transition: padding .25s ease;
}

@supports (height: calc(100lvh - 100dvh)) {
  .content {
    --pv: calc(var(--side-dist) + (100lvh - 100dvh) / 2);
  }
}

.content.left {
  justify-content: start;
}

.content.center {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.content>div {
  position: relative;
  text-align: right;
  max-height: calc(100% - 2 * var(--side-dist));
  max-height: 100%;
  color: rgb(255 255 255 / 0.9);
  filter: drop-shadow(0em 0em .1em rgb(0 0 0 / 1));
  max-width: min(50rem, 100%);
  word-break: break-word;
  overflow-wrap: break-word;
  transition: all .25s .25s ease;
  opacity: 0;
  transform: translateX(calc(100% + 2 * var(--base-dist)));
}

.content>div>*:last-child {
  padding-bottom: var(--side-dist);
}

.content.dark>div {
  color: rgb(0 0 0 / 0.9);
  filter: drop-shadow(0em 0em .1em rgb(255 255 255 / .8));
}

section.fixed .content>div {
  opacity: 1;
  transform: translateX(0);
}

.content.left>div {
  text-align: left;
  transform: translateX(calc(-100% - 2 * var(--base-dist)));
}

.content.center>div {
  text-align: left;

}

a.arrow {
  position: absolute;
  display: block;
  top: 50%;
  left: calc(var(--side-dist) + 1rem);
  cursor: pointer;
  --delay: 2s;
  transition: opacity 0s var(--delay);
  opacity: 0;
}

#start .content a.arrow,
.content.left a.arrow {
  left: auto;
  right: calc(var(--side-dist) + 1rem);
}

.content.center a.arrow {
  top: auto;
  left: auto;
  bottom: var(--side-dist);
  transform: translateX(-50%);
}

#impressum .content a.arrow {
  transform: rotate(180deg);
}

@media (max-width:479px) {
  .content.center a.arrow {
    bottom: var(--base-dist);
  }

  #volker.fixed .content a.arrow span {
    animation: none;
  }

  #volker.fixed .content a.arrow span:first-child {
    opacity: .5;
    transition: opacity .25s 2s;
  }
}


section.fixed:has(+ section.fixed) .arrow {
  opacity: 0;
}

section.fixed a.arrow {
  opacity: 1;
}

a.arrow span {
  display: block;
  width: 2rem;
  height: 2rem;
  border-bottom: .25rem solid rgb(255 255 255 / 1);
  border-right: .25rem solid rgb(255 255 255 / 1);
  transform: rotate(45deg);
  margin: -.75rem;
  opacity: 0;
  animation: none;
  filter: drop-shadow(0 0 .01em rgb(0 0 0 / 1));
}

.content.dark a.arrow span {
  border-bottom: .25rem solid rgb(0 0 0 / 0.7);
  border-right: .25rem solid rgb(0 0 0 / 0.7);
  filter: drop-shadow(0 0 .01em rgb(255 255 255 / 1));
}

section.fixed:has(+ section.fixed) .arrow span {
  animation: none;
  opacity: 0;
  filter: drop-shadow(0 0 .01em rgb(0 0 0 / 0));
}

section.fixed a.arrow span {
  animation: animate 2s var(--delay) 3;
}

section.fixed .arrow span:first-child {
  animation-delay: calc(var(--delay) - .2s);
  animation: animate 2s var(--delay) 3, animate-stay 1s calc(var(--delay) * 4 - .6s) forwards;
  /* to stay visible after animation */
  opacity: .5s;
  transition: opacity .25s calc(var(--delay) * 4);
}

section.fixed .arrow span:nth-child(2) {
  animation-delay: calc(var(--delay) - .2s);
}

section.fixed .arrow span:nth-child(3) {
  /* transition: opacity 2s; */
  animation-delay: calc(var(--delay) - .4s);
}

section.fixed a.arrow:hover span {
  animation: none;
  transition: opacity .25s, transform 1s;
  filter: drop-shadow(0 0 .01em rgb(0 0 0 / 0));
  opacity: 0;
}

section.fixed a.arrow:hover span:first-child {
  filter: drop-shadow(0 0 .01em rgb(0 0 0 / 1));
  opacity: 1;
}

section.fixed .content.dark a.arrow:hover span:first-child {
  filter: drop-shadow(0 0 .01em rgb(255 255 255 / 1));
}

@keyframes animate-stay {
  0% {
    opacity: 0;
    filter: drop-shadow(0 0 .01em rgb(0 0 0 / 0));
    transform: rotate(45deg) translate(-4rem, -4rem);
  }

  50% {
    opacity: 0;
    filter: drop-shadow(0 0 .01em rgb(0 0 0 / 0));
  }

  100% {
    opacity: .5;
    filter: drop-shadow(0 0 .01em rgb(0 0 0 / .5));
    transform: rotate(45deg) translate(0, 0);
  }
}

@keyframes animate {
  0% {
    opacity: 0;
    filter: drop-shadow(0 0 .01em rgb(0 0 0 / 0));
    transform: rotate(45deg) translate(-4rem, -4rem);
  }

  50% {
    opacity: 1;
    filter: drop-shadow(0 0 .01em rgb(0 0 0 / 1));
  }

  100% {
    opacity: 0;
    filter: drop-shadow(0 0 .01em rgb(0 0 0 / 0));
    transform: rotate(45deg) translate(0, 0);
  }
}

.content.dark h3 {
  filter: drop-shadow(0 0 .01em rgb(255 255 255 / .8));
}

.content.bg p {
  line-height: 1.55;
}

.content.bg h3,
.content.bg li,
.content.bg p small,
.content.bg p span {
  background: rgb(0 0 0 / .25);
  box-shadow: rgb(0 0 0 / .25) 0.25em 0px 0px, rgb(0 0 0 / .25) -0.25em 0px 0px;
  box-decoration-break: clone;
  padding: 0.2em 0;
}

.content.bg li.sm {
  box-shadow: rgb(0 0 0 / .25) calc(0.25em / var(--fs-f-s) + (var(--fs-f-s) * 1px)) 0px 0px, rgb(0 0 0 / .25) calc(-0.25em / var(--fs-f-s) - (var(--fs-f-s) * 1px)) 0px 0px;
}

.content.bg ul {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin-top: .25em;
}

.content.bg li {
  display: inline-block;
  width: fit-content;
  flex: 0;
}

ul {
  font-size: var(--fs-l);
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.content p,
.content li {
  line-height: 1.4;
  filter: drop-shadow(0 0 .01em rgb(0 0 0 / 1));
  --delay: .4s;
  transition: all .2s calc(.2s + var(--delay)) ease;
  opacity: 0;
  transform: translateX(calc(100% + 2 * var(--base-dist)));
}

.content.dark p,
.content.dark li {
  filter: drop-shadow(0 0 .01em rgb(255 255 255 / .8));
}

.content.left p,
.content.left li {
  transform: translateX(calc(-100% - 2 * var(--base-dist)));
}

.content div>p:nth-child(3),
ul>li:nth-child(2) {
  --delay: .5s;
}

.content div>p:nth-child(4),
ul>li:nth-child(3) {
  --delay: .6s;
}

.content div>p:nth-child(5),
ul>li:nth-child(4) {
  --delay: .7s;
}

.content div>p:nth-child(6),
ul>li:nth-child(5) {
  --delay: .8s;
}

.content div>p:nth-child(7),
ul>li:nth-child(6) {
  --delay: .85s;
}

.content div>p:nth-child(8),
ul>li:nth-child(7) {
  --delay: .9s;
}

.content div>p:nth-child(n + 8),
ul>li:nth-child(n + 7) {
  --delay: 1s;
}

section.fixed li,
section.fixed .content p,
section.fixed .content p,
section.fixed .content.left p,
section.fixed .content.left li {
  opacity: 1;
  transform: translateX(0);
}

.sentinel {
  position: absolute;
  height: 1px;
  top: auto;
  bottom: 0px;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: -10;
}

@supports(height: 100dvh) {
  .sentinel {
    top: calc(100dvh - 1px);
    bottom: auto;
  }
}

.sentinel.top {
  /* needed for intersection observer offset */
  top: 1px;
  bottom: auto;
}

#start .content.left>div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: space-between;
  align-items: start;
  height: 100%;
  min-width: 100%;
  transform: translateX(0) translateY(calc(100% + 2 * var(--side-dist)));
  padding-bottom: var(--side-dist);
  filter: drop-shadow(0 0 .01em rgb(255 255 255 / .8));
  filter: none;
}

#start.fixed .content.left>div {
  transform: translateX(0) translateY(0);
}

#start .content>div>*:last-child {
  padding-bottom: 0;
}

#start ul {
  white-space: nowrap;
}

#start ul.start li {
  font-weight: var(--fw-bold);
  line-height: 1;
}

#start ul.start li:first-child {
  opacity: .4;
  font-size: 2em;
}

#start ul.start li:nth-child(2) {
  opacity: .7;
  font-size: 3em;
}

#start ul.start li:last-child {
  font-size: 3.5em;
  color: rgb(255 255 255 / 0.9);
}

#start .content h1 {
  height: fit-content;
  line-height: 1.2;
}

@media (min-width:1200px) {
  #start .content.left>div {
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: end;
    transform: translateX(0) translateY(calc(100% + 2 * var(--side-dist)));
    height: auto;
    padding-bottom: var(--base-dist);
  }
}

#volker .content>div {
  text-align: center;
}

#volker #portrait {
  right: auto;
  align-items: start;
  justify-content: end;
  top: 25%;
  max-height: 75%;
}

#volker #portrait img {
  object-fit: contain;
  object-position: bottom left;
}