/**
 * Theme Name: vollbad  
 * Description: vollbad theme.
 * Author: Lufy
 * Author URI: https://lufy.at
 * Version: 1.0.0
 * Text Domain: vollbad
 */

@font-face {
  font-family: "Quablo";
  src:
    url("./assets/fonts/Quablo-Bold.woff2") format("woff2"),
    url("./assets/fonts/Quablo-Bold.woff") format("woff"),
    url("./assets/fonts/Quablo-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src:
    url("./assets/fonts/HostGrotesk-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src:
    url("./assets/fonts/HostGrotesk-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Host Grotesk";
  src:
    url("./assets/fonts/HostGrotesk-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --layout-max-width: 1960px;
  --grid-columns: 12;
  --grid-margin: 114px;
  --grid-gutter: 36px;
  --layout-inline-offset: calc((100vw - min(calc(100vw - (2 * var(--grid-margin))), var(--layout-max-width))) / 2);

  /* Colors (Figma tokens) */
  --color-brand-blue: #019fe1;
  --color-brand-darkblue: #192e51;
  --color-brand-black: #121212;
  --color-white: #ffffff;
  --color-error: #d62121;

  --color-text: var(--color-brand-darkblue);
  --color-text-inverse: var(--color-white);
  --color-bg: var(--color-white);
  --color-focus: var(--color-brand-blue);
  --color-hero-text: #1e3152;

  /* Font stacks */
  --font-display: "Quablo", "Arial Black", "Segoe UI", sans-serif;
  --font-body: "Host Grotesk", "Inter", "Segoe UI", Arial, sans-serif;

  /* Spacing scale (Figma) */
  --space-xs: 15px;
  --space-s: 25px;
  --space-m: 50px;
  --space-l: 100px;
  --space-xl: 150px;

  /* Desktop typography */
  --fs-h1: 60px;
  --lh-h1: 70px;
  --fs-h2: 45px;
  --lh-h2: 50px;
  --fs-h3: 28px;
  --lh-h3: 42px;
  --fs-h4: 25px;
  --lh-h4: 29px;
  --fs-intro: 28px;
  --lh-intro: 42px;
  --fs-copy: 18px;
  --lh-copy: 28px;
  --fs-copy-small: 14px;
  --lh-copy-small: 18px;
  --fs-nav: 14px;
  --lh-nav: 20px;
  --fs-tag: 16px;
  --lh-tag: 18px;
  --fs-tag-small: 12px;
  --lh-tag-small: 14px;
  --fs-tag-xs: 10px;
  --lh-tag-xs: 10px;

  /* Hero sizing tokens */
  --hero-content-max-width: 637px;
  --hero-media-radius-desktop: 200px;
  --hero-media-radius-mobile: 100px;
  --hero-wave-offset-bottom: 125px;

  /* Block spacing tokens mapped from editor selects */
  --vb-space-none: 0px;
  --vb-space-xs: var(--space-xs);
  --vb-space-s: var(--space-s);
  --vb-space-m: var(--space-m);
  --vb-space-l: var(--space-l);
  --vb-space-xl: var(--space-xl);
}

@media (max-width: 1350px) and (min-width: 1001px) {
  :root {
    --grid-margin: 50px;
  }
}

@media (max-width: 1000px) and (min-width: 768px) {
  :root {
    --grid-margin: 50px;
    --fs-h1: var(--fs-h2);
    --lh-h1: var(--lh-h2);
    --tablet-portrait-wave-width: calc(
      ((100vw - (2 * var(--grid-margin)) - (11 * var(--grid-gutter))) * 1.5 / 12) +
      (0.5 * var(--grid-gutter))
    );
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  background-color: var(--color-brand-darkblue);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-copy);
  line-height: var(--lh-copy);
  color: var(--color-text);
  background-color: var(--color-brand-darkblue);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Keep content surfaces unchanged even if page backdrop is dark. */
.site-content {
  background: var(--color-white);
}

.container {
  width: min(100% - (2 * var(--grid-margin)), var(--layout-max-width));
  margin-inline: auto;
}

/* Header overlay on hero */
.site-header {
  position: absolute;
  top: 32px;
  left: 32px;
  right: 32px;
  z-index: 50;
}

.site-header .container {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* No transition on the shell itself: when switching primary <-> secondary nav
     the background/padding/shape swap instantly. Only the logo animates its size
     (see .site-logo svg). */
}

.site-logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--fs-nav);
  line-height: var(--lh-nav);
  font-weight: 700;
  color: var(--color-brand-darkblue);
  text-decoration: none;
}

.site-logo svg {
  width: 168px;
  height: 28px;
  object-fit: contain;
  transition: width 220ms ease, height 220ms ease;
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-xs);
  padding: 8px 10px;
  border-radius: 100px;
  position: relative;
  overflow: visible;
}

.site-nav__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--color-white);
  opacity: 1;
  z-index: 0;
}

.site-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  column-gap: var(--space-xs);
  position: relative;
  z-index: 2;
}

.site-nav__item {
  margin: 0;
}

.site-nav__item-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  max-height: 34px;
  padding: 7px 20px;
  color: var(--color-brand-darkblue);
  text-decoration: none;
  border-radius: 50px;
  position: relative;
  z-index: 1;
}

.site-logo:focus-visible,
.site-nav__item-link:focus-visible,
.site-nav__motion-button:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--color-brand-darkblue);
  border-radius: 50px;
}

.site-logo:focus:not(:focus-visible),
.site-nav__item-link:focus:not(:focus-visible),
.site-nav__motion-button:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

.site-nav__item-link:hover,
.site-nav__item-link:active,
.site-nav__item-link[aria-current="page"] {
  text-decoration: none;
}

.site-nav__inner:not(.has-gsap-indicator) .site-nav__item-link:hover,
.site-nav__inner:not(.has-gsap-indicator) .site-nav__item-link:active,
.site-nav__inner:not(.has-gsap-indicator) .site-nav__item-link[aria-current="page"] {
  background: var(--color-brand-blue);
}

