.d35-footer-ansprechpartner,
.d35-footer-rezensionen,
.d35-footer-related {
  padding-block: var(--d35-section-y);
  background: var(--d35-color-body-bg);
  color: var(--d35-color-text);
}

.d35-footer-ansprechpartner__inner,
.d35-footer-rezensionen__inner,
.d35-footer-related__inner {
  width: min(100%, var(--d35-container));
  margin-inline: auto;
  padding-inline: var(--d35-gap);
}

.d35-footer-ansprechpartner__inner > .d35-section-header,
.d35-footer-rezensionen__inner > .d35-section-header,
.d35-footer-related__inner > .d35-section-header {
  margin-bottom: var(--d35-gap);
}

/* Sprungziel des „Preise checken“-CTA — wie die Kontakt-Section vom Sticky-
   Header/Admin-Bar freihalten, damit scrollIntoView nicht darunter landet. */
[data-d35-footer-payment-section] {
  scroll-margin-top: 6rem;
}

.d35-footer-contact {
  scroll-margin-top: 6rem;
  padding-block: var(--d35-section-y);
  background: var(--d35-color-body-bg);
  color: var(--d35-color-text);
}

.d35-footer-contact:focus:not(:focus-visible) {
  outline: none;
}

/* Fixer CTA-Stack unten mittig — hält den Kontakt-CTA (primär) und den
   „Preise checken“-CTA (sekundär) nebeneinander. Beide zeigen sich unabhängig,
   statt sich zu überlappen. */
.d35-footer-cta-stack {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  z-index: 80;
  width: max-content;
  max-width: calc(100vw - 2rem);
  margin-inline: auto;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
  align-items: stretch;
  /* Lücken zwischen den CTAs blockieren keine Klicks; die CTAs re-aktivieren. */
  pointer-events: none;
}

.d35-footer-cta-stack > * {
  pointer-events: auto;
}

.d35-footer-contact-cta,
.d35-footer-payment-cta {
  text-align: center;
  box-shadow: 0 0.75rem 2rem rgb(0 0 0 / 0.18);
  /* Leicht transparent, damit der Inhalt dahinter noch durchschimmert. Der
     Hidden-Zustand (opacity: 0) überschreibt das weiter unten. */
  opacity: 0.85;
  transform: translateY(0);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    background-color 180ms ease;
}

.d35-footer-contact-cta:hover,
.d35-footer-payment-cta:hover,
.d35-footer-contact-cta:focus-visible,
.d35-footer-payment-cta:focus-visible {
  /* Beim Interagieren voll deckend — dann liest niemand dahinter. */
  opacity: 1;
}

.d35-footer-contact-cta:hover,
.d35-footer-contact-cta:focus-visible {
  background: var(--d35-color-primary-hover);
  color: var(--d35-color-surface);
  text-decoration: none;
  transform: translateY(-1px);
}

.d35-footer-payment-cta:hover,
.d35-footer-payment-cta:focus-visible {
  text-decoration: none;
  transform: translateY(-1px);
}

.d35-footer-contact-cta:focus-visible,
.d35-footer-payment-cta:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--d35-color-primary) 35%, transparent);
  outline-offset: 3px;
}

.d35-footer-cta--hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(0.75rem);
}

.d35-footer-contact__inner {
  width: min(100%, var(--d35-container));
  margin-inline: auto;
  padding-inline: var(--d35-gap);
}

.d35-footer-contact__inner > .d35-section-header {
  margin-bottom: var(--d35-gap);
}

.d35-footer-contact__inner > .fluentform,
.d35-footer-contact__inner > .frm-fluent-form,
.d35-footer-contact .fluentform form,
.d35-footer-contact .frm-fluent-form form {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.d35-footer-contact .ff-el-group,
.d35-footer-contact .ff-el-input--content,
.d35-footer-contact .ff-el-form-control {
  max-width: none !important;
}

.d35-footer-contact .ff-t-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
}

