/* FOOTER BEREICH */
/******************/

/* =========================
   Wrapper / Global
   ========================= */
.bt-footer {
  margin-top: 60px;
}

/* =========================
   MAIN Footer (dark)
   ========================= */
.bt-footer-main {
  position: relative;
  padding: 90px 0 60px;
  background: #111;
  color: #fff;
  overflow: hidden;
}

/* =========================
   Brand / Logo
   ========================= */
.bt-footer-main__brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  width: 100%;
}

.bt-footer-main__brand img {
  width: 320px;
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0.95;
}

@media (max-width: 520px) {
  .bt-footer-main__brand img {
    width: 180px;
    max-width: 100%;
    height: auto;
  }
}

.bt-footer-main__brand-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ===== Footer Logo: von links nach rechts reinfahren ===== */

/* Footer Logo Animation – FINAL & überschreibfest */
.bt-footer-main__brand {
  opacity: 1; /* Default sichtbar */
  transform: none;
}

.bt-footer-main__brand.bt-inview {
  animation: btFooterLogoIn 4.75s cubic-bezier(0.22, 1.2, 0.36, 1) both;
}

@keyframes btFooterLogoIn {
  0% {
    opacity: 0;
    transform: translateX(-420px);
  }
  65% {
    opacity: 1;
    transform: translateX(130px); /* Overshoot */
  }
  100% {
    opacity: 1;
    transform: translateX(0); /* langsam zurück */
  }
}

@media (prefers-reduced-motion: reduce) {
  .bt-footer-main__brand.bt-inview {
    animation: none;
  }
}

/* =========================
   Social Icons
   ========================= */
.bt-footer-main__social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.bt-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.bt-social__icon svg {
  width: 23px;
  height: 23px;
  display: block;
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease;
}

.bt-social:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.bt-social:hover .bt-social__icon svg {
  stroke: #e42c8c;
}

.bt-social:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(228, 44, 140, 0.45);
}

/* =========================
   Statement
   ========================= */
.bt-footer-main__statement {
  max-width: 1100px; /* angepasst für 1500px Layout */
  margin: 0 auto 50px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

/* =========================
   Contact Bar
   ========================= */
.bt-footer-contact {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 24px 0;
  margin: 10px 0 70px;
}

.bt-footer-contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bt-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 auto;
}

