/* remus  */
@font-face {
    font-family: "ss";
    src: url(../fonts/ss.woff) format(woff),
         url(../fonts/ss.woff2) format(woff2);
    text-rendering: geometricPrecision;
  }
/* garamond */
@font-face {
    font-family: "s-1";
    src: url(../fonts/s-1.woff) format(woff),
         url(../fonts/s-1.woff2) format(woff2);
    text-rendering: geometricPrecision;
}
@font-face {
    font-family: "s-1-i";
    src: url(../fonts/s-1-i.woff) format(woff),
         url(../fonts/s-1-i.woff2) format(woff2);
    text-rendering: geometricPrecision;
}
/* instrument  */
@font-face {
    font-family: "s-2";
    src: url(../fonts/s-2.woff2) format(woff2);
    text-rendering: geometricPrecision;
}
@font-face {
    font-family: "s-2-i";
    src: url(../fonts/s-2-i.woff2) format(woff2);
    text-rendering: geometricPrecision;
}






/*          MOBILE          */

html, body{
  margin: 0; 
  padding: 0;

  width: 100vw;
  font-size: 1vw;

  scroll-behavior: smooth;
  overflow: auto;
  cursor: crosshair; 
  color: var(--b);

  scrollbar-width: none;
  -ms-overflow-style: none;
}




/*            START EFFECT                */

body {
  background: var(--w);
  opacity: 0; 
  transition: opacity 0.35s ease; 
}

img,
video {
  filter: invert(1) saturate(0) opacity(0.5); 
  transition: filter 0.35s linear, opacity 0.2s linear;
}

body.is-loaded {
  opacity: 1;
}


body.is-loaded img,
body.is-loaded video {
  filter: none !important;
  opacity: 1 !important;
  transition: filter 0.2s linear, opacity 0.2s linear;
}

.bts-viewer img,
.bts-viewer video {
  filter: none !important;
  opacity: 1 !important;
  transition: none;
}









:root{

  --ht-ss: 11px; 
  --rt-ss: 11px;

  --rt-s: 13.5px;
  --rt-s-a: 14px;

  --b: rgb(0, 0, 0);
  --w: rgb(242, 242, 242);
  --g: rgb(197, 196, 196);

  /* margins mobile */
  --mm: 8px;
}








/* ==============================
   SWITCHER STYLING
============================== */
.switcher {
  position: fixed;
  z-index: 999999999;
  top: 99dvh;
  left: 50%;
  transform: translate(-50%, -100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;

  background-color: rgba(197, 196, 196, 0.3); 
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);

  transition: background-color 0.3s ease;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);

  cursor: pointer;
}

.switcher::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: calc(50% - 4px);  
  height: calc(100% - 4px);
  background: var(--w); 
  border-radius: 999px;
  transition: transform 0.3s ease;
  z-index: 1;
  transform: translateX(0); 

  pointer-events: none;
}

body.is-writing .switcher::before {
  transform: translateX(calc(110%)); 
}

.switcher button {
  position: relative;
  z-index: 2;
  appearance: none;
  border: none;
  background: transparent;
  padding: 6px 8px;
  border-radius: 999px;
  cursor: pointer;

  opacity: 1; 
  transition: opacity 0.3s ease, color 0.3s ease;
}

.switcher button.is-active {
  opacity: 1;
  color: var(--w);
}

body.is-writing .switcher {
  background-color:rgba(145, 145, 145, 0.3) ; 
}

body:not(.is-writing) .switcher {
  background-color:rgba(0,0,0,0.3) ; 
}






/*       MAIN STRUCTURE      */


header{
  position: fixed;
  z-index: 9999999999999;
  display: grid;

  grid-template-columns: 1fr 1fr;
  column-gap: 5px;
  margin: 10px 0 0 0;

  top: 0rem;
  left: 50%;

  transform: translate(-50%, 0);
  transition: transform 1s ease;

  font-family: 'ss';
  font-size: var(--rt-ss);
  font-weight: 100;
}
/* handwriten header */
.header-s {  
  top: 7px;    
  transform: translate(0, -4px);        
  height: 40px;  
  pointer-events: none;   
}

