/* Halo · Intent-Landing-Pages (SEO/Ads-Einstiege pro Dokumenttyp)
 * Geteilt von /vorsorgevollmacht, /patientenverfuegung, /betreuungsverfuegung,
 * /testament, /bankvollmacht und /start. Baut auf halo.css/tokens.css auf.
 * Bewusst seniorengerecht: große Schrift, hohe Kontraste (AA-sichere
 * --c-*-deep-Töne für Text), großzügige Klickflächen. */

/* Linksbündig. Zentrierter Fließtext ist auf Landingpages der Normalfall
   geworden und liest sich deshalb beliebig; eine feste linke Kante gibt dem
   Auge eine Linie und wirkt redaktionell statt generiert. Zentriert bleibt nur,
   was tatsächlich mittig gehört: Siegel, Badges, Zahlen in Kreisen, CTA-Karten. */
.ld-hero {
  background: linear-gradient(180deg, var(--c-bg) 0%, rgba(var(--c-green-rgb), 0.06) 100%);
  padding: 56px 20px 48px;
}
.ld-hero-inner { max-width: 720px; margin: 0 auto; }
.ld-eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-green-deep); font-weight: 700; margin-bottom: 14px;
}
/* .ld-h1-as-h2: Seit die Live-Demo den Hero der Startseite anführt, ist die
   frühere Hero-Headline dort ein <h2> — eine Seite hat genau eine h1. Die
   Optik bleibt unverändert, nur die Ebene im Dokument ändert sich. */
.ld-hero h1, .ld-hero .ld-h1-as-h2 {
  font-size: 40px; line-height: 1.12; color: var(--c-navy-deep);
  letter-spacing: -0.02em; margin: 0 0 16px;
}
@media (max-width: 640px) {
  .ld-hero h1, .ld-hero .ld-h1-as-h2 { font-size: 32px; }
}
/* Hero ohne Fließtext-Sub (bewusst knapp gehalten): der Abstand, den sonst
   .ld-sub liefert, muss von der Headline kommen. */
.ld-hero-inner:not(:has(.ld-sub)) h1 { margin-bottom: 28px; }
.ld-hero .ld-sub {
  font-size: 18px; line-height: 1.65; color: var(--c-text);
  max-width: 620px; margin: 0 0 26px;
}
.ld-cta {
  display: inline-block; background: var(--c-green); color: #fff;
  font-size: 18px; font-weight: 700; padding: var(--btn-pad-lg); border-radius: 999px;
  text-decoration: none; border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(var(--c-green-rgb), 0.35);
}
.ld-cta:hover { filter: brightness(1.05); }
.ld-cta-meta { font-size: 14px; color: var(--c-text-muted); margin-top: 12px; }
.ld-cta-meta strong { color: var(--c-green-deep); }

.ld-section { max-width: 860px; margin: 0 auto; padding: 80px 20px 0; }
@media (max-width: 640px) { .ld-section { padding-top: 56px; } }

/* ---- Abschnitts-Kopf --------------------------------------------------
 * EIN Rhythmus für jeden Abschnitt: optionale Dachzeile, Überschrift, ein
 * Satz darunter — mittig, schmal, mit viel Luft zum Inhalt.
 *
 * Bewusst zentriert, obwohl Hero und Karten linksbündig sind: der Kopf ist
 * ein Schild über dem Abschnitt, der Inhalt darunter ist Lesetext. Genau
 * diese Mischung lässt saubere Seiten aufgeräumt wirken — „alles zentriert"
 * ist das, was unruhig macht. */
.ld-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.ld-head h2 {
  font-size: 36px; line-height: 1.15; color: var(--c-navy-deep);
  letter-spacing: -0.02em; margin: 0;
}
.ld-head h2 + p {
  font-size: 18px; line-height: 1.6; color: var(--c-text-muted);
  margin: 14px 0 0;
}
.ld-head .ld-eyebrow { margin-bottom: 12px; }
@media (max-width: 640px) {
  .ld-head { margin-bottom: 30px; }
  .ld-head h2 { font-size: 28px; }
  .ld-head h2 + p { font-size: 16px; }
}

/* Überschrift ohne eigenen Kopf-Block (Altbestand) */
.ld-section > h2 {
  font-size: 36px; color: var(--c-navy-deep); letter-spacing: -0.02em;
  line-height: 1.15; margin: 0 0 22px;
}

/* ---- Icon-Kachel ------------------------------------------------------
 * Abgerundetes Quadrat mit getönter Fläche, Icon mittig. Ersetzt die
 * früheren frei stehenden Icons: als Kachel bekommt jede Karte denselben
 * optischen Anker, unabhängig davon, wie breit das Icon zeichnet. */
.ld-tile,
.ld-benefit .ld-b-icon,
.ld-case-ico,
.ld-trust-ico {
  width: 46px; height: 46px; border-radius: var(--radius-md);
  display: grid; place-items: center; font-size: 22px;
  background: var(--c-surface-soft); color: var(--c-navy);
  margin-bottom: 18px;
  line-height: 0;   /* Box = Icon, nicht Icon + Unterlängen */
}
/* Auf den grünen Vertrauenskarten die grüne Tönung. */
.ld-tile.is-green,
.ld-trust-ico { background: var(--c-surface); color: var(--c-green-deep); }
.ld-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 640px) { .ld-benefits { grid-template-columns: 1fr; } }
.ld-benefit {
  background: var(--c-surface); border: 1px solid var(--c-track);
  border-radius: var(--radius-lg); padding: 26px 24px;
}
.ld-benefit h3 { font-size: 18px; color: var(--c-navy-deep); margin: 0 0 8px; }
.ld-benefit p { font-size: 15px; line-height: 1.6; color: var(--c-text-muted); margin: 0; }

