.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);
}

/* Ansprechpartner-Karten kompakter: 4 statt 3 pro Reihe (ruhig kleiner) — NUR
   für diese Section gescopet, der generische section-slider-overflow (z. B.
   Rezensionen/Related) bleibt bei 3. Weil grid-auto-columns die Kartenbreite
   fest deckelt, stehen bei wenigen Karten (z. B. 2) diese nur anteilig breit
   statt über die volle Breite gestreckt. */
.d35-footer-ansprechpartner .d35-section-slider-overflow__track {
  grid-auto-columns: calc((100% - var(--d35-gap) * 3) / 4);
}

@media (max-width: 1024px) {
  .d35-footer-ansprechpartner .d35-section-slider-overflow__track {
    grid-auto-columns: calc((100% - var(--d35-gap) * 2) / 3);
  }
}

@media (max-width: 768px) {
  .d35-footer-ansprechpartner .d35-section-slider-overflow__track {
    grid-auto-columns: minmax(16rem, calc(100% - 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;
}

/* Sprungziel des Topbar-Links „Standorte & Öffnungszeiten“. */
.d35-footer__locations {
  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;
}

/* --------------------------------------------------------------------------
   Multi-Step ("Multiform") Wizard — die Step-Navigation und der
   Fortschrittsbalken werden von fluentform-advanced.js zur Laufzeit injiziert
   und tragen daher NICHT die oben gestylten Submit-Klassen. Ohne diese Regeln
   wirken nur mehrstufige Formulare ungestylt (Single-Step sieht ok aus).
   -------------------------------------------------------------------------- */

/* Step-Fortschrittsbalken */
.d35-footer-contact .ff-el-progress {
  height: 0.5rem !important;
  margin-bottom: clamp(1.25rem, 3vw, 2rem) !important;
  border-radius: 999px !important;
  background: color-mix(in srgb, var(--d35-color-text) 15%, transparent) !important;
  overflow: hidden;
}

.d35-footer-contact .ff-el-progress-bar {
  height: 100% !important;
  min-width: 0 !important;
  border-radius: inherit !important;
  background: var(--d35-color-primary) !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0.5rem !important;
  transition: width 0.3s ease;
}

/* Step-Titel / Kopfzeile über dem Formular */
.d35-footer-contact .ff-step-header {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}

.d35-footer-contact .ff-step-titles li {
  color: var(--d35-color-muted) !important;
  font: inherit !important;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem) !important;
}

.d35-footer-contact .ff-step-titles li.active {
  color: var(--d35-color-text) !important;
  font-weight: 600 !important;
}

/* Navigations-Container (hält Zurück-/Weiter-/Absenden-Buttons) */
.d35-footer-contact .ff-step-t-container,
.d35-footer-contact .ff-inner_submit_container {
  display: flex !important;
  flex-wrap: wrap;
  gap: clamp(0.75rem, 2vw, 1.25rem) !important;
  align-items: center;
}

/* Weiter-/Zurück-Buttons erben die Submit-Geometrie … */
.d35-footer-contact .ff-btn-next,
.d35-footer-contact .ff-btn-prev {
  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;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease;
}

.d35-footer-contact .ff-btn-next:hover,
.d35-footer-contact .ff-btn-next:focus-visible {
  transform: translateY(-1px);
  background: var(--d35-color-primary-hover) !important;
  color: var(--d35-color-surface) !important;
}

/* … der Zurück-Button als sekundäre (Outline-)Variante. */
.d35-footer-contact .ff-btn-prev {
  background: transparent !important;
  color: var(--d35-color-text) !important;
  border-color: color-mix(in srgb, var(--d35-color-text) 40%, transparent) !important;
}

.d35-footer-contact .ff-btn-prev:hover,
.d35-footer-contact .ff-btn-prev:focus-visible {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--d35-color-text) 8%, transparent) !important;
  border-color: var(--d35-color-text) !important;
  color: var(--d35-color-text) !important;
}

.d35-footer-contact .ff-btn-next:focus-visible,
.d35-footer-contact .ff-btn-prev: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-contact .ff-step-t-container,
  .d35-footer-contact .ff-inner_submit_container {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .d35-footer-contact .ff-btn-next,
  .d35-footer-contact .ff-btn-prev {
    width: 100%;
  }
}

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

.d35-footer__inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 3.5vw, 3rem);
  width: min(100%, var(--d35-container));
  margin: 0 auto;
  /* Oben bewusst schlanker als unten — der Footer soll nicht so „leer“ oben
   * wirken (v. a. mit dem Newsletter/Socials-Row). */
  padding: clamp(1.4rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 2rem) clamp(2.5rem, 5vw, 5rem);
}

