/* @package leiberg */
html {
  -webkit-text-size-adjust: 100%;
}

body {
  padding: 0;
  margin: 0;
  font-family: 'Open Sans', Verdana, sans-serif;
  background: #404040;
}

body {
  font-size: 13px;
  font-weight: normal;
  letter-spacing: 0.5px;
}

/* DEFAULTS */

p {
  margin: 6px 0;
  line-height: 21px;
  color: #b3b3b3;
  max-width: 650px;
}

.upperc {
  text-transform: uppercase;
}

#klapp_menu a,
a.sub_sub_parent,
.menu_headline {
  width: 100%;
  z-index: 100;
  height: 29px;
  display: flex;
  font-size: 27px;
  letter-spacing: 4px;
  text-transform: uppercase;
  box-sizing: border-box;
  margin: 2px 0;
  padding-left: 35px;
  font-weight: bold;
}

#klapp_menu a {
  font-size: 47px;
  height: 70px;
  align-items: center;
  justify-content: center;
}

.home #klapp_menu a {
  font-size: 21px;
  height: 33px;
  align-items: center;
  justify-content: flex-start;
}

.sub_sub_parent h3 {
  width: 100%;
  z-index: 100;
  height: 29px;
  display: flex;
  align-items: center;
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  box-sizing: border-box;
  margin: 2px 0;
  font-weight: bold;
}

/* HEADER */

#burger_icon,
#closer_icon {
  height: 23px;
  width: 26px;
  margin-right: 28px;
  margin-top: 25px;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 10000;
  transition: opacity 0.4s;
}
#burger_icon {
  background: url(../img/burger_icon.svg) center / contain no-repeat;
}
#closer_icon {
  background: url(../img/close.svg) center / contain no-repeat;
  opacity: 0;
}
.burgered #burger_icon {
  opacity: 0;
}
.burgered #closer_icon {
  opacity: 1;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1vw minmax(280px, 1fr) repeat(3, 1fr) 72px;
  grid-template-rows: minmax(auto, 72px) 38px;
  /* grid-template-rows: auto 38px; */
  transition: grid-template-rows 0.6s 0.2s;
  z-index: 1000;
  pointer-events: none;
}

.burgered header {
  grid-template-rows:
    minmax(auto, calc(100vh - 38px))
    38px;
}

header #backdrop {
  grid-row: 1;
  grid-column: 1/-1;
  background: white;
  height: 72px;
  transition: height 0.6s;
}

.burgered header #backdrop {
  height: 100%;
}

#webpage_title_link {
  grid-column: 1/3;
  grid-row: 1/3;
  width: 100%;
  height: 78px;
  background: white url(../img/logo-Leiberg.png) 35px center / 240px no-repeat;
  justify-self: flex-start;
  z-index: 100;
  align-self: flex-end;
  pointer-events: all;
}

#klapp_menu {
  grid-row: 1;
  grid-column: 1/-1;
  justify-self: flex-start;
  width: 100%;
  align-self: flex-end;
  position: relative;
  top: -1000px;
  overflow: hidden;
  box-sizing: border-box;
  pointer-events: all;
  transition: top 0.6s;
}

.burgered #klapp_menu {
  top: -70px;
}

#klapp_menu a {
}

/* startseite */
#start_list #klapp_menu {
  top: 0;
}
#start_list #klapp_menu a {
  color: white;
  border-color: white;
  text-shadow: 0px 0px 2px black;
}
#start_list #klapp_menu li:nth-child(7) a {
  margin-top: 52px;
}

.subpage_subs ul .sub_sub_menu {
  padding-left: 22px;
  margin-top: 2px;
}

/* background: white; */

#main_wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns:
    1vw minmax(280px, 1fr)
    repeat(3, 1fr)
    72px;
  grid-template-rows: 58px 74px min-content min-content 1fr 32px;
  grid-template-rows: 72px 38px min-content min-content 1fr 32px;
  overflow: hidden;
}