.ld-steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 640px) { .ld-steps { grid-template-columns: 1fr; } }
.ld-step { padding: 10px 12px; }
.ld-step .ld-s-num {
  width: 40px; height: 40px; line-height: 40px; border-radius: 50%;
  background: var(--c-navy); color: #fff; font-weight: 700; font-size: 18px;
  text-align: center;                 /* zentriert die Ziffer IM Kreis */
  margin: 0 0 10px;
}
.ld-step h3 { font-size: 16px; color: var(--c-navy-deep); margin: 0 0 4px; }
.ld-step p { font-size: 14px; color: var(--c-text-muted); line-height: 1.55; margin: 0; }

/* Wichtiger Hinweis (z. B. Testament: nur handschriftlich/notariell gültig) */
.ld-notice {
  background: var(--c-amber-soft); border: 1px solid var(--c-amber);
  border-radius: var(--radius-lg); padding: 18px 20px; font-size: 15px; line-height: 1.65;
  color: var(--c-text); margin: 26px 0 0;
}
.ld-notice strong { color: var(--c-amber-deep); }

.ld-faq details {
  background: var(--c-surface); border: 1px solid var(--c-track);
  border-radius: var(--radius-lg); margin-bottom: 10px; padding: 0 24px;
}
.ld-faq summary {
  font-size: 16px; font-weight: 600; color: var(--c-navy-deep);
  padding: 16px 0; cursor: pointer; list-style: none; position: relative; padding-right: 30px;
}
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary:after {
  content: "+"; position: absolute; right: 2px; top: 14px;
  font-size: 24px; color: var(--c-green-deep); font-weight: 400;
}
.ld-faq details[open] summary:after { content: "–"; }
.ld-faq details p { font-size: 15px; line-height: 1.7; color: var(--c-text); margin: 0 0 16px; }

.ld-final {
  max-width: 860px; margin: 80px auto; padding: 0 20px;
}
@media (max-width: 640px) { .ld-final { margin: 56px auto; } }
.ld-final-card {
  background: linear-gradient(135deg, var(--c-navy-deep) 0%, var(--c-navy) 100%);
  border-radius: var(--radius-xl); padding: 56px 32px; text-align: center;
  box-shadow: 0 16px 40px rgba(var(--c-navy-rgb), 0.18);
}
.ld-final-card h2 { color: #fff; font-size: 32px; margin: 0 0 12px; letter-spacing: -0.02em; }
.ld-final-card p { color: rgba(var(--c-white-rgb), 0.8); font-size: 16px; margin: 0 auto 22px; max-width: 520px; line-height: 1.6; }

/* Vertrauens-Leiste direkt unter dem Hero-CTA (nur belegbare Aussagen!) */
.ld-trustbar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px;
  margin: 26px auto 0; max-width: 640px;
}
.ld-trustbar span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; color: var(--c-text-muted);
}
.ld-trustbar span:before { content: "✓"; color: var(--c-green-deep); font-weight: 700; }

/* Kosten-Klarheit: kostenloser Entwurf vs. optionale Beurkundung */
.ld-price-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .ld-price-cards { grid-template-columns: 1fr; } }
.ld-price-card {
  background: var(--c-surface); border: 1.5px solid var(--c-track);
  border-radius: var(--radius-lg); padding: 24px 24px 22px; display: flex; flex-direction: column;
}
.ld-price-card.is-free { border-color: var(--c-green); }
.ld-price-tag {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--c-green-deep); margin-bottom: 8px;
}
.ld-price-card.is-later .ld-price-tag { color: var(--c-text-muted); }
.ld-price-card h3 { font-size: 20px; color: var(--c-navy-deep); margin: 0 0 6px; letter-spacing: -0.01em; }
.ld-price-amount {
  font-size: 32px; font-weight: 700; color: var(--c-navy-deep);
  letter-spacing: -0.02em; margin: 8px 0 2px;
}
.ld-price-amount small { font-size: 14px; font-weight: 500; color: var(--c-text-muted); }
/* „nach GNotKG" ist Text, keine Zahl — kleiner setzen, sonst kippt die Optik */
.ld-price-card.is-later .ld-price-amount { font-size: 20px; }
.ld-price-card ul { list-style: none; margin: 12px 0 18px; padding: 0; }
.ld-price-card li {
  font-size: 15px; line-height: 1.55; color: var(--c-text);
  padding: 5px 0 5px 24px; position: relative;
}
.ld-price-card li:before { content: "✓"; position: absolute; left: 2px; color: var(--c-green-deep); font-weight: 700; }
.ld-price-card > .ld-cta { margin-top: auto; }
.ld-cta-alt {
  display: inline-block; text-align: center; background: var(--c-surface);
  border: 1.5px solid var(--c-navy); color: var(--c-navy);
  /* Gleiches Padding wie .ld-cta — beide stehen nebeneinander und müssen
     exakt gleich hoch sein. */
  font-size: 16px; font-weight: 700; padding: var(--btn-pad-lg); border-radius: 999px;
  text-decoration: none; cursor: pointer; font-family: inherit;
}
.ld-cta-alt:hover { background: var(--c-surface-soft); }
.ld-soon-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--c-amber-soft); color: var(--c-amber-deep);
  border-radius: 999px; padding: 3px 9px; margin-left: 8px; vertical-align: 2px;
}

