/* @package i_krauss */

body {
  padding: 0;
  margin: 0;
  color: black;
  font-size: 15px;
  background: rgb(94, 95, 94);
  background: white;
  max-height: 2000vh;
  transition: max-height 0.5s;
}

/* DEFAULTS  */

a {
  color: black;
  text-decoration: none;
}

ul.menu,
ul.sub-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

h2 {
  margin-top: 42px;
  line-height: 28px;
  font-weight: normal;
  margin-bottom: 2px;
}
p {
  line-height: 21px;
}

/* FONTS */

body {
  font-family: 'Georgia', serif;
}

#main_menu li > a,
h1.page_title,
h2 {
  font-family: 'Helvetica', sans-serif;
}

#main_menu li > a {
  font-size: 22px;
  line-height: 25px;
}
h2,
h1.page_title {
  font-size: 22px;
  line-height: 22px;
}

/* STRUCTURE */

#main_wrap {
  display: grid;
  grid-template-columns: 250px 1fr 250px;
  grid-template-rows: auto auto 1fr;
  margin: 32px 32px 0;
  min-height: calc(100vh - 32px);
  width: calc(100vw - 64px);
  overflow-x: hidden;
  transition: height 0.4s;
}

#page_title_link {
  grid-row: 1;
  grid-column: 1;
  /* fuk it */
  position: fixed;
  top: 32px;
  left: 32px;
  width: 166px;
}

#main_menu {
  grid-row: 2;
  grid-column: 1;
  align-self: flex-start;
  /* fuk it */
  position: fixed;
  top: calc(32px + 87px);
  left: 32px;
}

#menu_address {
  grid-row: 3;
  grid-column: 1;
  align-self: flex-end;
  /* fuk it */
  position: fixed;
  left: 32px;
  bottom: 32px;
}

#main_content_wrap {
  grid-row: 1/4;
  grid-column: 2;
  display: grid;
  max-width: 880px;
  /* justify-self: center; */
}

#sec_menu_wrap {
  grid-row: 3;
  grid-column: 3;
  align-self: flex-end;
  justify-self: flex-end;
  /* fuk it */
  position: fixed;
  right: 32px;
  bottom: 32px;
}

h1.page_title {
  margin-top: 0;
  text-transform: uppercase;
  word-spacing: 100vw;
  font-weight: normal;
}

/* MAIN MENU */

#main_menu li > a {
  color: #aab0aa;
}

.home #main_menu li a,
#main_menu > nav > ul > li.current-menu-item > a,
#main_menu li a:hover {
  color: black;
}

#main_menu > nav > ul > li > a::after {
  content: ' /';
  color: rgba(0, 0, 0, 0);
  transition: color 0.2s ease;
}

#main_menu li.parent-menu-item > a::after,
#main_menu > nav > ul > li.current-menu-item > a:after,
#main_menu > nav > ul > li > a:hover::after {
  color: rgba(0, 0, 0, 1);
}

#main_menu li.parent-menu-item > a {
  color: black;
}

#main_menu .sub-menu {
  display: none;
  margin-bottom: 18px;
}

#main_menu li.parent-menu-item .sub-menu {
  display: block;
}

#main_menu .sub-menu li a {
  color: #aab0aa;
}

#main_menu .sub-menu li.current-menu-item a {
  color: black;
}

/* SECOND MENU */

#menu-second-menu li {
  display: inline;
}

#menu-second-menu li a {
  color: #aab0aa;
}

#menu-second-menu li.current-menu-item a {
  color: black;
}

#menu-second-menu li a::after {
  content: ', ';
}

#menu-second-menu li:last-of-type a::after {
  content: unset;
}

/* ADDRESS */

#menu_address p {
  margin: 0;
  color: #aab0aa;
}
.ma_click_more {
  opacity: 1;
  transition: opacity 0.3s;
  color: #aab0aa;
  cursor: pointer;
}
.ma_more {
  max-height: 0;
  transition: max-height 0.4s 0.1s;
  overflow: hidden;
}
#menu_address.jeswitscht .ma_more {
  max-height: 120px;
}
#menu_address.jeswitscht .ma_click_more {
  opacity: 0;
}

/* CONTENT */

#main_content_wrap {
  margin-bottom: 32px;
}

#main_content_wrap > *:last-child {
  margin-bottom: 0;
}

/* PAGE DEFAULT */

