/*
    Theme Name: 3dokuteam
    Theme URI: 
    Author: 
    Author URI: 
    Description: Eigenes WordPress Theme für 3dokuteam
    Version: 1.0.0
    Requires at least: 6.0
    Tested up to: 6.7
    Requires PHP: 8.2
    Text Domain: 3dokuteam
    Domain Path: /languages
*/

/* CSS Variables */
:root {
  --grey: #f1f1f2;
  --grey-2: #00000029;
  --grey-3: #58585a;
  --grey-4: #a7a9ac;
  --dark: #3a3a3a;
  --dark-2: #333333;
  --red: #ed1c24;
  --red-2: #d5181f;
}

html {
  scrollbar-width: thin;
}

html::-webkit-scrollbar {
  width: 8px;
}

body {
  font-family: Arial, sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  display: block;
  margin: 0;
  color: var(--grey-3);
}

h2,
h1 {
  word-break: normal !important;
  hyphens:none !important;
  -webkit-hyphens: none !important;
  -moz-hyphens: none !important;
  -ms-hyphens: none !important;
  word-wrap: normal !important;
  overflow-wrap: normal !important;
}

h1.privacy-heading {
  hyphens: auto !important;
  -webkit-hyphens: auto !important;
  -moz-hyphens: auto !important;
  -ms-hyphens: auto !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

.container {
  width: 1410px;
  padding: 0 20px;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

div#google_language_translator {
  height: 35px;
  border-radius: 10px;
  overflow: clip;
}

div#google_language_translator div {
  height: 100% !important;
}

#google_language_translator .goog-te-gadget .goog-te-combo {
  background: var(--red);
  border-radius: 10px !important;
  font-size: 12px;
  line-height: 17px;
  font-weight: 900;
  text-transform: uppercase;
  padding: 8px 20px !important;
  font-family: Arial, sans-serif;
  margin: 0;
  width: 200px;
  height: 100% !important;
}

img {
  max-width: 100%;
}

a {
  display: inline-block;
  color: currentColor;
}

p,
p.wp-block-paragraph {
  word-break: break-word;
}

p:last-of-type {
  margin-bottom: 0;
}

span {
  display: inline-block;
}

section {
  scroll-margin-top: 122px;
  display: inline-block;
  width: 100%;
  position: relative;
  padding: 100px 0;
}

main > .container > *:not(section):first-child {
  padding-top: 100px;
}

main > .container > *:not(section):last-child {
  padding-bottom: 100px;
}

.bg-gray {
  background-color: var(--grey);
}

.border-gray {
  border-color: var(--grey);
}

svg,
svg path {
  transition: all 0.2s ease-in-out;
}

.animated-headline {
  position: relative;
  display: block;
  overflow: visible;
}

.animated-headline > .print-effect-original {
  display: block;
  letter-spacing: 1.2px;
  opacity: 0;
  transition: opacity 100ms linear;
}

.animated-headline.print-effect-complete > .print-effect-original {
  opacity: 1;
}

.animated-headline > .print-effect-canvas {
  position: absolute;
  z-index: 2;

  display: block;
  pointer-events: none;
}