/* Stimmen (Testimonials) — Karten-Raster am Seitenende */
.ld-voices-wrap { background: var(--c-surface-soft); padding: 80px 20px; margin-top: 80px; }
@media (max-width: 640px) { .ld-voices-wrap { padding: 56px 20px; margin-top: 56px; } }
.ld-voices-inner { max-width: 1060px; margin: 0 auto; }
.ld-voices-inner h2 {
  font-size: 28px; color: var(--c-navy-deep); letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.ld-voices-sub {
  font-size: 16px; color: var(--c-text-muted);
  margin: 0 0 28px; max-width: 560px; line-height: 1.6;
}
/* auto-fit: funktioniert mit einem einzelnen Zitat (volle Breite, wirkt als
   Feature-Quote) genauso wie mit drei Karten nebeneinander. */
/* ---- Zitate als endlose Reihe -----------------------------------------
 * Ein Zitat steht vorn, das nächste schaut rechts hervor — dieser Anschnitt
 * ist die Einladung weiterzugehen und ersetzt Pfeilknöpfe. landing.js hängt
 * je einen Klon-Satz vor und hinter die echten Zitate und springt am Rand
 * lautlos zurück; dadurch läuft die Reihe endlos und wirkt länger als drei.
 *
 * Ohne JS: keine Klone, kein Transform — die Reihe ist dann einfach
 * seitlich scrollbar (overflow-x: auto unten). */
.ld-voices { max-width: 860px; margin: 0 auto; }
.ld-voices-viewport { overflow: hidden; }
.ld-voices:not(.is-ready) .ld-voices-viewport { overflow-x: auto; }
.ld-voices-track {
  display: flex; gap: 16px; align-items: stretch;
  will-change: transform;
}
.ld-voices.is-ready .ld-voices-track { transition: transform .45s cubic-bezier(.4,.0,.2,1); }
.ld-voices.is-dragging .ld-voices-track { transition: none; }
/* Anschnitt: 84 % Breite lassen rechts das nächste Zitat hervorschauen. */
.ld-voice {
  flex: 0 0 84%; min-width: 0;
  background: var(--c-surface); border: 1px solid var(--c-track);
  border-radius: var(--radius-lg); padding: 28px 26px 24px;
  display: flex; flex-direction: column;
  transition: opacity .35s ease;
}
@media (max-width: 640px) { .ld-voice { flex-basis: 90%; } }
/* Was nicht vorn steht, tritt zurück — und ist anklickbar, um vorzurücken. */
.ld-voices.is-ready .ld-voice { opacity: .45; cursor: pointer; }
.ld-voices.is-ready .ld-voice.is-current { opacity: 1; cursor: default; }

.ld-stars { display: flex; gap: 3px; color: var(--c-green); font-size: 17px; margin-bottom: 14px; }

/* Punkte: zeigen, wo man gerade ist, und springen direkt dorthin. */
.ld-voices-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.ld-voices-dots button {
  width: 8px; height: 8px; padding: 0; border: none; border-radius: 999px;
  background: var(--c-track); cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.ld-voices-dots button[aria-current="true"] { width: 26px; background: var(--c-green); }
.ld-voices-dots button:focus-visible { outline: 2px solid var(--c-green); outline-offset: 3px; }
.ld-voice-quote {
  font-size: 16px; line-height: 1.65; color: var(--c-text); margin: 0 0 18px;
}
.ld-voice-quote:before { content: "„"; color: var(--c-green); }
.ld-voice-quote:after { content: "“"; color: var(--c-green); }
.ld-voice-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.ld-voice-av {
  width: 42px; height: 42px; border-radius: 50%; flex: none; object-fit: cover;
  background: var(--c-surface-soft); color: var(--c-navy);
  font-size: 14px; font-weight: 700; line-height: 42px; text-align: center;
}
.ld-voice-name { font-size: 15px; font-weight: 700; color: var(--c-navy-deep); }
.ld-voice-role { font-size: 13px; color: var(--c-text-muted); line-height: 1.45; }

/* Warteliste (noch nicht verfügbare Dokumenttypen) */
.ld-wait { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.ld-wait input {
  border: 1px solid var(--c-track); border-radius: 999px; padding: 14px 18px;
  font-size: 16px; min-width: 260px;
}
.ld-wait-msg { font-size: 14px; margin-top: 10px; display: none; }
.ld-wait-msg.ok { display: block; color: var(--c-green-deep); font-weight: 600; }
.ld-wait-msg.err { display: block; color: var(--c-red-deep); }

/* =======================================================================
 * Startseite (index.html) — Bausteine, die nur der Dokumenten-Hub braucht.
 * Die Intent-Landingpages oben bleiben davon unberührt.
 * ===================================================================== */

/* ---- Zweispaltiger Hero: Botschaft links, Produktbild rechts ---------- */
.ld-hero-split { text-align: left; padding: 52px 20px 56px; }
.ld-hero-split .ld-hero-inner {
  max-width: 1120px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.ld-hero-split h1, .ld-hero-split .ld-h1-as-h2 { font-size: 44px; margin-bottom: 18px; }
.ld-hero-split .ld-sub { margin: 0 0 26px; max-width: none; }
.ld-hero-split .ld-trustbar { justify-content: flex-start; margin-left: 0; }
.ld-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
@media (max-width: 900px) {
  .ld-hero-split .ld-hero-inner { grid-template-columns: 1fr; gap: 34px; }
  /* Auch schmal linksbündig: eine durchgehende linke Kante ist auf dem Handy
     der einzige Anker, den die Seite noch hat. */
  /* Produktbild unter die Botschaft — die Aussage kommt zuerst */
  .ld-hero-media { order: 2; }
}
@media (max-width: 640px) { .ld-hero-split h1 { font-size: 32px; } }

/* ---- Der Companion als echter Chat ------------------------------------
 * Die Nutzerin fragt rechts, Halo antwortet links mit Avatar — die
 * Anordnung, die jede Messenger-App benutzt, damit ohne Beschriftung klar
 * ist, wer gerade spricht.
 *
 * Dazwischen liegt die Suchblase. Sie ist bewusst mehr als ein Spinner:
 * sie zeigt, WELCHE Dokumente angefasst werden und welche davon Treffer
 * sind. Genau das unterscheidet den Companion von einem Chatbot, der aus
 * dem Nichts antwortet — deshalb bleibt sie stehen, statt zu verschwinden.
 *
 * Reines CSS, läuft EINMAL beim Laden und bleibt danach stehen (kein
 * Dauerloop — die Tonalität ist nüchtern, nicht werblich; auch Suchlauf,
 * Denk- und Tipp-Punkte haben eine feste Wiederholungszahl).
 *
 * Die Abfolge steht NICHT hier, sondern inline in index.html als --d je
 * Element: so ist das Timing an einer Stelle lesbar, statt über ein Dutzend
 * nth-child-Regeln verteilt. Fällt --d weg, startet das Element sofort. */
.ld-chat {
  background: var(--c-surface);
  border: 1px solid var(--c-track);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(var(--c-navy-deep-rgb), 0.16);
  overflow: hidden;
  /* Sprechblasen sind immer linksbündig — die Seite, auf der eine Blase steht,
     macht schon .ld-msg. (Früher nötig, weil .ld-hero-split unter 900 px auf
     text-align:center umstellte; das tut es seit der Linksbündigkeit nicht
     mehr, die Regel bleibt als Absicherung.) */
  text-align: left;
}
.ld-chat-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  background: var(--c-navy-deep);
}
.ld-chat-bar b { font-size: 14px; font-weight: 600; color: var(--c-surface); }
.ld-chat-ai {
  width: 24px; height: 24px; border-radius: var(--radius-sm); flex: none;
  background: var(--c-green); color: var(--c-navy-deep);
  font-size: 13px; font-weight: 700; line-height: 24px; text-align: center;
}
.ld-chat-live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 600; color: var(--c-green-bright);
}
.ld-chat-live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-green-bright);
}
.ld-chat-body { padding: 16px 16px 18px; }