.site-nav__motion-button {
  inline-size: 34px;
  block-size: 34px;
  border: 0;
  border-radius: 100px;
  padding: 0;
  background: transparent;
  color: var(--color-brand-darkblue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.site-nav__motion-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.site-nav__motion-button[aria-pressed="true"] {
  background: var(--color-brand-blue);
}

.site-nav__motion-button:hover,
.site-nav__motion-button:active {
  background: var(--color-brand-blue);
}

.site-nav__motion-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 50px;
  background: var(--color-white);
  color: var(--color-brand-darkblue);
  font-family: var(--font-body);
  font-size: var(--fs-copy-small);
  line-height: var(--lh-copy-small);
  font-weight: 700;
  white-space: nowrap;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 2;
}

.site-nav__motion-button:hover+.site-nav__motion-info,
.site-nav__motion-button:focus-visible+.site-nav__motion-info {
  opacity: 1;
  transform: translateY(0);
}

.site-nav__hover-indicator {
  position: absolute;
  top: 0;
  left: 0;
  height: 0;
  width: 0;
  border-radius: 50px;
  background: var(--color-brand-blue);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}

.site-nav-mobile__toggle,
.site-nav-mobile__panel {
  display: none;
}

html.header-floating .site-header {
  position: fixed;
  top: 32px;
  left: 32px;
  right: 32px;
  /* Some GPU/compositor paths (especially on Linux) drop child backdrop-filter
     when an ancestor is promoted with will-change. Keep rendering stable. */
  will-change: auto;
}

/* While the mobile menu locks scrolling, the disappearing scrollbar widens the
   viewport. --vb-scrollbar-comp is set by JS only during the lock (0 otherwise),
   keeping the fixed header from jumping sideways. */
html.header-floating .site-header {
  margin-right: var(--vb-scrollbar-comp, 0px);
}

html.header-floating:not(.header-visible):not(.header-gsap) .site-header {
  visibility: hidden;
  pointer-events: none;
}

html.header-floating.header-visible:not(.header-gsap) .site-header {
  visibility: visible;
  pointer-events: auto;
}

html.header-scrolled .site-header .container {
  padding: 0 0 0 20px;
  border-radius: 100px;
  background: linear-gradient(145deg, rgb(255 255 255 / 82%), rgb(255 255 255 / 72%));
  border: 0;
  box-shadow:
    0 10px 24px rgb(25 46 81 / 12%),
    0 2px 8px rgb(25 46 81 / 8%),
    inset 0 0 0 1px rgb(255 255 255 / 78%),
    inset 0 1px 0 rgb(255 255 255 / 95%),
    inset 0 -1px 0 rgb(255 255 255 / 50%),
    inset 1px 0 0 rgb(255 255 255 / 40%);
  -webkit-backdrop-filter: blur(4px) saturate(106%) contrast(101%);
  backdrop-filter: blur(4px) saturate(106%) contrast(101%);
}

@media (min-width: 1201px) {
  html.header-scrolled .site-header .container {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(160deg, rgb(255 255 255 / 34%), rgb(255 255 255 / 20%));
    box-shadow:
      0 10px 26px rgb(25 46 81 / 14%),
      0 1px 6px rgb(25 46 81 / 10%),
      inset 0 0 0 1px rgb(255 255 255 / 58%),
      inset 0 1px 0 rgb(255 255 255 / 82%);
    -webkit-backdrop-filter: blur(20px) saturate(165%) contrast(104%) brightness(109%);
    backdrop-filter: blur(20px) saturate(165%) contrast(104%) brightness(109%);
  }

  html.header-scrolled .site-header .container::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    background:
      radial-gradient(120% 90% at 16% 0%, rgb(255 255 255 / 54%) 0%, rgb(255 255 255 / 0%) 56%),
      radial-gradient(95% 88% at 84% 114%, rgb(255 255 255 / 18%) 0%, rgb(255 255 255 / 0%) 64%);
    -webkit-backdrop-filter: blur(14px) saturate(150%) contrast(104%);
    backdrop-filter: blur(14px) saturate(150%) contrast(104%);
    opacity: 0.66;
    pointer-events: none;
    z-index: 0;
  }

  html.header-scrolled .site-header .container::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(180deg, rgb(255 255 255 / 30%), rgb(255 255 255 / 10%) 38%, rgb(255 255 255 / 14%) 100%);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 1;
  }

  html.header-scrolled .site-header .container>* {
    position: relative;
    z-index: 2;
  }
}

html.header-scrolled .site-logo svg {
  width: 108px;
  height: 18px;
}

html.header-scrolled .site-nav {
  flex: 1 0 auto;
}

html.header-scrolled .site-nav__inner {
  width: 100%;
  justify-content: flex-end;
  gap: var(--space-xs);
  padding: 8px 0;
}

html.header-scrolled .site-nav__motion-button {
  margin-right: 10px;
}

html.header-scrolled .site-nav__inner::before {
  opacity: 0;
}

html.header-scrolled .site-nav__motion-info {
  display: none;
}

.layout-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  column-gap: var(--grid-gutter);
}

.layout-grid>* {
  min-width: 0;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 0.08em;
}

a:hover {
  text-decoration-thickness: 0.12em;
}

/* WCAG focus visibility */
:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}

/* Screenreader utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Skip link for keyboard/screenreader users */
.skip-link {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 10000;
  transform: translateY(-120%);
  padding: 0.75rem 1rem;
  background: var(--color-brand-darkblue);
  color: var(--color-text-inverse);
  text-decoration: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Semantic defaults */
h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  color: var(--color-brand-darkblue);
}

h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h1);
  line-height: var(--lh-h1);
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h2);
  line-height: var(--lh-h2);
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
}

h4 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-h4);
  line-height: var(--lh-h4);
}

p {
  margin: 0 0 1em;
}

/* Utility classes from Figma text styles */
.t-intro {
  font-family: var(--font-display);
  font-size: var(--fs-intro);
  line-height: var(--lh-intro);
  font-weight: 700;
}

.t-copy {
  font-family: var(--font-body);
  font-size: var(--fs-copy);
  line-height: var(--lh-copy);
  font-weight: 500;
}

.t-copy-bold {
  font-family: var(--font-body);
  font-size: var(--fs-copy);
  line-height: var(--lh-copy);
  font-weight: 700;
}

.t-copy-small {
  font-family: var(--font-body);
  font-size: var(--fs-copy-small);
  line-height: var(--lh-copy-small);
  font-weight: 700;
}

.t-nav {
  font-family: var(--font-display);
  font-size: var(--fs-nav);
  line-height: var(--lh-nav);
  font-weight: 700;
}

.t-tag {
  font-family: var(--font-display);
  font-size: var(--fs-tag);
  line-height: var(--lh-tag);
  font-weight: 700;
  letter-spacing: 0;
}

.t-tag-small {
  font-family: var(--font-display);
  font-size: var(--fs-tag-small);
  line-height: var(--lh-tag-small);
  font-weight: 700;
  letter-spacing: 0;
}

.t-tag-xs {
  font-family: var(--font-display);
  font-size: var(--fs-tag-xs);
  line-height: var(--lh-tag-xs);
  font-weight: 700;
  letter-spacing: 0;
}

/* Module foundation */
.module {
  position: relative;
}