/* Bei deaktivierten Animationen Text sofort anzeigen */
@media (prefers-reduced-motion: reduce) {
  .animated-headline > .print-effect-original {
    opacity: 1;
    transition: none;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
a {
  transition: color 0.3s ease;
}

h1,
h2,
h3 {
  strong {
    color: var(--red);
  }
}

h1 {
  font-size: 80px;
  line-height: 1;
  letter-spacing: 1.2px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 20px;
}

h1:not(.block-header h1) {
  font-size: 50px;
}

h2 {
  font-size: 40px;
  line-height: 46px;
  letter-spacing: 0.6px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 20px;
}

h2.wp-block-heading,
h3 {
  font-size: 20px;
  line-height: normal;
  letter-spacing: 0;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 20px;
}

h4,
h3.wp-block-heading {
  font-size: 18px;
  line-height: normal;
  letter-spacing: 0;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 20px;
}

a.button + h2,
a.button + h3 {
  margin-top: 60px;
}

.container {
  > .wp-block-heading:first-child {
    margin-block-start: 0;
  }

  > * + h2.wp-block-heading {
    margin-block-start: 40px;
  }

  > * + h3.wp-block-heading {
    margin-block-start: 40px;
  }
}

.formular-message {
  margin-top: 20px;
  background-color: var(--grey);
  padding: 10px 20px;
  border-radius: 10px;
  &:empty {
    display: none;
  }

  &.is-success,
  &.is-error {
    display: block;
  }
}

/**TEST
*/
/* Hauptauswahl */
.block-formular .formular-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

/* Neue Formularvarianten, Dokumentenupload bleibt unverändert */
.block-formular
  .js-formular-variant:not([data-formular-type="dokumentenupload"]) {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px 0;
}

/* Feldgruppen innerhalb der neuen Varianten */
.block-formular
  .js-formular-variant:not([data-formular-type="dokumentenupload"])
  > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Versteckte Varianten wirklich ausblenden */
.block-formular .js-formular-variant[hidden] {
  display: none !important;
}

/* Dropdowns, Datumsfelder und Uhrzeitfelder */
.block-formular .js-formular-form select,
.block-formular .js-formular-form input[type="date"],
.block-formular .js-formular-form input[type="time"] {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  background-color: #fff;
  color: #222;
  font: inherit;
  line-height: 1.4;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Eigener Dropdown-Pfeil */
.block-formular .js-formular-form select {
  padding-right: 48px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image:
    linear-gradient(45deg, transparent 50%, #555 50%),
    linear-gradient(135deg, #555 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 15px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

/* Datum und Uhrzeit anklickbar */
.block-formular .js-formular-form input[type="date"],
.block-formular .js-formular-form input[type="time"] {
  cursor: pointer;
}

/* Hover und Fokus */
.block-formular .js-formular-form select:hover,
.block-formular .js-formular-form input[type="date"]:hover,
.block-formular .js-formular-form input[type="time"]:hover {
  border-color: #aaa;
}

.block-formular .js-formular-form select:focus,
.block-formular .js-formular-form input[type="date"]:focus,
.block-formular .js-formular-form input[type="time"]:focus {
  border-color: #555;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

/* Kalender- und Uhrzeitsymbol */
.block-formular .js-formular-form input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}

/* Deaktivierte Felder versteckter Varianten */
.block-formular .js-formular-form select:disabled,
.block-formular .js-formular-form input[type="date"]:disabled,
.block-formular .js-formular-form input[type="time"]:disabled {
  background-color: #f2f2f2;
  color: #777;
  cursor: not-allowed;
  opacity: 0.7;
}

/** ENDE TEST*/

form {
  accent-color: var(--red);

  .tasty {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  button.custom-tooltip-toggle:focus-visible {
    outline: 2px solid var(--grey-3);
    border-radius: 10px;
  }

  .formular-submit-row {
    justify-content: flex-end;
    gap: 10px;
    margin-top: 35px;
  }

  .formular-loading {
    display: none;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: formular-loading-spin 0.7s linear infinite;
  }

  .formular-loading.is-active {
    display: block;
  }

  textarea,
  input[type="text"],
  input[type="email"],
  input[type="tel"] {
    width: 100%;
    padding: 13px 15px;
    background-color: #fff;
    border: 0;
    border-radius: 10px;
  }

  textarea {
    height: 200px;
  }

  ::placeholder {
    color: rgba(88, 88, 90, 0.5);
  }

  .has-info {
    gap: 10px;
  }

  .custom-tooltip-wrap {
    .custom-tooltip {
      bottom: 31px;
      background-color: #58585a;
      color: white;
      border-radius: 10px;
      padding: 12px 19px;
      left: -20px;
      width: max-content;

      &::before {
        content: "";
        position: absolute;
        bottom: -11px;
        left: 27px;
        width: 15px;
        height: 12px;
        background-color: inherit;
        clip-path: polygon(0 0, 100% 0, 50% 100%);
        transform: translateX(-50%);
      }
    }
    svg {
      margin-bottom: 2px;
    }
  }

  .custom-upload-input {
    width: 100%;

    .upload-remove {
      display: none;
      align-items: center;
      justify-content: center;
      width: 24px;
      height: 24px;
      padding: 0;
      border: 0;
      background: transparent;
      cursor: pointer;
      font-size: 24px;
      line-height: 1;
      right: 0;
      top: 0;
      position: absolute;
      color: var(--grey-3);
      z-index: 2;
    }

    .upload-remove.is-visible {
      display: inline-flex;
    }

    .upload-label {
      display: block;
      width: 100%;
    }

    .upload-wrap {
      position: relative;
      width: 100%;
      margin-top: 15px;
      overflow: hidden;
      background-color: #fff;
      border: 1px dashed #707070;
      border-radius: 10px;
      transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;

      &.is-dragover {
        background-color: #f3f3f3;
        border-color: #58585a;
        box-shadow: 0 0 0 2px rgba(88, 88, 90, 0.15);
      }

      &.has-file {
        border-style: solid;
      }
    }

    .upload-input {
      position: absolute;
      z-index: 2;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      padding: 0;
      margin: 0;
      cursor: pointer;
      opacity: 0;
    }

    .upload-content {
      min-height: 170px;
      padding: 72px 15px;
      gap: 16px;
      pointer-events: none;

      svg {
        display: block;
        width: 25px;
        height: auto;
      }
    }

    .upload-input:focus-visible + .upload-content {
      outline: 2px solid #58585a;
      outline-offset: -4px;
      border-radius: 10px;
    }

    .upload-text {
      overflow-wrap: anywhere;
    }
  }
}

@keyframes formular-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .formular-loading {
    animation-duration: 1.5s;
  }
}

.bg-white {
  .accordion {
    .accordion-button {
      background-color: var(--grey);
    }
  }
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 35px;

  .accordion-item {
    border-radius: 10px;
    border: none;
    background-color: transparent;
  }

  .accordion-button {
    border-radius: 10px !important;
    padding: 15px;
    background-color: white;
    text-transform: none;
    font-weight: 700;
    font-size: 18px;
    color: var(--grey-3);
    gap: 15px;

    &::after {
      display: none;
    }

    &[aria-expanded="true"] {
      color: var(--red);
      .open {
        display: none;
      }
    }
    &[aria-expanded="false"] {
      .close {
        display: none;
      }
    }
  }

  .accordion-body {
    padding: 26px 15px 15px 15px;
  }
}

.wp-block-button__link,
button,
.button,
input[type="submit"] {
  font-size: 16px;
  font-weight: 900;
  line-height: 23px;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 10px;
  background-color: var(--red);
  border: 1px solid var(--red);
  color: white;
  text-decoration: none;
  text-align: center;
  max-width: 100%;
  width: fit-content;
  word-break: break-word;

  &:hover {
    background-color: white;
    border-color: var(--red);
    color: var(--red);
  }

  &.button-white-unfilled {
    background-color: transparent;
    border-color: white;
    color: white;

    &:hover {
      background-color: white;
      color: var(--red);
    }
  }
}

.slick-slider {
  margin: 0 -8.5px;

  .slick-prev:before,
  .slick-next:before {
    color: var(--grey-3);
    font-size: 24px;
  }

  .slick-track {
    display: flex;
    align-items: stretch;
  }

  .slick-slide {
    display: flex;
    height: auto;
    margin: 0 8.5px;
  }

  &.slick-dotted {
    margin-bottom: 0;
  }

  ul.slick-dots {
    position: relative;
    bottom: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 50px;
  }

  .slick-dots li {
    margin: 0;
    width: 8px;
    height: 8px;
  }

  .slick-dots li button {
    width: 8px;
    height: 8px;
    padding: 0;
  }

  .slick-dots li button::before {
    width: 8px;
    height: 8px;
    font-size: 8px;
    line-height: 1;
    opacity: 1;
    color: var(--grey-3);
  }

  .slick-dots li.slick-active button::before {
    color: var(--red);
  }
}

.fw-black {
  font-weight: 900;
}

.fs-tiny {
  font-size: 14px;
  line-height: normal;
}

.fs-tiniest {
  font-size: 12px;
  line-height: normal;
}

.tag {
  text-transform: uppercase;
  font-weight: 900;
  color: var(--red);
  text-align: inherit;
}

header,
footer {
  ul {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  a {
    text-decoration: none;
  }

  li a {
    font-weight: 900;
    text-transform: uppercase;
  }
}

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: white;
  box-shadow: 0 3px 6px var(--grey-2);
  z-index: 10;

  .container {
    width: 100%;
    max-width: 1728px;
  }

  a {
    font-size: 14px;
    line-height: 18px;

    &:hover {
      color: var(--red);
    }
  }

  li.current-menu-item > a {
    color: var(--red);
  }

  img.logo {
    display: block;
    width: 200px;
    height: auto;
  }

  /*
   * Mobile:
   *
   * Logo | Menübutton
   * Aufklappbares Menü darunter
   */
  .header-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo toggle"
      "navigation navigation";
    align-items: center;
    column-gap: 20px;
    /* row-gap: 20px; */
  }

  .header-logo {
    grid-area: logo;
    display: block;
    width: fit-content;
  }

  .menu-toggle {
    grid-area: toggle;
    justify-self: end;
  }

  .header-navigation {
    grid-area: navigation;
    width: 100%;
  }

  .main-navigation {
    width: 100%;
  }

  .main-menu {
    width: 100%;
  }

  .header-translator {
    width: 100%;
    margin-top: 0;
    padding: 13px 20px;
  }

  .header-button {
    display: none;
  }

  .button {
    font-size: 12px;
    line-height: 17px;
  }

  .sub-menu {
    a {
      width: 100%;
      font-weight: 400;
      text-transform: none;
    }
  }

  .custom-language-wrapper {
    button.btn-link {
      color: var(--grey-3);
      border:none;

      &:hover {
        border: none;
      }

      &:active {
        color: var(--red) !important;
      }

      &.show {
        color: var(--red) !important;
      }
    }
    .dropdown-menu {
      background-color: var(--grey);
      inset: 12px 0px auto auto !important;

      .dropdown-item {

        &:hover {
          color: var(--red);
        }
      }
    }
  }
}

aside {
  position: fixed;
  right: 30px;
  top: 0;
  bottom: 0;
  height: fit-content;
  margin: auto;
  gap: 20px;
  z-index: 9;

  a {
    width: 50px;
    height: 50px;
    background-color: var(--red);
    border: 1px solid var(--red);
    text-decoration: none;
    color: var(--red);

    span {
      display: none;
    }
  }

  a:focus-within,
  a:hover {
    border-radius: 25px !important;
    width: fit-content;
    padding: 10px;
    gap: 10px;
    background-color: white;

    span {
      display: inline-block;
    }

    svg path {
      fill: var(--red);
    }
  }

  svg {
    width: 25px;
    height: auto;
  }
}

footer {
  .diagonal {
    width: 100%;
    height: 103px;
    background-color: #333333;
    margin-bottom: -1px;

    clip-path: polygon(0 0, 100% 100%, 0 100%);
  }
  a:hover {
    text-decoration: underline;
  }
  .primary-content {
    background-color: var(--dark-2);
    color: var(--grey-4);

    img.logo {
      height: 45px;
      width: auto;
    }
    .socials {
      gap: 20px;
      height: fit-content;

      .linkedin {
        margin-top: -11px;
      }

      a:hover svg path[fill="none"] {
        stroke: var(--red);
      }
      a:hover svg path:not(path[fill="none"]) {
        fill: var(--red);
      }

      svg {
        width: 35px;
        height: auto;
      }
    }
    .footer-content {
      padding-top: 52px;
      padding-bottom: 86px;
      row-gap: 40px;
      column-gap: 40px;
    }
    .footer-group {
      gap: 87px;
    }
    .textcontent {
      line-height: 1.5;
    }
    .textcontent p {
      margin-bottom: 34px;
    }
    .footer-menu {
      gap: 34px;
    }
  }
  .secondary-content {
    background-color: var(--grey-4);
    color: var(--dark-2);
    padding: 13px 0;
  }
}

section.single-content {
  &:last-child {
    padding-bottom: 0;
  }
  .wp-block-buttons:not(.wp-block-buttons:first-child) {
    margin-top: 25px;
  }
}

section.dotted {
  background-image:
    repeating-linear-gradient(to right, #707070 0 4px, transparent 4px 8px),
    repeating-linear-gradient(to right, #707070 0 4px, transparent 4px 8px);
  background-size:
    calc(100% - 26px) 1px,
    calc(100% - 26px) 1px;

  background-position:
    13px 13px,
    13px calc(100% - 13px);

  background-repeat: no-repeat;
}

section.block-faq.bg-gray + section.block-faq.bg-gray,
section.block-faq.bg-white + section.block-faq.bg-white {
  padding-top: 32px;
}

section.block-bild-und-text,
section.block-bildscan {
  .image-scan {
    --scan-color: #41f5c7;
    --scan-speed: 3.2s;

    position: relative;
    overflow: hidden;
    isolation: isolate;

    width: 100%;
    border-radius: 18px;
    background: #dfe5e4;
  }

  .image-scan > img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(0.85) contrast(1.04);
  }

  .image-scan::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.32;

    background-image:
      linear-gradient(rgba(65, 245, 199, 0.13) 1px, transparent 1px),
      linear-gradient(90deg, rgba(65, 245, 199, 0.13) 1px, transparent 1px);

    background-size: 34px 34px;
    mix-blend-mode: multiply;
  }

  .scan-line {
    position: absolute;
    z-index: 3;
    top: -24%;
    left: 0;
    right: 0;
    height: 24%;
    pointer-events: none;

    background: linear-gradient(
      to bottom,
      transparent,
      rgba(65, 245, 199, 0.08) 42%,
      rgba(65, 245, 199, 0.42) 49%,
      #d8fff6 50%,
      rgba(65, 245, 199, 0.16) 53%,
      transparent
    );

    filter: drop-shadow(0 0 18px var(--scan-color));
    animation: image-scan-animation var(--scan-speed) linear infinite;
  }

  .scan-line::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 7%;
    right: 7%;
    height: 2px;

    background: var(--scan-color);
    box-shadow: 0 0 14px var(--scan-color);
  }

  .scan-corners {
    position: absolute;
    inset: 5%;
    z-index: 4;
    pointer-events: none;

    background:
      linear-gradient(var(--scan-color), var(--scan-color)) left top / 38px 2px
        no-repeat,
      linear-gradient(var(--scan-color), var(--scan-color)) left top / 2px 38px
        no-repeat,
      linear-gradient(var(--scan-color), var(--scan-color)) right top / 38px 2px
        no-repeat,
      linear-gradient(var(--scan-color), var(--scan-color)) right top / 2px 38px
        no-repeat,
      linear-gradient(var(--scan-color), var(--scan-color)) left bottom / 38px
        2px no-repeat,
      linear-gradient(var(--scan-color), var(--scan-color)) left bottom / 2px
        38px no-repeat,
      linear-gradient(var(--scan-color), var(--scan-color)) right bottom / 38px
        2px no-repeat,
      linear-gradient(var(--scan-color), var(--scan-color)) right bottom / 2px
        38px no-repeat;

    opacity: 0.8;
  }

  .scan-status {
    position: absolute;
    z-index: 5;
    left: 7%;
    bottom: 7%;

    padding: 7px 10px;
    border: 1px solid rgba(65, 245, 199, 0.4);
    background: rgba(7, 16, 15, 0.73);
    color: var(--scan-color);

    font-family: ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
  }
}
@keyframes image-scan-animation {
  to {
    transform: translateY(520%);
  }
}

/* Animation für Nutzer mit reduzierten Bewegungseinstellungen abschalten */
@media (prefers-reduced-motion: reduce) {
  .scan-line {
    top: 40%;
    animation: none;
  }
}

section.block-bild-und-text {
  .row {
    row-gap: 45px;
  }
  .tag {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: normal;
  }
  h2 {
    margin-bottom: 35px;
  }
  .bild-text-content:has(a.button) p:last-of-type {
    margin-bottom: 1rem;
  }
  a.button {
    margin-top: 25px;
    min-width: 300px;
  }
  .bild-text-image img {
    border-radius: 10px;
    height: auto;
  }
  .slick-slide.bild-text-main-slide {
    margin: 0;
  }
  .slick-slider .bild-text-image {
    border-radius: 10px;
    overflow: clip;
    justify-content: center;
    width: 100%;
  }
  .bild-text-slider-for {
    margin-bottom: 10px;
  }
  button.bild-text-nav-button {
    border: none;
    padding: 0;
    border-radius: 10px;
    background: var(--grey);
    overflow: clip;
    border: 1px solid var(--grey-4);
    width: 100%;
    height: auto;

    img {
      width: 100%;
      height: auto;
    }
  }

  &:has(+ div.container div.schema-faq) {
    padding-bottom: 0px;
  }
}

div.container .yoast-faq-heading {
  margin-bottom: 40px;
}

div.container .yoast-faq .schema-faq-section {
  margin-bottom: 20px;
}

section.block-faq {
  h2 + h3 {
    padding-top: 80px;
  }
  .accordion {
    padding-top: 30px;
  }
  .inner-wrap {
    width: 940px;
    max-width: 100%;
  }
}

section.block-header {
  padding: 0;
  color: white;

  &:has(.header-infobox) .inner-wrap {
    margin-bottom: 122px;
  }

  .inner-wrap {
    min-height: calc(100vh - 122px);
  }

  .container {
    position: relative;
    z-index: 1;

    align-self: stretch;
    display: flex;
    align-items: center;
  }

  h1 {
    margin-bottom: 0;
    width: fit-content;
  }

  h1:last-of-type {
    margin-bottom: 35px;
  }

  .padded {
    padding: 166px 0;
    width: 965px;
    max-width: 100%;
  }

  .header-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
  }

  .header-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark);
    opacity: 0.85;
    pointer-events: none;
  }

  .header-buttons {
    margin-top: 40px;
    gap: 20px;
  }

  .button:hover {
    border-color: white;
  }

  .header-buttons .button {
    min-width: 300px;
  }

  .header-top-text {
    margin-bottom: 15px;
  }

  .header-numbers-facts-wrap {
    margin-top: 80px;
  }

  .header-numbers-facts {
    padding: 6px 0 20px 0;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    width: fit-content;
    gap: 40px;

    .number-value {
      font-size: 40px;
      font-weight: 900;
      line-height: normal;
    }

    .value {
      color: var(--red);
    }
  }
  a.header-infobox:hover svg {
    transform: scale(1.1);
  }
  .header-infobox {
    right: 0;
    bottom: -122px;
    margin-top: -22px;
    padding: 27px 37px;
    border-radius: 10px;
    background-color: var(--red);
    gap: 65px;
    text-decoration: none;

    &::before {
      content: "";
      position: absolute;
      top: -19px;
      left: 50%;
      width: 20px;
      height: 20px;
      background: var(--red);
      clip-path: polygon(50% 0, 100% 100%, 0 100%);
      transform: translateX(-50%);
    }

    h2 {
      font-size: 24px;
      margin-bottom: 10px;
    }

    .icon-wrap {
      width: 80px;
      height: 80px;
      background-color: white;
      box-shadow: 0px 3px 6px var(--grey-2);
      margin-bottom: -67px;

      svg {
        height: 25px;
        width: auto;
      }
    }
  }
}

section.block-infoboxen {
  &.bg-gray {
    .infobox-item {
      background-color: white;
    }
  }
  .row {
    padding-top: 70px;
    --bs-gutter-x: 17px;
    row-gap: 20px;
  }
  .row:only-child {
    padding-top: 0;
  }
  h3 {
    font-size: 18px;
    color: var(--red);
  }
  .infobox-item {
    border-radius: 10px;
    background-color: var(--grey);
    padding: 40px;
    text-decoration: none;
    height: 100%;
  }
  a.infobox-item:hover {
    outline: 1px solid var(--red);
  }
  a.infobox-item:hover svg path {
    fill: var(--red);
  }
  .icon-wrap {
    margin-top: 20px;
  }
  svg {
    width: 33px;
    height: 33px;
  }
}

section.block-icon-boxen {
  &.bg-gray {
    .icon-box {
      background-color: white;
    }
    .box-icon {
      background-color: var(--grey);
    }
  }
  .row {
    padding-top: 70px;
    --bs-gutter-x: 14px;
    row-gap: 14px;
  }
  .row:only-child {
    padding-top: 0;
  }
  h3 {
    font-size: 18px;
    color: var(--red);
    margin-bottom: 10px;
  }
  .icon-box {
    padding: 25px;
    width: 100%;
    height: 100%;
    aspect-ratio: 1;
    border-radius: 10px;
    background-color: var(--grey);
    text-decoration: none;
  }
  .icon-box--no-ratio {
    aspect-ratio: unset;
  }
  a.icon-box:hover {
    i,
    svg {
      transform: scale(1.1);
    }

    i,
    svg path {
      color: var(--red) !important;
    }
  }
  .box-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    background-color: white;
    flex-shrink: 0;

    i {
      font-size: 30px;
      transition: all 0.2s ease-in-out;
    }

    svg {
      height: 30px;
      width: auto;
      transition: all 0.2s ease-in-out;
    }
  }
}

