/* ********************************************** */
/* ************* Smartphone Devices ************* */
/* ********************************************** */

@media only screen and (min-device-width: 320px) {
  :root {
    /* Type-related Variables */
    --base-typesize: 19.5px;
    --lineheight_global: 1.15;

    /* Margins */
    --margin_global_top: 14px;
    --margin_global_bottom: 14px;
    --margin_global_right: 14px;
    --margin_global_left: 14px;

    --margin_content_top: 70px;

    --margin_menu_top: var(--base-typesize);
    --margin_menu_bottom: var(--base-typesize);

    --margin_zeile: calc(var(--base-typesize) * var(--lineheight_global));
    --margin_halbzeile: calc((var(--base-typesize) * var(--lineheight_global)) / 2);
    --margin_drittelzeile: calc((var(--base-typesize) * var(--lineheight_global)) / 3);
    --margin_content-element_bottom: calc(var(--base-typesize) * var(--lineheight_global));

    /* UI-Elements */
    --ui_stroke_width: 2px;
    --ui_btn_width: 38px;
    --ui_closeBtn_width: 28px;
    --ui_btn_height: 28px;
    --ui_btn_height_half: 14px;
    --ui_playBtn_width: 38px;
  }

  h2,
  .h2 {
    font-size: 21px;
  }

  .wrapper--project-video {
    padding-top: 56.25%;
  }
  .wrapper--project-video figure {
    position: absolute;
    top: 0;
  }

  #pageHeader {
    max-height: 65px;
  }
}

/* ********************************************** */
/* *************** Tablet Devices *************** */
/* ********************************************** */

@media only screen and (min-device-width: 768px) {
  :root {
    /* Type-related Variables */
    --base-typesize: 22px;

    /* Margins */
    --margin_global_top: var(--base-typesize);
    --margin_global_bottom: var(--base-typesize);
    --margin_global_right: var(--base-typesize);
    --margin_global_left: var(--base-typesize);

    --margin_content_top: 78px;

    /* UI-Elements */
    --ui_stroke_width: 2px;
    --ui_btn_width: 37px;
    --ui_closeBtn_width: 37px;
    --ui_btn_height: var(--margin_zeile);
    --ui_btn_height_half: calc(var(--margin_zeile) / 2);
    --ui_playBtn_width: 48px;
  }
  h2,
  .h2 {
    font-size: 22px;
  }

  #pageHeader {
    max-height: none;
  }
}

@media only screen and (min-device-width: 1024px) {
  .wrapper--project-image,
  .wrapper--project-video {
    height: calc(100vh);
  }
  .wrapper--project-video {
    padding-top: 0;
  }
  .wrapper--project-video figure {
    position: relative;
    top: auto;
  }
}

/* ************** Layout Variables ************** */
/* *************** Small Screens **************** */
/* ********************************************** */

@media only screen and (min-width: 1200px) {
  :root {
    /* Type-related Variables */
    --base-typesize: 25px;

    /* Margins */
    --margin_content_top: 68px;

    --margin_global_top: 21.25px;
    --margin_global_bottom: 18.75px;
    --margin_global_right: 21.25px;
    --margin_global_left: 21.25px;

    --margin_menu_top: 21.25px;
    --margin_menu_bottom: 18.75px;

    /* UI-Elements */
    --ui_stroke_width: 2px;
    --ui_btn_width: 42px;
    --ui_closeBtn_width: 32px;
    --ui_playBtn_width: 52px;
    --ui_btn_height: 32px;
    --ui_btn_height_half: 16px;
  }

  h2,
  .h2 {
    font-size: 25.333px;
  }
}

/* ************** Layout Variables ************** */
/* *************** Medium Screens *************** */
/* ********************************************** */

