/* Screen Sizes https://tailwindcss.com/docs/responsive-design
xs	25rem (400px)	@media (width >= 40rem) { ... }
sm	40rem (640px)	@media (width >= 40rem) { ... }
md	48rem (768px)	@media (width >= 48rem) { ... }
lg	64rem (1024px)	@media (width >= 64rem) { ... }
xl	80rem (1280px)	@media (width >= 80rem) { ... }
2xl	96rem (1536px)	@media (width >= 96rem) { ... }
*/
/* 
only for stuff which is easier to write in sass than tailwind

@include lg() {}

*/
:root {
  --height-navbar: 80px;
  --height-navbar-sticky: 72px;
}
@media (width >= 48rem) {
  :root {
    --height-navbar: 140px;
    --height-navbar-sticky: 104px;
  }
}
@media (width >= 80rem) {
  :root {
    --height-navbar: 168px;
    --height-navbar-sticky: 116px;
  }
}

body {
  overflow-x: hidden;
}
@media (width < 40rem) {
  body {
    --text-lg: 1.2em;
  }
}

main {
  width: 100%;
  max-width: 2400px;
  margin: 0 auto;
}

.theme-secondary {
  --color-theme: var(--color-secondary);
}

.font-alternate {
  font-weight: 400;
}

.bg-center-center {
  background-position: center;
}

.bg-left-center {
  background-position: left center;
}

.bg-right-center {
  background-position: right center;
}

.not-sticky {
  position: static !important;
}

.layout-section {
  position: relative;
  display: flex;
  z-index: 20;
}
.layout-section .layout-section-background {
  position: absolute;
  display: flex;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.layout-section .layout-section-background.bg-image-cover picture, .layout-section .layout-section-background.bg-image-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.layout-section .layout-section-background.bg-image-contain {
  align-items: center;
  justify-content: center;
}
.layout-section.layout-h-screen {
  min-height: calc(100vh - (var(--height-navbar)));
}
.layout-section.sticky-section {
  position: sticky;
  top: 0;
  z-index: 10;
}
.layout-section.sticky-section.not-sticky {
  position: static !important;
}
.layout-section.sticky-section.logo-sticky {
  top: var(--height-navbar);
}
.layout-section.sticky-section.logo-sticky .custom-block {
  padding-top: 1rem;
}
.layout-section.sticky-section.logo-sticky .custom-block img {
  width: 100%;
  object-fit: contain;
}
.layout-section.attach-bottom {
  padding-bottom: 0;
}
.layout-section.left-gray-right-darkblue .layout > .grid-col {
  background-color: var(--color-darkblue);
}
.layout-section.left-gray-right-darkblue .layout > .grid-col:first-child {
  background-color: var(--color-grayLight);
}

.image-text .img-col {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.image-text .img-col picture, .image-text .img-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.layout-section.attach-bottom .image-text .text-col {
  justify-content: flex-start;
}
.layout-section.attach-bottom .image-text .img-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-end;
}
.layout-section.attach-bottom .image-text .img-col picture, .layout-section.attach-bottom .image-text .img-col img {
  height: auto;
  object-fit: contain;
}

.page-header + .sticky-sentinel + .layout-section {
  box-shadow: 0 -4px 4px rgba(0, 0, 0, 0.15);
}

.page-header.has-bg .page-header-text {
  color: white;
}

.writer h1 .text-lg, .writer h2 .text-lg, .writer h3 .text-lg, .writer h4 .text-lg, .writer h5 .text-lg, .writer h6 .text-lg {
  line-height: 1;
}

span.divider {
  --size: 64px;
  width: var(--size);
  height: 5px;
  position: relative;
  font-size: 0;
  display: inline-flex;
  background: currentColor;
}
@media (width >= 48rem) {
  span.divider {
    --size: 80px;
  }
}
@media (width >= 80rem) {
  span.divider {
    --size: 100px;
  }
}

.sticky-sentinel {
  height: 0px;
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  display: block;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: currentColor;
  transition: all 0.2s ease-out;
}
.nav-link:hover::after, .nav-link.open::after, .nav-link.open-sub::after {
  width: 100%;
}

.btn-primary,
.btn-secondary,
.btn-tertiary {
  transition: all 0.3s;
  position: relative;
}
.btn-primary::before,
.btn-secondary::before,
.btn-tertiary::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: all 0.3s;
  border-top-width: 2px;
  border-bottom-width: 2px;
  border-top-style: solid;
  border-bottom-style: solid;
  transform: scale(0.1, 1);
}
.btn-primary:hover::before,
.btn-secondary:hover::before,
.btn-tertiary:hover::before {
  opacity: 1;
  transform: scale(1, 1);
}

