/**
MOBILE NAV
 */
.offcanvas .offcanvas-close {
  padding: 1rem 1rem;
}

#mobile-navigation-backdrop {
  position: fixed;
  inset: 0;
}

.display-none {
  display: none;
}

/**
TCS HERO
 */
@media screen and (min-width: 0px) {
  .cms-element-hero-teaser-img {
    aspect-ratio: var(--ratio-xs);
  }
}

@media screen and (min-width: 576px) {
  .cms-element-hero-teaser-img {
    aspect-ratio: var(--ratio-sm);
  }
}

@media screen and (min-width: 768px) {
  .cms-element-hero-teaser-img {
    aspect-ratio: var(--ratio-md);
  }
}

@media screen and (min-width: 1920px) {
  .cms-element-hero-teaser-img {
    aspect-ratio: var(--ratio-lg);
  }
}

@media screen and (min-width: 1920px) {
  .cms-element-hero-teaser-img {
    aspect-ratio: var(--ratio-xl);
  }
}

@media screen and (min-width: 1920px) {
  .cms-element-hero-teaser-img {
    aspect-ratio: var(--ratio-xxl);
  }
}

/* TCS HERO CUSTOM FIX */
@media (max-width: 767px) {
  .cms-element-hero-teaser {
    max-height: 700px;
  }

  .cms-element-hero-teaser-overlay {
    height: 100%;
  }

  .cms-element-hero-teaser-content {
    justify-content: flex-start;
  }
}

/**
  TCS BG-IMAGE TEXTBOX
 */
@media screen and (min-width: 0px) {
  .cms-element-banner-overlay-box-img {
    aspect-ratio: var(--ratio-xs);
  }
}

@media screen and (min-width: 576px) {
  .cms-element-banner-overlay-box-img {
    aspect-ratio: var(--ratio-sm);
  }
}

@media screen and (min-width: 768px) {
  .cms-element-banner-overlay-box-img {
    aspect-ratio: var(--ratio-md);
  }
}

@media screen and (min-width: 992px) {
  .cms-element-banner-overlay-box-img {
    aspect-ratio: var(--ratio-lg);
  }
}

@media screen and (min-width: 1200px) {
  .cms-element-banner-overlay-box-img {
    aspect-ratio: var(--ratio-xl);
  }
}

@media screen and (min-width: 1400px) {
  .cms-element-banner-overlay-box-img {
    aspect-ratio: var(--ratio-xxl);
  }
}

/**
  TCS BG-IMAGE TEXTBOX CUSTOMFIX
 */
.cms-bg-image-text-box-fix ul {
  margin-bottom: 1rem;
}

@media (max-width: 991px) {
  .cms-block-banner-overlay-box .cms-bg-image-text-box-fix.cms-block-container,
  .cms-block-banner-overlay-box .cms-bg-image-text-box-fix.cms-block-container > *,
  .cms-block-banner-overlay-box .cms-bg-image-text-box-fix.cms-block-container > * > *,
  .cms-block-banner-overlay-box .cms-bg-image-text-box-fix.cms-block-container > * > * > *,
  .cms-block-banner-overlay-box .cms-bg-image-text-box-fix.cms-block-container > * > * > * > * {
    height: unset;
  }

  .cms-bg-image-text-box-fix .justify-content-start,
  .cms-bg-image-text-box-fix .justify-content-center,
  .cms-bg-image-text-box-fix .justify-content-end {
    justify-content: unset;
  }

  .cms-bg-image-text-box-fix .align-items-center,
  .cms-bg-image-text-box-fix .align-items-end,
  .cms-bg-image-text-box-fix .align-items-start {
    align-items: unset;
  }
}

.remove-bottom-margin {
  margin-bottom: 0;
}

.cms-element-image-contain {
  object-fit: contain !important;
}

/**
  TCS-TEXT IMAGE CUSTOM FIX
 */
