/* GLOBAL ------------------------------------------------------------------------------------------------------------- */
:root {
  box-sizing: border-box; /*Prevent overflow/vertical scroll bars*/
  scroll-behavior: smooth;

  /* COLORS */
  --black: #050505;
  --white: #fafafa;

  /* DESKTOP */
  --gapPageSide: 10%;
  --gapPageTop: 8vw;
  --gapPageBottom: 4vw;
  --gapContentTiny: 0.75vw;
  --gapContentSmall: 1.5vw;
  --gapContentMedium: 2.5vw;
  --gapContentBig: 4vw;

  --detailsFontSize: 1rem;
  --detailsLineHeight: 1.2rem;
  --textFontSize: 1.8rem;
  --textLineHeight: 2.2rem;
  --h1FontSize: 7rem;
  --h1LineHeight: 6.5rem;
  --h2FontSize: 3.5rem;
  --h2LineHeight: 3.6rem;
  --h3FontSize: 1.4rem;
  --h3LineHeight: 1.7rem;

  /* MOBILE */
  --gapPageSideMobile: 7.5%;
  --gapPageTopMobile: 25vw;
  --gapPageBottomMobile: 9vw;
  --gapContentTinyMobile: 2vw;
  --gapContentSmallMobile: 3vw;
  --gapContentMediumMobile: 6vw;
  --gapContentBigMobile: 8vw;

  --detailsFontSizeMobile: 0.8rem;
  --detailsLineHeightMobile: 1rem;
  --textFontSizeMobile: 1.2rem;
  --textLineHeightMobile: 1.5rem;
  --h1FontSizeMobile: 4.5rem;
  --h1LineHeightMobile: 4.5rem;
  --h2FontSizeMobile: 2.5rem;
  --h2LineHeightMobile: 2.6rem;
  --h3FontSizeMobile: 1.1rem;
  --h3LineHeightMoblile: 1.3rem;
}

html {
  height: 100%; /* Force footer to end of page */
}

@font-face {
  font-family: "Quantico-Regular";
  src: url(/assets/fonts/quantico/ttf/Quantico-Regular.ttf) format("truetype"),
    url(/assets/fonts/quantico/woff2/Quantico-Regular.woff2) format("woff2"),
    url(/assets/fonts/quantico/woff/Quantico-Regular.woff) format("woff");
}

@font-face {
  font-family: "Roboto-Regular";
  src: url(/assets/fonts/roboto/ttf/Roboto-Regular.ttf) format("truetype"),
    url(/assets/fonts/roboto/woff2/Roboto-Regular.woff2) format("woff2"),
    url(/assets/fonts/roboto/woff/Roboto-Regular.woff) format("woff");
}

@font-face {
  font-family: "Roboto-Medium";
  src: url(/assets/fonts/roboto/ttf/Roboto-Medium.ttf) format("truetype"),
    url(/assets/fonts/roboto/woff2/Roboto-Medium.woff2) format("woff2"),
    url(/assets/fonts/roboto/woff/Roboto-Medium.woff) format("woff");
}

@font-face {
  font-family: "Roboto-Bold";
  src: url(/assets/fonts/roboto/ttf/Roboto-Bold.ttf) format("truetype"),
    url(/assets/fonts/roboto/woff2/Roboto-Bold.woff2) format("woff2"),
    url(/assets/fonts/roboto/woff/Roboto-Bold.woff) format("woff");
}

@font-face {
  font-family: "Roboto-Italic";
  src: url(/assets/fonts/roboto/ttf/Roboto-Italic.ttf) format("truetype"),
    url(/assets/fonts/roboto/woff2/Roboto-Italic.woff2) format("woff2"),
    url(/assets/fonts/roboto/woff/Roboto-Italic.woff) format("woff");
}

* {
  margin: 0px; /* Default margins */
  padding: 0px; /* Default padding */
  font-family: "Roboto-Regular", sans-serif;
  font-size: 1rem;
  line-height: 1.5rem;
  text-decoration: none;
  color: var(--black);
  scroll-behavior: smooth; /* Smooth scrolling */
  text-wrap: pretty; /* No orphans in text */
}

body {
  height: 100%; /* Force footer to end of page */
  display: flex; /* Force footer to end of page */
  flex-direction: column; /* Force footer to end of page */
  background-color: var(--white);
}

main {
  flex: 1 0 auto; /* Force footer to end of page */
}

