/* Vision Bewegung – PageWeave overrides */
:root { color-scheme: light; }
html { background-color: var(--bg-body); scroll-behavior: smooth; }
body { margin: 0; background: transparent; color: var(--text-body); font-family: "Open Sans", sans-serif; font-size: var(--text-m); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: "Red Hat Display", sans-serif; font-weight: 700; }
img { max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
main#brx-content { min-height: 50vh; }
.brx-query-trail { display: none !important; }
.bricks-lazy-hidden { opacity: 1 !important; transform: none !important; }
.css-filter { filter: none; }

/* Fix Tailwind .fab collision with Font Awesome brands */
.fab { position: static !important; inset: auto !important; z-index: auto !important; display: inline-block !important; pointer-events: auto !important; white-space: normal !important; user-select: auto !important; flex-direction: row !important; align-items: baseline !important; gap: 0 !important; }

/* Header */
#brx-header { position: sticky; top: 0; z-index: 998; }
#brx-header.slide-up { transform: translateY(-101%); }
#brx-header.brx-sticky { transition: background-color .2s, transform .4s; }

/* Mobile navigation */
body.vp-menu-open { overflow: hidden; }
@media (max-width: 767px) {
  #brxe-sqpwfm .bricks-mobile-menu-wrapper { display: flex; }
  #brxe-sqpwfm.show-mobile-menu .bricks-mobile-menu-wrapper { display: flex; }
  #brxe-sqpwfm .bricks-mobile-menu-wrapper { overscroll-behavior: contain; }
  #brxe-sqpwfm .bricks-mobile-menu > li > a,
  #brxe-sqpwfm .bricks-mobile-menu > li > .brx-submenu-toggle > * { color: #fff; }
}
.brx-submenu-toggle button { cursor: pointer; }
@media (min-width: 768px) {
  .bricks-nav-menu > li.menu-item-has-children.open > .sub-menu { opacity: 1; visibility: visible; }
}

/* Carousels */
.bricks-swiper-container .swiper-slide { opacity: 1 !important; }
.brxe-carousel { position: relative; overflow: hidden; }
.brxe-carousel .bricks-swiper-container { overflow: hidden; height: 100%; }
.brxe-carousel .swiper-wrapper { display: flex; height: 100%; transition: transform .45s ease; will-change: transform; }
.brxe-carousel .swiper-slide { flex: 0 0 100%; width: 100%; min-width: 100%; }
.home-carousel .image { background-size: cover; background-position: center; background-repeat: no-repeat; }
.home-carousel .swiper-button { cursor: pointer; z-index: 5; display: flex; align-items: center; justify-content: center; }
.home-carousel.single .swiper-button { display: none; }

/* Testimonial slider */
.vp-testimonial-slider {
  position: relative; display: flex; flex-direction: column;
  height: auto; overflow: visible; touch-action: pan-y;
}
.vp-testimonial-slider .splide__track { order: 1; overflow: visible; height: auto; }
.vp-testimonial-slider .splide__list { display: grid; height: auto; transition: none; will-change: auto; }
.vp-testimonial-slider .testimonial-slide {
  grid-area: 1 / 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; min-width: 0; height: auto;
  padding: clamp(2rem, 4vw, 3.5rem) 1rem;
  text-align: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.vp-testimonial-slider .testimonial-slide.is-active {
  opacity: 1; visibility: visible; pointer-events: auto; z-index: 1;
  transition: opacity .45s ease, visibility 0s;
}
.vp-testimonial-slider .testimonial-slide > .brxe-div { justify-content: center; }
.vp-testimonial-slider .vp-slider-controls {
  order: 2; display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 6px; margin-top: var(--space-s);
}
.vp-slider-btn {
  width: 44px; height: 44px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--secondary-d-1); border-radius: 999px;
  background: transparent; color: var(--secondary-d-2); cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.vp-slider-btn svg { width: 20px; height: 20px; }
.vp-slider-btn:hover { background: var(--secondary-20); border-color: var(--secondary-d-2); color: var(--secondary-d-3); }
.vp-slider-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.vp-slider-pause { margin-right: 4px; }
.vp-slider-dots { display: flex; align-items: center; gap: 2px; margin: 0 4px; }
.vp-slider-dots[hidden], .vp-slider-counter[hidden] { display: none; }
.vp-slider-dot {
  width: 44px; height: 44px; padding: 0; border: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.vp-slider-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--secondary-d-1); transition: width .2s ease, background-color .2s ease;
}
.vp-slider-dot.is-active::before { width: 22px; background: var(--secondary-d-2); }
.vp-slider-dot:hover::before { background: var(--secondary-d-2); }
.vp-slider-dot:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; border-radius: 999px; }
.vp-slider-counter {
  min-width: 72px; text-align: center; font-size: var(--text-s); font-weight: 600;
  color: var(--secondary-d-2); font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.vp-testimonial-slider.single .vp-slider-controls { display: none; }
/* Until JS enhances the slider, show only the first quote instead of a tall stack. */
.brxe-slider-nested.splide:not(.vp-testimonial-slider) .testimonial-slide { display: none; }
.brxe-slider-nested.splide:not(.vp-testimonial-slider) .testimonial-slide:first-child { display: flex; align-items: center; justify-content: center; text-align: center; }
.vp-slider-status {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
@media (prefers-reduced-motion: reduce) {
  .vp-testimonial-slider .testimonial-slide,
  .vp-testimonial-slider .testimonial-slide.is-active { transition: none; }
  .brxe-carousel .swiper-wrapper { transition: none; }
}

/* FAQ accordion */
.faq-accordion__title { cursor: pointer; }
.faq-accordion__item .faq-accordion__content-wrapper { display: none; }
.faq-accordion__item.brx-open .faq-accordion__content-wrapper { display: block; }
.faq-accordion__title .brxe-icon { transition: transform .2s ease; }
.faq-accordion__item.brx-open .faq-accordion__title .brxe-icon { transform: rotate(90deg); }
.faq-accordion__title:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: var(--radius-xs); }

/* Contact form */
.vp-form { display: flex; flex-direction: column; gap: var(--space-s); }
.vp-form .vp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); }
.vp-form .vp-field label, .vp-form .vp-label { display: block; font-weight: 600; margin-bottom: .35rem; }
.vp-form input[type="text"], .vp-form input[type="email"], .vp-form input[type="tel"], .vp-form textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--border-primary); background: var(--light);
  border-radius: var(--radius-s); padding: .72rem .9rem; font: inherit; color: var(--text-body);
}
.vp-form textarea { min-height: 8rem; resize: vertical; }
.vp-form input:focus, .vp-form textarea:focus { outline: 2px solid var(--primary-30); border-color: var(--primary); }
.vp-form .vp-choices { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; }
.vp-form .vp-choice, .vp-form .vp-check { display: flex; align-items: flex-start; gap: .45rem; font-weight: 400; cursor: pointer; }
.vp-form input[type="radio"], .vp-form input[type="checkbox"] { accent-color: var(--primary); width: 1.05rem; height: 1.05rem; margin-top: .3rem; flex: 0 0 auto; }
.vp-form .vp-required { color: var(--error); }
.vp-form .vp-consent { font-size: var(--text-xs); line-height: 1.5; }
.vp-form .vp-submit {
  align-self: flex-start; background: var(--primary); color: #fff; border: 0; border-radius: 999px;
  padding: .8rem 1.6rem; font: 700 var(--text-s)/1.2 "Red Hat Display", sans-serif; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.vp-form .vp-submit:hover { background: var(--primary-d-1); transform: translateY(-1px); }
.vp-form .vp-success {
  display: none; padding: var(--space-s) var(--space-m); border-radius: var(--radius-s);
  background: var(--secondary-20); border: 1px solid var(--secondary-40); color: var(--secondary-d-2);
  font-weight: 600;
}
.vp-form .vp-success.is-visible { display: block; }
@media (max-width: 600px) {
  .vp-form .vp-grid { grid-template-columns: 1fr; }
}


/* Content lists */
.brxe-post-content ul, .brxe-text ul, .brxe-text-basic ul, .vp-legal ul { list-style: disc; padding-left: 1.4rem; margin: 0 0 var(--space-s); }
.brxe-post-content ol, .brxe-text ol, .brxe-text-basic ol, .vp-legal ol { list-style: decimal; padding-left: 1.4rem; margin: 0 0 var(--space-s); }
.brxe-post-content li, .brxe-text li, .brxe-text-basic li, .vp-legal li { margin-bottom: .45rem; }

/* Legal pages rendered from WordPress article content */
.vp-legal { padding-top: var(--space-2xl); padding-bottom: var(--space-2xl); }
.vp-legal h1 { font-size: var(--text-3xl); line-height: 1.15; margin: 0 0 var(--space-m); }
.vp-legal h2, .vp-legal h3 { margin: var(--space-l) 0 var(--space-xs); }
.vp-legal p, .vp-legal li { font-size: var(--text-s); line-height: 1.7; }
.vp-legal p { margin: 0 0 var(--space-s); }
.vp-legal ol, .vp-legal ul { margin: 0 0 var(--space-s); padding-left: 1.35rem; }
.vp-legal ol { list-style: decimal; }
.vp-legal ul { list-style: disc; }
.vp-legal li { margin-bottom: .55rem; }
.vp-legal a { color: var(--primary); text-decoration: underline; }
.vp-legal strong { color: var(--text-title); }

/* Anchor offset below the sticky header */
#ernaehrung, #ernaehrungsberatung, #fastenkurse { scroll-margin-top: 6rem; }

/* Team grid: wide feature card for the nutrition provider */
.team-mitglied-box.team-mitglied-box--wide.brxe-block { width: 100%; flex-direction: row; align-items: center; justify-content: flex-start; column-gap: var(--space-l); }
.team-mitglied-box.team-mitglied-box--wide .team-mitglied-box__img.brxe-image { width: 14%; }
.team-mitglied-box.team-mitglied-box--wide .team-mitglied-box__content-wrapper { flex: 1 1 auto; text-align: left; align-items: flex-start; }
.team-mitglied-box.team-mitglied-box--wide .team-mitglied-box__btn { margin-left: auto; white-space: nowrap; align-self: center; }
@media (max-width: 767px) {
  .team-mitglied-box.team-mitglied-box--wide.brxe-block { flex-wrap: wrap; }
  .team-mitglied-box.team-mitglied-box--wide .team-mitglied-box__img.brxe-image { width: 30%; }
  .team-mitglied-box.team-mitglied-box--wide .team-mitglied-box__btn { margin-left: 0; flex-basis: 100%; justify-content: flex-start; }
}

/* Home service grid: wide feature card */
.home-leistung--wide { grid-column: 1 / -1; }
@media (max-width: 767px) { .home-leistung--wide { grid-column: auto; } }

/* Non-testimonial Splide sections (e.g. "Weitere Leistungen") as static grid */
.vp-static-grid .splide__track { overflow: visible; height: auto; }
.vp-static-grid .splide__list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); height: auto; transition: none; }
.vp-static-grid .splide__list > * { flex: none; width: auto; min-width: 0; }
@media (max-width: 767px) { .vp-static-grid .splide__list { grid-template-columns: 1fr; } }