@media only screen and (min-width: 1400px) {
  :root {
    /* Type-related Variables */
    --base-typesize: 28px;

    /* Margins */
    --margin_content_top: 76px;

    --margin_global_top: 23.8px;
    --margin_global_bottom: 21px;
    /* --margin_global_right: 23.8px;
    --margin_global_left: 23.8px; */
    --margin_global_right: 18px;
    --margin_global_left: 18px;

    --margin_menu_top: 21px;
    --margin_menu_bottom: 21px;

    /* UI-Elements */
    --ui_stroke_width: 2px;
    --ui_btn_width: 47px;
    --ui_closeBtn_width: 36px;
    --ui_playBtn_width: 58px;
    --ui_btn_height: 36px;
    --ui_btn_height_half: 18px;
  }

  h2,
  .h2 {
    font-size: 29.5px;
  }
}

/* ************** Layout Variables ************** */
/* **************** Large Screens *************** */
/* ********************************************** */

@media only screen and (min-width: 1600px) {
  :root {
    /* Type-related Variables */
    --base-typesize: 32px;

    /* Margins */
    --margin_content_top: 88px;

    --margin_global_top: 27.2px;
    --margin_global_bottom: 24px;
    --margin_global_right: 27.2px;
    --margin_global_left: 27.2px;

    --margin_menu_top: 27.2px;
    --margin_menu_bottom: 24px;

    /* UI-Elements */
    --ui_stroke_width: 3px;
    --ui_btn_width: 53px;
    --ui_closeBtn_width: 41px;
    --ui_playBtn_width: 64px;
    --ui_btn_height: 41px;
    --ui_btn_height_half: 20.5px;
  }

  h2,
  .h2 {
    font-size: 33.75px;
  }
}

/* ************** Layout Variables ************** */
/* *************** Larger Screens *************** */
/* ********************************************** */

@media only screen and (min-width: 1800px) {
  :root {
    /* Type-related Variables */
    --base-typesize: 36px;

    /* Margins */
    --margin_content_top: 102px;

    --margin_global_top: 30.6px;
    --margin_global_bottom: 27px;
    --margin_global_right: 30.6px;
    --margin_global_left: 30.6px;

    --margin_menu_top: 30.6px;
    --margin_menu_bottom: 27px;

    /* UI-Elements */
    --ui_stroke_width: 3px;
    --ui_btn_width: 60px;
    --ui_closeBtn_width: 46px;
    --ui_playBtn_width: 72px;
    --ui_btn_height: 46px;
    --ui_btn_height_half: 23px;
  }

  h2,
  .h2 {
    font-size: 38px;
  }
}
/* ********************************************** */

@keyframes agro {
  0% {
    color: rgb(0, 255, 0);
  }
  25% {
    color: blue;
  }
  50% {
    color: rgb(0, 255, 0);
  }
  75% {
    color: blue;
  }
  100% {
    color: rgb(0, 255, 0);
  }
}

/* ********************************************** */

@font-face {
  font-family: "FKGrotesk-Reg";
  font-weight: normal;
  src: url("../fonts/FKGrotesk-Regular.woff2") format("woff2"), url("../fonts/FKGrotesk-Regular.woff") format("woff");
}
@font-face {
  font-family: "FKGrotesk-Italic";
  font-weight: normal;
  src: url("../fonts/FKGrotesk-Italic.woff2") format("woff2"), url("../fonts/FKGrotesk-Italic.woff") format("woff");
}
@font-face {
  font-family: "FKGrotesk-Mono";
  font-weight: normal;
  src: url("../fonts/FKGroteskMono-Regular.woff2") format("woff2"), url("../fonts/FKGroteskMono-Regular.woff") format("woff");
}

/* ************************************************** */

.transition-flicker {
  transition: 0.15s;
  background: lime;
  visibility: hidden;
  pointer-events: none;
}

html.is-animating .transition-flicker {
  background: blue;
  visibility: visible;
}

.trans--op {
  transition: opacity 0.25s;
}

/* ************************************************** */

*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: "FKGrotesk-Reg";
  hyphens: auto;
  line-height: var(--lineheight_global);
}

