/* Inner Styles */

/* ///////////////////// */

/* -------------- */
/* SETUP */
/* DESKTOP */
/* TABLET */
/* MOBILE */
/* MINI-MOBILE */
/* SPECIAL BREAKPOINTS */
/* -------------- */



/* DESKTOP //////////////////////////////////////////////////////////////// */


/*
-----------------------------------------------------------------------------

01. Inner Content

-----------------------------------------------------------------------------
*/


/* LAYOUT ELEMENTS *******************************************************************************/



/***** Grid items (large square box design) */

.grid-item.square .box-caption {
  position: absolute;
  width: 100%;
  top: 100%;
  left: 0;
  padding: 0 1em;
}

.grid-item.square .overlay.onhover {
  visibility: hidden;
}
.grid-item.square:hover     .overlay.onhover,
.grid-item.square.mouseover .overlay.onhover {
  visibility: visible;
}

.grid-item.square .box-caption .title {
  margin-top: 0.5em;
  margin-bottom: 0;
}

/***** Hide overlay mobile triggers */

.grid-item.mobile-overlay .mobile-triggers,
.grid-item.mobile-overlay .overlay .close-box {
  display: none;
}


/*** Sidebar  */
.sidebar__container .sidebar {
  position: absolute;
  right: 0;
  top: 0;
  width: calc( var(--square-size) * 5 );
  height: 100%;
  z-index: 20;
  padding: 0;
  /* overflow: hidden; */
  transform: translate(100%, 0%);
  transition: transform 250ms ease-in-out;
}

.sidebar__wrapper {
  position: relative;
  background-color: var(--wohntip-orange);
  padding: 4em 3em;
  width: calc( var(--square-size) * 5 );
}

.sidebar__inner {
  opacity: 0;
  transition: opacity 250ms ease-out;
}

.sidebar:hover {
  cursor: pointer;
}

.sidebar article {
  display: none;
}

.sidebar__container #sidebar--trigger {
  position: absolute;
  z-index: 30;
  content: '';
  width: var(--square-size);
  height: var(--square-size);
  top: 0;
  right: 0;
  background-color: var(--wohntip-orange);
}
.sidebar__container.open #sidebar--trigger {
  transition: 0.4s ease background-color;
  background-color: rgba(234,118,0,0.5);
}

.sidebar__container #sidebar--trigger:hover {
  cursor: pointer;
}

.sidebar__container #sidebar--trigger::after {
  position: absolute;
  font-family: 'Wohntip Icons V2';
  content: '\0042';
  color: #fff;
  left: 50%;
  top: 50%;
  transform: translate(-54%, -50%); /* optical correction */
  font-size: 3em;
}

/* ––– open state */

.sidebar__container.open .sidebar .sidebar__inner{
  opacity: 1;
  transition: opacity 250ms ease-out 150ms;
}

.sidebar__container.open .sidebar  {
  width: calc( var(--square-size) * 5 );
  height: 100%;
  z-index: 20;
  /* padding: 4em 3em; */
  overflow-y: scroll;
  -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
  scrollbar-width: none;  /* Hide scrollbar for Firefox */
  transform: translate(0%, 0%);
  transition: transform 250ms ease-in-out;

}
.sidebar__container.open .sidebar:hover {
  cursor: auto;
}

.sidebar__container.open .sidebar::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome, Safari and Opera */
}

.sidebar__container.open .sidebar article {
  display: block;
}

.sidebar__container.open #sidebar--trigger::after {
  content: '\0045';
  font-size: 2.5em;
  font-weight: bold;
}


/* customizing form styles for newsletter sign-up */
.sidebar .form-wrap.newsletter input[type="email"] {
  border: none;
  border-bottom: 0.0625em solid #fff;
  padding: 0.625em 0em 0.625em 0em;
  text-align: left;
}
.sidebar .form-wrap.newsletter input.has-error {
  padding-left: 0.625em;
}

/***** Slider Lightbox */

.lightbox-container {
  display: none;
  position: fixed;
  background: rgba(50,49,49,0.95);
  height: 100%; /* changed by js */
  z-index: 500;
  top: 0; left: 0; /* changed by js */
}
.lightbox-container.visible {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;

  -webkit-animation-name: fadein;

  animation-name: fadein;
  -webkit-animation-duration: 0.2s;
  animation-duration: 0.2s;
  -webkit-animation-timing-function: ease-out;
  animation-timing-function: ease-out;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}
.lightbox-container.invisible {
  display: flex;
  align-items: center;
  justify-content: center;

  -webkit-animation-name: fadeout;

  animation-name: fadeout;
  -webkit-animation-duration: 0.2s;
  animation-duration: 0.2s;
  -webkit-animation-timing-function: ease-out;
  animation-timing-function: ease-out;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}