.page-template-default #main_content_wrap {
  display: block;
}
.page-template-default #main_content_wrap > *:first-child {
  margin-top: 0;
}
.page-template-default h2 {
  font-size: 18px;
  line-height: 22px;
}

/* TABLE */

.wp-block-table {
  /* width: 100%; */
}

.wp-block-table td {
  padding: 4px 44px 4px 4px;
  line-height: 22px;
  vertical-align: text-top;
}

/* GALLERY */

#main_content_wrap .wp-block-gallery .wp-block-image {
  width: 100% !important;
  max-height: 100vh;
  margin: 18px 0 18px 0 !important;
  display: grid !important;
  overflow: visible;
}
#main_content_wrap .wp-block-gallery .wp-block-image:first-of-type {
  margin-top: 0 !important;
}
.sliding #main_content_wrap .wp-block-gallery .wp-block-image:first-of-type {
  margin: 0 !important;
}

.wp-block-gallery .wp-block-image figcaption {
  position: relative !important;
  height: min-content;
  background: transparent !important;
  text-align: left !important;
  padding: 0 !important;
  overflow: visible !important;
  margin-top: 10px;
  color: #aab0aa !important;
}
.page-template-template-galerie #main_content_wrap {
  max-width: unset;
  justify-self: unset;
}

/* FRONTPAGE ZWEITE WAHL */

.vollBildSlider {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  z-index: -1;
  /* display: flex; */
  transition: opacity 0.4s;
  opacity: 0;
}
.vollBildSlider > img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  /* max-width: 0; */
  /* max-width: 100vw; */
  /* z-index: 2;
  transition: max-width .5s; */
  position: absolute;
  right: -100vw;
  transition:
    right 0.4s,
    opacity 0.1s 0.5s;
  opacity: 0;
}
.vollBildSlider > img[data-slide='0'] {
  /* max-width: 0vw;
  z-index: 10; */
  right: 100vw;
}
.vollBildSlider > img[data-slide='1'] {
  /* max-width: 100vw;
  z-index: 8; */
  right: 0;
  opacity: 1;
  transition:
    right 0.4s,
    opacity 0.01s 0.01s;
}
.vollBildSlider > img[data-slide='2'] {
  /* max-width: 100vw;
  opacity: 0; */
  right: -100vw;
}

/* FRONTPAGE */

.fp_project {
  margin-bottom: 32px;
}

.fp_project img {
  object-fit: contain;
  height: 100%;
  width: auto;
  max-height: 70vh;
}

.fp_caption {
  color: #aab0aa;
  line-height: 24px;
}

/* SLIDER */

.wp-block-gallery {
  position: relative;
  width: 100%;
  transition:
    width 0.4s,
    margin 0.4s;
}
.sliding .wp-block-gallery {
  align-content: center;
  height: calc(100vh - 64px);
  margin: 0;
}
.sliding .wp-block-gallery .wp-block-image {
  position: absolute !important;
  right: -100vw;
  transition:
    right 0.4s,
    opacity 0.1s 0.5s;
  opacity: 0;
}
.sliding .wp-block-gallery .wp-block-image[data-slide='0'] {
  right: 100vw;
  /* opacity: 1; */
}
.sliding .wp-block-gallery .wp-block-image[data-slide='1'] {
  right: 0;
  opacity: 1;
  transition:
    right 0.4s,
    opacity 0.01s 0.01s;
}
.sliding .wp-block-gallery .wp-block-image[data-slide='2'] {
  right: -100vw;
  /* opacity: 1; */
}
/* .sliding .wp-block-gallery .wp-block-image[data-slide="3"] {
  right: 100vw;
  opacity: 0;
  } */
.wp-block-gallery .wp-block-image img {
  object-fit: contain !important;
  height: 100%;
  width: auto !important;
  max-height: 70vh;
  cursor: pointer;
  transition: max-height 0.4s;
}
.sliding .wp-block-gallery .wp-block-image img {
  max-height: 92vh;
}

/* BUTTONS */

.page_control > button,
.sl_control {
  background: none;
  font-size: 52px;
  border: none;
  line-height: 28px;
  margin: 0;
  padding: 0px 5px 15px 5px;
  display: inline-block;
  cursor: pointer;
}

.page_control {
  grid-row: 1;
  grid-column: 3;
  justify-self: flex-end;
  display: flex;
  z-index: 1;
}
.page_control > a {
  margin: 0 0 0 18px;
}
.page_control > button,
.page_control > a {
  position: relative;
  height: 28px;
  width: 28px;
}
#sl_close {
  right: -150px;
  transition: right 0.8s;
  background: url(../img/close.png) center / contain no-repeat;
}
.sliding #sl_close {
  right: 0;
}
#sl_burger {
  background: url(../img/menu_burger.png) center / contain no-repeat;
  display: none;
}