a {
  color: currentColor;
  text-decoration: none;
  cursor: pointer;
}
a.active,
a:hover {
  color: blue;
  font-family: "FKGrotesk-Italic";
}
a.noHover:hover {
  color: black;
  font-family: "FKGrotesk-Reg";
}
a.agro:hover {
  color: rgb(0, 255, 0);
}

main {
  padding-top: var(--margin_global_top);
  padding-bottom: var(--margin_global_bottom);
  padding-left: var(--margin_global_left);
  padding-right: var(--margin_global_right);
}
main.project {
  padding: 0;
}
main.default {
  padding-top: var(--margin_content_top);
}

#cover {
  position: fixed;
  top: 0%;
  left: 0%;

  width: 100%;
  height: 100%;

  z-index: 99999;
}

.page.home {
  width: 100vw;
  height: 100%;
}

#homepageProjectInfo {
  position: absolute;
  bottom: var(--margin_global_bottom);
}
#homepageInstagram {
  position: absolute;
  bottom: var(--margin_global_bottom);
  right: var(--margin_global_right);
}

/* ************************************************** */

.layout {
  display: flex;
  flex-flow: row wrap;
}

/* ************************************************** */

.wrapper--header {
  position: fixed;
  width: 100%;

  padding: 2rem 2.25rem 2.25rem 2.25rem;
}

.header-waypoint {
  bottom: 5rem;
}

.wrapper--project-image,
.wrapper--project-video {
  width: 100%;
  position: relative;
}
.wrapper--project-image.portrait {
  display: flex;
}

.wrapper--project-meta {
  width: 100%;
  padding: 3rem;

  /* DEV */
  background: white;
}

.wrapper--project-text {
  position: relative;
  margin: 0rem 22.5%;
}
.wrapper--project-text > p {
  display: inline-block;
}

/* ************************************************** */

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