/* GSAP scroll-reveal: hide animated elements before the engine runs so there is
   no first-paint flicker. Cleared per element once revealed (.is-revealed), and
   globally disabled for reduced-motion or if the engine fails to initialize. */
html.vb-anim:not(.vb-anim-disabled) [data-anim]:not(.is-revealed) {
  opacity: 0;
}

/* Block spacing controls (ACF driven via classes from render callback)
   - outer: section margin
   - inner: section padding */
.module.vb-space-mode-outer[class*="vb-space-dt-top-"] {
  margin-top: 0;
}

.module.vb-space-mode-outer.vb-space-dt-top-none {
  margin-top: var(--vb-space-none);
}

.module.vb-space-mode-outer.vb-space-dt-top-xs {
  margin-top: var(--vb-space-xs);
}

.module.vb-space-mode-outer.vb-space-dt-top-s {
  margin-top: var(--vb-space-s);
}

.module.vb-space-mode-outer.vb-space-dt-top-m {
  margin-top: var(--vb-space-m);
}

.module.vb-space-mode-outer.vb-space-dt-top-l {
  margin-top: var(--vb-space-l);
}

.module.vb-space-mode-outer.vb-space-dt-top-xl {
  margin-top: var(--vb-space-xl);
}

.module.vb-space-mode-outer[class*="vb-space-dt-bottom-"] {
  margin-bottom: 0;
}

.module.vb-space-mode-outer.vb-space-dt-bottom-none {
  margin-bottom: var(--vb-space-none);
}

.module.vb-space-mode-outer.vb-space-dt-bottom-xs {
  margin-bottom: var(--vb-space-xs);
}

.module.vb-space-mode-outer.vb-space-dt-bottom-s {
  margin-bottom: var(--vb-space-s);
}

.module.vb-space-mode-outer.vb-space-dt-bottom-m {
  margin-bottom: var(--vb-space-m);
}

.module.vb-space-mode-outer.vb-space-dt-bottom-l {
  margin-bottom: var(--vb-space-l);
}

.module.vb-space-mode-outer.vb-space-dt-bottom-xl {
  margin-bottom: var(--vb-space-xl);
}

.module.vb-space-mode-inner[class*="vb-space-dt-top-"] {
  padding-top: 0;
}

.module.vb-space-mode-inner.vb-space-dt-top-none {
  padding-top: var(--vb-space-none);
}

.module.vb-space-mode-inner.vb-space-dt-top-xs {
  padding-top: var(--vb-space-xs);
}

.module.vb-space-mode-inner.vb-space-dt-top-s {
  padding-top: var(--vb-space-s);
}

.module.vb-space-mode-inner.vb-space-dt-top-m {
  padding-top: var(--vb-space-m);
}

.module.vb-space-mode-inner.vb-space-dt-top-l {
  padding-top: var(--vb-space-l);
}

.module.vb-space-mode-inner.vb-space-dt-top-xl {
  padding-top: var(--vb-space-xl);
}

.module.vb-space-mode-inner[class*="vb-space-dt-bottom-"] {
  padding-bottom: 0;
}

.module.vb-space-mode-inner.vb-space-dt-bottom-none {
  padding-bottom: var(--vb-space-none);
}

.module.vb-space-mode-inner.vb-space-dt-bottom-xs {
  padding-bottom: var(--vb-space-xs);
}

.module.vb-space-mode-inner.vb-space-dt-bottom-s {
  padding-bottom: var(--vb-space-s);
}

.module.vb-space-mode-inner.vb-space-dt-bottom-m {
  padding-bottom: var(--vb-space-m);
}

.module.vb-space-mode-inner.vb-space-dt-bottom-l {
  padding-bottom: var(--vb-space-l);
}

.module.vb-space-mode-inner.vb-space-dt-bottom-xl {
  padding-bottom: var(--vb-space-xl);
}

/* Intro secondary: apply spacing directly as inner panel padding */
.module-intro--secondary-spacing.vb-space-mode-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.module-intro--secondary-spacing.vb-space-mode-outer {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.module-intro--secondary.vb-space-dt-top-none .module-intro__content {
  padding-top: var(--vb-space-none);
}

.module-intro--secondary.vb-space-dt-top-xs .module-intro__content {
  padding-top: var(--vb-space-xs);
}

.module-intro--secondary.vb-space-dt-top-s .module-intro__content {
  padding-top: var(--vb-space-s);
}

.module-intro--secondary.vb-space-dt-top-m .module-intro__content {
  padding-top: var(--vb-space-m);
}

.module-intro--secondary.vb-space-dt-top-l .module-intro__content {
  padding-top: var(--vb-space-l);
}

.module-intro--secondary.vb-space-dt-top-xl .module-intro__content {
  padding-top: var(--vb-space-xl);
}

.module-intro--secondary.vb-space-dt-bottom-none .module-intro__content {
  padding-bottom: var(--vb-space-none);
}

.module-intro--secondary.vb-space-dt-bottom-xs .module-intro__content {
  padding-bottom: var(--vb-space-xs);
}

.module-intro--secondary.vb-space-dt-bottom-s .module-intro__content {
  padding-bottom: var(--vb-space-s);
}

.module-intro--secondary.vb-space-dt-bottom-m .module-intro__content {
  padding-bottom: var(--vb-space-m);
}

.module-intro--secondary.vb-space-dt-bottom-l .module-intro__content {
  padding-bottom: var(--vb-space-l);
}

.module-intro--secondary.vb-space-dt-bottom-xl .module-intro__content {
  padding-bottom: var(--vb-space-xl);
}

/* Shared module utilities (deduped from block stylesheets) */
.media-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-contain {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.module-intro-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.module-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-brand-blue);
}

.module-faq__accordion .vb-accordion__item,
.module-ablauf__accordion .vb-accordion__item,
.module-loesungen__accordion .vb-accordion__item {
  position: relative;
  border-top-color: transparent;
}

.vb-accordion__wave-divider {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  color: var(--color-brand-blue);
}

.vb-accordion__wave-divider--top {
  top: -8px;
}

.vb-accordion__wave-divider--bottom {
  bottom: -8px;
}

.vb-slider-arrow {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  /* WCAG 2.5.8 Target Size (Minimum): keep the hit area >= 24x24px even though
     the arrow glyph itself is shorter. */
  width: 28px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vb-slider-arrow.swiper-button-disabled {
  opacity: 0.4;
  cursor: default;
}

/* Reusable animated button component */
.vb-button {
  --vb-button-bg: var(--color-brand-darkblue);
  --vb-button-fg: var(--color-white);
  --vb-button-liquid: var(--color-brand-blue);
  --vb-button-height: 44px;
  --vb-button-radius: 999px;
  --vb-button-pad-x: 20px;
  --vb-button-gap: 10px;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vb-button-gap);
  min-height: var(--vb-button-height);
  padding: 8px var(--vb-button-pad-x);
  border-radius: var(--vb-button-radius);
  background: var(--vb-button-bg);
  color: var(--vb-button-fg);
  text-decoration: none;
  overflow: visible;
  isolation: isolate;
}