.about-btn {
  position: fixed;
  top: 10px;
  right: 15px;

  height: 22px;
  width: 70x;

  border-radius: 100px;
  border: none;

  color: var(--b);
  font-size: var(--rt-ss);

  background-color: rgba(242, 242, 242, 0.2);

  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1px); 

  box-shadow: 0 2px 10px rgba(0,0,0,0.2);

  cursor: pointer;

  transition: background-color 0.3s ease, transform 0.2s ease;
  z-index: 9999;
}

.about-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* horizontal spacer */
.hs{
  position: relative;
  z-index: 1;

  height: 30px;
  width: 95vw;
    background-color: transparent;

}




/*          SECTIONS LAYOUT           */
section.styling,
section.writing {
  position: fixed;
  overflow-x: hidden;

  top: 0;
  left: 0;

  margin: 0;

  width: 100vw;

  transition: transform 0.6s ease;

}

/* initial state */
section.styling {
  position: absolute;
  overscroll-behavior: contain;

  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;

  height: 100dvh;

  transform: translateX(0);
}


/* active project */
section.styling [data-overlay].is-active {
  display: block;
}

/* img handling */
section.styling [data-overlay] {
  position: relative;
}


section.styling [data-overlay] img,
section.styling [data-overlay] video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  height: 90%;
  transform: translate(-50%, -50%);
  object-fit: contain;

  display: none;
}

section.styling [data-overlay] img.is-active,
section.styling [data-overlay] video.is-active {
  display: block;
}
img.is-active {
  display: block;
}
section.styling::before,
section.styling::after {
  pointer-events: none;
}

section.styling::before { left: 0; }
section.styling::after  { right: 0; }








.styling-main-grid {
  height: 100dvh;
  width: 100vw;

  scroll-snap-align: start;

  display: grid;
  grid-template-rows: 85dvh 15dvh;
}

.images {
  position: relative;
  overflow: hidden;
}
.image-nav {
  position: absolute;
  z-index: 999999999999;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  pointer-events: all; 
  transform: translateY(-50%);
}

  .nav-hit {
    position: relative;
    height: 60vh;
    width: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .nav-hit .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 22px;
    width: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background-color: rgba(242, 242, 242, 0.2);
    backdrop-filter: blur(1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);

    font-family: "ss";
    font-size: var(--rt-ss);
  }

  .prev-hit .arrow {
    left: 15px;
  }

  .next-hit .arrow {
    right: 15px;
  }


