/* Kontaktseite als Mehrschritt-Formular (kf-), 27.10.2026.
   Die Seite ist das Formular: ein ruhiger Raum, eine Karte, eine Frage pro Bildschirm.
   Kein Seiten-Hero, keine Nebenspalten. Einziger Ausweg: „Lieber direkt sprechen“ unter der Karte.
   Farben nach Startseite; Magenta nur für „Anfrage senden“. */
.kf {
  --kf-ink: #16344b; --kf-muted: #536574; --kf-soft: #8a9aa8; --kf-paper: #f4f6f8; --kf-line: #d8e0e7;
  --kf-night: #001424; --kf-action: #0176e4; --kf-bright: #0aa0ff; --kf-magenta: #a61657; --kf-field: #c9d4de;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(90% 60% at 50% 0%, #e4effb 0%, rgba(228, 239, 251, 0) 70%), var(--kf-paper);
}
.kf :is(h1, h2, legend) { font-family: Inter, system-ui, sans-serif !important; }
.kf-stage { padding: clamp(32px, 6vh, 72px) 16px clamp(56px, 9vh, 110px); }
.kf-shell { width: 100%; max-width: 720px; margin: 0 auto; }

/* ---------- Karte ---------- */
.kf .kf-card { scroll-margin-top: 136px; position: relative; width: 100%; max-width: none; padding: 28px clamp(22px, 5vw, 48px) 26px; border-radius: 28px; background: #fff; color: var(--kf-ink); box-shadow: 0 1px 2px rgba(0, 20, 36, .05), 0 30px 70px -30px rgba(0, 20, 36, .35); }

/* Kopf: Zurück · Titel · Frage x von y · Fortschritt */
.kf-head { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 4px 12px; margin-bottom: 30px; }
.kf-head[hidden] { display: none; }
.kf .kf-back { grid-column: 1; grid-row: 1; justify-self: start; display: inline-flex; align-items: center; gap: 6px; height: 36px; margin-left: -10px; padding: 0 12px 0 8px; border: 0; border-radius: 10px; background: none; color: var(--kf-muted); font: 600 .9rem/1 Inter, sans-serif; cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.kf .kf-back[hidden] { display: inline-flex; visibility: hidden; }
.kf .kf-back:hover { background: var(--kf-paper); color: var(--kf-ink); }
.kf .kf-back svg { width: 17px; height: 17px; transition: transform .2s ease; }
.kf .kf-back:hover svg { transform: translateX(-3px); }
.kf .kf-title { grid-column: 2; grid-row: 1; margin: 0; color: var(--kf-ink); font-size: .8rem !important; font-weight: 700 !important; letter-spacing: .08em; line-height: 1.2; text-align: center; text-transform: uppercase; }
.kf-count { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; color: var(--kf-muted); font-size: .84rem; font-weight: 600; white-space: nowrap; }
.kf-count[hidden] { display: block; visibility: hidden; }
.kf-bar { grid-column: 1 / -1; grid-row: 2; height: 6px; margin-top: 12px; overflow: hidden; border-radius: 999px; background: var(--kf-paper); }
.kf-card:not(.is-stepped) .kf-bar { display: none; }
.kf-bar span { display: block; width: 8%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0a86e6, #19aaff); transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.kf .kf-prefill { margin: -14px 0 22px; padding: 11px 14px; border-radius: 12px; font-size: .86rem; }
.kf-card.is-stepped:not([data-kf-step="1"]) .kf-prefill { display: none; }

/* ---------- Frage ---------- */
.kf .kf-card .kf-step { min-width: 0; margin: 0; padding: 0; border: 0 !important; background: none; }
.kf .kf-step[hidden] { display: none; }
.kf-card:not(.is-stepped) .kf-step + .kf-step { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--kf-line) !important; }
.kf .kf-card .kf-q { float: left; width: 100%; margin: 0 0 10px; padding: 0; color: var(--kf-ink); font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; line-height: 1.08; letter-spacing: -.045em; outline: 0; }
.kf .kf-q::after { content: none; display: none; }
.kf .kf-q:focus, .kf .kf-q:focus-visible { outline: none !important; box-shadow: none !important; }
.kf .kf-help { clear: both; max-width: 520px; margin: 0 0 26px; color: var(--kf-muted); font-size: 1rem; line-height: 1.55; }
.kf .kf-label { margin: 22px 0 10px; color: var(--kf-ink); font-size: .9rem; font-weight: 700; }

/* Bereich: Kacheln */
.kf-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kf .kf-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; gap: 18px; min-height: 112px; margin: 0; padding: 16px; border-radius: 18px; background: var(--kf-paper); color: var(--kf-ink); font-size: .98rem; font-weight: 700; line-height: 1.2; cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease; }
.kf .kf-tile:hover { background: #fff; box-shadow: 0 0 0 1px var(--kf-line), 0 14px 26px -16px rgba(16, 43, 64, .4); transform: translateY(-2px); }
.kf-tile svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: #fff; color: var(--kf-action); transition: background-color .2s ease, color .2s ease; }
.kf .kf-tile:has(input:checked) { background: var(--kf-night); color: #fff; box-shadow: 0 16px 30px -16px rgba(0, 20, 36, .75); }
.kf-tile:has(input:checked) svg { background: var(--kf-action); color: #fff; }

/* Anliegen: große Antwortzeilen */
.kf-options { display: grid; gap: 10px; }
.kf .kf-option { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 22px; align-items: center; gap: 16px; margin: 0; padding: 14px 18px 14px 14px; border-radius: 18px; background: var(--kf-paper); color: var(--kf-ink); cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease; }
.kf .kf-option:hover { background: #fff; box-shadow: 0 0 0 1px var(--kf-line), 0 14px 26px -16px rgba(16, 43, 64, .4); transform: translateX(3px); }
.kf-option svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: #fff; color: var(--kf-action); }
.kf-option strong { display: block; font-size: 1.02rem; font-weight: 700; }
.kf-option small { display: block; margin-top: 2px; color: var(--kf-muted); font-size: .88rem; font-weight: 500; }
.kf .kf-option:has(input:checked) { background: var(--kf-night); color: #fff; }
.kf .kf-option:has(input:checked) small { color: rgba(255, 255, 255, .7); }
.kf-option:has(input:checked) svg { background: var(--kf-action); color: #fff; }

/* Haken für gewählte Antworten */
.kf .kf-tile::after, .kf .kf-option::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--kf-action) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 13px no-repeat; opacity: 0; transform: scale(.4); transition: opacity .2s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.kf .kf-tile::after { position: absolute; top: 14px; right: 14px; }
.kf .kf-tile:has(input:checked)::after, .kf .kf-option:has(input:checked)::after { opacity: 1; transform: scale(1); }

/* Tageszeit: Chips */
.kf-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kf .kf-chip { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 0; padding: 0 12px; border-radius: 999px; background: var(--kf-paper); color: var(--kf-ink); font-size: .94rem; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.kf .kf-chip:hover { background: #fff; box-shadow: 0 0 0 1px var(--kf-line); }
.kf .kf-chip:has(input:checked) { background: var(--kf-ink); color: #fff; box-shadow: none; }

/* Native Auswahl bleibt bedienbar (Tastatur, Screenreader), ist aber unsichtbar */
.kf :is(.kf-tile, .kf-option, .kf-chip) input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kf :is(.kf-tile, .kf-option, .kf-chip) > span { color: inherit; }
.kf :is(.kf-tile, .kf-option, .kf-chip):has(input:focus-visible) { outline: 3px solid var(--kf-action); outline-offset: 3px; }
.kf .is-pop { animation: kf-pop .36s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes kf-pop { 40% { transform: scale(.965); } 100% { transform: scale(1); } }

/* Textfelder */
.kf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.kf-field + .kf-field, .kf-row + .kf-field { margin-top: 14px; }
.kf-row > .kf-field { margin-top: 0; }
.kf .kf-field label { display: block; margin: 0 0 8px; color: var(--kf-ink); font-size: .9rem; font-weight: 700; }
.kf .kf-field label span { color: var(--kf-muted); font-weight: 500; }
.kf .kf-card :where(input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]), textarea) { display: block; width: 100%; height: 56px; margin: 0; padding: 0 16px; border: 1px solid var(--kf-field); border-radius: 14px; background: #fff; color: var(--kf-ink); font: 500 1.05rem/1.3 Inter, sans-serif; box-shadow: none; transition: border-color .15s ease, box-shadow .15s ease; }
.kf .kf-card input[type="date"] { height: 56px; padding: 0 16px; font: 500 1.05rem/1.3 Inter, sans-serif; color: var(--kf-ink); }
.kf .kf-card textarea { height: auto; min-height: 150px; padding: 15px 16px; line-height: 1.5; resize: vertical; }
.kf .kf-card :is(input, textarea)::placeholder { color: var(--kf-soft); }
.kf .kf-card :is(input:not([type="radio"]):not([type="checkbox"]), textarea):hover { border-color: #a9b9c6; }
.kf .kf-card :is(input:not([type="radio"]):not([type="checkbox"]), textarea):focus { border-color: var(--kf-action); outline: 0; box-shadow: 0 0 0 4px rgba(1, 118, 228, .15); }
.kf .kf-field.is-invalid :is(input, textarea) { border-color: #c2334d; box-shadow: 0 0 0 4px rgba(194, 51, 77, .12); }
.kf .kf-tiles.is-invalid .kf-tile, .kf .kf-options.is-invalid .kf-option { box-shadow: inset 0 0 0 1px rgba(194, 51, 77, .35); }

/* Häkchen (Termin flexibel, Datenschutz) */
.kf .kf-check { display: flex; align-items: flex-start; gap: 12px; margin: 20px 0 0; color: var(--kf-ink); font-size: .94rem; font-weight: 500; line-height: 1.5; cursor: pointer; }
.kf .kf-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--kf-action); }
.kf .kf-check a { color: var(--kf-action); font-weight: 700; }
.kf .kf-check.is-invalid { color: #8c1832; }

/* Zusammenfassung */
.kf-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 22px; }
.kf-summary:empty { display: none; }
.kf-summary__item { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px 8px 14px; border: 0; border-radius: 999px; background: #eaf4ff; color: var(--kf-action); font: 700 .86rem/1.2 Inter, sans-serif; cursor: pointer; transition: background-color .2s ease; }
.kf-summary__item::after { content: ""; width: 13px; height: 13px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230176e4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 2.5l2.5 2.5L6 12.5 3 13l.5-3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.kf-summary__item:hover { background: #d9ebff; }

/* Fehlermeldung */
.kf-error { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: #fbecef; color: #8c1832; font-size: .92rem; font-weight: 600; }
.kf-error[hidden] { display: none; }
.kf-error::before { content: "!"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #c2334d; color: #fff; font-size: .8rem; font-weight: 800; }
.kf .lead-form__status { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; font-size: .92rem; }

/* ---------- Aktionen ---------- */
.kf-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 30px; }
.kf-actions[hidden] { display: none; }
.kf .kf-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border: 0; border-radius: 16px; font: 700 1.02rem/1 Inter, sans-serif; cursor: pointer; transition: background-color .2s ease, transform .2s ease, color .2s ease; }
.kf .kf-actions button[hidden] { display: none; }
.kf .kf-actions .kf-skip { margin-right: auto; padding: 0 14px; background: none; color: var(--kf-muted); }
.kf .kf-actions .kf-skip:hover { background: var(--kf-paper); color: var(--kf-ink); }
.kf .kf-actions .kf-next { min-width: 180px; background: var(--kf-night); color: #fff; }
.kf .kf-actions .kf-next:hover { background: #0b2a44; transform: translateY(-1px); }
.kf .kf-next svg { width: 19px; height: 19px; transition: transform .2s ease; }
.kf .kf-next:hover svg { transform: translateX(4px); }
.kf .kf-actions .kf-send { flex: 1; background: var(--kf-magenta); color: #fff; box-shadow: 0 16px 30px -16px rgba(166, 22, 87, .7); }
.kf .kf-actions .kf-send:hover { background: #8f124a; transform: translateY(-1px); }
.kf .kf-actions .kf-send:disabled { cursor: wait; opacity: .75; transform: none; }
.kf .kf-send svg { width: 19px; height: 19px; }
.kf-legal { margin: 14px 0 0; color: var(--kf-muted); font-size: .84rem; line-height: 1.5; text-align: center; }
.kf-legal[hidden] { display: none; }
.kf-legal a { color: var(--kf-ink); font-weight: 700; }

/* Übergänge zwischen den Fragen */
.kf-viewport { overflow: hidden; margin: -6px; padding: 6px; }
.kf-viewport[hidden] { display: none; }
.kf-step.is-in-next { animation: kf-in-next .4s cubic-bezier(.2, .7, .2, 1) both; }
.kf-step.is-in-prev { animation: kf-in-prev .4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes kf-in-next { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes kf-in-prev { from { opacity: 0; transform: translateX(-32px); } to { opacity: 1; transform: none; } }
.kf-step:is(.is-in-next, .is-in-prev) :is(.kf-tile, .kf-option, .kf-chip, .kf-field, .kf-check, .kf-summary, textarea) { animation: kf-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
.kf-step :is(.kf-tile, .kf-option):nth-child(2) { animation-delay: .03s; }
.kf-step :is(.kf-tile, .kf-option):nth-child(3) { animation-delay: .06s; }
.kf-step :is(.kf-tile, .kf-option):nth-child(4) { animation-delay: .09s; }
.kf-step :is(.kf-tile, .kf-option):nth-child(5) { animation-delay: .12s; }
.kf-step :is(.kf-tile, .kf-option):nth-child(n+6) { animation-delay: .15s; }
@keyframes kf-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Danke */
.kf-done { padding: 26px 0 10px; text-align: center; outline: 0; }
.kf-done[hidden] { display: none; }
.kf-done__icon { width: 96px; height: 96px; margin: 0 auto 22px; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.kf-done__icon circle { fill: #eef5fd; stroke: #dbe9f7; stroke-width: 2.5; animation: kf-ring .5s cubic-bezier(.3, 1.6, .5, 1) both; transform-origin: center; }
.kf-done__icon path { stroke: var(--kf-action); stroke-width: 3.5; stroke-dasharray: 40; stroke-dashoffset: 40; animation: kf-draw .55s .3s cubic-bezier(.65, 0, .35, 1) forwards; }
@keyframes kf-ring { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes kf-draw { to { stroke-dashoffset: 0; } }
.kf .kf-done h2 { margin: 0 0 10px; color: var(--kf-ink); font-size: clamp(1.7rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.04em; animation: kf-rise .5s .4s both; }
.kf-done p { max-width: 420px; margin: 0 auto 24px; color: var(--kf-muted); font-size: 1.02rem; line-height: 1.55; animation: kf-rise .5s .5s both; }
.kf .kf-done__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 14px; background: var(--kf-paper); color: var(--kf-ink); font-weight: 700; text-decoration: none; animation: kf-rise .5s .6s both; }
.kf .kf-done__link:hover { background: var(--kf-line); }

/* Ausweg unter der Karte */
.kf-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: 22px 0 0; color: var(--kf-muted); font-size: .95rem; text-align: center; }
.kf-alt svg { width: 17px; height: 17px; color: var(--kf-action); }
.kf-alt a { color: var(--kf-ink); font-weight: 800; text-decoration: none; }
.kf-alt a:hover { text-decoration: underline; }
.kf-alt span { padding: 3px 10px; border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 600; }

/* ---------- Seitenleiste: nur auf großen Bildschirmen ---------- */
.kf-side { display: none; }
.kf-main { min-width: 0; }

@media (min-width: 1100px) {
  .kf-stage { padding: clamp(36px, 6vh, 64px) 32px clamp(64px, 9vh, 110px); }
  .kf-shell { max-width: 1240px; }
  .kf .kf-card { display: grid; grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); min-height: min(720px, calc(100vh - 200px)); padding: 0; overflow: hidden; border-radius: 32px; }
  .kf-main { display: flex; flex-direction: column; padding: 40px clamp(40px, 5vw, 72px) 36px; }
  .kf-main > .kf-viewport { flex: 1; }
  .kf-alt { display: none; }

  /* Kopf rechts: nur Zurück, Zähler, Balken (Titel steht in der Seitenleiste) */
  .kf .kf-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .kf-head { grid-template-columns: auto 1fr auto; margin-bottom: 40px; }
  .kf-count { grid-column: 3; }

  .kf .kf-card .kf-q { font-size: clamp(2.2rem, 3vw, 3rem); }
  .kf .kf-help { margin-bottom: 32px; font-size: 1.06rem; }
  .kf-tiles { gap: 12px; }
  .kf .kf-tile { min-height: 132px; padding: 20px; font-size: 1.04rem; }
  .kf-tile svg { width: 46px; height: 46px; padding: 12px; border-radius: 14px; }
  .kf .kf-option { padding: 16px 22px 16px 16px; }
  .kf-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kf-options .kf-option:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .kf .kf-card textarea { min-height: 190px; }
  .kf-actions { margin-top: 36px; }

  /* Dunkle Seitenleiste */
  .kf-side { position: relative; display: flex; flex-direction: column; padding: 44px 36px 32px; color: #fff; background: radial-gradient(90% 60% at 100% 0%, rgba(1, 118, 228, .35), transparent 60%), radial-gradient(70% 50% at 0% 100%, rgba(33, 93, 133, .4), transparent 60%), var(--kf-night); }
  .kf-side__kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: rgba(255, 255, 255, .86); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
  .kf-side__kicker span { width: 28px; height: 3px; border-radius: 2px; background: #009ef3; }
  .kf-side__title { margin: 0 0 40px; color: #fff; font-size: 1.9rem; font-weight: 800; line-height: 1.08; letter-spacing: -.045em; }
  .kf-side__title em { font-style: normal; color: var(--kf-bright); background: linear-gradient(180deg, #19aaff 0%, #0a86e6 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

  /* Weg durch die Fragen: echte Reihenfolge, Linie verbindet die Punkte */
  .kf-trail { position: relative; display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: kf-trail; }
  .kf-trail::before { content: ""; position: absolute; top: 18px; bottom: 18px; left: 17px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
  .kf-trail li { position: relative; counter-increment: kf-trail; }
  .kf .kf-trail button { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 14px; width: 100%; min-height: 50px; padding: 6px 10px 6px 0; border: 0; border-radius: 14px; background: none; color: rgba(255, 255, 255, .5); font: inherit; text-align: left; cursor: default; transition: background-color .2s ease, color .3s ease; }
  .kf .kf-trail button:disabled { opacity: 1; }
  .kf .kf-trail button:not(:disabled) { cursor: pointer; }
  .kf .kf-trail button:not(:disabled):hover { background: rgba(255, 255, 255, .06); }
  .kf-trail__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #0b2236; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .16); transition: background-color .3s ease, box-shadow .3s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
  .kf-trail__dot::before { content: counter(kf-trail); color: rgba(255, 255, 255, .55); font-size: .86rem; font-weight: 800; }
  .kf-trail__text strong { display: block; font-size: .98rem; font-weight: 700; line-height: 1.25; }
  .kf-trail__text small { display: block; overflow: hidden; color: #8fd0ff; font-size: .84rem; font-weight: 500; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
  .kf-trail__text small:empty { display: none; }
  .kf-trail__text small.is-new { animation: kf-rise .4s cubic-bezier(.2, .7, .2, 1) both; }
  .kf-trail li.is-done button { color: rgba(255, 255, 255, .86); }
  .kf-trail li.is-done .kf-trail__dot { background: var(--kf-action); box-shadow: none; }
  .kf-trail li.is-done .kf-trail__dot::before { content: ""; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3L12.5 5'/%3E%3C/svg%3E") center / contain no-repeat; }
  .kf-trail li.is-current button { color: #fff; }
  .kf-trail li.is-current .kf-trail__dot { background: #fff; box-shadow: 0 0 0 6px rgba(10, 160, 255, .22); transform: scale(1.05); }
  .kf-trail li.is-current .kf-trail__dot::before { color: var(--kf-night); }

  .kf-trail { margin-bottom: 32px; }
  .kf .kf-side__call { display: flex; align-items: center; gap: 14px; margin-top: auto; padding: 16px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: #fff; text-decoration: none; transition: background-color .2s ease; }
  .kf .kf-side__call:hover { background: rgba(255, 255, 255, .11); color: #fff; }
  .kf-side__call svg { flex: none; width: 44px; height: 44px; padding: 12px; border-radius: 50%; background: var(--kf-action); color: #fff; }
  .kf-side__call small { display: block; color: rgba(255, 255, 255, .66); font-size: .8rem; font-weight: 600; }
  .kf-side__call strong { display: block; margin-top: 2px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
  .kf-side__call em { display: block; margin-top: 2px; color: rgba(255, 255, 255, .55); font-size: .76rem; font-style: normal; }

  .kf-done { margin: auto 0; }
}

/* ---------- Handy: Aktionsleiste klebt unten, Kacheln zweispaltig ---------- */
@media (max-width: 767.98px) {
  body:has(.kf) .mobile-dock { display: none !important; }
  .kf-stage { padding: 12px 10px 40px; }
  .kf .kf-card { scroll-margin-top: 80px; padding: 18px 18px 0; border-radius: 22px; }
  .kf-head { margin-bottom: 22px; }
  .kf .kf-title { font-size: .72rem !important; }
  .kf-count { font-size: .78rem; }
  .kf .kf-help { margin-bottom: 20px; font-size: .96rem; }
  .kf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kf .kf-tile { min-height: 96px; padding: 14px; gap: 14px; font-size: .94rem; }
  .kf .kf-tile:last-child { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; min-height: 0; }
  .kf .kf-option { grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 12px; padding: 12px 14px 12px 12px; }
  .kf-option svg { width: 40px; height: 40px; padding: 10px; }
  .kf-option small { font-size: .84rem; }
  .kf-row { grid-template-columns: minmax(0, 1fr); }
  .kf-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kf-actions { position: sticky; bottom: 0; z-index: 3; margin: 24px -18px 0; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-radius: 0 0 22px 22px; background: rgba(255, 255, 255, .94); box-shadow: 0 -1px 0 var(--kf-line); backdrop-filter: blur(10px); }
  .kf .kf-actions .kf-next { flex: 1; min-width: 0; }
  .kf-legal { margin: 0; padding: 4px 4px 18px; }
  .kf-done { padding-bottom: 26px; }
  .kf-alt { padding: 0 16px; }
}
/* ---------- Runde 3: moderne Elemente und Bewegung ---------- */
/* Fortschritt in Segmenten: erledigt = voll, aktuell = füllt sich */
.kf-bar--seg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; height: 6px; overflow: visible; background: none; }
.kf-bar--seg > span { display: block; width: auto; height: 100%; position: relative; overflow: hidden; border-radius: 999px; background: var(--kf-paper); }
.kf-bar--seg > span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #0a86e6, #19aaff); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.kf-bar--seg > span.is-filled::after { transform: scaleX(1); }
.kf-bar--seg > span.is-active::after { transform: scaleX(.45); animation: kf-breathe 1.8s ease-in-out infinite; }
@keyframes kf-breathe { 50% { transform: scaleX(.62); } }

/* Frage baut sich Wort für Wort auf */
.kf .kf-q .kf-w { display: inline-block; }
.kf-step:is(.is-in-next, .is-in-prev) .kf-w { animation: kf-word .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i) * 55ms); }
.kf-card.is-stepped:not(.is-moved) .kf-step:first-child .kf-w { animation: kf-word .6s .1s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.1s + var(--i) * 60ms); }
@keyframes kf-word { from { opacity: 0; transform: translateY(.45em) rotate(2deg); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* Tastenkürzel (nur mit Maus/Tastatur sichtbar) */
.kf .kf-key { display: none; }
@media (hover: hover) and (min-width: 768px) {
  .kf .kf-key { position: absolute; display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--kf-line), 0 1px 0 var(--kf-line); color: var(--kf-muted); font: 700 .72rem/1 Inter, sans-serif; transition: background-color .2s ease, color .2s ease; }
  .kf .kf-tile .kf-key { right: 14px; top: 14px; transition: opacity .2s ease; }
  .kf .kf-tile:has(input:checked) .kf-key { opacity: 0; }
  .kf .kf-option .kf-key, .kf .kf-pick .kf-key { right: 52px; top: 50%; transform: translateY(-50%); }
  .kf :is(.kf-tile, .kf-option, .kf-pick):has(input:checked) .kf-key { background: rgba(255, 255, 255, .14); box-shadow: none; color: #fff; }
  .kf-enter { margin-right: 4px; color: var(--kf-soft); font-size: .84rem; }
  .kf-enter kbd { margin-left: 4px; padding: 3px 7px; border-radius: 6px; background: var(--kf-paper); box-shadow: inset 0 0 0 1px var(--kf-line); color: var(--kf-muted); font: 700 .74rem/1 Inter, sans-serif; }
}
.kf-enter { display: none; }
@media (hover: hover) and (min-width: 768px) { .kf-enter:not([hidden]) { display: inline-block; } }
.is-keyed { animation: kf-pop .36s cubic-bezier(.3, 1.6, .5, 1); }

/* Kacheln: Symbol hebt sich, gewählte Kachel federt */
.kf-tile svg, .kf-option svg, .kf-pick svg { transition: background-color .2s ease, color .2s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.kf .kf-tile:hover svg { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.kf .kf-option:hover svg, .kf .kf-pick:hover svg { transform: scale(1.08); }
.kf .kf-tile, .kf .kf-option, .kf .kf-pick { overflow: hidden; isolation: isolate; }

/* Antwortzeilen: Ring rechts, der sich füllt */
.kf .kf-option::after { width: 22px; height: 22px; background: transparent; box-shadow: inset 0 0 0 2px #b9c7d3; opacity: 1; transform: none; transition: background-color .2s ease, box-shadow .2s ease; }
.kf .kf-option:has(input:checked)::after { background: var(--kf-action) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 13px no-repeat; box-shadow: 0 0 0 4px rgba(255, 255, 255, .14); }

/* Dringlichkeit: drei Karten nebeneinander */
.kf-urgency { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kf .kf-pick { position: relative; display: grid; gap: 12px; align-content: start; margin: 0; padding: 16px; border-radius: 18px; background: var(--kf-paper); color: var(--kf-ink); cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease; }
.kf .kf-pick:hover { background: #fff; box-shadow: 0 0 0 1px var(--kf-line), 0 14px 26px -16px rgba(16, 43, 64, .4); transform: translateY(-2px); }
.kf-pick svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: #fff; color: var(--kf-action); }
.kf-pick strong { display: block; font-size: .98rem; font-weight: 700; line-height: 1.25; }
.kf-pick small { display: block; margin-top: 3px; color: var(--kf-muted); font-size: .84rem; font-weight: 500; }
.kf .kf-pick:has(input:checked) { background: var(--kf-night); color: #fff; box-shadow: 0 16px 30px -16px rgba(0, 20, 36, .75); }
.kf .kf-pick:has(input:checked) small { color: rgba(255, 255, 255, .7); }
.kf-pick:has(input:checked) svg { background: var(--kf-action); color: #fff; }
.kf .kf-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kf .kf-pick:has(input:focus-visible) { outline: 3px solid var(--kf-action); outline-offset: 3px; }
@media (hover: hover) and (min-width: 768px) { .kf .kf-pick .kf-key { top: 16px; right: 16px; transform: none; } }

/* Genaues Datum aufklappbar */
.kf-more { margin-top: 20px; border-radius: 16px; background: var(--kf-paper); }
.kf-more summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; color: var(--kf-ink); font-weight: 700; cursor: pointer; list-style: none; }
.kf-more summary::-webkit-details-marker { display: none; }
.kf-more summary::after { content: ""; width: 9px; height: 9px; margin-left: auto; border-right: 2px solid var(--kf-muted); border-bottom: 2px solid var(--kf-muted); transform: rotate(45deg) translateY(-2px); transition: transform .25s ease; }
.kf-more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.kf-more summary svg { width: 18px; height: 18px; color: var(--kf-action); }
.kf-more > :not(summary) { margin: 0 16px; }
.kf-more > .kf-check { padding-bottom: 16px; }
.kf-more[open] > :not(summary) { animation: kf-rise .35s cubic-bezier(.2, .7, .2, 1) both; }

/* Schwebende Beschriftung + Haken bei gültiger Eingabe */
.kf .kf-field--float { position: relative; }
.kf .kf-field--float input { padding-top: 18px !important; }
.kf .kf-field--float label { position: absolute; left: 17px; top: 18px; margin: 0; color: var(--kf-soft); font-size: 1.02rem; font-weight: 500; pointer-events: none; transform-origin: left top; transition: transform .2s cubic-bezier(.2, .7, .2, 1), color .2s ease; }
.kf .kf-field--float label span { color: inherit; }
.kf .kf-field--float input:focus + label, .kf .kf-field--float input:not(:placeholder-shown) + label { color: var(--kf-muted); transform: translateY(-11px) scale(.76); font-weight: 700; }
.kf .kf-field--float input:focus + label { color: var(--kf-action); }
.kf-field__ok { position: absolute; right: 16px; top: 18px; width: 20px; height: 20px; border-radius: 50%; background: #1a8a52 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5'/%3E%3C/svg%3E") center / 12px no-repeat; opacity: 0; transform: scale(.3); transition: opacity .2s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none; }
.kf .kf-field--float input:not(:placeholder-shown):valid ~ .kf-field__ok { opacity: 1; transform: none; }
.kf .kf-field--float input:not(:placeholder-shown):valid { padding-right: 46px; }

/* Beschreibung: Zähler im Feld, Vorschläge als Chips */
.kf-text { position: relative; }
.kf-text__count { position: absolute; right: 14px; bottom: 12px; color: var(--kf-soft); font-size: .76rem; font-weight: 600; pointer-events: none; }
.kf-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.kf-idea { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px 0 12px; border: 0; border-radius: 999px; background: var(--kf-paper); color: var(--kf-ink); font: 600 .9rem/1 Inter, sans-serif; cursor: pointer; animation: kf-rise .4s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(.15s + var(--i) * 50ms); transition: background-color .2s ease, color .2s ease; }
.kf-idea::before { content: "+"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #fff; color: var(--kf-action); font-weight: 800; transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.kf-idea:hover { background: #e7edf2; }
.kf-idea[aria-pressed="true"] { background: var(--kf-ink); color: #fff; }
.kf-idea[aria-pressed="true"]::before { content: "✓"; background: var(--kf-action); color: #fff; transform: rotate(360deg); }

/* Klickwelle */
.kf-wave { position: absolute; z-index: -1; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: rgba(1, 118, 228, .18); pointer-events: none; animation: kf-wave .6s ease-out forwards; }
.kf-actions button .kf-wave, .kf :is(.kf-tile, .kf-option, .kf-pick):has(input:checked) .kf-wave, .kf-idea[aria-pressed="true"] .kf-wave { background: rgba(255, 255, 255, .28); z-index: 0; }
.kf .kf-actions button { position: relative; overflow: hidden; }
@keyframes kf-wave { to { transform: scale(28); opacity: 0; } }

/* Seitenleiste: Linie füllt sich mit dem Fortschritt */
@media (min-width: 1100px) {
  .kf-trail::after { content: ""; position: absolute; top: 18px; left: 17px; width: 2px; height: calc((100% - 36px) * var(--kf-trail-fill, 0)); border-radius: 2px; background: linear-gradient(180deg, #19aaff, var(--kf-action)); transition: height .6s cubic-bezier(.2, .7, .2, 1); }
  .kf-trail li { z-index: 1; }
}

/* Danke: Punkte springen aus dem Haken */
.kf-done { position: relative; }
.kf-done__burst { position: absolute; left: 50%; top: 74px; width: 0; height: 0; }
.kf-done__burst i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--kf-action); opacity: 0; animation: kf-burst .9s .45s cubic-bezier(.2, .7, .2, 1) forwards; }
.kf-done__burst i:nth-child(even) { width: 6px; height: 6px; margin: -3px; background: #19aaff; }
.kf-done__burst i:nth-child(1) { --a: 0deg; } .kf-done__burst i:nth-child(2) { --a: 36deg; } .kf-done__burst i:nth-child(3) { --a: 72deg; } .kf-done__burst i:nth-child(4) { --a: 108deg; } .kf-done__burst i:nth-child(5) { --a: 144deg; }
.kf-done__burst i:nth-child(6) { --a: 180deg; } .kf-done__burst i:nth-child(7) { --a: 216deg; } .kf-done__burst i:nth-child(8) { --a: 252deg; } .kf-done__burst i:nth-child(9) { --a: 288deg; } .kf-done__burst i:nth-child(10) { --a: 324deg; }
@keyframes kf-burst { 0% { opacity: 1; transform: rotate(var(--a)) translateX(30px) scale(1); } 100% { opacity: 0; transform: rotate(var(--a)) translateX(78px) scale(.4); } }
.kf-done[hidden] .kf-done__burst i { animation: none; }

@media (max-width: 767.98px) {
  .kf-urgency { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .kf .kf-pick { grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; }
  .kf-done__burst { top: 66px; }
}
@media (min-width: 1100px) {
  .kf-urgency .kf-pick { min-height: 150px; padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .kf *, .kf *::before, .kf *::after { transition: none !important; animation: none !important; }
  .kf-wave, .kf-done__burst { display: none; }
  .kf-done__icon path { stroke-dashoffset: 0; }
}

/* Erste Frage: Notfall ist kein Formularweg, sondern ein Anruf (27.10.2026, drei Hauptwege) */
.kf .kf-urgent { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 16px; margin-top: 10px; padding: 12px 18px 12px 14px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--kf-line); color: var(--kf-ink); text-decoration: none; transition: background-color .2s ease, box-shadow .2s ease; }
.kf .kf-urgent:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--kf-magenta); color: var(--kf-ink); }
.kf .kf-urgent:focus-visible { outline: 3px solid var(--kf-action); outline-offset: 3px; }
.kf-urgent svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--kf-magenta); color: #fff; }
.kf-urgent strong { display: block; font-size: 1.02rem; font-weight: 700; }
.kf-urgent small { display: block; margin-top: 2px; color: var(--kf-muted); font-size: .88rem; font-weight: 500; }
@media (max-width: 767.98px) {
  .kf .kf-urgent { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 10px 14px 10px 12px; }
  .kf-urgent svg { width: 40px; height: 40px; padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .kf .kf-urgent { transition: none; } }
/* Tastenkürzel nicht über den Beschreibungstext legen */
@media (hover: hover) and (min-width: 768px) { .kf .kf-option > span { padding-right: 36px; } }