/* Secondary version: white liquid overlay on hover instead of blue. */
.vb-button--secondary {
  --vb-button-liquid: var(--color-white);
}

.vb-button__clip {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  --vb-seal-opacity: 0;
}

.vb-button__clip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--vb-button-liquid);
  opacity: var(--vb-seal-opacity);
  pointer-events: none;
  z-index: 1;
}

.vb-button__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.vb-button__label {
  position: relative;
  z-index: 1;
  white-space: nowrap;
}

.vb-button__label--light {
  color: var(--vb-button-fg);
}

.vb-button__label--dark {
  color: var(--color-brand-darkblue);
  position: absolute;
  left: var(--vb-button-pad-x);
  right: var(--vb-button-pad-x);
  text-align: left;
  opacity: 0;
}

.vb-button__arrow-icon {
  position: absolute;
  top: 50%;
  right: -44px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--vb-button-liquid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translate(-26px, -50%) scale(0.9);
  opacity: 0;
  z-index: 2;
  pointer-events: none;
}

.vb-button__arrow-icon svg {
  width: 20px;
  height: 13px;
  display: block;
}

.vb-button:hover,
.vb-button:active {
  text-decoration: none;
}

.vb-button:focus-visible {
  outline: 3px solid var(--color-white);
  outline-offset: 3px;
  box-shadow: 0 0 0 2px var(--color-brand-darkblue);
}

html.reduced-motion .vb-button__canvas {
  display: none !important;
}

html.reduced-motion .vb-button__label--light {
  opacity: 1 !important;
}

html.reduced-motion .vb-button__label--dark {
  opacity: 0 !important;
}

html.reduced-motion .vb-button__arrow-icon {
  opacity: 0 !important;
  transform: translate(-26px, -50%) scale(0.9) !important;
}

/* Keep hover/focus feedback available in reduced-motion mode
   without fluid motion animation. */
html.reduced-motion .vb-button:hover .vb-button__label--light,
html.reduced-motion .vb-button:focus-visible .vb-button__label--light,
html.reduced-motion .vb-button:active .vb-button__label--light {
  opacity: 0 !important;
}

html.reduced-motion .vb-button:hover .vb-button__label--dark,
html.reduced-motion .vb-button:focus-visible .vb-button__label--dark,
html.reduced-motion .vb-button:active .vb-button__label--dark {
  opacity: 1 !important;
}

html.reduced-motion .vb-button:hover,
html.reduced-motion .vb-button:focus-visible,
html.reduced-motion .vb-button:active {
  background: var(--vb-button-liquid);
}

/* In reduced-motion mode, keep nav hover/active as static states
   instead of relying on animated GSAP indicator movement. */
html.reduced-motion .site-nav__hover-indicator {
  opacity: 0 !important;
}

html.reduced-motion .site-nav__item-link:hover,
html.reduced-motion .site-nav__item-link:focus-visible,
html.reduced-motion .site-nav__item-link:active,
html.reduced-motion .site-nav__item-link[aria-current="page"] {
  background: var(--color-brand-blue);
}

/* Fullscreen click transition wave */
.vb-wave-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}

.vb-wave-overlay path {
  fill: var(--color-brand-blue);
}

html.wave-transition-active .site-header {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(-120%) !important;
}

@media (prefers-reduced-motion: reduce),
(update: slow) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

html.reduced-motion *,
html.reduced-motion *::before,
html.reduced-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

html.reduced-motion video {
  animation: none !important;
}

/* Footer */
.site-footer {
  background: var(--color-brand-darkblue);
}

.site-footer__grid {
  padding-top: 100px;
  padding-bottom: 100px;
  color: var(--color-white);
  row-gap: 50px;
}

.site-footer__info {
  grid-column: 1 / span 3;
  min-width: 0;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.site-footer__logo-wrap {
  width: 130px;
  margin-bottom: 50px;
}

.site-footer__logo {
  width: 100%;
  height: auto;
  display: block;
}

.site-footer__heading {
  margin: 0 0 18px;
  color: inherit;
}

.site-footer__address {
  margin: 0 0 50px;
  color: inherit;
}

.site-footer__socials {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  grid-column: 1 / span 3;
  grid-row: 2;
  align-self: end;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: color 220ms ease;
}

.site-footer__social-link:hover,
.site-footer__social-link:focus-visible {
  color: var(--color-brand-blue);
}

.site-footer__social-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.site-footer__social-icon--svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-footer__social-icon--svg svg {
  width: 24px;
  height: 24px;
  display: block;
}

.site-footer__social-icon--svg svg [fill]:not([fill="none"]) {
  fill: currentColor !important;
}

.site-footer__social-icon--svg svg [stroke]:not([stroke="none"]) {
  stroke: currentColor !important;
}

.site-footer__main-nav {
  grid-column: 8 / span 5;
  grid-row: 1;
  align-self: start;
  justify-self: end;
}

.site-footer__menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
}

.site-footer__main-nav .site-footer__menu-list {
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 20px;
}

.site-footer__menu-list a {
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--fs-copy);
  line-height: var(--lh-copy);
  font-weight: 700;
  transition: color 220ms ease;
}

.site-footer__menu-list a:hover,
.site-footer__menu-list a:focus-visible {
  color: var(--color-brand-blue);
}

.site-footer__wave {
  --wave-width: 124px;
  grid-column: 12 / span 1;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  width: var(--wave-width);
}

.site-footer__footer-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  align-self: end;
  width: auto;
}

.site-footer__menu-list--footer {
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  width: auto;
}

@media (max-width: 1399px) {

  .site-footer__info,
  .site-footer__info.is-revealed {
    grid-column: 1 / span 5;
  }
}

@media (max-width: 1000px) {
  .site-footer__grid {
    padding-top: 50px;
    padding-bottom: 50px;
    row-gap: 0;
  }

  .site-footer__info {
    grid-column: 1 / -1;
    grid-row: auto;
    margin-bottom: 0;
  }

  .site-footer__socials,
  .site-footer__wave,
  .site-footer__footer-nav {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .site-footer__main-nav {
    display: none;
  }

  .site-footer__logo-wrap {
    width: 130px;
  }

  .site-footer__socials {
    margin-top: 0;
    margin-bottom: 100px;
    align-self: start;
  }

  .site-footer__wave {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 0;
    margin-bottom: 100px;
  }

  .site-footer__footer-nav {
    justify-self: start;
    width: 100%;
  }

  .site-footer__menu-list--footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, max-content));
    justify-content: start;
    column-gap: 20px;
    row-gap: 10px;
    width: 100%;
  }
}