section.block-service-boxen {
  .row {
    padding-top: 74px;
    row-gap: 94px;

    > [class*="col-"] {
      display: flex;
      flex-direction: column;
    }
  }
  .row:only-child {
    padding-top: 0;
  }

  .stripe {
    width: 100%;
    flex-shrink: 0;

    &.big {
      height: 37px;
      background-color: var(--red);
    }

    &.medium {
      height: 28px;
      background-color: var(--red-2);
    }

    &.small {
      height: 15px;
      background-color: var(--red-2);
    }
  }

  .box-icon {
    background-color: var(--red);
    width: 70px;
    height: 70px;
    margin-left: auto;
    margin-right: auto;
    border-width: 4px;
    border-style: solid;
    margin-bottom: -50px;
    position: relative;
    flex-shrink: 0;
  }

  .service-box {
    border-radius: 10px;
    border: 1px solid var(--red);
    overflow: hidden;

    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .inner-box {
    padding: 30px 72px;
    background-color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .button {
    margin-top: 25px;
    min-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  i {
    font-size: 25px;
  }

  .box-text {
    p:has(strong) {
      margin-bottom: 25px;
    }

    strong {
      font-weight: 900;
      color: var(--red);
      text-transform: uppercase;
    }
  }
}

section.block-bildergalerie {
  padding-bottom: 0;

  &.bg-gray {
    .container-wrap {
      background: linear-gradient(
        to bottom,
        var(--grey) 0,
        var(--grey) calc(25% - 14px),
        white calc(25% - 14px),
        white 100%
      );
    }
  }

  .tag {
    margin-bottom: 10px;
  }

  .container-wrap {
    background: linear-gradient(
      to bottom,
      white 0,
      white calc(25% - 14px),
      var(--grey) calc(25% - 14px),
      var(--grey) 100%
    );
    padding-bottom: 100px;
  }
  h2 {
    margin-bottom: 30px;
  }

  .button {
    margin-top: 30px;
    min-width: 300px;
  }

  .bildergalerie-text {
    margin-bottom: 94px;
  }

  .bildergalerie-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 918px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  &.layout-odd {
    .gallery-item {
      &.gallery-item--wide {
        grid-column: 1 / -1;
        width: 100%;

        img {
          aspect-ratio: 2 / 1;
        }
      }
    }
  }

  .gallery-item {
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: none;

    img {
      display: block;
      width: 100%;
      height: 100%;
      aspect-ratio: 1 / 1;
      object-fit: cover;
    }
  }

  .bildergalerie-modal {
    .modal-dialog {
      max-width: calc(100vw - 40px);
    }

    .modal-content {
      border: 0;
      background: transparent;
    }

    .modal-body {
      position: relative;
      padding: 0;
    }

    img {
      display: block;
      max-width: calc(100vw - 40px);
      max-height: calc(100vh - 40px);
      width: auto;
      height: auto;
      margin: auto;
    }

    .btn-close {
      position: fixed;
      top: 15px;
      right: 15px;
      z-index: 1;
      background-color: #fff;
    }
  }
}

section.block-aktuelles,
section.block-alle-news {
  a.aktuelles-post-inner {
    gap: 15px;
    text-decoration: none;

    &:hover h3 {
      color: var(--red);
    }

    &:hover .aktuelles-post-link {
      text-decoration: underline;
    }
  }
  h3 {
    font-size: 18px;
    margin-bottom: 0;
  }
  .aktuelles-post-title {
    text-decoration: none;
  }
  .aktuelles-post:not(.aktuelles-post:first-of-type) {
    padding-top: 25px;
    border-top: 2px solid var(--red);
  }
  .aktuelles-post-link {
    color: var(--red);
    font-weight: 700;
    gap: 10px;
  }
}

section.block-alle-news {
  &.bg-gray {
    .thumbnail-wrap img {
      background-color: white;
    }
  }
  .row {
    row-gap: 60px;
  }
  .textcontent.top {
    margin-bottom: 70px;
  }
  .thumbnail-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 10px;
    background-color: var(--grey);
  }
}

section.block-aktuelles {
  .aktuelles-posts {
    gap: 25px;
  }
  h2 {
    margin-bottom: 40px;
  }
  h2.offset {
    margin-top: 31px;
  }
  .tag {
    margin-bottom: 7px;
  }
}

section.block-kundenstimmen {
  &.bg-gray {
    .kundenstimme {
      background-color: white;
    }
    .kundenstimme-image {
      border: 1px solid var(--grey-3);
    }
  }

  .kundenstimmen-grid,
  .kundenstimmen-list {
    padding-top: 84px;
  }

  .kundenstimmen-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 17px;
    justify-content: center;
  }

  .slick-slide > div {
    display: flex;
    width: 100%;
    flex-direction: column;
  }

  .kundenstimme {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    padding: 45px 50px 50px;
    background-color: var(--grey);
    flex: 1;
    height: auto;
  }

  .kundenstimme-content {
    flex: 1;
    padding-bottom: 14px;
  }
  .kundenstimme-image img {
    object-fit: contain;
  }
  .kundenstimme-image {
    width: 125px;
    height: 125px;
    background-color: white;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 25px;
  }
  .kundenstimme-name {
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 5px;
  }
  .kundenstimme-content {
    padding-bottom: 14px;
  }
  hr {
    margin-bottom: 19px;
    margin-top: 19px;
    color: var(--grey-3);
    width: 80px;
    margin-left: auto;
    margin-right: auto;
    opacity: 1;
  }
  blockquote {
    margin-bottom: 0;
  }
}

section.block-kunden {
  &.bg-gray {
    .kunden-logos-wrapper {
      mask-image: linear-gradient(
        to right,
        transparent,
        var(--grey) 10%,
        var(--grey) 90%,
        transparent
      );
      -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        var(--grey) 10%,
        var(--grey) 90%,
        transparent
      );
    }
  }
  &:not(.block-kunden:has(.kunden-text)) {
    padding: 8px 0;
  }
  h2,
  h3 {
    margin-bottom: 40px;
  }

  .kunden-logos-wrapper {
    width: 100%;
    overflow: hidden;

    mask-image: linear-gradient(
      to right,
      transparent,
      white 10%,
      white 90%,
      transparent
    );
    -webkit-mask-image: linear-gradient(
      to right,
      transparent,
      white 10%,
      white 90%,
      transparent
    );
  }

  .kunden-logos {
    --logo-width: 200px;
    --logo-height: 200px;
    --logo-gap: clamp(60px, 8vw, 180px);
    --animation-duration: 60s;

    display: flex;
    width: max-content;

    animation: kunden-logos-ticker var(--animation-duration) linear infinite;
    will-change: transform;
  }

  .kunden-logos-group {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: var(--logo-gap);

    flex-shrink: 0;
    min-width: 100vw;

    padding-inline: var(--logo-gap);
    box-sizing: border-box;
  }

  .logo-item {
    width: var(--logo-width);
    height: var(--logo-height);

    flex: 0 0 var(--logo-width);

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-item a {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .logo-item img {
    display: block;

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
  }

  .kunden-logos-wrapper:hover .kunden-logos {
    animation-play-state: paused;
  }
}

section.block-case-studies {
  h3 {
    font-size: 18px;
    line-height: normal;
    margin-bottom: 11px;
  }
  .fs-tiny {
    line-height: 20px;
  }
  .casestudy-content {
    padding: 17px 20px;
    background-color: white;
    margin-top: 10px;
  }
  .casestudy-image img {
    aspect-ratio: 1;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .casestudy-content,
  .casestudy-image img {
    border-radius: 10px;
  }
  .case-studies-list {
    padding-top: 73px;
  }
}

section.block-graue-boxen {
  &.bg-gray {
    .graue-box {
      background-color: white;
    }
  }
  .row {
    padding-top: 65px;
    row-gap: 30px;
  }
  .row:only-child {
    padding-top: 0;
  }
  .tag {
    margin-bottom: 20px;
  }
  .graue-box {
    padding: 63px 45px;
    border-radius: 10px;
    background-color: var(--grey);
  }
  .box-text h2 {
    font-size: 24px;
    line-height: 33px;
    margin-bottom: 20px;
  }
  .box-text a {
    color: var(--red);
    text-decoration: none;
    font-weight: bold;

    &:hover {
      text-decoration: underline;
    }
  }
  .button {
    margin-top: 20px;
    min-width: 370px;

    &:hover {
      background-color: transparent;
    }
  }
}

section.block-box-schraege-linien {
  padding: 0;

  .tag {
    margin-bottom: 20px;
  }

  .box-content {
    width: 940px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .inner-wrap {
    padding: 100px 0;
  }
  h2 {
    font-size: 24px;
  }
  .button {
    margin-top: 45px;
    min-width: 300px;

    &:hover {
      background-color: transparent;
    }
  }
  .diagonal {
    width: 100%;
    height: 103px;

    &.top {
      clip-path: polygon(0 0, 100% 100%, 0 100%);
      margin-bottom: -1px;
    }
    &.bottom {
      clip-path: polygon(0 0, 100% 0, 0 100%);
      margin-top: -1px;
    }
  }
}

section.block-vorteil-boxen.bg-gray + section.block-vorteil-boxen.bg-gray,
section.block-vorteil-boxen.bg-white + section.block-vorteil-boxen.bg-white {
  padding-top: 0;
}

section.block-vorteil-boxen {
  .row {
    padding-top: 42px;
    row-gap: 40px;
  }
  .row:only-child {
    padding-top: 0;
  }
  .box-image {
    margin-bottom: 20px;
    padding: 8px;
    border-radius: 10px;
    outline: 1px dashed transparent;
    transition: all 0.2s ease-in-out;
  }
  .box-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }
  .vorteil-box:hover .box-image {
    outline: 1px dashed var(--red);
  }
}

section.block-box-anrufen {
  strong {
    font-weight: 900;
  }
  .button {
    margin-top: 15px;
    min-width: 300px;

    &:hover {
      background-color: transparent;
    }
  }
}

section.block-textbox {
  h2 {
    margin-bottom: 40px;
  }
  a {
    font-weight: bold;
    text-decoration: none;
    color: var(--red);

    &:hover {
      text-decoration: underline;
    }
  }
  .textbox-content {
    width: 940px;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

section.block-fortschrittsboxen {
  p:not(p:last-of-type) {
    margin-bottom: 9px;
  }

  strong {
    font-weight: 900;
  }

  i {
    color: white;
    font-size: 20px;
  }

  .items-wrap {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 14px;
    row-gap: 40px;
  }

  .fortschritt-item {
    flex: 1 1 0;
    min-width: 0;
    gap: 32px;

    &.alt {
      .box-text {
        background-color: var(--red);
        color: white;
      }

      .box-icon {
        background-color: var(--red);
      }

      .box-text::before {
        content: "";
        position: absolute;
        bottom: -16px;
        left: 50%;
        width: 26px;
        height: 17px;
        background-color: inherit;
        clip-path: polygon(0 0, 100% 0, 50% 100%);
        transform: translateX(-50%);
      }
    }

    &:not(.alt) {
      strong {
        color: var(--red);
      }

      .box-text::before {
        content: "";
        position: absolute;
        top: -16px;
        left: 50%;
        width: 26px;
        height: 17px;
        background-color: inherit;
        clip-path: polygon(50% 0, 100% 100%, 0 100%);
        transform: translateX(-50%);
      }
    }

    .box-icon {
      flex: 0 0 75px;
      width: 75px;
      height: 75px;
      background-color: #58585a;
    }

    .box-text {
      display: flex;
      flex: 1;
      flex-direction: column;
      justify-content: center;

      width: 100%;
      background-color: white;
      border-radius: 10px;
      padding: 33px 30px;
    }

    a {
      text-decoration: none;
      font-weight: bold;

      &:hover {
        text-decoration: underline;
      }
    }
  }
}

section.block-schritte {
  &.bg-white {
    .schritt-item {
      background-image: linear-gradient(var(--grey), var(--grey));
    }
    .step-number {
      background-color: white;
    }
  }

  .tag {
    margin-bottom: 3px;
  }
  .button {
    min-width: 300px;
    &:hover {
      background-color: transparent;
    }
  }

  .schritte-list {
    padding-top: 80px;
  }

  .schritt-wrap {
    position: relative;
    align-items: flex-start;
    gap: 40px;
    width: calc(50% + (75px / 2));

    &:not(:last-child)::after {
      content: "";
      position: absolute;

      top: 75px;

      left: calc(100% - (75px / 2));
      transform: translateX(-50%);

      width: 2px;
      height: calc(100% - 75px);

      background: repeating-linear-gradient(
        to bottom,
        var(--grey-3) 0,
        var(--grey-3) 4px,
        transparent 4px,
        transparent 8px
      );

      pointer-events: none;
    }

    &:nth-of-type(even) {
      flex-direction: row-reverse;
      align-self: flex-end;

      &::after {
        left: calc(75px / 2);
      }
    }
  }

  .schritt-wrap.is-visible {
    .schritt-item {
      animation: step-card-reveal var(--scan-duration) linear forwards;

      &::after {
        animation: step-scan-line var(--scan-duration) linear forwards;
      }

      > .step-title {
        animation: step-content-reveal 300ms ease-out 180ms forwards;
      }

      > .step-text {
        animation: step-content-reveal 400ms ease-out 350ms forwards;
      }

      > .step-red-box-text {
        animation: step-red-box-reveal 300ms ease-out 750ms forwards;
      }
    }
  }

  .schritt-item {
    padding: 76px 40px;
    border-radius: 10px;
    width: 100%;
    margin-bottom: 112px;
    position: relative;

    background-color: transparent;
    background-image: linear-gradient(white, white);
    background-repeat: no-repeat;
    background-position: top;
    background-size: 100% 0;

    --scan-duration: 1000ms;
    --scan-color: white;

    /* Inhalte sind vor der Animation unsichtbar */
    > .step-title,
    > .step-text,
    > .step-red-box-text {
      opacity: 0;
    }

    > .step-title,
    > .step-text {
      transform: translateY(8px);
    }

    /* Scan-Linie */
    &::after {
      content: "";
      position: absolute;
      z-index: 5;
      top: 0;
      left: 10px;

      width: calc(100% - 20px);
      height: 1px;

      background: linear-gradient(
        90deg,
        transparent 0%,
        var(--scan-color) 12%,
        #fff 50%,
        var(--scan-color) 88%,
        transparent 100%
      );

      box-shadow:
        0 0 4px var(--scan-color),
        0 0 10px rgba(255, 32, 56, 0.85),
        0 0 18px rgba(255, 32, 56, 0.5);

      opacity: 0;
      pointer-events: none;
    }

    strong {
      font-weight: 900;
      color: var(--red);
    }

    p:has(strong) {
      margin-bottom: 10px;
    }

    .step-red-box-text {
      color: white;
      padding: 14px;
      border-radius: 10px;
      background-color: var(--red);
      min-width: 95px;
      max-width: 100%;
      width: fit-content;
      position: absolute;
      bottom: -22px;
    }
  }

  .step-number {
    position: relative;
    z-index: 1;

    font-size: 24px;
    font-weight: 900;
    width: 75px;
    height: 75px;
    border: 2px solid var(--grey-3);
    flex-shrink: 0;
    background-color: var(--grey);
    transition: all 0.2s ease-in-out;
  }
  .step-number.is-active {
    border-color: var(--red);
    color: var(--red);
  }
}

#km_form_1tool_11T,
#km_form_758_1 { 

  .km_input {
    width: 100%;
    margin-bottom: 14px;

    &:has(#captcha_text) {
      width: 32%;

      img {
        width: 200px;
        height: 50px;
      }
    }

    input {
      border: 1px solid var(--grey-4) !important;
    }
  }
  #km_privacy_text {
    margin-bottom: 20px !important;
  }

  #km_privacy_anchor {
    color: var(--red) !important;
    text-decoration: none !important;

    &:hover {
      text-decoration: underline !important;
    }
  }
}





@keyframes step-card-reveal {
  from {
    background-size: 100% 0;
  }

  to {
    background-size: 100% 100%;
  }
}

@keyframes step-scan-line {
  0% {
    top: 0;
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  90% {
    opacity: 1;
  }

  100% {
    top: calc(100% - 2px);
    opacity: 0;
  }
}

@keyframes step-content-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes step-red-box-reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  section.block-schritte {
    .schritt-item {
      background-size: 100% 100%;
      animation: none;

      &::after {
        display: none;
      }

      > .step-title,
      > .step-text,
      > .step-red-box-text {
        opacity: 1;
        transform: none;
        animation: none;
      }
    }
  }
}

section.block-formular {
  &:has(.formular-bottom-image) {
    padding-bottom: 0;

    .inner-wrap {
      padding-bottom: 166px;
    }
  }
  &.bg-gray {
    form {
      background-color: white;
    }
    textarea,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="file"] {
      border: 1px solid var(--grey-3);
    }
  }
  .formular-bottom-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
  }
  .formular-bottom-image img {
    width: 100%;
    height: auto;
  }
  .inner-wrap {
    width: 940px;
    max-width: 100%;
  }
  h2 {
    font-size: 20px;
    line-height: 28px;
  }
  .formular-content {
    padding-top: 24px;
  }
  .group {
    gap: 20px;
  }
  .group > div {
    flex: 1 1 0;
    min-width: 0;
  }
  textarea,
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="file"] {
    width: 100%;
    background-color: white;
  }

  label {
    margin-bottom: 15px;
  }

  form {
    gap: 40px;
    border: 1px dashed #707070;
    border-radius: 10px;
    background-color: var(--grey);
    padding: 40px;
  }
  .checkbox-wrap {
    gap: 20px;
  }
  button[type="submit"] {
    min-width: 210px;

    &:hover {
      background-color: transparent;
    }
  }
  input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 1px solid #707070;
    transform: translateY(2px);
  }
  p a {
    text-decoration: none;
    color: var(--red);

    &:hover {
      text-decoration: underline;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .kunden-logos {
    animation: none;
  }
}

@keyframes kunden-logos-ticker {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 1199.99px) {
  header {
    .header-content {
      display: flex;
      flex-wrap: nowrap;
      align-items: center;
      gap: 30px;
    }

    .header-logo {
      flex: 0 0 auto;
    }

    /*
     * Auf Desktop wird der mobile Panel-Wrapper
     * zur horizontalen rechten Header-Gruppe.
     */
    .header-navigation {
      display: flex !important;
      flex: 1 1 auto;
      align-items: center;
      justify-content: flex-end;
      width: auto;
      gap: 30px;
    }

    .main-navigation {
      width: auto;
    }

    .main-menu {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      width: auto;
      gap: 30px;
      row-gap: 10px;
    }

    .header-button {
      display: inline-flex;
      flex: 0 0 auto;
    }

    .header-translator {
      flex: 0 0 auto;
      width: auto;
      margin-top: 0;
      padding: 0;
    }

    .menu-toggle {
      display: none;
    }

    li.menu-item-has-children {
      position: relative;

      .sub-menu-toggle {
        display: none;
      }

      > ul.sub-menu {
        position: absolute;
        top: calc(100% + 20px);
        left: 0;
        display: none;
        min-width: 200px;
        padding: 10px 15px;
        border-radius: 10px;
        background-color: var(--grey);

        &::before {
          content: "";
          position: absolute;
          top: -20px;
          left: 0;
          width: 100%;
          height: 20px;
          background: transparent;
        }
      }

      &:hover > ul.sub-menu,
      &:focus-within > ul.sub-menu {
        display: block;
      }
    }
  }
}

@media (min-width: 1199.99px) and (max-width: 1599.99px) {
  header {
    li a {
      font-size: 12px;
    }
  }
}

@media (min-width: 1199.99px) and (max-width: 1499.99px) {
  #google_language_translator .goog-te-gadget .goog-te-combo {
    font-size: 10px;
    padding: 8px 15px !important;
    width: 170px;
    min-height: 34px;
  }
  header {
    button,
    .button {
      font-size: 10px;
      padding: 8px 15px;
    }

    .header-content {
      gap: 15px;
    }

    img.logo {
      width: 100px;
    }

    .header-navigation {
      gap: 15px;
    }

    .main-menu {
      gap: 15px;
    }
  }
}

