/* Component styles extracted from the original inline Webflow embeds */

:root {
  --bt-gradient-band: 296px;
  --bt-gradient-overlap: clamp(-72px, -6vw, -108px);
  --bt-list-bullet-size: calc(6px * 1.1);
  --bt-list-bullet-indent: calc(19px * 1.1);
}

/* --- Smooth anchor scroll (home one-pager) --- */
html {
  scroll-padding-top: calc(var(--nav-size, 86px) + 0.5rem);
  background-color: var(--_barur---braun, #4a3a2b);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.anker {
  scroll-margin-top: calc(var(--nav-size, 86px) + 0.5rem);
}

/* --- Random hero image --- */
#hero-image-pool { display: none; }

#random-image-display {
  max-width: 100%;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
#random-image-display.loaded {
  opacity: 1;
  transform: translateY(0);
}
#random-image {
  width: 100%;
  max-height: 66svh;
  max-width: 66vw;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4.8 / 6;
}

.gradient-bottom {
  z-index: 1;
}

/* Hero: solid fill + positioning so Safari never shows body brown through
   subpixel gaps, margin collapse, or a mis-contained absolute .gradient-bottom. */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--_barur---kaltweiß, #e9e8e3);
  margin-bottom: 0;
  /* Match image sizing (dvh); svh first for older engines. */
  min-height: 100svh;
  min-height: 100dvh;
}

.hero .grid_wrapper.fifties {
  margin-bottom: 0;
}

.hero + .section {
  margin-top: 0;
}

.hero .gradient-bottom {
  bottom: 0;
  left: 0;
  right: 0;
}

/* --- Marquee --- */
@keyframes translateX {
  to { transform: translateX(-100%); }
}
[data-css-marquee-list] {
  animation: translateX 30s linear;
  animation-iteration-count: infinite;
  animation-play-state: paused;
}

/* --- Accordion --- */
.accordion-css__list {
  overflow-anchor: none;
}

.accordion-css__item {
  overflow-anchor: none;
}

.accordion-css__item-bottom-wrap {
  min-height: 0;
}

.accordion-css__item-bottom {
  transition: grid-template-rows 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}
[data-accordion-status="active"] .accordion-css__item-bottom {
  grid-template-rows: 1fr;
}
.accordion-css__item-icon {
  transition: transform 0.6s cubic-bezier(0.625, 0.05, 0, 1);
}
[data-accordion-status="active"] .accordion-css__item-icon {
  transform: rotate(-45deg);
}

/* Accordion bullets — one marker system only.
   base.css .list / .list-item set native list-style-type: square; overflow:hidden clips those
   on mobile, so we paint squares with ::before. Must zero native list-style on every li. */
.accordion-css__item-bottom-content {
  padding-left: 0;
  padding-right: 0;
}

.accordion-css__item-bottom-content > ul,
.accordion-css__item-bottom-content > ul.list,
.accordion-css__item-bottom-content > ol,
.accordion-css__item-bottom-content > ul > li,
.accordion-css__item-bottom-content > ul.list > li,
.accordion-css__item-bottom-content > ul.list > li.list-item,
.accordion-css__item-bottom-content > ol > li {
  list-style: none;
  padding-left: 0;
  text-indent: 0;
}

.accordion-css__item-bottom-content > ul,
.accordion-css__item-bottom-content > ul.list,
.accordion-css__item-bottom-content > ol {
  color: var(--_barur---schwarz);
  margin-top: 0;
  margin-bottom: 0;
}

.accordion-css__item-bottom-content > ul > li,
.accordion-css__item-bottom-content > ul.list > li,
.accordion-css__item-bottom-content > ul.list > li.list-item,
.accordion-css__item-bottom-content > ol > li {
  font-size: var(--_barur---body-text-size);
  margin-bottom: 1em;
  line-height: 1.26em;
}

.accordion-css__item-bottom-content > ul > li:not(:has(> a)),
.accordion-css__item-bottom-content > ul.list > li.list-item:not(:has(> a)) {
  position: relative;
  padding-left: var(--bt-list-bullet-indent);
}

.accordion-css__item-bottom-content > ul > li:not(:has(> a))::before,
.accordion-css__item-bottom-content > ul.list > li.list-item:not(:has(> a))::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63em;
  width: var(--bt-list-bullet-size);
  height: var(--bt-list-bullet-size);
  background-color: currentColor;
  transform: translateY(-50%);
}

.accordion-css__item-bottom-content > ol > li {
  list-style: decimal;
  list-style-position: inside;
}

.accordion-css__item-bottom-content > ul > li:last-child,
.accordion-css__item-bottom-content > ul.list > li.list-item:last-child,
.accordion-css__item-bottom-content > ol > li:last-child {
  margin-bottom: 0;
}

/* Direct link rows — arrow only, no square marker */
.accordion-css__item-bottom-content li:has(> a) {
  padding-left: 0;
}

.accordion-css__item-bottom-content li:has(> a)::before {
  content: none;
  display: none;
}

.accordion-css__item-bottom-content > p.accordion-css__item-p {
  color: var(--_barur---schwarz);
  font-size: var(--_barur---body-text-size);
  margin-top: 0;
  margin-bottom: 1em;
  line-height: 1.26em;
  padding-left: 0;
}

.accordion-css__item-bottom-content > p.accordion-css__item-p:last-child {
  margin-bottom: 0;
}

/* Writer nests <p class="accordion-css__item-p"> inside list items;
   Webflow's .875em would otherwise shrink them below the 23px li size. */
.accordion-css__item-bottom-content li p.accordion-css__item-p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
  padding-left: 0;
  text-indent: 0;
}

.accordion-css__item-bottom-content a,
.footer-link-block.align-right.half .footer-link:is([href^="http"], [href^="mailto:"], [href^="tel:"]) {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.accordion-css__item-bottom-content a::before,
.footer-link-block.align-right.half .footer-link:is([href^="http"], [href^="mailto:"], [href^="tel:"])::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 13px;
  background: url("../images/arrow-right.svg") no-repeat center / contain;
}

/* External links — same -25deg as .button-icon-ext (mailto, http, tel) */
.accordion-css__item-bottom-content a:is([href^="http"], [href^="mailto:"], [href^="tel:"])::before,
.footer-link-block.align-right.half .footer-link:is([href^="http"], [href^="mailto:"], [href^="tel:"])::before {
  transform: rotate(-25deg);
}

.accordion-css__item-bottom-content a::after,
.footer-link-block.align-right.half .footer-link:is([href^="http"], [href^="mailto:"], [href^="tel:"])::after {
  content: "";
  position: absolute;
  left: calc(20px + 14px);
  right: 0;
  top: calc(100% + 3px);
  bottom: auto;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.65s cubic-bezier(0.625, 0.05, 0, 1);
  pointer-events: none;
}

