/* ============================================================
   Immobegleitung.ch – Global-Compass-Projekt-Check
   Design nach Konzeptdokument: hell, ruhig, Schweizer Präzision
   ============================================================ */

:root {
  --navy: #101f4e;        /* CI-Navy aus dem Logo */
  --navy-dark: #0b163a;
  --cream: #F8F7F3;
  --accent: #101f4e;      /* CTA = CI-Navy */
  --accent-dark: #0b163a;
  --gold: #e9a63b;        /* CI-Gold für Badges/Highlights */
  --err: #d8403c;         /* nur funktional (Fehler) */
  --surface: #F2F3F4;
  --line: #E3E5E7;
  --line-light: #ECEDEF;
  --ink: #13213A;
  --body: #626B79;
  --muted: #8B93A1;
  --green: #2e9e6b;
  --gold: #e9a63b;
}

body { background: var(--cream); }

/* ---------- Topbar (reduziert für Ads) ---------- */
.lp-topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line-light);
}
.lp-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px; gap: 16px;
}
.lp-topbar img { height: 36px; width: auto; }
.lp-topbar-right { display: flex; align-items: center; gap: 22px; }
.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); }
.btn-accent {
  background: var(--accent); color: #fff;
  box-shadow: none; border: 0;
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.lp-topbar .btn { padding: 12px 22px; font-size: 14.5px; }

/* ---------- Hero ---------- */
.lp-hero { padding: 138px 0 84px; background: var(--cream); }
.lp-hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 84px;
  align-items: start;
}
.lp-hero .eyebrow { color: #b07a1e; font-weight: 650; }
.lp-hero h1 {
  font-size: clamp(44px, 5.2vw, 76px);
  font-weight: 720; line-height: 1.04; letter-spacing: -0.032em;
  color: var(--navy);
}
.lp-hero .hero-lead { font-size: 19px; line-height: 1.65; margin: 28px 0 36px; max-width: 50ch; color: var(--body); }
.hero-cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-cta-row .btn-accent { font-size: 16.5px; padding: 17px 30px; font-weight: 630; }
.hero-phone {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--navy); text-decoration: none; font-weight: 640; font-size: 17px;
}
.hero-phone:hover { color: var(--accent); }
.hero-micro { margin-top: 16px; font-size: 13.5px; color: var(--muted); }

/* Vertrauenswerte */
.trust-values {
  display: grid; grid-template-columns: repeat(4, auto); gap: 40px;
  margin-top: 52px; justify-content: start;
}
.tv strong {
  display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--navy); line-height: 1.1;
}
.tv span { display: block; margin-top: 5px; font-size: 12.5px; color: var(--body); line-height: 1.45; max-width: 15ch; }

