/*  */
/* vars */
/*  */
html {
  --page-margin: calc(calc(100vw - 32px) / 8);
  --single-column: calc(calc(calc(100vw - 32px) / 8));
  --middle-half: calc(50% - 4px);
  --middle-half-vw: calc(calc(calc(calc(100vw - 32px) / 8)) * 3);
  --highlight-color: #FBF7F1;
  --light-color: #ACA8A8;
  --list-height: calc(100vh - 46px);
}

/*  */
/* reset & set */
/*  */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  max-width: 100%;
  display: block;
}
.clickable {
  cursor: pointer;
}
body {
  background-color: white;
  color: black;
  padding: 5px 8px;
}
.main {
  display: flex;
  flex-wrap: wrap;
}
@media screen and (min-width: 1025px) {
  a:hover,
  a.active,
  .clickable:hover {
    font-style: italic;
    color: var(--light-color);
  }
  h1 a:hover {
    font-style: unset;
    color: unset;
  }

  body {
    padding: 10px 16px;
  }
  .main {
    /* margin: 0 calc(12.5vw - 5px); */
    margin: 0 var(--page-margin);
  }
}

@media screen and (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }
}
@media screen and (min-width: 1025px) {
  .mob-only {
    display: none !important;
  }
}

/*  */
/* fonts */
/*  */
@font-face {
	font-family: 'basel';
	src: url('Basel-Grotesk-Medium.woff2') format('woff2'), url('Basel-Grotesk-Medium.woff') format('woff');
	font-weight: normal;
	/* font-display: swap; */
}
@font-face {
	font-family: 'basel';
	src: url('Basel-Grotesk-Medium-Italic.woff2') format('woff2'), url('Basel-Grotesk-Medium-Italic.woff') format('woff');
	font-weight: normal;
  font-style: italic;
	/* font-display: swap; */
}
body {
  font-family: basel, sans-serif;
  color: black;
  font-size: 18px;
  line-height: 22px;
}
h1 {
  /* font-size: 35px; */
  font-size: 35.4px;
  line-height: 42px;
  font-weight: normal;
}
h2,h3,h4,h5,h6 {
  font-size: inherit;
  line-height: inherit;
  font-weight: normal;
}
h2 {
  display: none;
}
a {
  color: black;
  text-decoration: none;
}
/* @media screen and (min-width: 900px) and (max-width: 999px) { */
  /* header, h1 {
    font-size: 21px;
    line-height: 26px;
  }   */
/* } */
/* @media screen and (min-width: 1000px) { */
@media screen and (min-width: 1025px) {
  header, h1 {
    /* font-size: 22px;
    line-height: 26px; */
    font-size: 42px;
    line-height: 52px;
  }  
}

/*  */
/* header */
/*  */
header {
  display: flex;
  flex-wrap: wrap;
  height: 141px;
  position: relative;
  overflow: visible;
  z-index: 11;
  user-select: none;
}
header h1 {
  width: 100%;
  margin-bottom: 30px;
  overflow: visible;
}
header nav {
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 50px;
}
header nav ul {
  display: flex;
  width: 100%;
  list-style-type: none;
}
header .nav-kontakt {
  width: 50%;
}
.body-page-kontakt .nav-kontakt a {
  color: var(--light-color);
  font-style: italic;
}
.body-page-projekte .nav-projekte a {
  color: var(--light-color);
  font-style: italic;
}
.body-page-parent-atelier .nav-atelier a {
  color: var(--light-color);
  font-style: italic;
}
header nav ul li {
  width: 25%;
}
header nav ul li.kontakt {
  width: 50%;
  cursor: pointer;
}
header nav ul li:last-of-type {
  text-align: right;
}
@media screen and (max-width: 1024px) {
  .body-page-kontakt .nav-atelier {
    color: unset;
    font-style: normal;
  }
}
@media screen and (max-width: 1024px) {

}
@media screen and (min-width: 1025px) {
  header {
    gap: 8px;
    padding-top: 40px;
    padding-bottom: 10px;
    /* height: 76px; */
    margin-top: -40px;
    flex-wrap: nowrap;
    background-color: white;
    height: 104px;
  }
  header h1 {
    margin-bottom: unset;
    flex-shrink: 0;
  }
  header .title {
    /* width: calc(75% - 4px); */
    width: calc(50% - 4px);
  }
  header nav {
    /* width: calc(25% - 4px); */
    width: calc(50% - 4px);
    margin-bottom: unset;
  }
  header nav ul {
    justify-content: flex-end;
  }
  header nav ul li {
    width: 50%;
    text-align: right;
  }
  .header-kontakt {
    display: none;
  }
  .body-page-parent-atelier header {
    /* height: 82px; */
  }
  /* .body-page-parent-atelier .header-kontakt {
    display: block;
    width: calc(calc(100% - 24px) / 4);
  }
  .title .header-kontakt {
    width: auto;
  }
  .body-page-parent-atelier nav,
  .body-page-parent-atelier .title {
    width: calc(calc(100% - 24px) / 4);
  }
  .w-ig {
    position: relative;
  }
  .ig {
    position: absolute;
    top: 0;
    right: 0;
    width: 27px;
  } */
  
}

