/**
 * Gallium Estate Child Theme v9 — ge-footer.css
 * Vollständige Footer-Styles: 4-Spalten, Region-Tags,
 * Zertifikate, Bewertung, WhatsApp, Sticky-CTA
 */

/* ══════════════════════════════════════════════════════════════
   PRE-FOOTER: NEWSLETTER + KONTAKT — KOMBINIERTE KARTE
══════════════════════════════════════════════════════════════ */
.ge-pre-footer {
  background: #F2F5F9;
  padding: 48px 20px 56px;
}

/* Die Karte selbst */
.ge-pre-footer__wrap {
  max-width: 820px;
  margin: 0 auto;
  background: #0D2240;
  border: 1px solid rgba(201,168,106,.3);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 32px rgba(10,26,47,.22),
    0 0 0 1px rgba(255,255,255,.04) inset;
}

/* ── Newsletter-Bereich ── */
.ge-pre-footer__nl {
  padding: 36px 44px 32px;
}

.ge-pre-footer__nl-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
}

.ge-pre-footer__icon {
  color: #C9A86A;
  flex-shrink: 0;
  margin-top: 3px;
  opacity: .9;
}

.ge-pre-footer__title {
  font-family: var(--serif, Georgia, serif);
  font-size: 22px;
  font-weight: 600;
  color: #C9A86A;
  margin: 0 0 6px;
  letter-spacing: .01em;
  line-height: 1.3;
}

.ge-pre-footer__sub {
  font-size: 14.5px;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin: 0;
}

/* Formular-Felder */
.ge-pre-footer__fields {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ge-pre-footer__fields input {
  flex: 1 1 180px;
  min-width: 0;
  padding: 12px 16px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(201,168,106,.25);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-family: var(--sans, sans-serif);
  outline: none;
  transition: border-color .2s, background .2s;
}

.ge-pre-footer__fields input::placeholder {
  color: rgba(255,255,255,.35);
}

.ge-pre-footer__fields input:focus {
  border-color: rgba(201,168,106,.6);
  background: rgba(255,255,255,.1);
}

.ge-pre-footer__fields button {
  flex-shrink: 0;
  padding: 12px 26px;
  background: #C9A86A;
  color: #0A1A2F;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sans, sans-serif);
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: .02em;
  transition: background .2s, transform .15s;
}

.ge-pre-footer__fields button:hover {
  background: #dbb96e;
  transform: translateY(-1px);
}

.ge-pre-footer__fields button:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.ge-pre-footer__legal {
  font-size: 12px;
  color: rgba(255,255,255,.35);
  line-height: 1.6;
  margin: 0;
}

.ge-pre-footer__legal a {
  color: rgba(201,168,106,.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ge-pre-footer__legal a:hover {
  color: #C9A86A;
}

/* Feedback-Nachricht (geerbt von ge-nl-widget__msg) */
.ge-pre-footer__form .ge-nl-widget__msg {
  margin-top: 10px;
  font-size: 13.5px;
  font-family: var(--sans, sans-serif);
  font-weight: 500;
}

/* ── Goldene Trennlinie ── */
.ge-pre-footer__rule {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(201,168,106,.4) 20%,
    rgba(201,168,106,.4) 80%,
    transparent 100%
  );
  margin: 0 44px;
}

/* ── Kontakt-Bereich ── */
.ge-pre-footer__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px 44px 34px;
  flex-wrap: nowrap;
}

.ge-pre-footer__portrait {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid rgba(201,168,106,.45);
  flex-shrink: 0;
}

.ge-pre-footer__contact-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: rgba(255,255,255,.78);
  line-height: 1.6;
  font-family: var(--sans, sans-serif);
}

.ge-pre-footer__contact-text strong {
  color: #fff;
  font-weight: 600;
}

.ge-pre-footer__contact-text span {
  display: block;
  font-size: 12.5px;
  color: rgba(255,255,255,.42);
  margin-top: 3px;
}

.ge-pre-footer__btn {
  display: inline-flex;
  align-items: center;
  padding: 11px 24px;
  background: transparent;
  border: 1.5px solid rgba(201,168,106,.55);
  color: #C9A86A;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  font-family: var(--sans, sans-serif);
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, border-color .2s, color .2s;
}

.ge-pre-footer__btn:hover {
  background: rgba(201,168,106,.1);
  border-color: #C9A86A;
  color: #dbb96e;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .ge-pre-footer { padding: 32px 16px 40px; }
  .ge-pre-footer__nl { padding: 28px 24px 24px; }
  .ge-pre-footer__rule { margin: 0 24px; }
  .ge-pre-footer__contact { padding: 22px 24px 28px; flex-wrap: wrap; gap: 14px; }
  .ge-pre-footer__title { font-size: 19px; }
  .ge-pre-footer__fields button { width: 100%; }
  .ge-pre-footer__btn { width: 100%; justify-content: center; }
}