/* STARTSEITE LISTE */

.st_backdrop {
  grid-row: 2/7;
  grid-column: 1/-1;
  z-index: 0;
  background: center / cover no-repeat;
}
@media (orientation: landscape) {
  #st_backdrop_p {
    display: none;
  }
}
@media (orientation: portrait) {
  #st_backdrop_l {
    display: none;
  }
}

#start_list {
  grid-row: 3/7;
  grid-column: 1/3;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 32px;
}

.start_link {
  border: 6px solid white;
  font-size: 62px;
  text-transform: uppercase;
  color: white;
  font-weight: bold;
  margin: 12px 0;
  padding: 10px 24px;
}
.start_link:first-of-type {
  margin-top: 52px;
}
.start_link:hover {
  color: white;
}

/* SIDEBAR */

a.page_title_link {
  grid-column: 1 / -1;
  grid-row: 3 / 4;
  background: lightgrey;
  padding-left: 52px;
}

h2.page_title {
  text-transform: uppercase;
  transition: color 0.3s ease;
}

h2.page_title:hover {
  color: black;
}

.subpage_subs {
  grid-column: 1/3;
  grid-row: 3 / 6;
  color: white;
  pointer-events: all;
}

a.sub_sub_parent {
  margin-top: 36px;
  color: white;
}

.subpage_subs.no_parent h3 {
  width: 100%;
  z-index: 100;
  height: 29px;
  display: flex;
  align-items: center;
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  box-sizing: border-box;
  margin: 2px 0;
  font-weight: bold;
  padding-left: 35px;
  margin-top: 36px;
  color: white;
}

.subpage_subs ul {
  margin: 0;
  padding: 0;
  margin-top: 8px;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1.6px;
  padding-left: 35px;
}

.subpage_subs.columns ul {
  column-count: 3;
}

.subpage_subs li {
  padding: 0 0 1px 0;
}

.subpage_subs ul .sub_sub_menu li a {
  font-size: 12px;
}

.subpage_subs ul li a {
  color: white;
  display: inline-block;
  font-size: 13px;
}

.page-template-werke .subpage_subs ul a::after,
.page-template-k-text .subpage_subs ul a::after {
  content: unset;
}

.page-template-werke .subpage_subs ul .sub_sub_menu.verstecken {
  display: none;
}

.subpage_subs ul a.current::after {
  content: '';
  height: 16px;
  width: 22px;
  background: url(../img/arrow.svg) center / contain no-repeat;
  display: inline-block;
  padding: 0 10px;
  position: relative;
  top: 3px;
}

#content_wrap {
  grid-column: 1 / -1;
  grid-row: 3 / 6;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: lightgrey;
  grid-template-rows: 72px;
  padding: 26px 52px;
}

#content_wrap h2 {
  grid-column: 1/-1;
  margin: 0;
}
#content_wrap.artist_grid > a {
  margin-left: 32px;
  font-family: serif;
  font-size: 16px;
}

/* CONTENT */

.subpage_title {
  grid-column: 1/3;
  grid-row: 2;
}

.main_content {
  display: grid;
  grid-template-rows: min-content;
  grid-auto-rows: min-content;
  grid-column: 1/-1;
  grid-row: 3/6;
  background: lightgrey;
  padding: 26px 52px;
}
.main_content > *:first-child {
  margin-top: 0;
}

.main_content a {
  color: grey;
  transition: color 0.3s ease;
}

.main_content a:hover {
  color: black;
}
.main_content p {
  line-height: 20px;
}
.main_content p:first-of-type {
  margin-top: 0;
}
.main_item p:first-of-type {
  margin-top: 0;
}
.main_content_item {
  margin-bottom: 80px;
  position: relative;
}

.main_content p {
  margin-top: 20px;
}

.k_content h1 {
  font-size: 18px;
  letter-spacing: 4px;
}

