/* Funktionale Ergänzungen für die HB-Bau-RAR-Vorlage.
   Farben, Typografie und Grundlayout bleiben bei der Originalvorlage. */

/* Reserviert schon vor der Initialisierung exakt die Höhe des originalen
   Revolution-Sliders. So springt der Seiteninhalt beim Laden nicht nach unten. */
#welcome_wrapper {
  min-height: 660px;
}

@media only screen and (max-width: 1239.98px) {
  #welcome_wrapper {
    min-height: 53.225806vw;
  }
}

@media only screen and (max-width: 1023.98px) {
  #welcome_wrapper {
    min-height: 56.451613vw;
  }
}

@media only screen and (max-width: 777.98px) {
  #welcome_wrapper {
    min-height: 62.5vw;
  }
}

@media only screen and (max-width: 479.98px) {
  #welcome_wrapper {
    min-height: 116.666667vw;
  }
}

.hb-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Kontaktdaten im hellgrauen Kopfstreifen bleiben kontrastreich lesbar. */
.top-bar.bg-gray .e-p-bx li,
.top-bar.bg-gray .e-p-bx li a,
.top-bar.bg-gray .e-p-bx li i {
  color: #202020 !important;
}

.top-bar.bg-gray .e-p-bx li a:hover,
.top-bar.bg-gray .e-p-bx li a:focus {
  color: #d85f00 !important;
}

.mt-bnr-inr-entry .banner-title-outer h1.hb-banner-title {
  margin-top: 0;
  color: #fff;
  font-size: 22px;
  line-height: 32px;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: 1px;
}

/* Vorher/Nachher – Variante 1: weiche Überblendung */
.hb-project-card {
  background: #fff;
  height: 100%;
  overflow: hidden;
}

.hb-crossfade {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #171717;
  isolation: isolate;
}

.hb-crossfade img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transform: none !important;
  opacity: 1 !important;
  transition: opacity .7s ease !important;
}

.hb-crossfade .hb-after {
  opacity: 0 !important;
  z-index: 1;
}

.hb-project-card.is-after .hb-after {
  opacity: 1 !important;
}

.hb-crossfade-label {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  padding: 6px 10px;
  background: rgba(20, 20, 20, .82);
  color: #fff;
  font: 600 11px/1.2 'Poppins', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: opacity .35s ease;
  pointer-events: none;
}

.hb-crossfade-label.hb-label-after {
  background: #ff7900;
  color: #111;
  opacity: 0;
}

.hb-project-card.is-after .hb-label-before {
  opacity: 0;
}

.hb-project-card.is-after .hb-label-after {
  opacity: 1;
}

.hb-compare-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  border: 0;
  border-radius: 0;
  padding: 9px 13px;
  background: rgba(20, 20, 20, .88);
  color: #fff;
  font: 500 11px/1.2 'Poppins', sans-serif;
  letter-spacing: .05em;
  cursor: pointer;
  box-shadow: none;
}

.hb-compare-toggle:hover,
.hb-compare-toggle:focus-visible {
  background: #ff7900;
  color: #111;
}

.hb-compare-toggle:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.hb-project-info {
  padding: 22px 22px 20px;
  border: 1px solid #ededed;
  border-top: 0;
}

.hb-project-info h3,
.hb-project-info h4 {
  margin: 0 0 7px;
  font-size: 19px;
  line-height: 1.35;
}

.hb-project-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
  line-height: 1.65;
}

.hb-project-note {
  max-width: 760px;
  margin: -24px auto 34px;
  color: #666;
  text-align: center;
}

/* Leistungsübersicht: unabhängig vom Fotoformat identische Bildflächen. */
.hb-process-grid > [class*='col-'] {
  display: flex;
}

.hb-process-image {
  width: 100%;
  aspect-ratio: 3 / 4;
}

