/* ═══ Werkzeuge: „Über mich“-Karte und Notfallplan ═══════════════════════
   Bildschirm: Baukasten + maßstabsgetreue Vorschau (Karte in mm).
   Druck: nur das Blatt #ktPrintSheet (body.print-kt-…), Farben druckfreundlich. */

.kt-wrap { padding-bottom: 40px; }
.kt-wrap--narrow { max-width: 900px; }
.kt fieldset { border: none; padding: 0; margin: 0; min-width: 0; }
.kt h2 { font-size: 24px; display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.kt-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--font-text); font-size: 16px; font-weight: 700; }
.kt-mode, .kt-view { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kt-mode { margin-top: 18px; }
.kt [hidden] { display: none !important; }
.kt-more { display: none; }
.kt--lang .kt-more { display: block; }
.kt--lang .kt-more[hidden], [data-hint-ich][hidden], [data-hint-kind][hidden] { display: none; }
.kt .tipp { font-weight: 700; color: var(--ink); }
.kt-sec { margin-bottom: 24px; }
.kt-sec.card { padding: 22px 24px; }

/* Fortschritt */
.kt-progress-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 4px 0 18px; }
.kt-dots { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; }
.kt-dots li { width: 28px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: background .2s; }
.kt-dots li.is-done { background: var(--fill); }
.kt-bar { flex: 1; min-width: 120px; height: 10px; border-radius: 5px; background: var(--paper-2); border: 1px solid var(--line); overflow: hidden; }
.kt-bar span { display: block; height: 100%; width: 0; background: var(--spectrum, var(--fill)); transition: width .3s; }
.kt-progress-text { font-weight: 700; font-size: 15px; margin: 0; }

/* Auswahl „Für wen“ */
.kt-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 14px; }
.kt-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; text-align: left; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--paper); font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color .15s, transform .15s; }
.kt-opt:hover { border-color: var(--ink); transform: translateY(-1px); }
.kt-opt.is-chosen { border-color: var(--ink); background: color-mix(in srgb, var(--fill) 28%, var(--card)); box-shadow: 3px 3px 0 var(--ink); }
.kt-opt .ico { flex-shrink: 0; }
.kt-who-fields { margin-top: 4px; }

