/* Shared WPBakery page elements. Namespaced to avoid collisions with WPBakery and legacy theme CSS. */
.brp-page-hero,
.brp-text-image,
.brp-page-cta,
.brp-contact-section {
  box-sizing: border-box;
}

.brp-page-hero *,
.brp-text-image *,
.brp-page-cta *,
.brp-contact-section * {
  box-sizing: border-box;
}

.brp-page-hero {
  background: #f3f1ee;
  color: var(--ink, #222);
  padding: clamp(54px, 7vw, 104px) clamp(24px, 6vw, 96px);
}

.brp-page-hero--dark {
  background: var(--dark, #101822);
  color: #fff;
}

.brp-page-hero__inner,
.brp-text-image__inner,
.brp-page-cta__inner,
.brp-contact-section__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.brp-page-hero__inner,
.brp-text-image__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.brp-page-hero__copy h1,
.brp-text-image__copy h2,
.brp-page-cta h2,
.brp-contact-section__head h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.08;
}

.brp-page-hero__copy h1 {
  font-size: clamp(42px, 5.2vw, 74px);
}

.brp-text-image__copy h2,
.brp-page-cta h2,
.brp-contact-section__head h2 {
  font-size: clamp(32px, 3.5vw, 50px);
}

.brp-page-eyebrow {
  margin: 0 0 14px;
  color: var(--gold, #b37a1d);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brp-page-rule {
  display: block;
  width: 72px;
  height: 2px;
  margin: 22px 0 24px;
  background: var(--gold, #b37a1d);
}

.brp-page-hero__intro,
.brp-text-image__body,
.brp-contact-section__head > p:last-child {
  max-width: 720px;
  margin: 0;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.75;
}

.brp-page-hero__media,
.brp-text-image__media {
  min-width: 0;
}

.brp-page-hero__image,
.brp-text-image__image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  border-radius: 3px;
}

.brp-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.brp-page-actions--center {
  justify-content: center;
}

.brp-page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.brp-page-button:hover {
  transform: translateY(-1px);
}

.brp-page-button--gold {
  background: var(--gold, #b37a1d);
  color: #fff;
}

.brp-page-button--outline {
  border-color: currentColor;
  background: transparent;
  color: inherit;
}

.brp-text-image {
  padding: clamp(56px, 7vw, 100px) clamp(24px, 6vw, 96px);
  background: #fff;
  color: var(--ink, #222);
}

.brp-text-image--dark {
  background: var(--dark, #101822);
  color: #fff;
}

.brp-text-image--image-right .brp-text-image__media {
  order: 2;
}

.brp-text-image--image-right .brp-text-image__copy {
  order: 1;
}

.brp-text-image__body p {
  margin: 0 0 1em;
}

.brp-text-image__body p:last-child {
  margin-bottom: 0;
}

.brp-text-image__body ul,
.brp-text-image__body ol {
  padding-left: 1.25em;
}

.brp-page-cta {
  padding: clamp(54px, 7vw, 86px) clamp(24px, 6vw, 96px);
  text-align: center;
  background: var(--dark, #101822);
  color: #fff;
}

.brp-page-cta--light {
  background: #f3f1ee;
  color: var(--ink, #222);
}

.brp-page-cta__inner {
  max-width: 850px;
}

.brp-page-cta p {
  margin: 18px auto 0;
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
}

.brp-contact-section {
  padding: clamp(56px, 7vw, 96px) clamp(24px, 6vw, 96px);
  background: #f3f1ee;
  color: var(--ink, #222);
}

.brp-contact-section__inner {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(420px, 1.3fr);
  gap: clamp(42px, 7vw, 96px);
  align-items: start;
}

.brp-contact-section__form .contact-form {
  max-width: none;
  margin-top: 0;
}

.brp-contact-section .form-group label {
  color: var(--ink, #222);
}

@media (max-width: 860px) {
  .brp-page-hero__inner,
  .brp-text-image__inner,
  .brp-contact-section__inner {
    grid-template-columns: 1fr;
  }

  .brp-page-hero__media,
  .brp-text-image__media,
  .brp-text-image--image-right .brp-text-image__media,
  .brp-text-image--image-right .brp-text-image__copy {
    order: initial;
  }

  .brp-page-hero__image,
  .brp-text-image__image {
    max-height: 460px;
  }
}

@media (max-width: 600px) {
  .brp-page-hero,
  .brp-text-image,
  .brp-page-cta,
  .brp-contact-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .brp-page-actions {
    flex-direction: column;
  }

  .brp-page-button {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   Phase 32 – Leistungs-Unterseiten: mobile Breite und sichere Umbrüche
   -------------------------------------------------------------------------- */
.brp-page-leistungsdetail,
.brp-page-leistungsdetail .wpb-content-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.brp-page-leistungsdetail > .vc_row,
.brp-page-leistungsdetail .wpb-content-wrapper > .vc_row {
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.brp-page-leistungsdetail > .vc_row > .wpb_column > .vc_column-inner,
.brp-page-leistungsdetail .wpb-content-wrapper > .vc_row > .wpb_column > .vc_column-inner {
  padding-left: 0;
  padding-right: 0;
}

.brp-page-leistungsdetail .wpb_content_element {
  margin-bottom: 0;
}

.brp-page-leistungsdetail .brp-page-hero__copy,
.brp-page-leistungsdetail .brp-page-hero__media,
.brp-page-leistungsdetail .brp-text-image__copy,
.brp-page-leistungsdetail .brp-text-image__media {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 600px) {
  .brp-page-leistungsdetail .brp-page-hero,
  .brp-page-leistungsdetail .brp-text-image,
  .brp-page-leistungsdetail .brp-page-cta {
    width: 100%;
    max-width: 100%;
  }

  .brp-page-leistungsdetail .brp-page-hero__inner,
  .brp-page-leistungsdetail .brp-text-image__inner {
    width: 100%;
    max-width: 100%;
    gap: 30px;
  }

  .brp-page-leistungsdetail .brp-page-hero__copy h1 {
    max-width: 100%;
    font-size: clamp(32px, 9vw, 42px);
    line-height: 1.05;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .brp-page-leistungsdetail .brp-text-image__copy h2,
  .brp-page-leistungsdetail .brp-page-cta h2 {
    max-width: 100%;
    font-size: clamp(28px, 7.5vw, 38px);
    line-height: 1.08;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .brp-page-leistungsdetail .brp-page-hero__image,
  .brp-page-leistungsdetail .brp-text-image__image {
    width: 100%;
    max-width: 100%;
    max-height: none;
    aspect-ratio: 16 / 10;
    object-fit: cover;
  }
}
