/**
 * SBM GmbH – globale Formatierung (alle Seiten)
 */

@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@600;700&display=swap");
@import url("sbm-funnel.css");
@import url("sbm-mobile.css");

html {
  scroll-behavior: smooth;
}

html,
body,
.page-wrap,
body *,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
li,
span,
div,
input,
textarea,
button,
select,
label,
.navbar_link,
.button_text,
.footer_link,
.heading-style-h1,
.heading-style-h2,
.heading-style-h3,
.heading-style-h4,
.heading-style-h5,
.heading-style-h6,
.heading_label,
.sbm-section-label,
.sbm-section-title {
  font-family: "Barlow", system-ui, -apple-system, sans-serif !important;
  font-weight: 600 !important;
}

:root {
  --sbm-font: "Barlow", system-ui, -apple-system, sans-serif;
  --sbm-primary: #f7c600;
  --sbm-secondary: #f7c600;
  --sbm-primary-dark: #c99500;
  --sbm-primary-darker: #9c7300;
  --sbm-ink: #0f172a;
  --sbm-muted: #334155;
  --sbm-surface: #f8fafc;
  --sbm-nav: #111827;
  --sbm-radius: 0px;
  --breitmeier-primary: var(--sbm-primary);
  --breitmeier-secondary: var(--sbm-secondary);
  --base-color-brand-elephant-solar--brand: #f7c600;
  --base-color-brand-elephant-solar--brand-dark: #c99500;
  --base-color-brand-elephant-solar--brand-gradient-light: #f7c600;
  --base-color-brand-elephant-solar--brand-gradient-dark: #9c7300;
  --base-color-brand-elephant-solar--brand-light: #c99500;
  --base-color-brand-elephant-solar--brand-contrast: #fff;
}

html,
body {
  max-width: 100% !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.page-wrap {
  max-width: 100% !important;
  overflow: visible !important;
}

.main-wrap {
  overflow-x: clip;
}

/* —— Banner & Navigation —— */
.banner {
  background-image: linear-gradient(166deg, #c99500, #9c7300) !important;
}

.banner,
.banner a {
  color: #fff !important;
  text-decoration: none;
}

.banner a:hover {
  opacity: 0.9;
}

.banner_brand.is-solar .banner_brand-text {
  color: var(--sbm-primary) !important;
}

.navbar {
  background: var(--sbm-nav) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

/* Einheitliche Header-Höhe – kein Springen zwischen Seiten */
.navigation {
  position: relative;
  z-index: 1000;
  overflow: visible !important;
}

.navbar.w-nav {
  overflow: visible !important;
}

/* Webflow: margin-top für fixed Nav – Header ist relativ, kein Extra-Offset */
.main-wrap {
  margin-top: 0 !important;
}

/* Startseite: Hero direkt unter Header (kein Webflow-Padding für fixed Nav) */
.main-wrap > .section_hero:first-child,
.main-wrap > .sbm-m-hero:first-child {
  padding-top: 0 !important;
}

.main-wrap > .section_hero:first-child > .padding-global.z-index-2 {
  padding-top: clamp(2rem, 5vw, 4.5rem) !important;
  padding-bottom: clamp(2rem, 5vw, 3rem) !important;
}

.banner .padding-global {
  padding-top: 0.45rem !important;
  padding-bottom: 0.45rem !important;
}

.banner .width-100 > .flex-horizontal.flex-align-between {
  min-height: 1.75rem;
  align-items: center;
}

.navbar > .padding-global {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}

.navbar .container.is-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 4.5rem;
  gap: 0.75rem;
}

.navbar_logo-link {
  flex-shrink: 0;
  line-height: 0;
}

.navbar_menu {
  align-items: center;
}

.nav_menu-left .navbar_link {
  font-size: 0.95rem !important;
  padding: 0.45rem 0.55rem !important;
  white-space: nowrap;
}

.navbar_menu-right .button_text {
  font-size: 0.88rem !important;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .navbar .container.is-nav {
    min-height: 3.75rem;
  }

  .nav_menu-left .navbar_link {
    white-space: normal !important;
  }
}

@media (max-width: 767px) {
  .banner .padding-global {
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
  }

  .navbar > .padding-global {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
  }

  .navbar .container.is-nav {
    min-height: 3.5rem;
  }
}

.navbar .navbar_link,
.navbar .navbar_dropdown-toggle,
.navbar .navbar_brand-text,
.navbar .button_text {
  color: #f8fafc !important;
}

.navbar .navbar_link:hover,
.navbar .navbar_dropdown-toggle:hover {
  color: var(--sbm-primary) !important;
  background-color: rgba(247, 198, 0, 0.12) !important;
}

.menu-icon_line-top,
.menu-icon_line-middle,
.menu-icon_line-bottom {
  background-color: var(--sbm-primary) !important;
}

.navbar_logo,
.logo img {
  height: 56px !important;
  max-height: 56px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.navbar_logo-link,
.logo {
  display: flex;
  align-items: center;
  background: transparent !important;
  padding: 2px 0 !important;
  border-radius: 0 !important;
}

@media (max-width: 767px) {
  .navbar_logo,
  .logo img {
    height: 40px !important;
    max-height: 40px !important;
  }
}

@media (min-width: 992px) {
  .navbar .container.is-nav {
    max-width: min(1400px, calc(100% - 2rem)) !important;
  }

  .navbar .nav_menu-left {
    gap: clamp(0.6rem, 1vw, 1.2rem) !important;
  }

  .navbar .nav_menu-left .navbar_link {
    white-space: nowrap !important;
  }
}

/* —— Banner: Social-Icons —— */
.banner .banner-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  line-height: 0;
  vertical-align: middle;
  opacity: 0.92;
  transition: opacity 0.2s ease;
}

.banner .banner-social-link + .banner-social-link {
  margin-left: 0.35rem;
}

.banner .banner-social-link:hover {
  opacity: 1;
  color: #fff !important;
}

.banner .banner-social-link svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* —— Footer —— */
.footer {
  background-color: var(--sbm-nav) !important;
  background-image: none !important;
}

.footer .padding-global {
  padding-top: clamp(1.5rem, 3vw, 2.25rem) !important;
}

.footer .footer_grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr)) !important;
  gap: clamp(0.75rem, 1.5vw, 1.75rem) !important;
  width: 100% !important;
  align-items: start !important;
}