/* Bausteine antippen */
.kt-group { padding: 18px 20px; margin-bottom: 14px; }
.kt-group-title { float: left; width: 100%; font-family: var(--font-display); font-size: 20px; font-weight: 560; margin-bottom: 10px; padding: 0; }
.kt-group-title + *, .kt-group .kt-chips { clear: both; }
.kt-count { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-3); margin: -4px 0 8px; }
.kt-count:empty { display: none; }
.kt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kt-chip { display: inline-flex; align-items: flex-start; gap: 9px; max-width: 100%; padding: 8px 14px 8px 10px; text-align: left; border: 1.5px solid var(--line-strong); border-radius: 18px; background: var(--paper); font: inherit; font-size: 15.5px; line-height: 1.35; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.kt-chip:hover { border-color: var(--ink); }
.kt-chip-mark { position: relative; width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; border: 1.5px solid var(--ink-3); border-radius: 50%; background: var(--card); }
.kt-chip.is-on { border-color: var(--ink); background: color-mix(in srgb, var(--fill) 26%, var(--card)); }
.kt-chip.is-on .kt-chip-mark { background: var(--ink); border-color: var(--ink); }
.kt-chip.is-on .kt-chip-mark::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.kt-chip-text { min-width: 0; overflow-wrap: anywhere; }
.kt-own { margin-top: 14px; }
.kt-own .form-label { font-size: 14.5px; }
.kt-own-row { display: flex; gap: 8px; }
.kt-own-row .form-control { flex: 1; min-width: 0; }
.kt-own-row .btn { flex-shrink: 0; }
.kt-picked { list-style: none; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--line-strong); display: grid; gap: 6px; }
.kt-picked[hidden] { display: none; }
.kt-picked li { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.kt-picked-text { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 15px; }
.kt-picked li.is-own { border-style: dashed; }
.kt-mini { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0; border: 1.5px solid var(--line-strong); border-radius: 50%; background: var(--paper); font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
.kt-mini:hover:not(:disabled) { border-color: var(--ink); }
.kt-mini:disabled { opacity: .3; cursor: default; }
.kt-chip:focus-visible, .kt-opt:focus-visible, .kt-mini:focus-visible, .kt-stepbtn:focus-visible { outline: 3px solid var(--thread); outline-offset: 2px; }

/* Gestalten */
.kt-field { margin-bottom: 18px !important; }
.kt-field legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.kt-field .form-check { margin-bottom: 6px; }
.kt-swatches, .kt-symbols { display: flex; flex-wrap: wrap; gap: 10px; }
.kt-swatch, .kt-symbol { position: relative; display: inline-block; cursor: pointer; }
.kt-swatch input, .kt-symbol input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.kt-swatch-dot { display: block; width: 40px; height: 40px; border-radius: 50%; background: var(--kt-band); border: 1.5px solid var(--line-strong); }
.kt-sym { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: var(--radius); border: 1.5px solid var(--line-strong); background: var(--paper); color: var(--ink); font-weight: 700; }
.kt-swatch input:checked + .kt-swatch-dot { border-color: var(--ink); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--ink); }
.kt-symbol input:checked + .kt-sym { border-color: var(--ink); background: color-mix(in srgb, var(--fill) 28%, var(--card)); box-shadow: 2px 2px 0 var(--ink); }
.kt-swatch input:focus-visible + .kt-swatch-dot, .kt-symbol input:focus-visible + .kt-sym { outline: 3px solid var(--thread); outline-offset: 5px; }
.kt-remember { margin-top: 16px; }

/* Aufbau Karte: Baukasten links, Vorschau rechts (mitlaufend) */
.kt-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 0 32px; align-items: start; }
.kt-build { grid-column: 1; grid-row: 1; min-width: 0; }
.kt-actions { grid-column: 1; grid-row: 2; }
.kt-preview { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--nav-height) + 16px); min-width: 0; }
.kt-preview h2 { font-size: 20px; }
.kt-preview-note { font-size: 14.5px; margin-top: 10px; }
.kt-full { margin-top: 12px; }
.kt-stage { position: relative; overflow: hidden; }
.kt-scale { transform-origin: top left; width: max-content; }
.kt-care { margin-top: 12px; }
.kt-care h2 { font-size: 21px; margin-bottom: 8px; }
.kt-care p + p { margin-top: 8px; }
@media (max-width: 960px) {
  .kt-layout { grid-template-columns: minmax(0, 1fr); }
  .kt-preview { grid-column: 1; grid-row: 2; position: static; margin-bottom: 24px; }
  .kt-actions { grid-row: 3; }
}