/* FONTS -------------------------------------------------------------------------------------------------------------- */
p {
  font-family: "Roboto-Regular", sans-serif;
  font-size: var(--textFontSize);
  line-height: var(--textLineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--black);
}

a {
  font-family: "Roboto-Regular", sans-serif;
  font-size: var(--textFontSize);
  line-height: var(--textLineHeight);
  letter-spacing: 0rem;
  text-decoration: underline;
  color: var(--black);
}

.details {
  font-family: "Roboto-Regular", sans-serif;
  font-size: var(--detailsFontSize);
  line-height: var(--detailsLineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--black);
}

.year {
  font-family: "Quantico-Regular", sans-serif;
  font-size: var(--detailsFontSize);
  line-height: var(--detailsLineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--black);
}

.cookiesText {
  font-family: "Quantico-Regular", sans-serif;
  font-size: var(--detailsFontSize);
  line-height: var(--detailsLineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--white);
}

button {
  font-family: "Quantico-Regular", sans-serif;
  font-size: var(--textFontSize);
  line-height: var(--textLineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--black);
}

h1 {
  font-family: "Quantico-Regular", sans-serif;
  font-size: var(--h1FontSize);
  line-height: var(--h1LineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--black);
  margin-bottom: var(--gapContentSmall);
}

h2 {
  font-family: "Quantico-Regular", sans-serif;
  font-size: var(--h2FontSize);
  line-height: var(--h2LineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--black);
}

h3 {
  font-family: "Roboto-Medium", sans-serif;
  font-size: var(--h3FontSize);
  line-height: var(--h3LineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--black);
  margin-bottom: var(--gapContentMedium);
}

/* KTI ---------------------------------------------------------------------------------------------------------------- */
strong {
  font-family: "Roboto-Medium", sans-serif;
}

em {
  font-family: "Roboto-Italic", sans-serif;
}

li {
  list-style-type: symbols(-);
}

/* HEADER ------------------------------------------------------------------------------------------------------------- */
header {
  display: flex;
  flex-direction: column;
  position: fixed;
  align-items: center;
  height: 100%;
  width: var(--gapPageSide);
  z-index: 1;
  overflow-x: hidden;
  background-color: var(--white);
}

/* Arrow -------------------------------------------------------------------------------------------------------------- */
.arrow {
  display: flex;
  position: absolute;
  align-items: center;
  height: 3vw;
  width: 6vw;
  bottom: var(--gapPageBottom);
  cursor: pointer;
}

.arrowLines {
  height: 0.8vw;
  width: 3vw;
  background-color: var(--black);
}

#arrowLineOne {
  rotate: 45deg;
  translate: 0.7vw 0px;
}

#arrowLineTwo {
  rotate: -45deg;
  translate: -0.7vw 0px;
}

/* SPLIT THE SCREEN IN HALF ------------------------------------------------------------------------------------------- */
.split {
  height: 100%;
  position: fixed;
  z-index: 1;
  overflow-x: hidden;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.split::-webkit-scrollbar {
  display: none;
}

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

/* Hide scrollbar for IE, Edge and Firefox */
.split {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

html {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

/* SCROLL FADE ANIMATION ----------------------------------------------------------------------------------------- */
.left.active,
.right.active {
  opacity: 0.5;
  filter: blur(3px);
  transition: ease-in-out 0.75s;
}

.left.fade,
.right.fade {
  opacity: 1;
  filter: blur(0px);
  transition: ease-in-out 1.25s;
}

/* LEFT SIDE ---------------------------------------------------------------------------------------------------------- */
.left {
  display: flex;
  height: 100%;
  width: 35%;
  left: var(--gapPageSide);
  background-color: var(--white);
  flex-direction: column; /* Force Footer to end of page */
}

.homeLeft {
  margin-top: var(--gapPageTop);
}

#portrait {
  margin: var(--gapContentSmall) 0 0 0;
  height: auto;
  width: 100%;
}

/* FORM --------------------------------------------------------------------------------------------------------------- */
/* Fonts */
.contact h1 {
  margin-top: var(--gapContentBig);
}

.contact input {
  font-family: "Roboto-Regular", sans-serif;
  font-size: var(--textFontSize);
  line-height: var(--textLineHeight);
  letter-spacing: 0rem;
}

.contact textarea {
  font-family: "Roboto-Regular", sans-serif;
  font-size: var(--textFontSize);
  line-height: var(--textLineHeight);
  letter-spacing: 0rem;
  height: 200px;
}

/* Form */
.form {
  display: grid;
  grid-template-columns: 50% 50%;
  grid-template-rows: auto;
  grid-template-areas:
    "name name"
    "mail mail"
    "betreff betreff"
    "nachricht nachricht"
    "senden .";
}

.form #name {
  grid-area: name;
}

.form #email {
  grid-area: mail;
}

