/* ============================================================
   Immobegleitung.ch – Conversion-Landingpage
   Basiert auf den Global-Compass-Design-Tokens (style.css)
   ============================================================ */

/* ---------- Topbar ---------- */
.lp-topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--line-light);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lp-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.lp-topbar img { height: 34px; width: auto; }
.lp-topbar-right { display: flex; align-items: center; gap: 20px; }
.lp-phone {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--navy); text-decoration: none; font-weight: 620; font-size: 15.5px;
}
.lp-phone small { display: block; font-weight: 440; font-size: 11.5px; color: var(--body); }
.lp-topbar .btn { padding: 11px 20px; font-size: 14px; }

/* ---------- Hero ---------- */
.lp-hero {
  padding: 128px 0 64px;
  background:
    linear-gradient(100deg, rgba(251,250,247,0.97) 34%, rgba(251,250,247,0.55) 62%, rgba(251,250,247,0.2) 100%),
    url('../img/hero.jpg') right center / cover no-repeat;
}
.lp-hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px;
  align-items: start;
}
.lp-hero h1 {
  font-size: clamp(32px, 3.8vw, 48px); font-weight: 700; line-height: 1.12;
  letter-spacing: -0.025em;
}
.lp-hero .hero-lead { font-size: 17px; margin: 20px 0 26px; max-width: 50ch; }
.lp-bullets { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; }
.lp-bullets li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; font-weight: 500; color: var(--ink); }
.lp-bullets svg { flex: none; color: var(--green); margin-top: 3px; }

.lp-proof { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Lead-Karte (Quiz) ---------- */
.lead-card {
  background: #fff; border-radius: 10px;
  box-shadow: 0 24px 70px -18px rgba(16,31,78,.35);
  border: 1px solid var(--line-light);
  padding: 28px;
  position: relative;
}
.lead-card::before {
  content: 'Kostenlos & unverbindlich';
  position: absolute; top: -13px; left: 24px;
  background: var(--gold); color: #fff;
  font-size: 12px; font-weight: 640; letter-spacing: .04em;
  padding: 5px 14px; border-radius: 20px;
}
.lead-card h2 { font-size: 21px; margin-bottom: 6px; }
.lead-card .lead-sub { font-size: 13.5px; color: var(--body); margin-bottom: 20px; }

.lead-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.lead-dot { height: 4px; flex: 1; border-radius: 2px; background: var(--line-light); transition: background .3s ease; }
.lead-dot.active { background: var(--navy); }

.lead-step-title { font-size: 15px; font-weight: 620; color: var(--navy); margin-bottom: 12px; }
.chip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 7px;
  background: #fff; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 530; color: var(--ink);
  text-align: left;
  transition: border-color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--navy-soft); }
.chip.selected { border-color: var(--navy); background: #f4f6fb; box-shadow: 0 0 0 1px var(--navy) inset; }
.chip svg { flex: none; color: var(--navy); }

.lead-fields { display: grid; gap: 12px; }
.lead-fields input {
  font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 7px;
  width: 100%;
}
.lead-fields input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(16,31,78,.08); }
.lead-fields input.error { border-color: var(--red); }
.lead-error { font-size: 12.5px; color: var(--red); display: none; }
.lead-error.show { display: block; }

.lead-card .btn { width: 100%; justify-content: center; margin-top: 16px; }
.lead-back {
  background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 13.5px; color: var(--muted);
  padding: 10px 0 0; width: 100%; text-align: center;
}
.lead-back:hover { color: var(--navy); }
.lead-note {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 14px; font-size: 12px; color: var(--muted);
}
.lead-note svg { color: var(--green); }

