/* =========================================================================
   objektwert360.de - Lead-Funnel
   Design-System. Systemfont, keine externen Schriften, keine Libraries.
   Farbregeln: Amber (#FFB020) ausschliesslich an CTAs und Progressbar.
   Keine Gradients, keine Aussenschatten an Karten, nur 1px Rahmen #C9D6E2.
   ========================================================================= */
:root {
  --navy:  #0F2C4C;   /* Header, Footer, Fliesstext, dunkle Flaechen */
  --blau:  #1B6DA8;   /* Links, Icons, Zahlen-Akzente */
  --tint:  #EAF3FA;   /* Sektions-Hintergruende, Karten */
  --grau:  #5B6672;   /* Sekundaertext, Labels, Hilfetexte */
  --weiss: #FFFFFF;   /* Seitenhintergrund */
  --amber: #FFB020;   /* nur CTA-Buttons und Progressbar */
  --linie: #C9D6E2;   /* 1px Rahmen */
  --fehler:#B3261E;   /* Fehlerzustaende */
  --font: -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--weiss);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--blau); }
button { font: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Sichtbarer Fokus-Ring (Barrierefreiheit) ---------- */
:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.tile:focus-visible, .btn-cta:focus-visible { outline-color: var(--navy); }

/* ---------- Header / Footer ---------- */
.site-header {
  background: var(--navy); color: var(--weiss);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.brand span { color: var(--amber); }
.header-note { font-size: .9rem; color: rgba(255,255,255,.75); }
@media (max-width: 560px) {
  .brand img { height: 28px; }
  .header-note { display: none; }
}

.site-footer { background: var(--navy); color: rgba(255,255,255,.8); margin-top: 64px; padding: 32px 0; font-size: .92rem; }
.site-footer a { color: var(--weiss); }
.site-footer .foot-row { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; justify-content: space-between; }
.site-footer nav a { margin-right: 1.2rem; }

/* ---------- Hero ---------- */
.hero { background: var(--weiss); padding: 32px 0 8px; text-align: center; }
.hero h1 { font-size: clamp(1.55rem, 5vw, 2.35rem); line-height: 1.2; color: var(--navy); }
.hero .sub { color: var(--grau); font-size: 1.1rem; margin-top: .6rem; }
.hero-usps { margin-top: .7rem; color: var(--grau); font-size: .95rem; }
.hero-usps span { color: var(--linie); margin: 0 .25rem; }

/* Vertrauenszeilen */
.trust-lines { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.4rem; margin: 18px auto 0; max-width: 640px; }
.trust-lines li { list-style: none; display: inline-flex; align-items: center; gap: .45rem; color: var(--navy); font-size: .95rem; }
.trust-lines svg { width: 1.1rem; height: 1.1rem; color: var(--blau); flex: 0 0 auto; }

/* ---------- Funnel-Karte ---------- */
.funnel-wrap { padding: 20px 0 8px; }
.funnel {
  max-width: 620px; margin: 0 auto; background: var(--weiss);
  border: 1px solid var(--linie); border-radius: 14px; padding: 22px;
}
.funnel-head { margin-bottom: 18px; }
.progress { height: 8px; background: var(--tint); border: 1px solid var(--linie); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 11%; background: var(--amber); transition: width .3s ease; }
.step-count { margin-top: 8px; font-size: .85rem; color: var(--grau); }

/* Schritte */
.step { display: none; }
.step.is-active { display: block; }
.js .step.is-active { animation: stepIn .32s ease both; }
.step h2 { font-size: 1.2rem; color: var(--navy); margin-bottom: 4px; }
.step .hint { color: var(--grau); font-size: .92rem; margin-bottom: 16px; }

/* Kachel-Auswahl */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; text-align: center;
  background: var(--tint); color: var(--navy); border: 1px solid var(--linie); border-radius: 10px;
  padding: 14px; font-size: 1rem; font-weight: 600;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.tile svg { width: 26px; height: 26px; color: var(--blau); flex: 0 0 auto; transition: color .15s ease; }
.tile[aria-pressed="true"] svg { color: var(--navy); }
.tile:hover { border-color: var(--blau); transform: translateY(-1px); }
.tile:active { transform: translateY(0); }
.tile[aria-pressed="true"] { border-color: var(--blau); background: #dbebf8; box-shadow: inset 0 0 0 1px var(--blau); }
.js .tile[aria-pressed="true"] { animation: tilePop .2s ease; }

/* Formularfelder */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .92rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field label .req { color: var(--blau); }
.field .help { font-size: .82rem; color: var(--grau); margin-top: 5px; }
input, select {
  width: 100%; min-height: 48px; background: var(--weiss); color: var(--navy);
  border: 1px solid var(--linie); border-radius: 10px; padding: 10px 14px; font: inherit;
}
input:focus, select:focus { border-color: var(--blau); outline: none; box-shadow: 0 0 0 3px rgba(27,109,168,.18); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row-2 { grid-template-columns: 1fr; } }

/* Einwilligung */
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--navy); margin: 8px 0 4px; }
.consent input { width: auto; min-height: 0; margin-top: .25rem; flex: 0 0 auto; }
.legal-links { font-size: .85rem; color: var(--grau); margin-top: 10px; }

/* Fehlerzustand (nie in derselben Sichtachse wie ein CTA -> ueber dem Feld) */
.field-error { color: var(--fehler); font-size: .88rem; margin-top: 6px; }
input.invalid, select.invalid { border-color: var(--fehler); }
.form-error { color: var(--fehler); font-size: .92rem; margin-bottom: 14px; padding: 10px 12px; border: 1px solid var(--fehler); border-radius: 8px; background: #fdecea; }

/* Buttons */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; min-height: 52px; background: var(--amber); color: var(--navy);
  border: 1px solid var(--amber); border-radius: 10px; font-weight: 700; font-size: 1.05rem;
  transition: background .15s ease, transform .1s ease;
}
.btn-cta:hover { background: #f0a616; }
.btn-cta:active { transform: translateY(1px); }
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.step-nav .btn-cta { width: auto; flex: 1; }
.btn-back {
  background: none; border: none; color: var(--grau); font-size: .95rem; padding: 12px 4px;
  min-height: 48px; text-decoration: underline; text-underline-offset: 3px;
}
.btn-back:hover { color: var(--navy); }
.btn-back[hidden] { display: none; }

/* Danke-Screen */
.danke { text-align: center; padding: 8px 0; }
.danke .ok-badge { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--tint); border: 1px solid var(--linie); display: grid; place-items: center; }
.danke .ok-badge svg { width: 30px; height: 30px; color: var(--blau); }
.danke h2 { font-size: 1.35rem; }
.danke p { color: var(--grau); margin-top: 8px; }

/* ---------- Erklaer-Sektion ---------- */
.section { padding: 48px 0; }
.section--tint { background: var(--tint); }
.section h2.section-title { text-align: center; font-size: clamp(1.4rem, 4vw, 1.9rem); margin-bottom: 6px; }
.section .section-sub { text-align: center; color: var(--grau); margin-bottom: 32px; }
.steps3 { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 900px; margin: 0 auto; }
@media (min-width: 760px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.steps3 .card { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 22px; }
.steps3 .num { font-size: 1.8rem; font-weight: 800; color: var(--blau); line-height: 1; }
.steps3 h3 { font-size: 1.1rem; margin: 10px 0 6px; color: var(--navy); }
.steps3 p { color: var(--grau); font-size: .96rem; }
.steps3-note { text-align: center; color: var(--grau); font-size: .92rem; margin-top: 22px; }

/* ---------- Mechanismus: Warum drei Makler ---------- */
.mech { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 900px; margin: 0 auto; }
@media (min-width: 760px) { .mech { grid-template-columns: repeat(3, 1fr); } }
.mech-item { background: var(--weiss); border: 1px solid var(--linie); border-radius: 12px; padding: 22px; }
.mech-item svg { width: 30px; height: 30px; color: var(--blau); display: block; margin-bottom: 12px; }
.mech-item h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: 6px; }
.mech-item p { color: var(--grau); font-size: .96rem; }

/* ---------- Risikoumkehr + Seriositaets-Streifen ---------- */
.assure { display: grid; grid-template-columns: 1fr; gap: 18px 24px; max-width: 820px; margin: 0 auto; }
@media (min-width: 620px) { .assure { grid-template-columns: 1fr 1fr; } }
.assure-item { display: flex; gap: .7rem; align-items: flex-start; }
.assure-item svg { width: 1.4rem; height: 1.4rem; color: var(--blau); flex: 0 0 auto; margin-top: .15rem; }
.assure-item h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 3px; }
.assure-item p { color: var(--grau); font-size: .93rem; }
.trust-strip {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 1.4rem;
  max-width: 820px; margin: 30px auto 0; padding-top: 22px; border-top: 1px solid var(--linie);
}
.trust-strip li { display: inline-flex; align-items: center; gap: .45rem; color: var(--grau); font-size: .88rem; }
.trust-strip svg { width: 1.05rem; height: 1.05rem; color: var(--blau); flex: 0 0 auto; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--weiss); border: 1px solid var(--linie); border-radius: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 18px; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; margin-right: 5px;
  border-right: 2px solid var(--blau); border-bottom: 2px solid var(--blau);
  transform: rotate(45deg); transition: transform .3s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.js .faq details:not(.is-open) summary::after { transform: rotate(45deg); }
