/* @package altschaefer */
:root {
  --ff: 'Roboto', sans-serif;
  --ffsp: 'Yrsa', 'Times', serif;
  --translu_factor: 0.9;
  --grau: #a8a8a8;
}

html {
  --translu_factor: Infinity;
  scroll-behavior: smooth;
}

body {
  padding: 0;
  margin: 0;
  font-family: 'Roboto', sans-serif;
}

/* ###### DEFAULTS ##### */

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: black;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--grau);
}

p {
  font-size: 1.1rem;
  line-height: 1.7rem;
  font-weight: 300;
  letter-spacing: 0.01rem;
}

/* ###### MAIN GRID ##### */

#main_wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: auto 8rem 1fr;
  grid-template-rows: 5.4rem min-content min-content auto;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto 4rem auto;
  padding: 0 3.8rem;
}

#webpage_title_link {
  width: 100%;
  align-self: flex-end;
  justify-self: center;
  opacity: 1;
  transition: opacity 0.4s;
  grid-column: 1/3;
  margin-left: -6px;
  grid-row: 2;
  white-space: nowrap;
  transition: color 0.3s;

  font-family: 'Fira sans';
  color: #757575;
  height: 2.1rem;
  font-size: 2.1rem;
  letter-spacing: 0.2rem;
}

.lightboxed #webpage_title_link {
  opacity: 0.4;
}
/* ####### NAVI ##### */

#klapp_menu {
  display: flex;
  grid-column: 3/-1;
  grid-row: 2;
  align-self: center;
  justify-self: flex-end;
  overflow: hidden;
  opacity: 1;
  transition: opacity 0.4s;
  bottom: -6.5px;
  position: relative;
  margin-bottom: 6px;
}

.lightboxed #klapp_menu {
  opacity: 0.4;
}

#klapp_menu > div {
  display: grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns 0.4s;
}

#klapp_menu ul {
  overflow: hidden;
}

.menued #klapp_menu > div,
#klapp_menu > div:focus-within {
  grid-template-columns: 1fr;
}

#burger_icon {
  height: 1.5rem;
  width: 1.5rem;
  background: url(../img/burger_icon.svg) center / 1.5rem 1.5rem no-repeat;
  transition: width 0.2s 0.3s, opacity 0.4s;
  padding: 0;
  opacity: 1;
  margin-bottom: 0.35rem;
}

#burger_icon:hover {
  opacity: 0.6;
}

.menued #burger_icon {
  width: 0;
}

#closer_icon {
  --_delay: 0.3s;
  height: 1.5rem;
  width: 0;
  background: url(../img/close.svg) center / 0.6rem 1.5rem no-repeat;
  transition: width 0.2s var(--_delay), opacity 0.4s, margin-left 0.2s var(--_delay);
  padding: 0;
  margin-left: 0;
  opacity: 1;
  position: relative;
  top: 0.4rem;
}

#closer_icon:hover {
  opacity: 0.6;
}

.menued #closer_icon {
  margin-left: 18px;
  width: 1.5rem;
}

#klapp_menu ul {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

#klapp_menu ul li a {
  color: var(--grau);
  font-weight: 300;
  white-space: nowrap;
  font-family: 'Fira sans';
  font-size: 1rem;
  line-height: normal;
}
#klapp_menu ul li a:hover {
  color: black;
}

.home #klapp_menu ul li a {
  color: black;
}

.home #klapp_menu ul li a:hover {
  color: var(--grau);
}

#klapp_menu ul li.current_page_item a {
  color: black;
}

#klapp_menu ul li.sprache a {
  padding: 0.2rem;
  color: var(--grau);
}

#klapp_menu ul li.sprache a.active {
  color: black;
  pointer-events: none;
  cursor: default;
}

#klapp_menu ul li.sprache a:hover {
  color: black;
}

#webpage_title_link {
  padding-top: 0.6rem;
}

/* STARTSEITE / HOME */

.home #main_wrap {
  margin-bottom: 0;
}

.st_backdrop {
  grid-row: 2/7;
  grid-column: 1/-1;
  z-index: 0;
  background: top center / cover no-repeat;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  opacity: 1;
  transition: opacity 0.5s;
}

.st_backdrop.ausfaden {
  opacity: 0;
}

#menu_backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s;
  z-index: -1;
}

.menued #menu_backdrop {
  opacity: 0.7;
}