.accordion-css__item-bottom-content a:hover::after,
.footer-link-block.align-right.half .footer-link:is([href^="http"], [href^="mailto:"], [href^="tel:"]):hover::after {
  transform: scaleX(1);
}

@media screen and (min-width: 992px) {
  /* Match .accordion-css__item-top horizontal inset from base.css */
  .accordion-css__item-bottom-content {
    padding-left: 1.5em;
    padding-right: 1.5em;
  }
}

/* --- Swiper --- */
body {
  background-color: var(--_barur---braun, #4a3a2b);
  --swiper-pagination-color: currentColor;
  --swiper-pagination-bottom: auto;
  --swiper-pagination-bullet-size: 0.5em;
  --swiper-pagination-bullet-inactive-color: currentColor;
  --swiper-pagination-bullet-inactive-opacity: 0.15;
  --swiper-pagination-bullet-horizontal-gap: 0.25em;
  --swiper-wrapper-transition-timing-function: cubic-bezier(0.625, 0.05, 0, 1);
}
.swiper-slide {
  --gap: 1.25em;
  padding-right: var(--gap);
}
@media only screen and (min-width: 768px) {
  .swiper-slide { --gap: 2em; }
}
@media only screen and (min-width: 992px) {
  .swiper-slide { --gap: 3em; }
}
.swiper-slide:last-of-type {
  margin-right: calc(-1 * var(--gap));
}
.swiper-navigation__button { transition: opacity 0.2s ease; }
.swiper-button-disabled { opacity: 0; pointer-events: none; }

/* --- Ablauf slider: arrows in heading row (Figma) --- */
.ablauf-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 2.75rem);
  padding-bottom: 3em;
}

.ablauf-headline {
  flex: 1;
  min-width: 0;
  padding-bottom: 0 !important;
  text-align: left !important;
}

.ablauf-navigation {
  position: static !important;
  transform: none !important;
  flex: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.55em;
  pointer-events: auto;
}

.ablauf-navigation .ablauf-arrow {
  aspect-ratio: auto;
  width: auto;
  height: auto;
  padding: 0.35em;
  background-color: transparent;
  border-radius: 0;
}

.ablauf-navigation .ablauf-arrow__icon {
  display: block;
  width: 20px;
  height: auto;
  filter: brightness(0) invert(1);
}

.ablauf-navigation .ablauf-arrow__icon.is--prev {
  transform: scaleX(-1);
}

.ablauf-navigation .ablauf-arrow.swiper-button-disabled .ablauf-arrow__icon {
  opacity: 0.5;
}

.ablauf-navigation .swiper-button-disabled {
  opacity: 1;
  pointer-events: none;
}

.content-wrapper-padding-slider [data-swiper-wrap].swiper {
  overflow: hidden !important;
}

@media screen and (max-width: 991px) {
  .ablauf-header {
    padding-bottom: clamp(28px, 8vw, 54px);
  }
}

/* --- Button states — Figma component sets 1301:1892 (Blue) / 1301:1984 (White).
   Figma gradient handles extend BEYOND the button: start inside the pill, end stop
   one button-height below the bottom edge. Map that by painting a 2×-tall gradient
   (background-size: 100% 200%; background-position: top) so only the top half shows.
   Smooth transition: ::before = hover, ::after = active; opacity cross-fade.
   <input> submit buttons use direct background-image (no pseudo-elements).
   Neutralize legacy base.css fills (0deg angle, 65% stop, #eae4de active). --- */
.button,
.button-white,
.button.form-button {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color 0.3s ease;
  /* Figma pad +20% for touch (desktop 5/24/7, mobile 5/22/6) */
  padding: 7px 29px;
  column-gap: 17px;
  min-height: 48px;
  height: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  flex-shrink: 0;
  width: fit-content;
  max-width: none;
  line-height: 1;
}

.button,
.button.form-button {
  background-color: #9ccee8;
  background-image: none;
}

.button-white {
  background-color: #ffffff;
  background-image: none;
}

/* Block base.css wrong gradients; Figma fills live on pseudo layers */
.button:hover,
.button:active,
a.button:hover,
a.button:active {
  background-image: none !important;
  background-color: #9ccee8;
}
.button-white:hover,
.button-white:active,
a.button-white:hover,
a.button-white:active {
  background-image: none !important;
  background-color: #ffffff;
}

@media screen and (min-width: 1440px) {
  .button-white:hover,
  .button-white:active,
  a.button-white:hover,
  a.button-white:active,
  .button:hover:where(.w-variant-13f11a6b-ade1-dbff-5459-8646719d2995),
  .button:hover:where(.w-variant-cbf20511-d328-28d3-ff62-2b79ab6a08f1),
  .button:hover:where(.w-variant-f7cd27f3-28bc-5f0b-7a04-565279e80229) {
    background-image: none !important;
  }
}

.button::before,
.button::after,
.button-white::before,
.button-white::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  z-index: 0;
  background-repeat: no-repeat;
  /* Figma end stop sits ~1× button height below bottom edge */
  background-size: 100% 200%;
  background-position: top center;
}

.button::before,
.button-white::before {
  transition: opacity 0.3s ease;
}

.button::after,
.button-white::after {
  transition: opacity 0.05s ease;
}

.button > *,
.button-white > * {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .button::before,
  .button::after,
  .button-white::before,
  .button-white::after {
    transition: none;
  }
}

.button-text {
  padding: 0;
  line-height: 1;
  white-space: nowrap;
  display: flex;
  align-items: center;
  align-self: center;
}

.button-icon,
.button-icon-ext {
  display: block;
  flex-shrink: 0;
  align-self: center;
}

/* Contact form privacy consent */
.disclaimer-check {
  display: flex;
  align-items: flex-start;
  gap: 0.75em;
  padding-top: 2em;
  cursor: pointer;
  line-height: 1.25;
}

.disclaimer-checkbox {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  margin-top: calc((1.25em - 1.125rem) / 2);
  accent-color: var(--_barur---azurblau);
  cursor: pointer;
}

.disclaimer-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.disclaimer-text a:hover {
  opacity: 0.85;
}

.button.form-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.form-field-error {
  opacity: 0.5;
}