/* ══════════════════════════════════════════════════════════════
   FOOTER WRAPPER
══════════════════════════════════════════════════════════════ */
.ge-footer {
  background: var(--navy-d);
  font-family: var(--sans);
  position: relative;
  z-index: 1;
}

.ge-footer__topline {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,106,.35), rgba(201,168,106,.35), transparent);
}

.ge-footer__container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Hauptbereich Grid ── */
.ge-footer__main .ge-footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1fr;
  gap: 40px;
  padding-top: 72px;
  padding-bottom: 60px;
}

/* ══════════════════════════════════════════════════════════════
   BRAND SPALTE
══════════════════════════════════════════════════════════════ */
.ge-footer__brand { /* column 1 — keine extra styles nötig */ }

.ge-footer__logo {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  margin-bottom: 20px;
}

.ge-footer__logo-main {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  letter-spacing: .04em;
  color: #fff;
}

.ge-footer__logo-sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .7;
}

.ge-footer__tagline {
  font-size: 13.5px;
  line-height: 1.8;
  color: rgba(255,255,255,.72);
  margin-bottom: 24px;
}

/* Zertifikate */
.ge-footer__certs {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.ge-footer__cert {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,.78);
}

/* Bewertung-Badge */
.ge-footer__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(201,168,106,.12);
  border-radius: 10px;
  width: fit-content;
  transition: border-color .2s;
}
.ge-footer__rating:hover { border-color: rgba(201,168,106,.25); }

.ge-footer__stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 2px;
}

.ge-footer__rating-score {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  color: var(--gold-l);
}

.ge-footer__rating-label {
  font-size: 11px;
  color: rgba(255,255,255,.65);
  letter-spacing: .06em;
}

/* ══════════════════════════════════════════════════════════════
   LINK-SPALTEN
══════════════════════════════════════════════════════════════ */
.ge-footer__col { /* kein padding nötig */ }

.ge-footer__heading {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 400;
  color: var(--gold-l);
  margin-bottom: 20px;
  letter-spacing: .02em;
}

.ge-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ge-footer__links a {
  font-size: 13.5px;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  transition: color .2s, padding-left .2s;
  display: block;
}

.ge-footer__links a:hover {
  color: var(--gold-l);
  padding-left: 4px;
}

.ge-footer__link-cta {
  color: var(--gold) !important;
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   KONTAKT-SPALTE
══════════════════════════════════════════════════════════════ */
.ge-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ge-footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .2s;
  line-height: 1.6;
}

a.ge-footer__contact-item:hover { color: var(--gold-l); }

.ge-footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
  opacity: .6;
}

.ge-footer__contact-item--addr { align-items: flex-start; }

.ge-footer__wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(37,211,102,.1);
  border: 1px solid rgba(37,211,102,.2);
  border-radius: 8px;
  color: #4ade80;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  margin-top: 6px;
  transition: background .2s, border-color .2s;
  width: fit-content;
}

.ge-footer__wa-btn:hover {
  background: rgba(37,211,102,.18);
  border-color: rgba(37,211,102,.35);
}

/* ══════════════════════════════════════════════════════════════
   REGION-TAGS
══════════════════════════════════════════════════════════════ */
.ge-footer__region {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 18px 0;
}

.ge-footer__region .ge-footer__container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.ge-footer__region-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  flex-shrink: 0;
  white-space: nowrap;
}

.ge-footer__region-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ge-footer__region-tag {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px;
  transition: color .2s, border-color .2s, background-color .2s;
  cursor: default;
}

.ge-footer__region-tag:hover {
  color: var(--gold);
  border-color: rgba(201,168,106,.2);
  background: rgba(201,168,106,.04);
}

/* ══════════════════════════════════════════════════════════════
   BOTTOM BAR
══════════════════════════════════════════════════════════════ */
.ge-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 22px 0;
}

.ge-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.ge-footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

.ge-footer__legal {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0; margin: 0;
}

.ge-footer__legal a {
  font-size: 12px;
  color: rgba(255,255,255,.52);
  text-decoration: none;
  transition: color .2s;
}

.ge-footer__legal a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════════════════
   STICKY-ELEMENTE (WhatsApp + CTA-Button)
══════════════════════════════════════════════════════════════ */
.ge-wa-float {
  position: fixed;
  right: 24px;
  bottom: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  box-shadow: 0 6px 28px rgba(37,211,102,.55), 0 0 0 3px rgba(37,211,102,.15);
  transition: transform .2s;
  text-decoration: none;
  will-change: transform;
  transform: translateZ(0);
}

.ge-wa-float:hover {
  transform: scale(1.1) translateZ(0);
}

