/*
 * Massage-Tische Helix layout, phase 1.
 * Global structure only; no hero background image is defined yet.
 */

body.site {
  margin: 0;
  background: linear-gradient(to bottom, #809d7b 0%, #72936c 48%, #3e4f3b 100%);
  color: #344130;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.35;
}

body.layout-boxed .body-wrapper {
  width: min(100%, 1190px);
  max-width: 1190px;
  margin: 0 auto;
  background: #d0dccb;
  box-shadow: 4px 4px 10px 5px rgba(0, 0, 0, 0.79);
}

body.layout-boxed .body-innerwrapper {
  max-width: none;
  box-shadow: none;
}

.body-innerwrapper,
#sp-main,
#sp-main-body {
  background: #d0dccb;
}

.container,
.sppb-row-container {
  max-width: 1190px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  color: #596f52;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 32px; }
h2 { font-size: 26px; }
h3 { font-size: 19px; }
h4 { font-size: 16px; }
h5 { font-size: 13px; }
h6 { font-size: 11px; }

/* Layout Builder row "Hero"; intentionally no background image yet. */
#sp-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 213px;
  background-color: #809d7b;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

#sp-hero > .container,
#sp-hero > .container > .container-inner,
#sp-hero .row,
#sp-hero .sp-column {
  min-height: 213px;
}

#sp-hero .logo-image,
#sp-hero .logo img {
  width: 396px;
  max-width: 100%;
  height: auto;
}

#sp-hero .search {
  width: 297px;
  max-width: 100%;
  margin-left: auto;
}

#sp-hero .search input[type="search"],
#sp-hero .search input[type="text"] {
  width: 100%;
}

#sp-hero-content,
#sp-hero-content > .sp-column {
  position: relative;
  width: 100%;
  min-height: 213px;
}

#sp-hero-content > .sp-column > .sp-module {
  margin: 0;
}

#sp-hero-content .hero-visuals,
#sp-hero-content .hero-visuals .sp-module-content {
  position: absolute;
  inset: 0;
}

.hero-slides,
.hero-slides img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 213px;
}

.hero-slides img {
  object-fit: cover;
  opacity: 0;
  animation: hero-fade 49s linear infinite;
}

.hero-slides img:nth-child(1) { animation-delay: 0s; }
.hero-slides img:nth-child(2) { animation-delay: 7s; }
.hero-slides img:nth-child(3) { animation-delay: 14s; }
.hero-slides img:nth-child(4) { animation-delay: 21s; }
.hero-slides img:nth-child(5) { animation-delay: 28s; }
.hero-slides img:nth-child(6) { animation-delay: 35s; }
.hero-slides img:nth-child(7) { animation-delay: 42s; }

@keyframes hero-fade {
  0%, 100% { opacity: 1; }
/*  0%, 1000% { opacity: 0; } */
}

.hero-brand {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 396px;
  height: 187px;
}

.hero-brand img {
  display: block;
  width: 396px;
  max-width: 100%;
  height: auto;
}

#sp-hero-content .hero-search {
  position: absolute;
  top: 9px;
  right: 33px;
  z-index: 3;
  width: 297px;
  height: 30px;
  margin: 0;
}

#sp-hero-content .hero-search .sp-module-content,
#sp-hero-content .hero-search .mod-finder,
#sp-hero-content .hero-search .form-control {
  width: 100%;
  height: 30px;
}

#sp-hero-content .hero-search .mod-finder {
  position: relative;
  box-sizing: border-box;
  padding: 5px;
}

#sp-hero-content .hero-search .mod-finder::after {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 24px;
  height: 30px;
  color: #42523d;
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-size: 12px;
  font-weight: 900;
  line-height: 30px;
  text-align: center;
  pointer-events: none;
}

#sp-hero-content .hero-search .form-control {
  padding: 4px 29px 4px 6px;
  border: 1px solid #6c8764;
  border-radius: 4px;
  background: linear-gradient(to bottom, #ccd6e0 0%, #eff2f5 40%, #f2f5f7 50%, #f2f5f7 100%);
  color: #384634;
  font: 13px/20px Verdana, Geneva, Arial, Helvetica, sans-serif;
}

#sp-header {
  height: auto;
  min-height: 0;
  background: #8aa182;
  box-shadow: none;
}

#sp-header .container-inner,
#sp-header .row,
#sp-menu > .sp-column {
  min-height: 0;
}

#sp-header {
  padding: 3px 3px 0;
}

#sp-header .sp-megamenu-wrapper {
  justify-content: flex-start;
}

#sp-header .row {
  --bs-gutter-x: 0;
  margin-right: 0;
  margin-left: 0;
}

#sp-header .sp-megamenu-parent {
  float: none;
  margin: 0;
}

.sp-megamenu-parent > li:first-child {
  margin-left: 1px;
}