.bt-contact-item__icon svg {
  width: 20px;
  height: 20px;
  display: block;
  fill: none;
  stroke: rgba(255, 255, 255, 0.75);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bt-contact-item__label {
  font-size: 12px;
  opacity: 0.75;
  margin-bottom: 4px;
}

.bt-contact-item__value {
  font-size: 13px;
  line-height: 1.4;
  opacity: 0.92;
}

.bt-footer-contact a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.bt-footer-contact a:hover {
  color: #fff;
}

/* Contact Responsive */
@media (max-width: 900px) {
  .bt-footer-contact__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .bt-footer-contact__grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   Footer Columns (Links)
   ========================= */

.bt-footer-main__cols {
  display: flex;
  justify-content: space-between;
  gap: 60px; /* kontrollierter Abstand */
  max-width: 1290px;
  margin: 0 auto;
}

/*2 Spalten, kontrolliert*/
@media (max-width: 900px) {
  .bt-footer-main__cols {
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
  }

  .bt-footer-col {
    width: calc(50% - 48px);
  }
}

/*1 Spalte*/

@media (max-width: 520px) {
  .bt-footer-col {
    width: 100%;
    max-width: 360px; /* etwas größer, weil viel Content */
  }
}

@media (max-width: 900px) {
  .bt-footer-main__cols {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }

  .bt-footer-col {
    width: calc(50% - 40px);
    text-align: center;
  }
}

.bt-footer-col__title {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.06em;
  opacity: 0.8;
  margin-bottom: 14px;
}

.bt-footer-col__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bt-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.bt-footer a:hover {
  color: #fff;
}

/* Columns Responsive */
@media (max-width: 900px) {
  .bt-footer-main {
    padding: 70px 0 40px;
  }

  .bt-footer-main__cols {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }
}

/* =========================
   Sub Footer
   ========================= */
.bt-footer-sub {
  background: #111;
  color: rgba(255, 255, 255, 0.7);
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
}

.bt-footer-sub__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.bt-footer-sub__right {
  display: flex;
  gap: 16px;
  white-space: nowrap;
}

/* Sub Footer Responsive */
@media (max-width: 900px) {
  .bt-footer-sub__inner {
    flex-direction: column;
    text-align: center;
  }

  .bt-footer-sub__right {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ==========================================================
   PRE-FOOTER CONTACT SECTION
   Zweck:
   - Globaler Kontaktbereich über dem Footer
   - Saubere Content-Breite + ruhiges Spacing
   Owner: bt-core
   ========================================================== */

/* ==========================================================
   BT PREFOOTER – Sitewide Contact Section (WPForms)
   Zweck: Premium/clean Kontaktbereich sitewide, konsistent zu BT (Pink Akzent),
          klare Hierarchie, ruhige Inputs, saubere 2-Spalten-Optik.
   Warum: WPForms Default wirkt "Plugin" statt Brand; Bereich ist auf jeder Seite sichtbar.
   Scope: Nur .bt-prefooter-contact (keine Seiteneffekte auf andere Forms)
   ========================================================== */

   @media (min-width: 981px) {
  .bt-prefooter-contact__info {
    position: sticky;
    top: calc(var(--wp-admin--admin-bar--height, 0px) + 110px);
    align-self: start;
  }
}

.bt-prefooter-contact {
  padding: 100px 0;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.bt-prefooter-contact__inner {
      max-width: 1475px;
  margin: 0 auto;
  padding: 0 40px;
}

.bt-prefooter-contact__title {
  margin: 0 0 18px;
  color: #414544;
  letter-spacing: 0;
}

/* Layout: Form + Info */
.bt-prefooter-contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

/* Form Card */
.bt-prefooter-contact__form {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 22px 22px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

/* Info Card */
.bt-prefooter-contact__info {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 18px 18px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.bt-prefooter-contact__info p {
  margin: 0 0 12px;
  color: #414544;
  font-size: 14px;
  line-height: 1.55;
}

.bt-prefooter-contact__info p strong {
  font-weight: 700;
}

.bt-prefooter-contact__faq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  margin-top: 6px;
  padding: 10px 14px;

  border-radius: 7px;
  border: 1px solid #e42c8c;
  background: #fff;

  color: #e42c8c;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.1;

  transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.bt-prefooter-contact__faq-btn:hover {
  opacity: 0.92;
color: #e42c8c;
    background: rgba(228, 44, 140, 0.06);
    outline: none;
}

/* ----------------------------
   WPForms – Scope hard (nur in diesem Block)
   ---------------------------- */
.bt-prefooter-contact .wpforms-container {
  margin: 0 !important;
}

.bt-prefooter-contact .wpforms-container .wpforms-field {
  margin: 0 0 14px !important;
}

.bt-prefooter-contact .wpforms-container .wpforms-field-label {
  margin: 0 0 6px !important;
  color: #414544 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

.bt-prefooter-contact .wpforms-container .wpforms-required-label,
.bt-prefooter-contact .wpforms-container .wpforms-field-label .wpforms-required-label {
  color: #e42c8c !important;
}

/* Inputs / Textarea / Select */
.bt-prefooter-contact .wpforms-container input[type="text"],
.bt-prefooter-contact .wpforms-container input[type="email"],
.bt-prefooter-contact .wpforms-container input[type="tel"],
.bt-prefooter-contact .wpforms-container input[type="url"],
.bt-prefooter-contact .wpforms-container input[type="number"],
.bt-prefooter-contact .wpforms-container input[type="password"],
.bt-prefooter-contact .wpforms-container select,
.bt-prefooter-contact .wpforms-container textarea,
.bt-prefooter-contact .choices__inner {
  width: 100% !important;
  box-sizing: border-box !important;

  min-height: 44px !important;
  padding: 12px 14px !important;

  border-radius: 4px !important;
  border: 1px solid rgba(0, 0, 0, 0.18) !important;
  background: #ffffff !important;

  color: #414544 !important;
  font-size: 15px !important;
  line-height: 1.2 !important;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  align-items: flex-end !important;
}

.bt-prefooter-contact .wpforms-container textarea {
  min-height: 120px !important;
  resize: vertical;
}

.bt-prefooter-contact .wpforms-container input:focus,
.bt-prefooter-contact .wpforms-container select:focus,
.bt-prefooter-contact .wpforms-container textarea:focus {
  outline: none !important;
  border-color: rgba(228, 44, 140, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(228, 44, 140, 0.10) !important;
}

/* Placeholder */
.bt-prefooter-contact .wpforms-container ::placeholder {
  color: rgba(65, 69, 68, 0.45) !important;
}

/* Radios/Checkboxes: ruhiger, etwas kompakter */
.bt-prefooter-contact .wpforms-container .wpforms-field-radio ul,
.bt-prefooter-contact .wpforms-container .wpforms-field-checkbox ul {
  margin: 8px 0 0 !important;
  padding: 0 !important;
  list-style: none !important;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}

.bt-prefooter-contact .wpforms-container .wpforms-field-radio li,
.bt-prefooter-contact .wpforms-container .wpforms-field-checkbox li {
  margin: 0 !important;
}

.bt-prefooter-contact .wpforms-container .wpforms-field-radio label,
.bt-prefooter-contact .wpforms-container .wpforms-field-checkbox label {
  display: inline-flex !important;
  align-items: flex-start !important;
  gap: 8px !important;

  color: #414544 !important;
  font-size: 14px !important;
  line-height: 1.35 !important;

  cursor: pointer;
}

/* WPForms Buttons */
.bt-prefooter-contact .wpforms-container .wpforms-submit-container {
  margin-top: 14px !important;
}

.bt-prefooter-contact .wpforms-container button[type="submit"],
.bt-prefooter-contact .wpforms-container .wpforms-submit {
  width: 100% !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 12px 18px !important;
  min-height: 46px !important;

  border-radius: 7px !important;
  border: 1px solid #e42c8c !important;
  background: #e42c8c !important;

  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.1 !important;

  cursor: pointer !important;
  transition: opacity 0.2s ease, transform 0.02s ease;
}

.bt-prefooter-contact .wpforms-container button[type="submit"]:hover,
.bt-prefooter-contact .wpforms-container .wpforms-submit:hover {
  opacity: 0.92 !important;
}

.bt-prefooter-contact .wpforms-container button[type="submit"]:active,
.bt-prefooter-contact .wpforms-container .wpforms-submit:active {
  transform: translateY(1px);
}

/* WPForms: Fehlermeldungen ruhig + BT-Pink */
.bt-prefooter-contact .wpforms-container label.wpforms-error,
.bt-prefooter-contact .wpforms-container .wpforms-error {
  color: #e42c8c !important;
  font-size: 13px !important;
  margin-top: 6px !important;
}

/* ----------------------------
   Responsive
   ---------------------------- */
@media (max-width: 980px) {
  .bt-prefooter-contact__grid {
    grid-template-columns: 1fr;
  }

  .bt-prefooter-contact__info {
    order: 2;
  }

  .bt-prefooter-contact__form {
    order: 1;
  }
}

@media (max-width: 660px) {
  .bt-prefooter-contact {
    padding: 34px 0;
  }

  .bt-prefooter-contact__form,
  .bt-prefooter-contact__info {
    padding: 18px 16px;
    border-radius: 10px;
  }

  .bt-prefooter-contact .wpforms-container .wpforms-field-radio ul,
  .bt-prefooter-contact .wpforms-container .wpforms-field-checkbox ul {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ==========================================================
   PATCH 2026-04-05 – WPForms / Choices.js Dropdown immer nach unten
   Warum:
   Choices.js setzt bei wenig Platz automatisch .is-flipped und öffnet
   das Dropdown oberhalb des Feldes. Für dieses Formular soll die Liste
   immer unterhalb des Feldes erscheinen – unabhängig von der Viewport-Position.
   Scope:
   Nur .bt-prefooter-contact, damit keine anderen WPForms/Choices-Instanzen
   auf der Website beeinflusst werden.
   ========================================================== */

.bt-prefooter-contact .choices {
  position: relative;
}

.bt-prefooter-contact .choices__list--dropdown,
.bt-prefooter-contact .choices__list[aria-expanded] {
  top: 100% !important;
  bottom: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.bt-prefooter-contact .choices.is-flipped .choices__list--dropdown,
.bt-prefooter-contact .choices.is-flipped .choices__list[aria-expanded] {
  top: 100% !important;
  bottom: auto !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
}

.bt-prefooter-contact .choices__list--dropdown .choices__list,
.bt-prefooter-contact .choices__list[aria-expanded] .choices__list {
  max-height: 260px !important;
  overflow-y: auto !important;
}