.ge-sticky-cta {
  position: fixed;
  right: 24px;
  bottom: 90px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 24px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-d));
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(201,168,106,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s, transform .35s;
  white-space: nowrap;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.ge-sticky-cta.ge-sticky-cta--visible {
  opacity: 1;
  pointer-events: auto;
}

.ge-sticky-cta:hover {
  transform: translateY(-3px) translateZ(0);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
/* D-14 v68: Neuer 900px-Breakpoint — 4-Spalten bei 850–900px Viewport
   erzeugte ~190px/Spalte, lange Linktexte brachen mittendurch um. */
@media(max-width: 1200px) {
  .ge-footer__main .ge-footer__container {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
  }
}

@media(max-width: 960px) {
  .ge-footer__main .ge-footer__container {
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
  }
}

@media(max-width: 600px) {
  .ge-footer__main .ge-footer__container {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 48px;
    padding-bottom: 40px;
  }
  .ge-footer__container { padding: 0 20px; }
  .ge-footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .ge-footer__legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
  .ge-footer__region .ge-footer__container {
    flex-direction: column;
    align-items: flex-start;
  }
  .ge-sticky-cta { right: 16px; bottom: 82px; padding: 10px 18px; font-size: 12px; }
  .ge-wa-float   { right: 16px; bottom: 24px; width: 48px; height: 48px; }
}

/* ══════════════════════════════════════════════════════════════
   v28 — FOOTER IMPROVEMENTS
══════════════════════════════════════════════════════════════ */

/* Content-visibility for off-screen footer */
.ge-footer {
  content-visibility: visible;
}

/* Sticky CTA — position refinement */
.ge-sticky-cta {
  /* Safety: prevent full-width stretch on any unexpected layout context */
  max-width: fit-content;
  width: auto !important;
  left: auto !important;
}

/* WhatsApp float — ensure clear from sticky CTA */
.ge-wa-float {
  z-index: 290; /* below sticky CTA */
}

/* Footer link hover transition */
.ge-footer a {
  transition: color .18s ease;
}

/* Bottom bar contrast */
.ge-footer__bottom {
  background: rgba(0,0,0,.55);
}

/* Footer logo transition */
.ge-footer__logo:hover .ge-footer__logo-main {
  color: var(--gold, var(--gold));
  transition: color .2s;
}

/* Reduce motion for footer elements */
@media (prefers-reduced-motion: reduce) {
  .ge-sticky-cta { transition: opacity .15s; }
}

/* ── DISCLAIMER INLINE — v48 final ──────────────────────── */
.ge-footer__disclaimer-inline {
  display: block;
  font-size: 9.5px;
  color: rgba(255,255,255,.42);
  margin-top: 4px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

/* ── v77: WhatsApp-Float Tooltip ─────────────────────────── */
/* position:fixed bleibt aus der Hauptregel erhalten — kein Override nötig */
.ge-wa-float__tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(4,10,22,.92);
  color: rgba(255,255,255,.85);
  font-family: var(--sans, 'Outfit', sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.ge-wa-float:hover .ge-wa-float__tooltip,
.ge-wa-float:focus-visible .ge-wa-float__tooltip {
  opacity: 1;
}

/* ── v117: Footer Bottom Upgrade ──────────────────── */
.ge-footer__bottom {
  border-top: 1px solid rgba(201,168,106,.1); /* war rgba(255,255,255,.05) — jetzt Gold-Linie */
}
.ge-footer__legal a:hover {
  color: var(--gold-l);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Footer Kontakt hover-Farbe */
.ge-footer__contact-item:hover {
  color: var(--gold-l) !important;
}
/* Footer Links hover — mit leichtem Indent bleiben */
.ge-footer__links a:hover {
  color: var(--gold-l);
}

/* ── Tel-Float Button ──────────────────────────────────── */
.ge-tel-float {
  position: fixed;
  right: 24px;
  bottom: 98px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C9A86A, #B8964E);
  color: #0A1A2F;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 291;
  box-shadow: 0 6px 24px rgba(201,168,106,.45), 0 0 0 3px rgba(201,168,106,.15);
  transition: transform .2s;
  text-decoration: none;
  will-change: transform;
  transform: translateZ(0);
}
.ge-tel-float:hover {
  transform: scale(1.1) translateZ(0);
}
.ge-tel-float__tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(4,10,22,.92);
  color: rgba(255,255,255,.85);
  font-family: var(--sans, 'Outfit', sans-serif);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s;
}
.ge-tel-float:hover .ge-tel-float__tooltip,
.ge-tel-float:focus-visible .ge-tel-float__tooltip {
  opacity: 1;
}
@media (max-width: 768px) {
  .ge-tel-float { display: none; }
}
