
:root {
  --font-size: 11px;
  --font-color: rgb(132, 132, 132);
  --vh: 1vh;
  --padding: calc(var(--font-size) / 2);
}
p, h1, h2, a, dl, dt, dd, ul, li, div{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-weight: normal;
  text-decoration: none;
  color: var(--font-color);
  font-size: var(--font-size);
  -webkit-font-smoothing: antialiased;
  font-family: Helvetica Neue, Helvetica, Arial, sans-serif ;
  font-weight: 500;
  list-style: none;
  letter-spacing: 0.04em;
  line-height: 1.5;
  text-transform: uppercase;
  display: inline-block;
}
body {
  overflow: hidden; 
  position: fixed;
  top: 0;
  width: 100%;
  /* opacity: 0;
  transition: opacity 1s; */
  height: calc(var(--vh) * 100); /* Korrigiert die Höhe auf mobilen Geräten */
  touch-action: pan-x pan-y;
}
/* body.js-loaded {
  opacity: 1;
} */
::selection {
  background: transparent; /* Keine Hintergrundfarbe */
  color: black; /* Schwarze Schriftfarbe */
}
#content {
  height: calc(var(--vh) * 100);
  display: flex;
  width: 100%;
  position: fixed;
  flex-direction: column;
  overflow: hidden;
}
.container {
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}
.container > * {
  transform: translateZ(0); 
  will-change: transform;
}
.intro{
  position: relative;
  height: calc(var(--vh) * 100); 
  /* height: calc(var(--vh) * 100);  */
  display: flex;
  align-content: space-between;
  align-items: center;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--padding);
}
.contact, .update, .about {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
}
.contact{
  order: 2;
}
.update{
  order: 1;
}
.about p:last-of-type{
  padding-bottom: calc( var(--font-size) * 1.5 - var(--padding));
}
p{
  padding-bottom: calc( var(--font-size) * 1.5 );
}
.outro{
  display: flex;
  justify-content: center;
  padding: var(--padding) var(--padding) 0 var(--padding);
  /* height: calc(var(--vh) * 100);  */
  position: relative;
}

/* textbreite */
span.longest-sentence{
  opacity: 0;
  line-height: 0;
  height: 0;
  visibility: hidden;
}
p > span.longest-sentence{
  margin-top: calc(var(--font-size) * 1.5 * -1);
}
.contact p:last-of-type{
  padding-bottom: 0;
}


/* Bilder */
.images{
  position: relative;
}
.image-container{
  position: relative;
  display: block;
  /* margin-top: -1px; */
}
/* ToDo: funktioniert noch nicht */
.image-container.max-height{
  max-height: 100vh;
}
picture {
  display: block; 
  position: relative; 
}
picture img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-sizer video{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  contain: layout style;
  will-change: transform;
}



/* - - - - - - - - - - Animationen - - - - - - - - - - */
.js-media-mouse a:hover{
  color: black;
}

.lazyload, .lazyloading {
  opacity: 0;
}
.lazyloaded {
  opacity: 1;
  transition: opacity 1s ;
}
video.lazyload, video.brazyloading {
  opacity: 0;
}
video.brazyloaded, video.brazyload.poster-loaded, video.brazyloading.poster-loaded {
  opacity: 1;
  transition: opacity 1s;
}


/* - - - - - - - - - - Bildbeschrieb - - - - - - - - - - */
.hidden-caption{
  display: none;
  /* position: sticky; */
}
#caption {
    display: block;
    position: fixed;
    bottom: 50%;
    transform: translate(0, 50%);
    /* margin-bottom: var(--padding); */
    padding: var(--padding);
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}
#caption a{
  pointer-events: auto;
}
#caption .caption-inner{
  display: flex;
  justify-content: center;
}
#caption .caption-inner p{
  padding-bottom: 0;
}
h1.caption-desktop {
    display: flex;
    flex-direction: column;
}
.js-scrolltrigger {
    position: absolute;
    height: 100%;
    top: 20px;
    width: 100%;
    z-index: -1;
}
.image-container:last-of-type .js-scrolltrigger {
    height: calc(100% - 40px);
}


/* - - - - - - - - - - Desktop Screensize - - - - - - - - - - */
.desktop-picture-out{
  display: block;
  visibility: visible;
}
.mobile-picture, .mobile-video, .caption-mobile{
  display: none;
  visibility: hidden;
}



/* - - - - - - - - - - Mobile Screensize - - - - - - - - - - */
@media only screen and (max-width: 500px) {
  :root{
    --font-size: 9px;
  }
  h1.caption-desktop, .desktop-picture-out{
    display: none;
    visibility: hidden;
  }
    .mobile-picture, .mobile-video, .caption-mobile{
    display: block;
    visibility: visible;
  }
  h1.caption-mobile {
    display: flex;
    flex-direction: column;
}
}
