/*
Theme Name:     ensch
Version:        1.0
*/
*:not(.is-position-sticky, .wp-lightbox-overlay, .wp-block-navigation__responsive-container) {
  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);
}
@media screen and (orientation: landscape) and (max-width: 1000px) {
  body[data-scroll-y="0"] {
    --header-height: 5rem;
  }
}

@media screen and (orientation: landscape) and (max-height: 500px) {
  body {
    --wp--preset--font-size--hero: 30px !important;
  }
}
/**
* HEADER 
*/
/* NAV */
.wp-block-navigation__responsive-container.is-menu-open {
  padding: 2rem;
}
.wp-block-navigation__responsive-container.is-menu-open ul {
  width: 100%;
  gap: var(--wp--preset--font-size--large) !important;
}
.wp-block-navigation__responsive-container.is-menu-open ul li {
  width: 100%;
  display: flex;
  align-items: center !important;
  font-size: var(--wp--preset--font-size--large) !important;
}

/**
* HERO 
*/
.hero {
  z-index: 9;
}

.hero-slider {
  height: calc(100vh - var(--header-height, 0));
  height: calc(100svh - var(--header-height, 0));
  transition: var(--header-height-transition);
}
@media screen and (orientation: landscape) and (max-height: 500px) {
  .hero-slider .widthx3 {
    width: 200% !important;
  }
  .hero-slider .em-slide > .wp-block-group > .wp-block-columns > .wp-block-column:nth-child(2) > .wp-block-columns {
    margin: 0 auto !important;
  }
}
.hero-slider > .wp-block-group {
  height: 100%;
}
.hero-slider > .wp-block-group > .wp-block-group {
  justify-content: center;
}
.hero-slider > .wp-block-group .wp-block-columns {
  margin: 0 !important;
}
@media screen and (min-width: 576px) and (max-width: 992px) {
  .hero-slider { /*
height: calc( 75vh - 2rem );
height: calc( 75svh - 2rem );*/ }
}
@media screen and (max-width: 500px) {
  .hero-slider .wp-block-buttons {
    justify-content: flex-end;
  }
}

.em-slider-next:before,
.em-slider-prev:before {
  background-color: var(--wp--preset--color--scholteshellhellgrau) !important;
}

.em-slider-history {
  height: 75vh;
}

/**
* MISC 
*/
.winheight {
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));
}

@media screen and (max-width: 550px) {
  figure.slide-x-img {
    overflow-x: scroll;
  }
  figure.slide-x-img img {
    height: 50vh !important;
    width: 139vh !important;
    max-width: unset;
    -o-object-fit: cover;
       object-fit: cover;
  }
  .cover-wolf-scholtes {
    -o-object-position: 65% 50%;
       object-position: 65% 50%;
    height: 80%;
    top: 25%;
  }
}
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;
}

/**
* HOME AUSSTELLUNG COVER TILES
*/
.home-cover-ausstellung {
  --dur: 600ms;
  overflow: visible;
}

.home-cover-ausstellung-tiles {
  position: absolute;
  bottom: 0;
  left: -1.75rem;
}

/**
* CONTACT
*/
/* CONTACT-PHONE MockUp */
.beratungstermin-phone {
  --dur: 600ms;
  --deg: .15deg;
  --blr: 1px;
  animation-fill-mode: forwards;
  animation-duration: calc(var(--dur));
  transform-origin: 50% 90%;
}
.beratungstermin-phone.is-inview {
  animation-name: contact_phone_ring_strong;
}
.beratungstermin-phone .contact-button-phone,
.beratungstermin-phone .contact-button-mail,
.beratungstermin-phone .contact-button-wahtsapp {
  transition: all 300ms ease;
  scale: 1;
}
.beratungstermin-phone .contact-button-phone:hover,
.beratungstermin-phone .contact-button-mail:hover,
.beratungstermin-phone .contact-button-wahtsapp:hover {
  scale: 1.1;
}
@keyframes contact_phone_ring_strong {
  0% {
    transform: rotate(0deg);
    filter: blur(0);
  }
  10% {
    transform: rotate(calc(var(--deg) * -1));
    filter: blur(var(--blr));
  }
  20% {
    transform: rotate(calc(var(--deg) * 1));
    filter: blur(var(--blr));
  }
  30% {
    transform: rotate(calc(var(--deg) * -2));
    filter: blur(var(--blr));
  }
  40% {
    transform: rotate(calc(var(--deg) * 2));
    filter: blur(var(--blr));
  }
  50% {
    transform: rotate(calc(var(--deg) * -3));
    filter: blur(var(--blr));
  }
  60% {
    transform: rotate(calc(var(--deg) * 3));
    filter: blur(var(--blr));
  }
  70% {
    transform: rotate(calc(var(--deg) * -2));
    filter: blur(var(--blr));
  }
  80% {
    transform: rotate(calc(var(--deg) * 2));
    filter: blur(var(--blr));
  }
  90% {
    transform: rotate(calc(var(--deg) * -1));
    filter: blur(var(--blr));
  }
  100% {
    transform: rotate(0deg);
    filter: blur(0);
  }
}