/* Site popup */
.site-popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1300;
}

.site-popup__backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: var(--color-brand-darkblue);
}

.site-popup__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  border-radius: 0 0 150px 0;
  background: linear-gradient(160deg, rgb(255 255 255 / 58%), rgb(255 255 255 / 44%));
  border: 0;
  box-shadow:
    0 10px 26px rgb(25 46 81 / 14%),
    0 1px 6px rgb(25 46 81 / 10%),
    inset 0 0 0 1px rgb(255 255 255 / 72%),
    inset 0 1px 0 rgb(255 255 255 / 90%),
    inset 0 -1px 0 rgb(255 255 255 / 50%);
  -webkit-backdrop-filter: blur(18px) saturate(140%) contrast(102%) brightness(107%);
  backdrop-filter: blur(18px) saturate(140%) contrast(102%) brightness(107%);
  padding: 50px;
}

.site-popup__close {
  position: absolute;
  top: 50px;
  right: 50px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-brand-darkblue);
  cursor: pointer;
}

.site-popup__close svg {
  width: 22px;
  height: 22px;
  display: block;
}

.site-popup__grid {
  display: grid;
  grid-template-columns: 336px minmax(0, 1fr);
  column-gap: 50px;
  align-items: center;
}

.site-popup__image-wrap {
  width: 336px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.site-popup__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-popup__panel--no-image .site-popup__grid {
  grid-template-columns: minmax(0, 1fr);
}

.site-popup__panel--no-image .site-popup__content {
  /* Reserve space for the absolute close button in no-image layout. */
  padding-right: 56px;
}

.site-popup__heading {
  margin: 0;
  color: var(--color-brand-darkblue);
}

.site-popup__text {
  margin: 50px 0 0;
  color: var(--color-brand-darkblue);
}

@media (max-width: 1000px) and (min-width: 768px) and (orientation: portrait) {
  .site-popup__panel {
    width: 100%;
    padding: 40px;
  }

  .site-popup__close {
    top: 40px;
    right: 40px;
  }

  .site-popup__grid {
    grid-template-columns: 1fr;
    row-gap: 25px;
  }

  .site-popup__image-wrap {
    width: 100%;
    max-width: min(336px, calc(100% - 97px));
    justify-self: start;
  }
}

.kontakt-fab {
  position: fixed;
  right: 32px;
  bottom: 32px;
  width: 50px;
  height: 50px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  display: inline-flex;
  column-gap: 4px;
  align-items: center;
  justify-content: end;
  cursor: pointer;
  z-index: 1200;
  overflow: visible;
  transition: width 180ms ease, opacity 180ms ease, transform 180ms ease;
}

.kontakt-fab.is-hidden-by-footer {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.kontakt-fab__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0;
  border-radius: 50px;
  background: var(--color-brand-darkblue);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  opacity: 0;
  max-width: 0;
  white-space: nowrap;
  overflow: hidden;
  transform: translateX(6px);
  transition: opacity 180ms ease, transform 180ms ease, max-width 180ms ease, padding 180ms ease;
}

.kontakt-fab__icon {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--color-brand-darkblue);
  flex-shrink: 0;
}

.kontakt-fab__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.kontakt-fab:hover,
.kontakt-fab:focus-visible {
  width: 170px;
}

.kontakt-fab:hover .kontakt-fab__label,
.kontakt-fab:focus-visible .kontakt-fab__label {
  opacity: 1;
  max-width: 116px;
  padding: 0 20px;
  transform: translateX(0);
}

.kontakt-fab:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--color-brand-darkblue), 0 0 0 5px var(--color-white);
}

.kontakt-fab:focus:not(:focus-visible) {
  outline: none;
}

/* Hide the floating button while the mobile fullscreen menu is open
   (mobile-nav-open is only ever set on mobile). On desktop it stays visible. */
html.mobile-nav-open .kontakt-fab {
  display: none;
}

html.reduced-motion .kontakt-fab {
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .kontakt-fab {
    transition: none;
  }

  .kontakt-fab__label {
    transition: none;
  }
}

/* 404 */
.module-404 {
  background: var(--color-brand-blue);
  color: var(--color-brand-darkblue);
  min-height: 100vh;
}

.module-404 .container {
  min-height: 100vh;
}

.module-404__content {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  padding: 200px 0 0;
}

.module-404__tag {
  margin: 0;
  margin-bottom: 20px;
}

.module-404__title {
  margin: 0;
  max-width: 832px;
}

.module-404__body {
  margin-top: 50px;
  margin-bottom: 100px;
  width: 100%;
  max-width: 584px;
  min-height: 1px;
  display: block;
  flex: 0 0 auto;
}

.module-404__intro {
  margin: 0;
  margin-bottom: 100px;
}

.module-404__cta {
  margin-top: 0;
}

.module-404__wave {
  --wave-width: 124px;
  margin-top: auto;
  margin-bottom: 200px;
  color: var(--color-white);
  display: block;
  width: var(--wave-width);
  overflow-x: hidden;
  overflow-y: visible;
}

.vb-wave-loop {
  display: block;
  width: var(--wave-width, 124px);
  overflow-x: hidden;
  overflow-y: visible;
}

.vb-wave-loop__track {
  display: flex;
  align-items: center;
  width: max-content;
  transform: translateX(0);
  will-change: transform;
}

.vb-wave-loop svg {
  display: block;
  width: var(--wave-width, 124px);
  height: auto;
  overflow: visible;
  flex: 0 0 auto;
}

.vb-wave-loop__track svg+svg {
  margin-left: -1px;
}

.module-404__wave-track {
  display: flex;
  align-items: center;
  width: max-content;
  transform: translateX(0);
  will-change: transform;
}

.module-404__wave svg {
  display: block;
  width: var(--wave-width);
  height: auto;
  overflow: visible;
  flex: 0 0 auto;
}