.lead-success { text-align: center; padding: 24px 0 12px; }
.lead-success .done-ico {
  width: 58px; height: 58px; border-radius: 50%;
  background: #e7f6ee; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.lead-success h3 { font-size: 19px; margin-bottom: 10px; }
.lead-success p { font-size: 14px; color: var(--body); }

/* ---------- Trustbar ---------- */
.trustbar { background: var(--navy); padding: 22px 0; }
.trustbar-grid {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 11px; color: #fff; font-size: 14px; font-weight: 530; }
.trust-item svg { color: #7ee2b0; flex: none; }
.trust-item small { display: block; font-weight: 420; color: #aeb6d4; font-size: 12px; }

/* ---------- Sektionen ---------- */
.lp-section { padding: 76px 0; }
.lp-section.alt { background: #fff; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.lp-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.lp-head h2 { font-size: clamp(25px, 2.8vw, 33px); }
.lp-head p { margin-top: 12px; color: var(--body); font-size: 16px; }

/* Probleme/Nutzen */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1000px; margin: 0 auto; }
.pain { text-align: center; }
.pain-ico {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--red-soft); color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.pain.good .pain-ico { background: #e7f6ee; color: var(--green); }
.pain h3 { font-size: 17.5px; margin-bottom: 9px; }
.pain p { font-size: 14px; color: var(--body); }

/* Schritte */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1000px; margin: 0 auto; }
.lp-step {
  background: var(--cream); border: 1px solid var(--line-light); border-radius: 10px;
  padding: 30px 26px; position: relative;
}
.lp-step .step-n {
  position: absolute; top: -16px; left: 24px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14.5px; font-weight: 650;
  box-shadow: 0 6px 14px -4px rgba(16,31,78,.4);
}
.lp-step h3 { font-size: 16.5px; margin: 8px 0 8px; }
.lp-step p { font-size: 14px; color: var(--body); }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi {
  background: #fff; border: 1px solid var(--line-light); border-radius: 10px;
  padding: 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.testi .stars { font-size: 13px; letter-spacing: 2px; }
.testi p { font-size: 14.5px; color: var(--ink); line-height: 1.65; }
.testi footer { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.testi .avatar { margin: 0; width: 38px; height: 38px; border-width: 0; font-size: 12.5px; }
.testi footer span { font-size: 13px; color: var(--body); }
.testi footer strong { display: block; font-size: 13.5px; color: var(--navy); }

/* Rechenbeispiel */
.calc-band {
  max-width: 880px; margin: 0 auto;
  background: var(--cream-deep); border-radius: 12px;
  padding: 44px 48px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 36px; align-items: center;
  text-align: center;
}
.calc-col strong { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -0.02em; }
.calc-col.bad strong { color: var(--red); }
.calc-col.good strong { color: var(--green); }
.calc-col span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--body); }
.calc-vs { font-size: 14px; font-weight: 650; color: var(--muted); }

/* FAQ + Abschluss-CTA nutzen bestehende Klassen aus style.css */

.final-cta { text-align: center; max-width: 660px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 14px; }
.final-cta p { color: var(--body); font-size: 16px; margin-bottom: 28px; }

/* ---------- Sticky Mobile CTA ---------- */
.sticky-cta {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: none;
  background: #fff; border-top: 1px solid var(--line-light);
  box-shadow: 0 -8px 24px -10px rgba(16,31,78,.25);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.sticky-cta .btn { flex: 1; justify-content: center; padding: 13px 10px; font-size: 14.5px; white-space: nowrap; }
.sticky-cta .btn-outline { flex: 0 0 auto; }

/* ---------- Footer ---------- */
.lp-footer { background: #fff; border-top: 1px solid var(--line-light); padding: 34px 0; }
.lp-footer-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}
.lp-footer a { color: var(--muted); text-decoration: none; }
.lp-footer a:hover { color: var(--navy); }
.lp-footer .finma-badge { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-hero { background:
    linear-gradient(rgba(251,250,247,0.96), rgba(251,250,247,0.96)),
    url('../img/hero.jpg') center / cover no-repeat; }
  .lead-card { max-width: 560px; }
}
@media (max-width: 900px) {
  .pain-grid, .lp-steps, .testi-grid { grid-template-columns: 1fr; gap: 28px; }
  .lp-steps { gap: 34px; }
  .calc-band { grid-template-columns: 1fr; padding: 34px 24px; gap: 22px; }
  .trustbar-grid { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
  .lp-phone .lp-phone-text { display: none; }
  .lp-topbar .btn-header-lp { display: none; }
  .lp-hero { padding-top: 100px; }
}
@media (max-width: 480px) {
  .chip-grid { grid-template-columns: 1fr; }
  .lead-card { padding: 24px 20px; }
}