.lightbox-trigger--slider {
  cursor: zoom-in;
}

.lightbox-container .close-trigger {
  font-family: 'Wohntip Icons V2';
  width: var(--square-size);
  height: var(--square-size);
  position: absolute;
  /* top: 2.3rem; */
  top: 0;
  right: 0.75rem;
  font-size: 2.6em;
  color: #fff;
  line-height: 2.25em;
  text-align: center;
  cursor: pointer;
  z-index: 105;
}


/***** Slider indicator Bullets */

.grid-item.large-box .bullet-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
}

.grid-item.large-box .bullet-wrap span {
  display: inline-block;
  width: 7px; height: 7px;
  background: #fff;
  margin: 15px 5px;
  opacity: 0.8;
}


/***** Link wrap with nested triggers */
.grid-item.large-box .link-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
  text-align: center;
  width: 100%; height: 100%;
}
.grid-item.large-box .link-wrap * {
  display: inline-block;
  padding: 1em 0.5em;
  color: #fff;
  text-decoration: underline;
}

/***** Order Lightbox */

.lightbox-container .order-wrapper {
  position: relative;
  padding: 4em 5em;
  background: var(--wohntip-orange);
  color: #fff;
  max-width: 42rem;
  max-height: 42rem;
  height: 100%;
  display: flex;
  align-items: center;
}

.lightbox-container .order-wrapper .close-trigger {
  top: 0.25rem;
}

.lightbox-trigger--order {
  cursor: pointer;
}


/***** Campaign Popup */
.qr-campaign-popup {
  display: none;
}

body.qr-campaign {
  overflow: hidden;
}

body.qr-campaign #page {
  display: none;
}

body.qr-campaign .qr-campaign-popup {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  background: #fff;
  width: 100vw; 
  height: 100%;
  top: 0; 
  left: 0;
  z-index: 10000;
}

body.qr-campaign .qr-campaign-popup .popup-wrap {
  display: block;
  position: relative;
  border: 1px solid var(--wohntip-orange);
  width: min(100%, 37rem);
  max-height: 100%;
  overflow-y: scroll;
}

body.qr-campaign .qr-campaign-popup .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  color: var(--wohntip-orange);
  padding: 4rem 3rem;
  font-size: 3em;
  width: 100%;
  height: 6rem;
  background: #fff;
}
body.qr-campaign .qr-campaign-popup .popup-header .logo {
  width: 7.5rem;
}
body.qr-campaign .qr-campaign-popup .popup-header .logo svg {
  transform: translateY(-2rem);
}
body.qr-campaign .qr-campaign-popup .popup-header .close-trigger {
  position: relative;
  display: block;
  cursor: pointer;
  color: var(--wohntip-orange);
}

body.qr-campaign .qr-campaign-popup .popup-content {
  position: relative;
  padding: 2rem 4rem 1rem 4rem;
  background: var(--wohntip-orange);
  color: #fff;
  height: 100%;
  width: 100%;
}
body.qr-campaign .qr-campaign-popup .popup-content h2 {
  font-size: 3em;
}
body.qr-campaign .qr-campaign-popup .popup-content p {
  font-size: 1.5em;
}
body.qr-campaign .qr-campaign-popup .popup-content video {
  width: 100%;
  height: auto;
  min-height: 5rem;
  margin-top: -2rem;
}

body.qr-campaign #sale-promo-video,
body.qr-campaign #sale-promo-gif {
  display: none;
}


/***** News Banner */

.news-banner-slider {
  position: fixed;
  display: block;
  z-index: 1000;
  background: var(--wohntip-orange);
  width: 100%;
  max-width: 1999px;
  height: 3rem;
  overflow: hidden;
}

.news-banner-slider .swiper-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translate3d(0, 0, 0);
  transition-timing-function: linear;
}

.news-banner-slider .swiper-slide {
  width: auto;
  /* optical correction to center text between icons */
  padding: 0 3rem 0 6rem;
  text-align: center;
  /* fadeIn to hide loading glitches */
  opacity: 0;
  -webkit-animation-name: fadein;
          animation-name: fadein;
  -webkit-animation-delay: 0.2s;
          animation-delay: 0.2s;
  -webkit-animation-duration: 0.4s;
          animation-duration: 0.4s;
  -webkit-animation-timing-function: ease-out;
          animation-timing-function: ease-out;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards;
}

.news-banner-slider .swiper-slide .news-message {
  position: relative;
  display: inline-block;
  width: auto;
  height: inherit;
  line-height: 2em;
  color: #fff;
  font-size: 1.4rem;
}

.news-banner-slider .swiper-slide .news-message--icon {
  display: block;
  position: absolute;
  top: 0.7rem;
  left: 0;
  width: 3rem;
  color: #fff;
}