/* CONTENT */

.k_content {
  grid-row: 3 / 6;
  grid-column: 3/-1;
  padding: 0 10vw 32px 0;
  color: white;
}

.k_content p,
.k_content a {
  color: white;
  position: relative;
  display: block;
}

.k_content h2 {
  margin-top: 42px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 18px;
  letter-spacing: 4px;
}
.k_content .con_item:nth-child(1) > h2 {
  margin-top: 15px;
}

.k_content > *:first-child {
  margin-top: 36px;
}

.con_item {
  margin-bottom: 30px;
}

.con_item h3 {
  font-size: 14px;
  text-transform: unset;
  font-weight: bold;
  letter-spacing: 1.6px;
  padding-left: 0;
  margin-bottom: 10px;
}

/* .con_item > *:first {
  margint-top: 0;
} */

.wp-block-image {
  margin: 24px 0;
}

.linked_caption {
  position: relative;
  top: -10px;
}

figcaption {
  color: #d0d0d0;
  font-size: 12px;
}

/* NACH JAHREN */

.current_year {
  font-family: 'Open Sans', Verdana, sans-serif;
  font-weight: bold;
  font-size: 15px;
}

.year_content {
  grid-row: 4 / 6;
  grid-column: 4 / -1;
  background: lightgray;
  padding: 14px 52px;
  font-family: serif;
  font-size: 16px;
}

.year_content_entry {
  margin-bottom: 42px;
}

.year_content_entry img {
  max-height: 50vh;
  width: auto;
}

/* BOOKS */

.page-template-for_all_books .wp-post-image,
.page-template-for_books .wp-post-image,
.page-template-per_category .wp-post-image {
  max-height: 50vh;
  margin: 12px 0;
  width: 100%;
  object-fit: contain;
  height: auto;
  object-position: left;
  margin: 12px 0;
}

.blaettern {
  background: url(../img/Logo_blaettern_weiss_100.png) center / 40% no-repeat;
  height: 100%;
  position: absolute;
  z-index: 1;
}

.blaettern ~ img {
  opacity: 0.7;
}

/* BOOK GALLERY */

.page-template-book-gallery .subpage_subs {
  display: none;
}

.page-template-book-gallery .schleider_objekt {
  display: block;
  z-index: 100;
}

/* NEWS GALLERY */

.page-template-bilder-news .subpage_subs {
  display: none;
}

.page-template-bilder-news .schleider_objekt {
  display: block;
  z-index: 100;
}
.page-template-news .wp-post-image {
  max-height: 50vh;
  margin: 12px 0;
  width: 100%;
  object-fit: contain;
  height: auto;
  object-position: left;
  margin: 12px 0;
}

/* BILDER GALLERY */

.page-template-children_pages .wp-post-image {
  max-height: 50vh;
  margin: 12px 0;
  width: 100%;
  object-fit: contain;
  height: auto;
  object-position: left;
}

.page-template-bilder-gallery .subpage_subs {
  display: none;
}

.page-template-bilder-gallery .schleider_objekt {
  display: block;
  z-index: 100;
}

/* TEXTE TEMPLATE */

.kon_item {
  background: white;
  color: black;
  margin-top: 27px;
  padding: 22px 42px;
  max-width: 630px;
  position: relative;
  transition: max-height 1.5s, height 0.4s, opacity 0.4s;
  max-height: 10000px;
}

.kon_item.versteckt {
  max-height: 50vh;
  overflow: hidden;
}

.kon_item::after {
  content: 'weiterlesen';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  padding: 32px 42px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgb(255, 255, 255) 68%);
  overflow: hidden;
  opacity: 0;
  cursor: pointer;
  color: #e2012c;
}

.kon_item.versteckt::after {
  height: 160px;
  opacity: 1;
}

.kon_item p {
  color: #000;
}