.js .faq details.is-open summary::after { transform: rotate(-135deg); }
.faq summary:hover { color: var(--blau); }
.faq details p { padding: 0 18px 16px; color: var(--grau); margin: 0; }

/* Bildschirmleser-only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* =========================================================================
   Effekte / Bewegung. Dezent, im Rahmen des Design-Systems (keine Schatten,
   keine Gradients, nur Transform/Opacity). Alle .js-Regeln greifen nur mit
   aktivem JavaScript, damit ohne JS jeder Inhalt sichtbar und nutzbar bleibt.
   ========================================================================= */
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes tilePop { 0% { transform: scale(1); } 50% { transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Hero beim ersten Laden sanft einblenden */
.js .hero h1     { animation: fadeUp .5s ease both; }
.js .hero .sub   { animation: fadeUp .5s .08s ease both; }
.js .trust-lines { animation: fadeUp .5s .16s ease both; }

/* Scroll-Reveal. Zielelemente bekommen .reveal per JS, .in-view beim Sichtbarwerden. */
.js .reveal          { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in-view  { opacity: 1; transform: none; }

/* FAQ-Accordion: sanftes Auf- und Zuklappen (Hoehe ueber grid-template-rows animiert) */
.js .faq-body               { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.js .faq-body > div         { overflow: hidden; }
.js .faq details.is-open .faq-body { grid-template-rows: 1fr; }

/* Bewegungsreduktion respektieren */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
}