img.project,
video.project {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

figure.portrait {
  padding: 2rem 1rem 2rem 2rem;
}
figure.portrait:nth-of-type(2) {
  padding: 2rem 2rem 2rem 1rem;
}
figure.portrait img.project {
  object-fit: contain !important;
}

/* ************************************************** */

.pos--ab {
  position: absolute;
}
.pos--ab.center--v {
  top: 50%;
}

.pos--fix {
  position: fixed;
}

.pos--fix.top-right {
  top: 0;
  right: 0;

  padding: 2rem 3rem 3rem 3rem;
}

/* ************************************************** */

.hidden--dis {
  display: none !important;
}
.hidden--vis {
  visibility: hidden;
}
.hidden--op {
  opacity: 0 !important;
}
.hidden--interact {
  pointer-events: none;
}
.hidden--desktop {
  display: block;
}

/* ************************************************** */

.z-level--nav {
  z-index: 999999;
}
.z-level--topmost {
  z-index: 999;
}
.z-level--top {
  z-index: 99;
}
.z-level--high {
  z-index: 9;
}
.z-level--ground {
  z-index: 1;
}

/* ************************************************** */

.w--100 {
  width: 100% !important;
}
.w--90 {
  width: 90%;
}
.w--75 {
  width: 75%;
}
.w--50 {
  width: 50%;
}

.h--100 {
  height: 100%;
}
.h--75 {
  height: 75%;
}

.mx--auto {
  margin-left: auto;
  margin-right: auto;
}
.mb--default {
  margin-bottom: var(--margin_content-element_bottom);
}
.mb--halbzeile {
  margin-bottom: var(--margin_halbzeile);
}
.mb--drittelzeile {
  margin-bottom: var(--margin_drittelzeile);
}

.mb--05 {
  margin-bottom: 0.5rem;
}
.mb--1 {
  margin-bottom: 1rem;
}
.mb--2 {
  margin-bottom: 2rem;
}
.mb--3 {
  margin-bottom: 3rem;
}
.mb--4 {
  margin-bottom: 4rem;
}

.mt--05 {
  margin-top: 0.5rem !important;
}
.mt--1 {
  margin-top: 1rem !important;
}
.mt--2 {
  margin-top: 2rem !important;
}
.mt--3 {
  margin-top: 3rem !important;
}

.pb--fix-descenders {
  padding-bottom: 2px;
}
.pr--fix-cutItalics {
  padding-right: 5px;
}

.pb--05 {
  padding-bottom: 0.5rem;
}
.pb--1 {
  padding-bottom: 1rem;
}

/* ************************************************** */

.d--block {
  display: block;
}
.d--flex {
  display: flex !important;
}
.d--flex.just--end {
  justify-content: flex-end;
}
.d--flex.just--start {
  justify-content: flex-start;
}
/* ************************************************** */

button {
  border: none;
  cursor: pointer;
  background: transparent;
}

button.active,
button:hover {
  color: blue;
  font-family: "FKGrotesk-Italic";
  opacity: 1 !important;
}

button:focus {
  outline: 0;
}

button.blue {
  color: blue;
}

button .cross,
button .close {
  display: inline-block;
  background: black;
  height: var(--ui_btn_width);
  position: relative;
  width: var(--ui_stroke_width);
}
button .cross {
  left: calc((var(--ui_btn_width) / 2) * -1);
}
button .cross:after,
button .close:after {
  background: black;
  content: "";
  height: var(--ui_stroke_width);
  position: absolute;
  left: calc(((var(--ui_btn_width) / 2) - (var(--ui_stroke_width) / 2)) * -1);
  top: calc((var(--ui_btn_width) / 2) - (var(--ui_stroke_width) / 2));
  width: var(--ui_btn_width);
}
.white button .cross {
  background: white;
}
.white button .cross::after {
  background: white;
}
button:hover .cross,
button:hover .cross:after,
button:hover .close,
button:hover .close::after {
  background: blue;
}
button.active .cross {
  background: blue;
}
button.active .cross::after {
  background: blue;
}
button .cross.centered {
  left: 0;
}
button.active .cross,
button .close {
  transform: rotate(45deg);
}

#MainMenuBtn.white span span,
#MainMenuBtn.white span span::before,
#MainMenuBtn.white span span::after,
.white #MainMenuBtn span span,
.white #MainMenuBtn span span::before,
.white #MainMenuBtn span span::after {
  background-color: #fff;
}
#MainMenuBtn.white:hover span span,
#MainMenuBtn.white:hover span span::before,
#MainMenuBtn.white:hover span span::after {
  background-color: blue;
}
#MainMenuBtn.white.is-active span span,
#MainMenuBtn.white.is-active span span::before,
#MainMenuBtn.white.is-active span span::after,
.active.white #MainMenuBtn span span,
.active.white #MainMenuBtn span span::before,
.active.white #MainMenuBtn span span::after {
  background-color: #000;
}

button.collapse {
  display: flex;
  justify-content: center;
  align-items: center;

  margin-bottom: var(--margin_drittelzeile);

  background-color: transparent;
  cursor: pointer;
  border: none;
  outline: none;
}
button.collapse.active,
button.collapse:last-of-type {
  margin-bottom: 0;
}

.project button.collapse {
  justify-content: center;
  align-items: center;

  min-width: 100px;
}

.about button.collapse {
  width: 100%;
  justify-content: space-between;
}

.content--collapse {
  display: none;
  overflow: hidden;
}

#projectInfo {
  padding-bottom: var(--margin_global_bottom);
  padding-left: var(--margin_global_left);
  padding-right: var(--margin_global_right);
}
#projectInfo.open {
  border-bottom: var(--ui_stroke_width) solid black;
}

a.projectNav {
  position: fixed;
  z-index: 1;

  display: flex;
  justify-content: flex-start;
  align-items: flex-end;

  padding-top: var(--margin_global_top);
  padding-bottom: var(--margin_global_bottom);
  padding-left: var(--margin_global_left);
  padding-right: var(--margin_global_right);

  width: 10%;
  min-width: 80px;
  height: 100%;

  background-color: transparent;
}
a.projectNav.right {
  right: 0;
  justify-content: flex-end;
}