.module-single-referenz-content__grid {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.module-single-referenz-content__body {
  grid-column: 1 / -1;
}

.module-single-referenz-main__grid {
  align-items: stretch;
}

.module-single-referenz-main__content {
  grid-column: 1 / span 5;
  align-self: stretch;
}

.module-single-referenz-main__content-sticky {
  position: sticky;
  top: 140px;
}

.module-single-referenz-main__media {
  grid-column: 7 / span 6;
  align-self: start;
}

.module-single-referenz-main__heading {
  margin: 0;
}

.module-single-referenz-main__text {
  margin: 100px 0 0;
}

.module-single-referenz-main__meta {
  margin: 100px 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 20px;
  row-gap: 0;
  align-items: start;
}

.module-single-referenz-main__meta-label {
  margin: 0;
  text-transform: uppercase;
}

.module-single-referenz-main__meta-value {
  margin: 0;
}

.module-single-referenz-main__budget {
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-single-referenz-main__budget-symbol {
  opacity: 0.3;
}

.module-single-referenz-main__budget-symbol.is-active {
  opacity: 1;
}

.module-single-referenz-main__before-after {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

/* The range input overlay is visually hidden (opacity: 0), so surface the
   keyboard focus on the container instead (WCAG 2.4.7 Focus Visible).
   Only shown in accessibility mode (html.reduced-motion). */
.reduced-motion .module-single-referenz-main__before-after:focus-within {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.module-single-referenz-main__before-after-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-single-referenz-main__before-after-after-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}

.module-single-referenz-main__before-after-image--after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.module-single-referenz-main__before-after-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--color-white);
  transform: translateX(-50%);
  pointer-events: none;
}

/* Before/after slider handle (shared across blocks): a 50x50 semi-transparent
   glass circle like the secondary nav, with two outward chevrons 10px apart. */
.vb-ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 2px 2px 12px 0 rgb(0 0 0 / 8%);
  pointer-events: none;
}

.vb-ba-chevron {
  display: block;
  width: 10px;
  height: 16px;
  flex-shrink: 0;
}

.vb-ba-chevron--right {
  transform: scaleX(-1);
}

.module-single-referenz-main__before-after-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.module-single-referenz-main__gallery {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--grid-gutter);
  row-gap: 50px;
}

.module-single-referenz-main__gallery-item {
  margin: 0;
  overflow: hidden;
}

.module-single-referenz-main__gallery-item--landscape {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}

.module-single-referenz-main__gallery-item--portrait {
  grid-column: span 3;
  aspect-ratio: 3 / 4;
  margin: 0;
}

.module-single-referenz-main__gallery-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.module-single-referenz-back__grid {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.module-single-referenz-back__button-wrap {
  grid-column: 1 / -1;
}

@media (max-width: 1000px) and (min-width: 768px) {
  .module-single-referenz-content__grid {
    padding-top: var(--space-l);
    padding-bottom: var(--space-l);
  }

  .module-single-referenz-main__content,
  .module-single-referenz-main__media {
    grid-column: 1 / -1;
  }

  .module-single-referenz-main__content-sticky {
    position: static;
  }

  .module-single-referenz-main__text {
    margin-top: 50px;
  }

  .module-single-referenz-main__meta {
    margin: 50px 0 0;
    row-gap: 0;
  }

  .module-single-referenz-main__media {
    margin-top: 50px;
  }

  .module-single-referenz-main__gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 50px;
  }

  .module-single-referenz-main__gallery-item {
    grid-column: 1 / -1;
  }

  .module-single-referenz-back__grid {
    padding-top: var(--space-l);
    padding-bottom: var(--space-l);
  }
}

@media (max-width: 1000px) {
  .site-header {
    top: 15px;
    left: 15px;
    right: 15px;
  }

  html.header-floating .site-header {
    top: 15px;
    left: 15px;
    right: 15px;
  }

  .site-nav {
    display: none;
  }

  .site-header .container {
    padding: 10px 15px;
    border-radius: 100px;
    background: linear-gradient(160deg, rgb(255 255 255 / 34%), rgb(255 255 255 / 20%));
    border: 0;
    box-shadow:
      0 10px 26px rgb(25 46 81 / 14%),
      0 1px 6px rgb(25 46 81 / 10%),
      inset 0 0 0 1px rgb(255 255 255 / 58%),
      inset 0 1px 0 rgb(255 255 255 / 82%);
    -webkit-backdrop-filter: blur(20px) saturate(165%) contrast(104%) brightness(109%);
    backdrop-filter: blur(20px) saturate(165%) contrast(104%) brightness(109%);
    transition: background 220ms ease, box-shadow 220ms ease, backdrop-filter 220ms ease;
  }

  .site-logo svg {
    width: 114px;
    height: 19px;
  }

  html.header-scrolled .site-header .container {
    padding: 10px 15px;
    border-radius: 100px;
    background: linear-gradient(160deg, rgb(255 255 255 / 34%), rgb(255 255 255 / 20%));
    border: 0;
    box-shadow:
      0 10px 26px rgb(25 46 81 / 14%),
      0 1px 6px rgb(25 46 81 / 10%),
      inset 0 0 0 1px rgb(255 255 255 / 58%),
      inset 0 1px 0 rgb(255 255 255 / 82%);
    -webkit-backdrop-filter: blur(20px) saturate(165%) contrast(104%) brightness(109%);
    backdrop-filter: blur(20px) saturate(165%) contrast(104%) brightness(109%);
  }

  html.header-scrolled .site-logo svg {
    width: 114px;
    height: 19px;
  }

  .site-nav-mobile__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: var(--color-brand-darkblue);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .site-nav-mobile__toggle-icon {
    position: relative;
    width: 30px;
    height: 30px;
    display: block;
  }

  .site-nav-mobile__burger,
  .site-nav-mobile__close {
    position: absolute;
    inset: 0;
    width: 30px;
    height: 30px;
    transform-origin: 50% 50%;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav-mobile__burger {
    opacity: 1;
    transform: rotate(0deg);
    overflow: hidden;
  }

  .site-nav-mobile__close {
    opacity: 0;
    width: 24px;
    height: 24px;
    inset: 3px;
    transform: rotate(-8deg);
  }

  .site-nav-mobile__burger path,
  .site-nav-mobile__close path {
    stroke: currentColor;
  }

  .site-nav-mobile__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: fixed;
    inset: 0;
    height: 100svh;
    max-height: 100svh;
    background: var(--color-brand-blue);
    color: var(--color-brand-darkblue);
    padding: 120px var(--grid-margin);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    z-index: 55;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .site-nav-mobile__panel::-webkit-scrollbar {
    display: none;
  }

  .site-nav-mobile__waves svg {
    overflow: visible;
  }

  .site-nav-mobile__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }

  .site-nav-mobile__item {
    margin: 0;
  }

  .site-nav-mobile__link {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 40px;
    line-height: 35px;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
  }

  .site-nav-mobile__waves {
    --wave-width: calc((100vw - (2 * var(--grid-margin)) - (3 * var(--grid-gutter))) / 4);
    position: absolute;
    left: var(--grid-margin);
    bottom: 25px;
    color: var(--color-white);
  }

  .site-nav-mobile__motion-control {
    position: absolute;
    right: var(--grid-margin);
    bottom: 25px;
    max-width: calc(100vw - (2 * var(--grid-margin)));
    margin-right: 0;
    z-index: 1;
  }

  .site-nav-mobile__motion-button {
    inline-size: auto;
    max-width: 100%;
    block-size: auto;
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .site-nav-mobile__motion-button:hover,
  .site-nav-mobile__motion-button:active,
  .site-nav-mobile__motion-button[aria-pressed="true"] {
    background: transparent !important;
  }

  .site-nav-mobile__motion-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand-darkblue);
  }

  .site-nav-mobile__motion-icon svg {
    width: 18px;
    height: 21px;
    display: block;
  }

  .site-nav-mobile__motion-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-brand-darkblue);
    font-family: var(--font-body);
    font-size: var(--fs-copy-small);
    line-height: var(--lh-copy-small);
    font-weight: 700;
    white-space: nowrap;
    border-radius: 50px;
    padding: 4px 10px;
    background: transparent;
  }

  .site-nav-mobile__motion-button[aria-pressed="true"] .site-nav-mobile__motion-icon {
    background: var(--color-brand-darkblue);
    color: var(--color-brand-blue);
  }

  .site-nav-mobile__motion-button[aria-pressed="true"] .site-nav-mobile__motion-info {
    background: var(--color-brand-darkblue);
    color: var(--color-brand-blue);
  }

  html.mobile-nav-open,
  html.mobile-nav-open body {
    overflow: hidden;
  }


  html.mobile-nav-open .site-header .container {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  html.mobile-nav-open .site-nav-mobile__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html.mobile-nav-open .site-nav-mobile__burger {
    opacity: 0;
    transform: rotate(8deg);
  }

  html.mobile-nav-open .site-nav-mobile__close {
    opacity: 1;
    transform: rotate(0deg);
  }

  html.mobile-nav-open .site-nav-mobile__toggle {
    color: var(--color-brand-darkblue);
  }

  html.mobile-nav-open .site-header {
    z-index: 70;
  }
}

