.container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Section snapping is handled by the fullpage Observer orchestrator. */
section {
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  padding: max(8rem, var(--glass-nav-safe-top)) 0 8rem;
  position: relative;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  transition: opacity 2.2s ease;
}

/* SVG zoom sections: remove extra vertical padding (pinning handled via GSAP); clip zoomed SVG to section */
.ub-svg-section {
  padding: 0;
  overflow: hidden;
}

/* ── Fullpage Observer-driven slides ──────────────────────────── */
html.fullpage-zone-active {
  overflow: hidden;
}

.fullpage-slide {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  visibility: hidden;
  z-index: 10;
  padding: 0;
  --fullpage-next-reserve: clamp(4rem, 10dvh, 6.5rem);
}

.fullpage-slide:has(.fullpage-scroll-hint--home) {
  --fullpage-primary-hint: var(--fullpage-tint-home);
}

.fullpage-slide:has(.fullpage-scroll-hint--raum) {
  --fullpage-primary-hint: var(--fullpage-tint-raum);
}

.fullpage-slide:has(.fullpage-scroll-hint--service) {
  --fullpage-primary-hint: var(--fullpage-tint-service);
}

.fullpage-slide:has(.fullpage-scroll-hint--kultur) {
  --fullpage-primary-hint: var(--fullpage-tint-kultur);
}

.fullpage-slide:has(.fullpage-scroll-hint--statistik) {
  --fullpage-primary-hint: var(--fullpage-tint-statistik);
}

.fullpage-scroll-hint {
  position: absolute;
  bottom: clamp(0.75rem, 4vmin, 2rem);
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  display: flex;
  width: clamp(2.25rem, 11vmin, 4rem);
  height: clamp(2.25rem, 11vmin, 4rem);
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.fullpage-scroll-hint--home {
  background: var(--fullpage-tint-home);
}

.fullpage-scroll-hint--raum {
  background: var(--fullpage-tint-raum);
}

.fullpage-scroll-hint--service {
  background: var(--fullpage-tint-service);
}

.fullpage-scroll-hint--kultur {
  background: var(--fullpage-tint-kultur);
}

.fullpage-scroll-hint--statistik {
  background: var(--fullpage-tint-statistik);
}

.fullpage-scroll-hint:focus-visible {
  outline: 2px solid var(--accent-green, #348277);
  outline-offset: 2px;
}

.fullpage-scroll-hint img {
  display: block;
  width: clamp(2.25rem, 11vmin, 4rem);
  height: clamp(2.25rem, 11vmin, 4rem);
}

.fullpage-slide[data-fullpage-primary="raum"] {
  --section-title-tint: var(--fullpage-tint-raum);
}

.fullpage-slide[data-fullpage-primary="service"] {
  --section-title-tint: var(--fullpage-tint-service);
}

.fullpage-slide[data-fullpage-primary="kultur"] {
  --section-title-tint: var(--fullpage-tint-kultur);
}

.fullpage-slide[data-fullpage-primary="statistik"] {
  --section-title-tint: var(--fullpage-tint-statistik);
}

.fullpage-slide .outer,
.fullpage-slide .inner {
  width: 100%;
  height: 100%;
  overflow-y: hidden;
  background-color: inherit;
}

.fullpage-slide .bg {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: var(--glass-nav-safe-top);
  box-sizing: border-box;
  background-color: inherit;
  background-size: cover;
  background-position: center;
}

.flow-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.flow-layer--step {
  visibility: hidden;
  opacity: 0;
}
.fullpage-slide .blur-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1;
  pointer-events: none;
}

.fullpage-slide .slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 80vw;
  padding: clamp(0.75rem, 3vmin, 2rem);
}

.fullpage-slide:has(.slide-lottie) .slide-content {
  text-align: left;
}

.fullpage-slide .home-intro-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2rem);
  margin-bottom: clamp(1rem, 3vh, 1.75rem);
}

.fullpage-slide .home-intro-logos img {
  height: clamp(1.75rem, 5vmin + 1vw, 3.75rem);
  width: auto;
  display: block;
}

.fullpage-slide .slide-content h2 {
  font-family: 'Source Serif Pro', Georgia, serif;
  font-size: clamp(1.35rem, 4vmin + 2.5vw, 5.625rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  margin: 0 0 clamp(0.5rem, 2dvh, 1.25rem);
}

.fullpage-slide[data-fullpage-primary]:not([data-fullpage-primary="home"], [data-fullpage-primary="footer"]):not(.template-slide):not(:has(.slide-lottie)) .lottie-split-title,
.fullpage-slide[data-fullpage-primary]:not([data-fullpage-primary="home"], [data-fullpage-primary="footer"]):not(.template-slide):not(:has(.slide-lottie)) .slide-content > h2 {
  color: var(--section-title-tint);
}

.fullpage-slide .slide-content p {
  font-size: clamp(0.9rem, 2vmin + 1vw, 1.35rem);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  margin-top: clamp(0.5rem, 2vmin, 1rem);
}

.fullpage-slide .clip-text {
  overflow: hidden;
}

.fullpage-slide h2 * {
  will-change: transform;
}
.ub-svg-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ub-svg-image {
  width: 100%;
  height: 100%;
  display: block;
}

/* SVG sections with zoom + text layout */
.svg-section .svg-inner,
.ub-svg-section .svg-inner,
.ub-svg-section .ub-svg-inner {
  width: 100%;
  /* max-width: 1280px; */
  margin: 0 auto;
  padding: 3rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.svg-section .svg-image,
.ub-svg-section .svg-image,
.ub-svg-section .ub-svg-image {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 1079px) {
  .container {
    padding: 0 1.5rem;
  }

  section {
    padding: max(4rem, var(--glass-nav-safe-top)) 0 4rem;
  }

  .fullpage-slide:has(.home-intro-logos) .bg {
    padding-top: max(5rem, env(safe-area-inset-top, 0px));
    padding-bottom: var(--fullpage-next-reserve);
    place-content: center;
  }
}

@media (max-height: 700px) {
  section {
    padding: max(2.5rem, var(--glass-nav-safe-top)) 0 max(2.5rem, env(safe-area-inset-bottom, 0px));
  }
  .fullpage-scroll-hint {
    bottom: clamp(0.5rem, 3vmin, 1rem);
    width: clamp(2rem, 10vmin, 3.5rem);
    height: clamp(2rem, 10vmin, 3.5rem);
  }

  .fullpage-scroll-hint img {
    width: clamp(2rem, 10vmin, 3.5rem);
    height: clamp(2rem, 10vmin, 3.5rem);
  }
  .fullpage-slide:not(.template-slide) .slide-content > p:only-of-type {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }

  .fullpage-slide:not(.template-slide) .slide-content-prose {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    min-width: 0;
    white-space: pre-line;
  }
}