.news-banner-slider .swiper-slide .news-message--icon::before {
  font-family: 'Wohntip Icons V2';
  content: '\0041';
  height: inherit;
  font-size: 2.6rem;
}




/* OUTLET *******************************************************************************/
.outlet .grid-item.large-box .lightbox-trigger--order {
  position: absolute;
  display: block;
  padding: 1em;
  bottom: 1.5em; left: 0;
  width: 100%;
  text-align: center;
  color: #fff;
  text-decoration: underline;
}





/* POSTS *******************************************************************************/

/***** Post grid */

.post-grid .centered-image-wrap {
  height: 15.625em;
}

/* SINGLE POST *******************************************************************************/

/***** Layout */

.layout-wrap [class*="block--"] {
  margin: 3.125em 0;
}

/* Image */

.layout-wrap .block--single-image img {
  min-width: 100%;
}

/* GENERAL FORM STYLES *******************************************************************************/

.form-wrap {
  margin-top: 2em;
}
.form-wrap .grid-wrap .box {
  padding: 0.625em;
}

.form-wrap .grid-wrap .field-wrap {
  width: 50%;
}

.form-wrap .grid-wrap .field-wrap.email,
.form-wrap .grid-wrap .field-wrap.submit-wrap {
  width: 100%;
}

/***** Labels */

.form-wrap span.label {
  margin-bottom: 0.5em;
  display: inline-block;
  font-size: 0.75em;
}

/***** Input fields  */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  border: 0.0625em solid #fff;
  padding: 0.85em;
  border-radius: 0;
  margin-bottom: 0;
  background: none;
  color: #fff !important;
  text-align: center;
  box-shadow: none;
  outline: none;
}

/* reset some borders */
.form-wrap form.untouched .grid-wrap .field-wrap:nth-child(odd) input[type="text"],
.form-wrap form.untouched .grid-wrap .field-wrap:nth-child(even) input[type="text"] {
  border-bottom: none;
}
.form-wrap .grid-wrap .field-wrap:nth-child(even) input[type="text"] {
  border-left: none;
}


.search-form input[type="search"] {
  -moz-appearance: none;/* older firefox */
  -webkit-appearance: none; /* safari, chrome, edge and ie mobile */
  appearance: none; /* rest */
  border-radius: 0.1875em;
  margin-bottom: 0;
  background: #f4f4f4;
}

input, select, textarea {
  color: #000 !important;
  width: 100%;
  box-shadow: none;
  outline: none;
}

textarea {
  background: #f4f4f4;
  padding: 0.625em;
  line-height: 1.5625em;
  max-height: 20em;
  border: 0.0625em solid black;
  border-radius: 0;
  margin: 0em;
}

textarea:focus, input:focus,
textarea:active, input:active {
  color: #fff;
}

::-webkit-input-placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: rgba(255,255,255,0.75);
  opacity: 1; /* Firefox */
}

::-moz-placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: rgba(255,255,255,0.75);
  opacity: 1; /* Firefox */
}

:-ms-input-placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: rgba(255,255,255,0.75);
  opacity: 1; /* Firefox */
}

::-ms-input-placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: rgba(255,255,255,0.75);
  opacity: 1; /* Firefox */
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
  color: rgba(255,255,255,0.75);
  opacity: 1; /* Firefox */
}
:-ms-input-placeholder { /* Internet Explorer 10-11 */
  color: rgba(255,255,255,0.75);
}
::-ms-input-placeholder { /* Microsoft Edge */
  color: rgba(255,255,255,0.75);
}

/***** Submit button */

.submit-wrap {
  position: relative;
  margin-top: 1.8em;
}
.submit-wrap::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: rgba(255,255,255,0.25);
  transition: all .5s ease;
  pointer-events: none;
}

.submit-wrap:hover::after {
  width: 100%;
}

input[type="submit"] {
  display: block;
  background: none;
  color: #fff !important;
  border-radius: 0px;
  padding: 0.85em;
  border: 0.0625em solid #fff;
  cursor: pointer;
  width: 100%;
}

/***** error handling */

.form-wrap .error-msg {
  color: #1a1a1a;
  font-size: 0.75em;
}

.form-wrap input.has-error {
  background: rgba(200,0,20, 0.35);
}

/***** success handling */

form.submitted {
  display: none !important;
}


/* PASSWORD FORM STYLES *******************************************************************************/

.post-password-form p:nth-of-type(1) {
  display: none;
}

span.custom-password-message {
  display: block;
  margin: auto;
  max-width: 10em;
  padding: 0.125em;
  border-radius: 0.25em;
  background: rgba(255, 255, 255, 0.17);
  color: #585758;
}

.post-password-form label {
  font-size: 0em;
}
.post-password-form label input {
  font-size: 1.875em;
  padding: 0.25em 0.9375em;
  text-align: center;
}