.form #subject {
  grid-area: betreff;
}

.form #message {
  grid-area: nachricht;
}

.form .feld {
  background-color: var(--black);
  color: var(--white);
  border: 0;
  padding: 15px;
  margin-bottom: var(--gapContentTiny);
}

.form #submit {
  grid-area: senden;
  background-color: var(--white);
  color: var(--black);
  border: 3px solid var(--black);
  align-self: center;
  padding: 10px;
  transition: 0.25s;
  cursor: pointer;
  /* Style as Button */
  font-family: "Quantico-Regular", sans-serif;
  font-size: var(--textFontSize);
  line-height: 2.25rem;
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--black);
}

.form #submit:hover {
  background-color: var(--black);
  color: var(--white);
}

::placeholder {
  /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: var(--white);
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder {
  /* Internet Explorer 10-11 */
  color: var(--white);
}

::-ms-input-placeholder {
  /* Microsoft Edge */
  color: var(--white);
}

.honeypot {
  position: absolute;
  left: -9999px;
}

/* RIGHT SIDE --------------------------------------------------------------------------------------------------------- */
.right {
  width: 35%;
  right: var(--gapPageSide);
  background-color: var(--white);
}

.homeRight {
  margin: var(--gapPageTop) 0 calc(var(--gapPageBottom) + 5px) 0;
}

/* Projects Preview */
.active {
  opacity: 1;
  cursor: pointer;
  pointer-events: auto;
}

.inactive {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

.projectPreview {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.projectPreview:not(:last-child) {
  margin-bottom: var(--gapContentBig);
}

.projectPreview a {
  text-decoration: none;
  /* Hover-Animation */
  position: relative;
  overflow: hidden;
}

.projectPreviewLink {
  display: flex;
  flex-direction: row;
  width: 100%;
  padding: 10px 0px 10px 15px;
}

.projectPreviewTitle {
  display: flex;
  align-items: flex-end;
  width: 65%;
}

.projectPreviewYear {
  display: flex;
  position: absolute;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  bottom: 15px;
  right: 15px;
}

.projectPreviewDivider {
  display: flex;
  position: absolute;
  align-items: flex-end;
  background-color: var(--black);
  height: 3px;
  width: 100%;
  bottom: 0px;
}

/* Hover-Animation */
.projectPreviewLink::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0;
  width: 100%;
  background-color: var(--black);
  transition: height 0.25s ease-in-out;
  z-index: -1;
}

/* Apply hover effect only on desktop devices */
@media (min-width: 1250px) {
  .projectPreviewLink:hover::before {
    height: 100%;
  }

  .projectPreviewLink:hover .projectPreviewTitle,
  .projectPreviewLink:hover .projectPreviewYear {
    color: var(--white);
    transition: 0.5s ease-in-out;
  }
}
/* PROJECTS PAGES ----------------------------------------------------------------------------------------------------- */
/* Text */
.projectLeft {
  width: 100%;
  margin: var(--gapPageTop) 0 0 0;
  flex: 1 0 auto; /* Force Footer to end of page */
}

/* Lists */
.projectLeft ul {
  list-style-position: outside;
  list-style-type: "- ";
  padding-inline-start: 20px;
}

.projectLeft li {
  font-family: "Roboto-Regular", sans-serif;
  font-size: var(--textFontSize);
  line-height: var(--textLineHeight);
  letter-spacing: 0rem;
  text-decoration: none;
  color: var(--black);
}

/* Media */
.projectRight {
  width: 100%;
  height: auto;
  margin: var(--gapPageTop) 0 var(--gapPageBottom) 0;
}

.projectRight picture img {
  width: 100%;
}

.projectRight picture:not(:last-child) img {
  margin-bottom: calc(var(--gapContentSmall) - 6px);
}

/* YouTube Video */
.video__youtube {
  margin-bottom: var(--gapContentSmall);
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
  object-fit: cover;
}

.video__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video__placeholder {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--white);
  opacity: 0.8;
}

.video__placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Instagram Post */
.insta {
  margin-bottom: var(--gapContentSmall);
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.insta iframe {
  width: 99%;
  margin-bottom: var(--gapContentSmall) !important;
  min-width: 0px !important;
}

/* Blur */
.video__placeholder::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(12px);
}

/* Cookies Notice */
.cookiesNotice {
  display: flex;
  position: absolute;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
}

.cookiesNotice .cookiesText {
  position: relative;
  width: 100%;
  height: auto;
  padding: 2.5% 5%;
  background: var(--black);
}

/* Video Button Sizes */
.video__button__fourToFive {
  position: absolute;
  background: var(--white);
  clip-path: polygon(0% 0, 100% 50%, 0% 100%);
  border: 0px;
  height: 12%;
  width: 12%;
  top: 44%;
  left: 44%;
  cursor: pointer;
}

.video__button__nineToSixteen {
  position: absolute;
  background: var(--white);
  clip-path: polygon(0% 0, 100% 50%, 0% 100%);
  border: 0px;
  height: 8%;
  width: 12%;
  top: 46%;
  left: 44%;
  cursor: pointer;
}

.video__button__oneToOne {
  position: absolute;
  background: var(--white);
  clip-path: polygon(0% 0, 100% 50%, 0% 100%);
  border: 0px;
  height: 14%;
  width: 12%;
  top: 43%;
  left: 44%;
  cursor: pointer;
}

.video__button__sixteenToNine {
  position: absolute;
  background: var(--white);
  clip-path: polygon(0% 0, 100% 50%, 0% 100%);
  border: 0px;
  height: 26%;
  width: 12%;
  top: 34%;
  left: 44%;
  cursor: pointer;
}

/* Video Aspect Ratios */
.fourToFive {
  padding-bottom: 125%; /* aspect ratio 4:5 */
  width: 100%;
}

.nineToSixteen {
  padding-bottom: 177.78%; /* aspect ratio 9:16 */
  width: 100%;
}

.oneToOne {
  padding-bottom: 100%; /* aspect ratio 1:1 */
  width: 100%;
}

.sixteenToNine {
  padding-bottom: 56.25%; /* aspect ratio 16:9 */
  width: 100%;
}

/* CREDITS ------------------------------------------------------------------------------------------------------------ */
.credits {
  display: flex;
  justify-content: space-between;
}

.credits:not(:last-child) {
  margin-bottom: var(--gapContentTiny);
}

.creditsTitle {
  font-family: "Roboto-Bold", sans-serif;
}

.creditsTask {
  width: 35%;
}

.creditsLink {
  width: 60%;
}

/* only for project pages  */
.creditsBlock {
  margin-top: var(--gapContentMedium);
}

/* FOOTER PAGES ---------------------------------------------------------------------------------------------------------- */
.footerPages {
  width: 100%;
}

.footerPagesLastItem {
  width: 100%;
  margin-bottom: var(--gapPageBottom);
}

#footerPagesTitle {
  margin-top: var(--gapPageTop);
  font-family: "Roboto-Bold", sans-serif;
}