/* ---------- Projekt-Check (Formular-Karte) ---------- */
.check-card {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 60px -30px rgba(16,37,74,.25);
  overflow: hidden;
  position: sticky; top: 94px;
}
.check-head {
  padding: 24px 30px 20px;
  border-bottom: 1px solid var(--line-light);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.check-head h2 { font-size: 19px; letter-spacing: -0.01em; }
.check-head p { margin-top: 4px; font-size: 13px; color: var(--body); }
.check-free {
  flex: none;
  background: #FBF1DE; color: #b07a1e;
  font-size: 12px; font-weight: 650; letter-spacing: .03em;
  padding: 5px 12px; border-radius: 20px;
  white-space: nowrap;
}
.check-progress { display: flex; gap: 5px; padding: 16px 30px 0; }
.check-progress span { height: 4px; flex: 1; border-radius: 2px; background: var(--line-light); transition: background .3s ease; }
.check-progress span.done { background: var(--gold); }
.check-body { padding: 20px 30px 26px; }
.check-q { font-size: 16.5px; font-weight: 650; color: var(--navy); margin-bottom: 14px; }
.check-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-opt {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 15px; min-height: 52px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 9px;
  cursor: pointer; text-align: left;
  font-family: inherit; font-size: 14.5px; font-weight: 550; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.check-opt:hover { border-color: var(--navy); }
.check-opt.selected { border-color: var(--navy); background: #f4f6fb; box-shadow: 0 0 0 1px var(--navy) inset; }
.check-opt svg { flex: none; color: var(--navy); }
.check-opt.selected svg { color: var(--navy); }

.check-fields { display: grid; gap: 12px; }
.check-fields .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-fields label { font-size: 13px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
.check-fields .req { color: var(--accent); }
.check-fields input, .check-fields textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  padding: 13px 14px; width: 100%;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff;
}
.check-fields input:focus, .check-fields textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(16,37,74,.08);
}
.check-fields input.error { border-color: var(--err); }
.check-fields textarea { resize: vertical; min-height: 70px; }
.check-error { display: none; font-size: 13px; color: var(--err); margin-top: 10px; }
.check-error.show { display: block; }

.check-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 12px; }
.check-back {
  background: none; border: 0; cursor: pointer; padding: 10px 0;
  font-family: inherit; font-size: 13.5px; font-weight: 550; color: var(--muted);
  visibility: hidden;
}
.check-back.show { visibility: visible; }
.check-back:hover { color: var(--navy); }
.check-next { padding: 14px 24px; font-size: 15px; }
.check-next.wide { width: 100%; justify-content: center; font-size: 16px; padding: 16px 24px; }
.check-note {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 0 30px 22px; font-size: 11.5px; color: var(--muted); line-height: 1.5;
}
.check-note svg { flex: none; color: var(--green); margin-top: 1px; }

/* Erfolgsansicht */
.check-success { padding: 34px 30px; text-align: center; }
.check-success .done-ico {
  width: 60px; height: 60px; border-radius: 50%;
  background: #E8F5EE; color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.check-success h3 { font-size: 20px; margin-bottom: 10px; }
.check-success p { font-size: 14px; color: var(--body); margin-bottom: 8px; }
.success-summary {
  margin: 18px 0; padding: 16px 18px; text-align: left;
  background: var(--cream); border: 1px solid var(--line-light); border-radius: 9px;
  font-size: 13.5px; color: var(--ink);
}
.success-summary div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.success-summary span { color: var(--muted); }

/* ---------- Bild-Band unter dem Hero ---------- */
.img-band { padding: 0 0 8px; }
.img-band img {
  width: 100%; height: clamp(260px, 34vw, 420px); object-fit: cover;
  border-radius: 12px; border: 1px solid var(--line);
}

/* Fallstudie mit Bild */
.case-outer { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 0; max-width: 1120px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.case-media { position: relative; min-height: 100%; }
.case-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Prozess-Karten mit Bild */
.step3 .step-img { width: calc(100% + 60px); margin: -34px -30px 22px; height: 170px; object-fit: cover; display: block; }

/* ---------- Sektionen ---------- */
.lp-section { padding: 104px 0; }
.lp-section.alt { background: #fff; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.sec-eyebrow {
  font-size: 12.5px; font-weight: 660; letter-spacing: .16em; text-transform: uppercase;
  color: #b07a1e; margin-bottom: 18px;
}
.lp-head { max-width: 720px; margin-bottom: 56px; }
.lp-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.lp-head.center .sec-eyebrow { text-align: center; }
.lp-head h2 { font-size: clamp(34px, 3.8vw, 50px); letter-spacing: -0.028em; line-height: 1.1; }
.lp-head p { margin-top: 18px; color: var(--body); font-size: 18px; line-height: 1.65; }

/* ---------- Nutzen-Karten ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit {
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  padding: 30px 26px;
}
.lp-section.alt .benefit { background: var(--cream); }
.benefit-ico {
  width: 46px; height: 46px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.benefit h3 { font-size: 18.5px; margin-bottom: 10px; line-height: 1.3; }
.benefit p { font-size: 15px; color: var(--body); line-height: 1.6; }

/* ---------- Kompass-Prinzip ---------- */
.compass-layout {
  display: grid; grid-template-columns: 1fr auto 1fr;
  gap: 40px 56px; align-items: center;
  max-width: 1080px; margin: 0 auto;
}
.compass-col { display: grid; gap: 24px; }
.compass-area {
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 24px 26px; cursor: default;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.compass-area.active { border-color: var(--navy); box-shadow: 0 10px 30px -18px rgba(16,31,78,.45); }
.compass-area h3 {
  font-size: 17px; display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.compass-area h3 svg { color: var(--gold); flex: none; }
.compass-area ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.compass-area li { font-size: 13.5px; color: var(--body); display: flex; gap: 9px; align-items: flex-start; }
.compass-area li::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--line); margin-top: 7px; transition: background .2s ease; }
.compass-area.active li::before { background: var(--gold); }

.compass-visual { width: 240px; height: 240px; margin: 0 auto; }
.compass-needle { transition: transform .6s cubic-bezier(.3, 1.2, .4, 1); transform-origin: 130px 130px; }

/* ---------- Fallstudie ---------- */
.case-wrap {
  max-width: 1040px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden;
}
.case-grid { display: grid; grid-template-columns: 1fr 1fr; }
.case-cell { padding: 36px 40px; border-bottom: 1px solid var(--line-light); }
.case-cell:nth-child(odd) { border-right: 1px solid var(--line-light); }
.case-cell:nth-last-child(-n+2) { border-bottom: 0; }
.case-cell h3 {
  font-size: 13px; text-transform: uppercase; letter-spacing: .1em;
  color: #b07a1e; font-weight: 660; margin-bottom: 14px;
}
.case-cell p { font-size: 15px; color: var(--ink); line-height: 1.65; }
.case-cell ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.case-cell li { font-size: 14px; color: var(--body); display: flex; gap: 10px; align-items: flex-start; }
.case-cell li svg { flex: none; margin-top: 3px; }
.case-footnote { padding: 18px 40px; background: var(--cream); font-size: 12px; color: var(--muted); border-top: 1px solid var(--line-light); }

/* ---------- Ansprechpartner ---------- */
.contact-person {
  max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 64px; align-items: center;
}
.contact-person img { border-radius: 12px; width: 100%; object-fit: cover; aspect-ratio: 4/3.4; border: 1px solid var(--line); }
.cp-benefits { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.cp-benefits li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink); font-weight: 510; }
.cp-benefits svg { flex: none; color: var(--green); margin-top: 3px; }

/* ---------- Prozess ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1040px; margin: 0 auto; }
.step3 {
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 34px 30px;
}
.step3 .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 15px; font-weight: 650; margin-bottom: 18px;
}
.step3 h3 { font-size: 19px; margin-bottom: 10px; }
.step3 p { font-size: 15.5px; color: var(--body); line-height: 1.6; }

/* ---------- Kundenstimmen ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: 1120px; margin: 0 auto; }
.testi { margin: 0; padding: 26px 0 0; border-top: 2px solid var(--navy); display: flex; flex-direction: column; gap: 14px; }
.testi .stars { color: var(--gold); font-size: 13px; letter-spacing: 2px; }
.testi p { font-size: 15px; color: var(--ink); line-height: 1.7; }
.testi p::before { content: '«\00a0'; color: var(--gold); font-weight: 700; }
.testi p::after { content: '\00a0»'; color: var(--gold); font-weight: 700; }
.testi footer { margin-top: auto; font-size: 13px; color: var(--body); }
.testi footer strong { display: block; font-size: 13.5px; color: var(--navy); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0; max-width: 780px; margin: 0 auto; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 0 4px; background: none; border-radius: 0; }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  cursor: pointer; list-style: none;
  padding: 22px 0; font-weight: 600; font-size: 16px; color: var(--navy);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--muted); transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 22px; color: var(--body); font-size: 14.5px; line-height: 1.7; max-width: 66ch; }

/* ---------- Finaler CTA ---------- */
.final-cta { text-align: center; max-width: 680px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -0.028em; margin-bottom: 16px; }
.final-cta p { color: var(--body); font-size: 17px; margin-bottom: 32px; }
.final-cta .btn-accent { font-size: 16.5px; padding: 17px 34px; }
.final-cta .micro { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* ---------- 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);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  gap: 10px;
}
.sticky-cta .btn { flex: 1; justify-content: center; padding: 14px 10px; font-size: 15px; white-space: nowrap; }
.sticky-cta .btn-outline { flex: 0 0 auto; border-color: var(--line); }

/* ---------- Footer ---------- */
.lp-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 36px; }
.lp-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.lp-footer-grid img { height: 34px; width: auto; }
.lp-footer-grid h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); font-weight: 650; margin-bottom: 12px; }
.lp-footer-grid p, .lp-footer-grid a { font-size: 14px; color: var(--body); text-decoration: none; line-height: 1.85; }
.lp-footer-grid a { display: block; }
.lp-footer-grid a:hover { color: var(--navy); }
.lp-footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line-light);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--muted);
}
.lp-footer-bottom a { color: var(--muted); text-decoration: none; }
.lp-footer-bottom a:hover { color: var(--navy); }
.finma-badge { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); }
.finma-badge svg { color: var(--green); flex: none; }
.finma-badge a { color: var(--navy); font-weight: 570; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lp-hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .check-card { position: static; max-width: 620px; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .compass-layout { grid-template-columns: 1fr; }
  .compass-visual { order: -1; }
  .trust-values { gap: 28px; }
}
@media (max-width: 760px) {
  .lp-section { padding: 72px 0; }
  .lp-hero { padding: 110px 0 60px; }
  .trust-values { grid-template-columns: 1fr 1fr; gap: 22px; }
  .benefit-grid, .steps3, .testi-grid { grid-template-columns: 1fr; gap: 26px; }
  .case-grid { grid-template-columns: 1fr; }
  .case-cell:nth-child(odd) { border-right: 0; }
  .case-cell:nth-last-child(2) { border-bottom: 1px solid var(--line-light); }
  .case-cell { padding: 28px 24px; }
  .case-outer { grid-template-columns: 1fr; }
  .case-media { min-height: 220px; }
  .case-footnote { padding: 16px 24px; }
  .contact-person { grid-template-columns: 1fr; gap: 32px; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 78px; }
  .lp-phone .lp-phone-text { display: none; }
  .lp-topbar .btn-topbar { display: none; }
  .check-options { grid-template-columns: 1fr; }
  .check-head, .check-body { padding-left: 22px; padding-right: 22px; }
  .check-progress { padding-left: 22px; padding-right: 22px; }
  .check-note { padding-left: 22px; padding-right: 22px; }
  .lp-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-cta-row .btn-accent { width: 100%; justify-content: center; }
}

/* Reveal */
.reveal { opacity: 0; transition: opacity .5s ease; }
.reveal.visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .compass-needle { transition: none; }
}