.footer .footer_grid > * {
  min-width: 0 !important;
}

.footer .footer_list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.footer .footer_list-item {
  margin-bottom: 0.4rem !important;
}

.footer .footer_column-title {
  color: var(--sbm-primary) !important;
  font-weight: 600 !important;
  margin-bottom: 0.65rem !important;
}

.footer .footer_link,
.footer .text-size-regular,
.footer .text-size-small {
  color: #e2e8f0 !important;
  text-decoration: none !important;
}

.footer .footer_link:hover {
  color: var(--sbm-primary) !important;
}

.footer .footer_text-wrapper p {
  margin: 0 !important;
  max-width: none !important;
  line-height: 1.5 !important;
}

.footer .footer_column-text-wrapper .text-size-regular {
  line-height: 1.45 !important;
  margin-bottom: 0.25rem !important;
}

.footer .footer_link.is-icon {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
}

.footer_logo-wrapper {
  background: var(--sbm-nav) !important;
  padding: 8px 10px !important;
  border-radius: var(--sbm-radius) !important;
  display: inline-flex !important;
}

.footer_logo {
  display: block !important;
}

@media (max-width: 767px) {
  .footer .footer_grid,
  .footer .w-layout-grid.footer_grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: none !important;
    grid-auto-flow: row !important;
    gap: 1.35rem !important;
  }

  /* Webflow w-node: Desktop-Spalten zurücksetzen – sonst Überlappung auf Mobile */
  .footer .footer_grid > *,
  .footer .footer_grid > [id^="w-node"],
  .footer .footer-grid_column,
  .footer .footer_grid_column {
    grid-column: 1 / -1 !important;
    grid-row: auto !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    float: none !important;
  }

  .footer .footer-grid_column,
  .footer .footer_grid_column {
    display: block !important;
    padding-bottom: 1.1rem !important;
    margin-bottom: 0.25rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }

  .footer .footer_grid > *:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .footer .footer_column-title {
    display: block !important;
    margin: 0 0 0.7rem !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }

  .footer .footer_column-text-wrapper {
    display: block !important;
  }

  .footer .footer_column-text-wrapper .text-size-regular {
    display: block !important;
    margin-bottom: 0.55rem !important;
    line-height: 1.5 !important;
    word-wrap: break-word !important;
    overflow-wrap: anywhere !important;
  }

  .footer .footer_text-wrapper {
    display: block !important;
    margin-top: 0.5rem !important;
  }

  .footer .footer_text-wrapper p {
    line-height: 1.55 !important;
    margin-bottom: 0.5rem !important;
  }

  .footer .footer_list-item {
    margin-bottom: 0.5rem !important;
  }

  .footer .footer_link {
    display: inline-block !important;
    line-height: 1.45 !important;
    word-break: break-word !important;
  }

  .footer_logo-wrapper {
    display: inline-flex !important;
    margin-bottom: 0.65rem !important;
  }

  .footer .footer_top,
  .footer .footer_content {
    display: block !important;
    width: 100% !important;
  }

  /* Scrollraum unten: schwebende Google-Rezension überdeckt sonst Footer-Links */
  .footer .padding-global {
    padding-bottom: calc(clamp(13rem, 42vh, 17rem) + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* —— Buttons & Akzente —— */
.text-color-brandcontrast,
.heading-style-h3.text-color-brandcontrast,
.heading_label.is-contrast,
.color-accent-5,
.stats_title,
.stats_title .color-accent-5 {
  color: var(--sbm-primary) !important;
}

[data-wf--content--button-style="primary"] .button_content,
.button_content[data-wf--content--button-style="primary"] {
  background-color: var(--sbm-primary) !important;
  border-color: var(--sbm-primary) !important;
}

[data-wf--content--button-style="primary"]:hover .button_content,
.button_content[data-wf--content--button-style="primary"]:hover {
  background-color: var(--sbm-primary-dark) !important;
  border-color: var(--sbm-primary-dark) !important;
}

[data-wf--content--button-style="primary-on-dark"] .button_content {
  background-color: var(--sbm-primary) !important;
  color: #1e293b !important;
  border-color: var(--sbm-primary) !important;
}

[data-wf--content--button-style="primary-on-dark"]:hover .button_content {
  background-color: #e0b400 !important;
  border-color: #e0b400 !important;
}

[data-wf--content--button-style="secondary"] .button_content {
  border-color: var(--sbm-primary) !important;
  color: var(--sbm-primary) !important;
}

[data-wf--content--button-style="secondary"]:hover .button_content {
  background-color: rgba(247, 198, 0, 0.1) !important;
}

.button_content:not(.w-variant-3b8de629-2bf4-8381-43c2-5ce6cd83413c):not(.w-variant-5514515c-55c2-b715-8134-cbe5dbccb203):not(.w-variant-4bb3c08f-9995-62e4-afa2-9a5f2988992c) {
  background-color: var(--sbm-primary) !important;
  background-image: linear-gradient(156deg, #f7c600, #9c7300) !important;
  border-color: var(--sbm-primary) !important;
}

/* —— Unterseiten-Hero: Bild mit Gelbton + Seitentitel —— */
.about-hero,
.legal-hero,
.contact-hero,
.standorte-hero,
.leistungen-hero,
.page-hero {
  --sbm-subpage-hero-image: url("../bildis/540606185_1080943404107849_106859651611563379_n.jpg");
  position: relative;
  isolation: isolate;
  padding: clamp(4.5rem, 12vw, 8rem) 0 !important;
  text-align: center;
  background-color: #c99500 !important;
  background-image:
    linear-gradient(
      180deg,
      rgba(247, 198, 0, 0.68) 0%,
      rgba(212, 173, 0, 0.74) 45%,
      rgba(156, 115, 0, 0.82) 100%
    ),
    var(--sbm-subpage-hero-image) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.sbm-subpage-hero__title,
.about-hero h1,
.about-hero .about-hero-subtitle,
.legal-hero h1,
.contact-hero h1,
.contact-hero-subline,
.standorte-hero h1,
.leistungen-hero h1,
.leistungen-hero-subline,
.page-hero h1 {
  color: #fff !important;
  font-size: clamp(2rem, 5.5vw, 3.5rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  max-width: none !important;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
}

.about-hero .heading_label,
.about-hero .about-hero-label,
.legal-hero .heading_label,
.legal-hero p,
.contact-hero .heading_label,
.standorte-hero .heading_label,
.standorte-hero p,
.leistungen-hero-label {
  display: none !important;
}

.legal-hero p {
  margin: 0;
}

/* —— Inhaltsbereiche —— */
.about-content-section,
.legal-section {
  background: var(--sbm-surface);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0 clamp(4rem, 7vw, 6rem);
}

.about-content-section .about-content,
.about-content-section .container-narrow {
  max-width: 980px;
  margin: 0 auto;
}

.about-content-section .about-content > .margin-bottom.margin-xxsmall {
  margin-bottom: 0.75rem;
}

.about-content-section .about-content > .margin-bottom.margin-xsmall {
  margin-bottom: 1.5rem;
}

.about-content-section .about-intro,
.about-content-section .heading-style-h2 {
  color: var(--sbm-ink);
}

.about-content-section .heading-style-h2 {
  font-size: clamp(1.05rem, 1.5vw, 1.28rem) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.about-content-section .about-intro {
  line-height: 1.75;
  font-size: 1rem;
  color: var(--sbm-muted);
}

.about-content-section .about-intro p {
  margin: 0 0 1.35rem;
}

.about-content-section .about-intro p:last-child {
  margin-bottom: 0;
}

.about-section-content {
  padding: clamp(1.6rem, 2.8vw, 2.25rem) clamp(1.6rem, 2.8vw, 2.5rem);
}

.about-section-content h3 {
  margin: 0 0 1rem;
  color: #0f172a;
  font-size: clamp(0.98rem, 1.35vw, 1.12rem) !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
}

.about-section-content p {
  margin: 0 0 1.15rem;
  color: #334155;
  line-height: 1.7;
  font-size: 0.98rem;
}

.about-section-content p:last-of-type:not(.about-section-quote) {
  margin-bottom: 0.5rem;
}

.about-section-quote {
  margin-top: 1.25rem;
  padding: 0.75rem 0 0.75rem 1rem;
  border-left: 3px solid #f7c600;
  font-style: italic;
  color: #1f2937;
}

.about-cta-wrap {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  text-align: center;
}

.about-cta-btn {
  display: inline-block;
  background: var(--sbm-primary);
  color: #1f2937;
  border: 1px solid #e0b400;
  border-radius: var(--sbm-radius);
  padding: 0.85rem 1.3rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.about-cta-btn:hover {
  background: #e0b400;
  color: #111827;
  transform: translateY(-1px);
}

.about-sections {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
}

.about-section-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--sbm-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 35, 0.06);
}

.about-section-image-wrap {
  position: relative;
  height: 100%;
  min-height: 300px;
  overflow: hidden;
}

.about-section-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-sections .about-section-card:nth-child(even) .about-section-image-wrap {
  order: 2;
}

.about-sections .about-section-card:nth-child(even) .about-section-content {
  order: 1;
}

@media (max-width: 991px) {
  .about-section-card {
    grid-template-columns: 1fr;
  }

  .about-section-image-wrap {
    position: relative;
    height: 220px;
    min-height: 220px;
  }

  .about-sections .about-section-card:nth-child(even) .about-section-image-wrap,
  .about-sections .about-section-card:nth-child(even) .about-section-content {
    order: initial;
  }
}

@media (max-width: 900px) {
  .about-section-card {
    grid-template-columns: 1fr;
  }
}

/* Referenzen-Karten */
.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.35rem);
  margin-top: 1.2rem;
}

.reference-card {
  position: relative;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--sbm-radius);
  box-shadow: 0 10px 24px rgba(15, 23, 35, 0.07);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.3s ease;
}

.reference-card:hover,
.reference-card:focus-visible {
  box-shadow: 0 18px 36px rgba(15, 23, 35, 0.14);
  z-index: 5;
}

.reference-card__visual {
  display: grid;
  grid-template-columns: 1fr 0fr;
  height: 220px;
  overflow: hidden;
  background: #f1f5f9;
  transition: grid-template-columns 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (hover: hover) {
  .reference-card:hover .reference-card__visual,
  .reference-card:focus-visible .reference-card__visual {
    grid-template-columns: 1fr 1fr;
  }

  .reference-card:hover .reference-image,
  .reference-card:focus-visible .reference-image {
    transform: translateX(-8%);
  }

  .reference-card:hover .reference-hover-panel,
  .reference-card:focus-visible .reference-hover-panel {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
  }
}

.reference-image-wrap {
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.reference-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.reference-card__title {
  margin: 0;
  padding: 1rem 1.1rem 1.15rem;
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
  text-align: center;
}

.reference-hover-panel {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  background: linear-gradient(160deg, #111827 0%, #1e293b 100%);
  color: #f8fafc;
  border-left: 3px solid #f7c600;
  opacity: 0;
  transform: translateX(12px);
  transition:
    opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.reference-hover-panel__title {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f7c600;
  font-weight: 700;
}

.reference-hover-panel__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-hover-panel__list li {
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
  line-height: 1.45;
  color: #e2e8f0;
}

.reference-hover-panel__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .reference-card__visual,
  .reference-image,
  .reference-hover-panel {
    transition: none !important;
  }

  .reference-card:hover .reference-image,
  .reference-card:focus-visible .reference-image {
    transform: none;
  }
}

.reference-empty {
  margin-top: 1.5rem;
  padding: 2rem;
  text-align: center;
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--sbm-radius);
  color: #475569;
}

.reference-empty a {
  color: #0f172a;
  font-weight: 700;
}

/* Referenz-Detailseite */
.reference-detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.5rem;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
}

.reference-detail-back:hover {
  color: #9c7300;
}

.reference-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: start;
}

.reference-detail-main,
.reference-detail-sidebar {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--sbm-radius);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.reference-detail-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  margin-bottom: 1.25rem;
  cursor: zoom-in;
}

.reference-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.reference-detail-gallery img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.reference-detail-section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: #0f172a;
}