.d35-footer-contact .ff-t-cell {
  padding: 0 !important;
}

.d35-footer-contact .ff-el-group {
  margin-bottom: clamp(1.25rem, 3vw, 2rem) !important;
}

.d35-footer-contact .ff-el-input--label label {
  margin-bottom: 0.6rem !important;
  color: var(--d35-color-text) !important;
  font: inherit !important;
  font-size: clamp(1rem, 1.5vw, 1.25rem) !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
}

.d35-footer-contact .ff-el-input--label .required,
.d35-footer-contact .ff-el-input--label label .required {
  color: var(--d35-color-primary) !important;
}

.d35-footer-contact .ff-el-form-control,
.d35-footer-contact input[type="text"],
.d35-footer-contact input[type="email"],
.d35-footer-contact input[type="tel"],
.d35-footer-contact input[type="url"],
.d35-footer-contact input[type="number"],
.d35-footer-contact select,
.d35-footer-contact textarea {
  width: 100%;
  min-height: 3.25rem !important;
  padding: 0.65rem 1rem !important;
  border: 1px solid color-mix(in srgb, var(--d35-color-text) 78%, transparent) !important;
  border-radius: 4px !important;
  background-color: var(--d35-color-surface) !important;
  color: var(--d35-color-text) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: clamp(1rem, 1.4vw, 1.18rem) !important;
  line-height: 1.35 !important;
}

.d35-footer-contact textarea,
.d35-footer-contact textarea.ff-el-form-control {
  min-height: clamp(12rem, 22vw, 18rem) !important;
  resize: vertical;
}

.d35-footer-contact .ff-el-form-control:focus,
.d35-footer-contact input:focus,
.d35-footer-contact select:focus,
.d35-footer-contact textarea:focus {
  border-color: var(--d35-color-primary) !important;
  outline: 2px solid color-mix(in srgb, var(--d35-color-primary) 25%, transparent) !important;
  outline-offset: 2px;
}

.d35-footer-contact .ff-el-form-control::placeholder,
.d35-footer-contact input::placeholder,
.d35-footer-contact textarea::placeholder {
  color: var(--d35-color-muted) !important;
  opacity: 0.62 !important;
}

.d35-footer-contact .ff-el-is-error .ff-el-form-control,
.d35-footer-contact .ff-el-form-control[aria-invalid="true"] {
  border-color: var(--d35-color-error) !important;
}

.d35-footer-contact .error,
.d35-footer-contact .text-danger {
  margin-top: 0.4rem;
  color: var(--d35-color-error);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.d35-footer-contact .ff_submit_btn_wrapper {
  margin-bottom: 0 !important;
}

.d35-footer-contact .ff-btn-submit,
.d35-footer-contact button[type="submit"],
.d35-footer-contact input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem !important;
  padding: 0.98rem 1.45rem !important;
  border: 1px solid transparent !important;
  border-radius: var(--d35-radius-button) !important;
  background: var(--d35-color-primary) !important;
  color: var(--d35-color-surface) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  text-align: center !important;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.d35-footer-contact .ff-btn-submit:hover,
.d35-footer-contact .ff-btn-submit:focus-visible,
.d35-footer-contact button[type="submit"]:hover,
.d35-footer-contact button[type="submit"]:focus-visible,
.d35-footer-contact input[type="submit"]:hover,
.d35-footer-contact input[type="submit"]:focus-visible {
  transform: translateY(-1px);
  border-color: transparent !important;
  background: var(--d35-color-primary-hover) !important;
  color: var(--d35-color-surface) !important;
}

.d35-footer-contact .ff-btn-submit:focus-visible,
.d35-footer-contact button[type="submit"]:focus-visible,
.d35-footer-contact input[type="submit"]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--d35-color-primary) 35%, transparent) !important;
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .d35-footer-cta-stack {
    width: calc(100vw - 2rem);
  }

  /* Zwei CTAs teilen sich die Breite gleichmäßig (einzelner CTA = volle Breite). */
  .d35-footer-cta-stack > * {
    flex: 1 1 0;
    min-width: 0;
  }

  .d35-footer-contact .ff-t-container {
    grid-template-columns: minmax(0, 1fr);
  }

  .d35-footer-contact .ff-btn-submit {
    width: 100%;
  }
}

