html {
  scroll-behavior: smooth;
}



.accessibility:not(:focus):not(:active) {
  position: absolute;

  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;

  white-space: nowrap;

  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}


img,
svg {
  max-width: 100%;
  height: auto;
}

.nojs picture.lazy {
  display: none;
}

.page-content {
  min-height: 100vh;
  padding: 7rem 5vw 5vw;
  background-color: var(--dark);
  background-image: var(--gradient);
  color: white;
}

.page-content>* {
  max-width: 800px;
}

.page-content>h1 {
  max-width: none;
}

.page-content>h1 span {
  display: block;
}

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content ul,
.page-content ol {
  padding-left: 3rem;
  margin-bottom: 4rem;
}

.page-content ul li+li,
.page-content ol li+li {
  margin-top: 1rem;
}

.page-content .button {
  margin-top: 3rem;
}

div.overlay {
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--dark);
  background-image: var(--gradient);
  transform: translateY(-100%);
  transition: visibility 0s 0.5s, transform 0.5s 0s;
  z-index: 3;
  overflow: auto;
}

div.overlay .page-content {
  padding: 0;
  background-color: transparent;
}

div.overlay h1:first-child {
  margin-top: 0;
}

div.overlay .container {
  max-width: 900px;
  padding: 15rem 0;
}

div.overlay .close {
  position: sticky;
  top: 5rem;
  width: 31px;
  height: 31px;
  display: block;
  margin-bottom: -31px;
  margin-left: auto;
}

@media not all and (min-resolution:.001dpcm) {
  @media {
    div.overlay {
      background-color: rgba(var(--rgb_dark), 0.65);
      -webkit-backdrop-filter: blur(100px);
      backdrop-filter: blur(100px);
    }
  }
}

div.overlay.open {
  visibility: visible;
  transform: translateY(0);
  transition: visibility 0s 0s, transform 0.5s 0s;
}

main {
  overflow-x: hidden;
}

main>section {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  padding: 170px 0;
}

@media screen and (max-width: 767px) {
  main>section {
    padding: 80px 0;
  }
}

.container {
  width: calc(100% - var(--margin));
  max-width: 1600px;
  margin: auto;
}

.hero {
  position: relative;
  height: 100vh;
  background-color: var(--dark);
  background-image: var(--gradient);
  color: white;
  padding: 0;
}

.bg,
.bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
  transform: translateZ(0);
}

.hero .bg {
  position: fixed;
}

.hero .bg:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.05);
  z-index: -1;
}

.hero a {
  text-decoration: none !important;
}

.hero h1 {
  animation: appear .8s ease .2s;
  animation-fill-mode: both;
  text-align: center;
  text-wrap: balance;
  max-width: 80vw;
  margin-inline: auto;
}

.hero .down {
  animation-delay: 1.5s;
}

@keyframes appear {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero .down {
  position: absolute;
  right: 5vw;
  bottom: 5rem;
  animation: arrow-appear .8s ease 1s;
  animation-fill-mode: both;
  display: flex;
  align-items: center;
  gap: 2rem;
  rotate: 90deg;
  transform-origin: bottom right;


  .rotated {
    margin: 0;
  }

  .icon {
    width: 2.3rem;
    height: 2.8rem;
    animation: breathe 2s ease-in-out 1.8s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    rotate: -90deg;

    .small-icon {
      display: none
    }
  }

}

@keyframes breathe {
  from {
    transform: translate(0, 0px);
  }

  to {
    transform: translate(0, -5px);
  }
}

@keyframes arrow-appear {
  from {
    opacity: 0;
    transform: translate(0, -30px);
  }

  to {
    opacity: 1;
    transform: translate(0, 0px);
  }
}


.fixed {
  position: fixed;
  z-index: 1;
  bottom: 11rem;
  left: 5vw;
  width: calc(100% - 10vw);
  text-align: left;
  transform: translateZ(0);
}

@media screen and (max-width: 1023px) {
  .fixed {
    bottom: auto;
    top: 16vh;
    margin-top: 2rem;
  }

  .hero .down {
    bottom: 3rem;

    .icon {
      width: 1.5rem;
      height: 1.8rem;

      .large-icon {
        display: none;
      }

      .small-icon {
        display: block;
      }
    }
  }

}

.haltung {
  color: var(--dark);
  text-align: center;
}

.haltung blockquote {
  max-width: 914px;
  margin: auto;
}

@media screen and (max-width: 480px) {
  .haltung blockquote {
    max-width: 285px;
  }
}

.leistungen {
  color: white;
  background-color: var(--dark);
  background-image: var(--gradient);
  min-height: 50vw;
}

.leistungen>.container {
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: stretch;
  width: calc(100% - var(--margin));
  gap: 3rem;
}

.leistungen .text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;

  & p {
    width: 70%;
    max-width: 640px;


    &:empty {
      display: none;
    }
  }

  @media (max-width: 767px) {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;

    p {
      width: 100%;
    }
  }
}

