/*
Theme Name:     ensch
Version:        1.0
*/
*:not(.is-position-sticky, .wp-lightbox-overlay) {
  position: relative;
}

body {
  --header-height: 5rem;
  --header-height-transition: all 150ms ease-out;
}

body[data-scroll-y="0"] {
  --header-height: clamp(7rem, 5.333rem + 5.333vw, 10rem);
}

header#pageheader {
  height: 0;
  overflow: visible;
}

#Hero .em-slider {
  height: 100vh;
}
#Hero .em-slider .em-slider-slides {
  height: 100%;
}
#Hero .em-slider .em-slider-slides .em-slide {
  height: 100%;
}
#Hero .em-slider .em-slider-slides .em-slide .wp-block-cover {
  height: 100%;
}

/**
* MISC 
*/
h1, h2, h3, h4, h5, h6, p {
  -webkit-hyphens: auto;
          hyphens: auto;
  hyphenate-limit-chars: 10 4 4;
}

.svh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100svw;
  height: 100svh;
  background: green;
  z-index: 100;
}

.nobr {
  white-space: nowrap;
  -webkit-hyphens: none;
          hyphens: none;
}

.z10 {
  z-index: 10;
}

.z9 {
  z-index: 9;
}

/**
* TILE-STAR
*/
.tile-star.wp-block-group {
  --dur: 800ms;
}
.tile-star.wp-block-group > .wp-block-columns {
  transition: all calc(var(--dur) / 2) ease calc(var(--dur) * 0);
}
.tile-star.wp-block-group > .wp-block-columns > .wp-block-column {
  animation-duration: calc(var(--dur) * 2);
  animation-fill-mode: forwards;
  animation-delay: calc(var(--dur) * 0);
}
.tile-star.wp-block-group > .wp-block-image {
  position: absolute;
  left: 25%;
  top: 25%;
  width: 50%;
  height: auto;
  aspect-ratio: 1;
  scale: 0.5;
  opacity: 0;
  animation-duration: calc(var(--dur) * 2);
  animation-fill-mode: forwards;
  animation-delay: calc(var(--dur) * 1);
}
.tile-star.wp-block-group > .wp-block-image img {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}
.tile-star.wp-block-group.is-inview > .wp-block-columns {
  scale: 1;
  gap: 0 !important;
}
.tile-star.wp-block-group.is-inview > .wp-block-columns > .wp-block-column:nth-child(1) {
  animation-name: tilestar_tile1;
  animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
  z-index: 1;
}
.tile-star.wp-block-group.is-inview > .wp-block-columns > .wp-block-column:nth-child(2) {
  animation-name: tilestar_tile2;
  animation-timing-function: cubic-bezier(0.35, 0, 0.35, 1);
  z-index: 3;
}
.tile-star.wp-block-group.is-inview > .wp-block-columns > .wp-block-column:nth-child(3) {
  animation-name: tilestar_tile3;
  animation-timing-function: cubic-bezier(0.2, 0, 0.2, 1);
  z-index: 2;
}
.tile-star.wp-block-group.is-inview > .wp-block-columns > .wp-block-column:nth-child(4) {
  animation-name: tilestar_tile4;
  animation-timing-function: cubic-bezier(0.05, 0, 0.05, 1);
  z-index: 4;
}
.tile-star.wp-block-group.is-inview > .wp-block-image {
  animation-name: tilestar_img;
}
@keyframes tilestar_tile1 {
  0% {
    transform: translate(0%, 0%);
  }
  5% {
    transform: translate(-10%, -10%);
  }
  35% {
    transform: translate(50%, 50%);
  }
  50% {
    transform: translate(50%, 50%);
  }
  70% {
    transform: translate(50%, 50%) rotate(90deg);
  }
  100% {
    transform: translate(50%, 50%) rotate(90deg);
    border-radius: 0;
  }
}
@keyframes tilestar_tile2 {
  0% {
    transform: translate(0%, 0%);
  }
  10% {
    transform: translate(10%, -10%);
  }
  35% {
    transform: translate(-50%, 50%);
  }
  60% {
    transform: translate(-50%, 50%);
  }
  80% {
    transform: translate(-50%, 50%) rotate(67.5deg);
  }
  100% {
    transform: translate(-50%, 50%) rotate(67.5deg);
    border-radius: 0;
  }
}
@keyframes tilestar_tile3 {
  0% {
    transform: translate(0%, 0%);
  }
  15% {
    transform: translate(-10%, 10%);
  }
  35% {
    transform: translate(50%, -50%);
  }
  70% {
    transform: translate(50%, -50%);
  }
  90% {
    transform: translate(50%, -50%) rotate(45deg);
  }
  100% {
    transform: translate(50%, -50%) rotate(45deg);
    border-radius: 0;
  }
}
@keyframes tilestar_tile4 {
  0% {
    transform: translate(0%, 0%);
  }
  20% {
    transform: translate(10%, 10%);
  }
  35% {
    transform: translate(-50%, -50%);
  }
  80% {
    transform: translate(-50%, -50%);
  }
  100% {
    transform: translate(-50%, -50%) rotate(22.5deg);
    border-radius: 0;
  }
}
@keyframes tilestar_img {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(0);
    opacity: 0;
  }
  80% {
    transform: scale(1.2);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/**
* FOOTER NAV
*/
footer > div .nav-columns .wp-block-column {
  width: auto;
  flex-basis: auto !important;
}
footer > div .nav-columns .wp-block-column .wp-block-navigation ul li a {
  white-space: nowrap;
}

/**
* STICKY CONTACT
*/
.sticky-contact {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 8;
}
.sticky-contact .wp-block-buttons .wp-block-button .wp-block-button__link {
  text-align: center;
}
.sticky-contact .wp-block-buttons .wp-block-button .wp-block-button__link .icon {
  margin: 0;
}

/**
* CTA 
*/
:root {
  --cta-space: 30vh;
}

.cta-above:after {
  content: "";
  display: block;
  height: calc(var(--cta-space) * 1);
}

.cta {
  position: absolute;
  left: 50%;
  transform: translate(-50%, calc(var(--cta-space) * -1));
  z-index: 10;
}

@media screen and (max-width: 575px) {
  .netzwerk-photo {
    aspect-ratio: 0.6;
  }
}

@media screen and (max-width: 575px) {
  .cover-compass img {
    -o-object-position: 60% 60% !important;
       object-position: 60% 60% !important;
  }
}

@media screen and (max-width: 575px) {
  .inline-menu {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
}
.inline-menu * {
  line-height: 1;
}

.single-hero-cover > img {
  width: 150vw !important;
  left: -15vw !important;
  top: -7vw !important;
  height: auto !important;
  -o-object-position: 0% 0% !important;
     object-position: 0% 0% !important;
}
@media screen and (max-width: 575px) {
  .single-hero-cover > img {
    width: 200vw !important;
    left: -35vw !important;
    top: 0vw !important;
  }
}

textarea {
  border: none !important;
  border-radius: 2px;
}