/* MANYMEN — site styles.
   Values are measured from the 2025 WordPress site (Montoya theme + Elementor) so the copy matches
   it 1:1; class names follow that site where scripts or the comparison tools rely on them.
   Breakpoints as on the original: 1537, 1466, 1024, 767, 479. */

/* ---------- start states for the entry and scroll motion (only with JS, see main.js) */
body { transition: opacity .2s ease-in-out .2s; }
.js body.hidden { opacity: 0; }
.js #header-container, .js #main, .js #main-page-content, .js #page-nav, .js #footer-container, .js .page-nav-caption { opacity: 0; }
.js .hero-subtitle span { opacity: 0; transform: translateY(60px); }
.js .hero-footer-left, .js .hero-footer-right { opacity: 0; transform: translateY(10px); }
.js .hero-cta { opacity: 0; transform: translateY(30px); }
.js .has-animation { opacity: 0; transform: translateY(30px); }

/* ---------- icon font (Font Awesome Free 6.5.1, SIL OFL / CC BY 4.0, see fonts/fa/LICENSE.txt) */
@font-face { font-family: "Font Awesome 6 Free"; font-style: normal; font-weight: 900; font-display: block; src: url("../fonts/fa/fa-solid-900.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins/poppins-latin-400.woff2") format("woff2"); } /* SIL OFL, form fields */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins/poppins-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Font Awesome 6 Brands"; font-style: normal; font-weight: 400; font-display: block; src: url("../fonts/fa/fa-brands-400.woff2") format("woff2"); }
.fa, .fa-solid, .fa-brands { display: inline-block; font-style: normal; font-variant: normal; line-height: 1; text-rendering: auto; -webkit-font-smoothing: antialiased; }
.fa, .fa-solid { font-family: "Font Awesome 6 Free"; font-weight: 900; }
.fa-brands { font-family: "Font Awesome 6 Brands"; font-weight: 400; }
.fa-angle-down::before { content: "\f107"; }
.fa-angle-up::before { content: "\f106"; }
.fa-arrow-right::before { content: "\f061"; }
.fa-share-nodes::before { content: "\f1e0"; }
.fa-whatsapp::before { content: "\f232"; }
.fa-instagram::before { content: "\f16d"; }

/* ---------- tokens */
:root {
  --gutter: 80px;
  --page: #0c0c0c;
  --brown: #46413c;
  --stone: #d2d1d1;
  --ease: cubic-bezier(.215, .61, .355, 1);
  --title: clamp(1.5rem, 3vw + 1rem, 8rem);
  --bar: 120px; /* header and footer height */
}
@media (max-width: 1466px) { :root { --gutter: 60px; --bar: 100px; } }

