/* ===========================================================
   HomePartner-Funnel — Ergänzungen zum gemeinsamen site.css
   Zielgruppe 60+: größere Schrift, mehr Kontrast, große Tap-Targets.
   =========================================================== */

.hp {
  font-size: 18px;
  line-height: 1.65;
}
@media (min-width: 720px) { .hp { font-size: 19px; } }

/* Kontrast anheben — Fließtext darf hier nicht ausgrauen.
   --ink-muted ist der hellste hier erlaubte Ton und hält auf beiden
   Untergründen noch die 4,5:1 nach WCAG AA ein. --ink-faint aus
   site.css ist dafür zu hell und gehört auf diesen Seiten nicht an Text. */
.hp { --ink-soft: #3F5049; --ink-muted: #55655E; }
:root[data-theme="dark"] .hp { --ink-soft: #B9CAC4; --ink-muted: #9AACA6; }
/* :not() nötig, sonst würde bei OS-Dunkelmodus + manuell gewähltem
   Hellmodus die dunkle Palette gewinnen (gleiche Spezifität, später notiert). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hp { --ink-soft: #B9CAC4; --ink-muted: #9AACA6; }
}

/* ---------- Kopfzeile ---------- */
.hp-top {
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 10px 18px;
}
.hp-top strong { font-weight: 800; }

.hp-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.hp-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
.hp-partner { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-soft); text-align: right; line-height: 1.3; }
.hp-partner b { color: var(--ink); display: block; font-size: 15px; }
@media (max-width: 620px) { .hp-partner { display: none; } }

/* ---------- Intro ---------- */
.hp-intro { padding: 34px 0 10px; }
.hp-intro h1 { font-size: clamp(1.85rem, 6vw, 2.7rem); }
.hp-intro .lead { font-size: clamp(1.06rem, 3vw, 1.2rem); color: var(--ink-soft); margin-top: 16px; max-width: 42ch; }

.hp-usp { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 13px; }
.hp-usp li { display: flex; align-items: flex-start; gap: 12px; font-weight: 600; }
.hp-usp .ic { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; flex: none; margin-top: 1px; }
.hp-usp .ic svg { width: 16px; height: 16px; }

/* Erwartungs-Hinweis: es kommt ein Anruf. Mehrfach im Funnel platziert. */
.callnote {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  border-radius: var(--radius-sm); padding: 15px 17px; font-size: 15.5px; line-height: 1.5;
  color: var(--ink);
}
.callnote .ic { color: var(--accent-deep); flex: none; margin-top: 2px; }
.callnote .ic svg { width: 21px; height: 21px; display: block; }
.callnote b { font-weight: 800; }

/* ---------- Funnel-Karte ---------- */
.hp-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); overflow: hidden; margin-top: 30px;
}
.hp-card-head { padding: 20px 22px 0; }
.hp-progress-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.hp-progress-row .lbl { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.hp-progress-row .pct { font-size: 14px; font-weight: 800; color: var(--primary); font-variant-numeric: tabular-nums; }
.hp-progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.hp-progress > span { display: block; height: 100%; width: 12%; background: var(--primary); border-radius: 99px; transition: width .4s cubic-bezier(.4,0,.2,1); }
@media (prefers-reduced-motion: reduce) { .hp-progress > span { transition: none; } }

.hp-body { padding: 24px 22px 26px; }
@media (min-width: 720px) { .hp-card-head { padding: 24px 30px 0; } .hp-body { padding: 28px 30px 30px; } }

.hp-step { animation: hpfade .35s ease both; }
@keyframes hpfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hp-step { animation: none; } }

.hp-q { font-family: var(--serif); font-size: clamp(1.4rem, 4.6vw, 1.75rem); line-height: 1.2; margin: 0; }
.hp-q:focus { outline: none; }
.hp-q:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.hp-hint { color: var(--ink-soft); font-size: 15.5px; margin-top: 8px; }

/* Auswahl-Optionen — min. 60px hoch, volle Breite, klarer Fokus */
.hp-opts { display: grid; gap: 12px; margin-top: 20px; }
.hp-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  min-height: 62px; padding: 14px 18px;
  background: var(--surface-2); border: 2px solid var(--line-strong); border-radius: 14px;
  font-family: var(--sans); font-size: 17.5px; font-weight: 600; color: var(--ink);
  cursor: pointer; transition: border-color .12s, background .12s;
}
.hp-opt:hover { border-color: var(--primary); background: var(--primary-tint); }
.hp-opt.sel { border-color: var(--primary); background: var(--primary-tint); box-shadow: inset 0 0 0 1px var(--primary); }
.hp-opt .ck {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong);
  flex: none; display: grid; place-items: center; color: #fff;
}
.hp-opt.sel .ck { background: var(--primary); border-color: var(--primary); }
.hp-opt .ck svg { width: 15px; height: 15px; opacity: 0; }
.hp-opt.sel .ck svg { opacity: 1; }
.hp-opt small { display: block; font-weight: 500; font-size: 14px; color: var(--ink-soft); margin-top: 2px; }