/* Blue — Figma hover #9ccee8@31%→#fff, active #9ccee8@31%→#1e618c (31% = of button, 15.5% of 2× canvas) */
.button::before {
  background-image: linear-gradient(180deg, #9ccee8 15.5%, #ffffff 100%);
}
.button::after {
  background-image: linear-gradient(180deg, #9ccee8 15.5%, #1e618c 100%);
}
.button:hover:not(:active)::before {
  opacity: 1;
}
.button:active::before {
  opacity: 0;
  transition: opacity 0.05s ease;
}
.button:active::after {
  opacity: 1;
}

/* White — Figma hover #fff@0%→#f6efdd@50%α, active #fff@center→#917255 below button */
.button-white::before {
  background-image: linear-gradient(
    180deg,
    #ffffff 0%,
    color-mix(in srgb, #f6efdd 50%, #ffffff) 100%
  );
}
.button-white::after {
  /* 25% of 2× canvas = vertical center of button; #917255 at 100% = below bottom edge */
  background-image: linear-gradient(180deg, #ffffff 25%, #917255 100%);
}
.button-white:hover:not(:active)::before {
  opacity: 1;
}
.button-white:active::before {
  opacity: 0;
  transition: opacity 0.05s ease;
}
.button-white:active::after {
  opacity: 1;
}

/* <input> submit — no pseudo-elements; same extended Figma gradient line */
input.button.form-button {
  transition: background-color 0.3s ease, background-image 0.3s ease;
}
input.button.form-button:hover {
  background-image: linear-gradient(180deg, #9ccee8 15.5%, #ffffff 100%) !important;
  background-size: 100% 200% !important;
  background-position: top center !important;
}
input.button.form-button:active {
  background-image: linear-gradient(180deg, #9ccee8 15.5%, #1e618c 100%) !important;
  background-size: 100% 200% !important;
  background-position: top center !important;
  transition: background-color 0.3s ease, background-image 0.05s ease;
}

/* --- Sub-navigation (Figma "Subnavi"): offers nav cells.
   Default fill #f6efdd; hover = linear-gradient #ffffff@10% → #f6efdd@70%.
   ::before opacity cross-fade (same easing as nav underlines / accordion). --- */
.subnav-offers .link-block-sub {
  display: block;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.subnav-offers .service-nav {
  position: relative;
  isolation: isolate;
}

/* Base fill behind gradient; both sit below in-flow label text (negative z-index). */
.subnav-offers .service-nav::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--_barur---warmweiß, #f6efdd);
  pointer-events: none;
  z-index: -2;
}

.subnav-offers .service-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, #ffffff 10%, #f6efdd 70%);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.625, 0.05, 0, 1);
  pointer-events: none;
  z-index: -1;
}

@media (hover: hover) {
  .subnav-offers .link-block-sub:hover .service-nav::before {
    opacity: 1;
  }
}

.subnav-offers .link-block-sub:focus-visible .service-nav::before,
.subnav-offers .link-block-sub:active .service-nav::before {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .subnav-offers .service-nav::before {
    transition: none;
  }
}

/* --- Legal pages: clear the fixed navbar, single-column content --- */
.legal-page {
  padding-top: 9em;
  position: relative;
  overflow: hidden;
  width: 100%;
  background-color: var(--_barur---kaltweiß, #e9e8e3);
  background-image: url("../images/hero-bg.svg");
  background-position: 50% 0;
  background-repeat: repeat;
  background-size: auto;
  background-attachment: scroll;
}

/* Impressum / Datenschutz — footer gradient band (mirrors section-4 .gradient-brown). */
.legal-page--impressum,
.legal-page--datenschutz {
  --legal-gradient-size: clamp(96px, 18vw, 296px);
  --legal-gradient-overlap: clamp(-72px, -6vw, -108px);
  /* Copy ends above the overlap zone; ::after band meets footer with solid color. */
  --legal-content-clearance: clamp(80px, 12vw, 188px);
}

.legal-page--impressum::after,
.legal-page--datenschutz::after {
  content: "";
  display: block;
  width: 100%;
  height: var(--legal-gradient-size);
  margin-top: var(--legal-gradient-overlap);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.legal-page--impressum::after {
  background-image: linear-gradient(to top, var(--_barur---rostrot, #9a340e) 30.769%, transparent 100%);
}

.legal-page--datenschutz::after {
  background-image: linear-gradient(to top, var(--_barur---burgunderrot, #4b0102) 30.769%, transparent 100%);
}

body:has(.legal-page) {
  background-color: var(--_barur---kaltweiß, #e9e8e3);
}

/* About (section-4): same grid background as hero (.hero) */
.section-4 {
  background-color: var(--_barur---kaltweiß, #e9e8e3);
  background-image: url("../images/hero-bg.svg");
  background-position: 50% 0;
  background-repeat: repeat;
  background-size: auto;
  background-attachment: scroll;
}

/* About (section-4): Figma ABOUT — copy ends ~188px above section bottom; brown gradient overlaps last ~108px */
.section-4 > .content-wrapper-padding.background-cover {
  padding-bottom: 0;
}

.section-4 .grid_wrapper.fifties {
  margin-bottom: 0;
}

.section-4 .grid_wrapper.fifties > .w-layout-vflex,
.section-4 .grid_wrapper.fifties > .faq-block {
  min-width: 0;
  width: 100%;
}

.section-4 .grid_wrapper.fifties .paragraph {
  padding-bottom: 0;
  margin-top: 0;
}

.section-4 .gradient-brown {
  margin-top: var(--bt-gradient-overlap);
  height: var(--bt-gradient-band);
  background-size: auto var(--bt-gradient-band);
}

.gradient-burgundy {
  z-index: 1;
  width: 100%;
  height: var(--bt-gradient-band);
  display: block;
  position: static;
  margin-top: var(--bt-gradient-overlap);
  background-image: url("../images/gradient-burgundy.svg");
  background-position: 50% 100%;
  background-repeat: repeat-x;
  background-size: auto var(--bt-gradient-band);
}

.section-4 .about-bullets__title {
  margin-top: 0;
  margin-bottom: clamp(16px, 2.2vw, 22px);
}

.section-4 .about-bullets__list {
  margin-top: 0;
  margin-bottom: 0;
}

.section-4 .about-bullets__list .list-item:last-child {
  margin-bottom: 0;
}

html:has(.legal-page) {
  background-color: var(--_barur---kaltweiß, #e9e8e3);
}

/* --- Offer sections (Osteopathie / Yoga / Sound): Figma 296px gradient bands.
   Each band: color @ 30.769% → transparent @ 100% on kaltweiss.
   Top band softens into content; bottom band hands off to the next section. --- */
.section:has(.content-wrapper-padding.blue-gradient-top),
.section:has(.content-wrapper-padding.yellow-gradient-top),
.section:has(.content-wrapper-padding.white-gradient-top) {
  background-color: var(--_barur---kaltweiß, #e9e8e3);
}

.content-wrapper-padding.blue-gradient-top,
.content-wrapper-padding.yellow-gradient-top,
.content-wrapper-padding.white-gradient-top {
  /* Figma bands are 296px; 73.63vw ≈ 296px at 402px mobile frame width. */
  --offer-gradient-top-size: clamp(120px, 19.5vw, 296px);
  --offer-gradient-bottom-size: clamp(240px, 73.63vw, 296px);
  background-color: var(--_barur---kaltweiß, #e9e8e3);
  background-repeat: no-repeat;
  background-size:
    100% var(--offer-gradient-top-size),
    100% var(--offer-gradient-bottom-size);
  padding-bottom: clamp(72px, 14vw, 120px);
}

.content-wrapper-padding.blue-gradient-top {
  background-image:
    linear-gradient(180deg, #9ccee8 30.769%, transparent 100%),
    linear-gradient(to top, #f6efdd 30.769%, transparent 100%);
  background-position: 50% 0, 50% 100%;
}

.content-wrapper-padding.yellow-gradient-top {
  background-image:
    linear-gradient(180deg, #f6efdd 30.769%, transparent 100%),
    linear-gradient(to top, #ffffff 30.769%, transparent 100%);
  background-position: 50% 0, 50% 100%;
}

.content-wrapper-padding.white-gradient-top {
  background-image: linear-gradient(180deg, #ffffff 30.769%, transparent 100%);
  background-position: 50% 0;
  background-size: 100% var(--offer-gradient-top-size);
}

.section:has(.gradient-burgundy) .content-wrapper-padding.white-gradient-top {
  padding-bottom: 0;
}
/* Legal pages — bottom clearance on wrapper (not per-paragraph) so copy stays above gradient/footer. */
.legal-page--impressum > .content-wrapper-padding,
.legal-page--datenschutz > .content-wrapper-padding {
  padding-bottom: var(--legal-content-clearance);
}

.legal-page .grid_wrapper.fifties {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 48px);
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}

.legal-page .grid_wrapper.fifties > .w-layout-vflex {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.legal-page > .content-wrapper-padding > .paragraph,
.legal-page .grid_wrapper.fifties .paragraph {
  overflow-wrap: anywhere;
  padding-bottom: 0;
  margin-top: 0;
}

/* Legal pages — page-specific footer (warmweiß text + logo) */
body:has(.legal-page--impressum) .footer {
  background-color: var(--_barur---rostrot, #9a340e);
}

body:has(.legal-page--datenschutz) .footer {
  background-color: var(--_barur---burgunderrot, #4b0102);
}

body:has(.legal-page--impressum) .footer .footer-link,
body:has(.legal-page--impressum) .footer .footer-link:hover,
body:has(.legal-page--impressum) .footer .footer-meta,
body:has(.legal-page--datenschutz) .footer .footer-link,
body:has(.legal-page--datenschutz) .footer .footer-link:hover,
body:has(.legal-page--datenschutz) .footer .footer-meta {
  color: var(--_barur---warmweiß, #f6efdd);
}

body:has(.legal-page--impressum) .footer-logo,
body:has(.legal-page--datenschutz) .footer-logo {
  filter: brightness(0) saturate(100%) invert(97%) sepia(12%) saturate(478%) hue-rotate(328deg) brightness(103%) contrast(92%);
}

/* --- Contact form: message field --- */
@media screen and (min-width: 480px) {
  /* Row-spanning message column paints later in DOM and can swallow clicks on
     the third left-column field (Betreff); keep short fields above it. */
  .form-grid .form-block:not(.form-block--message) {
    position: relative;
    z-index: 1;
  }

  .form-grid .form-block--message {
    grid-row: 1 / -1;
    align-self: stretch;
    height: 100%;
  }
  .form-grid .form-block--message .text-field {
    flex: 1;
    height: 100%;
    min-height: 4em;
    resize: none;
  }
}

/* Mobile: percentage row-gap + 6-row template overflow the grid box and
   let the message textarea overlap the submit button. */
@media screen and (max-width: 479px) {
  .form-grid {
    grid-auto-flow: row;
    grid-template-rows: none;
    grid-row-gap: 2.5rem;
  }
  .form-grid .form-block--message .text-field {
    height: auto;
    flex: none;
  }
}

/* --- Link hover: "sich aufbauendes Underline" (builds left -> right) --- */
.nav_link,
.footer-link {
  position: relative;
}
.nav_link::after,
.footer-link::after {
  content: "";
  position: absolute;
  bottom: 0.05em;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.65s cubic-bezier(0.625, 0.05, 0, 1);
  pointer-events: none;
}
.nav_link::after {
  left: var(--_barur---padding-l, 0.75em);
  right: var(--_barur---padding-l, 0.75em);
}
.nav_link,
.nav_link:hover,
.footer-link,
.footer-link:hover {
  text-decoration: none;
}
.footer-link::after {
  left: 0;
  right: 0;
  top: calc(100% + 3px);
  bottom: auto;
}
/* Bottom-row links have vertical padding; pin underline to text, not box bottom */
.footer-link.px-2em::after {
  top: auto;
  bottom: calc(2em - 4px);
}
.nav_link:hover::after,
.footer-link:hover::after {
  transform: scaleX(1);
}

/* Footer copyright — same typography as links, no underline/hover */
.footer-meta {
  font-family: var(--_barur---h3-font);
  color: var(--_barur---weiß);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5em;
  font-weight: 100;
}
.footer-meta.px-2em {
  padding-top: 2em;
  padding-bottom: 2em;
}

/* Bottom-line meta row (copyright + credits) — responsive typography */
.bottom-line .footer-meta,
.bottom-line .footer-link.px-2em {
  font-size: 14px;
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .bottom-line .footer-meta,
  .bottom-line .footer-link.px-2em {
    font-size: 16px;
  }
}

@media screen and (min-width: 992px) {
  .bottom-line .footer-meta,
  .bottom-line .footer-link.px-2em {
    font-size: 20px;
  }

  /* Ethics footer: left-aligned paragraph-big (replaces heading-2-a-right) */
  .bg-dark .footer-block .paragraph-h-center.paragraph-big {
    font-size: var(--_barur---lead-text-size);
    line-height: 1.12;
    max-width: 75%;
    margin: 0;
  }

  /* About (section-4): three columns with 10px overlap onto center image */
  .section-4 .grid_wrapper.thirds {
    align-items: center;
  }
  .section-4 .grid_wrapper.thirds > .third:nth-child(1) {
    grid-column: 1 / span 2;
    margin-right: -10px;
    position: relative;
    z-index: 1;
  }
  .section-4 .grid_wrapper.thirds > .third:nth-child(2) {
    grid-column: 3 / span 2;
    position: relative;
    z-index: 0;
  }
  .section-4 .grid_wrapper.thirds > .third:nth-child(3) {
    grid-column: 5 / span 2;
    margin-left: -10px;
    position: relative;
    z-index: 1;
  }
}

/* Ethics kicker: gradient-dark-brown (296px) precedes section.bg-dark in home.php;
   Figma overlays that gradient inside the section (y=76 mobile / y=172 desktop). */
.bg-dark > .content-wrapper-padding > .sub-headline {
  padding-top: 0;
}

@media screen and (max-width: 991px) {
  .bottom-line {
    gap: 1em;
  }

  .bottom-line .footer-meta,
  .bottom-line .footer-link.px-2em {
    line-height: 1.2;
  }
}

/* --- Mobile navigation (full-screen overlay, from Figma "Mobile Menu") --- */
.mobile-menu { display: none; }
.menu-button-2 {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
html.menu-open,
body.menu-open {
  overflow: hidden !important;
  overscroll-behavior: none;
  touch-action: none;
  height: 100%;
}
body.menu-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

/* --- Fixed navigation (all breakpoints) --- */
.navbar-2 {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  margin: 0;
  background-color: transparent;
  /* Reserve border space so base.css :hover does not shift layout (ResizeObserver loop). */
  border-bottom: 1px solid transparent;
}

.navbar-2:hover {
  border-bottom-color: #000;
}

/* Monochrome white wordmark over dark page sections (see initNavLogoContrast) */
body.is-nav-on-dark .navbar-2 .image-5,
body.menu-open .navbar-2 .image-5 {
  filter: brightness(0) invert(1);
}

@media screen and (min-width: 992px) {
  .menu-button-2 { display: none; }

  /* Nav logo hidden while hero wordmark is in view; fades in when it scrolls away.
     :has() applies before JS (no FOUC on refresh); .brand loses pointer-events too. */
  body:has(.hero .hero-wordmark):not(.is-nav-logo-visible) .navbar-2 .brand {
    pointer-events: none;
  }
  body:has(.hero .hero-wordmark) .navbar-2 .image-5 {
    height: 40px;
    width: auto;
    min-width: 0;
    max-width: 465px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition:
      opacity 0.45s cubic-bezier(0.625, 0.05, 0, 1),
      visibility 0.45s cubic-bezier(0.625, 0.05, 0, 1),
      transform 0.45s cubic-bezier(0.625, 0.05, 0, 1),
      filter 0.35s ease;
  }
  body:has(.hero .hero-wordmark).is-nav-logo-visible .navbar-2 .brand {
    pointer-events: auto;
  }
  body:has(.hero .hero-wordmark).is-nav-logo-visible .navbar-2 .image-5 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  @media (prefers-reduced-motion: reduce) {
    body:has(.hero .hero-wordmark) .navbar-2 .image-5 {
      transform: none;
      transition: opacity 0.35s ease, visibility 0.35s ease, filter 0.35s ease;
    }
  }

  /* Big hero wordmark — visible at scroll 0 */
  .hero .gradient-bottom {
    display: flex !important;
  }
  .hero .hero-wordmark {
    position: relative;
    inset: auto;
    width: calc(100% - clamp(48px, 5.3vw, 80px));
    max-width: none;
    margin: 0 auto clamp(32px, 2.6vw, 40px);
    padding: 0;
  }

  /* Hero image flush to the right edge (Figma: ~40px inset @1512) */
  .hero .content-wrapper-padding {
    max-width: none;
    width: 100%;
  }
  .hero .grid_wrapper.fifties {
    position: relative;
    align-items: flex-start;
    min-height: clamp(520px, 62svh, 760px);
    max-width: none;
  }
  .hero .grid_wrapper.fifties > .flex-block:first-child {
    position: relative;
    z-index: 2;
    max-width: none;
  }
  .hero .grid_wrapper.fifties > .flex-block:last-child {
    position: absolute;
    top: calc(var(--nav-size, 86px) + 16px);
    right: clamp(24px, 2.6vw, 40px);
    width: auto;
    padding-top: 0;
    margin: 0;
    align-items: flex-end;
    justify-content: flex-start;
  }
  #random-image-display {
    width: auto;
    margin: 0;
  }
  #random-image {
    width: auto;
    max-width: none;
    height: calc(
      100svh
      - var(--nav-size, 86px)
      - 16px
      - var(--_barur---padding-xl)
      - var(--hero-wordmark-size, 146px)
    );
    height: calc(
      100dvh
      - var(--nav-size, 86px)
      - 16px
      - var(--_barur---padding-xl)
      - var(--hero-wordmark-size, 146px)
    );
    max-height: none;
    aspect-ratio: 480 / 600;
    object-fit: cover;
    display: block;
  }

  /* --- Desktop nav: Webflow glass pill (Menu Textlinks @856×39). Logo ideal 40px. --- */
  .navbar-2 .container-3::before,
  .navbar-2 .container-3::after {
    display: none !important;
    content: none !important;
  }
  .container-3 {
    display: flex;
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    min-width: 0;
    box-sizing: border-box;
  }
  .nav-menu-2 {
    float: none;
    order: -9999;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    min-width: 0;
    min-height: 48px;
    box-sizing: border-box;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    padding: 7px 36px;
    gap: 3.5em;
    transition: background-color 0.2s ease;
    overflow: visible;
  }
  .nav-menu-2:hover {
    background-color: rgba(255, 255, 255, 0.85);
  }
  .nav-menu-2 .nav_link {
    padding: 0 !important;
    display: inline-block;
    text-decoration: none;
  }
  .nav-menu-2 .nav-link-label {
    position: relative;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
    font-family: var(--_barur---h3-font);
    font-size: 18px;
    font-weight: 100;
    font-variation-settings: "wght" 90;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--_barur---schwarz);
  }
  .nav-menu-2 .nav_link::after {
    display: none;
  }
  .nav-menu-2 .nav-link-label::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: -3px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.65s cubic-bezier(0.625, 0.05, 0, 1);
    pointer-events: none;
  }
  .nav-menu-2 .nav_link:hover .nav-link-label::after,
  .nav-menu-2 .nav-dropdown__toggle:hover .nav-link-label::after,
  .nav-menu-2 .nav-dropdown.is-open .nav-dropdown__toggle .nav-link-label::after {
    transform: scaleX(1);
  }
  .navbar-2 .brand {
    flex: 0 0 auto;
    order: 9999;
    display: flex;
    align-items: center;
    margin: 0;
    min-width: 0;
  }
  .navbar-2 .image-5 {
    display: block;
    width: auto;
    max-width: 465px;
    height: 40px;
    max-height: 40px;
    transition: height 0.2s ease, filter 0.35s ease;
  }
  .navbar-2 {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    padding: clamp(14px, 1.2vw, 18px) var(--_barur---padding-xl) clamp(14px, 1.2vw, 18px) clamp(20px, 2vw, 30px) !important;
  }

  /* Angebote dropdown (desktop only — mobile uses flat overlay links) */
  .nav-menu-2 .nav-dropdown.w-dropdown {
    margin: 0;
    display: inline-block;
    position: relative;
  }
  .nav-menu-2 .nav-dropdown.w-dropdown.is-open::after {
    content: "";
    position: absolute;
    left: -0.5em;
    right: -0.5em;
    top: 100%;
    height: 14px;
  }
  .nav-menu-2 .nav-dropdown__toggle.w-dropdown-toggle.dropdown-toggle {
    padding: 0 1.1em 0 0 !important;
    margin: 0 !important;
    background: none;
    border: 0;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    position: relative;
  }
  .nav-menu-2 .nav-dropdown__toggle .w-icon-dropdown-toggle {
    width: 0.38em;
    height: 0.38em;
    position: absolute;
    right: 0;
    top: 50%;
    margin: 0;
    border: 0;
    border-right: 1px solid currentColor;
    border-bottom: 1px solid currentColor;
    background: transparent;
    transform: translateY(-70%) rotate(45deg);
    transform-origin: center;
  }
  .nav-menu-2 .nav-dropdown__toggle .w-icon-dropdown-toggle::before {
    content: none !important;
    display: none;
  }
  .nav-menu-2 .nav-dropdown__list.dropdown-list-3 {
    display: block;
    position: absolute;
    inset: auto;
    top: calc(100% - 8px);
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    width: 230px;
    min-width: 230px;
    margin-top: 0;
    padding-top: 30px;
    background-color: transparent;
    z-index: 300;
    visibility: hidden;
    pointer-events: none;
  }
  .nav-menu-2 .nav-dropdown__list.dropdown-list-3.w--open {
    visibility: visible;
    pointer-events: auto;
  }
  .nav-dropdown__list .nav_link.dropdown {
    display: block;
    width: 230px;
    margin-top: 5px;
    padding: 0.85em 1em !important;
    text-align: center;
    background-color: #fff;
    border-radius: 999px;
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .nav-menu-2 .nav-dropdown__list.w--open .nav_link.dropdown {
    opacity: 1;
  }
  .nav-dropdown__list .nav_link.dropdown:first-child {
    margin-top: 0;
  }
}

@media screen and (max-width: 991px) {
  .nav-menu-2 { display: none !important; }

  /* Webflow sets column-reverse on .main-wrapper (w-layout-hflex) — that
     inverts the entire page. Force normal document order. */
  .main-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex-flow: column !important;
    gap: 0 !important;
    row-gap: 0 !important;
    column-gap: 0 !important;
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Fixed header — Figma Menu frame: 402×123, pad 20, gap 30, wordmark 362×39 */
  .navbar-2 {
    padding: 20px !important;
    margin: 0 !important;
  }
  .container-3 {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    max-width: 100%;
    margin: 0;
  }
  /* Webflow .w-container clearfix pseudo-elements become flex items and
     double the gap between wordmark and hamburger. */
  .navbar-2 .container-3::before,
  .navbar-2 .container-3::after {
    display: none !important;
    content: none !important;
  }
  .brand {
    display: flex;
    justify-content: center;
    align-self: center;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  .navbar-2 .image-5 {
    display: block;
    /* Figma @402: 362×39 (= 90% content width). Scale fluidly to SVG native 465×50. */
    width: min(calc(100vw - 40px), 465px);
    height: auto;
    aspect-ratio: 465 / 50;
    min-width: 0;
    margin: 0 auto;
    opacity: 1;
    transition: filter 0.35s ease;
  }
  .menu-button-2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 28px;
    height: 17px;
    padding: 0 !important;
    margin: 0;
    position: relative;
    float: none;
  }
  .menu-button-2 .w-icon-nav-menu {
    display: none;
  }
  /* Shared anchor: both hamburger and X lines center on the button midpoint. */
  .menu-button-2::before,
  body.menu-open .menu-button-2::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 28px;
    height: 3px;
    border-radius: 999px;
    margin: -1.5px 0 0 -14px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  }
  .menu-button-2::before {
    background: #241b14;
    /* Middle bar is ::before; top/bottom bars are ±7px shadows (3px line + 4px gap). */
    box-shadow: 0 -7px 0 #241b14, 0 7px 0 #241b14;
  }
  /* Monochrome white hamburger over dark page sections (see initNavLogoContrast) */
  body.is-nav-on-dark .menu-button-2::before {
    background: #fff;
    box-shadow: 0 -7px 0 #fff, 0 7px 0 #fff;
  }
  /* Open: hamburger becomes close X in the same spot (Figma Group 34 @184,79). */
  body.menu-open .menu-button-2::before,
  body.menu-open .menu-button-2::after {
    background: #fff;
    box-shadow: none;
  }
  body.menu-open .menu-button-2::before {
    transform: rotate(45deg);
  }
  body.menu-open .menu-button-2::after {
    transform: rotate(-45deg);
  }
  body.menu-open .navbar-2 {
    z-index: 1001;
  }

  .mobile-menu {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background-color: var(--_barur---dark-brown, #241b14);
    background-image: url("../images/menu-bg.svg");
    background-position: 50% 0;
    background-repeat: repeat;
    background-size: auto;
    color: #fff;
    padding: 0 0 40px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
  }
  /* Figma Mobile Menu — Gradient Head @ y=578 h=296 on 402×874 frame. */
  .mobile-menu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 90%;
    height: 10%;
    background: linear-gradient(180deg, rgba(233, 232, 227, 0) 0%, #f6efdd 100%);
    pointer-events: none;
    z-index: 0;
  }
  .mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu__nav {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(14px, 2.4vh, 20px);
    /* Figma first link @ y=169 on 402 frame (nav 123 + 46 gap). */
    padding: clamp(140px, 42vw, 169px) 40px 0;
    text-align: center;
  }
  .mobile-menu__link {
    font-family: var(--_barur---h1-h2-font);
    font-size: 32px;
    line-height: 1.1;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
  }
}

/* =====================================================================
   MOBILE / TABLET PASS  (<=991px)
   Pixel-anchored to the Figma 402px mobile frame, expressed with fluid
   clamp() logic so it scales smoothly across phone + tablet widths.
   Scoped to the breakpoint so desktop rendering is untouched.
   ===================================================================== */
@media screen and (max-width: 991px) {
  /* Border-box everywhere fixes width:100% + side-padding overflow. */
  *, *::before, *::after { box-sizing: border-box; }
  html, body { overflow-x: hidden; }
  img, svg, video { max-width: 100%; height: auto; }

  :root {
    /* Side padding: body 27 → 64 · hero claim 40 → 64 (nav/menu stay 20). */
    --bt-side:      clamp(20px, calc(1.79px  + 6.271vw), 64px);
    --bt-side-hero: clamp(28px, calc(23.65px + 4.068vw), 64px);
    --bt-stack-gap: 54px;
    --bt-section-top: clamp(56px, calc(19.15px + 6.271vw), 77px);
    --bt-button-gap: 21px;
    --_barur---padding-xl: clamp(28px, 9vw, 56px);
    --_barur---padding-l:  clamp(18px, 6vw, 32px);
    --_barur---padding-s:  clamp(14px, 4.5vw, 20px);
  }

  .w-layout-blockcontainer,
  .w-container {
    max-width: 100% !important;
    width: 100%;
  }

  .content-wrapper-padding {
    padding-left: var(--bt-side);
    padding-right: var(--bt-side);
    min-width: 0 !important;
    width: 100%;
  }

  /* ---- Hero (Figma HEAD AREA 402×874) ---- */
  .hero {
    min-height: 0 !important;
    padding-top: 0 !important;
    position: relative;
    background-color: var(--_barur---kaltweiß, #e9e8e3);
    background-image: url("../images/hero-bg.svg");
    background-position: 50% 0;
    background-repeat: repeat;
    background-size: auto;
  }
  .hero.content-wrapper-padding {
    padding-left: var(--bt-side-hero);
    padding-right: var(--bt-side-hero);
  }
  /* Bottom band: #9ccee8 @ 30.769% → transparent (same as offer/legal gradients). */
  .hero .content-wrapper-padding {
    --offer-gradient-size: 25dvh;
    position: relative;
    z-index: 2;
    padding-top: clamp(123px, 30.6vw, 140px);
    padding-left: var(--bt-side-hero);
    padding-right: var(--bt-side-hero);
    padding-bottom: clamp(48px, 12vw, 60px);
    background-image: linear-gradient(to top, #9ccee8 30.769%, transparent 100%);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 100% var(--offer-gradient-size);
  }
  .gradient-bottom { display: none !important; }

  .hero .grid_wrapper.fifties {
    flex-direction: column;
    margin-bottom: 0;
  }
  .hero .grid_wrapper.fifties > .flex-block:first-child { order: 2; }
  .hero .grid_wrapper.fifties > .flex-block:last-child  { order: 1; }
  .hero .flex-block {
    padding-top: 0;
    width: 100%;
    max-width: 100%;
    align-items: center;
  }
  .hero .flex-block:first-child {
    gap: clamp(32px, 13vw, 52px);
    text-align: center;
  }
  .hero .flex-block:last-child {
    padding-top: clamp(8px, 3vw, 16px);
    justify-content: center;
  }

  #random-image-display {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  #random-image {
    width: clamp(190px, 56.7vw, 228px);
    max-width: 228px;
    max-height: none;
    aspect-ratio: 228 / 285;
    object-fit: cover;
  }

  /* Figma mobile hero CTA = white pill (Button White fills) */
  .hero .button,
  .hero .button:hover,
  .hero .button:active,
  .hero a.button:hover,
  .hero a.button:active {
    background-color: #ffffff;
    background-image: none !important;
  }
  .hero .button::before {
    background-image: linear-gradient(
      180deg,
      #ffffff 0%,
      color-mix(in srgb, #f6efdd 50%, #ffffff) 100%
    );
  }
  .hero .button::after {
    background-image: linear-gradient(180deg, #ffffff 25%, #917255 100%);
  }

  /* ---- Type scale ---- */
  .heading {
    font-size: clamp(32px, calc(33.50px + 1.864vw), 52px);
    line-height: 1.05;
    color: #241b14;
    margin-top: 0.4em;
    margin-bottom: 0.5em;
    text-align: center;
  }
  .heading-2,
  .heading-2.center,
  .heading-2-a-right,
  .heading-2-a-right.center,
  .heading-2-a-right.px-2em {
    font-size: clamp(24px, calc(26.55px + 1.356vw), 40px) !important;
    line-height: 1.1;
    max-width: 100%;
    padding-bottom: 0 !important;
    margin-bottom: var(--bt-stack-gap);
    overflow-wrap: break-word;
    hyphens: auto;
  }
  .heading-2-a-right.px-2em {
    padding-left: 0;
    padding-right: 0;
  }
  .paragraph-lead {
    font-size: 24px;
    line-height: 26px;
    padding-bottom: 0;
    margin-bottom: var(--bt-stack-gap);
  }
  .paragraph-big,
  .paragraph-h-center.paragraph-big,
  .paragraph-h-center.text-center.paragraph-big {
    font-size: 24px;
    line-height: 26px;
  }
  .paragraph,
  .paragraph-2,
  .paragraph-3,
  .paragraph-h-center:not(.paragraph-big) {
    font-size: 19px;
    line-height: 24px;
  }
  .sub-headline,
  .sub-headline.center {
    padding-top: var(--bt-section-top);
    padding-bottom: 0;
    margin-bottom: var(--bt-stack-gap);
    text-align: center;
  }
  /* Philosophie follows the marquee — smaller top inset than offer sections. */
  .section:not(.bg-brown):not(.section-4) > .content-wrapper-padding:not([class*="gradient"]):not(.background-cover) > .sub-headline:first-child {
    padding-top: var(--bt-stack-gap);
  }
  /* philCtaText sits outside .content-wrapper-padding (philosophy.php) */
  .section > .sub-headline.center {
    padding-left: var(--bt-side);
    padding-right: var(--bt-side);
    padding-top: var(--bt-stack-gap);
    padding-bottom: var(--bt-stack-gap);
    margin-bottom: 0;
  }
  .sub-headline,
  .sub-headline.center,
  .heading-3,
  .service-nav,
  .service-nav.first,
  .service-nav.last {
    font-size: clamp(14px, calc(14.95px + 0.508vw), 20px);
  }
  .button-text {
    font-size: clamp(15px, calc(14.64px + 0.339vw), 18px);
    letter-spacing: 0.15em;
  }

  /* ---- Section layouts ---- */
  .section-4 .grid_wrapper.thirds {
    gap: var(--bt-stack-gap);
  }
  .section-4 .grid_wrapper.thirds > .third {
    width: 100%;
  }

  .section-4 .image-3.paragraph-h-center {
    padding-top: var(--bt-stack-gap);
    padding-bottom: var(--bt-stack-gap);
  }

  .section-4 .grid_wrapper.fifties.margin-t-l {
    margin-top: var(--bt-stack-gap);
    margin-bottom: 0;
  }

  .grid_wrapper.fifties {
    display: flex !important;
    flex-direction: column;
    grid-template-columns: 1fr !important;
    gap: var(--bt-stack-gap);
    margin-bottom: 0;
  }
  .grid_wrapper.fifties .w-layout-vflex,
  .grid_wrapper.fifties .w-layout-hflex {
    width: 100%;
    max-width: 100%;
  }

  .grid_wrapper.fifties .w-layout-vflex > .button + .button,
  .grid_wrapper.fifties .w-layout-vflex > .button + .button-white,
  .grid_wrapper.fifties .w-layout-vflex > .button-white + .button,
  .grid_wrapper.fifties .w-layout-vflex > .button-white + .button-white {
    margin-top: var(--bt-button-gap);
  }

  .bg-brown .footer-block {
    gap: var(--bt-stack-gap);
  }

  .footer-block > .heading-2,
  .footer-block > .heading-2-a-right,
  .footer-block > .heading-2-a-right.px-2em {
    margin-bottom: 0;
  }

  /* Offer/about accordions: title aligns with column copy (--bt-side on wrapper). */
  .accordion-css__item-top {
    padding-left: 0;
    padding-right: 0;
  }

  .accordion-css__item-bottom-content {
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 1.25em;
  }

  /* Contact / ethics heading rows: stack on tablet */
  .footer-block {
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
    gap: var(--bt-stack-gap);
  }

  .bg-dark .footer-block .paragraph-h-center.paragraph-big {
    max-width: 100%;
  }

  /* Sub-navi: vertical stack (Figma mobile 402×46 rows) */
  .subnav-offers .grid {
    grid-template-columns: 1fr !important;
    border: none !important;
  }
  .service-nav,
  .service-nav.first,
  .service-nav.last {
    border-left: none !important;
    border-right: none !important;
    border-top: 1px solid #1c1c1c;
    border-bottom: none;
    padding: 14px 0;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .subnav-offers .grid .link-block-sub:last-child .service-nav {
    border-bottom: 1px solid #1c1c1c;
  }

  /* Tryptichon overlap — disable absolute pull-up on mobile */
  .section-3._100-transition-y {
    position: relative !important;
    transform: none !important;
    width: 100%;
  }

  .marquee-css {
    overflow: hidden;
    width: 100%;
  }

  .legal-page {
    padding-top: clamp(120px, 32vw, 160px);
  }

  .footer-meta.px-2em {
    padding-top: 1em;
    padding-bottom: 0;
  }

  .footer-link.px-2em::after {
    top: calc(100% + 3px);
    bottom: auto;
  }
}

/* --- Page transitions (Barba + GSAP WebGL noise, Codrops example 2) --- */
:root {
  --page-transition-color: var(--_barur---azurblau, #9ccee8);
}

/* Do not overflow:hidden on html/body during entry — that snaps scroll to 0
   before the overlay has coverage. Overlay pointer-events lock interaction. */
html:has(body.has-entry-cover),
html:has(body.is__transitioning) {
  scroll-behavior: auto;
}

/* Barba 2.x never sets data-barba-state; hide incoming container via .is-barba-pending. */
[data-barba="container"].is-barba-pending {
  visibility: hidden !important;
}

[data-barba="container"] {
  width: 100%;
}

body.is__transitioning a {
  pointer-events: none;
}

body.has-entry-cover .navbar-2,
body.is__transitioning .navbar-2 {
  visibility: hidden;
  pointer-events: none;
}

body.has-entry-cover .navbar-2 .brand,
body.has-entry-cover .navbar-2 .image-5,
body.is__transitioning .navbar-2 .brand,
body.is__transitioning .navbar-2 .image-5 {
  transition: none !important;
}

html.barur-skip-entry-cover:has(body.has-entry-cover),
html.barur-skip-entry-cover:has(body.is__transitioning) {
  scroll-behavior: auto;
}

html.barur-skip-entry-cover body.has-entry-cover .navbar-2,
html.barur-skip-entry-cover body.is__transitioning .navbar-2 {
  visibility: visible;
  pointer-events: auto;
}

#webgl,
.page-transition-fallback {
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2000;
  position: fixed;
  inset: 0;
  visibility: hidden;
  display: block;
}

/* Barba click dissolve: overlay visible. Refresh fade does not use the noise overlay. */
html:not(.barur-skip-entry-cover) body.is__transitioning:not(.has-entry-cover) #webgl,
html:not(.barur-skip-entry-cover) body.is__transitioning:not(.has-entry-cover) .page-transition-fallback {
  visibility: visible;
  pointer-events: auto;
  touch-action: none;
}

/* Refresh: kaltweiß hold behind fading copy. Navbar is unchanged. */
html.entry-fade-hold,
html:has(body.has-entry-cover),
body.has-entry-cover {
  background-color: #E9E8E3;
}

html:not(.barur-skip-entry-cover) body.has-entry-cover #webgl,
html:not(.barur-skip-entry-cover) body.has-entry-cover .page-transition-fallback {
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

body.has-entry-cover:not(.entry-content-ready) [data-barba="container"] {
  opacity: 0;
}

body.has-entry-cover.entry-content-ready [data-barba="container"] {
  opacity: 1;
  transition: opacity 0.32s ease;
}

@media (prefers-reduced-motion: reduce) {
  body.has-entry-cover.entry-content-ready [data-barba="container"] {
    transition: none;
  }
}

/* --- Pause page (maintenance mode) --- */
.pause-page {
  --pause-wordmark-width: min(465px, 80vw);
  --pause-wordmark-height: calc(var(--pause-wordmark-width) * 50 / 465);
  --pause-vertical-pad: calc(var(--pause-wordmark-height) * 2);
  --pause-fg: #ffffff;
  --pause-bg: #2a6885;
  background-color: var(--pause-bg);
  color: var(--pause-fg);
}

.pause-page__main,
.pause-page__stage {
  min-height: 100svh;
}

.pause-page__stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  background-color: var(--pause-bg);
}

/* Center axis — split above/below the content block (Figma pause frame) */
.pause-page__line {
  flex: 1 1 0;
  width: 2px;
  min-height: 0;
  background-color: var(--pause-fg);
}

.pause-page__block {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 80vw);
  padding:
    var(--pause-vertical-pad)
    var(--bt-side, 20px)
    var(--pause-vertical-pad);
  text-align: center;
}

.pause-page__wordmark {
  display: block;
  width: var(--pause-wordmark-width);
  height: var(--pause-wordmark-height);
  background-color: var(--pause-fg);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.pause-page__message {
  margin: clamp(20px, 4vw, 32px) 0 0;
  max-width: 16em;
  color: var(--pause-fg);
  text-wrap: balance;
}

@media screen and (min-width: 992px) {
  .pause-page__block {
    width: min(100%, 80vw);
    padding-left: var(--_barur---padding-xl);
    padding-right: var(--_barur---padding-xl);
  }
}
