/* Keyboard focus, gallery layout, lightbox and reduced-motion behavior. */

html {
  scroll-behavior: smooth;
}

body.gts-theme {
  margin: 0px;
  background: rgb(243, 242, 239);
  color: rgb(18, 25, 22);
}

main {
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

.gts-skip {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100000;
  padding: 12px 20px;
  background: rgb(18, 25, 22);
  color: rgb(243, 242, 239);
}

.gts-skip:focus {
  top: 12px;
}

a:focus-visible, button:focus-visible, [role="button"]:focus-visible {
  outline: currentcolor solid 2px;
  outline-offset: 5px;
}

.gts-location-header {
  position: relative;
  z-index: 50;
}

.gts-menu-toggle {
  cursor: pointer;
}

.gts-tab-title {
  cursor: pointer;
}

.gts-tab-content {
  display: none;
}

.gts-tab-content.gts-active {
  display: block;
}

.gts-gallery__container {
  position: relative;
  width: 100%;
  min-height: 150px;
}

.gts-gallery__container > a {
  display: block;
  position: absolute;
  overflow: hidden;
}

.gts-gallery-item__image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
}

.gts-gallery-item__overlay {
  pointer-events: none;
}

.gts-gallery__container > a:focus-visible {
  z-index: 2;
  outline-offset: -4px;
}

.gts-gallery__container > a:hover .gts-gallery-item__image {
  filter: brightness(0.94);
}

.gts-generic {
  max-width: 1140px;
  margin: auto;
  padding: 100px 28px;
  min-height: 55vh;
}

.gts-load-more {
  margin: 48px auto 0px;
  text-align: center;
}

.gts-load-more a[aria-busy="true"] {
  opacity: 0.6;
}

.gts-lightbox {
  border: 0px;
  background: rgb(18, 25, 22);
  color: rgb(243, 242, 239);
  padding: 60px;
  width: min(96vw, 1500px);
  max-width: 96vw;
  max-height: 96vh;
}

.gts-lightbox::backdrop {
  background: rgba(10, 15, 12, 0.92);
}

.gts-lightbox figure {
  margin: 0px;
  text-align: center;
}

.gts-lightbox img {
  display: block;
  max-height: 78vh;
  max-width: 100%;
  width: auto;
  margin: auto;
  object-fit: contain;
}

.gts-lightbox figcaption {
  margin-top: 10px;
}

.gts-lightbox button {
  position: absolute;
  padding: 8px;
  width: 44px;
  height: 44px;
  border: 0px;
  background: transparent;
  color: rgb(243, 242, 239);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.gts-lightbox-close {
  top: 8px;
  right: 8px;
}

.gts-lightbox-prev {
  left: 8px;
  top: 50%;
}

.gts-lightbox-next {
  right: 8px;
  top: 50%;
}

.gts-ratgeber__breadcrumbs br {
  display: none;
}

.gts-ratgeber {
  overflow-wrap: break-word;
}

@media (min-width: 1025px) and (max-width: 1600px) {
  .gts-location-header .gts-widget-theme-site-logo {
    flex: 0 0 18%;
  }

  .gts-location-header .gts-widget-nav-menu {
    flex: 1 1 0%;
    width: auto;
    min-width: 0px;
  }

  .gts-location-header .gts-nav-menu--main > .gts-nav-menu {
    min-height: 90px;
  }
}

@media (max-width: 1024px) {
  .gts-widget-nav-menu, .gts-widget-nav-menu > .gts-widget-container {
    position: static;
  }

  .gts-nav-menu--dropdown.gts-open {
    position: absolute;
    left: 0px;
    top: 100%;
    width: 100%;
    max-height: calc(-80px + 100vh);
    overflow-y: auto;
    z-index: 60;
  }
}

@media (max-width: 767px) {
  .gts-generic {
    padding: 64px 20px;
  }

  .gts-lightbox {
    padding: 54px 44px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