/* ---------- reset and base */
html, body, div, span, iframe, h1, h2, h3, h4, h5, h6, p, a, b, strong, i, dl, dt, dd, ul, li, form, label, footer, header, nav, section, main {
  margin: 0; padding: 0; border: 0; outline: 0; vertical-align: baseline;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  width: 100%; height: 100%;
  font-family: "Mundial"; font-weight: 300; font-size: 16px; color: #444;
  background-color: #fff;
}
body { overflow-x: hidden; overflow-y: scroll; }
::selection { background: #000; color: #fff; text-shadow: none; }
img { border: 0; max-width: 100%; height: auto; vertical-align: middle; }
a { text-decoration: none; color: #fff; }
b, strong { font-weight: 600; color: #fff; }
h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: 500; color: #fff; margin-bottom: 20px; }
h4 { font-size: calc(1rem + 1vw); line-height: calc(1rem + 1.6vw); }
h6 { font-size: 18px; line-height: 36px; }
p { font-size: 18px; line-height: 28px; font-weight: 300; margin-bottom: 20px; color: #999; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.no-margins { margin: 0; }
.text-align-left { text-align: left; }
.text-align-center { text-align: center; }

main { overflow: hidden; background-color: var(--page); }
.cd-main-content { width: 100%; }
#clapat-page-content { min-height: 100vh; }
.primary-font-title {
  font-family: "Havelock Titling", serif; font-weight: 400; font-style: normal;
  text-transform: lowercase; letter-spacing: normal;
  font-size: var(--title); line-height: 1.2;
}
.big-title { color: #fff; }
.light-section .big-title { color: #000; }

/* ---------- header and menu */
header {
  position: fixed; top: 0; left: 0; z-index: 1000;
  width: 100%; height: var(--bar); pointer-events: none;
}
#header-container { position: relative; z-index: 20; width: 100%; height: inherit; margin: 0 auto; padding: 20px var(--gutter); }
@media (max-width: 1466px) { #header-container { padding: 10px var(--gutter); } .flexnav > li { padding: 20px; } }
#logo { position: relative; z-index: 10; top: 15px; float: left; display: table; pointer-events: initial; }
#logo a { display: block; transition: transform .5s ease-in-out .1s; }
#logo img { display: block; width: auto; max-width: none; height: 50px; transition: opacity .15s ease-in-out; }
#logo .black-logo { opacity: 0; }
#logo .white-logo { position: absolute; top: 0; left: 0; opacity: 1; }
header.white-header #logo .black-logo { opacity: 1; }
header.white-header #logo .white-logo { opacity: 0; }

nav { position: relative; float: right; height: 60px; margin: 10px 0; pointer-events: none; }
.flexnav { display: flex; height: 60px; margin: 0; }
.flexnav > li { position: relative; padding: 20px 30px; line-height: 20px; pointer-events: initial; }
.flexnav > li:last-child { padding-right: 0; }
.flexnav > li > a { position: relative; z-index: 2; display: block; overflow: hidden; font-size: 14px; font-weight: 300; line-height: 24px; color: #fff; }
header.white-header .flexnav > li > a { color: #222; }
.flexnav > li > a span { position: relative; display: block; transform-origin: 100% 0%; transition: transform .2s; }
.flexnav > li > a span::before { content: attr(data-hover); position: absolute; top: 100%; left: 0; width: 100%; }
@media (min-width: 1025px) {
  .flexnav > li:hover > a span { transform: translateY(-100%); transform-origin: 0% 0%; }
  /* hovering the menu dims every other item, the hovered one (and its submenu) stays white */
  .flexnav:hover > li > a { color: rgb(255 255 255 / .4); }
  .flexnav > li:hover > a { color: #fff; }
  header.white-header .flexnav:hover > li > a { color: rgb(0 0 0 / .4); }
  header.white-header .flexnav > li:hover > a { color: #222; }
}
.sub-menu {
  position: absolute; top: 60px; left: 15px; min-width: 180px; padding-top: 20px;
  background: #000; border-radius: 3px; color: #ccc;
  opacity: 0; visibility: hidden; transform: translate3d(0, 30px, 0);
  transition: opacity .2s ease-in-out, visibility .2s ease-in-out, transform .2s ease-in-out;
}
.sub-menu::after { content: ""; position: absolute; top: -6px; left: 20px; border-style: solid; border-width: 0 10px 9px; border-color: transparent transparent #000; }
.menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate3d(0, 0, 0); }
.sub-menu li { position: relative; overflow: hidden; line-height: 20px; }
.sub-menu a { display: block; padding: 0 20px 20px; font-size: 14px; font-weight: 300; line-height: 24px; color: #fff; opacity: .6; transition: all .05s ease-in-out; }
.sub-menu a { background-color: rgb(255 255 255 / 0); }
.sub-menu a:hover { opacity: 1; }
.classic-menu .button-wrap.menu { display: none; }

/* ---------- buttons with icon (scroll down, back to top) */
.button-wrap { position: relative; display: table; cursor: pointer; pointer-events: initial; }
.button-wrap::after { content: " "; display: block; clear: both; height: 0; visibility: hidden; }
.button-wrap.left { float: left; left: -32px; }
.button-wrap.right { float: right; right: -26px; }
#main .button-wrap.right { float: none; right: auto; }
.icon-wrap { position: relative; float: left; display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; }
#main .icon-wrap { width: 60px; height: 60px; }
.button-wrap.right .icon-wrap { float: right; }
.button-icon { width: 40px; height: 40px; font-size: 18px; line-height: 40px; text-align: center; color: #fff; }
.button-icon i { width: 40px; height: 40px; line-height: 40px; text-align: center; }
.button-text { display: block; overflow: hidden; width: auto; margin: 25px 0; padding: 0 10px; font-size: 14px; font-weight: 500; line-height: 30px; color: #fff; }
#main .button-text { margin: 15px 0; font-size: 18px; }
#main #hero-footer .button-text { font-size: 14px; }
.button-wrap.right .button-text { padding-left: 0; }
.button-text span { position: relative; display: inline-block; transform-origin: 100% 0%; transition: transform .2s; }
.button-wrap.left .button-text span { text-align: left; }
.button-wrap.right .button-text span { text-align: right; }
.button-text span::before { content: attr(data-hover); position: absolute; top: 100%; left: 0; }
.button-wrap:hover .button-text span { transform: translateY(-100%); transform-origin: 0% 0%; }

/* ---------- hero */
#hero { position: relative; z-index: 20; width: 100%; overflow: hidden; }
#hero-styles { position: relative; z-index: 2; width: 100%; margin: 0 auto; }
#hero-caption {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100vh; height: 100svh; margin: 0 auto; padding: 80px var(--gutter); text-align: left;
}
#hero-caption .inner { display: block; text-align: center; }
.hero-title { position: relative; display: block; overflow: visible; margin: 0; padding: 0; white-space: nowrap; color: #fff; }
.hero-title div, .next-hero-title div { display: inline-block; }
.hero-title span, .next-hero-title span { display: inline-block; min-width: 3vw; }
.hero-title span { transform-origin: bottom center; }
.hero-subtitle {
  position: relative; z-index: 10; display: block; overflow: hidden; width: 100%; margin-top: 30px;
  font-size: 18px; font-weight: 300; line-height: 24px; color: #fff; opacity: .4;
}
@media (min-width: 1538px) { .hero-subtitle { margin-top: 50px; } }
.hero-subtitle span { position: relative; display: block; }
#hero-footer {
  position: absolute; bottom: 0; left: 0; width: 100%; padding: 28px var(--gutter);
  font-size: 14px; font-weight: 500; line-height: 60px; color: #fff;
}
@media (max-width: 1466px) { #hero-footer { padding: 25px var(--gutter); } }
#hero-footer::after { content: ""; display: table; clear: both; }
.hero-footer-left { float: left; cursor: pointer; }
.hero-footer-right { float: right; display: none; } /* "Unsere Arbeit" sat under the WhatsApp label (Meladin, 2026-11-15) */

/* ---------- page content frame */
#content-scroll { position: relative; z-index: 1; }
#main { position: relative; }
#main-content { position: relative; z-index: 10; }
#main-page-content {
  position: relative; overflow: hidden; width: 100%; margin: 0 auto;
  font-size: 16px; line-height: 28px; color: #aaa;
}
#main-page-content > section { position: relative; width: 100%; }
/* boxed inner column of a section: 1140px max, 10px inner rhythm as on the original */
.row-inner { position: relative; display: flex; flex-direction: column; gap: 20px; width: min(100% - 2 * var(--gutter), 1140px); margin: 0 auto; padding: 10px 0; }
.spacer { height: var(--h); flex-shrink: 0; }

/* text that fades in word by word */
.js .has-opacity .word { opacity: .2; }

/* headings that fill with white while scrolling */
.has-mask-fill > span {
  position: relative; display: inline;
  -webkit-text-fill-color: rgb(255 255 255 / .1);
  background-image: linear-gradient(#fff, #fff); background-repeat: no-repeat; background-size: 0% 100%;
  -webkit-background-clip: text; background-clip: text;
}

/* ---------- plain button */
.button {
  display: inline-block; padding: 12px 24px; border-radius: 3px;
  font-size: 15px; font-weight: 300; line-height: 1; text-align: center;
  color: #000; background-color: var(--stone); transition: all .3s;
}

/* ---------- home: call to action */
.home-cta { padding: 80px 10px 70px 20px; text-align: center; }
.home-cta__link { display: block; padding-right: 10px; color: #fff; }
.home-cta__logo { display: block; width: 20.58%; margin: 0 auto; }
.home-cta__title {
  margin: 40px 0 0; font-family: "Havelock Titling", sans-serif; font-size: 40px; font-weight: 500; line-height: 1;
  color: #fff;
}
.home-cta__text { margin: 20px 20px 40px; font-size: 16px; line-height: 28px; color: #fff; }
.home-cta__button { margin-top: 20px; }

/* ---------- home: booking button in the first screen (Meladin, 2026-11-15) */
.hero-cta { margin-top: 40px; }
.hero-cta__button { padding: 16px 32px; font-size: 16px; }
.hero-cta__button:hover { background-color: #fff; }

/* ---------- overlapping gallery (stacked cards) */
.home-gallery { padding: 10px var(--gutter) 80px; }
.overlapping-gallery { position: relative; }
.overlapping-image { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 100vh; }
.overlapping-image:first-child .overlapping-image-inner { align-self: flex-start; }
.overlapping-image:last-child { z-index: 10; }
.overlapping-image-inner { position: relative; display: block; width: 100%; height: calc(100% - 120px); cursor: pointer; color: #fff; }
.img-mask { position: absolute; inset: 0; z-index: 0; display: block; overflow: hidden; border-radius: 12px; }
.item-image { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 8px; }
.slide-caption {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: center;
  padding: var(--gutter); color: #fff; pointer-events: none;
}
.slide-title { overflow: hidden; }
.slide-caption span { display: block; }
.slide-date, .slide-cat {
  position: absolute; bottom: var(--gutter); padding: 2px 16px; border-radius: 35px;
  font-size: 14px; line-height: 28px; background: rgb(255 255 255 / .2);
}
.slide-date { left: var(--gutter); }
.slide-cat { right: var(--gutter); }

/* ---------- sections with two columns */
.split { flex-direction: row; }
.split__col { display: flex; flex-direction: column; gap: 20px; flex: 1 1 0; min-width: 0; padding: 10px 0; }
.split__col:first-child { padding-right: 10px; }
.split__col:last-child { padding-left: 10px; }

/* ---------- home: why (white card) */
.home-why { background: #fff; padding: 9vw 0; }
.home-why .big-title { color: #000; }
.clip-effects { overflow: hidden; clip-path: inset(4% 10% round 40px); }

/* ---------- accordion */
.accordion { margin: 0; padding: 0 0 20px; }
.accordion dt {
  position: relative; z-index: 10; display: flex; align-items: center;
  margin-top: 20px; padding-top: 20px; cursor: pointer;
  font-size: 20px; font-weight: 500; line-height: 30px;
  border-top: 1px solid rgb(255 255 255 / .2); transition: all .2s ease;
}
.light-section .accordion dt { border-top-color: rgb(0 0 0 / .1); }
.accordion dt:first-child { margin-top: 0; border-top: none; }
.light-section .accordion dt:first-child { border-top: 1px solid rgb(0 0 0 / .1); } /* as on the original */
.accordion dt .link { position: relative; display: block; overflow: hidden; width: calc(100% - 30px); color: #fff; }
.light-section .accordion dt .link { color: #000; }
.acc-icon-wrap { position: relative; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; }
.acc-button-icon {
  width: 30px; height: 30px; border-radius: 50px; font-size: 12px; line-height: 30px; text-align: center;
  color: #000; background: rgb(0 0 0 / .1); transition: background .2s ease, color .2s ease;
}
/* the theme's colour rules in its order (hover and open fill the circle) */
.accordion dt:hover .acc-button-icon, .accordion dt.accordion-active .acc-button-icon { background: #000; color: #fff; }
.dark-section .accordion .acc-button-icon { background: rgb(255 255 255 / .1); }
.light-content .accordion dt:hover .acc-button-icon, .dark-section .accordion dt.accordion-active .acc-button-icon { background: #fff; color: #000; }
.light-content .light-section dt:hover .acc-button-icon, .light-content .light-section .accordion dt.accordion-active .acc-button-icon { background: #000; color: #fff; }
.light-content .accordion .acc-button-icon, .dark-section .accordion .acc-button-icon { color: #fff; }
.light-content .light-section .accordion .acc-button-icon { color: #000; }
.light-section .accordion .acc-button-icon { background: rgb(255 255 255 / .1); } /* as measured live: invisible on white */
.acc-button-icon i { width: 30px; height: 30px; line-height: 30px; text-align: center; transition: transform .2s ease; }
.accordion dt.accordion-active .acc-button-icon i { transform: rotate(90deg); }
.accordion .accordion-content {
  position: relative; z-index: 0; display: none; margin: 0; padding: 10px 80px 5px 0;
  font-size: 16px; font-weight: 300; line-height: 28px; color: #ccc;
}
.light-section .accordion .accordion-content { color: #444; }

/* ---------- home: prices */
.home-prices { background: var(--brown); padding: 0 var(--gutter); }
.home-prices .row-inner { width: min(100%, 1140px); padding-top: 110px; padding-bottom: 90px; }
.home-prices__title { align-self: center; }

/* ---------- home: map and booking */
.home-visit .row-inner { padding-top: 80px; padding-bottom: 10px; gap: 20px; }
.home-visit__map, .home-visit__book { display: flex; flex-direction: column; gap: 20px; padding: 10px 0 10px 10px; }
.home-visit__map { padding-right: 10px; padding-bottom: 80px; }
.home-visit__book { margin-top: 100px; }
.home-visit .big-title { margin-bottom: 20px; }
.home-visit__sub { align-self: flex-start; margin: 0; font-size: calc(1rem + 1vw); line-height: 1; font-weight: 500; text-align: center; }
.home-visit__text p { margin: 0; font-size: 16px; line-height: 28px; color: #aaa; text-align: center; }

.map-embed {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  width: 100%; height: 300px; padding: 20px; overflow: hidden; line-height: 0;
  background: #1a1a1a;
}
.map-embed > * { position: relative; }
.map-embed__load { padding: 12px 24px; border-radius: 3px; font-size: 15px; line-height: 1; color: #000; background: var(--stone); }
.map-embed__note { margin: 0; font-size: 13px; line-height: 20px; color: #ccc; text-align: center; }
.map-embed__note a { text-decoration: underline; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.booking-embed iframe { display: block; width: 100%; border: 0; }

/* ---------- contact icon boxes */
.contact-boxes .row-inner { padding-top: 130px; padding-bottom: 10px; }
.icon-boxes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 20px 0 20px 10px; }
.box-icon-wrapper { position: relative; display: table; width: 100%; text-align: center; }
.box-icon { position: relative; width: 35px; height: 35px; margin: 0 auto; line-height: 35px; color: #fff; }
.box-icon svg { position: relative; top: -10px; width: 35px; height: 35px; fill: #fff; }
.box-icon-content { position: relative; width: 100%; }
.box-icon-content h6 { font-size: 18px; font-weight: 500; line-height: 36px; }
.box-icon-content p { margin-bottom: 20px; }

/* ---------- flex list (full-bleed rows: year | text | tag, hours) */
.flex-list-wrapper {
  position: relative; display: block; overflow: hidden;
  width: 100vw; max-width: none; margin: 20px calc(50% - 50vw) 25px;
  border-top: 1px solid rgb(255 255 255 / .15);
}
.flex-list {
  position: relative; display: flex; justify-content: space-between; margin: 0; padding: 35px var(--gutter);
  line-height: 20px; color: #ccc; border-bottom: 1px solid rgb(255 255 255 / .15);
}
.flex-list::after { content: ""; position: absolute; bottom: 0; left: 0; z-index: 0; width: 100%; height: 0; background-color: #fff; transition: all .2s ease-out; }
.flex-list:hover::after { height: 100%; }
.flex-list > span { z-index: 10; color: #fff; mix-blend-mode: difference; }
.flex-list-left { width: 15%; text-align: left; }
.flex-list-center { width: 70%; font-size: 20px; text-align: center; }
.flex-list-right { width: 15%; text-align: right; }

/* ---------- legal pages and booking */
.legal__title { margin: 0; font-size: calc(1rem + 2vw); font-weight: 500; line-height: 1; color: #fff; }
.legal__text p { margin: 0; font-size: 16px; line-height: 28px; color: #aaa; }
.legal .spacer { height: var(--h, 30px); }
.page-privacy .legal__text p + p { margin-top: 16px; }
.page-privacy .legal__text a { color: #fff; text-decoration: underline; }
.legal__text h5 { margin-bottom: 20px; font-size: calc(1rem + .6vw); line-height: calc(1rem + 1.5vw); font-weight: 500; color: #fff; }
.legal__text ul, .legal__text ol { margin: 20px 0 25px 20px; }
.legal__text ul { list-style: disc; }
.legal__text ol { list-style: decimal; }
.legal__text li { margin-bottom: 25px; line-height: 20px; color: #ccc; }
.legal__text li p { line-height: inherit; color: inherit; }
.booking-embed iframe { height: 288px; }

/* ---------- connect: form, hours, map */
.connect-form { padding: 9vw 0; }
.connect-form .row-inner { width: min(100% - 20px, 1140px); padding-bottom: 110px; }
.connect-form .big-title, .connect-hours .big-title, .connect-map .big-title { margin-bottom: 20px; }
#contact-formular { display: flex; flex-wrap: wrap; justify-content: space-between; text-align: center; }
.name-box, .email-box { width: 47%; margin-bottom: 40px; }
.message-box { width: 100%; margin-top: 60px; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form textarea {
  display: block; width: 100%; height: 50px; margin: 0; padding: 12px 20px 12px 0; border: 0; border-radius: 0;
  border-bottom: 1px solid rgb(255 255 255 / .3); outline: none; background: transparent;
  font-family: "Poppins", sans-serif; font-size: 16px; font-weight: 400; color: #fff; transition: all .2s linear;
}
.contact-form textarea { padding: 14px 20px 6px 0; margin-bottom: 60px; resize: none; overflow: hidden; }
.contact-form ::placeholder { color: #fff; opacity: 1; }
/* focus: a 2px line grows under the field (the theme's .input_label) */
.name-box, .email-box, .message-box { position: relative; }
.input_label { position: absolute; top: 49px; left: 0; width: 0; height: 2px; background-color: #fff; transition: all .2s ease-in-out; }
.contact-form input:focus + .input_label, .contact-form textarea:focus + .input_label { width: 100%; }
.contact-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.button-box { display: flex; justify-content: center; width: 100%; height: 60px; margin: 0 0 4px; } /* 4px: the inline-block line box of the original */
.clapat-button-wrap { display: flex; align-items: center; justify-content: center; }
.button-border {
  box-sizing: content-box; height: 50px; overflow: hidden; border: 2px solid #fff; border-radius: 30px;
  font-size: 16px; font-weight: 500; line-height: 50px; color: #fff; text-align: center; background: transparent;
  cursor: pointer; transition: border .2s ease-out;
}
.button-border input[type=submit] {
  display: inline-block; height: 50px; padding: 12px 50px; border: 0; background: transparent; cursor: pointer;
  font-family: "Mundial"; font-size: 18px; font-weight: 300; color: #fff;
}
.form-response { margin-top: 20px; font-size: 16px; line-height: 28px; color: #fff; text-align: center; }
.form-response:empty { display: none; }
.connect-hours .row-inner { padding-bottom: 130px; }
.connect-map .row-inner { padding-bottom: 200px; }
.connect-map .home-visit__sub { align-self: stretch; text-align: left; }
.page-connect .contact-boxes .row-inner { padding-top: 10px; }
.page-connect .icon-boxes { padding: 10px 0; }

/* ---------- next page teaser */
#page-nav { position: relative; overflow: hidden; width: 100%; color: #fff; }
.page-nav-wrap { position: relative; z-index: 3; width: 100%; height: 100%; }
.page-nav-caption {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; height: calc(100vh - var(--bar)); margin: 0 auto; padding: 80px var(--gutter);
}
#page-nav .inner { display: block; text-align: center; }
.next-hero-subtitle {
  position: relative; z-index: 10; display: table; overflow: hidden; width: auto; margin: 0 auto 30px;
  font-size: 18px; font-weight: 300; line-height: 30px; color: #fff; opacity: .4; text-align: center;
}
.next-hero-subtitle span { position: relative; display: block; }
.page-title { position: relative; z-index: 10; display: table; margin: 0 auto; color: #fff; transition: all .2s ease-in-out; }
.next-hero-title { position: relative; display: table; overflow: visible; margin: 0 auto; white-space: nowrap; color: #fff; }
.next-hero-title span { transform-origin: top center; }

/* ---------- footer */
footer { position: relative; z-index: 900; width: 100%; height: var(--bar); overflow: hidden; text-align: center; pointer-events: none; }
#footer-container { position: absolute; bottom: 0; left: 0; width: 100%; height: 80px; margin: 20px auto; padding: 0 var(--gutter); }
@media (max-width: 1466px) { #footer-container { margin: 10px auto; } }
.footer-middle { position: absolute; left: 0; display: table; width: 100%; height: inherit; margin: 0 auto; pointer-events: none; }
.copyright {
  position: relative; top: 25px; display: table; overflow: hidden; max-width: 820px; height: 30px; margin: 0 auto; padding: 0 20px;
  font-size: 14px; font-weight: 500; line-height: 30px; color: #fff; text-align: center; pointer-events: initial;
}
.socials-wrap { position: relative; float: right; width: 240px; height: 160px; color: #fff; pointer-events: initial; transition: all .2s var(--ease); }
.socials-wrap:hover { transform: translateY(-40px); }
.socials-text { float: right; font-size: 14px; font-weight: 500; line-height: 40px; transform: translateY(20px); }
.socials-wrap:hover .socials-text { transform: translateY(20px) translateX(5px); transition: all .2s var(--ease); }
.socials-icon { float: right; width: 30px; height: 40px; margin-left: 10px; font-size: 14px; line-height: 40px; text-align: right; transform: scale(1) translateY(20px); transition: all .2s var(--ease); }
.socials-wrap:hover .socials-icon { width: 0; margin: 0; overflow: hidden; transform: scale(0) translateY(40px); }
.socials-icon::after, .socials-text::after { content: ""; display: table; clear: both; }
.socials { position: relative; display: inline-block; width: 100%; margin-top: 10px; line-height: 30px; text-align: right; transform: translateX(15px); }
.socials li {
  position: relative; z-index: 2; float: right; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin: 0 0 0 10px; font-size: 15px; line-height: 40px; color: #999;
  opacity: 0; transform: translateY(20px); transition: all .2s var(--ease);
}
.socials-wrap:hover .socials li { opacity: 1; transform: translateY(10px); }
.socials-wrap:hover .socials li:nth-child(1) { transition-delay: .3s; } /* first item (rightmost) last */
.socials-wrap:hover .socials li:nth-child(2) { transition-delay: .2s; }
.socials-wrap:hover .socials li:nth-child(3) { transition-delay: .15s; }
.socials-wrap:hover .socials li:nth-child(4) { transition-delay: .1s; }
.socials-wrap:hover .socials li:nth-child(5) { transition-delay: .05s; }
.socials li:last-child { margin-left: 0; }
.socials li a { display: block; width: 40px; height: 40px; font-size: 14px; font-weight: 500; line-height: 40px; text-align: center; color: #fff; transition: opacity .2s ease-in-out; }
.socials:hover li a { opacity: .3; }
.socials li a:hover { opacity: 1; }

/* ---------- magic cursor */
#magic-cursor { position: absolute; top: 0; left: 0; z-index: 10000; width: 30px; height: 30px; pointer-events: none; transition: opacity .2s ease-in-out .5s; }
#ball {
  position: fixed; display: flex; flex-direction: column; justify-content: center;
  width: 80px; height: 80px; border: 2px solid #999; border-radius: 50%;
  pointer-events: none; transform: scale(.5);
}
#ball-drag-x, #ball-drag-y { display: none; }
#ball.with-blur { -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); transform: translate3d(0, 0, 0); }
#ball p {
  position: relative; display: flex; flex-direction: column; align-self: center; height: 16px; margin: 0 auto;
  font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; color: #fff; transition: all .2s var(--ease);
}
#ball p.center-first::before, #ball p.center-first::after { position: absolute; top: calc(50% - 10px); height: 20px; font-size: 12px; font-weight: 500; line-height: 20px; }
#ball i { display: block; width: 76px; height: 80px; font-size: 14px; line-height: 78px; text-align: center; color: #fff; transition: all .2s var(--ease); }
#ball p.center-first::before { content: "["; left: -8px; }
#ball p.center-first::after { content: "]"; right: -8px; }
#ball-loader {
  position: absolute; width: 100px; height: 100px; border: 4px solid transparent; border-bottom-color: #999; border-radius: 100px;
  opacity: 0; transform: translate(-14px, -14px); animation: rotating .8s ease-in-out infinite;
}
@keyframes rotating { 0% { transform: translate(-14px, -14px) rotate(0); } 95% { transform: translate(-14px, -14px) rotate(350deg); } 100% { transform: translate(-14px, -14px) rotate(360deg); } }
.show-loader #ball-loader { opacity: 1; transition: opacity .2s ease-in-out; }
.show-loader a, .show-loader nav { pointer-events: none !important; }
.disable-cursor #magic-cursor { display: none; }
.cd-cover-layer { display: none; }
@media (max-width: 1024px) { #magic-cursor { display: none; } }

/* ---------- WhatsApp bubble */
.whatsapp-bubble { position: fixed; right: 0; bottom: 0; z-index: 9999; pointer-events: none; }
.whatsapp-bubble__button {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; margin: 24px 20px; border-radius: 200px; pointer-events: all;
  font-size: 24px; color: #fff; background-color: #25d366;
  box-shadow: 0 1px 6px 0 rgb(0 0 0 / .06), 0 2px 32px 0 rgb(0 0 0 / .16);
}
/* label as a readable white bubble (Meladin, 2026-11-15; live: dark grey "Jetzt chatten") */
.whatsapp-bubble__text {
  position: absolute; top: 50%; right: 60px; display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
  margin: 0 12px; padding: 8px 14px; border-radius: 14px; transform: translateY(-50%);
  font-size: 15px; font-weight: 300; line-height: 1.2; white-space: nowrap; color: #000; background-color: #fff;
  box-shadow: 0 1px 6px 0 rgb(0 0 0 / .06), 0 2px 32px 0 rgb(0 0 0 / .16);
}
.whatsapp-bubble__text { transition: opacity .3s ease-out, visibility .3s; }
.whatsapp-bubble__text strong { font-weight: 300; color: #000; }
/* once the visitor scrolls, only the round button stays, so the label never covers page content */
.whatsapp-bubble.is-compact .whatsapp-bubble__text { visibility: hidden; opacity: 0; }
.whatsapp-bubble__text small { font-size: 12px; color: #555; }

/* ---------- burger and full-screen menu (≤1024, as on the original) */
#burger-wrapper { position: relative; top: 0; right: 0; float: right; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; cursor: pointer; pointer-events: initial; }
.burger-dots #menu-burger { position: relative; top: 0; z-index: 2; display: block; width: 25px; height: 25px; margin: 0 auto; pointer-events: none; }
.burger-dots #menu-burger span {
  position: absolute; top: 8px; left: 0; display: block; width: 5px; height: 5px; border-radius: 5px; background-color: #fff; transform: rotate(0);
  transition: background-color .05s ease-in-out, transform .2s ease-in-out, height .2s ease-in-out, width .2s ease-in-out, top .2s ease-in-out, left .2s ease-in-out;
}
.burger-dots #menu-burger span:nth-child(2) { left: 10px; }
.burger-dots #menu-burger span:nth-child(3) { left: 20px; }
.burger-dots .icon-wrap:hover #menu-burger:not(.open) span:nth-child(1), .burger-dots .icon-wrap:hover #menu-burger:not(.open) span:nth-child(3) { left: 10px; }
#menu-burger.open span:nth-child(1) { top: 12px; left: 3px; width: 20px; height: 2px; transform: rotate(45deg); }
#menu-burger.open span:nth-child(2) { transform: scale(0); }
#menu-burger.open span:nth-child(3) { top: 12px; left: 3px; width: 20px; height: 2px; transform: rotate(-45deg); }
header.white-header #menu-burger span { background-color: #000; }
header.white-header .button-wrap.menu .button-text { color: #000; }
header.over-sidebar { z-index: 2500; }
header.over-sidebar #logo .black-logo { opacity: 0; }
header.over-sidebar #logo .white-logo { opacity: 1; }
header.over-sidebar #menu-burger span { background-color: #fff; }
header.over-sidebar .button-wrap.menu .button-text { color: #fff; }

@media (max-width: 1024px) {
  :root { --gutter: 40px; }
  #header-container { padding: 10px var(--gutter); }
  .classic-menu .button-wrap.menu { display: table; }
  .button-wrap.menu { height: 80px; color: #fff; }
  .button-wrap.menu .icon-wrap { float: right; }
  /* no z-index: the logo and the burger after it in the header paint above the open menu.
     The list is centred but never starts above 60px (the theme's table cell does the same) */
  nav {
    position: fixed; top: 0; left: 0; float: none; display: flex;
    width: 100%; height: 100vh; height: 100dvh; margin: 0; padding: 60px 0; opacity: 0; visibility: visible; pointer-events: none;
    background-color: var(--page);
  }
  nav.open { pointer-events: initial; }
  nav:not(.open) .flexnav > li { pointer-events: none; } /* the closed menu must not catch taps */
  .flexnav { display: block; width: 100%; height: auto; max-height: none; margin: auto; padding: 0 20px; text-align: center; }
  .flexnav > li { padding: 0; line-height: normal; transition: color .15s ease-out; }
  .flexnav > li > a {
    font-weight: 300; text-transform: lowercase; color: #fff; /* the theme names Six Caps here, but its Mundial rule wins */
    font-size: calc(1rem + 12vw); line-height: calc(1rem + 11.5vw); transition: all .1s ease-in-out;
  }
  .flexnav > li > a span::before { content: none; }
  .flexnav > li > a:hover span { transform: none; }
  .flexnav:hover > li > a { opacity: .3; }
  .flexnav > li:hover > a, .flexnav > li > a[aria-current] { opacity: 1; }
  header.white-header .flexnav > li > a { color: #fff; }
  .sub-menu {
    position: static; display: none; min-width: 0; margin-bottom: 15px; padding: 0; background: none; border-radius: 0;
    opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .sub-menu::after { content: none; }
  .menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
  .sub-menu a { padding: 3px 0; font-size: 16px; font-weight: 300; line-height: 26px; opacity: .4; }

  .parallax-wrap, .parallax-element { transform: none !important; }
  #hero-footer { padding: 10px var(--gutter); }
  .hero-subtitle { margin-top: 20px; }
  #page-nav .next-hero-subtitle { margin-top: 20px; }
  .accordion .accordion-content { padding-right: 0; }
  .home-cta { padding-left: 20px; padding-right: 10px; }
  .connect-form .big-title, .connect-hours .big-title, .connect-map .big-title { margin: 20px 20px 40px; }
  .flex-list { padding: 30px 40px; }
  .contact-form textarea { margin-bottom: 50px; }

  #footer-container { padding: 0 var(--gutter); }
  .copyright { text-align: center; }
  .socials-wrap { right: -10px; width: 240px; height: 40px; margin: 0 auto; transform: translateY(20px) !important; }
  .socials-icon, .socials-text { display: none; }
  .socials { margin-top: 3px; text-align: right; transform: none; }
  .socials li { display: inline-block; float: none; width: 30px; height: 30px; margin: 0 5px; line-height: 30px; opacity: 1; transform: none; }
  .socials li a { width: 30px; height: 30px; line-height: 30px; }
}

@media (max-width: 767px) {
  :root { --gutter: 30px; --bar: 80px; }
  header { height: 80px; }
  #header-container { margin: 0 auto; padding: 0; }
  #logo { left: 30px; }
  .button-wrap.right.menu { right: 4px; }
  .flexnav > li > a { font-size: calc(1rem + 7vw); line-height: calc(1rem + 9vw); }
  .hero-subtitle { margin-top: 10px; font-size: 16px; }
  .hero-footer-left { transform: translateX(-20px); }
  .js .hero-footer-left { transform: translateX(-20px); }
  .hero-footer-left .button-text { display: none; }
  #page-nav .next-hero-subtitle { margin-top: 10px; font-size: 16px; }
  .slide-caption { padding: 30px; }
  .slide-date { top: 30px; bottom: auto; left: 30px; }
  .slide-cat { top: 30px; bottom: auto; right: 30px; }
  .accordion dt { font-size: 18px; }
  .flex-list { flex-direction: column; padding: 30px; }
  .flex-list > span { width: 100%; line-height: 30px; text-align: left; }
  .clip-effects { clip-path: inset(2% 5% round 30px); }
  .home-why { padding: 12vw 0; }
  .connect-form { padding: 12vw 0; }
  /* Elementor rows stack on phones */
  .split { flex-direction: column; flex-wrap: wrap; }
  .split__col { flex: 0 0 auto; width: 100%; padding: 10px 0 !important; }
  .icon-boxes { grid-template-columns: 1fr; padding-left: 0; padding-right: 0; }
  /* nested Elementor rows lose their side padding on phones */
  .home-visit__map, .home-visit__book { padding-left: 0; padding-right: 0; }
  .home-cta__logo { width: 137.734px; }
  .home-cta__title { margin-top: 20px; font-size: 30px; }
  .home-cta { padding-left: 10px; padding-right: 10px; }
  .home-cta__link { padding-right: 0; }
  .home-cta__text { margin: 20px 10px 10px; }
  .name-box, .email-box { width: 100%; }
  .button-box { margin-bottom: 0; }
  .legal__title, .legal__text { margin: 0 20px; }
  .page-datenschutz .legal .row-inner { padding: 0; }

  footer { height: 80px; }
  #footer-container { height: 80px; margin: 0; padding: 0 var(--gutter); }
  #footer-container #backtotop.button-wrap.left { position: absolute; top: 5px; left: 0; right: 0; display: block; float: none; }
  #backtotop .button-text { display: none; }
  #backtotop .icon-wrap { position: absolute; top: 0; left: 0; right: auto; float: none; margin: auto; opacity: .4; transition: opacity .2s ease-out; }
  .footer-middle { position: relative; top: 0; left: 0; width: 100%; max-width: 1180px; height: 20px; margin: 0 auto 15px; }
  .copyright { top: 0; height: 20px; margin: 0 auto; line-height: 20px; }
  .socials-wrap { top: 0; right: auto; left: auto; float: none; display: table; width: auto; height: 20px; margin: 0 auto; line-height: 20px; transform: none !important; }
  .socials { display: table; width: auto; height: 20px; margin: 0 auto; line-height: 20px; text-align: center; }
  .socials li, .socials li a { height: 20px; margin: 0 auto; line-height: 20px; }
}

@media (max-width: 479px) {
  :root { --gutter: 20px; }
  #logo { left: 20px; }
  .button-wrap.right.menu { right: -6px; }
  #hero .button-wrap .button-text { display: none; }
  .slide-caption { padding: 20px; }
  .flex-list { padding: 20px; }
  .slide-date { top: 20px; left: 20px; }
  .slide-cat { top: 20px; right: 20px; }
  #footer-container { padding: 0; }
}