.leistungen .container>* {
  max-width: 100%;
}


@media screen and (max-width: 1279px) {
  .leistungen .container {
    max-width: 800px;
  }

  .leistungen .text .header {
    margin: 0 auto;
  }
}

@media screen and (max-width: 767px) {
  .leistungen .container {
    flex-direction: column;
  }

  .leistungen .container .text {
    margin-bottom: 5rem;
  }
}

.leistungen .bereiche {
  min-width: 280px;
}

.leistungen .bereiche ul {
  list-style: none;
  margin-left: 0;
}

.leistungen .bereiche li {
  padding: 1em 0;
  border-bottom: 0.5px solid var(--bright);
}


.leistungen .bereiche li:last-child {
  border-bottom: none;
}

.leistungen .bereiche li a:hover {
  text-decoration: none;
}

.leistungen button[commandfor] {
  cursor: pointer;
}

.leistungen .bereiche li>button[commandfor] {
  position: relative;
  margin: 0;
  padding: .1em 0;
  overflow: hidden;
  transition: color .5s, padding-bottom .4s;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  gap: 4rem;
  hyphens: auto;
}

.leistungen .bereiche li>button[commandfor] .icon {
  width: 4.4rem;
  aspect-ratio: 1;
  transition: transform .5s;
  flex-shrink: 0;
}


.leistungen dialog {
  overscroll-behavior: contain;
  overflow: auto;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: none;
  background-color: var(--bright);
  color: var(--dark);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  gap: 120px;

  flex-direction: column;
  justify-content: flex-end;
  padding: 0;

  @media (max-width: 1279px) {
    justify-content: flex-start;
  }

  /* Exit Stage To */
  transform: translateX(100px);

  &,
  &::backdrop {
    transition:
      display .3s allow-discrete,
      overlay .3s allow-discrete,
      opacity .3s ease,
      transform .3s ease;

    /* Exit Stage To */
    opacity: 0;
  }

  /* On Stage */
  &[open] {
    display: flex;
    opacity: 1;
    transform: translateY(0px);

    &::backdrop {
      opacity: 0.8;
    }
  }

  html:has(&[open]) {
    overflow: hidden;
    scrollbar-gutter: stable;
  }

  /* Enter Stage From */
  @starting-style {

    &[open],
    &[open]::backdrop {
      opacity: 0;
    }

    &[open] {
      transform: translateX(100px);
    }
  }

  &::backdrop {
    background-color: black;

    /* prevent scrolling page */
    overflow: hidden;
    overscroll-behavior: contain;
  }
}

.leistungen dialog>.sticky-container {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;

  button {
    all: unset;
    position: sticky;
    top: 40px;
    margin-left: auto;
    pointer-events: all;

    svg {
      width: 40px;
      height: 40px;
      rotate: 45deg;
    }
  }
}

.leistungen dialog>.container {
  margin-block: 0;
  display: flex;
  flex-direction: column;
  gap: 64px;
  padding-block: var(--margin);
}

.leistungen dialog .beschreibung {
  max-width: 1500px;
  column-count: 2;
  column-fill: balance;
  column-gap: 64px;

  @media (max-width: 1279px) {
    column-count: 1;
  }

  >*,
  >div>* {
    margin: 0;
    break-inside: avoid;
    margin-bottom: 1em;
    max-width: 640px;
  }

  p {
    font-size: 28px;
    line-height: 1.5;
  }

  ul {
    break-before: column;
    list-style: none;
    padding: 0;
    display: flex;
    max-width: 380px;

    flex-direction: column;
    gap: 16px;

    li {
      width: 100%;
      padding: 0 0 16px;
      border-bottom: 1px solid;
      margin: 0;
    }
  }
}

.leistungen .bereiche li>button[commandfor]:hover {
  color: var(--white);
}


.referenzen {
  color: var(--dark);
  background: var(--bright);
  text-align: center;
}