@media (min-width: 1499.99px) {
  section.block-service-boxen {
    .row {
      --bs-gutter-x: 82px;
    }
  }
  section.block-graue-boxen {
    .row {
      --bs-gutter-x: 80px;
    }
  }
  section.block-vorteil-boxen {
    .row {
      --bs-gutter-x: 110px;
    }
  }
  section.block-bild-und-text {
    .row {
      --bs-gutter-x: 105px;
    }
  }
  section.block-alle-news {
    .row {
      --bs-gutter-x: 40px;
    }
  }
}

@media (max-width: 1199.98px) {
  header {
    padding-top: 20px;
    padding-bottom: 20px;

    .flex-group,
    .main-menu {
      gap: 30px;
    }

    img.logo {
      width: 180px;
    }

    .bottom {
      position: fixed;
      background-color: white;
      width: 100%;
      left: 0;
      top: 95.16px;
      padding: 0;
      max-height: calc(100vh - 95.16px);
      overflow: auto;
      box-shadow: 0 3px 6px var(--grey-2);
    }

    .bottom ul.main-menu > li {
      border-bottom: 1px solid var(--grey);
    }

    .bottom li {
      padding: 13px 20px;
    }

    .bottom li a {
      font-size: 16px;
      font-weight: 400;
      line-height: 1.6;
    }

    .bottom .menu-item-has-children {
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      align-items: center;
      column-gap: 10px;
    }

    .bottom .sub-menu-toggle {
      appearance: none;
      display: flex;
      align-items: center;
      justify-content: center;
      border: 0;
      background: transparent;
      padding: 0;
      color: inherit;
      cursor: pointer;
      line-height: 1;

      i {
        transition: transform 200ms ease;
      }
    }

    .bottom .menu-item-has-children.sub-menu-open {
      > .sub-menu-toggle i {
        transform: rotate(180deg);
      }
    }

    .bottom .sub-menu {
      display: none;
      grid-column: 1 / -1;
      width: 100%;
      margin-top: 13px;
      padding-left: 10px;

      li {
        padding-bottom: 13px;
        padding-top: 0;
        padding-left: 0;
        padding-right: 0;
      }
      li:last-child {
        padding-bottom: 0;
      }
    }
    .custom-language-wrapper {
      .dropdown-menu {
        inset: 0px auto auto 70px !important;
      }
    }
  }
}