/* ---- Eine Nachricht --------------------------------------------------- */
.ld-msg {
  display: flex; align-items: flex-end; gap: 8px;
  margin-top: 12px;
  opacity: 0; animation: ldRise .4s ease forwards; animation-delay: var(--d, 0s);
}
.ld-msg:first-child { margin-top: 0; }
.ld-msg.is-you { justify-content: flex-end; }
/* Avatar nur bei Halo — bei der Nutzerin sagt schon die Seite, wer spricht. */
.ld-msg-av {
  flex: none; width: 26px; height: 26px; border-radius: var(--radius-sm);
  background: var(--c-green); color: var(--c-navy-deep);
  font-size: 12px; font-weight: 700; line-height: 26px; text-align: center;
}
.ld-bubble {
  border-radius: var(--radius-lg); padding: 11px 14px;
  font-size: 14px; line-height: 1.55; margin: 0; max-width: 84%;
}
.is-you .ld-bubble {
  background: var(--c-navy); color: var(--c-surface);
  border-bottom-right-radius: 5px;
}
.is-halo .ld-bubble {
  background: var(--c-surface-soft); border: 1px solid var(--c-track);
  color: var(--c-text); border-bottom-left-radius: 5px;
}
/* Die Antwort hebt sich grün ab: sie ist das Ergebnis, nicht Zwischenstand. */
.is-halo .ld-bubble.is-answer {
  background: var(--c-green-soft); border-color: var(--c-green);
}
.ld-bubble strong { color: var(--c-green-deep); }
.is-you .ld-bubble strong { color: var(--c-green-bright); }

/* ---- Suchblase: welche Dokumente angefasst werden --------------------- */
.ld-search { position: relative; overflow: hidden; max-width: 92%; }
/* Ein heller Streifen zieht zweimal über die Dokumente — das ist das
   „Halo liest gerade". Danach steht das Bild still. */