.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;
  /* 2:1-Logo — 200px ergäben ~100px Höhe. Schmaler halten (≈75px hoch). */
  width: min(150px, 50vw);
}

.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.27rem;
  height: 2.27rem;
}

/* -----------------------------------------------------------------------------
 * Newsletter (optional, oben rechts): kompaktes inline FluentForm (E-Mail + Btn)
 * --------------------------------------------------------------------------- */
.d35-footer__top-left {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
}

/* Ohne Newsletter-Block (dann fehlt .d35-footer__newsletter im Markup) füllt die
   Logo/Socials-Gruppe die ganze Reihe und verteilt sich: Logo links, Social-Icons
   rechts. Mit Newsletter bleibt die Gruppe kompakt links, Newsletter rechts. */
.d35-footer__top:not(:has(.d35-footer__newsletter)) .d35-footer__top-left {
  flex: 1 1 auto;
  justify-content: space-between;
}

.d35-footer__newsletter {
  position: relative;
  /* Wächst in die freie Fläche rechts (schließt die große Lücke zwischen
     Social-Icons und Newsletter), aber gedeckelt, damit Input + Button nicht
     übermäßig breit werden. */
  flex: 1 1 30rem;
  max-width: 36rem;
  margin-left: auto;
  /* Raum für das absolut positionierte Label-Heading (siehe unten), damit
   * Input + Button auf einer Linie sitzen statt vom Label auseinandergezogen. */
  padding-top: 2.4rem;
}

/* FluentForm zurücksetzen + inline: E-Mail-Feld wächst, Button daneben. */
.d35-footer__newsletter .fluentform,
.d35-footer__newsletter .frm-fluent-form,
.d35-footer__newsletter form,
.d35-footer__newsletter fieldset {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* FluentForm setzt fieldset/Zellen teils auf position:relative — dann würde das
 * absolut positionierte Label-Heading an der Zelle statt am Block andocken und
 * den Input nach unten drücken. Alle inneren Wrapper auf static zwingen, damit
 * das Label am .d35-footer__newsletter (position:relative) hängt. */
.d35-footer__newsletter form,
.d35-footer__newsletter fieldset,
.d35-footer__newsletter .ff-t-container,
.d35-footer__newsletter .ff-t-cell,
.d35-footer__newsletter .ff-el-group,
.d35-footer__newsletter .ff-el-input--content {
  position: static !important;
}

.d35-footer__newsletter .ff-t-container {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: flex-end !important;
  gap: 0.6rem;
}

/* Button-Zelle zusätzlich hart nach unten (auf Input-Höhe) ziehen — FluentForm
 * stretcht Zellen sonst und der Button landet oben neben der Überschrift. */
.d35-footer__newsletter .ff-t-cell:last-child {
  align-self: flex-end !important;
}

.d35-footer__newsletter .ff_submit_btn_wrapper {
  display: flex !important;
  align-items: flex-end !important;
}

/* FluentForm setzt die Zellen per Inline-Style (flex-basis 74%/25%) — hart
 * überschreiben: E-Mail-Zelle wächst voll, Button-Zelle schrumpft auf Inhalt
 * und sitzt bündig neben dem Feld. */
.d35-footer__newsletter .ff-t-cell {
  padding: 0 !important;
  flex: 0 0 auto !important;
  flex-basis: auto !important;
  width: auto !important;
}

.d35-footer__newsletter .ff-t-cell:first-child {
  flex: 1 1 auto !important;
  flex-basis: auto !important;
  min-width: 0;
}

.d35-footer__newsletter .ff-el-group,
.d35-footer__newsletter .ff_submit_btn_wrapper {
  margin-bottom: 0 !important;
  max-width: none !important;
}

/* Das Form-Label IST die Überschrift (a11y wichtig) — als Heading stylen und
 * aus dem Flow nehmen (absolut über dem Formular), sodass Input + Button auf
 * einer Linie liegen. */
.d35-footer__newsletter .ff-el-input--label {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 !important;
}

.d35-footer__newsletter .ff-el-input--label label {
  display: block;
  margin: 0 !important;
  color: var(--d35-color-surface) !important;
  font: inherit !important;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem) !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* Pflicht-Sternchen im schlanken Newsletter ausblenden. */
.d35-footer__newsletter .ff-el-input--label .ff-el-is-required,
.d35-footer__newsletter .ff-el-input--label label::after {
  display: none !important;
  content: none !important;
}

.d35-footer__newsletter input[type="email"],
.d35-footer__newsletter .ff-el-form-control {
  width: 100%;
  /* Exakte Höhe + border-box, damit Input UND Button (gleiche Höhe unten)
     deckungsgleich sind — sonst rendert content-box das Feld durch sein Padding
     höher als den Button. */
  box-sizing: border-box !important;
  height: 3.1rem !important;
  min-height: 3.1rem !important;
  padding: 0.6rem 1rem !important;
  border: 1px solid color-mix(in srgb, var(--d35-color-text) 78%, transparent) !important;
  border-radius: 4px !important;
  background-color: #fff !important;
  color: var(--d35-color-text) !important;
  box-shadow: none !important;
  font: inherit !important;
  font-size: 1rem !important;
}

.d35-footer__newsletter input[type="email"]::placeholder,
.d35-footer__newsletter .ff-el-form-control::placeholder {
  color: var(--d35-color-muted) !important;
  opacity: 0.62 !important;
}

.d35-footer__newsletter input[type="email"]:focus,
.d35-footer__newsletter .ff-el-form-control:focus {
  border-color: var(--d35-color-primary) !important;
  outline: 2px solid color-mix(in srgb, var(--d35-color-primary) 25%, transparent) !important;
  outline-offset: 1px;
}

.d35-footer__newsletter .ff-btn-submit,
.d35-footer__newsletter button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* Deckungsgleich mit dem Input (siehe dort): exakte Höhe + border-box. */
  box-sizing: border-box !important;
  height: 3.1rem !important;
  min-height: 3.1rem !important;
  /* FluentForm gibt dem Submit-Button ab 768px ein margin-bottom:20px
     (.ff_submit_btn_wrapper_custom button) → schiebt ihn über die Input-Linie.
     Hart auf 0, damit align-items:flex-end Button und Input bündig setzt. */
  margin-bottom: 0 !important;
  padding: 0.6rem 1.4rem !important;
  border: 1px solid transparent !important;
  border-radius: var(--d35-radius-button, 6px) !important;
  background: var(--d35-color-primary) !important;
  color: var(--d35-color-surface) !important;
  font: inherit !important;
  font-weight: 600 !important;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease;
}

