/* =========================================================
   FEWOlution – Footer
   Eigenständiges Modul, beeinflusst nur Elemente mit .fewo-footer
   Farben aus dem Design-System der Detailseiten (styles.css v3.3)
   ========================================================= */

.fewo-footer {
  --f-blue: #6791A4;
  --f-blue-dark: #3f6f84;
  --f-gold: #D39D2F;
  --f-gold-dark: #9b6d10;
  --f-ink: #213944;
  --f-muted: #5f7580;
  --f-line: rgba(103, 145, 164, .18);

  box-sizing: border-box;
  width: min(1480px, 100% - 32px);
  margin: 64px auto 16px;
  text-align: left;
  font: 400 15px/1.5 Arial, Helvetica, sans-serif;
  color: var(--f-ink);
}
.fewo-footer *,
.fewo-footer *::before,
.fewo-footer *::after { box-sizing: border-box; }

.fewo-footer__inner {
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(103, 145, 164, .14);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(211, 157, 47, .10) 0%, rgba(211, 157, 47, 0) 55%),
    radial-gradient(90% 120% at 0% 100%, rgba(103, 145, 164, .14) 0%, rgba(103, 145, 164, 0) 60%),
    linear-gradient(180deg, #f8fbfc 0%, #eef4f7 100%);
}

/* ---------- CTA-Band für Vermieter ---------- */
.fewo-footer__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 20px 20px 0;
  padding: 28px 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, #3f6f84 0%, #213944 100%);
  color: #fff;
  box-shadow: 0 20px 44px rgba(33, 57, 68, .22);
}
.fewo-footer__cta-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--f-gold);
}
.fewo-footer__cta-title {
  margin: 0 0 6px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: #fff;
}
.fewo-footer__cta-text { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .78); }
.fewo-footer__cta-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  background: var(--f-gold);
  color: #fff !important;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 10px 24px rgba(211, 157, 47, .35);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.fewo-footer__cta-btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.fewo-footer__cta-btn:hover { background: #c28c20; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(211, 157, 47, .45); }
.fewo-footer__cta-btn:hover svg { transform: translateX(3px); }
.fewo-footer__cta-btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* ---------- Hauptbereich ---------- */
.fewo-footer__main {
  display: grid;
  grid-template-columns: minmax(240px, 1.6fr) repeat(3, minmax(140px, 1fr));
  gap: 40px 32px;
  padding: 48px 52px 40px;
}

.fewo-footer__logo { display: inline-block; line-height: 0; }
.fewo-footer__logo img { width: 190px; height: auto; }
.fewo-footer__claim { max-width: 32ch; margin: 16px 0 20px; font-size: 15px; color: var(--f-muted); }

.fewo-footer__social { display: flex; gap: 10px; }
.fewo-footer__social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--f-line);
  color: var(--f-blue-dark) !important;
  box-shadow: 0 6px 16px rgba(33, 57, 68, .07);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.fewo-footer__social svg { width: 19px; height: 19px; }
.fewo-footer__social a:hover { background: var(--f-blue-dark); color: #fff !important; transform: translateY(-2px); }
.fewo-footer__social a:focus-visible { outline: 2px solid var(--f-gold); outline-offset: 2px; }

.fewo-footer__heading {
  margin: 6px 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--f-gold-dark);
}
.fewo-footer__links { margin: 0; padding: 0; list-style: none; }
.fewo-footer__links li { margin: 0; }
.fewo-footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--f-ink) !important;
  text-decoration: none !important;
  transition: color .15s ease;
}
.fewo-footer__links a::after {
  content: "";
  width: 0;
  height: 2px;
  margin-left: -6px;
  border-radius: 2px;
  background: var(--f-gold);
  transition: width .2s ease, margin .2s ease;
}
.fewo-footer__links a:hover { color: var(--f-blue-dark) !important; }
.fewo-footer__links a:hover::after { width: 12px; margin-left: 0; }
.fewo-footer__links a:focus-visible { outline: 2px solid var(--f-gold); outline-offset: 2px; border-radius: 4px; }
.fewo-footer__ext { width: 12px; height: 12px; opacity: .5; }

/* ---------- Fusszeile ---------- */
.fewo-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0 52px;
  padding: 20px 0 24px;
  border-top: 1px solid var(--f-line);
  font-size: 13.5px;
  color: var(--f-muted);
}
.fewo-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.fewo-footer__legal a { color: var(--f-muted) !important; text-decoration: none !important; font-weight: 600; }
.fewo-footer__legal a:hover { color: var(--f-blue-dark) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.fewo-footer__legal a:focus-visible { outline: 2px solid var(--f-gold); outline-offset: 2px; border-radius: 4px; }
.fewo-footer__swiss { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.fewo-footer__swiss svg { width: 18px; height: 18px; border-radius: 4px; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .fewo-footer__main { grid-template-columns: repeat(3, 1fr); padding: 40px 36px 32px; }
  .fewo-footer__brand { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
  .fewo-footer__claim { margin: 0; }
  .fewo-footer__bottom { margin: 0 36px; }
}

/* ---------- Smartphone ---------- */
@media (max-width: 640px) {
  .fewo-footer { width: calc(100% - 16px); margin: 40px auto 8px; }
  .fewo-footer__inner { border-radius: 26px; }

  .fewo-footer__cta { flex-direction: column; align-items: stretch; gap: 18px; margin: 10px 10px 0; padding: 24px 20px; border-radius: 20px; }
  .fewo-footer__cta-title { font-size: 22px; }
  .fewo-footer__cta-btn { justify-content: center; padding: 16px 20px; }

  .fewo-footer__main { grid-template-columns: 1fr 1fr; gap: 28px 16px; padding: 32px 22px 24px; }
  .fewo-footer__brand { flex-direction: column; align-items: flex-start; text-align: left; }
  .fewo-footer__logo img { width: 170px; }
  .fewo-footer__claim { margin: 4px 0 4px; }
  .fewo-footer__social a { width: 46px; height: 46px; }

  .fewo-footer__heading { margin: 0 0 6px; }
  .fewo-footer__links a { min-height: 44px; padding: 0; font-size: 16px; }

  .fewo-footer__bottom { flex-direction: column; align-items: flex-start; gap: 14px; margin: 0 22px; padding: 20px 0 calc(24px + env(safe-area-inset-bottom)); }
  .fewo-footer__legal { gap: 4px 20px; }
  .fewo-footer__legal a { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .fewo-footer *, .fewo-footer *::after { transition: none !important; }
  .fewo-footer__cta-btn:hover, .fewo-footer__social a:hover { transform: none; }
}