.ld-search:before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg,
    transparent 22%, rgba(var(--c-green-rgb), .16) 50%, transparent 78%);
  transform: translateX(-101%);
  animation: ldScan .7s ease-in-out 2 forwards;
  animation-delay: calc(var(--d, 0s) + .15s);
}
/* Beide Kopfzeilen liegen in derselben Rasterzelle: der Wechsel von
   „durchsucht …" auf „✓ 14 durchsucht · 3 Treffer" verschiebt dadurch
   nichts. Die Zeile ist so hoch wie die längere der beiden. */
.ld-search-head { position: relative; display: grid; margin: 0 0 10px; }
.ld-search-head > span {
  grid-area: 1 / 1;
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--c-navy-deep);
}
.ld-search-live { animation: ldFadeOut .3s ease forwards; animation-delay: var(--dOut, 0s); }
.ld-search-done { opacity: 0; animation: ldFade .3s ease forwards; animation-delay: var(--d, 0s); }
.ld-search-done b {
  flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--c-green); color: var(--c-surface);
  font-size: 11px; line-height: 16px; text-align: center;
}
.ld-search-files { position: relative; display: flex; flex-wrap: wrap; gap: 6px; }

.ld-file {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--c-text-muted);
  background: var(--c-surface); border: 1px solid var(--c-track);
  border-radius: var(--radius-sm); padding: 5px 9px;
  opacity: 0; animation: ldFade .4s ease forwards; animation-delay: var(--d, 0s);
}
.ld-file:before { content: "📄"; font-size: 11px; }
/* „+ 9 weitere": steht für die Dokumente, die ebenfalls durchsucht werden,
   aber nicht einzeln auftauchen — damit die Zahl in der Kopfzeile nicht im
   Widerspruch zu den sichtbaren Chips steht. */
.ld-file.is-more { font-style: italic; }
.ld-file.is-more:before { content: "⋯"; font-style: normal; }
/* Treffer: sehen bis zum Ende des Suchlaufs aus wie jedes andere Dokument und
   färben sich erst dann ein — sonst stünde das Ergebnis schon fest, während
   Halo angeblich noch sucht. Sie tragen dieselben Namen wie die Quellen-Chips
   in der Antwort darunter. Deshalb liegt AUCH die Textfarbe in ldHit. */
.ld-file.is-hit {
  animation: ldFade .4s ease forwards, ldHit .4s ease forwards;
  animation-delay: var(--d, 0s), var(--dh, 0s);
}

/* ---- Tippblase: kurz da, dann weg ------------------------------------- */
/* max-height + overflow, damit ldTypingOut die Blase samt Abstand zusammen-
   fahren kann — die Antwort rückt dadurch lückenlos an die Suche heran. */
.ld-typing {
  overflow: hidden; max-height: 60px;
  animation: ldRise .3s ease forwards, ldTypingOut .35s ease forwards;
  animation-delay: var(--d, 0s), var(--dOut, 0s);
}
.ld-typing .ld-bubble { padding: 12px 14px; }

/* ---- Punkte: denken (Suche) und tippen (vor der Antwort) -------------- */
.ld-dots { display: inline-flex; gap: 3px; flex: none; }
.ld-dots i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--c-green);
  opacity: .3; animation: ldThink .7s ease-in-out 2;
  animation-delay: calc(var(--d, 0s) + .15s);
}
.ld-dots i:nth-child(2) { animation-delay: calc(var(--d, 0s) + .3s); }
.ld-dots i:nth-child(3) { animation-delay: calc(var(--d, 0s) + .45s); }
/* Die Tippblase lebt nur ~0,65 s — dort laufen die Punkte ohne Vorlauf. */
.ld-dots-typing i { animation-delay: 0s, 0s; animation-iteration-count: 2; }
.ld-dots-typing i:nth-child(2) { animation-delay: .15s; }
.ld-dots-typing i:nth-child(3) { animation-delay: .3s; }

/* ---- Quellen unter der Antwort ---------------------------------------- */
.ld-srcs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ld-src {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--c-green-deep);
  background: var(--c-surface); border: 1px solid var(--c-green);
  border-radius: 999px; padding: 4px 10px; font-weight: 600;
}
.ld-src:before { content: "↗"; }

.ld-chat-note {
  font-size: 12px; color: var(--c-text-muted); line-height: 1.5;
  margin: 16px 0 0; text-align: center;
  opacity: 0; animation: ldFade .45s ease forwards; animation-delay: var(--d, 0s);
}

/* ---- Gespielte Fassung (assets/hero-chat.js) -------------------------------
 * Ohne JavaScript bleibt oben alles, wie es ist: die --d-Werte im Markup
 * decken die Szene der Reihe nach auf. Setzt das Skript .is-scripted, werden
 * genau diese Zeitpläne abgeschaltet — dann schaltet JS jeden Schritt selbst
 * (.is-on / .is-off), und Frage und Antwort entstehen wirklich Zeichen für
 * Zeichen statt fertig einzublenden.
 *
 * Deshalb steht hier überall animation-delay: 0s: die Verzögerung steckt im
 * Inline-Style und würde sonst ein zweites Mal zählen. */