.d35-footer__newsletter .ff-btn-submit:hover,
.d35-footer__newsletter button[type="submit"]:hover {
  background: var(--d35-color-primary-hover, var(--d35-color-primary)) !important;
}

/* Erfolgs-/Hinweis-Meldung auf dunklem Footer-BG sichtbar machen (hell). */
.d35-footer__newsletter .ff-message-success,
.d35-footer__newsletter .ff_submit_success {
  margin: 0 !important;
  padding: 0.85rem 1.1rem !important;
  color: var(--d35-color-surface) !important;
  background: color-mix(in srgb, var(--d35-color-surface) 10%, transparent) !important;
  border: 1px solid color-mix(in srgb, var(--d35-color-surface) 35%, transparent) !important;
  border-radius: 6px !important;
  font-size: 0.95rem !important;
  line-height: 1.4 !important;
}

.d35-footer__newsletter .ff-message-success *,
.d35-footer__newsletter .ff_submit_success * {
  color: inherit !important;
}

/* Footer-Top stapelt ab 767px (align-items:flex-start → kein Stretch), darum
 * den Newsletter hier explizit auf volle Breite ziehen. */
@media (max-width: 767px) {
  .d35-footer__newsletter {
    width: 100%;
    /* Voll breit wie die Standort-Tabs darunter — der Desktop-Deckel (36rem)
       würde den Block sonst bei 600–767px schmaler halten. */
    max-width: none;
    margin-left: 0;
    /* Footer-Top ist hier eine Flex-SPALTE → die flex-basis (30rem) vom Desktop
       würde zur HÖHE und risse eine riesige Lücke auf. Auf Inhalts-Höhe setzen. */
    flex: 0 0 auto;
  }

  .d35-footer__top-left {
    width: 100%;
  }
}

.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;
  /* Content links kompakt (Adresse sichtbar, Öffnungszeiten/Telefon als
     Akkordion), Karte bekommt ~2/3 (1:2) — so bleibt links kein Leerraum-Loch
     und die Karte wirkt präsent statt gequetscht. */
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 2fr);
  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;
}

/* Kartenspalte auf die (meist höhere) Content-Spalte strecken, damit die Karte
   die vorhandene Höhe füllt statt kurz zu enden. Die Höhe wird durch die Panels
   → aktives Panel → Karte durchgereicht (jeweils display:grid streckt das Kind);
   min-height an der Karte sichert den Fall kurzer Content-Spalten ab. */
.d35-footer__branch-map-panels {
  align-self: stretch;
  display: grid;
  min-height: 0;
}