@media (max-width: 1499.98px) {
  .slick-slider {
    .slick-prev {
      left: 0;
      z-index: 1;
    }
    .slick-next {
      right: 0;
    }
  }
  section.block-header {
    .header-infobox {
      right: 20px;
      max-width: calc(100% - 40px);
      gap: 0;
      width: 480px;
      flex-direction: column;
    }
    .header-infobox div:first-child {
      align-self: start;
      padding-bottom: 20px;
    }
  }
}

@media (max-width: 1399.98px) {
  footer {
    .primary-content {
      .footer-group {
        gap: 40px;
      }
    }
  }
}

@media (max-width: 1199.98px) {
  footer {
    .primary-content {
      .textcontent p {
        margin-bottom: 30px;
      }
      .socials {
        margin-top: 11px;
      }
      .footer-menu {
        gap: 30px;
      }

      .footer-content {
        column-gap: 100px;
      }
      .footer-group {
        gap: 30px;
        flex-direction: column;
      }
    }
  }
  section.block-icon-boxen {
    .icon-box {
      padding: 30px;
      aspect-ratio: unset;
    }
  }
  section.block-fortschrittsboxen {
    .items-wrap {
      flex-wrap: wrap !important;
    }

    .fortschritt-item {
      flex: 1 1 calc(50% - 14px);
    }
  }
}