.sl_control {
  /* grid-row: 1/4;
    position: relative;
    align-self: center; */
  height: 38px;
  width: 38px;
  /* transition: all .8s; */
}

#sl_left {
  /* justify-self: flex-start;
    grid-column: 1; */
  transition: left 0.6s;
  background: url(../img/back.png) center / contain no-repeat;
  /* fuk it */
  position: fixed;
  top: calc(50vh - 19px);
  left: -52px;
}

#sl_right {
  /* grid-column: 3;
    justify-self: flex-end; */
  transition: right 0.6s;
  background: url(../img/forward.png) center / contain no-repeat;
  /* fuk it */
  position: fixed;
  right: -52px;
  top: calc(50vh - 19px);
}

.sliding #sl_left {
  left: 32px;
}
.sliding #sl_right {
  right: 32px;
}
.sliding .wp-block-gallery {
  width: 120%;
  justify-self: center;
  z-index: 1;
}

/* SLIDER TRANSITIONS */

#main_menu,
#menu_address,
#sec_menu_wrap,
#page_title_link {
  transition: opacity 0.4s;
}
.sliding #main_menu,
.sliding #menu_address,
.sliding #sec_menu_wrap,
.sliding #page_title_link {
  opacity: 0;
}
.sliding #main_content_wrap > *:not(figure) {
  opacity: 0;
}
#main_content_wrap {
  transition: opacity 0.4s;
}
body.sliding {
  max-height: 100vh;
  overflow: hidden;
}
.sliding #main_wrap {
  height: calc(100vh - 64px);
  overflow: hidden;
}

/* SLIDER FRONTPAGE */

#main_content_wrap.fp_slider {
  grid-column: 1/4;
  display: grid;
  grid-auto-columns: min-content;
  max-width: unset;
  width: auto;
  justify-self: unset;
  overflow-x: visible;
  position: fixed;
  top: 32px;
  left: 32px;
  /* transition: transition 10s linear; */
  animation: fp_slides 72s linear infinite;
}

@keyframes fp_slides {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(-101%);
  }
}

#main_content_wrap.fp_slider > * {
  grid-row: 1;
}

.page-template-page-fp_alt #main_menu,
.page-template-page-fp_alt #page_title_link {
  z-index: 10;
}

.fp_slider .fp_project img {
  max-height: calc(100vh - 64px);
  opacity: 0;
  transition: opacity 0.4s;
}

.fp_slider .fp_caption {
  opacity: 0;
  transition: opacity 0.4s;
}

body.page-template-page-fp_alt {
  height: 100vh;
  overflow-y: hidden;
}

.page-template-page-fp_alt #menu_address,
.page-template-page-fp_alt #sec_menu_wrap {
  display: none;
}

.fp_slider a {
  margin-left: 142px;
}

/* iPad & small screens */
@media only screen and (max-width: 1080px) {
  #main_wrap {
    grid-template-rows: repeat(4, auto);
    grid-template-columns: repeat(3, auto);
    width: calc(100vw - 16px);
    margin: 32px 8px 16px 8px;
  }

  #menu_address {
    grid-row: 4;
    grid-column: 1/3;
    position: unset;
  }

  #main_content_wrap {
    grid-row: 3/4;
    grid-column: 1/4;
    margin-bottom: 92px;
  }

  #main_menu {
    grid-column: 1/4;
    position: unset;
    margin-bottom: 42px;
  }

  #sec_menu_wrap {
    grid-row: 4;
    grid-column: 2/4;
    position: unset;
  }

  #page_title_link {
    grid-column: 1/4;
    position: unset;
  }

  #main_menu li > a {
    font-size: 22px;
    line-height: 27px;
  }

  #main_menu .sub-menu {
    /* margin-left: 7px; */
  }
}

/* smartphone */
@media only screen and (max-width: 414px) {
}

/* BEHIND THE CURTAIN */

.page-template-the_curtain {
  font-family: 'Helvetica', sans-serif;
  background: #000;
  color: lightgray;
}

#closed_wrap {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#closed_wrap .wp-block-video {
  width: auto;
  height: 90vh;
  aspect-ratio: 4/3;
}

#closed_wrap video {
  pointer-events: none;
}

/* fin */