.reference-detail-prose p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: #334155;
}

.reference-detail-facts,
.reference-detail-components {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  padding: 1rem 1.1rem;
  margin: 1.25rem 0 0;
}

.reference-detail-facts dl,
.reference-detail-components ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.reference-detail-facts dt {
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.5rem;
}

.reference-detail-facts dt:first-child {
  margin-top: 0;
}

.reference-detail-facts dd {
  margin: 0.15rem 0 0;
  color: #475569;
}

.reference-detail-components li {
  padding: 0.35rem 0;
  border-bottom: 1px solid #e5e7eb;
  color: #334155;
  font-size: 0.95rem;
}

.reference-detail-components li:last-child {
  border-bottom: none;
}

.reference-detail-sidebar h3 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.reference-detail-sidebar a {
  display: block;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
  border: 1px solid #e5e7eb;
  border-radius: var(--sbm-radius);
  text-decoration: none;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.92rem;
}

.reference-detail-sidebar a:hover {
  border-color: #f7c600;
  background: #fffbeb;
}

@media (max-width: 991px) {
  .reference-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .reference-card__visual {
    display: block !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    height: auto !important;
    transition: none !important;
  }

  .reference-image-wrap {
    height: 200px;
    width: 100%;
  }

  .reference-hover-panel {
    border-left: none;
    border-top: 3px solid #f7c600;
    height: auto !important;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-block: 0 !important;
    padding-inline: 1rem !important;
    transform: none !important;
    transition:
      max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1) 0.04s;
    pointer-events: none;
  }

  .reference-card.is-open .reference-hover-panel,
  .reference-card:focus-within .reference-hover-panel {
    max-height: 320px;
    opacity: 1;
    padding-block: 0.85rem !important;
    pointer-events: auto;
  }

  .reference-card:hover .reference-image,
  .reference-card:focus-visible .reference-image {
    transform: none;
  }

  .reference-card:hover .reference-card__visual,
  .reference-card:focus-visible .reference-card__visual {
    grid-template-columns: none !important;
  }
}