@media (max-width: 991.98px) {
  h1,   
  h1:not(.block-header h1),
  h1:not(.privacy-heading) {
    font-size: 36px;
    line-height: 1;
    hyphens: none;
    -webkit-hyphens: none !important;
    -moz-hyphens: none !important;
    -ms-hyphens: none !important;
  }

  h1.post-title {
    hyphens: auto !important;
    -webkit-hyphens: auto !important;
    word-break: auto !important;
    word-wrap: anywhere !important;
    -moz-hyphens: auto !important;
    -ms-hyphens: auto !important;
  }

  h2 {
    font-size: 26px;
    line-height: 32px;
    /* hyphens: auto; */
  }

  .button {
    min-width: unset !important;
  }

  section.block-formular {
    form {
      padding: 30px;
    }
  }

  section.block-schritte {
    .schritt-wrap {
      &:nth-last-child(2)::after {
        height: calc(100% + 20px);
      }
    }
    .schritte-list {
      padding-top: 30px;
    }
  }

  section.block-textbox {
    h2 {
      margin-bottom: 20px;
    }
  }

  section.block-box-anrufen {
    padding: 40px 0;
  }

  section.block-graue-boxen {
    .row {
      padding-top: 30px;
    }
  }

  section.block-infoboxen {
    .row {
      padding-top: 30px;
    }
  }

  section.block-case-studies {
    .case-studies-list {
      padding-top: 30px;
    }
  }

  section.block-vorteil-boxen {
    .row {
      padding-top: 30px;
    }
  }

  section.block-icon-boxen {
    .row {
      padding-top: 30px;
    }
  }

  section.block-service-boxen {
    .row {
      padding-top: 30px;
      row-gap: 40px;
    }
    .box-text {
      p:has(strong) {
        margin-bottom: 20px;
      }
    }
  }

  section.block-faq {
    h2 + h3 {
      padding-top: 30px;
    }
  }

  section.block-kundenstimmen {
    .kundenstimmen-grid,
    .kundenstimmen-list {
      padding-top: 30px;
    }
  }

  section.block-header {
    .header-top-text {
      font-size: 14px;
    }
  }

  section.block-aktuelles {
    h2.offset {
      margin-top: 80px;
    }
  }

  section.block-schritte {
    .schritt-item {
      z-index: 1;
    }
    .schritt-wrap {
      flex-direction: column-reverse;
      align-items: center;
      gap: 20px;
      width: 100%;
      &:nth-of-type(even) {
        flex-direction: column-reverse;
        align-self: center;
      }
      &:not(:last-child)::after {
        left: 0;
        right: 0;
        margin: auto;
      }
    }
  }

  section.block-bildergalerie {
    h2 {
      margin-bottom: 20px;
    }
  }
}