.the_pdf_link {
  width: 100%;
  text-align: right;
  display: inline-block;
  max-width: 710px;
  color: white;
  background: url(../img/pdf_download.png) left center / 30px no-repeat;
  height: 62px;
}

/* PAGE DEFAULT */

.menu_headline {
  margin-top: 36px;
}

.main_content > h2 {
  text-transform: uppercase;
  margin-bottom: 42px;
}
.main_content > p {
  font-family: serif;
  font-size: 16px;
}
.main_content > h3 {
  margin-top: 0;
}

.main_content.with_img {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-column-gap: 32px;
}
.main_content.with_img > * {
  grid-column: 2;
}

.main_content.with_img > h2 {
  grid-column: 1/-1;
}

.main_content.with_img > .wp-post-image {
  grid-column: 1;
  grid-row: span 10;
  width: 100%;
  height: auto;
  border: white solid 3px;
}

.main_content.with_img .img_stuff {
  grid-column: 1;
}

.main_content.with_img .img_stuff > div:first-of-type {
  font-weight: bold;
  margin: 22px 0 6px;
  font-size: 16px;
}

.main_content.with_img .img_stuff > div:last-of-type {
  font-family: serif;
  font-size: 16px;
}

/* UNTERSTRICHEN */
.unterstrichen {
  font-weight: normal;
  text-transform: none !important;
  text-decoration: underline;
  text-underline-offset: 14px;
  margin-bottom: 32px;
  text-decoration-thickness: 1.2px;
}

/* JAHRESZAHLEN BEI RÄUME VERSTECKEN */

.parent-pageid-23 .sub_sub_menu {
  display: none;
}

/* FOOTER  */

footer {
  position: fixed;
  bottom: 24px;
  right: 0px;
  width: 164px;
}
footer ul {
  margin: 7px 0;
  display: grid;
  grid-template-columns: auto auto auto 1fr auto auto auto;
  display: flex;
  flex-direction: column;
  justify-content: end;
  min-height: 100%;
  font-size: 10px;
  letter-spacing: 4px;
}

footer .menu li a {
  color: white;
  font-weight: bold;
  text-transform: uppercase;
}

footer .menu li:first-child {
  position: fixed;
  right: 0;
  bottom: 100px;
  transform: rotate(-90deg) translateY(30px);
  transform-origin: top;
}

footer .menu li:first-child a {
  padding: 10px 20px 14px;
  background: #e2002b;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  opacity: 0.7;
}

#pfeil_next {
  position: fixed;
  bottom: 22vh;
  left: 22vw;
  cursor: pointer;
  height: 16px;
  width: 22px;
  transform: rotate(90deg);
  background: url(../img/arrow.svg) center / contain no-repeat;
}

/* SCHLEIDER ADDITIONS */

.schleider_galerie {
  grid-row: 3 / 6;
  grid-column: 3/6;
  padding: 0 42px 0 0;
  margin-top: 38px;
}

.schleider_galerie p {
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 1.6px;
  margin: 0 0 1rem;
  color: white;
}

#slider_overlay {
  background: #404040;
}

#main_wrap {
  grid-template-rows: 72px 38px min-content min-content 1fr;
}
.lb_item_wrap .lb_item {
  height: 100%;
}
.lb_item_wrap .lb_item img {
  height: 90%;
}

.lb_item_wrap .lb_item .img_caption {
  color: #c4c4c4;
  margin-top: 8px;
  font-size: 12px;
}

.schleider_lightbox .lightbox_item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.schleider_objekt {
  z-index: 1000;
}

.burgered .schleider_objekt {
  z-index: 100;
}

/* iPad */

@media only screen and (max-device-width: 810px) {
  #webpage_title_link {
    background: white url(../img/logo-Leiberg.png) 35px center / 218px no-repeat;
  }

  .schleider_galerie_column,
  .schleider_galerie .galerie_item {
    width: 49.5%;
  }

  .schleider_galerie {
    padding: 0 0px 0 0;
  }
}