.ld-chat.is-scripted .ld-msg,
.ld-chat.is-scripted .ld-file,
.ld-chat.is-scripted .ld-search-done,
.ld-chat.is-scripted .ld-chat-note,
.ld-chat.is-scripted .ld-srcs { animation: none; opacity: 0; }
.ld-chat.is-scripted .ld-search:before { animation: none; opacity: 0; }
.ld-chat.is-scripted .ld-search-live { animation: none; opacity: 1; }

.ld-chat.is-scripted .ld-msg.is-on {
  animation: ldRise .4s ease forwards; animation-delay: 0s;
}
.ld-chat.is-scripted .ld-file.is-on {
  animation: ldFade .35s ease forwards; animation-delay: 0s;
}
/* Treffer: erst die Einblendung, die Einfärbung kommt als zweite Klasse. */
.ld-chat.is-scripted .ld-file.is-hit.is-hit-on {
  animation: ldFade .35s ease forwards, ldHit .4s ease forwards;
  animation-delay: 0s, 0s;
}
.ld-chat.is-scripted .ld-search.is-scanning:before {
  opacity: 1; animation: ldScan .9s ease-in-out infinite; animation-delay: 0s;
}
.ld-chat.is-scripted .ld-search-live.is-off {
  animation: ldFadeOut .3s ease forwards; animation-delay: 0s;
}
.ld-chat.is-scripted .ld-search-done.is-on,
.ld-chat.is-scripted .ld-chat-note.is-on,
.ld-chat.is-scripted .ld-srcs.is-on {
  animation: ldFade .35s ease forwards; animation-delay: 0s;
}
/* Die Tippblase geht auf Kommando wieder zu (sonst über --dOut). */
.ld-chat.is-scripted .ld-typing { animation: none; }
.ld-chat.is-scripted .ld-typing.is-on {
  animation: ldRise .3s ease forwards; animation-delay: 0s;
}
.ld-chat.is-scripted .ld-typing.is-off {
  animation: ldTypingOut .35s ease forwards; animation-delay: 0s;
}
/* Die Punkte laufen, solange die Blase steht, in der sie sitzen. Ohne das
   liefen sie an ihrem CSS-Zeitplan ab (zwei Durchgänge kurz nach dem Laden)
   und stünden still, wenn die Suchblase überhaupt erst erscheint. */
.ld-chat.is-scripted .ld-dots i {
  animation-iteration-count: infinite; animation-delay: 0s;
}
.ld-chat.is-scripted .ld-dots i:nth-child(2) { animation-delay: .15s; }
.ld-chat.is-scripted .ld-dots i:nth-child(3) { animation-delay: .3s; }

/* Getippter Text: die Zeichen stehen von Anfang an im DOM (der Screenreader
   bekommt den Satz über aria-label am Stück), sind aber display:none — nur so
   wächst die Sprechblase beim Tippen mit, statt von Beginn an ihre Endgröße
   zu belegen. */
.ld-chat.is-scripted .ld-word { white-space: nowrap; }
.ld-chat.is-scripted .ld-c,
.ld-chat.is-scripted .ld-w { display: none; }
.ld-chat.is-scripted .ld-c.is-on { display: inline; }
/* Wörter der Antwort kommen mit einem Hauch Überblendung — das liest sich wie
   ein Text, der geschrieben wird, statt wie ein Ticker. */
.ld-chat.is-scripted .ld-w.is-on { display: inline; animation: ldWortAn .2s ease; }
@keyframes ldWortAn { from { opacity: 0; } to { opacity: 1; } }
/* Schreibmarke am Ende der Frage, solange getippt wird. */
.ld-chat.is-scripted .ld-bubble.is-tippend:after {
  content: ""; display: inline-block; vertical-align: -1px;
  width: 2px; height: 1em; margin-left: 1px;
  background: currentColor; animation: ldCaret 1s step-end infinite;
}
@keyframes ldCaret { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }

@keyframes ldFade { to { opacity: 1; } }
@keyframes ldFadeOut { to { opacity: 0; } }
@keyframes ldRise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ldScan { to { transform: translateX(101%); } }
@keyframes ldThink { 0%, 100% { opacity: .3; transform: none; } 45% { opacity: 1; transform: translateY(-3px); } }
@keyframes ldTypingOut { to { opacity: 0; max-height: 0; margin-top: 0; } }
/* Bewusst OHNE font-weight: fetter Text ist breiter, die Chips würden beim
   Treffer umbrechen. Die grüne Füllung trägt die Betonung allein. */
@keyframes ldHit {
  to {
    color: var(--c-green-deep);
    background: var(--c-green-soft); border-color: var(--c-green);
    box-shadow: 0 0 0 3px rgba(var(--c-green-rgb), .16);
  }
}