.d35-footer__branch-map-panel--active {
  display: grid;
  min-height: 0;
}

.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: 0.85rem;
  max-width: 42rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 3-Spalten-Standort-Layout (Option footer_branch_layout=columns): drei gleich
   breite Spalten — Adresse + Öffnungszeiten | Telefon | Karte. Das äußere Grid
   hat drei gleiche Spuren; die Content-Spalte spannt Spur 1–2 und teilt sich
   intern in zwei gleiche Hälften mit DEMSELBEN Gap, sodass alle drei Spalten
   pixelgleich breit sind. Die Karte fällt automatisch in Spur 3.
   Öffnungszeiten/Telefon stehen hier ausgeklappt (kein Akkordion). */
.d35-footer--branch-columns .d35-footer__branch-layout {
  grid-template-columns: repeat(3, 1fr);
}

.d35-footer--branch-columns .d35-footer__branch-content-column {
  grid-column: 1 / 3;
}

.d35-footer__branch-details--columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* muss dem Gap von .d35-footer__branch-layout entsprechen → gleiche Gutter */
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: none;
}

.d35-footer__branch-details-group {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  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);
}

/* Öffnungszeiten & Telefon im Footer als Ein-Klick-Akkordion (natives <details>);
   Adresse bleibt immer sichtbar, damit der Content links kompakt bleibt. */

/* Das <details> füllt die Flex-Zeile (neben dem Icon), damit die Summary volle
   Breite hat und der Chevron (space-between) rechtsbündig sitzt statt am Label. */
.d35-footer__branch-detail--accordion .d35-footer__branch-detail-content {
  flex: 1 1 auto;
  min-width: 0;
}

.d35-footer__branch-detail--accordion .d35-footer__branch-detail-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  list-style: none;
}

.d35-footer__branch-detail--accordion .d35-footer__branch-detail-label::-webkit-details-marker {
  display: none;
}

.d35-footer__branch-detail--accordion .d35-footer__branch-detail-label::after {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.15rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  opacity: 0.7;
}

.d35-footer__branch-detail-content[open] .d35-footer__branch-detail-label::after {
  transform: rotate(-135deg);
}

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

.d35-footer__branch-detail--accordion .d35-footer__branch-detail-text {
  display: block;
  margin-top: 0.5rem;
}

/*
 * Hervorgehobene Kontakt-/Öffnungszeiten-Gruppe ([!Name] im Filiale-Feld, z. B.
 * Notruf). Hier definiert, weil der Footer global lädt — greift damit auch in
 * der Map-Section-Card. Akzent + dezenter Tint funktioniert auf hellem wie
 * dunklem Grund (halbtransparentes Primary).
 */
.d35-contact-highlight {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-left: 3px solid var(--d35-color-primary);
  border-radius: 6px;
  /* Tint aus der Primärfarbe ableiten (White-Label): sonst beißt sich ein
     literales Blau mit einer projektspezifisch überschriebenen --d35-color-primary. */
  background: color-mix(in srgb, var(--d35-color-primary) 12%, transparent);
  font-weight: 600;
}

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

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

.d35-footer__branch-map {
  position: relative;
  overflow: hidden;
  /* Füllt die gestreckte Panel-Höhe (Content-Spalte); min-height bleibt Floor.
     Floor bewusst moderat, damit die Karte neben der kompakteren 2-Spalten-
     Content-Seite nicht übergroß wirkt. */
  height: 100%;
  min-height: clamp(12rem, 16vw, 18rem);
  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;
}

/* Copyright + "powered by digital35" links gestapelt, damit powered direkt
   unter dem Copyright sitzt (kleiner Abstand). Menü bleibt rechts, oben-bündig. */
.d35-footer__bottom {
  align-items: flex-start;
}

.d35-footer__bottom-left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.d35-footer__powered {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgb(255 255 255 / 0.72);
}

.d35-footer__powered-line {
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

.d35-footer__powered-label {
  font-size: 0.8rem;
  line-height: 1.2;
}

.d35-footer__powered-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  transition: opacity 0.2s ease;
}

.d35-footer__powered-link:hover,
.d35-footer__powered-link:focus-visible {
  opacity: 0.75;
}

.d35-footer__powered-logo {
  display: block;
  width: auto;
  height: 22px;
}

.d35-footer__legal {
  /* Kleingedrucktes einen Tick höher — ~13 % weniger Abstand als der
     Inner-Gap (clamp 2–4rem), proportional/responsive. */
  margin-top: calc(clamp(2rem, 4vw, 4rem) * -0.13);
  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,
  .d35-footer--branch-columns .d35-footer__branch-layout {
    grid-template-columns: 1fr;
  }

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