:root {
  --dd-footer-bg: #243b44;
  --dd-footer-bottom-bg: #0e0e0e;
  --dd-footer-text: #ffffff;
  --dd-footer-muted: #d8dde0;
  --dd-footer-gold: #d8aa57;
  --dd-footer-content-width: 1392px;
}

/*
 * Stabiler Footer für Porto.
 *
 * Wichtig:
 * 1. Den bisherigen <style>-Block aus Porto-Block 6563 entfernen.
 * 2. Diese Datei als letzte Frontend-CSS-Datei laden.
 * 3. Keine dieser Regeln außerhalb von #footer.footer-builder verwenden.
 */
#footer.footer-builder {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  background: var(--dd-footer-bg) !important;
  color: var(--dd-footer-text) !important;
  font-family: "Open Sans", Arial, sans-serif;
}

#footer.footer-builder > .porto-block,
#footer.footer-builder > .porto-block > .container-fluid {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#footer.footer-builder .dd-footer-main {
  width: 100%;
  margin: 0;
  padding: 72px 0 68px;
  background: var(--dd-footer-bg) !important;
}

#footer.footer-builder .dd-footer-grid {
  display: grid !important;
  grid-template-columns: minmax(150px, 1.15fr) minmax(280px, 2.35fr) minmax(245px, 1.75fr) minmax(245px, 1.65fr);
  gap: 0;
  align-items: start;
  width: min(var(--dd-footer-content-width), calc(100% - 60px)) !important;
  max-width: var(--dd-footer-content-width) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

#footer.footer-builder .dd-footer-col {
  min-width: 0;
  margin: 0;
  padding: 0 15px;
  color: var(--dd-footer-text) !important;
}

#footer.footer-builder .dd-footer-col--logo {
  padding-top: 12px;
}

#footer.footer-builder .dd-footer-col--last {
  text-align: center;
}

#footer.footer-builder .dd-footer-col h2,
#footer.footer-builder .dd-footer-col h3 {
  margin: 0 0 16px !important;
  color: var(--dd-footer-text) !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
}

#footer.footer-builder .dd-footer-col p,
#footer.footer-builder .dd-footer-col li,
#footer.footer-builder .dd-footer-col span,
#footer.footer-builder .dd-footer-col .widget,
#footer.footer-builder .dd-footer-col .textwidget {
  color: var(--dd-footer-text) !important;
  font-size: 16px;
  line-height: 1.65;
}

#footer.footer-builder .dd-footer-col p {
  margin: 0;
}

#footer.footer-builder .dd-footer-col--text p {
  text-align: left;
}

#footer.footer-builder .dd-footer-logo {
  display: block;
  width: 190px;
  max-width: 100% !important;
  height: auto !important;
  margin: 0 auto;
}

#footer.footer-builder .dd-contact-list {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}

#footer.footer-builder .dd-contact-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0 0 7px;
  padding: 0;
}

#footer.footer-builder .dd-contact-list i {
  color: var(--dd-footer-gold) !important;
  font-size: 17px;
  line-height: 1.65;
  text-align: center;
}

#footer.footer-builder .dd-footer-small {
  margin: 0 0 12px !important;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

#footer.footer-builder .dd-footer-phone {
  margin: 0 0 16px !important;
  font-size: clamp(28px, 2.15vw, 38px) !important;
  font-weight: 500 !important;
  line-height: 1.15 !important;
  white-space: nowrap;
}

#footer.footer-builder .dd-reviews-title {
  margin-top: 17px !important;
}

#footer.footer-builder img,
#footer.footer-builder svg,
#footer.footer-builder iframe {
  max-width: 100% !important;
  height: auto;
}

#footer.footer-builder #wkdb-widget {
  width: 100%;
  max-width: 310px;
  min-height: 112px;
  margin: 0 auto;
}

/* Footerlinks bleiben in jedem Zustand weiß; Gold nur bei Interaktion. */
#footer.footer-builder a[href],
#footer.footer-builder a[href]:link,
#footer.footer-builder a[href]:visited {
  color: var(--dd-footer-text) !important;
  text-decoration: none;
}

#footer.footer-builder a[href]:hover,
#footer.footer-builder a[href]:focus,
#footer.footer-builder a[href]:focus-visible {
  color: var(--dd-footer-gold) !important;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

#footer.footer-builder .dd-footer-bottom {
  display: flex;
  min-height: 67px;
  align-items: center;
  width: 100%;
  margin: 0;
  background: var(--dd-footer-bottom-bg) !important;
}

#footer.footer-builder .dd-footer-bottom-inner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  width: min(var(--dd-footer-content-width), calc(100% - 60px)) !important;
  max-width: var(--dd-footer-content-width) !important;
  margin: 0 auto !important;
  padding: 14px 15px !important;
  color: #8d9499 !important;
  font-size: 13px;
  line-height: 1.5;
}

#footer.footer-builder .dd-footer-legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

#footer.footer-builder .dd-footer-legal a,
#footer.footer-builder .dd-footer-legal a:visited {
  color: var(--dd-footer-muted) !important;
}

@media (max-width: 1199px) {
  #footer.footer-builder .dd-footer-grid {
    grid-template-columns: minmax(125px, 1fr) minmax(230px, 2fr) minmax(210px, 1.6fr) minmax(210px, 1.5fr);
    width: calc(100% - 30px) !important;
  }

  #footer.footer-builder .dd-footer-col h2,
  #footer.footer-builder .dd-footer-col h3 {
    font-size: 18px !important;
  }

  #footer.footer-builder .dd-footer-col p,
  #footer.footer-builder .dd-footer-col li,
  #footer.footer-builder .dd-footer-col span {
    font-size: 14px;
  }
}

@media (max-width: 991px) {
  #footer.footer-builder .dd-footer-main {
    padding: 52px 0 44px;
  }

  #footer.footer-builder .dd-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 0;
  }

  #footer.footer-builder .dd-footer-col--logo {
    padding-top: 0;
  }
}

@media (max-width: 575px) {
  #footer.footer-builder .dd-footer-main {
    padding: 42px 0 36px;
  }

  #footer.footer-builder .dd-footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    width: calc(100% - 30px) !important;
  }

  #footer.footer-builder .dd-footer-col {
    padding: 0;
  }

  #footer.footer-builder .dd-footer-col--last {
    text-align: left;
  }

  #footer.footer-builder .dd-footer-logo,
  #footer.footer-builder #wkdb-widget {
    margin-left: 0;
    margin-right: 0;
  }

  #footer.footer-builder .dd-footer-phone {
    font-size: 28px !important;
  }

  #footer.footer-builder .dd-footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    width: calc(100% - 30px) !important;
    padding: 18px 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #footer.footer-builder *,
  #footer.footer-builder *::before,
  #footer.footer-builder *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