.sp-megamenu-parent > li > a,
.sp-megamenu-parent > li > span {
  min-height: 25px;
  padding: 0 22px;
  border-radius: 2px 2px 0 0;
  color: #495b43;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
}

.sp-megamenu-parent > li:last-child > a { padding: 0 22px; }

.sp-megamenu-parent > li:not(:first-child) {
  margin-left: 2px;
}

.sp-megamenu-parent > li:hover > a,
.sp-megamenu-parent > li:hover > span,
.sp-megamenu-parent > li.active > a,
.sp-megamenu-parent > li.active > span,
.sp-megamenu-parent > li > a:focus,
.sp-megamenu-parent > li > span:focus {
  background: #596f52;
  color: #d0dccb;
}

.sp-megamenu-parent .sp-dropdown .sp-dropdown-inner {
  background: #8aa182;
  box-shadow: none;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > span {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 2px;
  color: #070907;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 12px;
  line-height: 24px;
}

.sp-megamenu-parent .sp-dropdown li.sp-menu-item:hover > a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item:hover > span,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > a,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item.active > span,
.sp-megamenu-parent .sp-dropdown li.sp-menu-item > a:focus {
  background: #596f52;
  color: #e6ebe5;
}

#sp-main-body {
  padding: 10px 0 0;
}

#sp-main-body > .container > .container-inner > .row {
  flex-wrap: nowrap;
}

#sp-main-body #sp-left {
  flex: 0 0 230px;
  width: 230px;
  max-width: 230px;
  padding-right: 0;
  padding-left: 0;
}

#sp-main-body #sp-component {
  flex: 1 1 auto;
  width: auto;
  max-width: none;
  min-width: 0;
  padding-right: 12px;
  padding-left: 12px;
}

#sp-left .sp-module {
  margin: 15px;
  padding: 0;
}

#sp-left .sp-module:first-child {
  margin-top: 15px;
}

#sp-left .sp-module .sp-module-title {
  margin: 0;
  padding: 6px 5px;
  border: 0;
  font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.2;
}

#sp-left .sp-module .sp-module-content {
  padding: 5px;
}

#sp-left .sp-module,
#sp-right .sp-module,
#sp-component .article,
#sp-component .article-list .article {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#sp-footer {
  padding: 15px;
  background: #8aa182;
  color: #eef2ed;
  text-align: center;
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1.35;
}

#sp-footer a {
  color: #e3e9e2;
}

#sp-footer a:hover,
#sp-footer a:focus {
  color: #000;
}

#sp-footer .sp-column,
#sp-footer .sp-module {
  margin: 0;
  text-align: center;
}

.offcanvas-menu {
  background: #8aa182;
  color: #495b43;
}

.offcanvas-menu .offcanvas-inner ul.menu > li > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > span,
.offcanvas-menu .offcanvas-inner ul.menu > li > .nav-header {
  color: #495b43;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.offcanvas-menu .offcanvas-inner ul.menu > li.active > a,
.offcanvas-menu .offcanvas-inner ul.menu > li > a:hover,
.offcanvas-menu .offcanvas-inner ul.menu > li > a:focus {
  background: #596f52;
  color: #e6ebe5;
}

@media (max-width: 1190px) {
  body.layout-boxed .body-wrapper {
    width: 100%;
  }

  #sp-hero,
  #sp-hero > .container,
  #sp-hero > .container > .container-inner,
  #sp-hero .row,
  #sp-hero .sp-column,
  #sp-hero-content,
  #sp-hero-content > .sp-column,
  .hero-slides,
  .hero-slides img {
    min-height: clamp(125px, 17.8992vw, 213px);
    height: clamp(125px, 17.8992vw, 213px);
  }

  .hero-brand,
  .hero-brand img {
    width: min(396px, 33.2773vw);
  }

  .hero-brand {
    height: auto;
  }

  #sp-hero-content .hero-search {
    right: clamp(11px, 2.7731vw, 33px);
  }
}

@media (max-width: 991.98px) {
  #sp-main-body > .container > .container-inner > .row {
    flex-wrap: wrap;
  }

  #sp-main-body #sp-left,
  #sp-main-body #sp-component {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  #sp-main-body #sp-left {
    margin-bottom: 20px;
  }
}

@media (max-width: 767.98px) {
  #sp-hero-content .hero-search {
    top: 6px;
    right: 8px;
    width: min(240px, 48vw);
  }
}

@media (max-width: 479.98px) {
  h1 { font-size: 27px; }
  h2 { font-size: 23px; }
}

@media (min-width: 992px) {
  #sp-header > .container {
    max-width: none;
    padding-right: 0;
    padding-left: 0;
  }

  #sp-header .container-inner,
  #sp-header .row,
  #sp-menu > .sp-column {
    min-height: 25px;
    height: 25px;
  }

  #sp-header #offcanvas-toggler {
    height: 25px;
    line-height: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides img {
    display: none;
    animation: none;
  }

  .hero-slides img:first-child {
    display: block;
    opacity: 1;
  }
}
