/* Anker für Angehörige 2.0 – lädt nur auf Seiten mit der Angehörigen-Vorlage */

/* Vorlage: falscher Kasten „100% Sicher & Anonym … IP-maskiert“, Limit-Banner, versteckter Werkzeugkasten */
.angehoerigen-wrapper .hero-section > .privacy-box:not([style]),
.nc-ki-usagebanner { display: none !important; }
.angehoerigen-wrapper .tool-section { display: block !important; }
.angehoerigen-wrapper { position: relative; overflow-x: clip; }
/* Der Rahmen der Vorlage darf abschneiden, sich aber nicht verschieben lassen. */
body.page .angehoerigen-wrapper .glass-card { overflow: hidden !important; overflow: clip !important; }

.nxaf {
  --af-p: #c40d86;
  --af-p-dunkel: #9d0a6b;
  --af-o: #0e7490;          /* Ozean / Anker */
  --af-o-zart: #ecf8fb;
  --af-o-rand: #a5dbe7;
  --af-v: #5b3fa0;
  --af-v-zart: #f5f1fd;
  --af-v-rand: #ddd2f5;
  --af-g: #15803d;
  --af-text: #1f1d2b;
  --af-leise: #5e5b7a;
  --af-rand: #e3e7f0;
  --af-verlauf: linear-gradient(90deg, #0e7490 0%, #6366f1 50%, #c40d86 100%);
  max-width: 780px;
  margin: 0 auto;
  color: var(--af-text);
  font-size: 1rem;
  line-height: 1.55;
  text-align: left;
}
@media (max-width: 768px) { .angehoerigen-wrapper .tool-section .nxaf { margin: 0 8px; } }
.nxaf *, .nxaf *::before, .nxaf *::after { box-sizing: border-box; }
.nxaf [hidden] { display: none !important; }
.nxaf a { color: var(--af-p-dunkel); }

.nxaf-app { position: relative; background: #fff; border: 1px solid var(--af-rand); border-radius: 20px; padding: 26px 20px 22px; box-shadow: 0 12px 32px rgba(14, 116, 144, .12); min-height: 260px; overflow: hidden; }
.nxaf-app::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--af-verlauf); }
@media (max-width: 480px) { .nxaf-app { padding: 22px 14px 18px; border-radius: 16px; } }
.nxaf-screen { animation: nxaf-rein .25s ease-out; }
@keyframes nxaf-rein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Watercolor-CSS färbt Überschriften in .glass-card mit !important – hier gezielt */
.nxaf-h { font-size: 1.35rem; line-height: 1.3; font-weight: 800; margin: 0 0 8px; outline: none; color: var(--af-text); text-align: left; }
.nxaf p, .nxaf li { line-height: 1.55; }
.nxaf .nxaf-h3 { text-align: left; }
.nxaf-h3 { font-size: 1rem; font-weight: 800; margin: 20px 0 8px; }
.nxaf-sub { color: var(--af-leise); margin: 0 0 16px; }
.nxaf-klein { font-size: .88rem; color: var(--af-leise); font-weight: 400; }
.nxaf-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nxaf-konto { font-size: .88rem; color: var(--af-leise); margin: 14px 0 0; }
.nxaf-konto:empty { display: none; }