/* smartphone */
@media only screen and (max-device-width: 600px) {
  #klapp_menu a {
    font-size: 33px;
    height: 55px;
  }

  #klapp_menu a,
  a.sub_sub_parent,
  .menu_headline {
    padding-left: 0;
  }

  .burgered #klapp_menu {
    top: -96px;
  }

  #webpage_title_link {
    grid-row: 1/2;
    height: 100%;
  }
  .burgered #webpage_title_link {
    height: 80px;
    grid-row: 1/3;
  }

  header #backdrop {
    grid-row: 1/-1;
  }

  #webpage_title_link {
    background: white url(../img/logo-Leiberg.png) 32px center / 218px no-repeat;
  }

  header {
    position: relative;
  }

  .k_content {
    grid-row: 1 / 6;
    grid-column: 1/-1;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  #main_wrap {
    grid-template-columns: 100%;
    padding: 0 32px;
  }

  .subpage_subs.no_parent h3 {
    margin-top: 0px;
  }

  .subpage_subs {
    margin-left: 32px;
  }

  .subpage_subs.no_parent h3 {
    padding-left: 0;
  }

  a.sub_sub_parent {
    margin-top: 0;
  }

  .kon_item {
    padding: 18px 32px;
  }
  .schleider_galerie {
    grid-row: 1 / 6;
    grid-column: 1/6;
  }

  .schleider_galerie_column,
  .schleider_galerie .galerie_item {
    width: 100%;
  }

  .schleider_lightbox_wrap {
    padding: 0 0 0 0 !important;
    margin-left: 0;
  }

  .schleider_objekt {
    z-index: 10000;
  }

  .lb_item_wrap .lb_item {
    height: auto;
  }

  .schleider_lightbox_wrap {
    background: #404040;
  }

  button#schleider_close {
    z-index: 100000;
  }

  #schleider_back {
    z-index: 100000;
  }

  #schleider_forward {
    z-index: 100000;
  }

  #schleider_back {
    top: unset;
    bottom: 10px;
  }
  #schleider_forward {
    top: unset;
    left: unset;
    bottom: 10px;
    right: 5vw;
  }
  button#schleider_close {
    top: 10px;
    right: 5vw;
  }

  .lb_item_wrap .lb_item {
    max-width: 90vw;
    display: flex;
    flex-direction: column;
  }
  footer {
    grid-row: 6;
    display: none;
  }
  .home footer {
    display: block;
    z-index: 1;
  }

  .home #main_wrap {
    padding: 0;
  }

  .home .st_backdrop {
    grid-row: 1/7;
  }

  .home header {
    grid-template-rows: minmax(auto, 72px);
  }

  .home #start_list {
    grid-row: 1/7;
    padding-left: 32px;
  }

  .subpage_subs ul li a {
    font-size: 16px;
  }

  .subpage_subs {
    grid-column: 1/-1;
  }
  button.schleider_close_book,
  button#schleider_close {
    grid-column: 1;
    grid-row: 1;
    z-index: 100000 !important;
  }
  @media screen and (orientation: landscape) {
    #klapp_menu a {
      font-size: 27px;
      height: 33px;
    }
    #klapp_menu {
      grid-row: 1/5;
    }
    .page-template-bilder-gallery header,
    .page-template-book-gallery header {
      display: none;
    }
    #klapp_menu {
      overflow: visible;
    }
    #menu-hauptmenue {
      top: -82px;
      position: relative;
      z-index: 100;
    }
  }
  .page-template-bilder-gallery #burger_icon,
  .page-template-bilder-gallery #closer_icon,
  .page-template-book-gallery #burger_icon,
  .page-template-book-gallery #closer_icon {
    display: none;
  }

  #schleider_close_book {
    position: fixed;
    top: 72px;
    right: 12px;
  }
}
/* fin */