/* Touch: kein „klebender“ Hover – verhindert Ruckeln beim Loslassen */
@media (max-width: 767px) and (hover: none) {
  .reference-card:hover:not(.is-open):not(:focus-within) .reference-hover-panel {
    max-height: 0;
    opacity: 0;
    padding-block: 0 !important;
  }
}

@media (max-width: 900px) {
  .reference-detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .reference-grid {
    grid-template-columns: 1fr;
  }

  .reference-image-wrap {
    height: 200px;
  }
}

/* Rechtstexte */
.legal-prose {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--sbm-radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: 0 8px 24px rgba(15, 23, 35, 0.05);
  color: var(--sbm-muted);
  line-height: 1.65;
  font-size: 1rem;
}

.legal-prose h2 {
  color: var(--sbm-ink);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.65rem;
}

.legal-prose h2:first-child {
  margin-top: 0;
}

.legal-prose p {
  margin: 0 0 1rem;
}

.legal-prose strong {
  color: var(--sbm-ink);
}

.legal-prose a:not(.legal-back) {
  color: var(--sbm-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-prose a:not(.legal-back):hover {
  color: var(--sbm-primary-dark);
}

.legal-back-wrap {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.legal-back {
  color: var(--sbm-ink);
  font-weight: 600;
  text-decoration: none;
}

.legal-back:hover {
  color: var(--sbm-primary-dark);
}

/* Standorte */
.standorte-section .container {
  max-width: 1080px;
  margin: 0 auto;
}

.standorte-intro {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 1.75rem;
  color: var(--sbm-muted);
  line-height: 1.6;
}

.standorte-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.25rem;
}

.standort-card {
  flex: 1 1 300px;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--sbm-radius);
  padding: 1.35rem 1.4rem;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  min-height: 17.5rem;
}

.standort-card--featured {
  border-color: var(--sbm-primary);
  box-shadow: 0 14px 36px rgba(247, 198, 0, 0.18);
}

.standort-card--placeholder {
  border-style: dashed;
  border-color: #d1d5db;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

.standort-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  width: 100%;
}

.standort-card__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--sbm-ink);
}

