/**
 * BSW Suite Frontend Styles
 * Version 1.1.1
 *
 * Aus den bisher inline ausgegebenen Produktions-Styles zusammengeführt.
 * Die Abschnittsreihenfolge bewahrt die bestehende CSS-Kaskade.
 */

/* bsw25-global-layout-styles */
:root {
  --wp--style--global--content-size: 1280px;
  --wp--style--global--wide-size: 1280px;
  --bsw-cream: #f8f4ee;
  --bsw-sand: #f2ede3;
  --bsw-warm-grey: #e5e0d8;
  --bsw-warm-grey-dark: #cfc7bd;
  --bsw-accent: #84583e;
  --bsw-accent-dark: #68422e;
  --bsw-accent-soft: #efe1d4;
  --bsw-text: #2b2723;
  --bsw-muted: #686b6d;
  --bsw-red: #e6342b;
  --bsw-red-dark: #bd251f;
  --bsw-red: var(--bsw-red-dark);
  --bsw-red-soft: #fce9e7;
  --bsw-sand-light: #faf8f3;
  --bsw-border: #d8d3c9;
  --bsw-charcoal: #35383b;
}

body {
  color: var(--bsw-text);
  font-size: clamp(1rem, 0.97rem + 0.14vw, 1.125rem);
  font-weight: 400;
  line-height: 1.65;
}