.home h1 {
  grid-column: 1/-1;
  align-self: center;
  height: 12.4rem;
  width: 35rem;
  background: transparent url(../img/ma-name.svg) center / contain no-repeat;
  justify-self: flex-start;
  margin-left: 2.1rem;
}

/* ###### MEHR LESEN ##### */

.mehr_content {
  display: none;
}
.mehr_zeigen .mehr_content {
  display: inline;
}
.mehr_zeigen .mehr {
  display: none;
}
.mehr_zeigen {
  display: inline;
}
.mehr,
.weniger {
  position: relative;
  cursor: pointer;
  white-space: nowrap;
  color: var(--grau);
  transition: color 0.4s;

  font-family: 'Fira sans';
  font-size: 0.9rem;
  line-height: 1.4rem;
  font-weight: 350;
  letter-spacing: 0.02rem;
}

.mehr:hover,
.weniger:hover {
  color: black;
}

.mit_einzug p {
  margin-left: 1.3rem;
}

.mit_einzug .mehr,
.mit_einzug .weniger {
  margin-left: 1.3rem;
}

/* ###### TEMPLATE WORKS ##### */

.page-template-tp-works #main_wrap {
  grid-template-rows: 5.4rem min-content 6rem 1fr;
  transition: grid-template-rows 0.4s;
  overflow: unset;
}

.lightboxed.page-template-tp-works #main_wrap {
  grid-template-rows: 5.4rem 0fr min-content auto;
}

#the_content {
  grid-column: 2;
  margin: 3rem 0 0 0;
  padding-right: 8.3rem;
  overflow: hidden;
  display: none;
}

#the_content > *:first-child {
  margin-top: 0;
}

.lightboxed #the_content {
  margin: 1rem 0 0 0;
}

/* ###### KATEGORIEN ##### */

#die_kategorien {
  grid-column: 1/-1;
  grid-row: 3;
  align-self: flex-end;
  padding: 1.1rem 0 1.1rem;
  position: sticky;
  top: 0;
  z-index: 1;
  background: white;
}

#die_kategorien ul {
  display: flex;
  gap: 1rem;
}

#die_kategorien a {
  color: var(--grau);
  font-family: 'Fira sans';
  font-weight: 350;
  letter-spacing: 0.03rem;
  font-size: 0.8rem;
}

#die_kategorien a span {
  margin: 0 3px;
  font-size: 0.7rem;
  color: #fb66d6;
  vertical-align: super;
  pointer-events: none;
}

#die_kategorien .show_all a,
#die_kategorien .checked a {
  color: black;
}

.filtered #die_kategorien .show_all a {
  color: var(--grau);
}

#die_kategorien .show_all a span,
#die_kategorien .checked a span {
  color: #fb66d6;
}

.filtered #die_kategorien .show_all a span {
  color: #d894c7;
}

/* ISOTOPE */

#galerie_wrap {
  grid-row: 4;
  grid-column: 1/-1;
}

#lb_content {
  background: transparent;
  width: 80vw;
  height: 100%;
  max-height: 100vh;
  position: relative;
  overflow: hidden;
}

.main_item,
.grid-sizer {
  width: 31.9%;
  width: 24%;
}

.main_item.two_col {
  width: calc(24% * 2 + 1.3%);
}

.main_item.three_col {
  width: calc(24% * 3 + 1.3% * 2);
}
.main_item.four_col {
  width: 100%;
}

.gutter-sizer {
  width: 1.3%;
}

@media only screen and (max-device-width: 800px) {
  .main_item,
  .grid-sizer {
    width: 49%;
  }

  .main_item.two_col,
  .main_item.three_col {
    width: calc(49% * 2 + 2%);
  }

  .gutter-sizer {
    width: 2%;
  }
}

@media only screen and (max-device-width: 450px) {
  .main_item,
  .grid-sizer,
  .main_item.two_col,
  .main_item.three_col {
    width: 100%;
  }

  .gutter-sizer {
    width: 2%;
  }
}

.main_item img {
  width: 100%;
  height: auto;
  transition: opacity 0.7s;
  opacity: 0;
  margin-bottom: -1%;
}
.pics_loaded .main_item img {
  opacity: 1;
}

/* LIGHTBOX */

#lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s, background 0.4s;
  z-index: 100;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.lightboxed #lightbox {
  pointer-events: all;
  opacity: 1;
  background: white;
}