.hb-process-image > img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.hb-equal-project-image .mt-thum-bx {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.hb-equal-project-image .mt-thum-bx > img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

/* Wertebereich ohne erfundene Kennzahlen. */
.our-valu-wrap .mt-count {
  display: flex;
  min-height: 117px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hb-value-icon {
  margin-bottom: 13px;
  color: #ff7900;
  font-size: 30px;
  line-height: 1;
}

.hb-value-check {
  flex: 0 0 auto;
  color: #ff7900;
  font-size: 21px;
  line-height: 1;
}

/* Transparente Kennzeichnung für generische KI-/Symbolbilder. */
.hb-ai-image-label,
.hb-ai-banner-label {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  display: inline-block;
  padding: 6px 9px;
  background: rgba(17, 17, 17, .88);
  color: #fff;
  font: 600 10px/1.25 'Poppins', sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hb-chef-foto .hb-ai-image-label {
  top: 12px;
  bottom: auto;
}

.mt-bnr-inr .hb-ai-banner-label {
  z-index: 3;
}

/* Leistungsdetailseiten */
.hb-service-copy h3 {
  margin-top: 32px;
  margin-bottom: 12px;
  text-transform: none;
}

.hb-home-contact-cta {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.hb-home-contact-cta .site-button,
.hb-home-contact-cta .site-button-secondry {
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.hb-home-phone {
  margin: 18px 0 8px;
  font: 700 28px/1.2 'Poppins', sans-serif;
}

.hb-home-phone a {
  color: #ff7900;
}

.hb-service-copy p,
.hb-service-copy li {
  font-size: 15.5px;
  line-height: 1.75;
}

.hb-check-list {
  margin: 18px 0 30px;
  padding: 0;
  list-style: none;
}

.hb-check-list li {
  position: relative;
  padding: 8px 0 8px 30px;
  border-bottom: 1px solid #e8e8e8;
}

.hb-check-list li::before {
  content: '\f00c';
  position: absolute;
  left: 0;
  top: 9px;
  color: #ff7900;
  font-family: FontAwesome;
}

.hb-detail-box {
  margin-top: 34px;
  padding: 30px;
  border-left: 4px solid #ff7900;
  background: #f5f5f5;
}

.hb-detail-box h3 {
  margin-top: 0;
}

.hb-service-aside {
  padding: 30px;
  background: #f4f4f4;
}

.hb-service-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  margin: -30px -30px 28px;
  padding: 28px;
  background: #fff;
}

.hb-service-logo img {
  width: min(100%, 310px);
  height: auto;
}

.hb-service-aside .site-button,
.hb-service-aside .site-button-secondry {
  width: 100%;
  margin-top: 10px;
  text-align: center;
}

.hb-more-services a {
  display: block;
  margin-bottom: 10px;
  padding: 16px 18px;
  background: #242424;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.hb-more-services a:hover,
.hb-more-services a:focus {
  padding-left: 24px;
  background: #ff7900;
  color: #111;
}

/* Kontaktformular */
.hb-contact-form .form-control,
.hb-contact-form select.form-control {
  min-height: 52px;
  border: 1px solid #dedede;
  border-radius: 0;
  background: #fff;
  color: #222;
}

.hb-contact-form textarea.form-control {
  min-height: 155px;
  resize: vertical;
}

.hb-contact-form label {
  display: block;
  margin-bottom: 7px;
  color: #222;
  font-weight: 600;
}

.hb-contact-form .hb-field-note {
  margin: 7px 0 0;
  color: #6d6d6d;
  font-size: 13px;
  line-height: 1.55;
}

.hb-contact-form input[type='file'] {
  height: auto;
  min-height: 52px;
  padding: 12px;
}

.hb-privacy-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 22px 0;
}

.hb-privacy-check input {
  flex: 0 0 auto;
  margin-top: 5px;
}

.hb-privacy-check label {
  margin: 0;
  font-weight: 400;
}

.hb-captcha-box {
  min-height: 78px;
  margin: 10px 0 20px;
}

.hb-captcha-note,
.hb-form-status {
  padding: 14px 16px;
  border-left: 4px solid #ff7900;
  background: #f4f4f4;
  color: #333;
  font-size: 14px;
  line-height: 1.55;
}

.hb-form-status {
  display: none;
  margin-bottom: 18px;
}

.hb-form-status.is-visible {
  display: block;
}

.hb-form-status.success {
  border-color: #279347;
}

.hb-form-status.error {
  border-color: #b42318;
}

.hb-contact-form button[disabled] {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: .62;
}

.hb-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Google-Bewertungen im Original-Raster */
.hb-review-summary {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
}

.hb-rating-number {
  color: #151515;
  font: 700 44px/1 'Poppins', sans-serif;
}

.hb-review-count,
.hb-review-meta,
.hb-review-status {
  color: #727272;
  font-size: 13px;
}

.hb-review-row {
  justify-content: center;
}

.hb-review cite {
  display: block;
  margin-bottom: 4px;
  color: #151515;
  font-style: normal;
  font-weight: 600;
}

.hb-review-status {
  margin: 0 0 22px;
  text-align: center;
}

/* Rechtstexte */
.hb-legal {
  max-width: 900px;
  margin: 0 auto;
}

.hb-legal h3 {
  margin: 34px 0 12px;
  font-size: 20px;
  line-height: 1.4;
  text-transform: none;
}

.hb-legal h3:first-child {
  margin-top: 0;
}

.hb-legal p,
.hb-legal li {
  line-height: 1.75;
}

.hb-legal-note {
  margin-bottom: 28px;
  padding: 16px 18px;
  border-left: 4px solid #ff7900;
  background: #fff;
}

/* Zweite Direktaktion: Anrufen */
.hb-call {
  position: fixed;
  right: 20px;
  bottom: 154px;
  z-index: 998;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ff7900;
  color: #151515;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .2);
  font-size: 25px;
  transition: transform .2s ease, background-color .2s ease;
}

.hb-call:hover,
.hb-call:focus {
  transform: scale(1.06);
  background: #151515;
  color: #fff;
}

.hb-call:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.hb-footer-legal {
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .hb-project-card:hover .hb-after {
    opacity: 1 !important;
  }

  .hb-project-card:hover .hb-label-before {
    opacity: 0;
  }

  .hb-project-card:hover .hb-label-after {
    opacity: 1;
  }

  .hb-compare-toggle {
    pointer-events: none;
  }
}

@media only screen and (max-width: 767px) {
  .mt-bnr-inr-entry .banner-title-outer h1.hb-banner-title {
    font-size: 16px;
    line-height: normal;
  }

  .hb-crossfade {
    aspect-ratio: 4 / 3;
  }

  .hb-project-info {
    padding: 18px;
  }

  .hb-project-note {
    margin-top: -15px;
    padding: 0 12px;
    font-size: 14px;
  }

  .hb-process-grid > [class*='col-'] {
    display: block;
  }

  .hb-process-image {
    aspect-ratio: auto;
  }

  .hb-process-image > img {
    height: 250px;
  }

  .hb-equal-project-image .mt-thum-bx {
    aspect-ratio: 4 / 3;
  }

  .hb-ai-banner-label {
    right: 8px;
    bottom: 8px;
    padding: 5px 7px;
    font-size: 9px;
  }

  .hb-detail-box,
  .hb-service-aside {
    padding: 24px 20px;
  }

  .hb-service-logo {
    margin: -24px -20px 24px;
  }

  .hb-call {
    right: 14px;
    bottom: 142px;
    width: 54px;
    height: 54px;
  }

  .hb-review-summary {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hb-crossfade img,
  .hb-crossfade-label,
  .hb-call,
  .hb-more-services a {
    transition-duration: .01ms !important;
  }
}

/* Hochauflösendes Firmenlogo im Header – größer, ohne die Headerhöhe zu verändern. */
.header-style-1 .logo-header-inner img {
  width: auto;
  height: 68px;
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
}

@media only screen and (max-width: 991px) {
  .header-style-1 .logo-header-inner img {
    height: 62px;
    max-height: 62px;
  }
}