.btn-primary::before {
  border-top-color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.btn-secondary::before {
  border-top-color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

.btn-tertiary::before {
  border-top-color: white;
  border-bottom-color: white;
}

.text-center .writer .buttons {
  justify-content: center;
}

.text-right .writer .buttons {
  justify-content: flex-end;
}

.leistung-start {
  overflow: hidden;
}
.leistung-start .type-text {
  height: 100%;
}
.leistung-start .type-carousel {
  padding: 1rem;
}
.leistung-start .type-carousel + .type-text {
  padding: 1rem 0 2rem;
}
@media (width >= 48rem) {
  .leistung-start .type-carousel + .type-text {
    padding: 1rem 1rem 2rem;
  }
}
@media (width >= 64rem) {
  .leistung-start .type-carousel {
    padding: 1.5rem;
  }
  .leistung-start .type-carousel + .type-text {
    padding: 2rem 3rem 6rem;
  }
}

.custom-block {
  position: relative;
}
.custom-block.has-bg {
  padding-block: 2rem;
}
@media (width >= 64rem) {
  .custom-block.has-bg {
    padding: 3rem 4rem;
  }
  .custom-block.has-bg .px-container {
    padding-inline: 0;
  }
}
.custom-block.has-bg::before, .custom-block.has-bg::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  height: 100%;
  width: 2000px;
  top: 0;
}
.custom-block.has-bg.primary-left .text-secondary {
  color: var(--color-textColor);
}
.custom-block.has-bg.primary-left::before {
  left: -1995px;
  background-color: var(--color-primary);
}
.custom-block.has-bg.primary-left::after {
  right: -1995px;
  background-color: var(--color-primary);
}
@media (width >= 48rem) {
  .custom-block.has-bg.primary-left::after {
    display: none;
  }
}
.custom-block.has-bg.primary-right .text-secondary {
  color: var(--color-textColor);
}
.custom-block.has-bg.primary-right::before {
  left: -1995px;
  background-color: var(--color-primary);
}
@media (width >= 48rem) {
  .custom-block.has-bg.primary-right::before {
    display: none;
  }
}
.custom-block.has-bg.primary-right::after {
  right: -1995px;
  background-color: var(--color-primary);
}
.custom-block.has-bg.gray-left::before {
  left: -1995px;
  background-color: var(--color-grayLight);
}
.custom-block.has-bg.gray-left::after {
  right: -1995px;
  background-color: var(--color-grayLight);
}
@media (width >= 48rem) {
  .custom-block.has-bg.gray-left::after {
    display: none;
  }
}
.custom-block.has-bg.gray-right::before {
  left: -1995px;
  background-color: var(--color-grayLight);
}
@media (width >= 48rem) {
  .custom-block.has-bg.gray-right::before {
    display: none;
  }
}
.custom-block.has-bg.gray-right::after {
  right: -1995px;
  background-color: var(--color-grayLight);
}
.custom-block.has-bg.darkblue-left::before {
  left: -1995px;
  background-color: var(--color-darkblue);
}
.custom-block.has-bg.darkblue-left::after {
  right: -1995px;
  background-color: var(--color-darkblue);
}
@media (width >= 48rem) {
  .custom-block.has-bg.darkblue-left::after {
    display: none;
  }
}
.custom-block.has-bg.darkblue-right::before {
  left: -1995px;
  background-color: var(--color-darkblue);
}
@media (width >= 48rem) {
  .custom-block.has-bg.darkblue-right::before {
    display: none;
  }
}
.custom-block.has-bg.darkblue-right::after {
  right: -1995px;
  background-color: var(--color-darkblue);
}
@media (width < 48rem) {
  .custom-block.type-marquee {
    padding-inline: 0;
  }
}

@media (width >= 48rem) {
  .home-about .type-image {
    height: 100%;
  }
  .home-about .type-image img, .home-about .type-image picture {
    height: 100%;
    object-fit: cover;
  }
}
@media (width >= 48rem) {
  .home-about .type-text {
    height: 100%;
  }
}

.marquee.odd {
  animation: scrolling var(--marquee-time) linear infinite;
}
.marquee.even {
  animation: scrolling var(--marquee-time) linear reverse infinite;
}

.marquee:hover {
  animation-play-state: paused;
}

@keyframes scrolling {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-1 * var(--marquee-width)));
  }
}
@media (width >= 64rem) {
  .site-footer .layout-section {
    padding-block: 1rem;
  }
}
@media (width < 64rem) {
  .site-footer .blocks {
    row-gap: 4rem;
  }
}
.site-footer .blocks .custom-block {
  justify-content: center;
}
@media (width >= 64rem) {
  .site-footer .blocks .custom-block {
    padding-block: 3rem;
  }
}
@media (width >= 64rem) {
  .site-footer .blocks {
    gap: 0;
    width: 100%;
    flex-direction: row;
  }
  .site-footer .blocks .custom-block {
    width: auto;
    flex: 1;
  }
}
@media (width >= 64rem) {
  .site-footer .blocks .footer-logo {
    padding-inline: 1rem;
  }
}
@media (width < 40rem) {
  .site-footer .blocks .footer-logo picture, .site-footer .blocks .footer-logo img {
    width: 100%;
    max-width: 85%;
  }
}
.site-footer .blocks .footer-menu {
  flex-shrink: 0;
}
.site-footer .blocks .footer-menu .btn-text {
  color: white;
  font-size: var(--text-base);
  padding: 0.25rem 0.5rem;
  text-transform: uppercase;
}
.site-footer .blocks .footer-menu .btn-text:hover {
  color: var(--color-primary);
  background-color: transparent;
}
.site-footer .blocks .footer-address {
  flex-shrink: 0;
}
.site-footer .blocks .footer-address .writer {
  padding-inline: 0;
  width: auto;
}
@media (width < 64rem) {
  .site-footer .blocks .footer-address .writer {
    text-align: center;
  }
}
.site-footer .blocks .footer-address a {
  color: white;
}
.site-footer .blocks .footer-address a:hover {
  color: var(--color-primary);
}
.site-footer .blocks .footer-illu {
  justify-content: flex-end;
}
@media (width >= 64rem) {
  .site-footer .blocks .footer-illu {
    max-width: 160px;
    padding-block: 0;
  }
}
@media (width >= 80rem) {
  .site-footer .blocks .footer-illu {
    max-width: 200px;
  }
}
