
  /* =========================================================
     1) LOTTIE – Layout & Container
  ========================================================= */
  .lottie-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
  }
  .lottie-container {
    width: 100%;
  }
  .lottie-container svg {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-width: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    shape-rendering: geometricPrecision;
    text-rendering: geometricPrecision;
  }
  /* Mobile: Lottie container custom code */
  @media (max-width: 767px) {
    .lottie-container-customcode {
      display: flex;
      justify-content: center;
      align-items: center;

      /* iOS Safari fix: enforce real height, not only max-height */
      height: 40vh;
      max-height: 40vh;
    }

    /* Prevent Webflow embed from collapsing */
    .lottie-container-customcode .w-embed {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 0;
    }

    /* Wrapper uses parent height, width via aspect-ratio */
    .lottie-container-customcode .lottie-wrapper {
      height: 100%;
      width: auto;
      max-width: 100%;
    }

    /* Lottie container fills wrapper */
    .lottie-container-customcode .lottie-container {
      width: 100%;
      height: 100%;
    }
  }

  /* =========================================================
     1b) LOTTIE – Toggle Button
  ========================================================= */
  .lottie-toggle {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 2;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(0,0,0,.12);
    font-size: 14px;
    line-height: 1;
    color: var(--almost-black);
    cursor: pointer;
    opacity: .9;
    transition: opacity .2s ease;
  }
  .lottie-toggle:hover,
  .lottie-toggle:focus-visible {
    opacity: 1;
  }
  .lottie-wrapper[data-no-anim="true"] .lottie-toggle {
    display: none;
  }

  /* =========================================================
     1c) LOTTIE – Icon (SVG via mask, no emoji)
     - Uses currentColor (set on .lottie-toggle)
  ========================================================= */
  .lottie-icon {
    width: 14px;
    height: 14px;
    display: block;
    background-color: currentColor;

    /* Safari/iOS needs -webkit-mask-* */
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;

    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
  }

  /* Default (if state is missing): show Pause (playing) */
  .lottie-toggle .lottie-icon,
  .lottie-toggle[data-state="playing"] .lottie-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='4' width='4' height='16'/%3E%3Crect x='14' y='4' width='4' height='16'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='4' width='4' height='16'/%3E%3Crect x='14' y='4' width='4' height='16'/%3E%3C/svg%3E");
  }

  .lottie-toggle[data-state="paused"] .lottie-icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='8,5 19,12 8,19'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpolygon points='8,5 19,12 8,19'/%3E%3C/svg%3E");
  }

  /* =========================================================
     2) COUNTER – Zahl + Einheit stabil halten
  ========================================================= */
  [counter-wrapper] {
    display: inline-flex;
    align-items: baseline;
    gap: 0.15em;
  }
  [counter-element="number"] {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    white-space: nowrap;
  }
  [counter="unit"] {
    white-space: nowrap;
  }

  /* =========================================================
     3) LOGO WALL
  ========================================================= */
  .logo-wall {
    display: inline-block;
    filter: grayscale(100%) saturate(0.8);
    transform: translateZ(0) scale(1) !important;
    transform-origin: center;
    transition: filter 0.3s ease, transform 0.3s ease;
    will-change: filter, transform;
  }
  .logo-wall:hover {
    filter: grayscale(0%) saturate(1);
    transform: translateZ(0) scale(1.04) !important;
  }

  /* =========================================================
     4) TEXTAREA – Nur vertikal resizebar + Fake-Grip
  ========================================================= */
  textarea.text-field.is-growing {
    resize: vertical !important;
    background-repeat: no-repeat;
    background-position: right 2px bottom 2px;
    background-size: 14px 14px;
    padding-right: calc(18px + 14px);
    padding-bottom: calc(18px + 14px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M6 13 L13 6' stroke='%23999999' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M9 13 L13 9' stroke='%23999999' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  }
  textarea.text-field.is-growing::-webkit-resizer {
    opacity: 0;
  }

  /* =========================================================
     5) CHECKBOX – Styling
  ========================================================= */
  .w-checkbox-input.checkbox,
  .w-checkbox-input.w-checkbox-input {
    width: 24px;
    height: 24px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid var(--dark-gray);
    border-radius: 6px;
    background: white;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }
  .w-checkbox-input.checkbox:hover,
  .w-checkbox-input.w-checkbox-input:hover {
    border-color: #0404b8;
  }
  .w-checkbox-input.checkbox:checked,
  .w-checkbox-input.w-checkbox-input:checked {
    background-color: var(--human-blue);
    border-color: var(--human-blue);
  }
  .w-checkbox-input.checkbox:checked:hover,
  .w-checkbox-input.w-checkbox-input:checked:hover {
    background-color: #0404b8;
    border-color: #0404b8;
  }
  .w-checkbox-input.checkbox:checked::after,
  .w-checkbox-input.w-checkbox-input:checked::after {
    content: "";
    width: 11px;
    height: 7px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
    transform-origin: center;
    display: block;
  }

  /* =========================================================
     6) SLIDER NAV – Tablet/Mobile Tweaks
  ========================================================= */
  @media screen and (max-width: 991px) {
    .slider__nav.slider__nav--prev.w-slider-arrow-left {
      left: 10px !important;
      right: auto !important;
    }
    .slider__nav.slider__nav--prev {
      margin-left: 0px;
    }
    .slider__nav.slider__nav--next.w-slider-arrow-right {
      right: 10px !important;
      left: auto !important;
    }
    .slider__nav.slider__nav--next {
      margin-right: 0px;
    }
  }

  /* =========================================================
     7) TABS – Expandable Bottom
  ========================================================= */
  .w-tab-link .expandable-bottom {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(6px);
    transition:
      max-height 420ms ease,
      opacity 280ms ease,
      transform 280ms ease;
    will-change: max-height, opacity, transform;
  }
  .w-tab-link.is-expanded .expandable-bottom {
    opacity: 1;
    transform: translateY(0);
  }

  /* =========================================================
     8) TAB-CARDS (mit Bild) – Tablet/Mobile: immer ausgeklappt
  ========================================================= */
  @media (max-width: 991px) {
    .tab-card--image .expandable-bottom {
      max-height: none !important;
      opacity: 1 !important;
      transform: none !important;
      overflow: visible !important;
    }
    .tab-card--image .expandable-bottom {
      padding-left: 0 !important;
    }
    .tab-card--image .faq-animated-box {
      display: none !important;
    }
    .tab-card--image.w-tab-link {
      pointer-events: none !important;
      cursor: default !important;
    }
    .tab-card--image.is-expanded .expandable-bottom,
    .tab-card--image.w--current .expandable-bottom {
      max-height: none !important;
    }
  }

  /* =========================================================
     9) TABS (Cards) – Bildcontainer stabilisieren (kein Jump)
  ========================================================= */
  @media (max-width: 991px) {
    .tabs_content-cards.w-tab-content {
      overflow: hidden;
    }
    .tabs_content-cards .tab_pane--cards.w-tab-pane {
      height: 100%;
    }
    .tabs_content-cards .tab_image {
      height: 100%;
      width: 100%;
    }
    .tabs_content-cards .tab_image img {
      width: 100% !important;
      height: 100% !important;
      display: block;
    }
    .tabs_content-cards .tab_pane--cards.w-tab-pane {
      transition-property: opacity !important;
      transition-duration: 300ms !important;
    }
    .tabs_content-cards .tab_image {
      overflow: hidden;
    }
    .tabs_content-cards .tab_image img {
      contain: paint;
      backface-visibility: hidden;
      transform: translateZ(0);
    }
  }

  /* =========================================================
     10) RICHTTEXT & BILDER
  ========================================================= */
  figcaption {
    font-size: 16px !important;
    text-align: left !important;
  }
  .w-richtext figure.w-richtext-align-fullwidth {
    text-align: left !important;
  }
  .w-richtext figure img {
    border-radius: 40px !important;
  }

  /* =========================================================
     11) MASONRY-GRID (Success-Seite)
  ========================================================= */
  .grid--masonry-succes {
    column-count: 2;
    column-gap: 40px;
  }
  .collection-item-masonry-succes {
    break-inside: avoid;
    margin-bottom: 40px;
  }
  @media screen and (max-width: 991px) {
    .grid--masonry-succes {
      column-count: 1;
    }
  }
  @media screen and (max-width: 478px) {
    .collection-item-masonry-succes {
      margin-bottom: 20px;
    }
  }

  /* =========================================================
     12) TYPOGRAFIE & LISTEN
  ========================================================= */
  .h3 {
    font-size: 20px !important;
    font-family: var(--_text---serifenlos);
    line-height: var(--_text---line-height-150);
    font-weight: 500 !important;
    text-align: left;
  }
  ul {
    list-style: none !important;
    padding-left: 0;
    margin-left: 0;
  }
  ul li {
    position: relative;
    padding-left: 20px;
  }
  ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--human-blue);
    font-size: 14px;
    font-weight: 400;
  }

  /* =========================================================
     13) CONTACT-LIST OVERRIDE
  ========================================================= */
  #contact-list {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
  }
  #contact-list li {
    padding-left: 0;
  }
  #contact-list li::before {
    content: none !important;
  }

  /* =========================================================
     14) FORMULAR – Placeholder
  ========================================================= */
  .text-field::placeholder {
    opacity: 1;
  }

  /* =========================================================
     14b) A11Y – Screenreader-only Utility + Honeypot
     - .sr-only: visually hidden but available to assistive tech
     - .sr-only-honeypot: off-screen (better than display:none for some checkers)
  ========================================================= */
  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .sr-only-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
  }

  /* =========================================================
     15) NAVIGATION – Active State
  ========================================================= */
  .current {
    color: var(--almost-black);
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-color: var(--almost-black);
  }
