/* ==========================================================================
   CUSTOM CSS - ASLI TEMPLATE
   ========================================================================== */

/* --------------------------------------------------------------------------
   FOUC: Inhalt erst nach App-Load sichtbar
   Hero bleibt sichtbar – sonst blockiert opacity:0 den LCP hinter dem Preloader.
   -------------------------------------------------------------------------- */
html:not(.preloader-skipped) body:not(.js-app-loaded) #page-wrapper__content > :not(.hero-slider):not(.webprojekte-glitch) {
  visibility: hidden;
}

/* --------------------------------------------------------------------------
                                             Typografie: Fließtext in Content-Sektionen
                                             -------------------------------------------------------------------------- */
#fazit p,
#projekt p,
.listItem p,
#workflow p.h6,
.section-testimonials-grid p.h6,
#modx-backend p.h6,
.galerie p.h6,
.service-detailed-text p,
.stoerer2col p,
.intro p,
.hero-slider__bottom .hero-slider__slide-text>div {
  font-family: var(--h5-font-family);
  font-weight: normal;
  letter-spacing: var(--h5-letter-spacing);
  color: var(--h5-color);
  font-size: calc(var(--h6-min-font-size) * 1.25px + (var(--h6-max-font-size) - var(--h6-min-font-size)) * (100vw - 360px) / 1560);
  line-height: 1.5;
}

.stoerer2col h4,
.stoerer2col p strong,
.service-detailed-text h4 {
  color: #fdf9cf;
}

/* --------------------------------------------------------------------------
                                             Kontaktformular: Checkbox-Labels
                                             -------------------------------------------------------------------------- */
.section-form .input-checkbox,
.form .input-checkbox {
  position: relative !important;
  padding-left: 24px !important;
}

.section-form .input-checkbox__label,
.form .input-checkbox__label {
  white-space: normal !important;
  line-height: 1.4 !important;
  display: inline-block !important;
}

.section-form .input-checkbox__label:before,
.form .input-checkbox__label:before {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 16px !important;
  height: 16px !important;
  font-size: 14px !important;
  margin-right: 0 !important;
  vertical-align: top !important;
  margin-top: 0 !important;
}

/* --------------------------------------------------------------------------
                                             Header & Formular: Mobile / Tablet
                                             -------------------------------------------------------------------------- */
@media screen and (max-width: 575px) {
  .header__col_left.header__col_additional {
    display: none;
  }

  .header__col_center.header__col_logo .logo__wrapper-img {
    max-width: 150px;
  }

  .header__col_center.header__col_logo .logo__img-primary,
  .header__col_center.header__col_logo .logo__img-secondary {
    width: 150px;
    height: auto;
  }

  .header__burger-label {
    display: none;
  }

  .section-form .form__row {
    margin-bottom: 1rem;
  }

  .section-form .input-checkbox__label:before {
    margin-right: 0.5rem !important;
    margin-top: 0.1rem !important;
  }

  .section-form .form__col {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .section-form .input-float__label {
    font-size: 0.875rem;
  }

  .section-form .error {
    font-size: 0.75rem;
    margin-top: 0.25rem;
  }
}

@media screen and (min-width: 576px) and (max-width: 991px) {
  .header__col_center.header__col_logo .logo__wrapper-img {
    max-width: 200px;
  }

  .header__col_center.header__col_logo .logo__img-primary,
  .header__col_center.header__col_logo .logo__img-secondary {
    width: 200px;
    height: auto;
  }
}

@media screen and (min-width: 576px) and (max-width: 767px) {
  .section-form .input-checkbox__label:before {
    margin-right: 0.5rem !important;
    margin-top: 0.1rem !important;
  }
}

/* --------------------------------------------------------------------------
                                             Video-Reel (MODX-Backend-Sektion)
                                             -------------------------------------------------------------------------- */
.modx-video {
  width: 93%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: grayscale(100%) contrast(110%) brightness(50%);
  mix-blend-mode: luminosity;
  transition: filter 0.5s ease;
  margin-left: 1.75rem;
}

.video-reel-container:hover .modx-video {
  filter: grayscale(80%) contrast(115%) brightness(65%);
}

/* ==========================================================================
                                             SCROLL PROGRESS BAR
                                             ========================================================================== */

.scroll-progress-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 10000;
}