@media (max-width: 1000px) and (min-width: 768px) {
  .site-nav-mobile__waves {
    --wave-width: var(--tablet-portrait-wave-width);
    width: var(--tablet-portrait-wave-width);
    min-width: var(--tablet-portrait-wave-width);
    max-width: var(--tablet-portrait-wave-width);
  }
}

/* Mobile type scale from Figma */
@media (max-width: 767px) {

  html,
  body {
    overflow-x: clip;
    max-width: 100%;
  }

  :root {
    --grid-columns: 4;
    --grid-margin: 15px;
    --grid-gutter: 18px;

    --fs-h1: 35px;
    --lh-h1: 40px;
    --fs-h2: 30px;
    --lh-h2: 35px;
    --fs-h3: 24px;
    --lh-h3: 34px;
    --fs-h4: 22px;
    --lh-h4: 32px;
    --fs-intro: 20px;
    --lh-intro: 28px;
    --fs-copy: 16px;
    --lh-copy: 26px;
    --fs-copy-small: 14px;
    --lh-copy-small: 18px;
    --fs-tag: 14px;
    --lh-tag: 16px;
    --fs-tag-small: 10px;
    --lh-tag-small: 12px;
    --fs-tag-xs: 10px;
    --lh-tag-xs: 10px;
  }

  .kontakt-fab {
    width: 50px;
    height: 50px;
    padding: 0;
    right: 15px;
    bottom: 15px;
  }

  .kontakt-fab__icon {
    width: 50px;
    height: 50px;
  }

  .kontakt-fab__icon svg {
    width: 22px;
    height: 22px;
  }

  .kontakt-fab:hover,
  .kontakt-fab:focus-visible {
    width: 50px;
  }

  .kontakt-fab__label {
    display: none;
  }

  .module.vb-space-mode-outer[class*="vb-space-m-top-"] {
    margin-top: 0;
  }

  .module.vb-space-mode-outer.vb-space-m-top-none {
    margin-top: var(--vb-space-none);
  }

  .module.vb-space-mode-outer.vb-space-m-top-xs {
    margin-top: var(--vb-space-xs);
  }

  .module.vb-space-mode-outer.vb-space-m-top-s {
    margin-top: var(--vb-space-s);
  }

  .module.vb-space-mode-outer.vb-space-m-top-m {
    margin-top: var(--vb-space-m);
  }

  .module.vb-space-mode-outer.vb-space-m-top-l {
    margin-top: var(--vb-space-l);
  }

  .module.vb-space-mode-outer.vb-space-m-top-xl {
    margin-top: var(--vb-space-xl);
  }

  .module.vb-space-mode-outer[class*="vb-space-m-bottom-"] {
    margin-bottom: 0;
  }

  .module.vb-space-mode-outer.vb-space-m-bottom-none {
    margin-bottom: var(--vb-space-none);
  }

  .module.vb-space-mode-outer.vb-space-m-bottom-xs {
    margin-bottom: var(--vb-space-xs);
  }

  .module.vb-space-mode-outer.vb-space-m-bottom-s {
    margin-bottom: var(--vb-space-s);
  }

  .module.vb-space-mode-outer.vb-space-m-bottom-m {
    margin-bottom: var(--vb-space-m);
  }

  .module.vb-space-mode-outer.vb-space-m-bottom-l {
    margin-bottom: var(--vb-space-l);
  }

  .module.vb-space-mode-outer.vb-space-m-bottom-xl {
    margin-bottom: var(--vb-space-xl);
  }

  .module.vb-space-mode-inner[class*="vb-space-m-top-"] {
    padding-top: 0;
  }

  .module.vb-space-mode-inner.vb-space-m-top-none {
    padding-top: var(--vb-space-none);
  }

  .module.vb-space-mode-inner.vb-space-m-top-xs {
    padding-top: var(--vb-space-xs);
  }

  .module.vb-space-mode-inner.vb-space-m-top-s {
    padding-top: var(--vb-space-s);
  }

  .module.vb-space-mode-inner.vb-space-m-top-m {
    padding-top: var(--vb-space-m);
  }

  .module.vb-space-mode-inner.vb-space-m-top-l {
    padding-top: var(--vb-space-l);
  }

  .module.vb-space-mode-inner.vb-space-m-top-xl {
    padding-top: var(--vb-space-xl);
  }

  .module.vb-space-mode-inner[class*="vb-space-m-bottom-"] {
    padding-bottom: 0;
  }

  .module.vb-space-mode-inner.vb-space-m-bottom-none {
    padding-bottom: var(--vb-space-none);
  }

  .module.vb-space-mode-inner.vb-space-m-bottom-xs {
    padding-bottom: var(--vb-space-xs);
  }

  .module.vb-space-mode-inner.vb-space-m-bottom-s {
    padding-bottom: var(--vb-space-s);
  }

  .module.vb-space-mode-inner.vb-space-m-bottom-m {
    padding-bottom: var(--vb-space-m);
  }

  .module.vb-space-mode-inner.vb-space-m-bottom-l {
    padding-bottom: var(--vb-space-l);
  }

  .module.vb-space-mode-inner.vb-space-m-bottom-xl {
    padding-bottom: var(--vb-space-xl);
  }

  .module-intro--secondary-spacing.vb-space-mode-inner {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .module-intro--secondary-spacing.vb-space-mode-outer {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .module-intro--secondary.vb-space-m-top-none .module-intro__content {
    padding-top: var(--vb-space-none);
  }

  .module-intro--secondary.vb-space-m-top-xs .module-intro__content {
    padding-top: var(--vb-space-xs);
  }

  .module-intro--secondary.vb-space-m-top-s .module-intro__content {
    padding-top: var(--vb-space-s);
  }

  .module-intro--secondary.vb-space-m-top-m .module-intro__content {
    padding-top: var(--vb-space-m);
  }

  .module-intro--secondary.vb-space-m-top-l .module-intro__content {
    padding-top: var(--vb-space-l);
  }

  .module-intro--secondary.vb-space-m-top-xl .module-intro__content {
    padding-top: var(--vb-space-xl);
  }

  .module-intro--secondary.vb-space-m-bottom-none .module-intro__content {
    padding-bottom: var(--vb-space-none);
  }

  .module-intro--secondary.vb-space-m-bottom-xs .module-intro__content {
    padding-bottom: var(--vb-space-xs);
  }

  .module-intro--secondary.vb-space-m-bottom-s .module-intro__content {
    padding-bottom: var(--vb-space-s);
  }

  .module-intro--secondary.vb-space-m-bottom-m .module-intro__content {
    padding-bottom: var(--vb-space-m);
  }

  .module-intro--secondary.vb-space-m-bottom-l .module-intro__content {
    padding-bottom: var(--vb-space-l);
  }

  .module-intro--secondary.vb-space-m-bottom-xl .module-intro__content {
    padding-bottom: var(--vb-space-xl);
  }

  .site-popup {
    align-items: center;
    padding: 15px;
    overflow-y: auto;
  }

  .site-popup__panel {
    width: 100%;
    border-radius: 0 0 100px 0;
    padding: 25px 25px 75px;
  }

  .site-popup__close {
    top: 25px;
    right: 25px;
  }

  .site-popup__grid {
    grid-template-columns: 1fr;
    row-gap: 25px;
    margin-top: 0;
  }

  .site-popup__image-wrap {
    width: 100%;
    max-width: min(336px, calc(100% - 97px));
    justify-self: start;
  }

  .site-popup__text {
    margin-top: 15px;
  }

  .site-popup__panel--no-image .site-popup__content {
    padding-right: 40px;
  }

  .site-nav-mobile__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: fixed;
    inset: 0;
    height: 100svh;
    max-height: 100svh;
    background: var(--color-brand-blue);
    color: var(--color-brand-darkblue);
    padding: 120px 15px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
    z-index: 55;
    overflow-x: hidden;
    overflow-y: hidden;
    overscroll-behavior: contain;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .site-nav-mobile__waves {
    position: absolute;
    left: var(--grid-margin);
    bottom: 25px;
    color: var(--color-white);
  }

  .site-nav-mobile__motion-control {
    position: absolute;
    right: var(--grid-margin);
    bottom: 25px;
    max-width: calc(100vw - (2 * var(--grid-margin)));
    z-index: 1;
  }

  html.header-scrolled .site-header .container {
    padding: 10px 15px;
    border-radius: 100px;
    background: linear-gradient(160deg, rgb(255 255 255 / 26%), rgb(255 255 255 / 12%));
    border: 0;
    box-shadow:
      0 10px 26px rgb(25 46 81 / 14%),
      0 1px 6px rgb(25 46 81 / 10%),
      inset 0 0 0 1px rgb(255 255 255 / 48%),
      inset 0 1px 0 rgb(255 255 255 / 74%);
    -webkit-backdrop-filter: blur(18px) saturate(180%) contrast(106%) brightness(108%);
    backdrop-filter: blur(18px) saturate(180%) contrast(106%) brightness(108%);
  }

  /* Keep nav shell transparent while the fullscreen menu is open (the panel
     behind it is already blue), even when header-scrolled styles are active. */
  html.mobile-nav-open .site-header .container {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  .site-footer__logo-wrap {
    width: 230px;
  }

  .site-footer__logo {
    height: auto;
  }

  .site-footer__info {
    grid-column: 1 / span 3;
    grid-row: auto;
  }

  .site-footer__info {
    margin-bottom: 0;
  }

  .site-footer__wave {
    --wave-width: 110px;
  }

  .module-404,
  .module-404 .container,
  .module-404__content {
    min-height: 100vh;
  }

  .module-404__content {
    padding: 140px 0 0;
  }

  .module-404__tag {
    margin-bottom: 25px;
  }

  .module-404__title {
    max-width: 100%;
  }

  .module-404__body {
    margin-top: 50px;
    max-width: 100%;
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 50px;
  }

  .module-404__cta {
    margin-top: 0;
  }

  .module-404__wave {
    --wave-width: calc((100vw - (2 * var(--grid-margin)) - (3 * var(--grid-gutter))) / 4);
    margin-top: auto;
    margin-bottom: 25px;
  }

  .module-404__wave svg {
    width: var(--wave-width);
    height: auto;
  }

  .module-single-referenz-content__grid {
    padding-top: var(--space-l);
    padding-bottom: var(--space-l);
  }

  .module-single-referenz-main__content,
  .module-single-referenz-main__media {
    grid-column: 1 / -1;
  }

  .module-single-referenz-main__content-sticky {
    position: static;
  }

  .module-single-referenz-main__text {
    margin-top: 50px;
  }

  .module-single-referenz-main__meta {
    margin: 50px 0 0;
    row-gap: 0;
  }

  .module-single-referenz-main__media {
    margin-top: 50px;
  }

  .module-single-referenz-main__gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 50px;
  }

  .module-single-referenz-main__gallery-item {
    grid-column: 1 / -1;
  }

  .module-single-referenz-back__grid {
    padding-top: var(--space-l);
    padding-bottom: var(--space-l);
  }

}