/* Mask text reveal — GSAP SplitText with mask:'lines' wraps each line in overflow:hidden.
   Hide before SplitText runs to avoid FOUC; main.js calls gsap.set(el, {autoAlpha: 1}) once ready. */
[data-line-reveal="true"] { visibility: hidden; }

/* Generic fade-reveal for non-text elements opting in via [data-reveal] */
[data-reveal]:not([data-line-reveal="true"]) {
  opacity: 0;
  transform: translateY(20px);
  will-change: opacity, transform;
}

/* Divider line reveal — `.balken.links` draws LTR, `.balken.rechts` draws RTL.
   Initial scaleX:0 prevents flash before GSAP boots. */
.balken .divider_horizontal {
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}
.balken.rechts .divider_horizontal {
  transform-origin: right center;
}
@media (prefers-reduced-motion: reduce) {
  .balken .divider_horizontal { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  [data-line-reveal="true"] { visibility: visible; }
  [data-reveal]:not([data-line-reveal="true"]) { opacity: 1; transform: none; }
}

/* Mobile navigation — drops down INSIDE navbar (logo stays visible), bg matches navbar.
   Override webflow.css `.w-nav[data-collapse='medium'] .w-nav-menu { display: none }`.
   Inner layout (.navbar1_menu-links) keeps Webflow's grid: 2 cols at <=991px, 1 col at <=479px. */
@media (max-width: 991px) {
  .navbar1_component { position: relative; }
  .w-nav .w-nav-menu.w--nav-menu-open,
  .w-nav[data-collapse="medium"] .w-nav-menu.w--nav-menu-open {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--color-scheme-1--background, #fff);
    background-image: linear-gradient(rgba(104, 141, 175, 0.07), rgba(104, 141, 175, 0.07));
    padding: 1.5rem 3.5% 2rem;
    z-index: 100;
    float: none;
    will-change: clip-path;
  }
  .w-nav-button { position: relative; z-index: 101; }
  .menu-icon1_line-top, .menu-icon1_line-bottom { transform-origin: 50% 50%; }
}

/* Lightbox overlay */
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  flex-direction: column;
  background: rgba(10, 10, 12, 0.96);
  color: #fff;
  font: 14px/1.4 system-ui, sans-serif;
}
.lb-overlay.is-open { display: flex; }
.lb-stage {
  flex: 1 1 auto;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 1.5rem 4rem 0.5rem;
}
.lb-image {
  max-width: 92vw;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.lb-counter {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 0.25rem 0 0.5rem;
}
.lb-thumbs {
  flex: 0 0 auto;
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem 1.25rem;
  overflow-x: auto;
  justify-content: flex-start;
  align-items: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}
@media (min-width: 700px) { .lb-thumbs { justify-content: center; } }
.lb-thumbs::-webkit-scrollbar { height: 6px; }
.lb-thumbs::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 3px; }
.lb-thumb {
  flex: 0 0 auto;
  width: auto;
  height: 64px;
  padding: 0;
  background: transparent;
  border: 2px solid transparent;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.lb-thumb:hover { opacity: 0.85; }
.lb-thumb.is-active { opacity: 1; border-color: #fff; }
.lb-thumb img { height: 100%; width: auto; display: block; }
.lb-overlay > button {
  appearance: none;
  background: rgba(255, 255, 255, 0.06);
  border: 0;
  color: inherit;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}
.lb-overlay > button:hover { background: rgba(255, 255, 255, 0.16); }
.lb-overlay > button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb-close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.lb-prev { position: absolute; left: 1rem; top: 40%; transform: translateY(-50%); z-index: 2; }
.lb-next { position: absolute; right: 1rem; top: 40%; transform: translateY(-50%); z-index: 2; }
@media (max-width: 600px) {
  .lb-stage { padding: 3rem 0.5rem 0.5rem; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
  .lb-thumb { height: 52px; }
}
