/* Zielseite KI-Beratung mit BAFA-Foerderung (ki-beratung-foerderung.html).
   Baut auf hx.css (Farben, Knoepfe, Formular, Fusszeile) und kopf.css auf; ohne WebGL und
   ohne Aufblenden, damit die Seite fuer Suchanzeigen sofort lesbar ist. */

.kb {
  position: relative; z-index: 1;
  padding: calc(var(--kopf-hoehe) + 28px) var(--rand) 72px;
  background:
    radial-gradient(90% 60% at 85% 0%, rgba(111,99,232,.22), transparent 70%),
    radial-gradient(70% 50% at 0% 30%, rgba(155,230,0,.05), transparent 70%);
}
.kb a:not(.hx-btn) { color: var(--lila); }
.kb b { color: var(--ink); font-weight: 600; }

/* ---------- Einstieg ---------- */
.kb-hero { max-width: 1120px; margin: 0 auto; display: grid; gap: 28px; }
.kb-hero h1 {
  margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.06;
  font-size: clamp(31px, 8.4vw, 64px); text-wrap: balance;
  text-shadow: 0 4px 22px rgba(111,99,232,.4);
}
.kb-lead {
  margin: 18px 0 0; max-width: 40ch; font-size: clamp(16.5px, 2vw, 20px); line-height: 1.55;
  color: #c9c6d8;
}
.kb-aktion { margin-top: 26px; }
.kb-aktion .hx-btn { width: 100%; text-align: center; }

.kb-preis {
  padding: 22px 22px 20px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(111,99,232,.2), rgba(8,7,13,.6) 70%);
  border: 1px solid rgba(156,147,245,.35);
}
.kb-preis h2 { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: #fff; }
.kb-preis dl { margin: 0; }
.kb-preis-zeile {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1);
}
.kb-preis dt { font-size: 15px; color: var(--ink); line-height: 1.35; }
.kb-preis dt span { display: block; margin-top: 2px; font-size: 13px; color: var(--dim); }
.kb-preis dd {
  margin: 0; font-size: clamp(30px, 8vw, 40px); font-weight: 600; letter-spacing: -.02em;
  color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.kb-preis-zeile:first-child dd { color: var(--limette); }
.kb-preis p { margin: 14px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text); }

/* ---------- Abschnitte ---------- */
.kb-abschnitt { max-width: 720px; margin: 64px auto 0; }
.kb-abschnitt h2 {
  margin: 0 0 16px; font-size: clamp(24px, 4.6vw, 34px); font-weight: 600;
  letter-spacing: -.02em; line-height: 1.15; color: #fff;
}
.kb-abschnitt p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--text); }

.kb-liste, .kb-schritte { margin: 6px 0 18px; padding: 0; list-style: none; }
.kb-liste li, .kb-schritte li {
  position: relative; padding: 14px 0 14px 30px; font-size: 16px; line-height: 1.6;
  color: var(--text); border-top: 1px solid rgba(255,255,255,.09);
}
.kb-liste li:last-child, .kb-schritte li:last-child { border-bottom: 1px solid rgba(255,255,255,.09); }
.kb-liste li::before {
  content: ""; position: absolute; left: 4px; top: 24px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--lila);
}
.kb-schritte { counter-reset: schritt; }
.kb-schritte li { counter-increment: schritt; padding-left: 44px; }
.kb-schritte li::before {
  content: counter(schritt); position: absolute; left: 0; top: 13px;
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(156,147,245,.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; color: #fff;
}
.kb-abschnitt .kb-ergebnis { font-size: 18px; color: var(--ink); }

/* ---------- Haeufige Fragen ---------- */
.kb-frage { border-top: 1px solid rgba(255,255,255,.1); }
.kb-frage:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.kb-frage summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 36px 18px 0; font-size: 16.5px; font-weight: 600; color: #fff; line-height: 1.4;
}
.kb-frage summary::-webkit-details-marker { display: none; }
.kb-frage summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 1.5px solid var(--lila); border-bottom: 1.5px solid var(--lila);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.kb-frage[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.kb-frage summary:focus-visible { outline: 2px solid var(--lila); outline-offset: 4px; border-radius: 4px; }
.kb-frage p { margin: 0 0 18px; font-size: 15.5px; }

/* ---------- Anfrage ---------- */
.kb-anfrage { scroll-margin-top: calc(var(--kopf-hoehe) + 16px); }
.kb-anfrage .kt-form { margin-top: 24px; max-width: none; }
.kb-anfrage .hx-cta { margin-top: 22px; }
.kb-anfrage .hx-btn { width: 100%; }
.kb-direkt { margin-top: 10px; font-size: 14.5px; }
.kb .kt-hinweis a { color: var(--lila); }
.kb .hx-btn:focus-visible, .kb .kt-feld input:focus-visible, .kb .kt-feld textarea:focus-visible {
  outline: 2px solid var(--lila); outline-offset: 2px;
}

.kb-gewaehr {
  max-width: 720px; margin: 56px auto 0; font-size: 13px; line-height: 1.6; color: var(--dim);
}

@media (min-width: 560px) {
  .kb-aktion .hx-btn, .kb-anfrage .hx-btn { width: auto; }
}
@media (min-width: 900px) {
  .kb { padding-top: calc(var(--kopf-hoehe) + 72px); }
  .kb-hero { grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 56px; align-items: center; }
  .kb-preis { padding: 28px 30px 24px; }
  .kb-abschnitt { margin-top: 96px; }
}