.tcs-text-image .cms-element-image .cms-image {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.tcs-text-image .cms-element-image .cms-image-container {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}

.tcs-text-image .quote-image {
  max-height: 60px;
  width: auto;
  height: auto;
}

.cms-text-image-block .cms-element-text p:last-child {
  margin-bottom: 0;
}
.cms-image-container-full-size {
  width: 100% !important;
  height: 100% !important;
  max-height: unset;
  max-width: unset;
}

.cms-element-image-cover {
  object-fit: cover !important;
  width: 100% !important;
  height: 100% !important;
  max-height: unset;
  max-width: unset;
}

/**
  TCS ICONS CARDS CUSTOM FIX
 */
.icon-card-card svg {
  color: var(--tcs-grey) !important;
  fill: var(--tcs-grey) !important;
}

.icon-card-card .img-wrapper svg {
  height: 100%;
  fill: var(--tcs-grey);
  color: var(--tcs-grey);
}

.icon-card-clean .img-wrapper svg {
  height: 100%;
  fill: var(--surface-foreground);
  color: var(--surface-foreground);
}

.cms-tcs-icon-center {
  justify-content: center;
}

@media (max-width: 1199px) {
  .cms-tcs-icon-center {
    --bs-gutter-y: calc(var(--bs-gutter-x) * .5) !important;
  }
}

@media (max-width: 575px) {
  .cms-tcs-icon-center {
    --bs-gutter-y: calc(var(--bs-gutter-x) * .25) !important;
  }
}

/**
TCS BRANDS CUSTOM FIX
 */
.cms-tcs-brands-section .cms-element-call-to-action__text {
  margin-bottom: 1rem;
}

.cms-tcs-brands-section .brand-item {
  display: flex;
  flex-direction: column;
}

@media (max-width: 35.98rem) {

  .cms-tcs-brands-section .btn {
    font-size: 0.7rem;
    padding: 0.6rem;
    width: auto;
  }

  .cms-tcs-brands-section .row > * {
    margin-top: calc(var(--bs-gutter-y) * 0.5);
  }
}

/**
TCS TEXT TEASER
 */
.tcs-text-teaser-texts {
  text-align: center;
}

/**
CMS SLIDER
 */

.cms-slider {
  position: relative;
  width: 100%;
  cursor: pointer;
}

.cms-slider-slider {
  width: calc(100% - 60px);
  overflow: hidden;
  margin: 0 30px;
}

.cms-slider-slider-track {
  display: grid;
  position: relative;
}

.cms-slider-item {
  opacity: 1;
  transition: opacity 0.5s ease;
}

.cms-slider-controls {
  position: absolute;
  inset: 0;
}

.cms-slider-controls .base-slider-controls-next {
  right: 0;
  border-radius: 0.1875rem;
}
.cms-slider-controls .base-slider-controls-prev {
  border-radius: 0.1875rem;
}
.cms-slider-controls .base-slider-controls-next svg,
.cms-slider-controls .base-slider-controls-prev svg {
  height: 100%;
  top: 0;
}

.slider-item-hidden {
  opacity: 0;
}

/**
CMS BRAND BAND
 */
.cms-slider-item.brand-band-item {
  padding: 0 25px;
  width: 264px;
}

.cms-slider-item.brand-band-item img {
  width: 214px;
  height: 107px;
  object-fit: cover;
}


/**
CMS QUOTES
 */
.cms-slider-item.quotes-item {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 0 25px;
  width: 50vw;
  @media (max-width: 1199px) {
    width: 70vw;
  }
  @media (max-width: 768px) {
    width: 85vw;
  }
}

/**
CMS CARDS SLIDEr
 */
.cms-slider-item.cards-slider-item {
  width: 336px;
  padding: 0 20px;
}

.cms-slider-item.cards-slider-item .image-slider-item {
  height: 100%;
  background: var(--surface-background) !important;
  color: var(--surface-foreground) !important;
}

.section-surface--default .slider-card-content-background {
  background: #ffffff;
}

/**
CMS IMAGE SLIDEr
 */
.cms-slider-item.image-slider-item {
  padding: 0 20px;
}
.cms-block.tcs-product-card-slider .image-slider-item {
  background: inherit;
}

/**
CMS HORIZONTAL CARD
 */


@media (max-width: 991px) {
  .cms-element-horizontal-card {
    margin-bottom: 2rem;
  }
  .cms-element-horizontal-card:last-child {
    margin-bottom: 0;
  }
}

/**
CMS VERTICAL CARDS
 */
.cms-element-teaser-card__content{
  margin-bottom: 0;
}
@media(max-width: 1199px) {
  .cms-element-vertical-card.col-sm-6:nth-child(1),
  .cms-element-vertical-card.col-sm-6:nth-child(2) {
    margin-bottom: 2rem;
  }
}
@media(max-width: 991px) {
  .cms-element-vertical-card.col-sm-6:nth-child(3) {
    margin-bottom: 0 !important;
  }
}

@media (max-width: 991px) {
  .cms-element-vertical-card {
    margin-bottom: 2rem;
  }
  .cms-element-vertical-card:last-child {
    margin-bottom: 0;
  }
}
.cms-element-teaser-card__paragraph p {
  margin-bottom: 0;
}
.cms-element-teaser-card__paragraph ul {
  margin-bottom: 0;
}
.cms-element-teaser-card__paragraph {
  margin-bottom: 2rem;
}
.text-left {
  text-align: left;
}
.cms-element-teaser-card__headline {
  width: 100%;
}

/**
CMS TEXT TEXT
 */
.text-image-text-text-content ul p {
  margin-bottom: 0
}

/**
ACCORDION ELEMENT
 */
.cms-block-tcs-accordeon ul,
.cms-block-tcs-accordeon li,
.cms-block-tcs-accordeon p {
  margin-bottom: 0;
}
.cms-block-tcs-accordeon__headline {
  color: var(--surface-foreground);
}
.cms-block-tcs-accordeon__description {
  color: var(--surface-foreground);
}
.cms-element-tcs-repeater__item {
  border-color: var(--surface-foreground) !important;
}
.cms-element-tcs-repeater__item-header-arrow-container svg {
  fill: var(--surface-foreground);
}

/**
GLOBAL
 */
.half-p-space p {
  margin-bottom: 1rem;
}

.cms-element-text a:not(.btn) {
  color: var(--surface-foreground);
}
.cms-element-text a:not(.btn):hover {
  color: var(--surface-foreground);
}
.cms-element-text a:not(.btn):focus {
  color: var(--surface-foreground);
}



/**
MOBILE AVIGATION
 */
.navigation-offcanvas-content {
  position: relative;
}
.navigation-offcanvas-content a {
  cursor: pointer;
}
.navigation-child {
  position: absolute;
  top: 0;
  width: calc(var(--bs-offcanvas-width) - 2rem);
  min-height: 100%;
  right: calc(100% + 1rem);
  transition: right 0.3s ease;
  background: white;
  display: none;
}
.navigation-child.open {
  right: 0;
  display: block;
}
.navigation-offcanvas-content.child-open {
  display: none;
}
.canvas-mobile-navigation-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.1);
  z-index: 1;
}
.offcanvas-header,
.offcanvas-body {
  position: relative;
  z-index: 2;
  background: white;
}
.navigation-offcanvas-link:focus {
  box-shadow: inset 0 0 0 0.125rem #edd38e, inset 0 0 0 0.25rem #ffffff;
}
button.nav-item {
  width: 100%;
}

/**
FULL IMAGE
 */
.cms-block-image-cover .cms-element-image {
  width: 100%;
}

.cms-block-image-cover .cms-element-alignment {
  width: 100%;
}

.cms-block-image-cover .cms-image-container {
  width: 100%;
  max-width: 100%;
}

.cms-block-image-cover .img-wrapper {
  display: block;
  width: 100%;
}

.cms-block-image-cover .cms-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: auto;
}

/**
SECTION SETTINGS
 */
.hide-below-xs {
  @media (max-width: 389px) {
    display: none;
  }
}
.hide-below-sm {
  @media (max-width: 767px) {
    display: none;
  }
}
.hide-below-md {
  @media (max-width: 1023px) {
    display: none;
  }
}
.hide-below-lg {
  @media (max-width: 1727px) {
    display: none;
  }
}
.hide-above-xs {
  @media (min-width: 390px) {
    display: none;
  }
}
.hide-above-sm {
  @media (min-width: 768px) {
    display: none;
  }
}
.hide-above-md {
  @media (min-width: 1024px) {
    display: none;
  }
}
.hide-above-lg {
  @media (min-width: 1728px) {
    display: none;
  }
}
