/* ==========================================================================
   COMLOG — INTERACTIONS
========================================================================== */

body {
  overflow-x: hidden;
}

/* Contact map embed fills the Webflow wrapper */
.googlemap--wrapper .map,
.googlemap--wrapper .w-embed,
.googlemap--wrapper .w-embed > div,
.googlemap--wrapper iframe {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
}

.googlemap--wrapper .w-embed,
.googlemap--wrapper .w-embed > div {
  position: absolute;
  inset: 0;
}

html.is--locked,
body.is--locked {
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* ==========================================================================
   GERMAN TYPOGRAPHY
   Optical trim when locale is de-DE.
   Words wrap whole; hyphenation is applied per word in script.js
   only if the word cannot fit on the next line.
========================================================================== */

html:not([lang="de-DE"]) [class*="heading-style-"] {
  hyphens: none;
  -webkit-hyphens: none;
}

html:not([lang="de-DE"]) [class*="heading-style-"],
html:not([lang="de-DE"]) .career--tag,
html:not([lang="de-DE"]) .trim--text,
html:not([lang="de-DE"]) .project--category {
  text-box-trim: none;
  text-box-edge: auto;
}

html[lang="de-DE"] [class*="heading-style-"] {
  min-width: 0;
  max-width: 100%;
  hyphens: none !important;
  -webkit-hyphens: none !important;
  overflow-wrap: break-word;
}

.hero--title {
  min-width: 0;
  max-width: 100%;
}

@media screen and (min-width: 992px) {
  .section.is--home-hero {
    height: auto;
    min-height: calc(100vh - var(--_sizes---navbar));
  }

  .section.is--home-hero .hero--wrapper {
    height: auto;
    min-height: calc(100vh - var(--_sizes---navbar));
  }
}

html[lang="de-DE"] [class*="heading-style-"] .de-word {
  display: inline-block;
  white-space: nowrap;
  max-width: none;
}

html[lang="de-DE"] [class*="heading-style-"] .de-word.is--hyphenate {
  display: inline;
  max-width: 100%;
  white-space: normal;
  hyphens: manual !important;
  -webkit-hyphens: manual !important;
}

html[lang="de-DE"] [class*="heading-style-"],
html[lang="de-DE"] .career--tag,
html[lang="de-DE"] .trim--text,
html[lang="de-DE"] .project--category {
  text-box-trim: trim-both;
  text-box-edge: cap alphabetic;
}

/* ==========================================================================
   NAVBAR
========================================================================== */

.navbar,
.navbar.is--scrolled,
.navbar.is--menu-open {
  background-color: #ffffff !important;
}

/* Keep the brand above the opened tablet/mobile menu. */
.nav--brand {
  position: relative;
  z-index: 1009;
}

/* ==========================================================================
   BUTTON HOVER
========================================================================== */

.btn--arrow {
  transform-origin: center;
  will-change: transform;
}

.btn--arrow {
  transition: transform 0.4s cubic-bezier(0.625, 0.05, 0, 1);
}

@media (hover: hover) and (pointer: fine) {
  .button:hover .btn--arrow,
  .btn:hover .btn--arrow {
    transform: translateX(0.2rem);
  }
}

/* ==========================================================================
   LOAD / SCROLL
   Supports bare attrs (load) and animation="load"
========================================================================== */

[load],
[load-up],
[load-left],
[load-right],
[load-stagger] > *,
[load-split],
[fade],
[fade-up],
[fade-left],
[fade-right],
[fade-stagger] > *,
[fade-split],
[animation="load"],
[animation="load-up"],
[animation="load-left"],
[animation="load-right"],
[animation="load-stagger"] > *,
[animation="load-split"],
[animation="fade"],
[animation="fade-up"],
[animation="fade-left"],
[animation="fade-right"],
[animation="fade-stagger"] > *,
[animation="fade-split"] {
  will-change: transform, opacity;
}

/* Fixed mobile menu must not be trapped by a navbar containing block. */
.navbar[load],
.navbar[animation="load"],
.navbar {
  will-change: auto;
}

.load-split__line-mask {
  display: block;
  overflow: hidden;
}

.fade-split__line-mask {
  display: block;
}

.load-split__line,
.fade-split__line {
  display: block;
  will-change: transform, opacity;
}

/* ==========================================================================
   ROD / LINE
========================================================================== */

[rod],
[animation="rod"] {
  transform-origin: left center;
  will-change: transform;
}

/* ==========================================================================
   PARALLAX
========================================================================== */

[image="parallax"] {
  display: block;
  width: 100%;
  height: 116%;
  max-width: none;
  object-fit: cover;
  will-change: transform;
}

/* ==========================================================================
   DROPDOWNS — DESKTOP
========================================================================== */

.dropdown {
  position: relative;
}

.dropdown--trigger {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.dropdown--list {
  display: none;
  flex-direction: column;
}

@media screen and (min-width: 992px) {
  .dropdown > .dropdown--list {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1003;
    width: max-content;
    min-width: 100%;
  }
}

/* ==========================================================================
   TABLET / MOBILE
========================================================================== */

.menu--trigger {
  position: relative;
  z-index: 1002;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.menu--to-open,
.menu--to-close {
  display: block;
  width: 100%;
  height: auto;
  will-change: opacity;
}

.menu--to-close {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

@media screen and (max-width: 991px) {
  .navbar {
    z-index: 1000;
  }

  .navbar.is--menu-open {
    z-index: 10000;
  }

  .nav--brand,
  .menu--trigger {
    position: relative;
    z-index: 1009;
  }

  /*
    Webflow already sets .nav--menu to position:fixed; inset:0; display:none
    on tablet/mobile. We only add animation helpers here.
  */
  .nav--menu {
    opacity: 0;
    pointer-events: none;
    overscroll-behavior: contain;
    will-change: transform, opacity;
  }

  .nav--menu.is--open {
    pointer-events: auto;
  }

  .dropdown > .dropdown--list {
    position: static;
    display: flex;
    opacity: 1;
    width: auto;
    min-width: 0;
    transform: none;
  }

  .dropdown--trigger {
    cursor: default;
    pointer-events: none;
  }

  .dropdown .drop--arrow {
    transform: rotate(180deg);
  }
}

/* ==========================================================================
   REDUCED MOTION
========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [rod],
  [animation="rod"] {
    transform: none !important;
  }

  [image="parallax"] {
    height: 100%;
    transform: none !important;
  }
}

/* ==========================================================================
   MARQUEE SCROLL DIRECTION
========================================================================== */

/* Optional: Rotating arrow left/right based on Scroll Direction */

.marquee__advanced__arrow-svg,
[data-marquee-direction="right"][data-marquee-status="inverted"]
  .marquee__advanced__arrow-svg {
  transition: 0.5s cubic-bezier(0.625, 0.05, 0, 1);
  transform: rotate(-180deg);
}

[data-marquee-status="inverted"] .marquee__advanced__arrow-svg,
[data-marquee-direction="right"][data-marquee-status="normal"]
  .marquee__advanced__arrow-svg {
  transform: rotate(-359.999deg);
}