.grid-title-year{
  position: relative;
  z-index: 9999999;

  margin: 0 15px 0 15px;
  
  width: calc(100vw - 30px);

  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.grid-item-1{
  max-width: 70rem;
  grid-column: 1 / span 3;
  grid-row: 1 / span 1;

}
.grid-item-2{
  grid-column: 4 / span 1;
}
.grid-item-3{
  grid-column: 1 / span 4;
  grid-row: 2 / span 1;
}

.persona{
  position: relative;
  z-index: 999;
  
  scroll-snap-align: end;

  width: 100vw;
  height: 100dvh;
}
.persona p{
  margin: 0 15px 0 15px;
}

button.open-bts{
  position: relative;
  left: 50%;

  transform: translate(-50%);

  height: 20px;
  width: 50px;
  margin: 40px 0 0 0;

  background-color: var(--w);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);

  color: var(--b);
  font-size: var(--rt-ss);
  border-radius: 100px;
  border: none;
}
button.open-bts.clicked {
  background-color: var(--g); 
}
button.back-bts {
  position: relative;
  left: 50%;
  transform: translate(-50%);
  height: 30px;
  width: 50px;
  margin: 20px 0 0 0;
  background-color: var(--w);
  box-shadow: 0 0 3px 0.2px var(--b);
  color: var(--b);
  font-size: var(--rt-ss);
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button.back-bts:hover {
  background-color: var(--g);
}
.impressum{
  text-decoration: underline;
}
summary {
  list-style: none;          
  -webkit-appearance: none; 
  cursor: pointer;
}

summary::-webkit-details-marker {
  display: none; 
}
.credits{
  position: absolute;

  top: 100%;

  padding-bottom: 10px;

  transform: translate(0, -100%);
}


section.writing {
  transform: translateX(200%);

}

/* active writing view */
body.is-writing section.styling {
  transform: translateX(-100%);
}
  
body.is-writing section.writing {
  transform: translateX(0);
}


/* layout wrinting */
.writing-intro{
  margin: 15px;
}
.writing-projects{
  width: calc(100vw - 20px);
  margin: 15px;

}

section.writing .grid-title-year{
  position: relative;
  /* margin wird in section writing definiert */
  margin: 0;
  width: calc(100vw - 30px);

  display: grid;
  grid-template-columns: 3fr 1fr;
}




section.bts {
  position: fixed;
  display: block;
  opacity: 1;     
  z-index: 999999999;

  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;

  transform: translateX(100%);
  transition: transform 0.6s ease;
  background: var(--w);
  overflow-y: auto;
}



body.is-bts section.bts {
  transform: translateX(0);
  height: 100dvh; 
  opacity: 1;

  display: block;
}


body.is-bts section.styling {
  transform: translateX(-200%);
    overflow: hidden;

}

body.is-bts section.writing {
  transform: translateX(-100%);
}

.bts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  padding: 15px;
}

.bts-item {
  aspect-ratio: 1 / 1.5;
  overflow: hidden;
}

.bts-item img, 
.bts-item video {
  width: 100%;
  height:100%;

  object-fit: cover;
  cursor: pointer;
}

.bts-viewer {
  position: fixed;
  inset: 0;
  top:0;
  background: var(--w);
  display: none;
  z-index: 99999999;
  overflow: hidden;
}

.bts-viewer.is-active {
  display: block;
  overscroll-behavior: contain;

}

.bts-viewer button {
  z-index: 99999999999;
  /* background: transparent; */
  border: none;
  font-size: var(--rt-ss);
  cursor: pointer;
  pointer-events: all;
}

.bts-close {
  position: fixed;
  z-index: 9999999999999999;
  top: 10px;
  right: 10px;
  color: var(--b);

  height: 22px;
  width: 22px;

  border-radius: 999px;

  background-color: rgba(242, 242, 242, 0.3);

  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px); 

  box-shadow: 0 2px 10px rgba(0,0,0,0.2);

}
.bts-exit {
  position: fixed;
  z-index: 999999;
  top: 10px;
  right: 10px;

  height: 22px;
  width: 22px;

  border: none;
  border-radius: 999px;

  color: var(--b);


  font-size: var(--rt-ss);
  cursor: pointer;
  pointer-events: all;
  background-color: rgba(242, 242, 242, 0.3);

  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px); 

  box-shadow: 0 2px 10px rgba(0,0,0,0.2);

}
.bts-viewer .image-nav {
  position: absolute;
  z-index: 9999999999999;
  top: 50%;
  left: 50%;
  width: 100vw;
  transform: translateY(-50%) translateX(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
}

.bts-viewer .image-nav button {
  pointer-events: auto;
}


.bts-prev-hit,
.bts-next-hit {
  z-index: 999999999;
  width: 50%;
  height: 60vh;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  pointer-events: auto;
  border: red solid 1px;
}

.bts-prev-hit .arrow,
.bts-next-hit .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  height: 22px;
  width: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 999px;
  background-color: rgba(242, 242, 242, 0.2);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);

  box-shadow: 0 2px 5px rgba(0,0,0,0.2);

  font-family: "ss";
  font-size: var(--rt-ss);
  color: var(--b);
}

/* Position der Pfeile */
.bts-prev-hit .arrow {
  left: 15px;
}