.referenzen .container {
  padding-bottom: 2rem;
}

.logos {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  justify-items: center;
  align-items: center;
  max-width: 1150px;
  width: 90%;
  margin: 8rem auto 0;
}

@media screen and (max-width: 767px) {
  .logos {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 50px;
  }

  .logos>.logo:last-child:nth-child(odd) {
    display: none;
  }

  .leistungen .bereiche li button[commandfor] .icon {
    width: 2.4rem;
  }

  .referenzen .h3 .white {
    display: inline-block;
    max-width: 260px;
  }
}

.testimonials {
  background-color: var(--brighter);
  color: var(--dark);
  min-height: 70vh;
}

.testimonials .container {
  max-width: 1200px;
}

.testimonials .flickity-button {
  background: transparent !important;
}

/* big previous & next buttons */
.testimonials .flickity-prev-next-button {
  width: 4rem;
  height: 4rem;
  padding: 0;
  transform: none !important;
  top: auto;
  bottom: 5%;
}

.testimonials .flickity-prev-next-button svg {
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.testimonials .flickity-prev-next-button.next {
  right: 30%;
}

.testimonials .flickity-prev-next-button.previous {
  right: 30%;
  margin-right: 8rem;
  left: auto;
}

/* icon color */
.testimonials .flickity-button-icon {
  fill: var(--dark);
}

.testimonials figure {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  flex-wrap: wrap;
}

.testimonials .flickity-enabled figure>* {
  transform: translateX(-10rem);
  opacity: 0;
  transition: transform .4s, opacity .4s;
}

.testimonials figure .h3 {
  margin: 0;
}

.testimonials .flickity-enabled figure.is-selected>* {
  transform: translateX(0);
  opacity: 1;
}

.testimonials .flickity-enabled figure.is-selected~figure>* {
  transform: translateX(10rem);
}

.testimonials .image {
  text-align: center;
  order: 2;
  width: 25%;
  min-width: 280px;
  transition-delay: .6s !important;
}

.testimonials img {
  border-radius: 50%;
  width: 130px;
  height: 130px;
}

.testimonials footer {
  margin-top: 1rem;
}

.testimonials footer>* {
  display: block;
}

.testimonials figcaption {
  flex: 1;
  order: 0;
  padding-right: 5%;
  transition-delay: .4s !important;
}

@media screen and (max-width: 1279px) {
  .testimonials {
    padding-bottom: 12rem;
  }

  .testimonials .flickity-enabled figure>* {
    width: 100%;
    text-align: center;
    margin-bottom: 7rem;
  }

  .testimonials .flickity-enabled .image {
    order: -1;
  }

  .testimonials .flickity-prev-next-button {
    right: calc(50% - 6rem) !important;
    bottom: auto;
  }
}

@media screen and (max-width: 767px) {
  .testimonials .flickity-enabled figure>* {
    margin-bottom: 3rem;
  }
}

.kontakt {
  background: var(--white);
  color: var(--dark);
  text-align: center;
  padding-top: 80px;
}

.kontakt img {
  margin-bottom: 9rem;
  width: 100%;
}

.kontakt .text {
  max-width: 580px;
  margin: auto;
  margin-bottom: 5rem;
}

.kontakt .buttons {
  width: 100%;
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-flow: row wrap;
}

.kontakt .button {
  flex: 1 1 45%;
  margin: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  min-width: -webkit-max-content;
  min-width: max-content;
}

#kontakt {
  display: flex;
  flex-direction: column;
  background-color: var(--dark);
  background-image: var(--gradient);
  color: var(--bright);
  z-index: 1;
  position: relative;
  padding: 5rem 5vw;
  gap: 13rem;

  .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    & h2 {
      max-width: 400px;
    }

    .cta {
      max-width: 400px;
    }
  }
}

#kontakt .legal-etc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;

  >svg {
    flex-shrink: 0;
  }

}

#kontakt .menu-footer {
  margin-left: 0;
}


@media screen and (max-width: 767px) {
  .kontakt {
    padding-top: 4rem;
  }

  .kontakt img {
    margin-bottom: 6rem;
  }

  #kontakt {
    justify-content: center;

    .container {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  #kontakt>svg {
    margin-bottom: 2rem;
  }

  #kontakt .menu-footer {
    margin-left: 0;
    text-align: center;
  }

  .container .text {
    width: 100%;
  }
}