.d35-footer {
  color: var(--d35-color-surface);
  background: var(--d35-color-dark);
}

.d35-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 4rem);
  width: min(100%, var(--d35-container));
  margin: 0 auto;
  padding: clamp(2.5rem, 5vw, 5rem) clamp(1.25rem, 4vw, 2rem);
}

.d35-footer__top,
.d35-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.d35-footer__logo-link {
  display: inline-flex;
  width: min(200px, 55vw);
}

.d35-footer__logo-img {
  display: block;
  width: 100%;
  height: auto;
}

.d35-footer__socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.d35-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  opacity: 0.72;
  transition: opacity 160ms ease;
}

.d35-footer__socials a:hover {
  opacity: 1;
}

.d35-footer__socials svg {
  width: 2.0625rem;
  height: 2.0625rem;
}

.d35-footer__locations {
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(1rem, 2vw, 1.5rem);
  background: rgb(255 255 255 / 0.035);
  border-top: 1px solid rgb(255 255 255 / 0.18);
  border-bottom: 1px solid rgb(255 255 255 / 0.18);
  border-radius: var(--d35-radius);
}

.d35-footer__location-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.d35-footer__location-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  color: inherit;
  font: inherit;
  line-height: 1.2;
  text-align: center;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 0.78);
  border-radius: 4px;
  cursor: pointer;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.d35-footer__location-tab:hover,
.d35-footer__location-tab:focus-visible {
  background: rgb(255 255 255 / 0.12);
  border-color: var(--d35-color-surface);
}

.d35-footer__location-tab:focus-visible {
  outline: 2px solid var(--d35-color-surface);
  outline-offset: 2px;
}

.d35-footer__location-tab--active,
.d35-footer__location-tab[aria-selected="true"] {
  color: var(--d35-color-text);
  background: var(--d35-color-surface);
  border-color: var(--d35-color-surface);
}

.d35-footer__location-panels {
  min-height: 5rem;
}

.d35-footer__location-panel[hidden] {
  display: none;
}