.bts-next-hit .arrow {
  right: 15px;
}

.bts-media-container {
  position: fixed;
  z-index: 9;
  pointer-events: none;
  inset: 0; 
}
.bts-media-container img,
.bts-media-container video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 90%;
  object-fit: contain;
  pointer-events: none
}






/*             FONT             */


/*    sans serif / styling     */

h2{
  padding: 0;
  margin: 0;

  color: var(--b);

  width: auto;

  font-family: "ss";
  font-size: var(--rt-ss);
  text-transform: uppercase;
  font-weight: 100;

}

.align-right{
  text-align: right;
}

p{
  color: var(--b) ;

  padding: 0;
  margin: 0;

  max-width: 95vw;

  font-family: "ss";
  font-size: var(--rt-ss);
  font-weight: 100;

  text-align: left;
}
a{
  color: var(--b) ;
  font-style: oblique; 
}

body.is-writing p{
  padding: 0;
  margin: 0;

  color: var(--b);

  font-family: "s-1";
  font-size: var(--rt-s);
}

body.is-writing a{
  text-decoration: underline;
  font-family: "s-1-i";
  font-style:normal; 


  font-size: var(--rt-s-a);
  color: var(--b);
}


/* Text Selection Color  */

::-moz-selection { /* Firefox */
  color: var(--w);
  background: var(--b);
}
  
::selection {
  color: var(--w);
  background: var(--b);
}

::-webkit-scrollbar {
   display: none; 
} 

/* disable highlight color on mobile */

button, a, div {
  -webkit-tap-highlight-color: transparent;
  outline: none;

}
button {
  -webkit-tap-highlight-color: transparent;
}
button:focus {
  outline: none;
}
button:focus-visible {
  outline: none;
}
button:active {
  background: none;
}









@media screen and (min-width: 992px) {
  section.styling,
  section.writing,
  section.bts {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    transition: transform 0.6s ease;
  }

  section.writing {
    transform: translateX(200%);
  }

  section.bts {
    transform: translateX(100%);
  }

  header {
    left: 50%;
    transform: translateX(-50%);
  }


  section.styling [data-overlay] img.is-active {
    display: block;
    max-height: 80dvh;
    max-width: 100%;
    object-fit: contain;

  }

  .image-nav {
    position: absolute;
    z-index: 99999999999;
    top: 50%;
    left: 50%;
    width: 75vw;
    transform: translateY(-50%) translateX(-50%);
    
  }
.bts-viewer .image-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75vw;
    transform: translateY(-50%) translateX(-50%);
    
}


  section.styling .grid-title-year {
    margin: 2rem auto;
    width: 40vw;
    max-width: 40vw;
    min-width: 40vw;
  }

.persona {
    margin: 0 auto 2rem auto; 

    max-width: 40rem;
    scroll-snap-align: end;
    height: 100dvh;

  }

  /* =========================
     Writing Section Text
  ========================= */
  section.writing .writing-intro,
  section.writing .writing-projects {
    max-width: 40rem;
    margin: 0 auto 2rem auto; 
  }

  section.writing .grid-title-year {
    width: 40rem;
  }

  section.writing a,
  section.writing p {
    max-width: 40rem;
    margin: 0 auto;
  }

  /* =========================
     BTS GRID DESKTOP
  ========================= */
  .bts-grid {
    grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr)); 
    gap: 30px;
    padding: 30px;
  }

  .bts-item {
    aspect-ratio: 16 / 9; 
    overflow: hidden;
  }
  .bts-item video,
  .bts-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    margin: 0; 
}

  .bts-viewer img,
  .bts-viewer video {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    max-height: 90dvh; 
    width: auto;
    object-fit: contain;
    display: block;
    margin: 5dvh auto; 
  }

  .about-btn {
    right: 10px;
  }
  /* =========================
     Genereller Text
  ========================= */
  p {
    max-width: 40vw;
  }
}