/*  */
/* submenu */
/*  */
.atelier-header {
  display: flex;
  width: 100%;
  /* flex-wrap: nowrap; */
}
.atelier-header {
  list-style-type: none;
  /* display: block; */
}
.atelier-submenu li {
  height: 30px;
  display: block;
  padding: 5px 2px
}
.atelier-submenu li a {
  display: block;
}
.atelier-submenu li:nth-of-type(odd) {
  background-color: var(--highlight-color);
}
.atelier-submenu {
  width: 100%;
}
.page-about .link-about,
.page-team .link-team,
.page-job .link-job,
.page-aktuell .link-aktuell,
.page-publikation .link-publikation,
.page-kontakt .link-kontakt {
  color: var(--light-color);
  font-style: italic;
}
@media screen and (max-width: 1024px) {
  .atelier-header {
    margin-bottom: 20px;
  }
}
@media screen and (min-width: 1025px) {
  .atelier-header {
    /* margin-top: 30px; */
    gap: 8px;
  }
  .atelier-submenu {
    width: calc(50% - 4px);
  }
  .atelier-submenu li {
    position: relative;
    padding: 5px 0;
  }
  .atelier-submenu li:nth-of-type(odd):before {
    display: block;
    position: absolute;
    top: 0;
    left: calc(-1 * var(--page-margin));
    width: var(--page-margin);
    height: 100%;
    content: '';
    background-color: var(--highlight-color);
  }
  .atelier-extra {
    width: calc(50% - 4px);
    background-color: var(--highlight-color);
    position: relative;
    list-style-type: none;
  }
  .atelier-extra li {
    height: 30px;
    padding: 5px 2px;
  }
  .atelier-extra li a {
    position: relative;
    padding-right: 33px;
  }
  .atelier-extra li a:after {
    position: absolute;
    display: block;
    content: '';
    right: 0;
    top: 3px;
    background-image: url(arrow-right.png);
    background-repeat: no-repeat;
    background-size: 16px;
    height: 16px;
    width: 16px;
  }
  .atelier-extra:after {
    display: block;
    position: absolute;
    top: 0;
    right: calc(-1 * var(--page-margin));
    width: var(--page-margin);
    height: 100%;
    content: '';
    background-color: var(--highlight-color);
  }
}

/*  */
/* projektliste */
/*  */
.projektliste {
  background-color: white;
  /* display: none; */
  flex-direction: column;
}
.werkliste {
  margin-top: 120px;
  /* padding-top: 1em; */
}
.werkliste a {
  display: inline-block;
  padding-right: 30px;
  position: relative;
}
.werkliste a:after {
  display: block;
  content: '';
  background-image: url(pfeil.png);
  background-size: 12px;
  background-position: 16px 9px;
  background-repeat: no-repeat;
  padding: 4px;
  position: absolute;
  right: 0px;
  top: 0px;
  width: 20px;
  height: 20px;
}
.show-projektliste .projektliste {
  display: flex;
}