.standort-card__body {
  flex: 1 1 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.standort-card__address {
  color: var(--sbm-muted);
  line-height: 1.6;
  margin-bottom: 0.85rem;
  flex-grow: 1;
}

.standort-card__actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.standort-card__btn {
  display: inline-block;
  background: var(--sbm-primary);
  color: #1f2937;
  border-radius: var(--sbm-radius);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid #e0b400;
}

.standort-card__btn:hover {
  background: #e0b400;
}

@media (max-width: 991px) {
  .standort-card {
    flex: 1 1 calc(50% - 0.75rem);
    max-width: none;
  }
}

@media (max-width: 640px) {
  .standort-card {
    flex: 1 1 100%;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Allgemeine Typo & Abstände */
.main-wrap h1,
.main-wrap h2,
.main-wrap h3,
.heading-style-h1,
.heading-style-h2,
.heading-style-h3 {
  line-height: 1.25;
}

.padding-section-large {
  padding-top: clamp(3rem, 6vw, 5rem) !important;
  padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}

.container {
  padding-left: clamp(1rem, 3vw, 1.5rem);
  padding-right: clamp(1rem, 3vw, 1.5rem);
}

p,
.text-size-medium,
.text-size-regular {
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

/* —— Startseite: Abstand Leistungen ↔ Funnel —— */
.section_vorteile {
  position: relative;
  z-index: 2;
}

.section_vorteile .padding-section-vorteile {
  margin-bottom: 0 !important;
  padding-bottom: clamp(4rem, 8vw, 6rem) !important;
}

.section_funnel {
  position: relative;
  z-index: 3;
  clear: both;
  isolation: isolate;
  margin-top: clamp(2rem, 4vw, 3rem) !important;
  padding-top: clamp(3rem, 6vw, 5rem) !important;
  padding-bottom: clamp(3rem, 6vw, 4.5rem) !important;
  background: linear-gradient(
    135deg,
    rgba(17, 24, 39, 0.06) 0%,
    rgba(247, 198, 0, 0.12) 100%
  ) !important;
  overflow: visible !important;
}

/* Startseite: Kennzahlen direkt im Funnel-Block – kein weißer Zwischenraum */
.section_funnel.section_funnel--with-stats,
.section_funnel:has(> .sbm-stats-strip) {
  margin-top: 0 !important;
  padding-top: 0 !important;
  clear: none !important;
}

.section_funnel.section_funnel--with-stats > .padding-global,
.section_funnel:has(> .sbm-stats-strip) > .padding-global {
  padding-top: clamp(1.25rem, 2.5vw, 2rem) !important;
}

.section_funnel > .sbm-stats-strip {
  margin: 0 !important;
}

/* Legacy: getrennte Sektionen direkt hintereinander */
.sbm-stats-strip + .section_funnel {
  margin-top: 0 !important;
  padding-top: clamp(1.25rem, 2.5vw, 2rem) !important;
  clear: none !important;
}

/* Kontakt + Leistungs-Unterseiten: kompakter Funnel */
.section_funnel.contact-page-funnel,
.section_funnel.leistungen-page-funnel {
  margin-top: 0 !important;
  padding-top: clamp(1.75rem, 3.5vw, 2.75rem) !important;
  padding-bottom: clamp(2.5rem, 5vw, 4rem) !important;
}

/* Kennzahlen: gleiches Padding oben und unten */
.section_daten {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.section_daten > .padding-global,
.main-wrap .section_daten .padding-global {
  padding-top: clamp(3rem, 6vw, 5rem) !important;
  padding-bottom: clamp(3rem, 6vw, 5rem) !important;
}

.section_vorteile .vorteile_card,
.section_vorteile .vorteile_card-wrapper,
.section_vorteile .vorteile_card-grid {
  transform: none !important;
  will-change: auto !important;
}

.service-tag,
.service-tag::before {
  border-radius: var(--sbm-radius) !important;
}

.button_content,
.button_wrap,
.button_wrap .button_content,
[data-wf--content--button-style] .button_content,
.about-cta-btn,
.leistungen-cta-btn,
.standort-card__btn,
.contact-standort-item__btn,
.contact-simple-form button[type="submit"],
.funnel-prev,
.funnel-next,
.funnel-submit-btn,
.funnel-option,
.career-hint-widget,
.section_funnel .funnel-container,
.section_funnel .funnel-consent,
.section_funnel .form-group input,
.section_funnel .form-group textarea,
.section_funnel .form-group select,
.section_funnel .step-number {
  border-radius: var(--sbm-radius) !important;
}

img,
.content_image,
.vorteile_card-image,
.about-section-image,
.review_avatar,
.splide__logo,
.content_image-wrap,
.vorteile_card-image-wrap,
.content_image-wrap img {
  border-radius: var(--sbm-radius) !important;
}

.vorteile_card,
.about-section-card,
.reference-card,
.reference-empty,
.standort-card,
.review_item,
.sbm-floating-review,
.footer_logo-wrapper,
.contact-standorte-panel,
.funnel-container {
  border-radius: var(--sbm-radius) !important;
}

.sbm-floating-review__avatar,
.review_avatar {
  border-radius: var(--sbm-radius) !important;
}

/* —— Über uns: Kennzahlen & Partner-Logos —— */
.main-wrap .section_daten .margin-bottom.margin-xlarge {
  margin-bottom: clamp(2rem, 4vw, 3rem) !important;
}

.main-wrap .section_logos--light {
  background: #fff !important;
}

.main-wrap .section_logos--divider {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.main-wrap .section_logos--divider .padding-global {
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem) !important;
  padding-bottom: clamp(1.25rem, 2.5vw, 1.75rem) !important;
}

.main-wrap .section_logos--divider .splide__logo {
  height: 44px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.88;
}

/* sbm-build:dW1nZXNldHp0IHVuZCBlcnN0ZWxsdCB2b24gbGVhbmRlciBqZWRl */
/* sbm-contract:dmVyZWluYmFydGVyIHByZWlzIG1pdCBsZWFuZGVyIGplZGUgNDE2NeKCrCBmw7xyIGRpZXNlIHdlYnNpdGU= */
