/* @package antjes_theme */
:root {
  --ff: 'Yrsa', 'Times', serif;
  --ff2nd: 'Source Sans 3', sans-serif;
  --translu_factor: 0.9;
  --grau: #a8a8a8;
  --slider_delay: 4500;
}

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

body {
  padding: 0;
  margin: 0;
  font-family: var(--ff);
}

/* ###### 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;
}

p {
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 300;
  letter-spacing: 0.01rem;
  margin: 1rem 0;
}

h2 {
  font-size: 1.35rem;
}

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

#main_wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 3rem auto 9rem;
  grid-template-rows: 3.4rem min-content min-content auto;
  overflow: hidden;
  max-width: 1400px;
  margin: 0 auto 4rem auto;
  padding: 0 3.8rem;
  width: calc(100% - 7.6rem);
}

#webpage_title_link {
  height: 2.2rem;
  grid-column: 1/3;
  grid-row: 2;
  display: flex;
  align-self: flex-end;
  justify-self: flex-start;
  line-height: 1;
  margin-left: -6px;
  white-space: nowrap;
  transition: color 0.3s;
  opacity: 1;
  transition: opacity 0.4s;

  font-family: var(--ff2nd);
  font-size: 2.2rem;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
}

#webpage_title_link span {
  max-width: 7ch;
  overflow: hidden;
  display: inline-block;
  transition: max-width 0.2s;
}

.menued:not(.home) #webpage_title_link span {
  max-width: 0;
}

.lightboxed #webpage_title_link {
  opacity: 0.4;
}

/* ####### NAVI ##### */

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

.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;
  position: relative;
  top: 6px;
}

#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.8rem 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.35rem;
}

#closer_icon:hover {
  opacity: 0.6;
}

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

#klapp_menu > button {
  display: none;
}

.home #klapp_menu > button {
  display: block;
}

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

#klapp_menu ul li a {
  font-weight: 400;
  white-space: nowrap;
  font-size: 1.1rem;
  line-height: normal;
  padding: 0 0.5rem;
}

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

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

#klapp_menu ul li {
  position: relative;
  display: flex;
}

#klapp_menu ul li::after,
#klapp_menu ul:hover li.current_page_item::after {
  content: '';
  position: absolute;
  left: 1rem;
  bottom: 0;
  height: 1.5px;
  width: 0;
  width: calc(100% - 1.5rem);
  background-color: black;
  scale: 0 1;
  transition: translate 0.3s, scale 0.3s;
}

/* #klapp_menu ul li:first-child::after {
  left: 0rem;
} */

#klapp_menu ul li:hover::after,
#klapp_menu ul li.current_page_item::after,
#klapp_menu ul:hover li.current_page_item:hover::after {
  scale: 1 1;
}

#klapp_menu ul li:hover + li::after {
  translate: calc(-100% - 1rem);
}

#klapp_menu ul li:has(+ :hover)::after {
  translate: calc(100% + 1rem);
}

#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;
}

#klapp_menu ul li::before {
  content: '';
  display: inline-block;
  height: 14px;
  width: 2px;
  background-color: black;
  position: relative;
  top: 3px;
  margin: 0 3px;
}

#klapp_menu ul li:first-of-type::before {
  background-color: transparent;
}

/* STARTSEITE / HOME */

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

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

.st_backdrop.ausfaden {
  opacity: 0;
}

.st_backdrop[data-lb='1'] {
  opacity: 1;
}

#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;
}

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

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

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

.lightboxed.page-template-tp-arbeiten #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-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%;
  width: 15.5%;
}

/* .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-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-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%;
  aspect-ratio: 1;
  object-fit: cover;
}
.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: min-content 1fr;
  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 / 80% 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%;
  padding: 10px;
  font-size: 0.9rem;
  transition: width 1s;
  font-weight: 300;
  letter-spacing: 0.02rem;
  text-align: center;
}

.wp-element-caption {
  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 MIT EINZUG ##### */

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

/* .also_content h2 + p {
  text-indent: 1.4rem;
} */