.show-projektliste .nav-projekte {
  font-style: italic;
  color: var(--light-color);
}
.projektliste-filter {
  display: flex;
  background-color: var(--highlight-color);
  position: sticky;
  top: 0px;
  z-index: 10;
}
.projektliste-filter div {
  width: 25%;
}
.projektliste-filter div:first-of-type {
  width: 50%;
}
.projektliste-filter div:last-of-type {
  text-align: right;
}
.projektliste-filter > :hover {
  cursor: pointer;
}
.projektliste-filter > :hover,
.projektliste-filter .active {
  font-style: italic;
  color: var(--light-color);
}
.projektliste ul {
  display: block;
  list-style-type: none;
}
.projektliste ul li a {
  display: flex;
  flex-wrap: wrap;
}
.projektliste-projekt-bild {
  width: 50%;
  height: auto;
  margin-left: 50%;
}
.projektliste-projekt-details {
  display: flex;
  width: 100%;
  justify-content: space-between;
  background-color: var(--highlight-color);
}
.filtered-inarbeit li:not(.status-inarbeit) .projektliste-projekt-details {
  display: none;
}
.filtered-gebaut li:not(.status-gebaut) .projektliste-projekt-details {
  display: none;
}
@media screen and (max-width: 1024px) {
  .projektliste {
    width: 100%;
  }
  .projektliste-projekt-bild img {}  
  .projektliste-projekt-bild {
    max-width: 250px;
  }
}
@media screen and (max-width: 1024px) {
  .filtered-inarbeit li:not(.status-inarbeit) {
    display: none;
  }
  .filtered-gebaut li:not(.status-gebaut) {
    display: none;
  }
}
@media screen and (min-width: 1025px) {
  .projektliste {
    /* width: calc(calc(50% - 4px) - var(--single-column)); */
    width: calc(var(--middle-half-vw) - 4px);
    margin-left: var(--single-column);
    /* margin-top: 10px; */
    background-color: var(--highlight-color);
    /* position: absolute; */
    top: 36px;
    overflow: visible;
    /* min-height: calc(100vh - 64px); */
    /* height: calc(100vh - 132px); */
    font-size: 18px;
    line-height: 30px;
    /* padding: 10px 8px; */
  }
  .body-page-parent-atelier .projektliste {
    top: 70px;
  }
  .body-page-home .projektliste {
    top: 70px;
  }
  .projektliste:after {
    width: calc(var(--middle-half-vw) + 12px);
    /* height: calc(100vh - 64px); */
    height: calc(100vh - 92px);
    background-color: white;
    position: fixed;
    left: calc(var(--middle-half-vw) - 4px);
    top: 0px;
    display: block;
    content: ' ';
    z-index: 1;

    left: calc(50vw - 4px);
    height: 100vh;
  }
  .projektliste ul a:hover {
    color: unset;
    font-style: unset;
  }
  .projektliste ul a:hover .projektliste-projekt-details {
    color: var(--light-color);
    font-style: italic;
  }
  .projektliste-filter {
    /* background: none; */
    margin-bottom: 30px;
  }
  .projektliste-projekt-details {
    background: none;
  }
  .projektliste-projekt-jahr {
    display: none;
  }
  .projektliste-projekt-bild {
    display: none;
    /* position: absolute;
    top: -60px;
    left: calc(var(--middle-half-vw) + 4px); */
    width: calc(var(--middle-half-vw) - 4px);
    /* height: calc(100vh - 132px); */
    /* height: calc(100vh - 46px);
    max-height: var(--list-height); */
    /* height: calc(100vh); */
    /* max-height: calc(var(--list-height) + 46px); */
    margin-left: 0;
    z-index: 10;
    
    position: fixed;
    top: 0px;
    left: calc(50vw + 4px);
    
    position: absolute;
    top: -60px;
    left: calc(100% + 8px);
    height: calc(100% + 108px);
  }
  .projektliste ul {
    position: relative;
  }
  .projektliste ul:before {
    background-image: url('bg.png');
    background-size: 0.5px;
    background-repeat: repeat;
    width: calc(var(--single-column) - 8px);
    height: calc(100% + 60px);
    /* height: calc(100vh - 133px); */
    position: absolute;
    left: calc(-1 * var(--single-column));
    top: -60px;
    display: block;
    content: ' ';

  }
  .projektliste ul:after {
    background-image: url('bg.png');
    background-size: 0.5px;
    background-repeat: repeat;
    width: calc(calc(var(--middle-half-vw) + var(--single-column)) - 4px);
    height: calc(100% + 60px);
    /* height: calc(100vh - 133px); */
    position: absolute;
    left: calc(var(--middle-half-vw) + 4px);
    top: -60px;
    display: block;
    content: ' ';
    z-index: 1;
  }
  .projektliste ul li:first-of-type .projektliste-projekt-bild {
    display: block;
    z-index: 8;
  }
  .projektliste ul li.current .projektliste-projekt-bild {
    display: block !important;
    z-index: 9;
  }
  .projektliste ul li:hover .projektliste-projekt-bild {
    display: block;
    z-index: 10;
  }
  .projektliste-projekt-bild img {
    width: 100%;
    /* height: 100%; */
    object-fit: cover;
    
    /* height: calc(100vh - 46px); */
    height: calc(100vh - 72px);
    max-height: calc(var(--list-height));
    position: sticky;
    top: 0px;
  }
}