.wp-block-template-part .alignwide,
.wp-site-blocks > main .alignwide {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.wp-site-blocks > main h1,
.wp-site-blocks > main h2,
.wp-site-blocks > main h3 {
  color: var(--bsw-text);
  font-weight: 500;
  letter-spacing: -0.025em;
}

.wp-site-blocks > main h1:not(.property-title, .archive-title) {
  font-size: clamp(2.5rem, 4vw, 4rem) !important;
  line-height: 1.04;
}

.wp-site-blocks > main h2:not(.property-subtitle) {
  font-size: clamp(1.25rem, 2vw, 2rem) !important;
  line-height: 1.13;
}

.wp-site-blocks > main h3,
.wp-site-blocks > main h3.has-medium-font-size {
  font-size: clamp(1.25rem, 1.8vw, 1.45rem) !important;
  line-height: 1.28;
}

header.wp-block-template-part {
  border-bottom: 1px solid var(--bsw-warm-grey);
  background: rgba(255, 255, 255, 0.96);
}

header.wp-block-template-part .wp-block-navigation-item__content {
  color: var(--bsw-text);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-underline-offset: 0.3em;
}

header.wp-block-template-part .wp-block-navigation-item__content:hover,
header.wp-block-template-part .wp-block-navigation-item__content:focus {
  color: var(--bsw-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

header.wp-block-template-part .wp-block-navigation__submenu-container {
  min-width: 260px;
  padding: 0.55rem !important;
  background: var(--bsw-cream) !important;
  border: 1px solid var(--bsw-warm-grey-dark) !important;
  border-radius: 10px;
  box-shadow: 0 14px 36px rgba(52, 41, 32, 0.12);
}

header.wp-block-template-part
  .wp-block-navigation__submenu-container
  .wp-block-navigation-item__content {
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
}

header.wp-block-template-part
  .wp-block-navigation__submenu-container
  .wp-block-navigation-item__content:hover {
  background: var(--bsw-accent-soft);
  text-decoration: none;
}

.bsw-site-footer {
  font-size: 0.94rem;
}

.bsw-site-footer a {
  color: inherit;
  text-underline-offset: 0.22em;
}

.bsw-site-footer a:hover,
.bsw-site-footer a:focus {
  color: var(--bsw-accent);
}

.bsw-footer-links,
.bsw-footer-contact {
  line-height: 1.9;
}

.bsw-page-hero {
  background: linear-gradient(135deg, #f8f4ee 0%, #efe4d8 100%) !important;
}

.bsw-page-hero h1 {
  max-width: 18ch;
  margin-top: 0.7rem;
}

.bsw-page-hero .has-large-font-size {
  max-width: 58ch;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem) !important;
  line-height: 1.55;
  color: #4f4841;
}

.bsw-eyebrow {
  margin-bottom: 0;
  color: var(--bsw-accent);
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bsw-content-section > p.alignwide {
  max-width: 860px !important;
  margin-left: auto;
  margin-right: auto;
  color: var(--bsw-muted);
  font-size: clamp(1.05rem, 1.3vw, 1.18rem) !important;
  line-height: 1.7;
}

.bsw-placeholder-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(59, 47, 38, 0.13);
}

.bsw-page-hero .bsw-placeholder-image img {
  aspect-ratio: 4 / 3;
}

.bsw-card-grid,
.bsw-process-grid {
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.bsw-card,
.bsw-process-card {
  padding: clamp(1.6rem, 3vw, 2.35rem);
  border: 1px solid #ded6cd;
  border-radius: 16px;
  background: #fcfaf7;
  box-shadow: 0 8px 28px rgba(66, 51, 40, 0.065);
}

.bsw-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.bsw-card:hover {
  transform: translateY(-3px);
  border-color: #cbb8a7;
  box-shadow: 0 16px 38px rgba(66, 51, 40, 0.11);
}

.bsw-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.25rem;
  color: var(--bsw-accent);
  background: var(--bsw-accent-soft);
  border-radius: 50%;
}

.bsw-card-icon .bsw-lucide {
  width: 1.55rem;
  height: 1.55rem;
  stroke-width: 1.8;
}

.bsw-card h3 {
  margin-top: 0;
}

.bsw-card p {
  color: var(--bsw-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.bsw-card-link {
  margin-top: auto;
  padding-top: 0.75rem;
  font-weight: 700;
}

.bsw-card-link a {
  color: var(--bsw-accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

.bsw-process-section {
  background: #eee6dc !important;
}

.bsw-process-card {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
}

.bsw-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  margin: 0 0 1.2rem;
  color: #fff;
  background: var(--bsw-accent);
  border-radius: 50%;
  font-size: 0.76rem !important;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bsw-cta-band {
  background: var(--bsw-text) !important;
}

.bsw-cta-band h2 {
  color: #fff !important;
}

.bsw-cta-band .wp-block-button__link,
.bsw-page-hero .wp-block-button__link {
  padding: 0.9em 1.35em;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.bsw-page-hero .wp-block-button__link {
  color: #fff !important;
  background: var(--bsw-accent) !important;
}

.bsw-page-hero .wp-block-button__link:hover,
.bsw-page-hero .wp-block-button__link:focus {
  background: var(--bsw-accent-dark) !important;
  transform: translateY(-1px);
}

.bsw-cta-band .wp-block-button__link:hover,
.bsw-cta-band .wp-block-button__link:focus {
  color: #fff !important;
  background: var(--bsw-accent) !important;
}

.wpcf7 {
  max-width: 960px;
}

.wpcf7 form {
  padding: 1.5rem;
  background: var(--bsw-sand-light);
  border: 1px solid #ded6cd;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(66, 51, 40, 0.07);
}

.wpcf7 .bsw-form-intro {
  margin-bottom: var(--wp--preset--spacing--40);
}

.wpcf7 .bsw-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.wpcf7 .bsw-form-field,
.wpcf7 .bsw-form-field label {
  display: block;
}

.wpcf7 .bsw-form-field--full {
  grid-column: 1 / -1;
}

.wpcf7 .bsw-form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
  box-sizing: border-box;
  width: 100%;
  padding: 0.9rem 1rem;
  color: var(--bsw-text);
  background: #fff;
  border: 1px solid #b8aea4;
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
}

.wpcf7 textarea {
  min-height: 180px;
  resize: vertical;
}

.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: 3px solid rgba(132, 88, 62, 0.18);
  outline-offset: 1px;
  border-color: var(--bsw-accent);
}

.wpcf7 .bsw-form-consent {
  margin: 1.5rem 0;
  padding: 1rem;
  background: #fff;
  border-left: 4px solid var(--bsw-accent);
  border-radius: 0px;
  font-size: 0.9rem;
}

.wpcf7 .wpcf7-list-item {
  margin: 0;
}

.wpcf7 input[type="submit"] {
  min-width: 160px;
  padding: 0.9rem 1.4rem;
  color: #fff;
  background: var(--bsw-accent);
  border: 1px solid var(--bsw-accent);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 input[type="submit"]:focus {
  color: #fff;
  background: var(--bsw-accent-dark);
  border-color: var(--bsw-accent-dark);
}

.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 0.35rem;
  font-size: 0.875rem;
}

.wpcf7 .wpcf7-response-output {
  margin: 1.5rem 0 0;
  padding: 1rem;
  border-radius: 8px;
}

.home .wp-block-post-title {
  display: none;
}

@media (max-width: 781px) {
  body {
    font-size: 1rem;
  }

  .bsw-page-hero {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .bsw-site-footer .wp-block-columns {
    gap: var(--wp--preset--spacing--40);
  }

  .bsw-card,
  .bsw-process-card {
    padding: 1.5rem;
  }

  .wpcf7 .bsw-form-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsw-card,
  .bsw-page-hero .wp-block-button__link {
    transition: none;
  }

  .bsw-card:hover,
  .bsw-page-hero .wp-block-button__link:hover {
    transform: none;
  }
}

/* Lesbarkeit und deutsche Silbentrennung */
.wp-site-blocks h1,
.wp-site-blocks h2,
.wp-site-blocks h3,
.wp-site-blocks h4,
.wp-site-blocks p,
.wp-site-blocks li,
.wp-site-blocks summary,
.wp-site-blocks th,
.wp-site-blocks td,
.wp-site-blocks figcaption {
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: auto 5 2;
  overflow-wrap: break-word;
}

.wp-site-blocks code,
.wp-site-blocks pre,
.wp-site-blocks a[href^="mailto:"],
.wp-site-blocks a[href^="tel:"] {
  -webkit-hyphens: none;
  hyphens: none;
}

.bsw-home-hero,
.bsw-home-routing,
.bsw-home-projects,
.bsw-problem-section,
.bsw-detail-section,
.bsw-faq-section,
.bsw-qng-section {
  padding-top: clamp(4.5rem, 7vw, 7rem);
  padding-bottom: clamp(4.5rem, 7vw, 7rem);
}

.bsw-home-hero {
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(132, 88, 62, 0.12),
      transparent 28rem
    ),
    linear-gradient(135deg, #f8f4ee 0%, #efe4d8 100%) !important;
}

.bsw-home-routing > .has-medium-font-size,
.bsw-qng-section > .has-medium-font-size {
  max-width: 880px !important;
  color: var(--bsw-muted);
}

.bsw-problem-section {
  background: #f4eee7;
  border-top: 1px solid #e1d7cc;
  border-bottom: 1px solid #e1d7cc;
}

.bsw-problem-section .wp-block-columns {
  gap: clamp(2rem, 6vw, 6rem);
}

.bsw-problem-section .has-medium-font-size {
  color: #514941;
  font-size: clamp(1.08rem, 1.4vw, 1.24rem) !important;
  line-height: 1.75;
}

.bsw-detail-section {
  background: #fff;
}

.bsw-detail-grid {
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.bsw-detail-card {
  padding: clamp(1.6rem, 3vw, 2.5rem);
  background: #f9f6f1;
  border: 1px solid #e0d8cf;
  border-radius: 16px;
}

.bsw-detail-card h3 {
  margin-top: 0;
}

.bsw-detail-card p,
.bsw-detail-card li {
  color: var(--bsw-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.bsw-detail-card ul {
  padding-left: 1.2rem;
}

.bsw-qng-section {
  background:
    linear-gradient(
      120deg,
      rgba(255, 255, 255, 0.68),
      rgba(255, 255, 255, 0.18)
    ),
    repeating-linear-gradient(
      135deg,
      #ede4da 0,
      #ede4da 1px,
      #f4eee7 1px,
      #f4eee7 14px
    );
  border-top: 1px solid #ded3c8;
  border-bottom: 1px solid #ded3c8;
}

.bsw-qng-section .bsw-card {
  background: rgba(255, 255, 255, 0.82);
}

.bsw-comparison-scroll {
  margin: 2rem auto 3rem;
  overflow-x: auto;
  border: 1px solid #d8cec4;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(66, 51, 40, 0.07);
}

.bsw-comparison-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  line-height: 1.45;
}

.bsw-comparison-table th,
.bsw-comparison-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e1d8cf;
}

.bsw-comparison-table thead th {
  color: #fff;
  background: var(--bsw-text);
  font-weight: 700;
}

.bsw-comparison-table tbody th {
  width: 15%;
  color: var(--bsw-text);
  background: #f7f2ec;
  font-weight: 700;
}

table.bsw-comparison-table .bsw-rooms {
  font-weight: normal;
  font-style: normal;
}

.bsw-unit-visual-cell {
  background: #f7f2ec;
}

.bsw-qng-benefits {
  gap: clamp(1.5rem, 4vw, 4rem);
}

.bsw-qng-benefits > .wp-block-column {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(255, 255, 255, 0.68);
  border-radius: 14px;
}

.bsw-funding-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.78);
  border-left: 4px solid var(--bsw-accent);
  border-radius: 8px;
  font-size: 0.9rem;
}

.bsw-faq-section {
  background: #fbf9f6;
  border-top: 1px solid #e5ddd4;
}

.bsw-faq-list {
  max-width: 960px !important;
  margin-top: 2.25rem;
}

.bsw-faq-item {
  margin: 0 0 0.8rem;
  padding: 0;
  background: #fff;
  border: 1px solid #ddd4ca;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(66, 51, 40, 0.045);
  overflow: hidden;
}

.bsw-faq-item summary {
  position: relative;
  padding: 1.2rem 3.5rem 1.2rem 1.35rem;
  color: var(--bsw-text);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.bsw-faq-item summary::-webkit-details-marker {
  display: none;
}

.bsw-faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1.35rem;
  width: 1.8rem;
  height: 1.8rem;
  color: var(--bsw-accent);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.65rem;
  text-align: center;
  transform: translateY(-50%);
}

.bsw-faq-item[open] summary {
  background: var(--bsw-accent-soft);
}

.bsw-faq-item[open] summary::after {
  content: "–";
}

.bsw-faq-item > p {
  margin: 0;
  padding: 1.25rem 1.35rem 0.5rem 1.4rem;
  color: var(--bsw-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.bsw-faq-item > p + p {
  padding-top: 0;
}

.bsw-faq-item > p:last-of-type {
  padding-bottom: 1.4rem;
}

.bsw-faq-item ol {
  margin-top: 0;
}

.bsw-faq-item li {
  font-size: 0.98rem;
  padding-right: 1.4rem;
}

.bsw-cta-band.bsw-textured-cta {
  background-color: var(--bsw-text) !important;
  background-image:
    radial-gradient(
      circle at 18% 28%,
      rgba(255, 255, 255, 0.08) 0 1px,
      transparent 1.5px
    ),
    radial-gradient(
      circle at 74% 68%,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1.5px
    ),
    linear-gradient(120deg, rgba(132, 88, 62, 0.32), transparent 48%) !important;
  background-size:
    18px 18px,
    26px 26px,
    auto !important;
}

.bsw-textured-cta > .wp-block-group {
  gap: 1.5rem 3rem;
}

.home .bsw-process-grid {
  flex-wrap: wrap !important;
}

.home .bsw-process-card {
  min-width: 180px;
  flex: 1 1 190px !important;
}

.home .bsw-process-card h3 {
  font-size: 1.12rem !important;
}

@media (max-width: 781px) {
  .bsw-home-hero,
  .bsw-home-routing,
  .bsw-home-projects,
  .bsw-problem-section,
  .bsw-detail-section,
  .bsw-faq-section,
  .bsw-qng-section {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .bsw-problem-section .wp-block-columns {
    gap: 1.5rem;
  }

  .bsw-comparison-scroll {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
  }

  .bsw-faq-item summary {
    font-size: 1rem;
  }
}

.bsw-detail-card > .bsw-placeholder-image {
  margin-bottom: 1.5rem;
}
.bsw-detail-card > .bsw-placeholder-image img {
  aspect-ratio: 4 / 3;
  max-height: 340px;
  box-shadow: none;
}

/* bsw25-brand-refresh */
body {
  background: var(--bsw-sand-light);
  color: var(--bsw-charcoal);
}
a {
  text-decoration-color: rgba(230, 52, 43, 0.38);
}
main a:not(.wp-block-button__link):not(.bsw-card-link a) {
  color: var(--bsw-red-dark);
}
.bsw-eyebrow {
  color: var(--bsw-red-dark) !important;
}
.bsw-page-hero {
  background:
    radial-gradient(
      circle at 86% 18%,
      rgba(230, 52, 43, 0.1) 0 7rem,
      transparent 7.1rem
    ),
    linear-gradient(
      135deg,
      #ffffff 0%,
      var(--bsw-sand-light) 58%,
      var(--bsw-sand) 100%
    ) !important;
  border-bottom-color: var(--bsw-border) !important;
}
.bsw-home-hero {
  background:
    radial-gradient(
      circle at 82% 18%,
      rgba(230, 52, 43, 0.12) 0 8rem,
      transparent 8.1rem
    ),
    linear-gradient(135deg, #ffffff 0%, #faf8f3 56%, #eee9df 100%) !important;
}
.bsw-card,
.bsw-detail-card,
.bsw-process-card,
.bsw-person-card,
.bsw-contact-aside,
.bsw-form-card,
.bsw-legal-page {
  background: #fff !important;
  border-color: var(--bsw-border) !important;
}
.bsw-card-icon {
  background: var(--bsw-red-soft) !important;
  color: var(--bsw-red-dark) !important;
}
.bsw-step-number {
  background: var(--bsw-red) !important;
  color: #fff !important;
}
.bsw-process-section,
.bsw-qng-section,
.bsw-problem-section {
  background: var(--bsw-sand) !important;
}
.bsw-card-link a,
.bsw-faq-item summary::after {
  color: var(--bsw-red-dark) !important;
}
.bsw-faq-item {
  border-color: var(--bsw-border) !important;
  background: #fff !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
input.wpcf7-submit {
  background: var(--bsw-red) !important;
  border-color: var(--bsw-red) !important;
  color: #fff !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
input.wpcf7-submit:hover {
  background: var(--bsw-red-dark) !important;
  border-color: var(--bsw-red-dark) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--bsw-charcoal) !important;
  border-color: var(--bsw-red) !important;
  background: transparent !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  color: #fff !important;
  background: var(--bsw-red) !important;
}

/* Die bisherigen knappen Kanten an CTA- und Prozessbereichen werden bewusst aufgelöst. */
.bsw-content-section,
.bsw-problem-section,
.bsw-process-section,
.bsw-qng-section,
.bsw-form-section {
  padding-top: clamp(3.75rem, 6vw, 5.5rem) !important;
  padding-bottom: clamp(3.75rem, 6vw, 5.5rem) !important;
  margin-block-start: 0 !important;
}
.bsw-process-section > .wp-block-heading:first-child,
.bsw-content-section > .wp-block-heading:first-child,
.bsw-form-section > .wp-block-heading:first-child {
  margin-top: 0 !important;
}
.bsw-process-grid {
  gap: clamp(1rem, 2vw, 1.5rem) !important;
  margin-top: 2rem !important;
}
.bsw-process-card {
  padding: clamp(1.75rem, 3vw, 2.35rem) !important;
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.bsw-cta-band {
  background-color: var(--bsw-charcoal) !important;
  background-image:
    radial-gradient(
      circle at 1px 1px,
      rgba(230, 52, 43, 0.32) 1px,
      transparent 1.2px
    ),
    linear-gradient(120deg, rgba(181, 175, 162, 0.12), transparent 58%) !important;
  background-size:
    22px 22px,
    auto !important;
  padding-top: clamp(3.5rem, 6vw, 5rem) !important;
  padding-bottom: clamp(3.5rem, 6vw, 5rem) !important;
  margin-block-start: 0 !important;
}
.bsw-cta-band > .wp-block-group {
  gap: 1.5rem 2.5rem !important;
  align-items: center !important;
}
.bsw-cta-band h2 {
  margin: 0 !important;
  line-height: 1.16;
}
.bsw-cta-band .wp-block-buttons {
  margin: 0 !important;
}
.bsw-cta-band .wp-block-button__link {
  background: var(--bsw-sand) !important;
  border-color: var(--bsw-sand) !important;
  color: var(--bsw-charcoal) !important;
}
.bsw-cta-band .wp-block-button__link:hover {
  background: #fff !important;
  border-color: #fff !important;
  color: var(--bsw-charcoal) !important;
}

.bsw-form-section {
  background: #fff !important;
}
.bsw-form-card,
.bsw-contact-aside,
.bsw-legal-page {
  border: 1px solid var(--bsw-border);
  border-radius: 1rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}
.bsw-form-card .wpcf7 {
  margin-top: 0;
}
.bsw-contact-aside .wp-block-image img {
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 1px solid var(--bsw-sand);
  width: 175px;
  height: 175px;
}
.bsw-contact-aside h3 {
  margin-top: 1.5rem;
}
.bsw-contact-quicklinks {
  border-top: 1px solid var(--bsw-border);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}
.bsw-legal-page {
  max-width: 920px !important;
}
.bsw-legal-page h2 {
  margin-top: 3rem;
}
.bsw-legal-page h3 {
  margin-top: 2.25rem;
}
.bsw-legal-page h4 {
  margin-top: 1.75rem;
}
.bsw-reference-grid img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 0.8rem;
}
.bsw-reference-grid figure {
  margin-bottom: 0;
}
.bsw-reference-grid figcaption {
  color: var(--bsw-muted);
  font-size: 0.92rem;
}
.bsw-selling-docs {
  background: var(--bsw-sand) !important;
}

/* Twenty Twenty-Five: klareres mobiles Vollbildmenü. */
@media (max-width: 1050px) {
  header .wp-block-navigation__responsive-container-open {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 2.85rem;
    height: 2.85rem;
    border: 1px solid var(--bsw-red);
    border-radius: 999px;
    color: var(--bsw-red-dark);
    background: #fff;
  }
  header .wp-block-navigation__responsive-container.is-menu-open {
    background: var(--bsw-sand-light) !important;
    color: var(--bsw-charcoal) !important;
    padding: 1.25rem clamp(1.25rem, 6vw, 2rem) 2rem !important;
  }
  header .wp-block-navigation__responsive-dialog,
  header .wp-block-navigation__responsive-container-content {
    width: 100%;
  }
  header .wp-block-navigation__responsive-container-close {
    top: 0.25rem;
    right: 0;
    width: 2.85rem;
    height: 2.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bsw-red);
    border-radius: 999px;
    color: var(--bsw-red-dark);
  }
  header .is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 4.5rem !important;
  }
  header .is-menu-open .wp-block-navigation__container {
    align-items: stretch !important;
    gap: 0 !important;
    width: 100%;
  }
  header .is-menu-open .wp-block-navigation-item {
    width: 100%;
    align-items: stretch !important;
  }
  header .is-menu-open .wp-block-navigation-item__content {
    display: block;
    width: 100%;
    padding: 0.9rem 0.1rem !important;
    border-bottom: 1px solid var(--bsw-border);
    font-size: clamp(1.15rem, 5vw, 1.45rem) !important;
    font-weight: 650;
  }
  header .is-menu-open .wp-block-navigation__submenu-container {
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    padding: 0.2rem 0 0.75rem 1rem !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }
  header
    .is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content {
    padding: 0.55rem 0.1rem !important;
    border-bottom: 0;
    font-size: 1rem !important;
    font-weight: 500;
  }
  .bsw-process-card {
    min-height: 0;
  }
  .bsw-cta-band > .wp-block-group {
    align-items: flex-start !important;
  }
}

.bsw-back-to-top {
  position: fixed;
  right: clamp(1rem, 2.2vw, 2rem);
  bottom: clamp(1rem, 2.2vw, 2rem);
  z-index: 80;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--bsw-red);
  color: #fff;
  box-shadow: 0 12px 28px rgba(53, 56, 59, 0.24);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0.75rem);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
}
.bsw-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.bsw-back-to-top:hover {
  background: var(--bsw-red-dark);
}
.bsw-back-to-top:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}

/* bsw25-brand-refresh-final */
.bsw-cta-band.bsw-textured-cta {
  background-color: var(--bsw-charcoal) !important;
}
main h1,
main h2,
main h3,
main h4,
main h5,
main h6,
.bsw-page-hero .wp-block-heading {
  color: var(--bsw-charcoal) !important;
}
.bsw-page-hero .has-large-font-size,
.bsw-content-section > .has-medium-font-size,
.bsw-problem-section .has-medium-font-size {
  color: #55595b !important;
}
.bsw-faq-item[open] summary {
  background: var(--bsw-red-soft) !important;
}
/* bsw25-typography-header-card-refinement */
/* Ruhigere Überschriften: kleiner, aber mit sichtbar mehr Luft zwischen den Zeilen. */
main h1 {
  font-size: clamp(2.35rem, 3.9vw, 3.25rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.018em !important;
}
main h2 {
  font-size: clamp(1.9rem, 3vw, 2.65rem) !important;
  line-height: 1.18 !important;
  letter-spacing: -0.012em !important;
}
main h3 {
  line-height: 1.28 !important;
  letter-spacing: -0.006em !important;
}
.bsw-page-hero {
  padding-top: clamp(3rem, 5vw, 4.75rem) !important;
  padding-bottom: clamp(3rem, 5vw, 4.75rem) !important;
}
.bsw-page-hero > .wp-block-columns {
  gap: clamp(2rem, 4vw, 4rem) !important;
}
.bsw-page-hero .bsw-eyebrow {
  margin-top: 0 !important;
}
.bsw-page-hero .wp-block-buttons {
  margin-bottom: 0 !important;
}

/* Der Desktop-Header bleibt einzeilig und wird deutlich kompakter. */
header .wp-block-group.alignwide {
  padding-top: 0.9rem !important;
  padding-bottom: 0.9rem !important;
  flex-wrap: nowrap !important;
}
header .custom-logo {
  width: 96px !important;
  height: 96px !important;
  object-fit: contain;
}
header .wp-block-navigation {
  flex-shrink: 0;
}
header .wp-block-navigation__container {
  flex-wrap: nowrap !important;
  column-gap: clamp(0.75rem, 1.25vw, 1.15rem) !important;
  row-gap: 0 !important;
}
@media (min-width: 1051px) and (max-width: 1280px) {
  header .wp-block-navigation-item__content {
    font-size: 0.88rem !important;
  }
  header .wp-block-navigation__container {
    column-gap: 0.7rem !important;
  }
  header .custom-logo {
    width: 88px !important;
    height: 88px !important;
  }
}

/* Fünf Schritte: 3 Karten oben, 2 Karten darunter und zentriert. */
.bsw-process-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(1.15rem, 2vw, 1.65rem) !important;
}
.bsw-process-grid > .bsw-process-card {
  grid-column: span 2;
  width: auto !important;
  margin: 0 !important;
}
.bsw-process-grid > .bsw-process-card:nth-last-child(2):nth-child(4) {
  grid-column: 2 / span 2;
}
.bsw-process-grid > .bsw-process-card:last-child:nth-child(5) {
  grid-column: 4 / span 2;
}
.bsw-process-card {
  min-height: 17rem !important;
  justify-content: flex-start !important;
  padding: clamp(1.75rem, 2.5vw, 2.25rem) !important;
  border-radius: 1rem !important;
  border: 1px solid var(--bsw-border) !important;
  box-shadow: 0 10px 28px rgba(53, 56, 59, 0.06);
}
.bsw-process-card .bsw-step-number {
  margin: 0 0 2rem !important;
}
.bsw-process-card h3 {
  margin: 0 !important;
  font-size: clamp(1.25rem, 1.8vw, 1.45rem) !important;
}
.bsw-process-card > p:last-child {
  margin: 1.15rem 0 0 !important;
}
.bsw-card {
  border-radius: 1rem !important;
  box-shadow: 0 10px 28px rgba(53, 56, 59, 0.055);
}
.bsw-card h3 {
  margin-top: 1.35rem !important;
}

@media (max-width: 1050px) {
  header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
  header .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }
  .bsw-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .bsw-process-grid > .bsw-process-card,
  .bsw-process-grid > .bsw-process-card:nth-last-child(2):nth-child(4),
  .bsw-process-grid > .bsw-process-card:last-child:nth-child(5) {
    grid-column: auto;
  }
  .bsw-process-grid > .bsw-process-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 0.6rem) !important;
    justify-self: center;
  }
}
@media (max-width: 700px) {
  main h1 {
    font-size: clamp(2.15rem, 9.5vw, 2.75rem) !important;
    line-height: 1.13 !important;
  }
  main h2 {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem) !important;
    line-height: 1.2 !important;
  }
  .bsw-page-hero {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
  }
  .bsw-process-grid {
    grid-template-columns: 1fr !important;
  }
  .bsw-process-grid > .bsw-process-card,
  .bsw-process-grid > .bsw-process-card:last-child:nth-child(odd) {
    grid-column: 1 !important;
    width: 100% !important;
  }
  .bsw-process-card {
    min-height: 0 !important;
  }
}

/* bsw25-h1-size-final */
body main .bsw-page-hero h1.wp-block-heading,
body main h1.wp-block-heading {
  font-size: clamp(2.35rem, 3.9vw, 3.25rem) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.018em !important;
}
@media (max-width: 700px) {
  body main .bsw-page-hero h1.wp-block-heading,
  body main h1.wp-block-heading {
    font-size: clamp(2.15rem, 9.5vw, 2.75rem) !important;
    line-height: 1.13 !important;
  }
}

/* bsw25-compact-cards-contact-mobile */
/* Sekundäre Überschriften und Prozesskarten kompakter. */
body main h2.wp-block-heading,
body main .wp-block-heading[aria-level="2"] {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem) !important;
  line-height: 1.22 !important;
}
.bsw-process-card {
  min-height: 0 !important;
}
.bsw-process-card h3.wp-block-heading {
  font-size: 1.2rem !important;
  line-height: 1.3 !important;
}

/* Große Karten mit halbiertem Radius. */
.bsw-card,
.bsw-detail-card,
.bsw-process-card,
.bsw-person-card,
.bsw-form-card,
.bsw-contact-aside,
.bsw-legal-page,
.bsw-faq-item,
.wpcf7 form,
.bsw-reference-grid img {
  border-radius: 0.5rem !important;
}
.bsw-placeholder-image img {
  border-radius: 0.5rem !important;
}

/* Kontakt: nur das eigentliche Formular bleibt als klar gerahmte Fläche bestehen. */
.bsw-form-card {
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.bsw-contact-aside {
  padding: 1.5rem !important;
  border: 0 !important;
  box-shadow: none !important;
  background: var(--bsw-sand-light) !important;
}
.bsw-form-card .wpcf7 {
  margin-top: 0;
}
.bsw-form-card .wpcf7 form {
  border-radius: 0.5rem !important;
}

@media (max-width: 1050px) {
  /* Wortmarke zwischen Bildmarke und Menüknopf. */
  header .wp-block-group.alignwide {
    position: relative;
  }
  header .wp-block-group.alignwide::after {
    content: "BEATE SCHIMEK\A WOHNBAU";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    white-space: pre;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.25;
    font-weight: 750;
    letter-spacing: 0.09em;
    color: var(--bsw-charcoal);
    pointer-events: none;
  }

  /* Sämtliche Desktop-Karten- und Dropdownstile im Overlay zurücksetzen. */
  header .wp-block-navigation__responsive-container.is-menu-open {
    overflow-y: auto !important;
    background: var(--bsw-sand-light) !important;
    color: var(--bsw-charcoal) !important;
    padding: 1rem clamp(1.15rem, 5vw, 2rem) 2rem !important;
  }
  header .is-menu-open .wp-block-navigation__responsive-close,
  header .is-menu-open .wp-block-navigation__responsive-dialog,
  header .is-menu-open .wp-block-navigation__responsive-container-content {
    width: 100% !important;
    max-width: none !important;
  }
  header .is-menu-open .wp-block-navigation__responsive-container-content {
    padding-top: 4.25rem !important;
  }
  header .is-menu-open .wp-block-navigation__container {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    width: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  header
    .is-menu-open
    .wp-block-navigation__container
    > .wp-block-navigation-item {
    width: 100% !important;
    margin: 0 !important;
    padding: 0.3rem 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--bsw-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  header
    .is-menu-open
    .wp-block-navigation__container
    > .wp-block-navigation-item.has-child {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 2.75rem !important;
    align-items: center !important;
  }
  header
    .is-menu-open
    .wp-block-navigation__container
    > .wp-block-navigation-item
    > .wp-block-navigation-item__content {
    display: block !important;
    width: auto !important;
    padding: 0.8rem 0.15rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--bsw-charcoal) !important;
    font-size: 1.12rem !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
  }
  header .is-menu-open .wp-block-navigation__submenu-icon {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.75rem !important;
    height: 2.75rem !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--bsw-red-dark) !important;
  }
  header .is-menu-open .wp-block-navigation__submenu-icon svg {
    width: 1rem !important;
    height: 1rem !important;
    transition: transform 0.2s ease;
  }
  header
    .is-menu-open
    .wp-block-navigation__submenu-icon[aria-expanded="true"]
    svg {
    transform: rotate(180deg);
  }
  header .is-menu-open .wp-block-navigation__submenu-container {
    grid-column: 1 / -1 !important;
    position: static !important;
    display: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0.1rem 0 0.65rem 0.85rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  header
    .is-menu-open
    .wp-block-navigation__submenu-icon[aria-expanded="true"]
    + .wp-block-navigation__submenu-container {
    display: flex !important;
  }
  header
    .is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  header
    .is-menu-open
    .wp-block-navigation__submenu-container
    .wp-block-navigation-item__content {
    display: block !important;
    width: 100% !important;
    padding: 0.58rem 0.35rem 0.58rem 0.8rem !important;
    border: 0 !important;
    border-left: 2px solid var(--bsw-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--bsw-charcoal) !important;
    font-size: 0.98rem !important;
    line-height: 1.35 !important;
    font-weight: 500 !important;
    text-decoration: none !important;
  }
  header
    .is-menu-open
    .wp-block-navigation__submenu-container
    .current-menu-item
    > .wp-block-navigation-item__content,
  header
    .is-menu-open
    .wp-block-navigation__submenu-container
    .current-menu-ancestor
    > .wp-block-navigation-item__content {
    border-left-color: var(--bsw-red) !important;
    color: var(--bsw-red-dark) !important;
  }
  header .wp-block-navigation__responsive-container-close {
    background: #fff !important;
    box-shadow: none !important;
  }
}
@media (max-width: 480px) {
  header .wp-block-group.alignwide::after {
    font-size: 0.67rem;
    letter-spacing: 0.065em;
  }
}

/* bsw25-form-rhythm-and-immomakler-header-parity */
/* CF7: Der Grid-Abstand steuert den Rhythmus, nicht zusaetzliche Absatzraender. */
.wpcf7 .bsw-form-grid {
  row-gap: 1.25rem !important;
}
.wpcf7 .bsw-form-field {
  margin-block: 0 !important;
}
.wpcf7 .bsw-form-intro {
  margin-bottom: 1.5rem !important;
}
.wpcf7 .bsw-form-consent {
  margin: 1.25rem 0 !important;
}
.wpcf7 .bsw-form-actions {
  margin: 1rem 0 0.5rem !important;
}
.wpcf7 .bsw-form-required {
  margin: 0.5rem 0 0 !important;
}

/* ImmoMakler: Layout-Support des dynamisch gerenderten Block-Headers nachbilden. */
body.bsw25-immomakler-layout
  header
  .wp-block-group.alignwide.is-content-justification-space-between {
  justify-content: space-between !important;
}
body.bsw25-immomakler-layout
  header
  .wp-block-group.alignwide
  > .wp-block-group.is-content-justification-right {
  justify-content: flex-end !important;
  margin-left: auto !important;
}
body.bsw25-immomakler-layout header .wp-block-navigation {
  font-size: 18px;
  line-height: 1.65;
}

/* bsw25-special-page-styles */
.bsw-project-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: #fff;
}
.bsw-project-image-hero img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.bsw-project-floorplan {
  padding: clamp(1rem, 3vw, 2rem);
  background: #fff;
  border: 1px solid var(--bsw-border);
  border-radius: 8px;
}
.bsw-project-floorplan img {
  object-fit: contain;
}
.bsw-project-units .wp-block-buttons {
  margin-top: 1.5rem;
}
.bsw-project-units .bsw-comparison-table td:last-child {
  min-width: 12rem;
}

/* bsw25-mobile-viewport-containment */
@media (max-width: 781px) {
  .bsw-process-grid.alignwide {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    box-sizing: border-box !important;
  }

  .bsw-process-grid > .bsw-process-card {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .bsw-back-to-top {
    left: auto !important;
    right: calc(1.25rem + env(safe-area-inset-right, 0px)) !important;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 700px) {
  .bsw-process-grid > .bsw-process-card,
  .bsw-process-grid > .bsw-process-card:nth-last-child(2):nth-child(4),
  .bsw-process-grid > .bsw-process-card:last-child:nth-child(5),
  .bsw-process-grid > .bsw-process-card:last-child:nth-child(odd) {
    grid-column: 1 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    justify-self: stretch !important;
    box-sizing: border-box !important;
  }
}
.bsw-site-footer .wp-block-site-logo img {
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ImmoMakler – Vorschaubilder im Format 3:2 */
.immomakler-archive .immomakler-boxed .property-container .thumbnail > img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  box-sizing: border-box;
  display: block;
}

.wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  z-index: 99999;
}

#immomakler-contactform-panel .wpcf7-form {
  padding: 0 0.5rem !important;
  border-radius: unset !important;
  border: unset !important;
  background-color: unset !important;
  box-shadow: unset !important;
}

/* Schimek Wohnbau – Lucide Heading Icons */

.bsw-icon-title {
  display: flex;
  align-items: flex-start;
  gap: 0.55em;
}

.bsw-icon-title::before {
  content: "";
  display: block;
  flex: 0 0 1.15em;
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.08em;
  background-color: currentColor;
  -webkit-mask: var(--bsw-icon) center / contain no-repeat;
  mask: var(--bsw-icon) center / contain no-repeat;
}

/* Haus */
.bsw-icon-house {
  --bsw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}

/* Sonne / Energie */
.bsw-icon-sun {
  --bsw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.42 1.42M17.65 17.65l1.42 1.42M2 12h2M20 12h2M6.35 17.65l-1.42 1.42M19.07 4.93l-1.42 1.42'/%3E%3C/svg%3E");
}

/* Barrierefreiheit */
.bsw-icon-accessibility {
  --bsw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='16' cy='4' r='1'/%3E%3Cpath d='m18 19 1-7-6 1M5 8l3-3 5.5 3-2.36 3.5M4.24 14.5a5 5 0 0 0 6.88 6M13.76 17.5a5 5 0 0 1-6.88-6'/%3E%3C/svg%3E");
}

/* Qualität und Schutz */
.bsw-icon-shield {
  --bsw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}

/* Individuelle Planung */
.bsw-icon-pencil {
  --bsw-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");
}

.property-navigation {
  display: none !important;
}

.property-actions .glyphicon {
  margin-right: 0.25rem;
}

/* Immobilien-Detailseite */

/* BSW ImmoMakler Detailansicht 1.0.0.
   Ausschließlich Einzelansichten; Hersteller-Printstyles bleiben maßgeblich. */

@media screen {
  body.single-immomakler_object main {
    padding-top: clamp(1.5rem, 3vw, 2.75rem) !important;
  }

  body.single-immomakler_object main .immomakler-single {
    width: 100%;
    max-width: 1280px !important;
    min-width: 0;
    margin-inline: auto;
    color: var(--bsw-charcoal, #35383b);
    font-family: var(--wp--preset--font-family--manrope, Manrope, sans-serif);
    font-size: 1rem;
    line-height: 1.6;
  }

  body.single-immomakler_object main .immomakler-single > h1.property-title {
    max-width: 60ch;
    margin: 0 0 0.8rem !important;
    color: var(--bsw-charcoal, #35383b) !important;
    font-size: clamp(1.5rem, 2.2vw, 2rem) !important;
    line-height: 1.2 !important;
    font-weight: 600;
    letter-spacing: -0.025em !important;
    overflow-wrap: break-word;
  }

  body.single-immomakler_object main .immomakler-single > h2.property-subtitle {
    margin: 0 0 1.4rem !important;
    color: var(--bsw-muted, #686b6d) !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    font-weight: 400;
  }

  body.single-immomakler_object .bsw-immo-summary {
    display: grid;
    grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.5rem;
  }

  body.single-immomakler_object .bsw-immo-summary__item {
    min-width: 0;
    padding: 1rem 1.2rem;
    border: 1px solid var(--bsw-border, #d8d3c9);
    border-radius: 0.5rem;
    background: #fff;
  }

  body.single-immomakler_object .bsw-immo-summary dt {
    margin-bottom: 0.25rem;
    color: var(--bsw-muted, #686b6d);
    font-size: 0.82rem;
    line-height: 1.4;
    font-weight: 500;
  }

  body.single-immomakler_object .bsw-immo-summary dd {
    margin: 0;
    color: var(--bsw-charcoal, #35383b);
    font-size: clamp(1.2rem, 1.7vw, 1.55rem);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  /* Aktionen: einzelne gut bedienbare Buttons statt Bootstrap-Buttonleiste. */
  body.single-immomakler_object .immomakler-single > .row:first-of-type {
    margin: 0 0 1.5rem;
  }

  body.single-immomakler_object
    .immomakler-single
    > .row:first-of-type
    > .col-xs-12 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    float: none;
    padding: 0;
  }

  body.single-immomakler_object .immomakler-single .property-actions,
  body.single-immomakler_object .immomakler-single .property-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    float: none;
    margin: 0;
  }

  body.single-immomakler_object .immomakler-single .btn,
  body.single-immomakler_object .immomakler-single .btn-group > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    float: none;
    min-height: 44px;
    max-width: 100%;
    margin: 0;
    padding: 0.65rem 1rem;
    border-radius: 0.35rem !important;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.35;
    text-decoration: none;
    white-space: normal;
    box-shadow: none;
    transition:
      background-color 0.15s ease,
      border-color 0.15s ease;
  }

  body.single-immomakler_object .immomakler-single .btn-default {
    border-color: var(--bsw-border, #d8d3c9);
    background: #fff;
    color: var(--bsw-charcoal, #35383b) !important;
  }

  body.single-immomakler_object .immomakler-single .btn-default:hover {
    border-color: var(--bsw-red-dark, #bd251f);
    background: var(--bsw-sand-light, #faf8f3);
  }

  body.single-immomakler_object .immomakler-single .btn-primary,
  body.single-immomakler_object .immomakler-single input.wpcf7-submit {
    border: 1px solid var(--bsw-red-dark, #bd251f) !important;
    background: var(--bsw-red-dark, #bd251f) !important;
    color: #fff !important;
  }

  body.single-immomakler_object .immomakler-single .btn-primary:hover,
  body.single-immomakler_object .immomakler-single input.wpcf7-submit:hover {
    border-color: #9f1f1a !important;
    background: #9f1f1a !important;
  }

  body.single-immomakler_object .immomakler-single .btn:focus-visible,
  body.single-immomakler_object
    .immomakler-single
    input.wpcf7-submit:focus-visible {
    outline: 2px solid var(--bsw-red-dark, #bd251f);
    outline-offset: 3px;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-navigation
    .listnumber {
    float: none;
    padding: 0.5rem;
    color: var(--bsw-muted, #686b6d);
    font: inherit;
    font-size: 0.9rem;
  }

  /* Bestehende Galerie und Datenstruktur weiterverwenden. */
  body.single-immomakler_object .immomakler-single > .row:last-of-type {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1.25rem;
    margin: 0;
  }

  body.single-immomakler_object .immomakler-single > .row:last-of-type::before,
  body.single-immomakler_object .immomakler-single > .row:last-of-type::after {
    content: none;
  }

  body.single-immomakler_object
    .immomakler-single
    > .row:last-of-type
    > [class*="col-"] {
    float: none;
    left: auto;
    right: auto;
    width: auto;
    min-width: 0;
    padding: 0;
  }

  body.single-immomakler_object .immomakler-single #immomakler-galleria {
    margin: 0 0 1.25rem;
    border: 1px solid var(--bsw-border, #d8d3c9);
    border-radius: 0.5rem;
    background: var(--bsw-sand, #f2ede3);
  }

  /* Keine Höhen oder Bildpositionen im Galleria-Inneren überschreiben. */
  body.single-immomakler_object .immomakler-single .panel {
    margin: 0 0 1.25rem;
    border: 1px solid var(--bsw-border, #d8d3c9);
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 5px 18px rgb(53 56 59 / 3%);
  }

  body.single-immomakler_object .immomakler-single .panel > .panel-heading {
    padding: 1.15rem 1.3rem 0.9rem;
    border: 0;
    border-radius: 0.5rem 0.5rem 0 0;
    background: transparent;
  }

  body.single-immomakler_object main .immomakler-single .panel-heading h2 {
    margin: 0 !important;
    color: var(--bsw-charcoal, #35383b) !important;
    font-size: clamp(1.15rem, 1.5vw, 1.4rem) !important;
    font-weight: 650;
    line-height: 1.3 !important;
    letter-spacing: -0.015em !important;
  }

  body.single-immomakler_object .immomakler-single .panel > .panel-body {
    margin: 0;
    padding: 0.25rem 1.3rem 1.3rem;
  }

  body.single-immomakler_object .immomakler-single .list-group {
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-details
    > .list-group {
    padding: 0 1.3rem 0.8rem;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-details
    .list-group-item,
  body.single-immomakler_object
    .immomakler-single
    .property-contact
    .list-group-item {
    margin: 0;
    padding: 0.6rem 0;
    border: 0;
    border-bottom: 1px solid #eeeae4;
    border-radius: 0;
    background: transparent;
    font-size: 0.94rem;
    line-height: 1.45;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-details
    .list-group-item:last-child,
  body.single-immomakler_object
    .immomakler-single
    .property-contact
    .list-group-item:last-child {
    border-bottom: 0;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-details
    .list-group-item
    > .row,
  body.single-immomakler_object
    .immomakler-single
    .property-contact
    .list-group-item
    > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 0.4rem 1rem;
    margin: 0;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-details
    .list-group-item
    > .row::before,
  body.single-immomakler_object
    .immomakler-single
    .property-details
    .list-group-item
    > .row::after,
  body.single-immomakler_object
    .immomakler-single
    .property-contact
    .list-group-item
    > .row::before,
  body.single-immomakler_object
    .immomakler-single
    .property-contact
    .list-group-item
    > .row::after {
    content: none;
  }

  body.single-immomakler_object .immomakler-single .list-group-item .dt,
  body.single-immomakler_object .immomakler-single .list-group-item .dd {
    float: none;
    width: auto;
    min-width: 0;
    padding: 0;
    overflow-wrap: anywhere;
  }

  body.single-immomakler_object .immomakler-single .list-group-item .dt {
    color: var(--bsw-muted, #686b6d);
    font-weight: 400;
  }

  body.single-immomakler_object .immomakler-single .list-group-item .dd {
    color: var(--bsw-charcoal, #35383b);
    font-weight: 550;
  }

  body.single-immomakler_object .immomakler-single .bsw-immo-price-row .dd {
    color: green;
    font-size: 1.1rem;
    font-weight: 750;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-features
    .list-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-features
    .list-group-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    float: none;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0.4rem 0.65rem;
    border: 1px solid #e5e0d8;
    border-radius: 0.3rem;
    background: var(--bsw-sand-light, #faf8f3);
    font-size: 0.87rem;
    font-weight: 500;
    line-height: 1.4;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-features
    .glyphicon {
    color: var(--bsw-red-dark, #bd251f);
  }

  body.single-immomakler_object .immomakler-single .property-description {
    display: flow-root;
  }

  body.single-immomakler_object
    main
    .immomakler-single
    .property-description
    h3 {
    margin: 1.65rem 0 0.6rem;
    font-size: 1.1rem !important;
    font-weight: 650;
    line-height: 1.4 !important;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-description
    .panel-body
    > h3:first-child {
    margin-top: 0.1rem;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-description
    .panel-body
    > p {
    display: block;
    max-width: 85ch;
    margin: 0 0 0.85rem;
    line-height: 1.7;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-description
    > .col-xs-12 {
    float: none;
    width: auto;
    padding: 0 1.3rem;
  }

  body.single-immomakler_object
    .immomakler-single
    #immomakler-contactform-panel
    .wpcf7-form {
    margin: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.single-immomakler_object
    .immomakler-single
    .immomakler-anfrageformular
    > p {
    margin: 0 0 0.85rem;
  }

  body.single-immomakler_object
    .immomakler-single
    .immomakler-anfrageformular
    > p:has(> label) {
    margin-bottom: 0.35rem;
  }

  body.single-immomakler_object
    .immomakler-single
    .immomakler-anfrageformular
    label {
    display: block;
    margin: 0;
    font-size: 0.94rem;
    font-weight: 650;
  }

  body.single-immomakler_object .immomakler-single .wpcf7-form-control-wrap {
    display: block;
  }

  body.single-immomakler_object .immomakler-single .wpcf7 input[type="text"],
  body.single-immomakler_object .immomakler-single .wpcf7 input[type="email"],
  body.single-immomakler_object .immomakler-single .wpcf7 input[type="tel"],
  body.single-immomakler_object .immomakler-single .wpcf7 select,
  body.single-immomakler_object .immomakler-single .wpcf7 textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 0.75rem 0.85rem;
    border: 1px solid #b8b3aa;
    border-radius: 0.35rem;
    background: #fff;
    color: var(--bsw-charcoal, #35383b);
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: none;
  }

  body.single-immomakler_object .immomakler-single .wpcf7 textarea {
    min-height: 8rem;
    resize: vertical;
  }

  body.single-immomakler_object .immomakler-single .wpcf7 input:focus-visible,
  body.single-immomakler_object .immomakler-single .wpcf7 select:focus-visible,
  body.single-immomakler_object
    .immomakler-single
    .wpcf7
    textarea:focus-visible {
    outline: 2px solid var(--bsw-red-dark, #bd251f);
    outline-offset: 2px;
  }

  body.single-immomakler_object .immomakler-single input.wpcf7-submit {
    min-height: 48px;
    padding: 0.8rem 1.25rem;
    border-radius: 0.35rem;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
  }

  body.single-immomakler_object .immomakler-single .bsw-form-required {
    color: var(--bsw-muted, #686b6d);
    font-size: 0.84rem;
  }

  body.single-immomakler_object .bsw-immobilien-jump {
    /* right: calc(5.25rem + env(safe-area-inset-right, 0px));
    bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 7rem);
    border-radius: .5rem;
    background: var(--bsw-red, #bd251f);
    font-family: inherit;
    text-decoration: none; */
  }

  body.single-immomakler_object .bsw-immobilien-jump:hover {
    background: #9f1f1a;
    color: #fff;
  }
}

@media screen and (min-width: 992px) {
  body.single-immomakler_object .immomakler-single > .row:last-of-type {
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    column-gap: 1.5rem;
  }

  body.single-immomakler_object
    .immomakler-single
    > .row:last-of-type
    > .col-xs-12:not(.col-sm-7):not(.col-sm-5):not(.col-sm-6) {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 767px) {
  body.single-immomakler_object .bsw-immo-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
  }

  body.single-immomakler_object .bsw-immo-summary__item {
    padding: 0.8rem 0.65rem;
  }

  body.single-immomakler_object .bsw-immo-summary__item--price,
  body.single-immomakler_object .bsw-immo-summary__item--finance {
    grid-column: 1 / -1;
  }

  body.single-immomakler_object .bsw-immo-summary dt {
    font-size: 0.76rem;
  }

  body.single-immomakler_object .bsw-immo-summary dd {
    font-size: 1.05rem;
  }

  body.single-immomakler_object .bsw-immo-summary__item--price dd {
    font-size: 1.55rem;
  }

  body.single-immomakler_object .immomakler-single .property-actions {
    flex: 1 1 100%;
  }

  body.single-immomakler_object .immomakler-single .property-actions > .btn {
    flex: 1 1 auto;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-actions
    > .btn-primary {
    flex-basis: 100%;
  }

  body.single-immomakler_object .immomakler-single .panel > .panel-heading {
    padding: 1rem 1rem 0.8rem;
  }

  body.single-immomakler_object .immomakler-single .panel > .panel-body {
    padding: 0.2rem 1rem 1rem;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-details
    > .list-group {
    padding: 0 1rem 0.6rem;
  }

  body.single-immomakler_object
    .immomakler-single
    .property-description
    > .col-xs-12 {
    padding: 0 1rem;
  }

  body.single-immomakler_object .immomakler-single .list-group-item {
    hyphens: none;
  }
}

@media screen and (prefers-reduced-motion: reduce) {
  body.single-immomakler_object .immomakler-single .btn {
    transition: none;
  }
}

@media print {
  body.single-immomakler_object .bsw-immo-summary {
    display: none;
  }
}

body.single-immomakler_object
  .immomakler-single
  .bsw-immo-summary__item--price
  dd {
  color: green;
}

.bsw-immo-summary__monthly {
  color: green;
}
.bsw-immo-summary__period {
  font-size: 0.82rem;
  font-weight: normal;
  color: var(--fp-muted, #6c757d);
}
.bsw-immo-summary__note {
  font-size: 0.82rem;
  color: var(--fp-muted, #6c757d);
  font-weight: normal;
  padding-top: 0.25rem;
}

@media (min-width: 768px) {
  #property-actions-row {
    display: none;
  }
}

/* Karten */

/* ImmoMakler-Karten – Farben bewusst neutral und vom Twenty Twenty-Five Theme geerbt. */
.bsw-w {
  --bsw-border: #dadada;
  --bsw-muted: #666;
  width: 100%;
  color: inherit;
}
.bsw-w *,
.bsw-w *::before,
.bsw-w *::after {
  box-sizing: border-box;
}
.bsw-w__toolbar {
  display: flex;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.bsw-w__filter {
  flex: 1 1 170px;
  min-width: 160px;
}
.bsw-w__filter label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.84rem;
  font-weight: 650;
}
.bsw-w__filter select {
  appearance: auto;
  display: block;
  width: 100%;
  max-width: none;
  min-height: 44px;
  margin: 0;
  border: 1px solid var(--bsw-border);
  border-radius: 7px;
  padding: 9px 12px;
  background: var(--wp--preset--color--base, #fff);
  color: inherit;
  font: inherit;
  font-size: 0.91rem;
  cursor: pointer;
}
.bsw-w__filter select:focus-visible,
.bsw-w a:focus-visible,
.bsw-w button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.bsw-w__count {
  margin-left: auto;
  padding-bottom: 11px;
  white-space: nowrap;
  font-size: 0.84rem;
  color: var(--bsw-muted);
}
.bsw-w__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.bsw-w__card {
  display: grid;
  grid-template-columns: minmax(0, 50%) minmax(0, 50%);
  min-width: 0;
  min-height: 175px;
  overflow: hidden;
  border: 1px solid var(--bsw-border);
  border-radius: 11px;
  background: var(--wp--preset--color--base, #fff);
  box-shadow: 0 2px 9px rgb(0 0 0 / 3%);
}
.bsw-w__card[hidden],
.bsw-w__empty[hidden] {
  display: none !important;
}
.bsw-w__image-link {
  display: block;
  min-width: 0;
  min-height: 100%;
  position: relative;
  background: #f1f1f1;
  overflow: hidden;
}
.bsw-w__image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}
.bsw-w__image-link:hover .bsw-w__image {
  transform: scale(1.025);
}
.bsw-w__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 180px;
  color: #666;
  font-size: 0.85rem;
}
.bsw-w__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 16px 17px 14px;
}
.bsw-w__title {
  margin: 0 0 9px;
  font-size: 1.1rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0;
}
.bsw-w__title a {
  color: inherit;
  text-decoration: none;
}
.bsw-w__title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
.bsw-w__facts {
  margin: 0;
  display: grid;
  gap: 3px;
}
.bsw-w__facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
}
.bsw-w__facts dt {
  font-weight: 400;
  color: var(--bsw-muted);
}
.bsw-w__facts dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}
.bsw-w__price {
  border-top: 1px solid var(--bsw-border);
  margin-top: 11px;
  padding-top: 9px;
  display: flex;
  display: none;
  flex-direction: column;
  gap: 1px;
}
.bsw-w__price-label,
.bsw-w__old-price {
  font-size: 0.78rem;
  color: var(--bsw-muted);
}
.bsw-w__old-price del {
  margin-left: 5px;
}
.bsw-w__price strong {
  font-size: clamp(1.08rem, 1.65vw, 1.3rem);
  line-height: 1.3;
  font-weight: 760;
}
.bsw-w__sqm {
  font-size: 0.8rem;
  color: var(--bsw-muted);
}
.bsw-w__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
}
.bsw-w__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 37px;
  padding: 7px 11px;
  border: 1px solid var(--bsw-red-dark, #222);
  border-radius: 6px;
  background: var(--bsw-red-dark, #222);
  color: var(--wp--preset--color--base, #fff) !important;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none !important;
}
.bsw-w__button:hover {
  opacity: 0.88;
}
.bsw-w__floorplan {
  font-size: 0.81rem;
  line-height: 1.35;
  text-underline-offset: 3px;
  color: inherit;
}
.bsw-w__empty {
  padding: 18px;
  border: 1px dashed var(--bsw-border);
  border-radius: 8px;
}
.bsw-w__dialog {
  width: min(96vw, 1100px);
  max-width: 1100px;
  max-height: 92vh;
  margin: auto;
  padding: 42px 14px 14px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  color: #222;
  box-shadow: 0 14px 60px rgb(0 0 0 / 25%);
}
.bsw-w__dialog::backdrop {
  background: rgb(0 0 0 / 72%);
}
.bsw-w__dialog img {
  display: block;
  max-width: 100%;
  max-height: calc(92vh - 65px);
  height: auto;
  width: auto;
  margin: auto;
  object-fit: contain;
}
.bsw-w__dialog-close {
  position: absolute;
  top: 7px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #222;
  font-size: 0.94rem;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 8px;
}
.bsw-w-message {
  padding: 12px 0;
}
@media (max-width: 960px) {
  .bsw-w__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bsw-w__card {
    grid-template-columns: minmax(0, 50%) minmax(0, 50%);
    min-height: 230px;
  }
  .bsw-w__body {
    padding: 18px 22px;
  }
}
@media (max-width: 620px) {
  .bsw-w__toolbar {
    gap: 9px;
    margin-bottom: 16px;
  }
  .bsw-w__filter {
    flex: 1 1 calc(50% - 9px);
    min-width: 0;
  }
  .bsw-w__filter:last-of-type {
    flex-basis: 100%;
  }
  .bsw-w__count {
    padding: 2px 0 0;
    width: 100%;
    text-align: left;
  }
  .bsw-w__card {
    grid-template-columns: minmax(0, 50%) minmax(0, 50%);
    min-height: 225px;
  }
  .bsw-w__body {
    padding: 12px 12px;
  }
  .bsw-w__price strong {
    font-size: 1.12rem;
  }
  .bsw-w__title {
    font-size: 1rem;
  }
  .bsw-w__facts > div {
    font-size: 0.79rem;
  }
  .bsw-w__actions {
    padding-top: 9px;
  }
  .bsw-w__button {
    font-size: 0.78rem;
  }
}
@media (max-width: 430px) {
  .bsw-w__card {
    grid-template-columns: 1fr;
  }
  .bsw-w__image-link {
    height: 175px;
    min-height: 0;
  }
  .bsw-w__image {
    height: 175px;
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bsw-w__image {
    transition: none;
  }
}

/* Galerie */

.bsw-gallery {
  --bsw-gallery-ratio: 16 / 9;
  min-width: 0;
  margin: 0 0 1.25rem;
  color: var(--bsw-charcoal, #35383b);
  font-family: inherit;
}
.bsw-gallery__stage {
  position: relative;
  min-width: 0;
}
.bsw-gallery__viewport {
  display: flex;
  width: 100%;
  min-width: 0;
  aspect-ratio: var(--bsw-gallery-ratio);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border: 1px solid var(--bsw-border, #d8d3c9);
  border-radius: 0.5rem;
  background: #fff;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}
.bsw-gallery__viewport::-webkit-scrollbar {
  display: none;
}
.bsw-gallery__slide {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  text-decoration: none;
  cursor: zoom-in;
  -webkit-user-drag: none;
}
.bsw-gallery__slide picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.bsw-gallery .bsw-gallery__image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.bsw-gallery__viewport.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.bsw-gallery__viewport.is-dragging .bsw-gallery__slide {
  cursor: grabbing;
}
.bsw-gallery .bsw-gallery__control {
  box-sizing: border-box;
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--bsw-border, #d8d3c9);
  border-radius: 50%;
  background: rgb(255 255 255 / 94%);
  color: var(--bsw-charcoal, #35383b);
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
  cursor: pointer;
}
.bsw-gallery .bsw-gallery__control[hidden] {
  display: none !important;
}
.bsw-gallery__control--prev {
  top: calc(50% - 22px);
  left: 0.65rem;
}
.bsw-gallery__control--next {
  top: calc(50% - 22px);
  right: 0.65rem;
}
.bsw-gallery__control--zoom {
  right: 0.65rem;
  bottom: 0.65rem;
}
.bsw-gallery .bsw-gallery__control:hover {
  background: #fff;
  border-color: var(--bsw-red-dark, #bd251f);
}
.bsw-gallery .bsw-gallery__control:disabled {
  opacity: 0.35;
  cursor: default;
}
.bsw-gallery__control svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.bsw-gallery__meta {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin: 0.6rem 0;
}
.bsw-gallery .bsw-gallery__counter {
  flex: 0 0 auto;
  padding: 0;
  color: var(--bsw-muted, #686b6d);
  font-size: 0.82rem;
  line-height: 1.5;
}
.bsw-gallery .bsw-gallery__caption {
  min-width: 0;
  margin: 0;
  color: var(--bsw-charcoal, #35383b);
  font-size: 0.87rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.bsw-gallery .bsw-gallery__thumbs {
  position: relative;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-width: 0;
  padding: 3px 2px 7px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--bsw-border, #d8d3c9) transparent;
}
.bsw-gallery .bsw-gallery__thumb {
  box-sizing: border-box;
  display: flex;
  flex: 0 0 88px;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 66px;
  padding: 0;
  border: 2px solid var(--bsw-border, #d8d3c9);
  border-radius: 0.3rem;
  background: #fff;
  text-decoration: none;
}
.bsw-gallery .bsw-gallery__thumb[aria-current="true"] {
  border-color: var(--bsw-red-dark, #bd251f);
}
.bsw-gallery .bsw-gallery__thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  margin: 0;
  object-fit: cover;
}
.bsw-gallery__thumb picture {
  display: flex;
  width: 100%;
  height: 100%;
}
.bsw-gallery__viewport:focus-visible,
.bsw-gallery__slide:focus-visible,
.bsw-gallery__thumb:focus-visible,
.bsw-gallery__control:focus-visible {
  outline: 2px solid var(--bsw-red-dark, #bd251f);
  outline-offset: 2px;
}

/* PhotoSwipe liegt außerhalb des ImmoMakler-Containers direkt im body. */
.pswp.bsw-pswp {
  z-index: 100200;
  --pswp-bg: #17191b;
  --pswp-icon-color: #fff;
}
.bsw-pswp .pswp__top-bar {
  background: linear-gradient(to bottom, rgb(0 0 0 / 72%), rgb(0 0 0 / 28%));
}
.bsw-pswp .pswp__bsw-caption {
  position: absolute;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  left: 1rem;
  max-width: 70ch;
  margin-inline: auto;
  padding: 0.5rem 0.75rem;
  border-radius: 0.3rem;
  background: rgb(0 0 0 / 55%);
  color: #fff;
  font-family: var(--wp--preset--font-family--manrope, sans-serif);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}
.bsw-pswp .pswp__bsw-caption:empty {
  display: none;
}
@media (max-width: 767px) {
  .bsw-gallery .bsw-gallery__thumb {
    flex-basis: 72px;
    width: 72px;
    height: 56px;
  }
  .bsw-gallery__control--prev {
    left: 0.4rem;
  }
  .bsw-gallery__control--next {
    right: 0.4rem;
  }
}
@media print {
  .bsw-gallery__control,
  .bsw-gallery__thumbs,
  .bsw-gallery__meta {
    display: none !important;
  }
  .bsw-gallery__viewport {
    display: block;
    overflow: visible;
    border: 0;
  }
  .bsw-gallery__slide {
    display: none;
  }
  .bsw-gallery__slide:first-child {
    display: flex;
  }
}

/* Finanzpanel */

.bsw-fp {
  --fp-red: var(--bsw-red);
  --fp-red-dark: var(--bsw-red-dark);
  --fp-ink: #373b3d;
  --fp-muted: #646766;
  --fp-border: #ddd7ce;
  --fp-soft: #faf7f2;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: 9px;
  color: var(--fp-ink);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  box-shadow: 0 3px 12px #433b2e05;
  margin: 0 0 24px;
  overflow: hidden;
  scroll-margin-top: 115px;
}
.bsw-fp * {
  box-sizing: border-box;
}
.bsw-fp [hidden] {
  display: none !important;
}
.bsw-fp p {
  margin: 0 0 12px;
}
.bsw-fp h2,
.bsw-fp h3,
.bsw-fp h4 {
  font-family: inherit;
  color: var(--fp-ink);
  font-style: normal;
  letter-spacing: -0.025em;
  text-transform: none;
  line-height: 1.25;
}
.bsw-fp .bsw-fp__heading {
  padding: 22px 24px 18px;
}
.bsw-fp .bsw-fp__heading h2 {
  margin: 5px 0 0;
  font-weight: 600;
}
.bsw-fp .bsw-fp__eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.035em;
  font-weight: 650;
  color: var(--fp-muted);
  margin: 0 0 7px;
}
.bsw-fp .bsw-fp__tabs {
  display: flex;
  gap: 0;
  padding: 0 24px;
  border-bottom: 1px solid var(--fp-border);
  background: #fff;
}
.bsw-fp .bsw-fp__tabs button {
  appearance: none;
  flex: 1;
  background: transparent;
  color: var(--fp-muted);
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 13px 8px 12px;
  cursor: pointer;
  margin: 0 0 -1px;
  box-shadow: none;
  white-space: normal;
}
.bsw-fp .bsw-fp__tabs button[aria-selected="true"] {
  color: var(--fp-red);
  border-bottom-color: var(--fp-red);
}
.bsw-fp .bsw-fp__tabs button:hover {
  background: var(--fp-soft);
}
.bsw-fp .bsw-fp__body {
  padding: 24px;
}
.bsw-fp .bsw-fp__hero {
  background: var(--fp-soft);
  padding: 20px 22px;
  margin: 0 0 18px;
  border-left: 3px solid green;
}
.bsw-fp .bsw-fp__hero h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 3px;
}
.bsw-fp .bsw-fp__amount {
  font-size: clamp(35px, 4vw, 48px);
  font-weight: 750;
  letter-spacing: -0.045em;
  color: green;
  line-height: 1.15;
  margin: 4px 0 9px;
  overflow-wrap: anywhere;
}
.bsw-fp .bsw-fp__amount span {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--fp-ink);
  margin-left: 0.5rem;
}
.bsw-fp .bsw-fp__hero-note {
  font-size: 13px;
  margin-bottom: 5px;
}
.bsw-fp .bsw-fp__housegeld {
  font-size: 12px;
  color: var(--fp-muted);
  margin: 0;
}
.bsw-fp .bsw-fp__scenarios,
.bsw-fp .bsw-fp__metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.bsw-fp .bsw-fp__scenarios > div,
.bsw-fp .bsw-fp__metrics > div {
  padding: 15px;
  border: 1px solid var(--fp-border);
  border-radius: 6px;
  min-width: 0;
}
.bsw-fp .bsw-fp__scenarios span,
.bsw-fp .bsw-fp__metrics span {
  font-size: 12px;
  display: block;
  margin-bottom: 6px;
  color: var(--fp-muted);
}
.bsw-fp .bsw-fp__scenarios strong,
.bsw-fp .bsw-fp__metrics strong {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.2;
  display: block;
}
.bsw-fp .bsw-fp__scenarios small,
.bsw-fp .bsw-fp__metrics small {
  font-size: 12px;
  font-weight: 400;
  display: inline-block;
}
.bsw-fp .bsw-fp__scenarios p,
.bsw-fp .bsw-fp__metrics p {
  font-size: 12px;
  margin: 8px 0 0;
}
.bsw-fp .bsw-fp__scenario--family {
  background: #fdf8f6;
}
.bsw-fp .bsw-fp__more-equity {
  font-size: 13px;
  color: var(--fp-muted);
}
.bsw-fp .bsw-fp__contact {
  border-top: 1px solid var(--fp-border);
  padding-top: 17px;
  margin-top: 16px;
}
.bsw-fp .bsw-fp__contact > p {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 12px;
}
.bsw-fp .bsw-fp__actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.bsw-fp a.bsw-fp__button {
  background: var(--fp-red);
  border: 1px solid var(--fp-red);
  color: #fff !important;
  text-decoration: none !important;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  line-height: 1.3;
}
.bsw-fp a.bsw-fp__button:hover {
  background: var(--fp-red-dark);
}
.bsw-fp a.bsw-fp__button--light {
  background: #fff;
  color: var(--fp-red) !important;
}
.bsw-fp a.bsw-fp__button--light:hover {
  background: #fff4f2;
}
.bsw-fp .bsw-fp__text-link {
  color: var(--fp-red);
  font-size: 12px;
  padding: 8px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.bsw-fp a {
  color: var(--fp-red);
}
.bsw-fp .bsw-fp__fineprint {
  font-size: 11px;
  line-height: 1.6;
  color: var(--fp-muted);
  margin: 14px 0;
}
.bsw-fp .bsw-fp__details {
  border-top: 1px solid var(--fp-border);
  margin-top: 18px;
  padding-top: 0;
}
.bsw-fp .bsw-fp__details > summary {
  font-size: 13px;
  font-weight: 650;
  padding: 14px 1px 0;
  cursor: pointer;
  list-style: revert;
  color: var(--fp-ink);
}
.bsw-fp .bsw-fp__detail-body {
  padding-top: 18px;
  font-size: 12px;
  line-height: 1.65;
}
.bsw-fp .bsw-fp__detail-body h4 {
  font-size: 15px;
  margin: 20px 0 12px;
}
.bsw-fp dl {
  margin: 0 0 18px;
}
.bsw-fp .bsw-fp__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 15px;
  padding: 7px 0;
  border-bottom: 1px solid #eeeae4;
}
.bsw-fp dt {
  font-weight: 400;
}
.bsw-fp dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.bsw-fp .bsw-fp__table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin: 0 0 18px;
}
.bsw-fp table {
  font-size: 11px;
  width: 100%;
  min-width: 410px;
  border-collapse: collapse;
  text-align: left;
  margin: 0;
}
.bsw-fp caption {
  text-align: left;
  font-weight: 600;
  margin: 0 0 8px;
}
.bsw-fp th,
.bsw-fp td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--fp-border);
  vertical-align: top;
}
.bsw-fp thead th {
  background: var(--fp-soft);
  font-weight: 600;
}
.bsw-fp tbody th {
  font-weight: 500;
}
.bsw-fp th small {
  display: block;
  font-weight: 400;
  color: var(--fp-muted);
}
.bsw-fp .bsw-fp__tax {
  padding: 16px;
  background: var(--fp-soft);
  border: 1px solid var(--fp-border);
  border-radius: 6px;
  margin: 0 0 18px;
}
.bsw-fp .bsw-fp__tax strong {
  font-size: 27px;
  letter-spacing: -0.025em;
  color: var(--fp-red);
}
.bsw-fp .bsw-fp__tax p:last-child {
  font-size: 12px;
  margin: 0;
}
.bsw-fp .bsw-fp__stand {
  font-size: 10px;
  text-align: left;
  color: var(--fp-muted);
  margin: 0;
  padding: 0 22px 15px;
}
.bsw-fp .bsw-fp__fallback {
  padding: 24px;
}
.bsw-fp .bsw-fp__fallback a {
  margin-right: 15px;
}
@media (max-width: 520px) {
  .bsw-fp .bsw-fp__heading {
    padding: 19px 18px 14px;
  }
  .bsw-fp .bsw-fp__heading h2 {
    font-size: 22px;
  }
  .bsw-fp .bsw-fp__tabs {
    padding: 0 18px;
  }
  .bsw-fp .bsw-fp__body {
    padding: 18px;
  }
  .bsw-fp .bsw-fp__hero {
    padding: 18px 16px;
  }
  .bsw-fp .bsw-fp__scenarios,
  .bsw-fp .bsw-fp__metrics {
    grid-template-columns: 1fr;
  }
  .bsw-fp .bsw-fp__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .bsw-fp .bsw-fp__text-link {
    text-align: center;
  }
  .bsw-fp .bsw-fp__row {
    grid-template-columns: minmax(0, 1fr) minmax(65px, auto);
    gap: 10px;
  }
  .bsw-fp .bsw-fp__hero-note {
    overflow-wrap: anywhere;
  }
}
@media print {
  .bsw-fp {
    break-inside: avoid;
    box-shadow: none;
  }
  .bsw-fp .bsw-fp__tabs,
  .bsw-fp .bsw-fp__contact {
    display: none;
  }
  .bsw-fp .bsw-fp__body[hidden] {
    display: block !important;
  }
  .bsw-fp details:not([open]) > :not(summary) {
    display: block !important;
  }
  .bsw-fp .bsw-fp__amount {
    font-size: 30px;
  }
}