/* ---- Raster der Dokumenttypen (1 Klick zur jeweiligen Landingpage) ---- */
.ld-doc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
@media (max-width: 860px) { .ld-doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .ld-doc-grid { grid-template-columns: 1fr; } }
.ld-doc-card {
  display: flex; flex-direction: column;
  background: var(--c-surface); border: 1px solid var(--c-track);
  border-radius: var(--radius-lg); padding: 26px 24px;
  text-decoration: none; color: inherit;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ld-doc-card:hover {
  border-color: var(--c-green); color: inherit;
  box-shadow: 0 10px 26px rgba(var(--c-navy-rgb), 0.10);
  transform: translateY(-2px);
}
.ld-doc-card h3 {
  font-size: 18px; color: var(--c-navy-deep); margin: 0 0 6px; letter-spacing: -0.01em;
}
.ld-doc-card p { font-size: 14px; line-height: 1.55; color: var(--c-text-muted); margin: 0 0 14px; }
.ld-doc-go {
  margin-top: auto; font-size: 14px; font-weight: 700; color: var(--c-green-deep);
}
.ld-doc-card.is-soon { background: var(--c-surface-soft); }
.ld-doc-card.is-soon .ld-doc-go { color: var(--c-text-muted); }

/* ---- Navy-Panel „Der Unterschied" ------------------------------------ */
.ld-usp {
  max-width: 1060px; margin: 44px auto 0; padding: 0 20px;
}
.ld-usp-card {
  background: linear-gradient(135deg, var(--c-navy-deep) 0%, var(--c-navy) 100%);
  border-radius: var(--radius-xl); padding: 44px 40px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
  box-shadow: 0 16px 44px rgba(var(--c-navy-rgb), 0.20);
}
@media (max-width: 860px) { .ld-usp-card { grid-template-columns: 1fr; gap: 26px; padding: 34px 24px; } }
.ld-usp-card h2 { color: var(--c-surface); font-size: 28px; margin: 10px 0 14px; letter-spacing: -0.02em; }
/* <em>-Akzent auf Navy: siehe Basisregel in tokens.css (--heading-accent-dark). */
.ld-usp-card > div > p {
  color: rgba(var(--c-white-rgb), 0.78); font-size: 16px; line-height: 1.65; margin: 0;
}
.ld-usp-eyebrow {
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--c-green-bright); font-weight: 700;
}
.ld-usp-flow { display: flex; flex-direction: column; }
.ld-usp-item { display: flex; gap: 15px; align-items: flex-start; padding: 15px 0; }
.ld-usp-item + .ld-usp-item { border-top: 1px solid rgba(var(--c-white-rgb), 0.12); }
.ld-usp-num {
  flex: none; width: 27px; height: 27px; border-radius: var(--radius-md);
  background: rgba(var(--c-green-rgb), 0.18); color: var(--c-green-bright);
  font-size: 13px; font-weight: 700; line-height: 27px; text-align: center;
}
.ld-usp-item h4 { font-size: 16px; color: var(--c-surface); margin: 0 0 3px; }
.ld-usp-item p { font-size: 14px; line-height: 1.55; color: rgba(var(--c-white-rgb), 0.72); margin: 0; }

/* ---- Kompakter Preis-Teaser (Details stehen auf /preise) -------------- */
.ld-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 780px) { .ld-plans { grid-template-columns: 1fr; } }
.ld-plan {
  background: var(--c-surface); border: 1.5px solid var(--c-track);
  border-radius: var(--radius-lg); padding: 22px 22px 20px;
}
.ld-plan.is-highlight { border-color: var(--c-green); }
.ld-plan-name { font-size: 13px; font-weight: 700; color: var(--c-green-deep); letter-spacing: 0.06em; text-transform: uppercase; }
.ld-plan-price { font-size: 28px; font-weight: 700; color: var(--c-navy-deep); letter-spacing: -0.02em; margin: 8px 0 2px; }
.ld-plan-price small { font-size: 14px; font-weight: 500; color: var(--c-text-muted); }
.ld-plan p { font-size: 14px; line-height: 1.55; color: var(--c-text-muted); margin: 6px 0 0; }

/* ---- Vertrauens-Karten ------------------------------------------------ */
.ld-trust-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 780px) { .ld-trust-cards { grid-template-columns: 1fr; } }
.ld-trust-card {
  background: var(--c-green-soft); border: 1px solid rgba(var(--c-green-rgb), .35);
  border-radius: var(--radius-lg); padding: 26px 24px;
}
.ld-trust-card h3 { font-size: 18px; color: var(--c-navy-deep); margin: 0 0 8px; }
.ld-trust-card p { font-size: 14px; line-height: 1.6; color: var(--c-text); margin: 0; }
.ld-trust-ico { font-size: 24px; line-height: 1; }

@media (prefers-reduced-motion: reduce) {
  .ld-msg, .ld-file, .ld-search-done, .ld-chat-note {
    animation: none; opacity: 1; transform: none;
  }
  /* Suchlauf, Denk- und Tipp-Punkte entfallen komplett … */
  .ld-search:before { animation: none; opacity: 0; }
  .ld-dots i { animation: none; opacity: 1; }
  /* … die Suchblase zeigt sofort ihren Endzustand: „✓ 14 durchsucht" statt
     „durchsucht gerade", und die Treffer sind markiert (ihre Einfärbung
     kommt sonst ausschließlich aus der Animation ldHit). */
  .ld-search-live { animation: none; display: none; }
  .ld-file.is-hit {
    color: var(--c-green-deep);
    background: var(--c-green-soft); border-color: var(--c-green);
    box-shadow: 0 0 0 3px rgba(var(--c-green-rgb), .16);
  }
  /* Die Tippblase hat ohne Bewegung keinen Zweck — sie ist reine Übergangs-
     anzeige und würde als Dauerzustand nur verwirren. */
  .ld-typing { animation: none; display: none; }
  .ld-doc-card:hover { transform: none; }
}