/* Formularfelder */
.hp-field { display: flex; flex-direction: column; gap: 7px; margin-top: 18px; }
.hp-field > label { font-weight: 700; font-size: 16px; }
.hp-field .sub { font-weight: 500; color: var(--ink-soft); font-size: 14.5px; }
.hp-field input, .hp-field select {
  font-family: var(--sans); font-size: 18px; padding: 15px 16px; min-height: 58px;
  border: 2px solid var(--line-strong); border-radius: 12px;
  background: var(--surface-2); color: var(--ink); width: 100%;
}
.hp-field input:focus, .hp-field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.hp-field .msg { font-size: 14.5px; font-weight: 600; min-height: 0; }
.hp-field.bad input, .hp-field.bad select { border-color: #B3261E; }
.hp-field.bad .msg { color: #B3261E; }
.hp-field.ok input { border-color: var(--good); }
.hp-field.ok .msg { color: var(--good); }
.hp-row { display: grid; gap: 12px; }
@media (min-width: 560px) { .hp-row.two { grid-template-columns: 1fr 1fr; } }

/* Telefonfeld mit fester +49-Vorwahl */
.telwrap { display: flex; align-items: stretch; border: 2px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.telwrap:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.hp-field.bad .telwrap { border-color: #B3261E; }
.hp-field.ok .telwrap { border-color: var(--good); }
.telwrap .pre {
  display: flex; align-items: center; padding: 0 14px; font-size: 18px; font-weight: 700;
  background: var(--primary-soft); color: var(--primary); border-right: 2px solid var(--line-strong); flex: none;
}
.telwrap input { border: none !important; box-shadow: none !important; border-radius: 0; background: transparent; }
.telwrap input:focus { box-shadow: none !important; }

/* Einwilligung */
.hp-consent {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 22px;
  background: var(--surface-2); border: 2px solid var(--line); border-radius: 12px; padding: 16px;
  font-size: 15.5px; line-height: 1.5; cursor: pointer;
}
.hp-consent.bad { border-color: #B3261E; }
.hp-consent input { width: 28px; height: 28px; flex: none; margin: 0; accent-color: var(--primary); cursor: pointer; }
.hp-consent a { color: var(--primary); font-weight: 700; }

/* Navigation */
.hp-nav { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.hp-nav .btn { width: 100%; font-size: 18.5px; min-height: 62px; padding: 18px 26px; }
.hp-back {
  background: none; border: none; color: var(--ink-soft); font-family: var(--sans);
  font-weight: 700; font-size: 16px; cursor: pointer; padding: 12px; align-self: center;
  display: inline-flex; align-items: center; gap: 7px; min-height: 48px;
}
.hp-back:hover { color: var(--primary); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Sanfte Bestätigung nach jedem Schritt */
.hp-ack {
  display: flex; align-items: center; gap: 9px; margin-top: 16px;
  color: var(--good); font-weight: 700; font-size: 15px;
  animation: hpfade .3s ease both;
}
.hp-ack svg { width: 18px; height: 18px; flex: none; }

/* Fehlerbanner (Serverantwort) */
.hp-alert {
  display: none; gap: 12px; align-items: flex-start; margin-top: 18px;
  background: #FDECEA; border: 2px solid #B3261E; color: #7A1C15;
  border-radius: 12px; padding: 15px 17px; font-size: 15.5px; line-height: 1.5; font-weight: 600;
}
.hp-alert.show { display: flex; }
:root[data-theme="dark"] .hp-alert { background: #2E1512; color: #FFB4AB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hp-alert { background: #2E1512; color: #FFB4AB; } }

/* Vertrauensleiste unter der Karte */
.hp-foot-trust {
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center;
  padding: 15px 18px; background: var(--surface-2); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-soft); font-weight: 600;
}
.hp-foot-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hp-foot-trust svg { width: 15px; height: 15px; color: var(--good); flex: none; }

/* ---------- Danke-Seite ---------- */
.dk-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.dk-header .wrap { display: flex; align-items: center; height: 62px; }
.brand-static { cursor: default; }

/* Sitzt auf demselben Element wie .wrap — deshalb nur die vertikalen
   Abstände setzen, sonst überschreibt die Kurzschreibweise den
   seitlichen Innenabstand von .wrap und der Text klebt am Rand. */
.dk { max-width: 640px; margin: 0 auto; padding-top: 30px; padding-bottom: 8px; }

.dk-h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.6rem, 5.4vw, 2.15rem); line-height: 1.2;
  text-wrap: balance; margin: 0;
}
.dk-tick { font-size: .95em; margin-right: 6px; }
.dk-emoji { font-style: normal; }

/* Kern-Block: das größte und auffälligste Element der Seite. */
.dk-core {
  margin-top: 26px;
  background: var(--surface);
  border: 3px solid var(--primary);
  border-radius: 20px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.dk-core-icon {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; margin-bottom: 18px;
}
.dk-core-icon svg { width: 32px; height: 32px; }
.dk-core-lead {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.3rem, 4.4vw, 1.65rem); line-height: 1.3;
  color: var(--ink); text-wrap: balance;
}
.dk-core-action {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.02rem, 3.1vw, 1.1rem); line-height: 1.55;
  font-weight: 600; color: var(--ink);
}
.dk-core-action .dk-emoji { margin-right: 4px; }

@media (min-width: 620px) {
  .dk-core { padding: 32px 30px; }
}

.dk-why {
  margin-top: 30px;
  font-size: 1.05rem; line-height: 1.6; color: var(--ink-soft);
}
.dk-reassure {
  margin-top: 16px;
  font-size: .95rem; line-height: 1.55; color: var(--ink-muted);
}

/* Vertrauensreihe: nebeneinander, auf schmalen Geräten untereinander. */
.dk-trust {
  list-style: none; padding: 0;
  margin: 30px 0 0;
  display: grid; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 24px;
}
.dk-trust li {
  display: flex; align-items: center; gap: 10px;
  font-size: 1rem; font-weight: 600; color: var(--ink);
}
.dk-trust .dk-emoji { font-size: 1.2rem; line-height: 1; }
@media (min-width: 620px) {
  .dk-trust { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .dk-trust li { flex-direction: column; text-align: center; gap: 8px; font-size: .95rem; }
  .dk-trust .dk-emoji { font-size: 1.5rem; }
}

.dk-footer {
  margin-top: 44px; padding: 22px 0 30px;
  border-top: 1px solid var(--line);
}
.dk-footer .wrap {
  display: flex; justify-content: center; align-items: center; gap: 12px;
  font-size: .9rem; color: var(--ink-muted);
}
.dk-footer a { color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; }
.dk-footer a:hover { color: var(--primary); }

/* Hinweisbalken im Vorschau-Modus (?vorschau=1).
   Bewusst schmal und oben angeheftet, damit der Inhalt darunter
   exakt so aussieht wie fuer einen echten Besucher. */
.dk-vorschau {
  background: var(--accent-deep);
  color: #23180a;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: .01em;
}

/* ---------- Vertrauensbereiche unterhalb des Formulars ----------
   Bewusst ruhiger gehalten als die Funnel-Karte: Sie sollen die
   Aufmerksamkeit nicht vom Fragebogen wegziehen, sondern nur den
   auffangen, der noch zoegert. */
.hp-extra { margin-top: 46px; }
.hp-extra > h2 {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  line-height: 1.25;
  text-wrap: balance;
}

/* Ablauf in drei Schritten */
.hp-steps {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: grid; gap: 14px;
}
.hp-steps li {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
}
.hp-steps .n {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-family: var(--serif); font-size: 17px; font-weight: 700;
  display: grid; place-items: center;
}
.hp-steps h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.hp-steps p { margin-top: 5px; font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); }

@media (min-width: 720px) {
  .hp-steps { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .hp-steps li { flex-direction: column; gap: 12px; }
}

/* Haeufige Fragen — offen statt aufklappbar. Fuer die Zielgruppe ist
   Lesen einfacher als Klicken, und die Antworten sind kurz. */
.hp-faq { margin-top: 20px; display: grid; gap: 2px; }
.hp-faq-item {
  background: var(--surface); border: 1px solid var(--line);
  padding: 18px 20px;
}
.hp-faq-item:first-child { border-radius: 14px 14px 0 0; }
.hp-faq-item:last-child { border-radius: 0 0 14px 14px; }
.hp-faq-item h3 { font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.hp-faq-item p { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); }