a.projectNav span {
  visibility: hidden;
  white-space: nowrap;
}

a.projectNav.left span {
  left: 35%;
}

a.projectNav:hover span {
  visibility: visible;
  animation: agro 0.4s infinite; /* IE 10+, Fx 29+ */
}

a .svg-arrow {
  width: 45px;
  height: 85px;

  visibility: hidden;
}
a .svg-arrow polyline {
  stroke: black;
  stroke-width: 2px;
  fill: transparent;
}
a:hover .svg-arrow {
  visibility: visible;
}
a:hover .svg-arrow polyline {
  stroke: blue;
}

/* ************************************************** */

.cld-video-player {
  width: 100% !important;
  height: 100% !important;
}
.cld-video-player video {
  object-fit: cover;
}
.cld-video-player .vjs-poster {
  background-size: cover !important;
}

.overlay--video {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;

  padding-top: var(--margin_global_top);
  padding-bottom: var(--margin_global_bottom);
  padding-left: var(--margin_global_left);
  padding-right: var(--margin_global_right);

  display: flex;
  justify-content: center;
  align-items: center;
}
.overlay--video button {
  background: transparent;
}

button .svg-play,
button .svg-pause {
  width: var(--ui_playBtn_width);
}
button .svg-close {
  width: var(--ui_closeBtn_width);
}
a svg,
button .svg-play path,
button .svg-pause path,
button .svg-close line {
  stroke: black;
  stroke-width: var(--ui_stroke_width);
  fill: transparent;
}
a.white svg {
  stroke: white;
}
a svg:hover,
button.playing .svg-play:hover path,
button .svg-play:hover path,
button.playing .svg-pause:hover path,
button .svg-pause:hover path,
button:hover .svg-close line {
  stroke: blue;
}
button .svg-play:hover path {
  fill: blue;
}

button .svg-pause {
  display: none;
}
button.playing .svg-pause {
  display: block;
  opacity: 0;
}
button.playing:hover .svg-pause {
  opacity: 1;
}
button.playing .svg-play {
  display: none;
}

.vjs-big-play-button {
  display: none !important;
}

/* ************************************************** */

.flo.os-theme-dark > .os-scrollbar,
.flo.os-theme-light > .os-scrollbar {
  padding: 6px !important;
}

.flo.os-theme-dark > .os-scrollbar-vertical,
.os-theme-light > .os-scrollbar-vertical {
  width: calc((6px * 2) + var(--ui_stroke_width)) !important;
}

.flo > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle {
  background: black !important;
}
.flo.white > .os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle {
  background: white !important;
}

/* ************************************************** */

h1 {
  line-height: 1;
  margin: 0;
}
h1,
.h1 {
  font-weight: normal;
  text-align: center;
}
h2 {
  margin: 0;
}
h2,
.h2 {
  font-weight: normal;
  text-align: center;
}

.text--center {
  text-align: center !important;
}
.text--left,
.layout.text--left h2,
.layout.text--left .h2 {
  text-align: left !important;
}

.text--running p {
  margin-bottom: var(--margin_zeile);
}
.text--running p:last-of-type {
  margin-bottom: 0;
}

.italic {
  font-family: "FKGrotesk-Italic";
}
.mono {
  font-family: "FKGrotesk-Mono";
}
.blue {
  color: blue;
}
.white {
  color: white;
}
.active.white {
  color: black;
}

.truncated {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.truncated.off {
  white-space: normal;
}

.lh--0 {
  line-height: 0 !important;
}
.lh--1 {
  line-height: 1 !important;
}
.lh--default {
  line-height: 1.2 !important;
}

/* ************************************************** */

.cc-revoke,
.cc-window {
  width: 100vw;

  position: fixed;
  overflow: hidden;
  z-index: 999999;
  bottom: 0;

  padding: var(--margin_halbzeile) var(--margin_global_left);
  box-sizing: border-box;

  font-family: "FKGrotesk-Reg", Arial, sans-serif !important;
  font-size: var(--base-typesize) !important;
  line-height: 0;
  border-top: 3px solid black;

  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
}
.cc-invisible {
  display: none;
}
.cc-message::after {
  content: "Diese Seite verwendet Cookies.";
}

/* ************************************************** */

#websiteCredit {
  position: fixed;
  bottom: var(--margin_global_bottom);
  right: var(--margin_global_right);
  opacity: 0;
}