/* VCARD ANIMATION */
.vcard-grid {
  --scale: .96;
  --scale: 1;
  --dur: 150ms;
}
.vcard-grid .vcard-tile-1 {
  filter: drop-shadow(0px 0px 15px rgba(0, 0, 0, 0));
  scale: var(--scale);
  transform-origin: bottom right;
  transition: all 300ms ease-out 200ms;
  transition-duration: var(--dur);
  z-index: 7;
}
.vcard-grid .vcard-tile-1 img {
  transition: all 300ms ease-out 0ms;
}
.vcard-grid .vcard-tile-1 img:hover {
  transform: scale(1.1) translate(-7%, -7%) rotate(2deg);
}
.vcard-grid .vcard-tile-2 {
  filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0));
  scale: var(--scale);
  transform-origin: bottom left;
  transition: all 300ms ease-out 300ms;
  transition-duration: var(--dur);
  z-index: 6;
}
.vcard-grid .vcard-tile-3 {
  filter: drop-shadow(0px 0px 20px rgba(0, 0, 0, 0));
  scale: var(--scale);
  transform-origin: top right;
  transition: all 300ms ease-out 400ms;
  transition-duration: var(--dur);
  z-index: 9;
}
.vcard-grid .vcard-tile-4 {
  z-index: 8;
}
.vcard-grid .vcard-tile-4 > * {
  position: absolute;
  right: -5%;
  bottom: 0;
  width: 200%;
  height: auto;
  scale: var(--scale);
  transform-origin: 42% 70%;
  transition: all 300ms ease-out 100ms;
  transition-duration: var(--dur);
  aspect-ratio: 1;
}
.vcard-grid.is-inview .vcard-tile-1 {
  scale: 1;
}
.vcard-grid.is-inview .vcard-tile-2 {
  scale: 1;
}
.vcard-grid.is-inview .vcard-tile-3 {
  scale: 1;
}
.vcard-grid.is-inview .vcard-tile-3 .wp-block-buttons {
  gap: 20px;
}
.vcard-grid.is-inview .vcard-tile-3 .wp-block-buttons .wp-block-button .wp-element-button {
  font-size: 35px;
}
.vcard-grid.is-inview .vcard-tile-4 > * {
  scale: 1;
}

/**
* 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;
}
.sticky-contact .wp-block-buttons .wp-block-button.sticky-phone-number .wp-block-button__link {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
  gap: 0.35em;
  max-width: 1em;
  overflow: hidden;
  text-overflow: clip;
  transition: all 600ms ease;
}
.sticky-contact .wp-block-buttons .wp-block-button.sticky-phone-number .wp-block-button__link:hover {
  max-width: 10em;
  transition: all 600ms ease;
}

/* Button lines */
.wp-block-buttons .wp-block-button.line-before .wp-block-button__link span {
  text-align: right;
  white-space: normal;
}
.wp-block-buttons .wp-block-button.line-after .wp-block-button__link span {
  text-align: left;
  white-space: normal;
}

/* MISC */
@media screen and (max-width: 575px) {
  .phone-row-1 {
    grid-row: 1;
  }
}