body.lightboxed {
  height: 100vh;
  overflow: hidden;
}

/* SLIDER WRAP */

.slide_wrap {
  position: absolute;
  top: 1rem;
  left: -100vw;
  width: 100%;
  height: 97%;
  display: grid;
  grid-template-columns: 1fr 80vw 1fr;
  grid-template-rows: 1fr min-content;
  transition: left 0.6s ease;
  justify-items: center;
}

.slide_wrap.landscape {
  grid-template-rows: 1fr auto min-content 1fr;
  grid-template-rows: 1fr auto auto 1fr;
}

.slide_wrap.landscape > img {
  grid-row: 2;
}
.slide_wrap.landscape > .the_caption {
  grid-row: 3;
}

.slide_wrap > * {
  grid-column: 2;
}

.this_one {
  left: 0;
}

.this_one ~ .slide_wrap {
  left: 100vw;
}

/* LIGHTBOX CONTROL */

.lb_control {
  position: absolute;
  cursor: pointer;
  color: white;
  z-index: 100;
  border: none;
  background: none;
}

#lb_vor {
  top: 25vh;
  right: 3.8rem;
  height: 50vh;
  width: 42px;
  background: url(../img/arrow_right.svg) center / 60% no-repeat;
}

#lb_zuruck {
  top: 25vh;
  left: 3.8rem;
  height: 50vh;
  width: 42px;
  background: url(../img/arrow_left.svg) center / 60% no-repeat;
}

#lb_closer {
  font-size: 42px;
  top: 1rem;
  right: 1rem;
  height: 30px;
  width: 30px;
  line-height: 20px;
  display: inline-flex;
  background: url(../img/close.svg) center / 60% no-repeat;
}

.only_one_pic #lb_vor,
.only_one_pic #lb_zuruck {
  opacity: 0;
  pointer-events: none;
}

#lightbox .potrait img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 3rem);
}

#lightbox .landscape img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 3rem);
  box-sizing: border-box;
}

.the_caption {
  width: 100%;
  font-family: 'Fira sans';
  padding: 10px;
  font-size: 0.9rem;
  transition: width 1s;
  font-weight: 300;
  letter-spacing: 0.02rem;
  color: var(--grau);
  text-align: center;
}

.wp-element-caption {
  font-family: 'Fira sans';
  padding: 0;
  font-size: 0.9rem;
  transition: width 1s;
  font-weight: 300;
  letter-spacing: 0.02rem;
  color: var(--grau);
}

/* ###### ZOOM ##### */

.gezoomt #lightbox .this_one img {
  max-width: unset;
  max-height: unset;
}

.gezoomt #lightbox .landscape.this_one img {
  width: 200%;
  margin: 0 0 0 100%;
}
.gezoomt #lightbox .potrait.this_one img {
  height: 200%;
}
.gezoomt .slide_wrap.this_one {
  overflow: scroll;
}

#lightbox .this_one img {
  cursor: zoom-in;
}
.gezoomt #lightbox .this_one img {
  cursor: zoom-out;
}

.gezoomt .the_caption {
  opacity: 0;
}

/* ###### TEMPLATE TEXT ##### */

.also_content {
  grid-column: 2/4;
  grid-row: 3;
  margin-top: 6rem;
  max-width: 730px;
}

.also_content p {
  margin: 0.5rem 0 0.7rem 0;
  font-family: 'Fira sans';
  font-size: 0.9rem;
  line-height: 1.4rem;
  font-weight: 300;
  letter-spacing: 0.02rem;
}

h2.wp-block-heading {
  margin-bottom: 0.5rem;
  text-underline-offset: 0.5rem;
  text-decoration-thickness: 0.05rem;
  margin-top: 0.5rem;

  font-family: 'Fira sans', sans-serif;
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.4rem;
  letter-spacing: 0.02rem;
}

h3.wp-block-heading {
  font-family: 'Fira sans';
  font-weight: 300;
  font-size: 1rem;
}

/* ###### FOOTER ##### */

footer {
  position: fixed;
  right: 0;
  bottom: 0;
  padding-right: 3.8rem;
  padding-bottom: 1rem;
}

footer a {
  color: var(--grau);
  font-family: 'Fira sans';
  font-weight: 300;
  letter-spacing: 0.03rem;
  font-size: 0.9rem;
}