/*  */
/* slider */
/*  */
.slider {
  max-width: 100%;
  flex-wrap: wrap;
  margin: 0 auto;
  user-select: none;
}
.slider-controls {
  display: none;
}
.slider-slides {
  width: 100%;
  max-height: 100%;
  /* height: 100%; */
  display: flex;
  flex-direction: row;
  overflow: scroll;
  position: relative;
}
/* Hide scrollbar for Chrome, Safari and Opera */
.slider-slides::-webkit-scrollbar {
  display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.slider-slides {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}
.slider-slides li {
  width: 100%;
  min-width: 100%;
  /* max-height: 100%; */
  display: flex;
  flex-direction: row;
  gap: 8px;
}
.slider-slides li:not(.active) {
  display: none;
}
.slider-slides li.nextslide {
  display: flex;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}
.slider-slides li .image {
  width: calc(50% - 4px);
  display: flex;
  justify-content: center;
  gap: 8px;
}
.slider-slides li.slide-double .image:first-of-type {
  justify-content: flex-end;
}
.slider-slides li.slide-double .image:last-of-type {
  justify-content: flex-start;
}
@media screen and (max-width: 1024px) {
  .slider-arrows {
    display: none;
  }
}
@media screen and (min-width: 1025px) {
  .slider {
    position: relative;
  }
  
  .slider-slides li .image img {
    object-fit: cover;
  }
  /* controls */
  .slider-controls {
    display: block;
    /* height: var(--info-height);
    width: calc(calc(var(--info-width) * 2) + 8px); */
    height: calc(100% - 22px);
    width: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 10;
  }
  .slider-controls div {
    /* width: var(--info-width);
    height: var(--info-height); */
    width: 50%;
    height: 100%;
  }
  .control-left {
    position: absolute;
    top: 0;
    left: 0;
  }
  .control-right {
    position: absolute;
    top: 0;
    right: 0;
  }
  .projekt-slider .control-left, 
  .projekt-slider .control-right {
    cursor: none;
  }
  /* arrows */
  .slider-arrows > * {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1000;
    width: 80px;
  }
  .slider-arrows .arrow-left {
    pointer-events: none;
  }
  .slider-arrows .arrow-right {
    pointer-events: none;
  }
  .atelier-slider {
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
  }
  .atelier-slider .slider-controls {
    width: 100%;
    height: 100%;
    opacity: 0;
    user-select: none;
    -webkit-user-select: none;
  }
  .atelier-slider:hover .slider-controls {
    opacity: 1;
  }
  .atelier-slider .control-left {
    background-image: url(/assets/left.png);
    background-repeat: no-repeat;
    background-position: left -14px center;
    background-size: 80px;
    cursor: pointer;
    width: 50%;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
  }
  .atelier-slider .control-right {
    background-image: url(/assets/right.png);
    background-repeat: no-repeat;
    background-position: right -18px center;
    background-size: 80px;
    cursor: pointer;
    width: 50%;
    height: 100%;
    user-select: none;
    -webkit-user-select: none;
  }
}


/*  */
/* home */
/*  */
.page-home {
  
}
.home-slider {
  /* max-height: calc(100svh - 153px); */
  height: calc(100svh - 208px);
}
.home-slider-slides li {
  display: flex;
  gap: 8px;
}
.home-slider-slides li .image img {
  /* width: 100%; */
  /* height: auto; */
  height: 100%;
  width: auto;
  object-fit: contain;
  /* aspect-ratio: 2/3; */
  transition: width .8s ease-in-out;
  width: calc(calc(calc(100vh - 250px) / 3) * 2);
}
.home-slider-slides li .image:first-of-type img {
  object-position: center right;
}
.home-slider-slides li .image:last-of-type img {
  object-position: center left;
}
@media screen and (min-width: 1025px) {
  .home-slider {
    /* min-height: calc(100vh - 72px); */
    height: calc(100vh - 250px);
    transition: height .8s ease-in-out;
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }

  .body-page-home nav,
  .body-page-home h1 {
    font-size: 42px;
    line-height: 52px;
  }
  
  .body-page-home h1.transitioning {
    transition: font-size .8s ease-in-out,
    line-height .8s ease-in-out;
  }
  .title {
    transition: width .8s ease-in-out;
    flex-shrink: 0;
  }
  .body-page-home .title {
    width: calc(50% - 4px);
  }
  .body-page-home header nav {
    transition: opacity .8s ease-in-out;
    width: calc(50% - 4px);
  }
  .first-home {
    cursor: pointer;
  }
  .first-home h1 {
    font-size: calc(calc(100vw - 32px) / 10.2);
    line-height: 1em;
  }
  .first-home .title {
    width: 100%;
  }
  .first-home header nav {
    display: none;
    opacity: 0;
  }
  .first-home .slider {
    height: 33vh;
  }
  .first-home .home-slider-slides li .image img {
    width: 22vh;
  }
}


/*  */
/* projekte */
/*  */
.page-template-projekt {
  /* max-height: calc(100svh - 152px); */
}
.projekt-slider {
  overflow: hidden;
}
.projekt-slider-legende {
  display: flex;
  width: 100%;
  margin-top: 1px;
}

.projekt-slider-slides .image img {
  background-color: var(--highlight-color);
  width: 100%;
}
.projekt-slider-legende-info {
  width: 100%;
  justify-content: flex-end;
  text-underline-offset: 2px;
  text-decoration: underline;
}
@media screen and (max-width: 1024px) {
  .projekt-slider-slides {
    overflow-x: auto;
  }
  .projekt-slider-slides li:not(.active) {
    display: flex;
  }
  .projekt-slider-slides li {
    width: auto;
    min-width: unset;
  }
  .projekt-slider-slides {
    max-height: calc(100svh - 288px);
    gap: 8px;
  }
  .projekt-slider-slides li .image {
    height: calc(100svh - 288px);
    width: auto;
  }
  .projekt-slider-slides li .image img {
    max-width: unset;
    width: auto;
    height: 100%;
  }
  .projekt-slider-legende {
    /* height: 132px; */
    flex-wrap: wrap;
    align-items: space-between;
  }
  .projekt-slider-legende > * {
    width: 50%;
    display: flex;
  }
  .projekt-slider-legende-jahr,
  .projekt-slider-legende-counter {
    justify-content: flex-end;
  }
  .projekt-slider-legende-info,
  .projekt-slider-legende-counter {
    align-items: flex-end;
  }
  .projekt-slider-legende-art,
  .projekt-slider-legende-jahr {
    display: none;
  }
  .projekt-slider-legende-info {
    width: 50%;
    justify-content: flex-end;
  }
  .projekt-slider-legende-counter {
    display: none;
  }
}

@media screen and (min-width: 1025px) {
  /* align images */
  .projekt-slider-slides li .image:first-of-type {
    justify-content: flex-end;
  }
  .projekt-slider-slides li .image:last-of-type {
    justify-content: flex-start;
  }
  .projekt-slider-slides li .image:first-of-type img {
    object-position: center left;
  }
  .projekt-slider-slides li .image:last-of-type img {
    object-position: center right;
  }
  
  /* sizing */
  .projekt-slider-slides li {
    /* height: calc(100vh - 152px); */
    /* height: calc(100vh - 180px); */
    /* max-height: calc(100vh - 180px); */
    height: calc(100vh - 180px);
    /* aspect-ratio: 4/3; */
    width: auto;
    width: calc(calc(calc(100vh - 180px) / 3) * 4);
  }
  .slider-slides li.slide-single .image {
    width: 100%;
  }


  /* open image to full */
  /* transition */
  .slider-slides li .image {
    transition: width .5s ease-in-out;
    overflow: hidden;
  }
  /* left */
  .slider-slides li.open-left.open .image:first-of-type {
    width: 100%;
  }
  .slider-slides li.open-left.open .image:last-of-type {
    display: none;
  }
  /* right */
  .slider-slides li.open-right.open {
    flex-direction: row-reverse;
  }
  .slider-slides li.open-right.open .image:last-of-type {
    width: 100%;
    /* position: absolute;
    top: 0px;
    right: 0px; */
  }
  .slider-slides li.open-right.open .image:first-of-type {
    display: none;
  }
  .slider-slides li.opening.open-left .image:last-of-type {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
    height: 100%;
  }
  .slider-slides li.opening.open-left .image:last-of-type img {
    height: 100%;
  }
  .slider-slides li.opening.open-right .image:first-of-type {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    height: 100%;
  }
  .slider-slides li.opening.open-right .image:first-of-type img {
    height: 100%;
  }
  /* slide transition */
  .slider-slides li.transitioning {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    z-index: 1;
  }
  .slider-slides li.transitioning-back {
    z-index: 9;
    
  }
  
  .slider-slides li.transitioning:before {
    display: block;
    content: ' ';
    width: 8px;
    height: 100%;
    position: absolute;
    top: 0px;
    left: calc(50% - 4px);
    background-color: white;
    z-index: 100;
  }

  /* legende */
  .projekt-slider-legende > * {
    width: 25%;
  }
  .projekt-slider-legende-titel {}
  .projekt-slider-legende-art {
    padding-right: 4px;
  }
  .projekt-slider-legende-jahr {
    padding-left: 4px;
    width: calc(50% / 3);
  }
  .projekt-slider-legende-info {
    width: calc(50% / 3);
    text-align: center;
  }
  .projekt-slider-legende-counter {
    width: calc(50% / 3);
    text-align: right;
  }
}


/* legende */
.projekt-slider-legende {
  user-select: none;
}
.projekt-slider-legende-info {
  cursor: pointer;
}
/* info */
.projekt-info {
  display: none;
  height: calc(100svh - 220px);
  width: 100vw;
  position: fixed;
  top: 220px;
  left: 0;
  overflow-y: auto;
  padding: 20px 12px;
  background-color: var(--highlight-color);
  z-index: 20;
}
.projekt-info .x-close {
  display: block;
  content: '';
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background-image: url(x.png);
  background-repeat: no-repeat;
  background-size: 12px;

}
.projekt-info .projekt-details td {
  vertical-align: top;
}
.projekt-info .projekt-details td:first-of-type {
  padding-right: 25px;
  color: var(--light-color);
}
.projekt-info .projekt-details {
  margin-bottom: 30px;
}
.projekt-info-credits {
  margin-top: 60px;
  font-size: 14px;
  line-height: 17px;
}
.projekt-info-credits ul {
  list-style-type: none;
  display: block;
}
.projekt-info-credits ul li {
  display: inline;
}
.projekt-info-credits ul li span {
  display: inline;
}
.projekt-info-credits ul .aufgabe {
  color: var(--light-color);
}
/* toggle */
.showinfo .projekt-slider-legende-info {
  color: var(--light-color);
  font-style: italic;
}
.showinfo .projekt-info {
  display: block;
}
.closeinfo {
  display: none;
}
@media screen and (max-width: 1024px) {

  .showinfo .closeinfo {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 19;
  }
}
@media screen and (min-width: 1025px) {
  .projekt-info {
    /* width: calc(calc(calc(calc(100vh - 152px) / 3) * 2) - 4px); */
    width: calc(calc(calc(calc(100vh - 180px) / 3) * 2) - 4px);
    width: var(--info-width);
    /* height: calc(100vh - 152px); */
    height: calc(100vh - 180px);
    height: var(--info-height);
    left: calc(50vw + 4px);
    /* top: 46px; */
    top: 74px;
    z-index: 10;
  }
  .projekt-info .x-close {
    /* display: none; */
    cursor: pointer;
    right: 7px;
    top: 15px;
  }
}

/* kontakt */
.kontakt-kontakt {
  display: flex;
  flex-wrap: wrap;
}
.kontakt-kontakt > * {
  width: 50%;
  margin-bottom: 30px;
}
.page-kontakt iframe {
  max-width: 100%;
}

.text p {
  margin-bottom: 1em;
  break-inside: avoid;
}
.kontakt-entries {
  margin-top: 30px;
}
.kontakt-entries .entry {
  margin-bottom: 1em;
}
.kontakt-entries h3 {
  color: var(--light-color);
}
.entry-pdf {
  display: inline-block;
  padding-right: 20px;
  position: relative;
}
.entry-pdf:after {
  display: block;
  content: '';
  background-image: url(arrow-upright.png);
  background-size: 12px;
  background-repeat: no-repeat;
  width: 12px;
  height: 12px;
  position: absolute;
  top: 5px;
  right: 0;
}
@media screen and (max-width: 1024px) {
  .page-kontakt .atelier-header {
    display: none;
  }
  .page-parent-atelier .atelier-slider {
    margin-bottom: 8px;
  }
  .page-parent-atelier .slider-slides {
    gap: 8px;
    scroll-snap-type: x mandatory;
  }
  .page-parent-atelier .slider-slides li {
    scroll-snap-align: start;
    
  }
  .page-parent-atelier .slider-slides li:not(.active) {
    display: flex;
  }
  .page-parent-atelier .slider-slides img {
    object-fit: contain;
  }
}
@media screen and (min-width: 1025px) {
  /* .page-template-about .slider,
  .page-template-job .slider {
    max-height: 205px;
    margin-bottom: 15px;
  } */
  .kontakt-kontakt {
    width: 100%;
    position: relative;
    margin-top: 1em;
  }
  .kontakt-kontakt > * {
    width: calc(100% / 3);
  }
  .kontakt-kontakt .kontakt-4 {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
  }
  .kontakt-kontakt .kontakt-4 img {
    width: 27px;
  }
  .page-kontakt .kontakt-karte {
    width: 100%;
    display: flex;
    justify-content: center;

  }
  .page-kontakt .kontakt-karte img {
    height: 294px;
    
  }
  .page-template-about .text {
    columns: 2;
    gap: 8px;
  }
  .kontakt-entries {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
  }
  .kontakt-entries > * {
    width: calc(50% - 6px);
  }
}

/*  */
/* job */
/*  */
.page-job .job-jobs .job {
  margin: 1em 0 2em;
}
.page-job .job-jobs .job h3 {
  color: var(--light-color);
}
.page-job .job-jobs .job p {
  break-inside: avoid;
  margin-bottom: 1em;
}
.page-job .job-jobs .job .job-pdf {
  margin-top: 1em;
}
.page-job .job-jobs .job .job-pdf,
.page-job .job-jobs .job .job-link {
  display: inline-block;
}
@media screen and (min-width: 1025px) {
  .page-job .job-jobs .job {
    columns: 2;
    gap: 8px;
  }
  

}

/*  */
/* team */
/*  */
.page-team .partner,
.page-team .team {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.page-team .partner-partner,
.page-team .team-member {
  width: calc(50% - 4px);
}
.partner-name:hover {
  color: var(--light-color);
  font-style: italic;
}
.page-team h3 {
  margin: 30px 0;
}
.page-team .main a {
  color: var(--light-color);
}
@media screen and (max-width: 1024px) {
  .page-team .atelier-slider {
    display: none;
  }
  .partner-partner {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
  }
  .team-member {
    margin-bottom: 30px;
  }
  .partner-bio {
    display: none;
  }
  .partner-partner > * {
    order: 1;
  }
  .partner-details {
    order: 0;
  }
  .partner-image {
    margin-bottom: 4px;
  }
}

@media screen and (min-width: 1025px) {
  .team-wrapper {
    position: relative;
  }
  .page-parent-atelier .slider {
    min-height: 295px;
    height: 33vh;
    /* max-height: 394px; */
    max-height: 500px;
    margin-bottom: 15px;
  }
  .page-parent-atelier .slider-slides li .image img {
    object-fit: contain;
    /* aspect-ratio: 1/1; */
    min-width: 295px;
    width: 33vh;
    max-width: 500px;
  }
  .page-parent-atelier .slider-slides li .image:first-of-type img {
    object-position: top right;
  }
  .page-parent-atelier .slider-slides li .image:last-of-type img {
    object-position: top left;
  }
  .page-parent-atelier .slider-slides li.slide-single img {
    /* aspect-ratio: unset; */
  }
  .partner-details {
    display: none;
  }
  .page-team h3 {
    display: none;
  }
  .page-team .partner {
    flex-wrap: nowrap;
    width: 100%;
  }
  .page-team .partner-partner,
  .page-team .team-member {
    width: calc(calc(100% - 24px) / 4);
    margin-bottom: 30px;
  }
  .page-team .partner-partner {
    cursor: pointer;
  }
  .partner-partner.active > *:not(.partner-details),
  .partner-partner.active > *:not(.partner-details) * {
    color: var(--light-color);
    font-style: italic;
  }
  .partner-partner .partner-details {
    display: none;
    position: absolute;
    /* top: -310px; */
    top: 0;
    left: 0;
    width: 100%;
    /* height: 295px; */
    background-color: white;
    align-items: flex-start;
    gap: 8px;
    cursor: default;
    min-height: 295px;
    height: 33vh;
    max-height: 500px;
  }
  .partner-partner.active .partner-details {
    display: flex;
  }
  .partner-image {
    width: calc(50% - 4px);
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
  }
  .partner-image img {
    /* height: 295px; */
    height: 100%;
    width: auto;
  }
  .partner-bio {
    width: calc(50% - 4px);
    height: auto;
  }
  .partner-bio td {
    vertical-align: top;
  }
  .partner-bio td:first-of-type {
    width: 120px;
    break-inside: avoid;
  }
}

/* projekte */
.main.page-template-projekte {
  margin: 0;
}

/* mobile landscape */
@media screen and (orientation: landscape) and (max-width: 1024px) {
  header {
    height: unset;
  }
  header h1 {
    margin-bottom: 5px;
  }
  header nav {
    margin-bottom: 10px;
  }
  .home-slider {
    height: calc(100svh - 100px);
  }
  .projekt-slider-slides {
    max-height: calc(100svh - 89px);
    gap: 8px;
  }
  .projekt-slider-slides li .image {
    height: calc(100svh - 89px);
    width: auto;
  }
  .projekt-info {
    height: calc(100svh - 120px);
    top: 120px;
  }
}