.post-password-required input[type="submit"] {
  position: relative;
  float: unset;
  margin: 1.5625em auto;
  display: block;
}


/* IMPRINT + DATA PRIVACY *******************************************************************************/

.laws .box:nth-child(odd) {
  padding-right: 1.5625em;
}

.laws .box:nth-child(even) {
  padding-left: 1.5625em;
}


.laws a,
.laws a:hover,
.laws a.active-link {
  color: var(--wohntip-orange);
  text-decoration: none;
  word-break: break-all;
}

.laws #oho-table p {
  margin: 0;
}

.laws #impressum-oho-logo {
  width: 1.25em;
  margin-right: 1.25em;
  margin-top: 0.3125em;
}

/* 404 *******************************************************************************/

.error-404 {
  text-align: center;
}

.error404 h1 {
  margin: 1em 0;
}


/* TABLET //////////////////////////////////////////////////////////////// */
/*
01. Inner Content
*/

@media only screen and (max-width: 1600px) {

  /*
  -----------------------------------------------------------------------------

  01. Inner Content

  -----------------------------------------------------------------------------
  */


  /* Sidebar */
  /* ––– open state */
  .sidebar.open {
    width: 70%;
  }


  /* SCHREINEREI – reorder grid items */
  #mastergrid_content.schreinerei .grid-item.square.img7 { grid-area: img6 !important; }
  #mastergrid_content.schreinerei .grid-item.square.img9 { grid-area: img7 !important; }
  #mastergrid_content.schreinerei .grid-item.square.img6 { grid-area: img9 !important; }



}


/* MOBILE //////////////////////////////////////////////////////////////// */


/* Special early breakpoint **************************************************************************/
@media only screen and (max-width: 1000px) {


  /*
  -----------------------------------------------------------------------------

  04. Inner Content

  -----------------------------------------------------------------------------
  */

  /***** Lightbox */

  .lightbox-container {
    height: 100vh;
    left: 0;
    width: 100vw;
  }

  .lightbox-container .close-trigger {
    right: 0;
    font-size: 2.25em;
    line-height: 2.5;
  }


  /***** Order Lightbox */
  .lightbox-container--order.visible {
    display: block;
  }

  .lightbox-container--order .order-wrapper {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: scroll;
  }
  body.news-banner-active .lightbox-container--order .order-wrapper {
    border-top: 1px solid #fff;
  }



}


/*
01. Inner Content
*/

@media only screen and (max-width: 800px) {


  /*
  -----------------------------------------------------------------------------

  04. Inner Content

  -----------------------------------------------------------------------------
  */


  .lightbox-container .order-wrapper {
    padding: 4em 2em;
  }


  /* GENERAL FORM STYLES *******************************************************************************/
  /* form */
  .form-wrap .grid-wrap .field-wrap {
    width: 100%;
  }

  .form-wrap .grid-wrap .field-wrap:nth-child(even) input[type="text"] {
    border-left: 0.0625em solid #fff;
  }


  /*  IMPRINT + DATA PRIVACY *******************************************************************************/

  .laws .box:nth-child(odd),
  .laws .box:nth-child(even) {
    padding: 0;
  }

}

/* MINI-MOBILE //////////////////////////////////////////////////////////////// */
/*
01. Inner Content
*/

@media only screen and (max-width: 550px) {

  /*
  -----------------------------------------------------------------------------

  04. Inner Content

  -----------------------------------------------------------------------------
  */

  /* Sidebar */

  .sidebar__container .sidebar {
    position: fixed;
    height: calc( 100vh - var(--square-size) );
    top: var(--square-size);
    padding-bottom: var(--square-size);
    overflow: scroll;
  }
  
  body.news-banner-active .sidebar__container .sidebar {
    height: calc( 100vh - var(--square-size) - 3rem );
    top: calc( 3rem + var(--square-size) );
  }

  .sidebar .sidebar__wrapper {
    width: 100%;
    padding-left: var(--square-size);
    padding-right: var(--square-size);
  }


  /* ––– open state */
  .sidebar__container.open .sidebar {
    width: 100vw;
  }

  .sidebar__container.open #sidebar--trigger {
    position: fixed;
    top: var(--square-size);
  }  
  body.news-banner-active .sidebar__container.open #sidebar--trigger {
    top: calc( 3rem + var(--square-size) );
  }



  /* Lightbox Container */
  .lightbox-container .close-trigger {
    right: 0;
    font-size: 2em;
    line-height: 3em;
  }

  /* Campaign Popup */
  body.qr-campaign .qr-campaign-popup {
    background: var(--wohntip-orange);
  }
  body.qr-campaign .qr-campaign-popup .popup-wrap {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
  }

}

/* SPECIAL BREAKPOINTS //////////////////////////////////////////////////////// */