.also_content.mit_einzug p {
  margin: 0.5rem 0 0.7rem 0.6rem;
  text-indent: 0;
}

h2.wp-block-heading {
  margin-bottom: 1rem;
  margin-top: 1.3rem;
  font-weight: 400;
  line-height: 1.4rem;
  letter-spacing: 0.02rem;
}

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

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

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

.mit_einzug .wp-block-image img {
  max-height: 40vh;
  width: auto;
}

/* ###### H6 Einzug ##### */

.mit_h6_einzug.also_content p {
  margin: 0;
}

.mit_h6_einzug.also_content h6 {
  margin: 0;
}

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

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

#menu-fussmenue {
  transform: translateX(100%) rotate(-90deg);
  transform-origin: left;
}

footer a {
  font-weight: 300;
  letter-spacing: 0.03rem;
  font-size: 1rem;
  color: var(--grau);
}

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-arbeiten #main_wrap {
  grid-template-rows: 3.4rem min-content min-content 6rem 1fr;
}

#die_kategorien {
  grid-row: 4;
}

#galerie_wrap {
  grid-row: 5;
}

/* ###### KATALOGE ##### */

.kataloge_wrap {
  display: grid;
  grid-template-columns: 20vw auto;
  grid-row: 3;
  grid-column: 2/-2;
  grid-gap: 2rem;
  max-width: 800px;
  margin-top: 5rem;
}

.katalog_img {
  padding-top: 3px;
}

.katalog_img img {
  max-width: 100%;
  height: auto;
  max-height: 42vh;
  object-fit: contain;
  object-position: left;
}

.katalog_text > :first-child {
  margin: 0;
}

.katalog_text .the_year {
  position: relative;
  top: -0.3rem;
  font-size: 1.3rem;
}

.katalog_text h2 {
  font-weight: 400;
  margin: 0.4rem 0;
}

.katalog_text p {
  margin: 0.1rem 0;
}

/* ###### RESPONSIVE ##### */

/* iPad */

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

/* smartphone */

@media only screen and (max-width: 1080px) {
  #main_wrap {
    grid-template-columns: min-content 1fr;
    padding: 0 5%;
    width: 90%;
  }

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

  #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: 10px;
    font-size: 2rem;
    z-index: 20000;
  }

  #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: 0px;
  }

  #klapp_menu ul li a {
    padding: 0.4rem 0.5rem;
  }

  #klapp_menu ul li::before {
    content: unset;
  }

  .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;
    grid-column: 1/3;
    grid-row: 1;
  }

  #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: 3.5rem -0.5rem 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;
    gap: 0.6rem;
  }

  .main_item {
    pointer-events: none;
    width: 100% !important;
  }

  #lightbox {
    display: none;
  }

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

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

@media only screen and (max-width: 550px) {
  #klapp_menu ul li::after,
  #klapp_menu ul:hover li.current_page_item::after {
    left: 0.5rem;
    width: calc(100% - 1rem);
  }
  #closer_icon {
    grid-column: 2;
    grid-row: 1;
  }

  /* #webpage_title_link {
    grid-row: 2;
    font-size: 1.8rem !important;
    z-index: 1000;
    width: 50%;
  } */
  /* .page-template-tp-arbeiten #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;
    display: grid;
    grid-auto-flow: column;
  }

  .page-template-tp-arbeiten.menued #klapp_menu,
  .home.menued #klapp_menu {
    z-index: 10000;
    background-color: #fff;
  }
  /* .home #klapp_menu ul li a {
    font-size: 1.7rem;
  } */

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

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

  #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-size: 0.9rem;
    line-height: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.02rem;
  }

  #menu-fussmenue {
    transform: none;
    text-align: right;
    margin-right: 1rem;
  }

  footer {
    position: relative;
  }
  .home footer {
    position: fixed;
  }

  .home #menu-fussmenue {
    margin-right: 0;
    transform: translateX(100%) rotate(-90deg);
    margin-right: 1rem;
    text-align: left;
  }

  .st_backdrop {
    background: center / 100vw auto no-repeat;
  }
}
/* fin */