/* ── Kartenfarben (feste Werte, damit Ruhemodus den Druck nicht verändert) ── */
.kt-col--spektrum { --kt-c: #4FB8AA; --kt-band: linear-gradient(90deg, #F2B43A, #E9A15A, #EC7A5F, #E482A6, #A487D6, #5AAAD0, #4FB8AA, #6BB37E, #C9C44E); }
.kt-col--gelb    { --kt-c: #F2B43A; --kt-band: #F2B43A; }
.kt-col--orange  { --kt-c: #E9A15A; --kt-band: #E9A15A; }
.kt-col--rosa    { --kt-c: #E482A6; --kt-band: #E482A6; }
.kt-col--lila    { --kt-c: #A487D6; --kt-band: #A487D6; }
.kt-col--blau    { --kt-c: #5AAAD0; --kt-band: #5AAAD0; }
.kt-col--tuerkis { --kt-c: #4FB8AA; --kt-band: #4FB8AA; }
.kt-col--gruen   { --kt-c: #6BB37E; --kt-band: #6BB37E; }
.kt-col--grau    { --kt-c: #93A3BC; --kt-band: #93A3BC; }

/* ── Die Karte (Maße in mm, Schrift in pt über --kt-fs) ── */
.kt-card, .kt-plan, .kt-wallet { box-sizing: border-box; background: #fff; color: #1F2B2A; font-family: var(--font-text); }
.kt-card *, .kt-plan *, .kt-wallet * { box-sizing: border-box; }
.kt-card { display: flex; flex-direction: column; width: 105mm; height: 148mm; overflow: hidden; border: .4mm solid #1F2B2A; border-radius: 3mm; font-size: var(--kt-fs, 10pt); line-height: 1.35; }
.kt-card--a4 { width: 190mm; height: 133mm; }
.kt-card-band { flex-shrink: 0; height: 3.5mm; background: var(--kt-band); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.kt-card-head { display: flex; align-items: center; gap: 3.5mm; padding: 5mm 6mm 3mm; flex-shrink: 0; }
.kt-card-sym { display: flex; align-items: center; justify-content: center; width: 13mm; height: 13mm; flex-shrink: 0; border-radius: 50%; border: .35mm solid #1F2B2A; background: color-mix(in srgb, var(--kt-c) 35%, #fff); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.kt-card-sym svg { width: 8mm; height: 8mm; }
.kt-card-headtext { min-width: 0; }
.kt-card-title { margin: 0; font-family: var(--font-display); font-size: 1.75em; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.kt-card-sub { margin: 1mm 0 0; font-size: .92em; color: #46534F; }
.kt-card-groups { flex: 1; min-height: 0; overflow: hidden; padding: 0 6mm; }
.kt-card--a4 .kt-card-groups { column-count: 2; column-gap: 8mm; }
.kt-card-group { break-inside: avoid; margin-bottom: 2.6mm; }
.kt-card-group h4, .kt-plan-box h4, .kt-wallet-sec h4 { margin: 0 0 1.2mm; padding-bottom: .6mm; font-family: var(--font-text); font-size: .78em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-bottom: .5mm solid var(--kt-c); }
.kt-card ul, .kt-plan ul, .kt-wallet ul { list-style: none; margin: 0; padding: 0; }
.kt-card li, .kt-plan li, .kt-wallet li { position: relative; padding-left: 3.4mm; margin: 0 0 .8mm; overflow-wrap: anywhere; }
.kt-card li::before, .kt-plan li::before, .kt-wallet li::before { content: ''; position: absolute; left: 0; top: .48em; width: 1.6mm; height: 1.6mm; border-radius: 50%; background: var(--kt-c); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.kt-card-empty { color: #5F6B67; font-style: italic; margin: 2mm 0; }
.kt-card-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 3mm; flex-shrink: 0; margin: 0 6mm; padding: 2mm 0 4mm; border-top: .3mm dashed #B9AD98; font-size: .82em; color: #46534F; }
.kt-card-extra { min-width: 0; overflow-wrap: anywhere; color: #1F2B2A; }
.kt-card-thanks { margin-left: auto; white-space: nowrap; }

/* ── Notfallplan ── */
.kt-sos { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin: 0 0 22px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--card); }
.kt-sos .ico { flex-shrink: 0; margin-top: 2px; }
.kt-sos p { margin: 0; line-height: 1.6; }
.kt-explain h2 { font-size: 21px; margin-bottom: 8px; }
.kt-explain p + p { margin-top: 8px; }
.kt-fill { margin: 30px 0 34px; }
.kt-fill-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.kt-np-name { max-width: 420px; }
.kt-stepbar ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.kt-stepbar[hidden] { display: none; }
.kt-stepnum { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); font-family: var(--font-text); font-size: 14px; font-weight: 700; }
.kt-stepbtn { display: inline-flex; align-items: center; gap: 7px; padding: 4px 12px 4px 4px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--card); font: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.kt-stepbtn .kt-stepnum { width: 26px; height: 26px; font-size: 13px; }
.kt-stepbtn:hover { border-color: var(--ink); color: var(--ink); }
.kt-stepbtn.is-current { border-color: var(--ink); color: var(--ink); box-shadow: 2px 2px 0 var(--ink); }
.kt-stepbtn.is-done .kt-stepnum, .kt-step .kt-stepnum { background: var(--fill); }
.kt-step { padding: 20px 22px; margin-bottom: 14px; }
.kt-step[hidden] { display: none; }
.kt-step h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin: 0 0 6px; }
.kt-step h3:focus { outline: none; }
.kt-step h3:focus-visible { outline: 3px solid var(--thread); outline-offset: 4px; }
.kt-step > .muted { margin-bottom: 12px; }
.kt-stepnav { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kt-steptext { font-size: 14.5px; font-weight: 700; color: var(--ink-3); }
.np--alles .kt-stepnav { display: none; }
.kt-local { display: flex; gap: 6px; align-items: center; font-size: 14.5px; font-weight: 700; color: var(--ok); margin-bottom: 10px; }
.kt-roles { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kt-roles .chip { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; padding: 5px 11px; }
.kt-contacts { list-style: none; padding: 0; margin: 14px 0 12px; display: grid; gap: 10px; }
.kt-contact { display: grid; grid-template-columns: 1fr 1.3fr 1fr auto; gap: 8px 10px; align-items: end; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.kt-contact .form-label { font-size: 14px; }
.kt-contact-field { min-width: 0; }
.kt-result { margin-bottom: 34px; }
.kt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.kt-result-actions { justify-content: flex-start; margin-top: 16px; }
@media (max-width: 720px) {
  .kt-contact { grid-template-columns: 1fr; }
  .kt-contact-rm { justify-self: start; }
}
@media (max-width: 640px) {
  .kt-sec.card, .kt-group, .kt-step { padding: 16px 14px; }
  .kt h2 { font-size: 21px; }
  .kt-stepbtn:not(.is-current) .kt-steplabel { display: none; }
  .kt-stepbtn:not(.is-current) { padding-right: 4px; }
}
@media (max-width: 420px) {
  .kt-own-row { flex-wrap: wrap; }
  .kt-own-row .btn { width: 100%; justify-content: center; }
}

/* Plan (A4) */
.kt-plan { --kt-c: #4FB8AA; --kt-band: linear-gradient(90deg, #F2B43A, #E9A15A, #EC7A5F, #E482A6, #A487D6, #5AAAD0, #4FB8AA, #6BB37E, #C9C44E);
  width: 186mm; overflow: hidden; border: .4mm solid #1F2B2A; border-radius: 3mm; font-size: 11pt; line-height: 1.4; }
.kt-plan-head { padding: 6mm 8mm 3mm; }
.kt-plan-head h3 { margin: 0; font-family: var(--font-display); font-size: 22pt; font-weight: 600; line-height: 1.1; overflow-wrap: anywhere; }
.kt-plan-head p { margin: 1.5mm 0 0; color: #46534F; }
.kt-plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4mm; padding: 2mm 8mm 4mm; }
.kt-plan-box { padding: 3mm 4mm; border: .35mm solid #B9AD98; border-radius: 2.5mm; break-inside: avoid; }
.kt-plan-box--tun { border-left: 1.6mm solid #4FB8AA; }
.kt-plan-box--lassen { --kt-c: #EC7A5F; border-left: 1.6mm solid #EC7A5F; }
.kt-plan-box--kontakte { grid-column: 1 / -1; }
.kt-plan-box--tun, .kt-plan-box--lassen { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.kt-plan-box h4 { font-size: .8em; }
.kt-plan-sos { margin: 0 8mm 6mm; padding: 2.5mm 4mm; border: .35mm solid #1F2B2A; border-radius: 2mm; font-size: 10pt; }

/* Kärtchen fürs Portemonnaie: zwei Scheckkarten-Seiten (85,6 × 54 mm) zum Falten */
.kt-wallet { display: flex; width: 171.2mm; height: 54mm; overflow: hidden; border: .3mm solid #1F2B2A; border-radius: 3mm; }
.kt-wallet-side { display: flex; flex-direction: column; width: 85.6mm; height: 100%; font-size: var(--kt-fs, 7.5pt); line-height: 1.3; }
.kt-wallet-front { --kt-c: #4FB8AA; --kt-band: #4FB8AA; border-right: .3mm dashed #5F6B67; }
.kt-wallet-back { --kt-c: #EC7A5F; --kt-band: #EC7A5F; }
.kt-wallet .kt-card-band { height: 2mm; }
.kt-wallet-body { flex: 1; min-height: 0; overflow: hidden; padding: 2.2mm 3.5mm; }
.kt-wallet-title { margin: 0 0 1.2mm; font-family: var(--font-display); font-size: 1.5em; font-weight: 600; line-height: 1.15; }
.kt-wallet-name { margin: 0 0 1mm; font-weight: 700; }
.kt-wallet-sec { margin-bottom: 1.2mm; }
.kt-wallet-sec h4 { margin-bottom: .6mm; font-size: .82em; border-bottom-width: .35mm; }
.kt-wallet li { margin-bottom: .4mm; padding-left: 2.6mm; }
.kt-wallet li::before { width: 1.2mm; height: 1.2mm; }
.kt-wallet-sos { margin: 1mm 0 0; padding-top: .8mm; border-top: .25mm solid #B9AD98; font-size: .88em; }

/* Ruhe: keine Bewegung, gedämpfte Vorschau (nur Bildschirm) */
html.calm .kt-opt, html.calm .kt-chip, html.calm .kt-dots li, html.calm .kt-bar span { transition: none; }
html.calm .kt-opt:hover { transform: none; }
@media screen { html.calm .kt-stage, html.calm .kt-swatch-dot { filter: saturate(.55); } }
@media (prefers-reduced-motion: reduce) { .kt-opt, .kt-chip, .kt-dots li, .kt-bar span { transition: none; } .kt-opt:hover { transform: none; } }

/* ═══ Druck ═══ */
@media screen { .kt-print { display: none !important; } }
@page kt-a6 { size: 105mm 148mm; margin: 0; }
/* Seitenrand 0: Dann hat der Browser keinen Platz für Kopf-/Fußzeile (Datum, Titel, Adresse).
   Der Abstand zum Papierrand steckt stattdessen im Blatt selbst (padding). */
@page kt-a4 { size: A4 portrait; margin: 0; }
@page kt-plan { size: A4 portrait; margin: 0; }
@media print {
  body.print-kt-karte > *:not(.kt-print), body.print-kt-plan > *:not(.kt-print), body.print-kt-wallet > *:not(.kt-print) { display: none !important; }
  body.print-kt-karte, body.print-kt-plan, body.print-kt-wallet { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body.print-kt-karte::before, body.print-kt-plan::before, body.print-kt-wallet::before,
  body.print-kt-karte::after, body.print-kt-plan::after, body.print-kt-wallet::after { display: none !important; }
  .kt-print { display: block !important; }
  .kt-print--a6 { page: kt-a6; }
  .kt-print--a4 { page: kt-a4; }
  .kt-print--plan, .kt-print--wallet { page: kt-plan; }
  .kt-print--a6 .kt-card { border: none; border-radius: 0; }
  .kt-print--a4, .kt-print--plan, .kt-print--wallet { box-sizing: border-box; width: 210mm; padding: 12mm; }
  .kt-print--a4 { height: 296mm; overflow: hidden; padding: 10mm 10mm; }   /* nie eine zweite, leere Seite */
  .kt-print--a4 .kt-card { margin: 0 auto 7mm; border: .3mm dashed #5F6B67; break-inside: avoid; }
  .kt-print--a4 .kt-card:last-child { margin-bottom: 0; }
  .kt-print--plan .kt-plan { width: 100%; border: none; border-radius: 0; }
  .kt-print--plan .kt-plan-head { padding-left: 0; padding-right: 0; }
  .kt-print--plan .kt-plan-grid { padding-left: 0; padding-right: 0; }
  .kt-print--plan .kt-plan-sos { margin-left: 0; margin-right: 0; break-inside: avoid; }
  .kt-print--wallet .kt-wallet { margin-bottom: 10mm; break-inside: avoid; }
  .kt-print-hint { font-family: var(--font-text); font-size: 9pt; color: #46534F; margin: 0; }
}

/* Satz-Gruppen sind Karten: Innenabstand und Rahmen gegen die allgemeine fieldset-Regel oben wiederherstellen */
.kt fieldset.card { padding: 18px 20px; border: 1.5px solid var(--line); border-radius: var(--radius-l); background: var(--card); }
.kt fieldset.card > legend { float: left; width: 100%; padding: 0; }
@media (max-width: 640px) { .kt fieldset.card { padding: 14px 14px; } }
/* Symbol auf der Karte wie im Bildsystem der Seite: Farbkreis ohne schwarzen Rand */
.kt-card-sym { border: none !important; background: color-mix(in srgb, var(--kt-c) 45%, #fff); }