/* =======================================================================
 * Vertrauens-Badges — Bildmarke aus assets/badges/ plus eigene Beschriftung.
 *
 * Vorher waren das runde Siegel, die hier in SVG nachgebaut wurden (zwei
 * Ringe, Perlkranz, Schrift auf Bögen). Jetzt liegen echte Bildmarken vor.
 * Bewusst die Fassung OHNE eingebauten Text und die Beschriftung daneben in
 * HTML: nur so haben alle vier dieselbe Schrift, dieselbe Größe und dieselbe
 * Zeilenführung — die Dateien mit eingebranntem Text bringen je nach
 * Wortlänge unterschiedlich große Schrift mit. Außerdem bleibt der Text
 * scharf, markierbar und für Screenreader lesbar.
 *
 * Die Grafiken sind freigestellt und auf eine gemeinsame Kantenlänge
 * normalisiert (Motiv 140 in einer Fläche von 160), sonst stünde die Waage
 * neben dem Schloss sichtbar größer da.
 *
 * Weiterhin bewusst SELBSTAUSKUNFT, kein Prüfzeichen: kein „geprüft", keine
 * Prüfnummer, keine fremde Wortmarke. Ein Zeichen, das eine externe
 * Zertifizierung suggeriert, die es nicht gibt, wäre nach § 5 Abs. 1 UWG
 * irreführend — deshalb steht unter der Reihe auch der Hinweis.
 * ===================================================================== */
.ld-badge-row {
  display: flex; flex-wrap: wrap; gap: 14px 26px; margin: 26px 0 0;
  /* Oben ausgerichtet: die Bildmarken stehen damit auf einer Linie, auch
     wenn eine Beschriftung zwei Zeilen braucht und die nächste nur eine. */
  align-items: flex-start;
}
.ld-badge-row.is-zentriert { justify-content: center; }
.ld-hero-split .ld-badge-row { justify-content: flex-start; }
@media (max-width: 900px) { .ld-hero-split .ld-badge-row { justify-content: center; } }

.ld-badge {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  width: 112px; flex: none; text-align: center;
}
.ld-badge img {
  width: 56px; height: 56px; display: block;
  /* object-fit, damit ein später ausgetauschtes Bild mit anderem Seiten-
     verhältnis nicht verzerrt, sondern eingepasst wird. */
  object-fit: contain;
}
.ld-badge span {
  font-size: 13px; font-weight: 600; line-height: 1.35;
  color: var(--c-navy-deep);
  /* Bindestrich-Wörter wie „DSGVO-konform" nicht umbrechen — getrennt
     gelesen wirkt die Zeile wie ein Fehler. */
  hyphens: none;
}
.ld-badge-row.is-zentriert .ld-badge { width: 124px; }
.ld-badge-row.is-zentriert .ld-badge img { width: 64px; height: 64px; }

@media (max-width: 400px) {
  .ld-badge { width: 96px; }
  .ld-badge img, .ld-badge-row.is-zentriert .ld-badge img { width: 48px; height: 48px; }
  .ld-badge-row.is-zentriert .ld-badge { width: 104px; }
}
.ld-badge-hinweis {
  font-size: 13px; color: var(--c-text-muted);
  text-align: center; margin: 18px auto 0; max-width: 560px;
}

/* ---- „Wofür Familien Halo nutzen" -----------------------------------
 * Bewusst anders gestaltet als .ld-voice: keine Anführungszeichen, kein
 * Porträt, kein Name. Das sind Nutzungssituationen, keine Kundenstimmen —
 * die Unterscheidung muss auch optisch sofort erkennbar sein. */
.ld-cases-h {
  font-size: 18px; font-weight: 700; color: var(--c-navy-deep);
  margin: 34px 0 14px;
}
.ld-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .ld-cases { grid-template-columns: 1fr; } }
.ld-case {
  background: var(--c-surface); border: 1px solid var(--c-track);
  border-radius: var(--radius-lg); padding: 26px 24px;
}
.ld-case h4 { font-size: 18px; color: var(--c-navy-deep); margin: 0 0 8px; }
.ld-case p { font-size: 14px; line-height: 1.6; color: var(--c-text-muted); margin: 0; }

/* ---- Social Proof: Kennzahlenband ------------------------------------
 * Wird nur gerendert, wenn assets/social-proof.js echte Zahlen liefert.
 * Ohne belegbare Zahl bleibt die Sektion leer — siehe Kommentar dort. */
.ld-proof {
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin: 26px auto 0; max-width: 860px;
}
.ld-proof-item {
  background: var(--c-surface); border: 1px solid var(--c-track);
  border-radius: var(--radius-lg); padding: 16px 22px; text-align: center; min-width: 150px;
}
.ld-proof-num {
  font-size: 28px; font-weight: 700; color: var(--c-navy-deep); letter-spacing: -0.02em;
}
.ld-proof-label { font-size: 13px; color: var(--c-text-muted); margin-top: 3px; }