@media (max-width: 767.98px) {
  .button {
    hyphens: auto;
    -webkit-hyphens: none !important;
    -moz-hyphens: none !important;
    -ms-hyphens: none !important;
  }
  form {
    label {
      position: relative;
    }
    .custom-tooltip-wrap {
      position: static !important;
      .custom-tooltip {
        padding: 12px 10px;
        width: 100%;
        left: 0;

        &::before {
          left: 0;
          right: 0;
          margin-left: auto;
          margin-right: auto;
        }
      }
    }
  }
  footer {
    .secondary-content {
      font-size: 14px;
    }
  }
  aside {
    right: 20px;
    top: unset;
    bottom: 20px;
    margin: unset;
  }

  section.block-bild-und-text {
    h2 {
      margin-bottom: 20px;
    }
    a.button {
      margin-top: 30px;
    }
    .bild-text-image,
    .bild-text-image img {
      width: 100%;
      height: auto;
    }
  }

  section.block-formular {
    &:has(.formular-bottom-image) {
      .inner-wrap {
        padding-bottom: 100px;
      }
    }
    form {
      padding: 20px;
    }
    .group {
      gap: 40px;
      flex-direction: column;
    }
  }
  section.block-graue-boxen {
    .graue-box {
      padding: 30px;
    }
  }
  section.block-service-boxen {
    .inner-box {
      padding: 30px;
    }
  }
  section.block-header {
    .padded {
      padding-top: 40px;
      padding-bottom: 120px;
    }
    .header-infobox {
      padding-left: 20px;
      padding-right: 20px;
      width: calc(100% - 40px);
    }
    .header-numbers-facts {
      margin-top: 60px;
      gap: 20px;
      flex-direction: column;
      width: 100%;

      .number-value {
        font-size: 24px;
      }
    }
  }
  section.block-bildergalerie {
    .bildergalerie-grid {
      grid-template-columns: 1fr;
    }

    &.layout-odd {
      .gallery-item {
        &.gallery-item--wide {
          grid-column: auto;
        }
      }
    }
  }
  section.block-fortschrittsboxen {
    .fortschritt-item {
      flex-basis: 100%;

      &.alt {
        .box-text::before {
          top: -16px;
          bottom: unset;
          clip-path: polygon(50% 0, 100% 100%, 0 100%);
        }
      }
    }
  }
  section.block-schritte {
    .schritt-item {
      padding: 60px 30px;
    }
  }
}

@media (max-width: 575.98px) {
  section.block-header {
    .header-buttons .button {
      width: 100%;
    }
  }

  section.block-formular {
    button[type="submit"] {
      min-width: unset;
      width: 100%;
    }
  }

  section.block-graue-boxen {
    .button {
      width: 100%;
    }
  }
}