.scroll-progress-bar {
  width: 100%;
  height: 100%;
  background: var(--color-accent-dark-theme, #FDF9CF);
  transform: scaleX(0);
  transform-origin: left;
}

/* ==========================================================================
                                             DOT NAVIGATION
                                             ========================================================================== */

.dot-navigation {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9998;
  display: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.dot-navigation.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dot-nav-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.dot-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
}

.dot-nav-item__dot {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  border: 2px solid transparent;
  pointer-events: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.dot-nav-item:hover .dot-nav-item__dot {
  background-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.dot-nav-item.active .dot-nav-item__dot {
  background-color: var(--color-accent-dark-theme, #FDF9CF);
  border-color: var(--color-accent-dark-theme, #FDF9CF);
  transform: scale(1.3);
}

.dot-nav-tooltip {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background-color: var(--color-dark-1, #20211F);
  color: var(--color-light-4, #FFFFFF);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  font-family: var(--font-primary, "Nunito Sans", sans-serif);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dot-nav-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--color-dark-1, #20211F);
}

.dot-nav-item:hover .dot-nav-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@media screen and (min-width: 992px) {
  .dot-navigation {
    right: 1.5rem;
  }
}

@media screen and (min-width: 1024px) {
  .dot-navigation {
    right: 1.6rem;
  }
}

@media screen and (min-width: 1200px) {
  .dot-navigation {
    right: 2rem;
  }
}

@media screen and (min-width: 1400px) {
  .dot-navigation {
    right: 2.25rem;
  }
}

@media screen and (min-width: 1600px) {
  .dot-navigation {
    right: 2.75rem;
  }
}

@media screen and (min-width: 1920px) {
  .dot-navigation {
    right: 3.5rem;
  }
}


@media screen and (max-width: 991px) {
  #introtext .h5 {
    line-height: 2.25rem;
  }

  #content .h6 {
    line-height: 1.5rem;
  }
}

@media screen and (min-width: 992px) {
  .dot-navigation {
    display: block;
  }

  #introtext .h5 {
    line-height: 3rem;
  }

  #content .h6 {
    line-height: 2rem;
  }
}

/* Dot-Navigation ausblenden wenn Menü geöffnet - wird per JavaScript gesteuert */
.dot-navigation.hidden-by-menu {
  display: none !important;
}

@media screen and (min-width: 992px) {

  /* Stelle sicher, dass dot-navigation standardmäßig sichtbar ist */
  .dot-navigation:not(.hidden-by-menu) {
    display: block !important;
  }
}

/* Dot-Navigation z-Index reduzieren wenn Menü geöffnet ist */
.js-header__overlay-container.opened~.dot-navigation {
  z-index: 1 !important;
}

/* Scrollbar sichtbar halten wenn lock-scroll aktiv ist */
.lock-scroll body {
  overflow: hidden !important;
  overflow-y: scroll !important;
}

.masthead__scroll-down.custom {
  bottom: var(--scroll-bottom, auto);
  transform: var(--scroll-transform, none);
}

.masthead__scroll-down.custom.sticky {
  position: sticky;
  top: 50%;
  transform: translateY(-50%);
  bottom: var(--scroll-bottom, auto);
  transform: var(--scroll-transform, none);
}

/* ==========================================================================
                                             SPECIFIC SELECTOR OVERRIDES
                                             ========================================================================== */

#page-wrapper__content>section>div>div>div>div>h2>span.marquee-heading>div>div>div {
  padding: 1rem;
}

h1.color-accent>div>div {
  padding-bottom: 1rem;
}

/* ==========================================================================
                                             PRICING CARDS
                                             ========================================================================== */

.style-service-text {
  /* line-height: 1.6; */
  /* letter-spacing: 0.01em; */
  /* text-align: justify; */
  /* text-justify: inter-word; */
}


/* ==========================================================================
                                             SPLIT TEXT & ANIMATIONS
                                             ========================================================================== */

.js-arts-split-text__line .introtext {
  display: inline-block;
  overflow: hidden;
}

.auto-scroll-next__inner-media {
  display: inline-flex;
  justify-content: center;
  align-items: stretch;
  overflow: hidden;
  height: 70vh;
  max-width: 100%;
  pointer-events: all;
}

/* Split-Text Zeichen Styles fÃƒÂ¼r Mouseover-Animation */
[class*="char"] {
  position: relative !important;
  z-index: 10 !important;
}

.js-arts-split-text__wrapper-line {
  overflow: visible !important;
}

.marquee-header__item {
  overflow: visible !important;
}

.marquee-header__inner.first {
  top: 1.4rem;
}

.marquee-header__inner.third {
  top: -1.1rem;
}

.marquee-crossing-lanes__lane.first {
  top: 1.25rem;
}

.marquee-crossing-lanes__lane.second {
  top: -1.25rem;
}

@media screen and (min-width: 576px) {

  .marquee-header__inner.first {
    top: 1.5rem;
  }

  .marquee-header__inner.third {
    top: -1.3rem;
  }

  .marquee-crossing-lanes__lane.first {
    top: 1.25rem;
  }

  .marquee-crossing-lanes__lane.second {
    top: -1.25rem;
  }

}

@media screen and (min-width: 768px) {

  .marquee-header__inner.first {
    top: 1.75rem;
  }

  .marquee-header__inner.third {
    top: -1.5rem;
  }

  .marquee-crossing-lanes__lane.first {
    top: 1.25rem;
  }

  .marquee-crossing-lanes__lane.second {
    top: -1.25rem;
  }

}

@media screen and (min-width: 992px) {

  .marquee-header__inner.first {
    top: 2.0rem;
  }

  .marquee-header__inner.third {
    top: -1.5rem;
  }

  .marquee-crossing-lanes__lane.first {
    top: 1.25rem;
  }

  .marquee-crossing-lanes__lane.second {
    top: -1.25rem;
  }

}

@media screen and (min-width: 1200px) {

  .marquee-header__inner.first {
    top: 2.25rem;
  }

  .marquee-header__inner.third {
    top: -1.9rem;
  }

  .marquee-crossing-lanes__lane.first {
    top: 1.25rem;
  }

  .marquee-crossing-lanes__lane.second {
    top: -1.25rem;
  }

}

@media screen and (min-width: 1400px) {

  .marquee-header__inner.first {
    top: 2.5rem;
  }

  .marquee-header__inner.third {
    top: -2.0rem;
  }

  .marquee-crossing-lanes__lane.first {
    top: 1.25rem;
  }

  .marquee-crossing-lanes__lane.second {
    top: -1.25rem;
  }

}

@media screen and (min-width: 1600px) {

  .marquee-header__inner.first {
    top: 2.75rem;
  }

  .marquee-header__inner.third {
    top: -2.25rem;
  }

  .marquee-crossing-lanes__lane.first {
    top: 1.25rem;
  }

  .marquee-crossing-lanes__lane.second {
    top: -1.25rem;
  }

}

@media screen and (min-width: 1920px) {

  .marquee-header__inner.first {
    top: 3rem;
  }

  .marquee-header__inner.third {
    top: -2.5rem;
  }

  .marquee-crossing-lanes__lane.first {
    top: 1.25rem;
  }

  .marquee-crossing-lanes__lane.second {
    top: -1.25rem;
  }

}

/* Portfolio pipeline status (dezent nach aktivem Grid) */
.portfolio-pipeline {
  opacity: 0.72;
}

.portfolio-pipeline__eyebrow,
.portfolio-pipeline__text {
  opacity: 0.85;
}

.portfolio-pipeline__counter .counter-up__number {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.portfolio-pipeline__counter .counter-up__label {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0.65;
}

.portfolio-pipeline__marquee {
  opacity: 0.55;
}

.portfolio-pipeline__marquee-label {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.portfolio-pipeline--archive {
  opacity: 0.6;
}

.portfolio-pipeline--archive .portfolio-pipeline__marquee {
  opacity: 0.45;
}

/* Delay Animation fÃƒÂ¼r zweite TextblÃƒÂ¶cke */
.delay-animation {
  opacity: 0;
  transform: translateY(30px);
  animation: slideUpFade 0.8s ease forwards;
  animation-delay: 1.5s;
}

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

/* ==========================================================================
                                             THEMED OVERLAYS
                                             ========================================================================== */

.overlay_theme-from-bottom-to-top {
  background-image: linear-gradient(0deg, rgb(27 26 24) 3%, rgba(27, 26, 24, 0) 90%) !important;
}

/* ==========================================================================
                                             PRICING TABLE & LIFT EFFECTS
                                             ========================================================================== */

.pricing-table,
.lift,
.lift-wrapper {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.intro.hover.in-viewport {
  transition: all 2s ease-in-out;
}

.pricing-table:hover,
.lift:hover {
  transform: translateY(-5px) !important;
}

.intro.hover:hover,
.accordion-item:hover,
.lift-wrapper:hover {
  background-color: rgba(0, 0, 0, 0.5);
}

/* Mobile viewport-based background color */
.intro.hover.in-viewport,
.accordion-item.in-viewport,
.listItem.lift-wrapper.in-viewport {
  background-color: rgba(0, 0, 0, 0.25);
}

.pricing-table:hover .pricing-table__border {
  border-color: var(--color-accent) !important;
}

.pricing-table:hover .pricing-table__outline {
  border-color: var(--color-accent) !important;
  opacity: 0.5;
}

/* ==========================================================================
                                             PORTFOLIO CARD
                                             ========================================================================== */

.portfolio-card img {
  transition: all 0.25s ease-in-out;
}

.portfolio-card:hover img {
  transform: scale(1.025);
}

/* Webprojekte-Karten immer im Querformat 16:9, auch bei Hochformat-/Quadrat-Quellen */
.portfolio-card__wrapper-media .hover-zoom__inner {
  aspect-ratio: 16 / 9;
}

.portfolio-card__wrapper-media .portfolio-card__picture,
.portfolio-card__wrapper-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.portfolio-card__wrapper-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-card .categories li {
  display: inline-flex;
  align-items: baseline;
}

/* ==========================================================================
                                             SERVICE DETAIL HERO (asli-standard) – TV image als Viewport-Hintergrund
                                             ========================================================================== */

.service-hero.section-fullheight {
  min-height: 100vh;
}

.service-hero .section-fullheight__inner {
  justify-content: flex-end;
  z-index: 2;
}

.service-hero__background {
  z-index: 0;
}

.service-hero.masthead>.media-attribution-badges,
.service-hero.masthead>.hero-media-attribution,
.section-fullheight>.media-attribution-badges,
.section-fullheight>.hero-media-attribution {
  position: absolute;
  right: calc(var(--gutter-horizontal, 1.5rem) + 0.75rem);
  bottom: calc(var(--gutter-vertical, 1.5rem) + 0.75rem);
  z-index: 55;
  pointer-events: none;
}

.service-hero.masthead>.media-attribution-badges .media-attribution-badge,
.service-hero.masthead>.hero-media-attribution .media-attribution-badge,
.section-fullheight>.media-attribution-badges .media-attribution-badge,
.section-fullheight>.hero-media-attribution .media-attribution-badge {
  pointer-events: auto;
}

.hero-media-attribution .media-attribution-badges {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
}

.service-hero.masthead>.hero-image-info {
  left: calc(var(--gutter-horizontal, 1.5rem) + 0.75rem);
  bottom: calc(var(--gutter-vertical, 1.5rem) + 0.75rem);
  z-index: 55;
}

.service-hero.masthead>.hero-image-info,
.service-hero.masthead>.hero-image-info .hero-image-info__btn,
.service-hero.masthead>.hero-image-info .hero-image-info__popover {
  pointer-events: auto !important;
  opacity: 1 !important;
}

/* OS-Animation blockiert pointer-events auf Nachfahren – interaktive Controls freigeben */
[data-arts-component-name="Content"] .stoerer-media-toolbar,
[data-arts-component-name="Content"] .stoerer-media-toolbar *,
[data-arts-component-name="Content"] .asli-before-after--force-interactive,
[data-arts-component-name="Content"] .asli-before-after--force-interactive * {
  pointer-events: auto !important;
}

[data-arts-component-name="Content"] .asli-before-after--force-interactive {
  opacity: 1 !important;
}

.service-hero__background picture,
.service-hero__background img {
  width: 100%;
  height: 100%;
}

.service-hero__facts {
  background: rgba(27, 26, 24, 0.75);
  border-left: 2px solid var(--color-accent-dark-theme);
}

@media screen and (min-width: 992px) {
  .service-hero__inner {
    position: relative;
    padding-bottom: calc(var(--gutter-vertical, 1.5rem) + 5rem);
  }

  .service-hero__content {
    width: 100%;
  }

  .service-hero__intro {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .service-hero__intro .service-hero__slogan {
    margin-top: 0.75rem;
  }

  .service-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: calc(var(--gutter-vertical, 1.5rem) + 0.25rem);
    transform: translateX(-50%);
    z-index: 100;
    margin: 0;
    width: auto;
    pointer-events: auto;
  }

  .service-hero.masthead .service-hero__scroll .masthead__scroll-down,
  .service-hero.masthead .service-hero__scroll .clear,
  .service-hero.masthead .service-hero__scroll .js-masthead__animation-scale {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    display: inline-block;
    margin-inline: auto;
  }
}

@media screen and (max-width: 991px) {

  .service-hero .section-fullheight__inner_mobile-auto,
  .service-hero__inner {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
  }

  .service-hero__inner {
    justify-content: flex-start;
    padding-top: calc(var(--header-height, 4rem) + 12vh);
    padding-bottom: calc(var(--gutter-vertical, 1.5rem) + 3.5rem);
  }

  .service-hero__inner.py-large {
    padding-bottom: calc(var(--gutter-vertical, 1.5rem) + 3.5rem);
  }

  .service-hero__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    gap: 0.75rem;
    min-height: 0;
    width: 100%;
  }

  .service-hero__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    --bs-gutter-y: 0.75rem;
  }

  .service-hero__body.row {
    row-gap: 0.75rem;
  }

  .service-hero__aside {
    display: flex;
    flex-direction: column;
    margin-top: 0;
  }

  .service-hero__scroll {
    margin-top: auto;
    margin-bottom: 0;
    padding-top: 0.5rem;
  }

  .service-hero.masthead .service-hero__scroll .masthead__scroll-down,
  .service-hero.masthead .service-hero__scroll .clear,
  .service-hero.masthead .service-hero__scroll .js-masthead__animation-scale,
  .service-hero.masthead .service-hero__scroll .js-masthead__animation-scale.clear {
    position: static;
    top: auto;
    right: auto;
    left: auto;
    bottom: auto;
    display: inline-block;
    margin-inline: auto;
  }

  .service-hero.masthead>.hero-image-info {
    bottom: calc(var(--gutter-vertical, 1.5rem) + 0.25rem);
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .service-hero__content {
    gap: 1.25rem;
  }

  .service-hero__body.row {
    row-gap: 1.5rem;
  }

  .service-hero__aside {
    margin-top: 0.75rem;
  }
}

/* ==========================================================================
                                             WEBPROJEKTE HERO SECTION
                                             ========================================================================== */

.section-fullheight.masthead .masthead__background {
  z-index: 0;
}

.section-fullheight.masthead .masthead__background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 7, 7, 0.05);
  z-index: 1;
  pointer-events: none;
}

.section-fullheight.masthead .section-fullheight__inner {
  justify-content: center;
}

.section-fullheight.masthead:not(.index) .container-fluid-gutters {
  position: relative;
  z-index: 100;
  height: auto;
  min-height: 60%;
  justify-content: flex-start;
  padding-bottom: 0;
}

@media screen and (max-width: 991px) {
  .section-fullheight.masthead .masthead__scroll-down {
    left: unset;
    right: 5%;
    top: 28%;
    z-index: 100;
  }
}

@media screen and (min-width: 992px) {
  .section-fullheight.masthead .masthead__scroll-down {
    position: absolute;
    left: var(--gutter-horizontal);
    bottom: var(--gutter-vertical);
    z-index: 100;
  }
}

@media screen and (max-width: 991px) {
  .section-fullheight.masthead .section-fullheight__inner_mobile-auto {
    min-height: 100vh;
    height: auto;
  }
}

/* ==========================================================================
                                             INDEX HERO SLIDER (Fullpage Backgrounds)
                                             ========================================================================== */

/*
 * Mobile: Hero-Höhe kommt von .section-fullheight__inner_mobile via --fix-bar-vh
 * (Utilities._updateMobileBarVh → clientHeight). min-height:100vh hier kollidiert damit:
 * auf echten Smartphones ist 100vh (große Viewport-Höhe inkl. URL-Leiste) größer als
 * --fix-bar-vh; der Slider ragt aus dem Section-Box-Modell heraus, der folgende
 * Marquee beginnt optisch mitten im Hero. DevTools ohne dynamische URL-Leiste: kein Bug.
 */
.hero-slider {
  overflow: hidden;
}

.hero-slider .section-fullheight__inner_mobile {
  height: 100dvh;
  height: calc(var(--fix-bar-vh, 1dvh) * 100);
  min-height: 0;
  overflow: hidden;
}

.hero-slider .slider-fullpage-backgrounds {
  min-height: 0;
  height: 100%;
}

.hero-slider .slider-fullpage-backgrounds__wrapper-background,
.hero-slider .slider-fullpage-backgrounds__wrapper-background-mask {
  width: 100%;
  height: 100%;
}

.hero-slider .slider-fullpage-backgrounds__wrapper-background-mask picture {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.hero-slider__video-poster {
  position: absolute;
  inset: 0;
  /* Über dem Video, bis Frames laufen – sonst verdeckt schwarzes <video> das Poster */
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.hero-slider__video-poster.is-hidden {
  opacity: 0;
  visibility: hidden;
  z-index: 0;
}

.hero-slider .slider-fullpage-backgrounds__wrapper-background-mask img:not(.hero-slider__video-poster),
.hero-slider .slider-fullpage-backgrounds__wrapper-background-mask video,
.hero-slider__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hero-slider .slider-fullpage-backgrounds__wrapper-background-mask video,
.hero-slider__video {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/*
                                       * Video bleibt sichtbar (206/Streaming ok). Poster liegt darunter und
                                       * wird per JS (.is-hidden) ausgeblendet, sobald Frames laufen.
                                       * Wichtig: keine opacity:0 auf dem Video – sonst wirkt es „nie sichtbar“,
                                       * selbst wenn der Browser bereits streamt.
                                       */
.hero-slider .slider-fullpage-backgrounds[data-arts-os-animation='true'] .slider-fullpage-backgrounds__section .slider-fullpage-backgrounds__wrapper-background video.hero-slider__video,
.hero-slider video.hero-slider__video {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Transition clones must respect GSAP hide/remove */
.js-ajax-transition-clone video.hero-slider__video {
  opacity: unset !important;
  visibility: unset !important;
}

.hero-slider .slider-fullpage-backgrounds__wrapper-background-mask:has(> video.hero-slider__video) picture {
  display: none;
}

.hero-slider .slider-fullpage-backgrounds__container,
.hero-slider .hero-slider__container {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  justify-content: space-between;
  align-items: stretch;
}

.hero-slider__top,
.hero-slider__bottom {
  position: relative;
  z-index: 2;
  width: 100%;
  flex-shrink: 0;
}

.hero-slider__spacer {
  flex: 1 1 auto;
  min-height: 1.5rem;
}

.hero-slider__bottom .heroText {
  max-width: none;
}

.hero-slider__text-line {
  display: block;
}

.hero-slider__text-line--gap {
  margin-top: 0.65em;
}

.hero-slider__slide-text {
  will-change: opacity, transform;
}

.hero-slider .slider-fullpage-backgrounds__wrapper-heading,
.hero-slider .slider-fullpage-backgrounds__wrapper-subheading {
  overflow: hidden;
}

.hero-slider__overlay {
  background: linear-gradient(180deg,
      rgba(6, 7, 7, 0.35) 0%,
      rgba(6, 7, 7, 0.15) 45%,
      rgba(6, 7, 7, 0.55) 100%);
  opacity: 1;
}

/* Badges auf Slide-Ebene (nach Overlay), nicht im Background-Wrapper */
.hero-slider .slider-fullpage-backgrounds__section>.media-attribution-badges,
.hero-slider .slider-fullpage-backgrounds__section>.hero-media-attribution {
  position: absolute;
  z-index: 25;
  right: calc(var(--gutter-horizontal, 1rem) + 0.75rem);
  bottom: calc(var(--gutter-vertical, 1rem) + 0.75rem);
  pointer-events: none;
}

.hero-slider .slider-fullpage-backgrounds__section>.media-attribution-badges .media-attribution-badge,
.hero-slider .slider-fullpage-backgrounds__section>.hero-media-attribution .media-attribution-badge {
  pointer-events: auto;
}

.hero-slider .slider-fullpage-backgrounds__section>.hero-media-attribution .media-attribution-badges {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
}

.hero-slider__scroll-down {
  position: absolute;
  left: 0;
  right: 0;
  bottom: var(--gutter-vertical, 1.5rem);
  z-index: 20;
  pointer-events: none;
}

.hero-slider__scroll-down .rotating-button {
  pointer-events: auto;
}

.hero-slider__dots {
  z-index: 15;
  /* Volle Breite (left+right) sonst blockiert die leere Dot-Leiste die Video-Buttons */
  pointer-events: none;
}

.hero-slider__dots .slider-dots__item {
  pointer-events: auto;
}

.slider-arrow_absolute {
  /* top: 50%; */
}

.hero-slider__bottom {
  padding-bottom: calc(var(--gutter-vertical) + 4rem);
}

.hero-slider__arrow {
  z-index: 15;
}

.hero-slider .slider-fullpage-backgrounds__wrapper-content {
  pointer-events: none;
}

.hero-slider .slider-fullpage-backgrounds__wrapper-content .hero-slider__video-controls,
.hero-slider .slider-fullpage-backgrounds__wrapper-content .hero-slider__video-btn {
  pointer-events: auto !important;
}

.hero-slider__video-controls {
  position: absolute;
  right: var(--gutter-horizontal, 1.5rem);
  bottom: var(--gutter-vertical);
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-slider__video-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  line-height: 0;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.hero-slider__video-btn:hover,
.hero-slider__video-btn:focus-visible {
  color: #fff;
  outline: none;
}

.hero-slider__video-btn-icon {
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.hero-slider__video-btn-icon svg {
  fill: currentColor;
  display: block;
}

.hero-slider__video-btn:not(.is-paused) .hero-slider__video-btn-icon--pause,
.hero-slider__video-btn.is-paused .hero-slider__video-btn-icon--play,
.hero-slider__video-btn.is-muted .hero-slider__video-btn-icon--muted,
.hero-slider__video-btn:not(.is-muted) .hero-slider__video-btn-icon--sound {
  display: inline-flex;
}

@media (max-width: 767.98px) {
  .hero-slider__video-controls {
    right: var(--gutter-horizontal, 1rem);
  }
}

.hero-slider.index .hero-slider__slide-text,
.hero-slider.portfolio .hero-slider__slide-text {
  display: inline-block;
  /* max-width: 900px; */
}

@media screen and (max-width: 1024px) {
  .hero-slider__bottom .container-fluid-gutters {
    /* padding-left: calc(var(--gutter-horizontal) + 4.5rem); */
  }

  .hero-slider__bottom {
    padding-bottom: calc(var(--gutter-vertical) + 5rem);
  }

  .hero-slider__scroll-down {
    bottom: 7rem;
  }

  .hero-slider__bottom .heroText {
    font-size: 1rem;
  }

  .slider-arrow_absolute.slider-arrow_left {
    transform: translate(0, -53%);
  }

  .slider-arrow_absolute.slider-arrow_right {
    transform: translate(0, -53%);
  }

  /* Badges auf Slide-Ebene (nach Overlay), nicht im Background-Wrapper */
  .hero-slider .slider-fullpage-backgrounds__section>.media-attribution-badges,
  .hero-slider .slider-fullpage-backgrounds__section>.hero-media-attribution {
    right: calc(var(--gutter-horizontal, 1rem) + 0rem);
    bottom: calc(var(--gutter-vertical, 1rem) + 0.25rem);
  }
}

/* ==========================================================================
                                             SCROLL-TO-TOP BUTTON
                                             ========================================================================== */

.scroll-to-top {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border-opacity, rgba(32, 33, 32, 0.2));
  background: transparent;
  color: var(--color-text, #20211F);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  pointer-events: none;
  text-decoration: none;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-to-top:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.scroll-to-top svg {
  display: block;
  transition: transform 0.3s ease;
}

.scroll-to-top:hover svg {
  transform: translateY(-3px);
}

#page-wrapper[data-arts-color-theme="dark"] .scroll-to-top {
  color: var(--color-links-dark-theme, #fff);
  border-color: var(--color-border-opacity-dark-theme, rgba(255, 255, 255, 0.2));
}

#page-wrapper[data-arts-color-theme="dark"] .scroll-to-top:hover {
  color: var(--color-accent-dark-theme, #FDF9CF);
  border-color: var(--color-accent-dark-theme, #FDF9CF);
}

@media screen and (max-width: 767px) {
  .scroll-to-top {
    width: 40px;
    height: 40px;
    right: 1rem;
    bottom: 1rem;
  }
}

/* ==========================================================================
                                             BACK-TO-OVERVIEW BUTTON
                                             ========================================================================== */

.back-to-overview {
  position: fixed;
  right: 0.9rem;
  bottom: 4.5rem;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--color-border-opacity-dark-theme, rgba(255, 255, 255, 0.2));
  background: transparent;
  color: var(--color-links-dark-theme, #fff);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease, border-color 0.3s ease, color 0.3s ease, background-color 0.3s ease;
  pointer-events: none;
  text-decoration: none;
}

.back-to-overview.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-overview:hover {
  border-color: var(--color-accent-dark-theme, #FDF9CF);
  color: var(--color-accent-dark-theme, #FDF9CF);
}

.back-to-overview svg {
  display: block;
  transition: transform 0.3s ease;
}

.back-to-overview:hover svg {
  transform: scale(1.1);
}

#page-wrapper[data-arts-color-theme="light"] .back-to-overview {
  color: var(--color-text, #20211F);
  border-color: var(--color-border-opacity, rgba(32, 33, 32, 0.2));
}

#page-wrapper[data-arts-color-theme="light"] .back-to-overview:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
}

@media screen and (max-width: 767px) {
  .back-to-overview {
    width: 40px;
    height: 40px;
    right: 1rem;
    bottom: 4.25rem;
  }
}

/* ==========================================================================
                                             DEVICE ICONS / HARDWARE-CHECK-LEISTE
                                             ========================================================================== */

/* Device-Icon Rotation für Landscape-Varianten */
.device-icon--rotated {
  transform: rotate(90deg);
}

/* Horizontale Icon-Leiste (Geräte + Tech-Stack)
                                             Spaltenzahl über --hc-cols; bei bekannter Item-Anzahl ausgewogen per :has() */
.hardware-check {
  --hc-item: 5.5rem;
  --hc-gap-x: 1.25rem;
  --hc-gap-y: 1rem;
  --hc-cols: 3;

  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: flex-start;
  gap: var(--hc-gap-y) var(--hc-gap-x);
  width: 100%;
  max-width: calc(var(--hc-cols) * var(--hc-item) + (var(--hc-cols) - 1) * var(--hc-gap-x));
  margin-inline: auto;
}

.hardware-check__item {
  display: inline-flex;
  flex: 0 0 var(--hc-item);
  flex-direction: column;
  align-items: center;
  gap: 0.625rem;
  width: var(--hc-item);
  min-width: 0;
  cursor: default;
}

.hardware-check__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.375rem;
  transition: background-color 0.35s ease, border-color 0.35s ease, transform 0.35s ease;
}

.hardware-check__badge .device-icon,
.hardware-check__badge [class*="devicon-"] {
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.35s ease;
}

.hardware-check__label {
  display: block;
  max-width: 100%;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.55;
  transition: opacity 0.35s ease;
}

.hardware-check__item:hover .hardware-check__badge {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hardware-check__item:hover .hardware-check__badge .device-icon,
.hardware-check__item:hover .hardware-check__badge [class*="devicon-"],
.hardware-check__item:hover .hardware-check__label {
  opacity: 1;
}

#page-wrapper[data-arts-color-theme="light"] .hardware-check__badge {
  background-color: rgba(32, 33, 31, 0.06);
  border-color: rgba(32, 33, 31, 0.12);
}

#page-wrapper[data-arts-color-theme="light"] .hardware-check__item:hover .hardware-check__badge {
  background-color: rgba(32, 33, 31, 0.1);
  border-color: rgba(32, 33, 31, 0.22);
}

/* Geräte: 3–5 typisch, max. 5 in einer Zeile; 6 → 3+3 statt 5+1 */
.hardware-check--devices {
  --hc-cols: 3;
}

@media screen and (min-width: 768px) {
  .hardware-check--devices:has(> :nth-child(4):last-child) {
    --hc-cols: 4;
  }

  .hardware-check--devices:has(> :nth-child(5):last-child) {
    --hc-cols: 5;
  }

  .hardware-check--devices:has(> :nth-child(6)) {
    --hc-cols: 3;
  }
}

/* Tech-Stack: Spalten nach Item-Anzahl für möglichst ausgeglichene Zeilen */
.hardware-check--tech {
  --hc-cols: 3;
}

@media screen and (min-width: 768px) {
  .hardware-check--tech:has(> :nth-child(2):last-child) {
    --hc-cols: 2;
  }

  .hardware-check--tech:has(> :nth-child(3):last-child) {
    --hc-cols: 3;
  }

  .hardware-check--tech:has(> :nth-child(4):last-child) {
    --hc-cols: 4;
  }

  .hardware-check--tech:has(> :nth-child(5):last-child) {
    --hc-cols: 5;
  }

  .hardware-check--tech:has(> :nth-child(6):last-child) {
    --hc-cols: 3;
  }

  .hardware-check--tech:has(> :nth-child(7):last-child),
  .hardware-check--tech:has(> :nth-child(8):last-child) {
    --hc-cols: 4;
  }

  .hardware-check--tech:has(> :nth-child(9):last-child) {
    --hc-cols: 3;
  }

  .hardware-check--tech:has(> :nth-child(10):last-child) {
    --hc-cols: 5;
  }

  .hardware-check--tech:has(> :nth-child(11):last-child),
  .hardware-check--tech:has(> :nth-child(12):last-child) {
    --hc-cols: 4;
  }
}

@media screen and (max-width: 575px) {
  .hardware-check {
    --hc-item: 4.5rem;
    --hc-gap-x: 0.75rem;
    --hc-gap-y: 0.875rem;
    --hc-cols: 3;
  }

  .hardware-check__badge {
    width: 3.75rem;
    height: 3.75rem;
  }

  .hardware-check__badge .device-icon,
  .hardware-check__badge [class*="devicon-"] {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
                                             ASLI TAGGER TAGS (BADGES)
                                             ========================================================================== */

.tag-group {
  display: contents;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--color-light-4, #FFFFFF);
}

.tag-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  margin: 0 0.25rem 0.25rem 0;
  background-color: var(--color-dark-1, #20211F);
  color: var(--color-light-4, #FFFFFF);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

/* Tag Group Colors */
.tag-group--cms-technologie .tag-badge {
  background-color: rgba(59, 130, 246, 0.2);
  border-color: rgba(59, 130, 246, 0.4);
  color: #93c5fd;
}

.tag-group--branchen-gewerbe .tag-badge {
  background-color: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
  color: #6ee7b7;
}

.tag-group--kultur-bildung-gesellschaft .tag-badge {
  background-color: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
  color: #c4b5fd;
}

/* ==========================================================================
                                             ASLI TOOLTIPS
                                             ========================================================================== */

[data-tooltip] {
  position: relative;
  cursor: help;
}

.asli-tooltip__bubble {
  position: fixed;
  z-index: 9999;
  max-width: 260px;
  padding: 0.5rem 0.75rem;
  background-color: var(--color-dark-1, #20211F);
  color: var(--color-light-4, #FFFFFF);
  font-family: var(--font-primary, "Nunito Sans", sans-serif);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  border-radius: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: scale(0.98);
  transform-origin: center top;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.asli-tooltip__bubble::after {
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
}

.asli-tooltip__bubble--top::after {
  top: 100%;
  border-color: var(--color-dark-1, #20211F) transparent transparent transparent;
}

.asli-tooltip__bubble--bottom::after {
  bottom: 100%;
  border-color: transparent transparent var(--color-dark-1, #20211F) transparent;
}

.asli-tooltip__bubble--visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

/* Video-Tooltips (an <video data-tooltip> – Klasse wird per JS gesetzt) */
.asli-tooltip__bubble--video {
  max-width: 320px;
  font-size: 0.875rem;
  margin-top: -5rem;
}

@media screen and (max-width: 767px) {
  .asli-tooltip__bubble {
    max-width: 220px;
    font-size: 0.75rem;
    padding: 0.4rem 0.6rem;
  }
}

/* ==========================================================================
                                             MEDIA ATTRIBUTION BADGES (ComfyUI / Blender)
                                             ========================================================================== */

.media-attribution-host,
.comfyui-media:not(.slider-fullpage-backgrounds__wrapper-background) {
  position: relative;
}

.custom-aspect-ratio.comfyui-media,
.section__background.comfyui-media,
.service-hero__background.comfyui-media,
.masthead__background.comfyui-media {
  position: relative;
}

[data-arts-os-animation-name^="animatedMask"] {
  position: relative;
}

/* Inner-Scale (main.css 1.02) deaktivieren wenn Badge im Bild:
                                 Doppel-Transform + overflow:hidden schiebt/clipped das Icon.
                                 Äußerer Zoom (__zoom 0.98) bleibt – Badge wandert mit. */
.hover-zoom:has(.media-attribution-badges):hover:not(:focus) .hover-zoom__inner,
.hover-zoom-hovered:has(.media-attribution-badges) .hover-zoom__inner {
  transform: scale(1);
}

.comfyui-media>.hero-media-attribution,
.media-attribution-host>.hero-media-attribution {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 12;
  pointer-events: none;
}

.comfyui-media>.hero-media-attribution .media-attribution-badge,
.media-attribution-host>.hero-media-attribution .media-attribution-badge {
  pointer-events: auto;
}

.media-attribution-badges {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 12;
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 0.35rem;
  pointer-events: none;
}

.parallax__outer.comfyui-media .media-attribution-badges,
.media-attribution-host .media-attribution-badges,
.asli-gallery-masonry__item.comfyui-media>.media-attribution-badges,
[data-arts-os-animation-name^="animatedMask"]>.media-attribution-badges,
[data-arts-os-animation-name^="animatedMask"]>.hero-media-attribution {
  z-index: 12;
}

.media-attribution-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0.25rem;
  color: rgba(255, 255, 255, 0.96);
  background-color: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 2px;
  cursor: help;
  pointer-events: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Hero: helles Glas – kein hover-zoom, backdrop-filter funktioniert */
.masthead__background .media-attribution-badge,
.service-hero__background .media-attribution-badge {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.masthead__background .media-attribution-badge:hover,
.masthead__background .media-attribution-badge:focus-visible,
.service-hero__background .media-attribution-badge:hover,
.service-hero__background .media-attribution-badge:focus-visible {
  background-color: rgba(255, 255, 255, 0.34);
  border-color: rgba(255, 255, 255, 0.48);
}

/* Störer/Design/Galerie-in-Zoom: transform/filter der Theme-Kette bricht backdrop-filter.
                                 Dunkles, echtes Alpha-Glas statt hellem „Pseudo-Weiß“. */
.hover-zoom .parallax__outer.comfyui-media .media-attribution-badge,
.media-drop-shadow .media-attribution-host .media-attribution-badge {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: rgba(27, 26, 24, 0.32);
  border-color: rgba(255, 255, 255, 0.28);
}

.hover-zoom .parallax__outer.comfyui-media .media-attribution-badge:hover,
.hover-zoom .parallax__outer.comfyui-media .media-attribution-badge:focus-visible,
.media-drop-shadow .media-attribution-host .media-attribution-badge:hover,
.media-drop-shadow .media-attribution-host .media-attribution-badge:focus-visible {
  background-color: rgba(27, 26, 24, 0.48);
  border-color: rgba(255, 255, 255, 0.4);
}

.comfyui-badge,
.blender-badge,
.photo-badge,
.hero-zoom-badge,
.webgl-badge {
  position: static;
}

.media-attribution-badge:hover,
.media-attribution-badge:focus-visible,
.comfyui-badge:hover,
.comfyui-badge:focus-visible,
.blender-badge:hover,
.blender-badge:focus-visible,
.photo-badge:hover,
.photo-badge:focus-visible,
.hero-zoom-badge:hover,
.hero-zoom-badge:focus-visible,
.webgl-badge:hover,
.webgl-badge:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.34);
  border-color: rgba(255, 255, 255, 0.48);
}

.media-attribution-badge__icon,
.comfyui-badge__icon,
.blender-badge__icon,
.photo-badge__icon,
.hero-zoom-badge__icon,
.webgl-badge__icon {
  display: block;
  width: 1rem;
  height: 1rem;
  opacity: 0.6;
  filter: brightness(0) invert(1);
}

#page-wrapper[data-arts-color-theme="light"] .media-attribution-badge,
#page-wrapper[data-arts-color-theme="light"] .comfyui-badge,
#page-wrapper[data-arts-color-theme="light"] .blender-badge,
#page-wrapper[data-arts-color-theme="light"] .photo-badge,
#page-wrapper[data-arts-color-theme="light"] .hero-zoom-badge {
  color: rgba(255, 255, 255, 0.96);
  background-color: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.36);
}

#page-wrapper[data-arts-color-theme="light"] .media-attribution-badge:hover,
#page-wrapper[data-arts-color-theme="light"] .media-attribution-badge:focus-visible,
#page-wrapper[data-arts-color-theme="light"] .comfyui-badge:hover,
#page-wrapper[data-arts-color-theme="light"] .comfyui-badge:focus-visible,
#page-wrapper[data-arts-color-theme="light"] .blender-badge:hover,
#page-wrapper[data-arts-color-theme="light"] .blender-badge:focus-visible,
#page-wrapper[data-arts-color-theme="light"] .photo-badge:hover,
#page-wrapper[data-arts-color-theme="light"] .photo-badge:focus-visible,
#page-wrapper[data-arts-color-theme="light"] .hero-zoom-badge:hover,
#page-wrapper[data-arts-color-theme="light"] .hero-zoom-badge:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.38);
  border-color: rgba(255, 255, 255, 0.52);
}

#page-wrapper[data-arts-color-theme="light"] .hover-zoom .parallax__outer.comfyui-media .media-attribution-badge,
#page-wrapper[data-arts-color-theme="light"] .media-drop-shadow .media-attribution-host .media-attribution-badge {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background-color: rgba(27, 26, 24, 0.32);
  border-color: rgba(255, 255, 255, 0.28);
}

#page-wrapper[data-arts-color-theme="light"] .hover-zoom .parallax__outer.comfyui-media .media-attribution-badge:hover,
#page-wrapper[data-arts-color-theme="light"] .hover-zoom .parallax__outer.comfyui-media .media-attribution-badge:focus-visible,
#page-wrapper[data-arts-color-theme="light"] .media-drop-shadow .media-attribution-host .media-attribution-badge:hover,
#page-wrapper[data-arts-color-theme="light"] .media-drop-shadow .media-attribution-host .media-attribution-badge:focus-visible {
  background-color: rgba(27, 26, 24, 0.48);
  border-color: rgba(255, 255, 255, 0.4);
}

@media screen and (max-width: 767px) {
  .media-attribution-badges {
    right: 0.5rem;
    bottom: 0.5rem;
    gap: 0.25rem;
  }

  .media-attribution-badge,
  .comfyui-badge,
  .blender-badge,
  .photo-badge,
  .hero-zoom-badge {
    width: 1.5rem;
    height: 1.5rem;
    padding: 0.2rem;
  }

  .media-attribution-badge__icon,
  .comfyui-badge__icon,
  .blender-badge__icon,
  .photo-badge__icon,
  .hero-zoom-badge__icon {
    width: 0.875rem;
    height: 0.875rem;
  }
}

/* ==========================================================================
                                             HERO IMAGE INFO (Popover unten links)
                                             ========================================================================== */

.hero-image-info {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 25;
  pointer-events: none;
}

.service-hero__background .hero-image-info,
.masthead__background .hero-image-info,
.comfyui-media .hero-image-info {
  z-index: 12;
}

.hero-slider .slider-fullpage-backgrounds__section>.hero-image-info {
  left: calc(var(--gutter-horizontal, 1rem) + 0.75rem);
  bottom: calc(var(--gutter-vertical, 1rem) + 0.75rem);
  z-index: 25;
}

.hero-slider .slider-fullpage-backgrounds__section>.hero-image-info,
.hero-slider .slider-fullpage-backgrounds__section>.hero-image-info .hero-image-info__btn,
.hero-slider .slider-fullpage-backgrounds__section>.hero-image-info .hero-image-info__popover {
  pointer-events: auto !important;
}

.hero-image-info__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  background-color: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  cursor: pointer;
  pointer-events: auto;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero-image-info__btn:hover,
.hero-image-info__btn:focus-visible {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.44);
  outline: none;
}

.hero-image-info__icon {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.8125rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  opacity: 0.72;
}

.hero-image-info__popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.5rem);
  min-width: 12rem;
  max-width: min(20rem, calc(100vw - 2rem));
  padding: 0.625rem 0.75rem;
  color: var(--color-light-4, #fff);
  background-color: rgba(27, 26, 24, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.hero-image-info__popover[hidden] {
  display: none !important;
}

.hero-image-info__text {
  font-family: var(--font-primary, "Nunito Sans", sans-serif);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

@media screen and (max-width: 767px) {
  .hero-image-info {
    left: 0.5rem;
    bottom: 0.5rem;
  }

  .service-hero.masthead>.hero-image-info {
    left: calc(var(--gutter-horizontal, 1rem) + 0.5rem);
    bottom: calc(var(--gutter-vertical, 1rem) + 0.5rem);
  }

  .service-hero.masthead>.media-attribution-badges,
  .service-hero.masthead>.hero-media-attribution,
  .section-fullheight>.media-attribution-badges,
  .section-fullheight>.hero-media-attribution {
    right: calc(var(--gutter-horizontal, 1rem) + 0rem);
    bottom: calc(var(--gutter-vertical, 1rem) + 0.5rem);
  }

  .hero-slider .slider-fullpage-backgrounds__section>.hero-image-info {
    left: calc(var(--gutter-horizontal, 1rem) + 0.5rem);
    bottom: calc(var(--gutter-vertical, 1rem) + 0.5rem);
  }

  .hero-image-info__btn {
    width: 1.375rem;
    height: 1.375rem;
  }

  .hero-image-info__icon {
    font-size: 0.75rem;
  }

  .hero-image-info__popover {
    max-width: min(17.5rem, calc(100vw - 1.5rem));
    padding: 0.5rem 0.625rem;
  }

  .hero-image-info__text {
    font-size: 0.75rem;
  }
}

/* ==========================================================================
                                             HERO HOTSPOTS (interaktive Bildpunkte)
                                             ========================================================================== */

.hero-hotspots {
  position: absolute;
  inset: 0;
  z-index: 26;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.hero-hotspots.is-visible {
  opacity: 1;
  visibility: visible;
}

.hero-slider .slider-fullpage-backgrounds__section>.hero-hotspots {
  pointer-events: none;
}

.hero-hotspot {
  position: absolute;
  left: var(--hx-display, calc(var(--hx, 50) * 1%));
  top: var(--hy-display, calc(var(--hy, 50) * 1%));
  transform: translate(-50%, -50%);
  pointer-events: auto;
  overflow: visible;
}

.hero-hotspot__btn {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  overflow: visible;
  transition: transform 0.2s ease;
}

.hero-hotspot__btn::after {
  content: "";
  position: absolute;
  inset: -0.125rem;
  border-radius: 50%;
  border: 2px solid rgba(253, 249, 207, 0.82);
  pointer-events: none;
  animation: hero-hotspot-ring-pulse 2.6s ease-out infinite;
}

.hero-hotspot__btn:hover,
.hero-hotspot__btn:focus-visible {
  transform: scale(1.05);
  outline: none;
}

.hero-hotspot__halo {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(253, 249, 207, 0.16);
  border: 1px solid rgba(253, 249, 207, 0.82);
  box-shadow:
    0 0 0 2px rgba(253, 249, 207, 0.28),
    0 0 1.25rem rgba(253, 249, 207, 0.55);
  animation: hero-hotspot-halo-pulse 2.6s ease-in-out infinite;
  pointer-events: none;
}

.hero-hotspot__dot {
  position: relative;
  z-index: 1;
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background-color: #fdf9cf;
  border: 2px solid rgba(27, 26, 24, 0.88);
  box-shadow:
    0 0 0 3px rgba(253, 249, 207, 0.35),
    0 0 0.75rem rgba(253, 249, 207, 0.85);
}

.hero-hotspot__btn:hover .hero-hotspot__halo,
.hero-hotspot__btn:focus-visible .hero-hotspot__halo {
  background: rgba(253, 249, 207, 0.22);
  border-color: rgba(253, 249, 207, 0.92);
  box-shadow:
    0 0 0 2px rgba(253, 249, 207, 0.42),
    0 0 1.75rem rgba(253, 249, 207, 0.68);
}

.hero-hotspot__btn[aria-expanded="true"]::after {
  animation: none;
  opacity: 0;
}

.hero-hotspot__btn[aria-expanded="true"] .hero-hotspot__halo {
  background: rgba(253, 249, 207, 0.24);
  border-color: #fdf9cf;
  animation: none;
  box-shadow:
    0 0 0 3px rgba(253, 249, 207, 0.5),
    0 0 1.75rem rgba(253, 249, 207, 0.72);
}

.hero-hotspot__btn[aria-expanded="true"] .hero-hotspot__dot {
  background-color: #fff8c8;
  box-shadow:
    0 0 0 4px rgba(253, 249, 207, 0.45),
    0 0 1rem rgba(253, 249, 207, 0.95);
}

@keyframes hero-hotspot-ring-pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.95;
  }

  65%,
  100% {
    transform: scale(1.85);
    opacity: 0;
  }
}

@keyframes hero-hotspot-halo-pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
    box-shadow:
      0 0 0 2px rgba(253, 249, 207, 0.24),
      0 0 1rem rgba(253, 249, 207, 0.42);
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
    box-shadow:
      0 0 0 3px rgba(253, 249, 207, 0.48),
      0 0 1.75rem rgba(253, 249, 207, 0.78);
  }
}

.hero-hotspot__popover {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.625rem);
  transform: translateX(-50%);
  min-width: 12rem;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.75rem 0.875rem;
  color: var(--color-light-4, #fff);
  background-color: rgba(27, 26, 24, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
  pointer-events: auto;
  text-align: left;
}

.hero-hotspot__popover[hidden] {
  display: none !important;
}

.hero-hotspot__title {
  display: block;
  font-family: var(--font-primary, "Nunito Sans", sans-serif);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-accent, #fdf9cf);
}

.hero-hotspot__text {
  margin: 0.375rem 0 0;
  font-family: var(--font-primary, "Nunito Sans", sans-serif);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.45;
}

.hero-hotspot__link {
  display: inline-block;
  margin-top: 0.625rem;
  font-family: var(--font-primary, "Nunito Sans", sans-serif);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-accent, #fdf9cf);
  text-decoration: none;
  border-bottom: 1px solid rgba(253, 249, 207, 0.35);
  transition: border-color 0.2s ease, color 0.2s ease;
}

.hero-hotspot__link:hover,
.hero-hotspot__link:focus-visible {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.72);
  outline: none;
}

@media screen and (max-width: 767px) {
  .hero-hotspot__btn {
    width: 4.25rem;
    height: 4.25rem;
  }

  .hero-hotspot__dot {
    width: 1rem;
    height: 1rem;
  }

  .hero-hotspot__halo {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .hero-hotspot__popover {
    max-width: min(16rem, calc(100vw - 1.5rem));
    padding: 0.625rem 0.75rem;
  }

  .hero-hotspot__title {
    font-size: 0.8125rem;
  }

  .hero-hotspot__text,
  .hero-hotspot__link {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-hotspot__halo,
  .hero-hotspot__btn::after {
    animation: none;
  }

  .hero-hotspot__halo {
    opacity: 1;
    box-shadow:
      0 0 0 2px rgba(253, 249, 207, 0.42),
      0 0 1rem rgba(253, 249, 207, 0.55);
  }

  .hero-hotspot__btn::after {
    opacity: 0.55;
    transform: scale(1.15);
  }

  .hero-hotspot__btn {
    transition: none;
  }

  .hero-hotspots {
    transition: none;
  }
}

/* ==========================================================================
                                             FLUID IMAGES
                                             ========================================================================== */

.fluid,
.img-fluid {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================================================
                                             COOPERATION ITEM
                                             ========================================================================== */

.cooperation-item {
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.cooperation-item a {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.cooperation-item img {
  width: 400px;
  height: auto;
  display: block;
  object-fit: contain;
  margin: 0 auto;
}

#kooperation .cooperation-logo {
  width: auto;
  max-width: 100%;
  height: auto;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

/* ==========================================================================
                                             ICON BACKGROUND CONTAINER
                                             ========================================================================== */

.icon-bg-container {
  position: relative;
}

.icon-bg-container::after {
  content: attr(data-icon);
  position: absolute;
  top: 250%;
  right: 0px;
  transform: translateY(-50%);
  font-family: 'Material Icons';
  font-size: 180px;
  color: var(--color-accent);
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
                                             STÖRER – volle Bildbreite, kein of-contain-Letterboxing
                                             Unter 1600px: volle Containerbreite (kein schmaler Edge-Calc)
                                             ========================================================================== */

.stoerer-edge.w-container-edge-end,
.stoerer-edge.w-container-edge-start {
  width: 100%;
  max-width: 100%;
}

@media screen and (min-width: 1600px) {
  .stoerer-edge.w-container-edge-end {
    width: calc(100% - (100vw - 1320px) / 2 - var(--bs-gutter-x));
    margin-left: auto;
  }

  .stoerer-edge.w-container-edge-start {
    width: calc(100% - (100vw - 1320px) / 2 - var(--bs-gutter-x));
    margin-right: auto;
  }
}

/* Edge-Störer: etwas mehr Luft beim Hover-Zoom */
.stoerer-edge .media-attribution-badges {
  right: 1rem;
  bottom: 1rem;
}

@media screen and (min-width: 768px) {
  .stoerer-edge .media-attribution-badges {
    right: 1.15rem;
    bottom: 1.15rem;
  }
}

@media screen and (max-width: 767px) {
  .stoerer-edge .media-attribution-badges {
    right: 0.65rem;
    bottom: 0.65rem;
  }
}

.parallax__outer.hover-zoom__zoom {
  position: relative;
}

.parallax__outer .hero-image-info {
  z-index: 13;
  pointer-events: none;
}

.parallax__outer .hero-image-info .hero-image-info__btn,
.parallax__outer .hero-image-info .hero-image-info__popover {
  pointer-events: auto;
}

.stoerer-edge .parallax__outer .hero-image-info {
  left: 1rem;
  bottom: 1rem;
}

@media screen and (min-width: 768px) {
  .stoerer-edge .parallax__outer .hero-image-info {
    left: 1.15rem;
    bottom: 1.15rem;
  }
}

@media screen and (max-width: 767px) {
  .stoerer-edge .parallax__outer .hero-image-info {
    left: 0.65rem;
    bottom: 0.65rem;
  }
}

.stoerer-media {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
  display: block;
  position: static !important;
}

.media-attribution-host .stoerer-media-toolbar {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 13;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: auto !important;
}

.media-attribution-host .stoerer-media-toolbar .stoerer-video-controls {
  position: static;
  left: auto;
  bottom: auto;
  z-index: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  pointer-events: auto !important;
}

.media-attribution-host .stoerer-media-toolbar .hero-image-info {
  position: static;
  left: auto;
  bottom: auto;
  z-index: auto;
  pointer-events: none;
}

.media-attribution-host .stoerer-media-toolbar .hero-image-info .hero-image-info__btn,
.media-attribution-host .stoerer-media-toolbar .hero-image-info .hero-image-info__popover,
.media-attribution-host .stoerer-media-toolbar .stoerer-video-controls,
.media-attribution-host .stoerer-media-toolbar .stoerer-video-btn,
.media-attribution-host .stoerer-media-toolbar .stoerer-video-btn * {
  pointer-events: auto !important;
  opacity: 1 !important;
}

.stoerer-video-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 2px;
  background-color: rgba(27, 26, 24, 0.32);
  color: rgba(255, 255, 255, 0.96);
  cursor: pointer;
  line-height: 0;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.stoerer-video-btn:hover,
.stoerer-video-btn:focus-visible {
  background-color: rgba(27, 26, 24, 0.48);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
  outline: none;
}

.stoerer-video-btn-icon {
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.stoerer-video-btn-icon svg {
  fill: currentColor;
  display: block;
}

.stoerer-video-btn:not(.is-paused) .stoerer-video-btn-icon--pause,
.stoerer-video-btn.is-paused .stoerer-video-btn-icon--play,
.stoerer-video-btn.is-muted .stoerer-video-btn-icon--muted,
.stoerer-video-btn:not(.is-muted) .stoerer-video-btn-icon--sound {
  display: inline-flex;
}

@media screen and (max-width: 767px) {
  .media-attribution-host .stoerer-media-toolbar {
    left: 0.5rem;
    bottom: 0.5rem;
    gap: 0.25rem;
  }
}

@media screen and (min-width: 768px) {
  .stoerer-edge .media-attribution-host .stoerer-media-toolbar {
    left: 1.15rem;
    bottom: 1.15rem;
  }
}

@media screen and (max-width: 767px) {
  .stoerer-edge .media-attribution-host .stoerer-media-toolbar {
    left: 0.65rem;
    bottom: 0.65rem;
  }
}

#page-wrapper[data-arts-color-theme="light"] .stoerer-video-btn {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.96);
}

#page-wrapper[data-arts-color-theme="light"] .stoerer-video-btn:hover,
#page-wrapper[data-arts-color-theme="light"] .stoerer-video-btn:focus-visible {
  background-color: rgba(255, 255, 255, 0.34);
  border-color: rgba(255, 255, 255, 0.48);
}

/* Drop-Shadow für Screenshots/Störer – am äußeren Parallax-/Link-Container
                                             (nicht am <img>: overflow:hidden der Inner-Wrapper schneidet sonst ab).
                                             Nicht mit Bootstrap .shadow (box-shadow) verwechseln. */
.media-drop-shadow {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.media-drop-shadow--soft {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.22));
}

.media-drop-shadow--strong {
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5));
}

/* ==========================================================================
                                             XL GRID SYSTEM (1600px+) — hs-col-xl-*
                                             ========================================================================== */

@media screen and (min-width: 1600px) {
  .hs-col-xl {
    flex: 1 0 0%;
  }

  .hs-col-xl-auto {
    flex: 0 0 auto;
    width: auto;
  }

  .hs-col-xl-1 {
    flex: 0 0 auto;
    width: 8.33333333%;
  }

  .hs-col-xl-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  .hs-col-xl-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .hs-col-xl-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  .hs-col-xl-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }

  .hs-col-xl-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .hs-col-xl-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }

  .hs-col-xl-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }

  .hs-col-xl-9 {
    flex: 0 0 auto;
    width: 75%;
  }

  .hs-col-xl-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }

  .hs-col-xl-11 {
    flex: 0 0 auto;
    width: 91.66666667%;
  }

  .hs-col-xl-12 {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* ==========================================================================
                                             XXL GRID SYSTEM (1920px+) — hs-col-xxl-*
                                             ========================================================================== */

@media screen and (min-width: 1920px) {
  .pe-hs-col-xxl-0 {
    padding-right: 0 !important;
  }


  .hs-col-xxl {
    flex: 1 0 0%;
  }

  .hs-col-xxl-auto {
    flex: 0 0 auto;
    width: auto;
  }

  .hs-col-xxl-1 {
    flex: 0 0 auto;
    width: 8.33333333%;
  }

  .hs-col-xxl-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  .hs-col-xxl-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .hs-col-xxl-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  .hs-col-xxl-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }

  .hs-col-xxl-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .hs-col-xxl-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }

  .hs-col-xxl-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }

  .hs-col-xxl-9 {
    flex: 0 0 auto;
    width: 75%;
  }

  .hs-col-xxl-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }

  .hs-col-xxl-11 {
    flex: 0 0 auto;
    width: 91.66666667%;
  }

  .hs-col-xxl-12 {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* ==========================================================================
                                             TESTIMONIALS SLIDER FIX
                                             ========================================================================== */

.slider-testimonials {
  position: relative !important;
}

.slider-testimonials__container {
  position: relative !important;
  min-height: 800px;
  height: auto !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 100px;
}

/* ==========================================================================
                                             TESTIMONIALS GRID FIX
                                             ========================================================================== */

.section-testimonials-grid {
  display: block;
  visibility: visible;
  opacity: 1;
  height: auto;
  min-height: auto;
}

.section-testimonials-grid .section__content {
  display: block;
  visibility: visible;
  opacity: 1;
}

.testimonials-grid {
  display: block;
  visibility: visible;
  opacity: 1;
}

.testimonial-item {
  display: block;
  visibility: visible;
  opacity: 1;
}

.slider-testimonials__item {
  position: absolute !important;
  top: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 100% !important;
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: 1 !important;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 120px;
  pointer-events: none !important;
  right: auto !important;
}

.slider-testimonials__item[data-arts-fullpage-slider-section-state="current"],
.slider-testimonials__item[current] {
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2 !important;
  position: absolute !important;
  pointer-events: auto !important;
}

/* Ensure specific clickable elements work */
.slider-testimonials__item[data-arts-fullpage-slider-section-state="current"] .testimonial-project-link a,
.slider-testimonials__item[current] .testimonial-project-link a,
.slider-testimonials__item[data-arts-fullpage-slider-section-state="current"] .testimonial-project-link,
.slider-testimonials__item[current] .testimonial-project-link {
  pointer-events: auto !important;
  position: relative;
  z-index: 10;
}

/* Dots inside each item - only show for current item */
.slider-testimonials__item .slider-testimonials__dot {
  display: none;
  margin-top: 0rem;
  background: transparent;
  padding: 0.5rem;
}

.slider-testimonials__item[data-arts-fullpage-slider-section-state="current"] .slider-testimonials__dot,
.slider-testimonials__item[current] .slider-testimonials__dot {
  display: block;
}

/* Ensure case-study link is clickable */
.testimonial-project-link a {
  pointer-events: auto !important;
}

.slider-testimonials__dot svg {
  max-width: unset;
}

/* ==========================================================================
                                             GRID LOADING SPINNER
                                             ========================================================================== */

.js-grid-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.js-grid-loading .grid-loading-indicator {
  width: 50px;
  height: 50px;
  position: relative;
}

.js-grid-loading .grid-loading-indicator svg {
  width: 100%;
  height: 100%;
  animation: rotate 2s linear infinite;
  transform-origin: center center;
}

.js-grid-loading .grid-loading-indicator svg circle {
  fill: none;
  stroke: var(--color-accent, #FDF9CF);
  stroke-width: 2px;
  stroke-dasharray: 150, 200;
  stroke-dashoffset: -150;
  animation: dash 1.5s ease-in-out infinite;
  stroke-linecap: round;
}

#page-wrapper[data-arts-color-theme="dark"] .js-grid-loading .grid-loading-indicator svg circle {
  stroke: var(--color-accent-dark-theme, #FDF9CF);
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }

  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px;
  }
}

.slider-testimonials__dots {
  display: none;
}

.slider-testimonials__dots * {
  pointer-events: auto !important;
}

/* Fix arrow button clickability */
.slider-testimonials__arrow {
  pointer-events: auto !important;
  z-index: 20 !important;
}

.slider-testimonials__arrow .slider-arrow__button {
  pointer-events: auto !important;
}

.slider-testimonials__arrow .slider-arrow__button * {
  pointer-events: none !important;
}

/* Fix arrow positioning - place them relative to content area */
.slider-testimonials__arrow-prev {
  left: 0 !important;
  transform: translate(-50%, -50%) !important;
}

.slider-testimonials__arrow-next {
  right: 0 !important;
  transform: translate(50%, -50%) !important;
}

@media (min-width: 768px) {
  .slider-testimonials__arrow-prev {
    left: -3rem !important;
  }

  .slider-testimonials__arrow-next {
    right: -3rem !important;
  }
}

/* ==========================================================================
                                             XXL2 GRID SYSTEM (2560px+)
                                             Prefix: hs-col-xxl2 / hs-col-xxl-2-*
                                             Hinweis: .hs-col-xxl-2 bleibt die 2-Spalten-Klasse (1920px+)
                                             ========================================================================== */

@media screen and (min-width: 2560px) {
  .hs-col-xxl2 {
    flex: 1 0 0%;
  }

  .hs-col-xxl-2-auto {
    flex: 0 0 auto;
    width: auto;
  }

  .hs-col-xxl-2-1 {
    flex: 0 0 auto;
    width: 8.33333333%;
  }

  .hs-col-xxl-2-2 {
    flex: 0 0 auto;
    width: 16.66666667%;
  }

  .hs-col-xxl-2-3 {
    flex: 0 0 auto;
    width: 25%;
  }

  .hs-col-xxl-2-4 {
    flex: 0 0 auto;
    width: 33.33333333%;
  }

  .hs-col-xxl-2-5 {
    flex: 0 0 auto;
    width: 41.66666667%;
  }

  .hs-col-xxl-2-6 {
    flex: 0 0 auto;
    width: 50%;
  }

  .hs-col-xxl-2-7 {
    flex: 0 0 auto;
    width: 58.33333333%;
  }

  .hs-col-xxl-2-8 {
    flex: 0 0 auto;
    width: 66.66666667%;
  }

  .hs-col-xxl-2-9 {
    flex: 0 0 auto;
    width: 75%;
  }

  .hs-col-xxl-2-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }

  .hs-col-xxl-2-11 {
    flex: 0 0 auto;
    width: 91.66666667%;
  }

  .hs-col-xxl-2-12 {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* ==========================================================================
                                             WORKFLOW ACCORDION
                                             ========================================================================== */

.accordion-header {
  cursor: pointer;
  outline: none;
  transition: opacity 0.3s ease;
}

.accordion-header:hover {
  opacity: 0.7;
}

.accordion-header>div:first-child {
  flex: 1;
}

.tesst {}

.accordion-icon-wrapper {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  color: var(--color-accent-dark-theme);
  flex-shrink: 0;
}

/* Wenn geöffnet, drehe den Pfeil elegant um 180 Grad */
.accordion-header[aria-expanded="true"] .accordion-icon-wrapper {
  transform: rotate(-180deg);
}

/* ==========================================================================
                                             SCREENSHOT GALLERY (MASONRY)
                                             ========================================================================== */

.asli-gallery-masonry {
  --asli-gallery-gap: 2.5rem;
  column-count: 1;
  column-gap: var(--asli-gallery-gap);
  padding-left: var(--asli-gallery-gap);
  padding-right: var(--asli-gallery-gap);
}

@media (min-width: 768px) {
  .asli-gallery-masonry {
    column-count: 2;
  }
}

@media (min-width: 1400px) {
  .asli-gallery-masonry {
    column-count: 3;
  }
}

.asli-gallery-masonry__item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin-bottom: var(--asli-gallery-gap);
  width: 100%;
}

.asli-gallery-masonry__item--full {
  column-span: all;
}

.asli-gallery-masonry__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
                                             PSWP LIGHTBOX
                                             ========================================================================== */

/* Open/close easing is configured in app.js gallery options (fade + duration) */

/* ==========================================================================
                                             PRICING CARD ALTERNATING BORDERS
                                             ========================================================================== */

.border-left-accent {
  border-left: 2px solid var(--color-accent-dark-theme);
}

.border-right-accent {
  border-right: 2px solid var(--color-accent-dark-theme);
}

/* ==========================================================================
                                             PORTFOLIO SORT BUTTONS
                                             ========================================================================== */

.portfolio-sort {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.portfolio-sort .page-numbers {
  text-decoration: none;
  cursor: pointer;
  user-select: none;
}

.portfolio-sort button.page-numbers {
  appearance: none;
  border: none;
  background: transparent;
  font: inherit;
  line-height: inherit;
  padding: 0;
  color: inherit;
}

.portfolio-sort .page-numbers {
  position: relative;
  padding-top: 0.5em;
  padding-bottom: 0.5em;
  cursor: pointer;
  transition: color 0.3s ease;
}

.portfolio-sort .page-numbers:not(.current):hover {
  color: var(--color-accent);
}

.portfolio-sort .page-numbers.current {
  color: var(--color-accent) !important;
  pointer-events: none;
}

.portfolio-sort__label {
  display: inline-block;
  position: relative;
  z-index: 1;
}

.portfolio-sort__inner {
  display: inline-block;
  padding: 0.25em 1rem;
  position: relative;
}

.portfolio-sort__inner svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 1px;
  pointer-events: none;
}

.portfolio-sort__inner svg ellipse {
  stroke: transparent;
  transition: stroke 0.3s ease;
}

.portfolio-sort .page-numbers.current .portfolio-sort__inner svg ellipse {
  stroke: currentColor;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* Webprojekte – Hero System-Pipeline (full-bleed + Text-Overlay) */
.webprojekte-glitch {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  isolation: isolate;
  background: #060707;
}

.webprojekte-glitch__canvas {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  min-height: 0;
  padding: 0;
}

.webprojekte-glitch__frame {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  overflow: hidden;
}

.webprojekte-glitch__stack {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.webprojekte-glitch__stack .webprojekte-glitch__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

.webprojekte-glitch__render.is-active {
  z-index: 5;
}

.webprojekte-glitch__blanko {
  z-index: 1;
}

.webprojekte-glitch__overlay {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  /* background: linear-gradient(180deg,
                          rgb(6 7 7 / 45%) 0%,
                          rgb(6 7 7 / 18%) 42%,
                          rgb(6 7 7 / 62%) 100%); */
}

.webprojekte-glitch__content {
  position: relative;
  z-index: 12;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 100%;
  pointer-events: none;
}

.webprojekte-glitch__content-top,
.webprojekte-glitch__content-bottom {
  position: relative;
  width: 100%;
  flex-shrink: 0;
}

.webprojekte-glitch__content-spacer {
  flex: 1 1 auto;
  min-height: 1.5rem;
}

.webprojekte-glitch__content-bottom {
  padding-bottom: 4.5rem;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.webprojekte-glitch__content .heroText {
  max-width: none;
}

.webprojekte-glitch__subline {
  box-sizing: border-box;
  padding: 0.9rem 1.2rem;
  background: rgb(27 26 24 / 42%);
  border: 1px solid rgb(255 255 255 / 12%);
  backdrop-filter: blur(14px) saturate(1.05);
  -webkit-backdrop-filter: blur(14px) saturate(1.05);
}

.webprojekte-glitch__label {
  position: absolute;
  left: var(--gutter-horizontal, 1.5rem);
  bottom: 4.75rem;
  z-index: 20;
  /* max-width: min(18rem, 42vw); */
  pointer-events: none;
}

.webprojekte-glitch__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  pointer-events: none;
}

.webprojekte-glitch__progress-track {
  height: 2px;
  overflow: hidden;
  background: rgb(255 255 255 / 12%);
}

.webprojekte-glitch__progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.webprojekte-glitch.is-paused .webprojekte-glitch__progress-bar {
  opacity: 0.55;
}

.webprojekte-glitch.is-paused .webprojekte-glitch__progress-track {
  background: rgb(255 255 255 / 22%);
}

.webprojekte-glitch.is-text-hidden .webprojekte-glitch__content-bottom {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.webprojekte-glitch__controls {
  position: absolute;
  right: calc(var(--gutter-horizontal, 1.5rem) + 0.75rem);
  bottom: calc(var(--gutter-vertical, 1.5rem) + 0.75rem);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  pointer-events: auto;
}

/* Fallback: alter Chunk ohne Controls-Wrapper */
.webprojekte-glitch__frame>.webprojekte-glitch__transport {
  position: absolute;
  right: calc(var(--gutter-horizontal, 1.5rem) + 0.75rem);
  bottom: calc(var(--gutter-vertical, 1.5rem) + 0.75rem);
  z-index: 30;
}

.webprojekte-glitch__transport,
.webprojekte-glitch__text-toggle {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 2px;
  color: rgba(255, 255, 255, 0.96);
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  pointer-events: auto;
  transform: none;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.webprojekte-glitch__transport:hover,
.webprojekte-glitch__text-toggle:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background-color: rgba(255, 255, 255, 0.34);
  transform: none;
}

.webprojekte-glitch__transport:focus-visible,
.webprojekte-glitch__text-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.webprojekte-glitch__transport-icon,
.webprojekte-glitch__text-toggle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.webprojekte-glitch__transport-icon--play,
.webprojekte-glitch__text-toggle-icon--show {
  display: none;
}

.webprojekte-glitch.is-paused .webprojekte-glitch__transport-icon--pause {
  display: none;
}

.webprojekte-glitch.is-paused .webprojekte-glitch__transport-icon--play {
  display: flex;
}

.webprojekte-glitch.is-text-hidden .webprojekte-glitch__text-toggle-icon--hide {
  display: none;
}

.webprojekte-glitch.is-text-hidden .webprojekte-glitch__text-toggle-icon--show {
  display: flex;
}

@media (max-width: 767px) {
  .webprojekte-glitch__label {
    bottom: 5.25rem;
    max-width: min(14rem, 55vw);
  }

  .webprojekte-glitch__content-bottom {
    padding-bottom: 5.5rem;
  }

  .webprojekte-glitch__controls,
  .webprojekte-glitch__frame>.webprojekte-glitch__transport {
    right: calc(var(--gutter-horizontal, 1rem) + 0.5rem);
    bottom: calc(var(--gutter-vertical, 1rem) + 0.5rem);
  }
}

@media (max-width: 767px) {
  .neighbors {
    flex-direction: column !important;
    gap: 1.5rem;
  }

  .neighbors .col-md-6 {
    width: 100% !important;
  }

  .neighbors .col-md-6.text-end {
    text-align: right !important;
  }

  .neighbors .subnav-link {
    align-items: flex-start !important;
  }
}

/* resourcealbum: Instagram-Marquee – einheitliche quadratische Zellen (Bild + Video) */
.section-instagram__link .hover-zoom__zoom {
  height: 100%;
}

.section-instagram__link .hover-zoom__inner {
  height: 100%;
  width: auto !important;
  max-height: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
}

.section-instagram__link picture,
.section-instagram__media--video {
  display: block;
  width: 100%;
  height: 100%;
}

.section-instagram__link img {
  object-fit: cover;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block !important;
}

.section-instagram__media--video {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.section-instagram__video-poster,
.section-instagram__link--video .section-instagram__video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
}

.section-instagram__video-poster {
  z-index: 1;
}

.section-instagram__link--video .section-instagram__video {
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.section-instagram__link--video.is-preview-playing .section-instagram__video-poster {
  opacity: 0;
  visibility: hidden;
}

.section-instagram__link--video.is-preview-playing .section-instagram__video {
  opacity: 1;
  visibility: visible;
}

.section-instagram__link img,
.section-instagram__link .section-instagram__video {
  -webkit-user-drag: none;
  user-select: none;
}

/* Desktop-Pfeile für Instagram-Marquee */
.section.section-instagram {
  overflow: visible;
}

.section-instagram__marquee {
  position: relative;
  overflow: visible;
  --instagram-lane-height: calc(1 * 200 * 1px);
  --instagram-lane-gutter: calc(1 * 10 * 1px);
  padding-bottom: clamp(2.5rem, 4vw, 3.5rem);
}

@media screen and (min-width: 360px) {
  .section-instagram__marquee {
    --instagram-lane-height: calc(1 * (200 * 1px + (350 - 200) * (100vw - 360px) / 1560));
    --instagram-lane-gutter: calc(1 * (10 * 1px + (20 - 10) * (100vw - 360px) / 1560));
  }
}

@media screen and (min-width: 1920px) {
  .section-instagram__marquee {
    --instagram-lane-height: 350px;
    --instagram-lane-gutter: 20px;
  }
}

.section-instagram__marquee .marquee-header__inner {
  overflow: hidden;
}

.section-instagram__arrow {
  position: absolute;
  top: calc(2 * var(--instagram-lane-height) + 2 * var(--instagram-lane-gutter) + clamp(0.75rem, 2vw, 1.25rem));
  z-index: 110;
  transform: none;
  pointer-events: none;
}

.section-instagram__arrow .slider-arrow__button {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.section-instagram__arrow-prev {
  left: clamp(0.75rem, 2vw, 1.5rem);
}

.section-instagram__arrow-next {
  right: clamp(0.75rem, 2vw, 1.5rem);
}

@media (min-width: 1200px) {
  .section-instagram__arrow-prev {
    left: clamp(1rem, 3vw, 2rem);
  }

  .section-instagram__arrow-next {
    right: clamp(1rem, 3vw, 2rem);
  }
}

/* --------------------------------------------------------------------------
                                         Fullscreen-Nav: Infinite List auf Submenu-Ebene (Desktop)
                                         -------------------------------------------------------------------------- */
@media screen and (min-width: 992px) {
  .sub-menu-holder .sub-menu {
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
                                         404: Video-Hintergrund im Masthead
                                         Asli .masthead__background hat max-height:100% – ohne klare Parent-Höhe
                                         kollabiert der Container. Overlay nutzt z-index:-1 und kann hinter dem
                                         page-wrapper-Hintergrund verschwinden. Deshalb explizit überschreiben.
                                         -------------------------------------------------------------------------- */
main.page-wrapper:has(.page-404-video-bg) {
  background-color: transparent !important;
}

.masthead.section-fullheight:has(.page-404-video-bg) {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  background: transparent !important;
  overflow: hidden;
}

.masthead.section-fullheight:has(.page-404-video-bg) .page-404-video-bg.masthead__background {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  z-index: 0 !important;
  overflow: hidden;
  pointer-events: none;
}

.masthead.section-fullheight:has(.page-404-video-bg) .page-404-video-bg__video {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 0;
  background: #060707;
}

.masthead.section-fullheight:has(.page-404-video-bg) .page-404-video-bg .masthead__overlay,
.masthead.section-fullheight:has(.page-404-video-bg) .page-404-video-bg .overlay {
  z-index: 1 !important;
  --overlay-opacity: 0.45;
}

.masthead.section-fullheight:has(.page-404-video-bg) .section-fullheight__inner,
.masthead.section-fullheight:has(.page-404-video-bg) .masthead__header {
  position: relative;
  z-index: 50;
}

#page-footer {
  position: relative;
  z-index: 2;
  background-color: var(--color-dark-2, #121313);
}

@media (prefers-reduced-motion: reduce) {
  .page-404-video-bg__video {
    display: none !important;
  }

  .masthead.section-fullheight:has(.page-404-video-bg) .page-404-video-bg.masthead__background {
    background: var(--color-dark-2, #121313);
  }
}

/* --------------------------------------------------------------------------
                                         Sticky Sidebar (Vorteile-Box) – CSS sticky scheitert an overflow:hidden
                                         der Page-Wrapper; Pinning über StickySidebar.js / ScrollTrigger.
                                         -------------------------------------------------------------------------- */
.sticky-sidebar-box {
  position: relative;
  z-index: 1;
  background-color: var(--color-dark-2, #121313);
}

.js-sticky-sidebar,
.js-sticky-sidebar__box {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
                                 Terminal demo (Gitify / Deploy animation)
                                 -------------------------------------------------------------------------- */
.terminal-demo {
  width: 100%;
  max-width: 49.25rem;
  margin-top: 0.5rem;
}

.terminal-demo__window {
  overflow: hidden;
  border-radius: 0.5rem;
  background: #1b1a18;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.terminal-demo__top-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #20211f;
}

.terminal-demo__dot {
  display: block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: rgba(253, 249, 207, 0.22);
}

.terminal-demo__body {
  overflow: hidden;
  padding: 1rem 1.25rem;
  background: #121313;
}

.terminal-demo__pre {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(253, 249, 207, 0.78);
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-demo__pre--static {
  display: none;
}

.terminal-demo__prompt {
  color: rgba(253, 249, 207, 0.42);
}

.terminal-demo__success {
  color: #8fd98f;
}

.js-terminal-demo__stage {
  display: inline;
}

@media (max-width: 767.98px) {
  .terminal-demo {
    max-width: none;
  }

  .terminal-demo__body {
    min-height: 18rem;
  }
}

/* Vorher/Nachher-Vergleichsslider (cb_before_after) */
.asli-before-after-section {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.asli-before-after {
  margin: 0;
  --ba-progress: 50;
  position: relative;
  z-index: 0;
}

.asli-before-after-section .asli-before-after--force-interactive .asli-before-after__viewport,
.asli-before-after-section .asli-before-after--force-interactive .asli-before-after__range {
  pointer-events: auto !important;
  touch-action: none;
  opacity: 1 !important;
}

.asli-before-after__stage {
  position: relative;
}

.asli-before-after__viewport {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  background: #1b1a18;
  touch-action: none;
  cursor: ew-resize;
  user-select: none;
}

.asli-before-after__after,
.asli-before-after__before {
  position: absolute;
  inset: 0;
}

.asli-before-after__before {
  width: calc(var(--ba-progress) * 1%);
  overflow: hidden;
  z-index: 2;
}

.asli-before-after__img {
  display: block;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.asli-before-after__img--after {
  width: 100%;
}

.asli-before-after__img--before {
  position: absolute;
  top: 0;
  left: 0;
}

.asli-before-after__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--ba-progress) * 1%);
  z-index: 10;
  width: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.asli-before-after__handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #fdf9cf;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.55);
}

.asli-before-after__handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  min-height: 3rem;
  max-width: 3rem;
  max-height: 3rem;
  aspect-ratio: 1 / 1;
  border: 2px solid #fdf9cf;
  border-radius: 50%;
  background: rgba(27, 26, 24, 0.95);
  color: #fdf9cf;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.65);
  transform: translate(-50%, -50%);
  flex-shrink: 0;
}

.asli-before-after__range {
  display: block;
  width: 100%;
  margin: 0.75rem 0 0;
  accent-color: #fdf9cf;
  cursor: pointer;
}

.asli-before-after__label {
  position: absolute;
  bottom: 0.75rem;
  z-index: 3;
  padding: 0.25rem 0.5rem;
  background: rgba(27, 26, 24, 0.72);
  color: rgba(253, 249, 207, 0.85);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.asli-before-after__label--before {
  left: 0.75rem;
}

.asli-before-after__label--after {
  right: 0.75rem;
}

.asli-before-after__caption {
  font-size: 0.85rem;
  color: rgba(253, 249, 207, 0.55);
}

.asli-before-after.is-dragging .asli-before-after__viewport {
  cursor: grabbing;
}

@media (max-width: 767.98px) {
  .asli-before-after__handle-button {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    max-width: 2.5rem;
    max-height: 2.5rem;
    font-size: 0.85rem;
  }

  .asli-before-after__label {
    font-size: 0.62rem;
    bottom: 0.5rem;
  }

  .asli-before-after__label--before {
    left: 0.5rem;
  }

  .asli-before-after__label--after {
    right: 0.5rem;
  }
}

/* Interaktiver 3D-Viewer (Blender/glTF via model-viewer) */
.model-viewer-3d {
  --mv3d-height: min(70vh, 520px);
  width: 100%;
}

.model-viewer-3d__frame {
  position: relative;
  min-height: var(--mv3d-height);
  border-radius: 4px;
  overflow: hidden;
  background: #1b1a18;
  overscroll-behavior: contain;
  touch-action: none;
}

/* Quadratischer Viewport (entspricht Blender-Kamera 1:1) */
.model-viewer-3d--square {
  --mv3d-badge-space: 2.5rem;
}

.model-viewer-3d--square .model-viewer-3d__frame {
  aspect-ratio: 1 / 1;
  min-height: 0;
  height: auto;
}

.model-viewer-3d--square .model-viewer-3d__placeholder,
.model-viewer-3d--square .model-viewer-3d__stage,
.model-viewer-3d--square .model-viewer-3d__viewer {
  position: absolute;
  inset: 0 0 var(--mv3d-badge-space) 0;
  width: 100%;
  height: auto;
  min-height: 0;
}

@media (max-width: 767.98px) {
  .model-viewer-3d--square {
    --mv3d-badge-space: 2rem;
  }
}

.model-viewer-3d__frame .media-attribution-badges {
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  pointer-events: auto;
}

.model-viewer-3d__device-switch {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(253, 249, 207, 0.22);
  border-radius: 999px;
  background: rgba(27, 26, 24, 0.72);
  backdrop-filter: blur(6px);
}

.model-viewer-3d__device {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(253, 249, 207, 0.78);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.model-viewer-3d__device:hover,
.model-viewer-3d__device:focus-visible {
  color: #fdf9cf;
  background: rgba(253, 249, 207, 0.08);
}

.model-viewer-3d__device.is-active {
  color: #1b1a18;
  background: rgba(253, 249, 207, 0.92);
}

.model-viewer-3d__device:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.model-viewer-3d__device-icon {
  font-size: 1rem;
  line-height: 1;
}

.model-viewer-3d__device-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.model-viewer-3d__auto-rotate {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(253, 249, 207, 0.22);
  border-radius: 999px;
  background: rgba(27, 26, 24, 0.72);
  color: rgba(253, 249, 207, 0.78);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.model-viewer-3d__auto-rotate:hover,
.model-viewer-3d__auto-rotate:focus-visible {
  color: #fdf9cf;
  background: rgba(27, 26, 24, 0.9);
  border-color: rgba(253, 249, 207, 0.42);
}

.model-viewer-3d__auto-rotate.is-active {
  color: #1b1a18;
  background: rgba(253, 249, 207, 0.92);
  border-color: rgba(253, 249, 207, 0.92);
}

.model-viewer-3d__auto-rotate-icon {
  font-size: 1rem;
  line-height: 1;
}

.model-viewer-3d__auto-rotate-text {
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 767.98px) {
  .model-viewer-3d__device-switch {
    top: 0.5rem;
    right: 0.5rem;
  }

  .model-viewer-3d__device {
    padding: 0.4rem;
  }

  .model-viewer-3d__device-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .model-viewer-3d__auto-rotate {
    left: 0.5rem;
    bottom: 0.5rem;
    padding: 0.4rem;
  }

  .model-viewer-3d__auto-rotate-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

.model-viewer-3d--load-on-viewport .model-viewer-3d__load {
  display: none;
}

.model-viewer-3d--load-on-viewport .model-viewer-3d__placeholder:not([hidden]) .model-viewer-3d__hint {
  opacity: 0.72;
}

.model-viewer-3d[data-model-viewer-3d-loading="true"] .model-viewer-3d__placeholder {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background: #1b1a18;
}

.model-viewer-3d[data-model-viewer-3d-loading="true"] .model-viewer-3d__hint,
.model-viewer-3d[data-model-viewer-3d-loading="true"] .model-viewer-3d__load {
  display: none !important;
}

.model-viewer-3d__loader {
  display: grid;
  place-items: center;
  gap: 0.85rem;
}

.model-viewer-3d__loader-indicator {
  width: 2.75rem;
  height: 2.75rem;
}

.model-viewer-3d__loader-indicator svg {
  width: 100%;
  height: 100%;
  animation: rotate 2s linear infinite;
  transform-origin: center center;
}

.model-viewer-3d__loader-indicator svg circle {
  fill: none;
  stroke: var(--color-accent, #fdf9cf);
  stroke-width: 2px;
  stroke-dasharray: 150, 200;
  stroke-dashoffset: -150;
  animation: dash 1.5s ease-in-out infinite;
  stroke-linecap: round;
}

.model-viewer-3d__loader-text {
  margin: 0;
  color: rgba(253, 249, 207, 0.72);
  font-size: 0.9rem;
}

.model-viewer-3d--load-on-viewport .model-viewer-3d__placeholder {
  pointer-events: none;
}

.model-viewer-3d__placeholder {
  display: grid;
  place-content: center;
  gap: 1rem;
  min-height: var(--mv3d-height);
  padding: 2rem 1.5rem;
  text-align: center;
}

.model-viewer-3d__hint {
  margin: 0;
  max-width: 28rem;
  color: rgba(253, 249, 207, 0.78);
  font-size: 0.95rem;
  line-height: 1.5;
}

.model-viewer-3d__load[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.model-viewer-3d__stage,
.model-viewer-3d__viewer {
  display: block;
  width: 100%;
  height: var(--mv3d-height);
  background: #1b1a18;
  touch-action: none;
}

.model-viewer-3d__caption {
  margin: 2.5rem 0 0;
  color: rgba(253, 249, 207, 0.62);
  font-size: 0.85rem !important;
  text-align: center;
}

.model-viewer-3d__fallback {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  opacity: 0.7;
}

.model-viewer-3d[data-model-viewer-3d-loading="true"] .model-viewer-3d__load {
  pointer-events: none;
}

.model-viewer-3d[data-model-viewer-3d-ready="true"] .model-viewer-3d__frame {
  background: transparent;
}

@media (max-width: 767.98px) {
  .model-viewer-3d {
    --mv3d-height: min(56vh, 420px);
  }

  .model-viewer-3d__placeholder {
    padding: 1.5rem 1rem;
  }
}

/* --------------------------------------------------------------------------
         Prozess-CTA: drei Schritte vor Circle-Button
         -------------------------------------------------------------------------- */
.project-cta-section .cta-process {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  list-style: none;
  margin: 1.5rem auto 0;
  padding: 0;
  max-width: 64rem;
  gap: 0.5rem 0;
}

.project-cta-section--has-image.project-cta-section--band .cta-process {
  margin-top: 2.5rem;
}

.project-cta-section .cta-process__step {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  align-items: center;
  min-width: 9rem;
  padding: 0 1.75rem;
  text-align: center;
}

.project-cta-section .cta-process__step:not(:last-child)::after {
  content: "—";
  position: absolute;
  top: 0.35rem;
  right: -0.35rem;
  color: rgba(253, 249, 207, 0.35);
  font-size: 1.15rem;
  pointer-events: none;
}

.project-cta-section .cta-process__index {
  margin-bottom: 0.4rem;
  color: var(--color-accent, #fdf9cf);
  font-size: clamp(0.85rem, 1.1vw, 1rem);
  letter-spacing: 0.14em;
}

.project-cta-section .cta-process__label {
  display: block;
  color: #fff;
  font-family: var(--h6-font-family);
  font-size: clamp(1.25rem, 2.1vw, 1.65rem);
  line-height: 1.25;
}

.project-cta-section .cta-process__hint {
  display: block;
  max-width: 14rem;
  margin-top: 0.45rem;
  color: rgba(255, 255, 255, 0.5);
  font-size: clamp(0.9rem, 1.15vw, 1.05rem);
  line-height: 1.4;
}

@media (max-width: 767.98px) {
  .project-cta-section .cta-process {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    margin-top: 0;
    margin-bottom: 0;
  }

  .project-cta-section--has-image.project-cta-section--band .cta-process {
    margin-top: 1.75rem;
  }

  .project-cta-section--band .cta-process-media__img {
    aspect-ratio: 16 / 10;
  }

  .project-cta-section .cta-process__step {
    min-width: 0;
    padding: 0;
  }

  .project-cta-section .cta-process__step:not(:last-child)::after {
    display: none;
  }

  .project-cta-section .cta-process__hint {
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
         Prozess-CTA: Zufallsbild (Varianten band | ambient)
         -------------------------------------------------------------------------- */
.project-cta-section {
  position: relative;
}

.project-cta-section__content {
  position: relative;
  z-index: 1;
}

.project-cta-section--ambient,
.project-cta-section--ambient.pt-large,
.project-cta-section--ambient.pb-medium {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  overflow: hidden;
  /* Ein Viewport reicht — früher erbten BEIDE Content-Blöcke je ~70vh */
  min-height: clamp(26rem, 88vh, 52rem);
  padding-top: clamp(3.5rem, 7vh, 5.5rem);
  padding-bottom: clamp(3rem, 6vh, 4.5rem);
}

.project-cta-section--ambient .project-cta-section__content {
  display: block;
  min-height: 0;
}

.project-cta-section--ambient .cta-process {
  margin-top: 0;
}

.project-cta-section--band .project-cta-section__ambient-media,
.project-cta-section--band .cta-ambient-bg {
  display: none;
}

.project-cta-section--ambient .project-cta-section__band-media {
  display: none;
}

.project-cta-section--has-image.project-cta-section--band .cta-button-wrapper--inline {
  display: none;
}

.project-cta-section--ambient:not(.project-cta-section--has-image) .project-cta-section__ambient-media {
  display: none;
}

.project-cta-section--ambient .cta-process-media {
  display: none;
}

.project-cta-section--ambient .cta-button-wrapper--inline {
  display: block;
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.project-cta-section--ambient .cta-ambient-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.project-cta-section--ambient .cta-ambient-bg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.32;
}

.project-cta-section--ambient .cta-ambient-bg__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(27, 26, 24, 0.94) 0%,
      rgba(27, 26, 24, 0.72) 45%,
      rgba(27, 26, 24, 0.94) 100%);
}

.project-cta-section--band .cta-process-media {
  display: block;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
}

.project-cta-section__media {
  margin-top: 4rem;
}

.project-cta-section--band .cta-process-media picture,
.project-cta-section--band .cta-process-media__inner {
  display: block;
  width: 100%;
}

.project-cta-section--band .cta-process-media__inner {
  position: relative;
  border-radius: 0.35rem;
}

.project-cta-section--band .cta-process-media__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
      rgba(27, 26, 24, 0.15) 0%,
      rgba(27, 26, 24, 0.45) 50%,
      rgba(27, 26, 24, 0.15) 100%);
  pointer-events: none;
}

.project-cta-section--band .cta-process-media__button {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  pointer-events: none;
}

.project-cta-section--band .cta-process-media__button .button {
  pointer-events: auto;
}

.project-cta-section--band .cta-process-media__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.project-cta-section--band .cta-process-media .media-attribution-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 4;
}

/* Preloader: Hand-GIF + Counter (Hard-Reload only) */
.preloader__wrapper-counter {
  flex-direction: column;
  gap: 1.25rem;
}

.preloader__gif {
  position: relative;
  z-index: 2;
  display: block;
  width: clamp(110px, 36vw, 210px);
  height: auto;
  max-height: 25%;
  object-fit: contain;
  pointer-events: none;
  margin-bottom: 0.25rem;
}

.preloader__wrapper-counter .preloader__counter {
  position: relative;
  z-index: 2;
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1;
  margin-top: 0.5rem;
  padding-top: 0.35rem;
  overflow: hidden;
  width: auto;
  min-width: 5.5rem;
  padding-inline: 1.25rem;
}

.preloader__wrapper-counter .split-counter__lane {
  min-width: 1.4em;
  padding-inline: 0.12em;
  box-sizing: content-box;
}

.preloader__wrapper-counter .split-counter__lane:nth-child(2) {
  min-width: 1.5em;
  padding-right: 0.2em;
}

.preloader__wrapper-counter svg .circle {
  stroke: var(--color-accent-dark-theme, #FDF9CF);
}

.preloader__wrapper-counter .preloader__wrapper-counter-end {
  font-size: clamp(2rem, 6vw, 3.25rem);
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
  padding-inline: 0.75rem;
}