.d35-footer__location {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.d35-footer__location-heading {
  margin: 0;
  color: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.d35-footer__branch-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 0.62fr) minmax(24rem, 1.38fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.d35-footer__branch-content-column {
  min-width: 0;
}

.d35-footer__branch-select {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 2.75rem 0.65rem 0.9rem;
  color: inherit;
  font: inherit;
  line-height: 1.2;
  background:
    linear-gradient(45deg, transparent 50%, currentColor 50%) right 1.1rem center / 0.45rem 0.45rem no-repeat,
    color-mix(in srgb, var(--d35-color-surface) 2%, var(--d35-color-dark));
  border: 1px solid rgb(255 255 255 / 0.45);
  border-radius: var(--d35-radius);
  appearance: none;
}

.d35-footer__branch-select:hover,
.d35-footer__branch-select:focus-visible {
  border-color: var(--d35-color-surface);
}

.d35-footer__branch-select:focus-visible {
  outline: 2px solid var(--d35-color-surface);
  outline-offset: 2px;
}

.d35-footer__branch-panels {
  margin-top: 1rem;
}

.d35-footer__branch-panel {
  padding: 0;
}

.d35-footer__branch-panel[hidden] {
  display: none;
}

.d35-footer__branch-map-panel[hidden] {
  display: none;
}

.d35-footer__branch-body {
  max-width: 42rem;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.95rem;
  line-height: 1.6;
}

.d35-footer__branch-body > :first-child {
  margin-top: 0;
}

.d35-footer__branch-body > :last-child {
  margin-bottom: 0;
}

.d35-footer__branch-details {
  display: grid;
  gap: 1rem;
  max-width: 42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.d35-footer__branch-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgb(255 255 255 / 0.82);
  font-size: 0.95rem;
  line-height: 1.6;
}

.d35-footer__branch-detail-icon {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.25em;
  color: rgb(255 255 255 / 0.6);
}

.d35-footer__branch-detail-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.d35-footer__branch-detail-content {
  display: grid;
  gap: 0.125rem;
}

.d35-footer__branch-detail-label {
  color: var(--d35-color-surface);
  font-weight: 600;
}

.d35-footer__branch-detail-text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.d35-footer__branch-detail-text a:hover {
  color: var(--d35-color-surface);
}

.d35-footer__branch-cta {
  margin-top: 1rem;
}

.d35-footer__branch-link {
  width: auto;
}

.d35-footer__branch-map {
  position: relative;
  overflow: hidden;
  min-height: clamp(20rem, 28vw, 30rem);
  border: 1px solid rgb(255 255 255 / 0.22);
  border-radius: var(--d35-radius);
  background: color-mix(in srgb, var(--d35-color-primary) 18%, var(--d35-color-dark));
  isolation: isolate;
}

.d35-footer__branch-map-placeholder {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0)),
    repeating-linear-gradient(
      0deg,
      rgb(255 255 255 / 0.08) 0,
      rgb(255 255 255 / 0.08) 1px,
      transparent 1px,
      transparent 42px
    ),
    repeating-linear-gradient(
      90deg,
      rgb(255 255 255 / 0.08) 0,
      rgb(255 255 255 / 0.08) 1px,
      transparent 1px,
      transparent 42px
    );
  filter: blur(2px);
  transform: scale(1.04);
}

.d35-footer__branch-map-consent {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  background: rgb(0 0 0 / 0.34);
  backdrop-filter: blur(8px);
}

.d35-footer__branch-map-title,
.d35-footer__branch-map-text {
  max-width: 22rem;
  margin: 0;
}

.d35-footer__branch-map-title {
  font-weight: 700;
}

.d35-footer__branch-map-text {
  color: rgb(255 255 255 / 0.76);
  font-size: 0.9rem;
  line-height: 1.45;
}

.d35-footer__branch-map-button {
  min-height: 2.5rem;
  padding: 0.65rem 1rem;
  color: var(--d35-color-text);
  font: inherit;
  font-weight: 600;
  line-height: 1;
  background: var(--d35-color-surface);
  border: 1px solid var(--d35-color-surface);
  border-radius: var(--d35-radius-button);
  cursor: pointer;
}

.d35-footer__branch-map-button:hover,
.d35-footer__branch-map-button:focus-visible {
  background: rgb(255 255 255 / 0.9);
}

.d35-footer__branch-map-button:focus-visible {
  outline: 2px solid var(--d35-color-surface);
  outline-offset: 3px;
}

.d35-footer__branch-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.d35-footer__branch-map--loaded .d35-footer__branch-map-placeholder,
.d35-footer__branch-map--loaded .d35-footer__branch-map-consent {
  display: none;
}

.d35-footer__copyright {
  color: rgb(255 255 255 / 0.82);
  font-size: 0.875rem;
}

.d35-footer__legal {
  color: rgb(255 255 255 / 0.56);
  font-size: 0.7rem;
  line-height: 1.45;
}

.d35-footer__legal > :first-child {
  margin-top: 0;
}

.d35-footer__legal > :last-child {
  margin-bottom: 0;
}

.d35-footer__legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.d35-footer .d35-footer-menu {
  color: inherit;
}

@media (max-width: 767px) {
  .d35-footer__top,
  .d35-footer__bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .d35-footer__location-tab {
    width: 100%;
  }

  .d35-footer__branch-layout {
    grid-template-columns: 1fr;
  }
}