/* ************************************************** */

.backgroundVideo {
  background-color: red;
  position: absolute;
  position: fixed;
  left: 0;
  bottom: 0;
  min-width: 100%;
  min-height: 100%;
  line-height: 0;
}

.backgroundVideo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ********************************************** */
/* ************* Smartphone Devices ************* */
/* ********************************************** */

@media only screen and (min-device-width: 320px) {
  html {
    font-size: 7.8px;
  }

  h1,
  .h1 {
    font-size: 34px;
  }
  .h1-menu {
    font-size: 56px;
    letter-spacing: -1.25px;
  }

  .layout > div {
    width: 100%;
    margin: 0;
  }

  .home #MainMenuBtn {
    margin-top: 6px;
  }
  #homepageHeadline {
    padding-left: 20px;
  }
}

/* ********************************************** */
/* *************** Tablet Devices *************** */
/* ********************************************** */

@media only screen and (min-device-width: 768px) {
  html {
    font-size: 7.8px;
  }

  h1,
  .h1 {
    font-size: 70.35px;
  }
  .h1-menu {
    font-size: 90.1px;
  }

  .home #MainMenuBtn {
    margin-top: 0px;
  }
  #homepageHeadline {
    padding-left: 0px;
  }

  a.projectNav {
    width: 15%;
    min-width: 100px;
  }

  .flo.os-theme-dark > .os-scrollbar,
  .flo.os-theme-light > .os-scrollbar {
    padding: 8px !important;
  }

  .flo.os-theme-dark > .os-scrollbar-vertical,
  .os-theme-light > .os-scrollbar-vertical {
    width: calc((8px * 2) + var(--ui_stroke_width)) !important;
  }

  .cc-message::after {
    content: "Diese Website verwendet Cookies.";
  }
}

@media only screen and (min-device-width: 1024px) {
  .layout > div {
    width: calc(50% - 3rem);
  }
  .layout > div:nth-of-type(1) {
    margin-right: 1.5rem;
  }
  .layout > div:nth-of-type(2) {
    margin-left: 1.5rem;
  }
}

/* ********************************************** */
/* *************** Small Screens **************** */
/* ********************************************** */

@media only screen and (min-width: 1200px) {
  html {
    font-size: 10px;
  }

  h1,
  .h1 {
    font-size: 70.35px;
  }
  .h1-menu {
    font-size: 90.1px;
  }

  .hidden--desktop {
    display: none;
  }
}

/* ********************************************** */
/* *************** Medium Screens *************** */
/* ********************************************** */

@media only screen and (min-width: 1400px) {
  html {
    font-size: 10px;
  }

  h1,
  .h1 {
    font-size: 77.5px;
  }
  .h1-menu {
    font-size: 90.1px;
  }
}

/* ********************************************** */
/* **************** Large Screens *************** */
/* ********************************************** */

@media only screen and (min-width: 1600px) {
  html {
    font-size: 10px;
  }

  h1,
  .h1 {
    font-size: 86.5px;
  }
  .h1-menu {
    font-size: 95.9px;
  }
}

/* ********************************************** */
/* *************** Larger Screens *************** */
/* ********************************************** */

@media only screen and (min-width: 1800px) {
  html {
    font-size: 16px;
  }

  h1,
  .h1 {
    font-size: 92px;
  }
  .h1-menu {
    font-size: 102px;
  }
}

/* ********************************************** */

/* ********************************************** */
/* *********** Nested text el. styles *********** */
/* ********************************************** */

.text-content p {
  margin-bottom: var(--margin_zeile);
}

.text-content p:last-of-type {
  margin-bottom: 0;
}