/* Kacheln */
.nxaf-kacheln { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .nxaf-kacheln { grid-template-columns: minmax(0, 1fr); } }
.nxaf-kacheln-klein { grid-template-columns: minmax(0, 1fr); }
.nxaf-kachel { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--af-o-rand); background: var(--af-o-zart); font: inherit; color: var(--af-text) !important; cursor: pointer; text-decoration: none !important; transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.nxaf-kachel:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(31, 29, 43, .08); }
.nxaf-kachel strong { display: block; font-size: 1.02rem; }
.nxaf-kachel small { display: block; color: var(--af-leise); font-size: .85rem; margin-top: 2px; }
.nxaf-kachel-i { font-size: 1.8rem; line-height: 1; flex: 0 0 auto; }
.nxaf-k-raum { background: #f5f1fd; border-color: #ddd2f5; }
.nxaf-k-gespraeche { background: #eef6fc; border-color: #cfe2f1; }
.nxaf-k-trennen { background: #fff1f5; border-color: #f7c5d4; }
.nxaf-k-craft { background: #e9f8f5; border-color: #9edcd0; }
.nxaf-k-wissen { background: #fff6e8; border-color: #fbd49a; }
.nxaf-k-karte { background: #fff1f2; border-color: #fecdd3; }
.nxaf-kachel.fertig { background: #ecfaf2; border-color: #b5e6c9; }

/* Knöpfe, Chips */
.nxaf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 18px; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none !important; border: 2px solid transparent; text-align: center; line-height: 1.3; }
.nxaf-btn-haupt { background: var(--af-p); color: #fff !important; box-shadow: 0 6px 16px rgba(196, 13, 134, .25); }
.nxaf-btn-haupt:hover { background: var(--af-p-dunkel); }
.nxaf-btn-haupt:disabled { background: #cfc9da; box-shadow: none; cursor: not-allowed; }
.nxaf-btn-zart { background: var(--af-o-zart); color: var(--af-o) !important; border-color: var(--af-o-rand); }
.nxaf-btn-zart:hover { border-color: var(--af-o); }
.nxaf-btn-zart:disabled { opacity: .6; cursor: not-allowed; }
.nxaf a.nxaf-btn { padding: 10px 18px !important; border-radius: 999px !important; }
.nxaf a.nxaf-btn-zart { background: var(--af-o-zart) !important; color: var(--af-o) !important; }
.nxaf a.nxaf-kachel { border-radius: 16px !important; }
.nxaf-btn:focus-visible, .nxaf-kachel:focus-visible, .nxaf-chip:focus-visible, .nxaf-link:focus-visible, .nxaf-mini:focus-visible { outline: 3px solid var(--af-text); outline-offset: 2px; }
.nxaf-link { background: none; border: 0; padding: 6px 2px; font: inherit; font-size: .92rem; color: var(--af-leise) !important; text-decoration: underline !important; cursor: pointer; }
.nxaf-mini { background: #fff; border: 1px solid var(--af-rand); border-radius: 999px; padding: 4px 10px; font: inherit; font-size: .82rem; cursor: pointer; color: var(--af-text); min-height: 34px; }
.nxaf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nxaf-chip { min-height: 40px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--af-v-rand); background: #fff; font: inherit; font-size: .93rem; color: var(--af-text); cursor: pointer; text-align: left; transition: background-color .15s ease, border-color .15s ease; }
.nxaf-chip:hover { border-color: var(--af-p); background: #fdf3f9; }
.nxaf-chip.an { background: var(--af-p); border-color: var(--af-p); color: #fff; box-shadow: 0 3px 10px rgba(196, 13, 134, .25); }
.nxaf-wahl { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 0; }
.nxaf-wahl .nxaf-btn { width: 100%; }
.nxaf-wahl-klein { margin-top: 12px; }
.nxaf-leise { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 12px; }
.nxaf-check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--af-leise); margin: 0 0 10px; cursor: pointer; }
.nxaf-check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--af-p); }

/* Fortschritt */
.nxaf-fortschritt { height: 8px; border-radius: 99px; background: #eef1f7; overflow: hidden; }
.nxaf-fortschritt span { display: block; height: 100%; background: var(--af-verlauf); border-radius: 99px; transition: width .3s ease; }
.nxaf-fortschritt-g span { background: linear-gradient(90deg, #22c55e, #15803d); }
.nxaf-schritt-nr { font-size: .85rem; color: var(--af-leise); margin: 8px 0 6px; font-weight: 600; }

/* Kurz-Check: Regler */
.nxaf-regler { display: grid; gap: 14px; }
.nxaf-r { padding: 12px 14px; border-radius: 14px; background: var(--af-o-zart); border: 1px solid var(--af-o-rand); }
.nxaf-r label { display: block; font-weight: 700; margin: 0 0 6px; }
.nxaf-r-zeile { display: flex; align-items: center; gap: 12px; }
.nxaf-r input[type="range"] { flex: 1 1 auto; width: 100%; min-height: 32px; accent-color: var(--af-o); cursor: pointer; }
.nxaf-r output { flex: 0 0 auto; min-width: 2.2em; text-align: center; font-weight: 800; font-size: 1.15rem; color: var(--af-o); background: #fff; border: 1px solid var(--af-o-rand); border-radius: 10px; padding: 2px 6px; }
.nxaf-r-l { display: flex; justify-content: space-between; font-size: .8rem; color: var(--af-leise); margin-top: 2px; }

/* Felder */
.nxaf-feld, .nxaf-text { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid #d3dbe6; font: inherit; color: var(--af-text); background: #fff; }
.nxaf-feld { min-height: 46px; }
.nxaf-text { resize: vertical; min-height: 72px; line-height: 1.55; }
.nxaf-feld:focus, .nxaf-text:focus { outline: 3px solid rgba(14, 116, 144, .25); border-color: var(--af-o); }
.nxaf-eigen { display: flex; gap: 8px; margin: 12px 0 0; }
.nxaf-eigen .nxaf-btn { min-height: 46px; flex: 0 0 auto; }

/* Ergebnis Mein Raum */
.nxaf-validierung { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.nxaf-validierung li { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--af-v-zart); border: 1px solid var(--af-v-rand); }
.nxaf-schritt { display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #ecf8fb 0%, #f1edff 100%); border: 1px solid var(--af-o-rand); }
.nxaf-schritt-i { font-size: 1.8rem; line-height: 1; }
.nxaf-schritt h3 { margin: 0 0 4px; font-size: 1.05rem; }
.nxaf-schritt p { margin: 0 0 10px; }
.nxaf-meldung { font-size: .92rem; color: #14532d; min-height: 1.2em; margin: 10px 0 0; }
.nxaf-ki-zust { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; border: 1px dashed var(--af-o-rand); }
.nxaf-ki-antwort { margin: 12px 0 0; padding: 14px 16px; border-radius: 16px; background: #f4f8fc; border: 1px solid #cfe2f1; }
.nxaf-ki-k { display: block; font-size: .75rem; font-weight: 700; color: var(--af-o); margin-bottom: 4px; }
.nxaf-sanft { border: 1px solid #fde68a; background: #fffbeb; border-radius: 14px; padding: 10px 14px; margin: 12px 0 0; font-size: .92rem; color: #78350f; }
.nxaf-krise-box { border: 1px solid #fecdd3; background: #fff1f2; border-radius: 14px; padding: 12px 14px; margin: 12px 0; color: #881337; }
.nxaf-krise-box a { color: #9f1239; font-weight: 800; }
.nxaf-od { margin: 8px 0 0; padding-left: 22px; }
.nxaf-od li { margin: 3px 0; }

/* Verlauf */
.nxaf-kurve { max-width: 460px; }
.nxaf-kurve svg { width: 100%; height: auto; display: block; }
.nxaf-k-g { stroke: #eef1f7; stroke-width: 1; }
.nxaf-k-s { fill: none; stroke: #be123c; stroke-width: 2.5; }
.nxaf-k-h { fill: none; stroke: var(--af-g); stroke-width: 2.5; stroke-dasharray: 5 4; }
.nxaf-k-s-p { fill: #be123c; stroke: #fff; stroke-width: 2; }
.nxaf-k-h-p { fill: var(--af-g); stroke: #fff; stroke-width: 2; }
.nxaf-legende { font-size: .82rem; margin: 4px 0 0; }
.nxaf-l-s { color: #be123c; }
.nxaf-l-h { color: var(--af-g); }
.nxaf-liste { padding-left: 20px; margin: 12px 0 0; }
.nxaf-liste li { margin: 4px 0; }

/* Meine Sätze */
.nxaf-saetze { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.nxaf-saetze li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #eef6fc; border: 1px solid #cfe2f1; }
.nxaf-saetze li span { flex: 1 1 220px; }

/* Sucht oder Mensch? */
.nxaf-trennen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .nxaf-trennen { grid-template-columns: minmax(0, 1fr); } }
.nxaf-tr { padding: 12px 14px; border-radius: 14px; border: 1px solid; }
.nxaf-tr h3 { margin: 0 0 6px; font-size: 1rem; }
.nxaf-tr ul { margin: 0; padding-left: 18px; }
.nxaf-tr-sucht { background: #fff1f5; border-color: #f7c5d4; }
.nxaf-tr-mensch { background: #ecfaf2; border-color: #b5e6c9; }
.nxaf-tr-grenzen { background: var(--af-o-zart); border-color: var(--af-o-rand); }
body.page .glass-card .nxaf-tr-sucht h3 { color: #9f1239 !important; -webkit-text-fill-color: #9f1239 !important; }
body.page .glass-card .nxaf-tr-mensch h3 { color: #166534 !important; -webkit-text-fill-color: #166534 !important; }
body.page .glass-card .nxaf-tr-grenzen h3 { color: var(--af-o) !important; -webkit-text-fill-color: var(--af-o) !important; }
.nxaf-satz { margin: 16px 0 4px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, #fdeef8 0%, #f1edff 100%); border: 1px solid #efc9e4; font-weight: 800; font-size: 1.1rem; text-align: center; }

/* CRAFT */
.nxaf-punkte { margin: 8px 0 0; padding-left: 20px; }
.nxaf-punkte li { margin: 6px 0; }

/* Wissen */
.nxaf-wissen { display: grid; gap: 8px; }
.nxaf-w { border: 1px solid var(--af-rand); border-radius: 14px; padding: 2px 14px; background: #fff; }
.nxaf-w[open] { background: #fbfcfe; border-color: var(--af-o-rand); }
.nxaf-w summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
.nxaf-w p { margin: 0 0 10px; }
.nxaf-frage { margin: 20px 0 0; padding: 14px; border-radius: 16px; background: var(--af-o-zart); border: 1px solid var(--af-o-rand); }
.nxaf-frage .nxaf-h3 { margin-top: 0; }

/* Krisenkarte */
.nxaf-nummern { display: grid; gap: 8px; margin: 0 0 12px; }
.nxaf-tel { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 10px 14px; border-radius: 14px; background: #fff1f2; border: 1px solid #fecdd3; color: #881337 !important; text-decoration: none !important; }
.nxaf-tel strong { font-size: 1.15rem; color: #9f1239; }
.nxaf-tel span { font-size: .85rem; }
.nxaf-od-box { margin: 0 0 14px; background: #fff7ed; border-color: #fed7aa; }
.nxaf-feldlabel { display: block; font-weight: 700; margin: 12px 0 6px; }
.nxaf-druckwert { display: none; }

/* Ohne JS, Hinweise */
.nxaf-krise, .nxaf-privat { font-size: .86rem; color: var(--af-leise); margin: 12px 4px 0; }

@media print {
  html.nxaf-druck body * { visibility: hidden !important; }
  html.nxaf-druck #nxaf-karte, html.nxaf-druck #nxaf-karte * { visibility: visible !important; }
  html.nxaf-druck #nxaf-karte { position: absolute; left: 0; top: 0; width: 100%; }
  html.nxaf-druck #nxaf-karte textarea { display: none !important; }
  html.nxaf-druck #nxaf-karte .nxaf-druckwert { display: block !important; white-space: pre-wrap; min-height: 1.2em; border-bottom: 1px solid #999; }
}
@media (prefers-reduced-motion: reduce) { .nxaf-screen { animation: none !important; } .nxaf-kachel, .nxaf-fortschritt span { transition: none !important; } }