footer a:hover {
  color: black;
}

/* ###### WORKS CONTENT ##### */

#the_content {
  grid-column: 2/-1;
  padding: 0 8.3rem 0 0;
  grid-row: 3;
  max-height: 0;
  display: block;
  margin: 0;
  transition: max-height 0.4s, padding 0.3s 0.1s;
}

.show_content #the_content {
  padding: 3rem 8.3rem 0 0;
  max-height: 1000px;
}

.page-template-tp-works #main_wrap {
  grid-template-rows: 5.4rem min-content min-content 6rem 1fr;
}

#die_kategorien {
  grid-row: 4;
}

#galerie_wrap {
  grid-row: 5;
}

/* iPad */

@media only screen and (max-device-width: 810px) {
}

/* smartphone */

@media only screen and (max-device-width: 900px) {
  #webpage_title_link {
    align-self: flex-start;
    justify-self: flex-start;
    grid-row: 1;
    grid-column: 1;
    z-index: 1;
    margin-left: 8px;
    margin-top: 8px;
  }

  #klapp_menu {
    align-self: flex-start;
    font-family: 'Roboto', sans-serif;
    justify-self: flex-end;
    grid-row: 1/3;
    grid-column: 1/-1;
    margin-top: 8px;
    margin-right: 8px;
  }

  #main_wrap {
    grid-template-columns: 14rem 8rem 1fr;
    padding: 0 2%;
  }

  .home h1 {
    width: 20rem;
    justify-self: center;
    margin-left: 0;
  }

  .menued #menu_backdrop {
    opacity: 0.9;
  }

  #the_content {
    grid-column: 1/3;
    padding-right: 0;
    margin-top: 1rem;
  }

  #die_kategorien {
    padding: 1.1rem 0;
  }

  .menued #klapp_menu > div,
  #klapp_menu > div:focus-within {
    grid-template-columns: unset;
    grid-template-rows: 1fr;
  }

  #klapp_menu > div {
    grid-template-columns: 1fr;
    transition: grid-template-rows 0.4s;
    grid-template-rows: 0fr;
  }

  #klapp_menu ul {
    flex-direction: column;
  }

  #galerie_wrap {
    grid-row: 5;
  }

  #klapp_menu ul {
    margin: 5rem 2rem 2rem;
  }

  .menued #closer_icon {
    margin-left: unset;
  }

  #closer_icon {
    background: url(../img/close.svg) center / 1rem 1.5rem no-repeat;
  }

  @media (orientation: landscape) {
    #die_kategorien {
      top: -100%;
    }
  }

  #die_kategorien ul {
    width: 100%;
    overflow: scroll;
    padding: 6px 0;
  }

  .main_item {
    pointer-events: none;
  }

  #lightbox {
    display: none;
  }

  .also_content {
    grid-column: 1/-1;
  }
}

@media only screen and (max-device-width: 550px) {
  #webpage_title_link {
    grid-row: 1;
    font-size: 1.8rem !important;
  }
  .page-template-tp-works #webpage_title_link,
  .home #webpage_title_link {
    grid-column: 1/-1;
    grid-row: 2;
  }
  #main_wrap {
    grid-template-columns: 1fr 1fr;
    min-height: 100svh;
  }
  #klapp_menu {
    width: 100%;
    justify-content: flex-end;
    margin-bottom: 0;
    transition: opacity 0.4s, background-color 0.4s;
  }
  .page-template-tp-works.menued #klapp_menu,
  .home.menued #klapp_menu {
    z-index: 1;
    background-color: #fff;
  }
  .home #klapp_menu ul li a {
    font-size: 1.7rem;
  }

  .wp-block-image .alignleft {
    float: unset;
    margin: 0;
  }

  .page-template-tp-works #main_wrap {
    grid-template-rows: 3.1rem min-content min-content 6rem 1fr;
  }
  #die_kategorien {
    flex-direction: column;
    position: static;
    grid-row: 3;
  }

  #die_kategorien ul {
    flex-direction: column;
  }
  footer {
    padding-right: 0;
    width: 100%;
    text-align: center;
  }

  .wp-block-image {
    margin-bottom: 1rem;
  }

  .wp-block-image figcaption {
    font-family: 'Fira sans';
    font-size: 0.9rem;
    line-height: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.02rem;
  }
}
/* fin */