#BackToHome {
  text-decoration: underline;
}

/* FOOTER ------------------------------------------------------------------------------------------------------------- */
.footerDesktop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: var(--gapContentBig) 0 var(--gapPageBottom) 0;
  flex-shrink: 0; /* Force Footer to end of page */
}

.footerDesktop .socialmedia {
  display: flex;
}

.footerDesktop img {
  display: flex;
  height: 25px;
  margin: 0 15px 0 0;
}

.footerDesktop-nav {
  display: flex;
  align-items: flex-end;
}

.footerDesktop-nav a {
  line-height: normal;
  margin: 0 0 0 15px;
}

/* Mobile Footer */
footer {
  display: none;
}

/* MEDIA QUERIES ------------------------------------------------------------------------------------------------------ */
@media (max-width: 1250px) {
  p {
    font-size: var(--textFontSizeMobile);
    line-height: var(--textLineHeightMobile);
  }

  a {
    font-size: var(--textFontSizeMobile);
    line-height: var(--textLineHeightMobile);
  }

  .details {
    font-size: var(--detailsFontSizeMobile);
    line-height: var(--detailsLineHeightMobile);
  }

  .year {
    font-size: var(--detailsFontSizeMobile);
    line-height: var(--detailsLineHeightMobile);
  }

  .cookiesText {
    font-size: var(--detailsFontSizeMobile);
    line-height: var(--detailsLineHeightMobile);
  }

  button {
    font-size: var(--textFontSizeMobile);
    line-height: var(--textLineHeightMobile);
  }

  h1 {
    font-size: var(--h1FontSizeMobile);
    line-height: var(--h1LineHeightMobile);
    margin-bottom: var(--gapContentSmallMobile);
  }

  h2 {
    font-size: var(--h2FontSizeMobile);
    line-height: var(--h2LineHeightMobile);
  }

  h3 {
    font-size: var(--h3FontSizeMobile);
    line-height: var(--h3LineHeightMoblile);
    margin-bottom: var(--gapContentMediumMobile);
  }

  .split {
    height: auto;
    position: relative;
  }

  header {
    display: flex;
    align-items: flex-start;
    position: absolute;
    height: 17vw;
    width: 80%;
    z-index: 2;
    margin: 0 var(--gapPageSideMobile) 0 var(--gapPageSideMobile);
    justify-content: flex-end;
  }

  .arrow {
    display: none;
  }

  .left {
    width: 85%;
    left: var(--gapPageSideMobile);
  }

  .homeLeft {
    margin: var(--gapPageTopMobile) 0 0 0;
  }

  .contact h1 {
    margin-top: var(--gapContentBigMobile);
  }

  .contact input {
    font-size: var(--textFontSizeMobile);
    line-height: var(--textLineHeightMobile);
  }

  .contact textarea {
    font-size: var(--textFontSizeMobile);
    line-height: var(--textLineHeightMobile);
    height: 250px;
  }

  .form {
    grid-template-columns: 100%;
    grid-template-rows: auto;
    grid-template-areas:
      "name"
      "mail"
      "betreff"
      "nachricht"
      "senden";
  }

  .form .feld {
    padding: 15px;
    margin-bottom: var(--gapContentTinyMobile);
  }

  .form #submit {
    padding: 8px;
    /* Style as Button */
    font-size: var(--textFontSizeMobile);
  }

  .right {
    width: 85%;
    left: var(--gapPageSideMobile);
  }

  .homeRight {
    margin: var(--gapPageTopMobile) 0 var(--gapPageBottomMobile) 0;
  }

  .projectPreview:not(:last-child) {
    margin-bottom: var(--gapContentBigMobile);
  }

  .projectLeft {
    margin: var(--gapPageTopMobile) 0 0 0;
  }

  .projectRight {
    margin: var(--gapContentMediumMobile) 0 var(--gapPageBottomMobile) 0;
  }

  .projectRight picture:not(:last-child) img {
    margin-bottom: calc(var(--gapContentMediumMobile) - 6px);
  }

  .projectLeft ul {
    padding-inline-start: 15px;
  }

  .projectLeft li {
    font-size: var(--textFontSizeMobile);
    line-height: var(--textLineHeightMobile);
  }

  .video__youtube {
    margin-bottom: var(--gapContentMediumMobile);
  }

  .insta {
    margin-bottom: var(--gapContentMediumMobile);
  }

  .insta iframe {
    margin-bottom: var(--gapContentMediumMobile) !important;
  }

  .credits:not(:last-child) {
    margin-bottom: var(--gapContentTinyMobile);
  }

  .creditsBlock {
    margin-top: var(--gapContentMediumMobile);
  }

  #footerPagesTitle {
    margin-top: var(--gapPageSideMobile);
  }

  .footerPagesLastItem {
    margin-bottom: var(--gapPageBottomMobile);
  }

  #BackToHome {
    margin-bottom: var(--gapContentBigMobile);
  }

  .footerDesktop {
    display: none;
  }

  footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 85%;
    padding: var(--gapContentMediumMobile) var(--gapPageSideMobile)
      var(--gapPageBottomMobile) var(--gapPageSideMobile);
    flex-shrink: 0; /* Force Footer to end of page */
  }

  footer .socialmedia {
    display: flex;
  }

  footer img {
    display: flex;
    height: 25px;
    margin: 0 15px 0 0;
  }

  footer .footer-nav {
    display: flex;
    align-items: flex-end;
  }

  footer .footer-nav a {
    line-height: normal;
    margin: 0 0 0 15px;
  }
}