/* ==========================================================================
   Button system
   48px default height (44px small), generous padding, clear states,
   WCAG-safe contrast. Fixes the 25px DaisyUI/Bricks button height.
   ========================================================================== */
.btn,
.bricks-button {
  box-sizing: border-box;
  gap: .5em;
  font-family: "Red Hat Display", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 48px;
  gap: .5em !important;
  padding: 12px 26px !important;
  border-radius: var(--radius-m);
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(33, 65, 98, .14);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn i { font-size: 1.05em; line-height: 1; }

.btn.secondary { background: var(--secondary-d-1); border-color: var(--secondary-d-2); color: #fff; }
.btn.secondary:hover { background: var(--secondary-d-2); border-color: var(--secondary-d-2); }

.btn:hover { box-shadow: 0 4px 10px rgba(33, 65, 98, .18); }
.btn:active { transform: translateY(1px) scale(.99); box-shadow: none; }
.btn:focus { outline: none; }
.btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.small { min-height: 44px; padding: 10px 20px !important; font-size: 15px; }
.btn.large { min-height: 54px; padding: 15px 32px !important; font-size: 17px; }

/* Comfortable spacing between stacked buttons in team cards */
.team-mitglied-box__content-wrapper > .brxe-div { row-gap: 10px; }

/* Team profile cards: stack on narrow screens so 44px buttons always fit */
@media (max-width: 478px) {
  body .team-mitglied-box--vertical.brxe-block {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  body .team-mitglied-box--vertical .team-mitglied-box__img.brxe-image {
    width: 45%;
    max-width: 180px;
  }
  body .team-mitglied-box--vertical .team-mitglied-box__content-wrapper--vertical.brxe-block {
    width: 100%;
    min-width: 0;
    align-items: center;
    text-align: center;
  }
  body .team-mitglied-box--vertical .team-mitglied-box__content-wrapper > .brxe-div {
    flex-direction: column !important;
    align-items: center !important;
    width: 100%;
  }
  body .team-mitglied-box--vertical .team-mitglied-box__title.brxe-heading { overflow-wrap: anywhere; }
}

/* Icon buttons: 44px touch targets (mobile only, so the desktop nav stays intact) */
@media (max-width: 767px) {
  .bricks-mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .brx-submenu-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
}
.team-mitglied-box__icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  transition: background-color .2s ease;
}
.team-mitglied-box__icon-link:hover { background: var(--secondary-20); }
.team-mitglied-box__icon-link:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Text-style buttons inside linked cards: keep the link look, improve legibility */
.home-leistung__more,
.team-mitglied-box__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}

/* Form submit follows the same system */
.vp-form .vp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 30px;
  border: 1px solid var(--secondary-d-2);
  border-radius: var(--radius-m);
  background: var(--secondary-d-1);
  color: #fff;
  font: 600 16px/1.2 "Red Hat Display", sans-serif;
  box-shadow: 0 2px 6px rgba(33, 65, 98, .14);
}
.vp-form .vp-submit:hover { background: var(--secondary-d-2); transform: translateY(-1px); }
.vp-form .vp-submit:active { transform: translateY(1px) scale(.99); }
.vp-form .vp-submit:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.vp-form .vp-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }

@media (max-width: 480px) {
  .btn { padding: 12px 22px !important; }
  .btn.small { padding: 10px 18px !important; }
  .btn.large { padding: 14px 26px !important; }
}

@media (max-width: 600px) {
  .vp-form .vp-submit { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .vp-form .vp-submit { transition: none; }
  .btn:hover, .btn:active,
  .vp-form .vp-submit:hover, .vp-form .vp-submit:active { transform: none; }
}

/* FAQ accordion: match the established Physiotherapie layout */
.faq-accordion__title.brxe-block {
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
}
.faq-accordion__title .brxe-icon { flex: 0 0 auto; font-size: 1em; }

/* Accessibility */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { left: 1rem; top: 1rem; width: auto; height: auto; padding: .6rem 1rem; background: #fff; color: var(--primary); z-index: 9999; border-radius: var(--radius-s); }

/* Gabi's vision quote */
.vp-vision {
  margin-top: var(--space-s);
  padding: var(--space-m) var(--space-l);
  background: var(--secondary-10);
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius-m);
}
.vp-vision p {
  margin: 0;
  font-family: "Red Hat Display", sans-serif;
  font-size: var(--text-l);
  line-height: 1.45;
  color: var(--secondary-d-2);
}
@media (max-width: 478px) {
  .vp-vision {
    padding: var(--space-s) var(--space-m);
  }
  .vp-vision p {
    font-size: var(--text-m);
  }
}

.vp-form .vp-form-note {
  margin: .65rem 0 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--text-body);
}
.vp-form .vp-form-note a { color: var(--primary); text-decoration: underline; }

/* Nutrition hero: portrait-friendly image on mobile */
.vp-nutrition-hero-picture { display: block; }
@media (max-width: 767px) {
  .vp-nutrition-hero { aspect-ratio: 4 / 3 !important; }
}
@media (min-width: 768px) {
  .vp-nutrition-hero { aspect-ratio: 5 / 2 !important; }
}
#anfrage { scroll-margin-top: 6rem; }

/* Form labels: readable contrast (theme default is too light) */
.vp-form label, .vp-form .vp-label { color: var(--text-body); }
.vp-form .vp-check { color: var(--text-body); }

/* Fasten warning: section gap only, no stacked extra top margin */
#fastenkurse > .container-narrower .vp-nutrition-note { margin-top: 0; }

@media (max-width: 767px) {
  .vp-betreut-single .team-mitglied-box.brxe-block { width: 100%; }
}

