/* Neelix — Eltern in Recovery: Kinderschutz & Jugendamt (nc-el-*) */

.nc-eltern { display: block; margin: 1rem 0; font-size: 0.96rem; line-height: 1.5; color: var(--nc-text, #1a1a1f); }
.nc-eltern * { box-sizing: border-box; }
.nc-el-loading, .nc-el-err { padding: 1rem; color: var(--nc-text-muted, #888); }
.nc-el-err { color: var(--nc-red, #d23b3b); }

.nc-el-head h3 { margin: 0 0 0.2rem; font-size: 1.2rem; }
.nc-el-sub { margin: 0 0 0.6rem; color: var(--nc-text-muted, #888); font-size: 0.9rem; }

/* Leitprinzip (kindeswohl-first) — immer sichtbar */
.nc-el-principle {
    padding: 0.8rem 1rem; margin: 0.4rem 0 1rem; border-radius: var(--nc-radius, 14px);
    border-left: 4px solid var(--nc-red, #dc2626); background: rgba(220,38,38,0.06); font-size: 0.9rem;
}

/* Tabs */
.nc-el-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; border-bottom: 1px solid var(--nc-border, #e3e3ea); margin-bottom: 1rem; }
.nc-el-tab { background: none; border: none; padding: 0.55rem 0.9rem; cursor: pointer; color: var(--nc-text-muted, #888); font-size: 0.92rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nc-el-tab:hover { color: var(--nc-text, #1a1a1f); }
.nc-el-tab.is-active { color: var(--nc-accent, #6c5ce7); border-bottom-color: var(--nc-accent, #6c5ce7); font-weight: 700; }

/* Cards */
.nc-el-card { border: 1px solid var(--nc-border, #e3e3ea); border-radius: var(--nc-radius, 14px); background: var(--nc-bg-card, var(--nc-card-bg, #fff)); padding: 1rem 1.1rem; margin: 0.75rem 0; }
.nc-el-card h4 { margin: 0 0 0.6rem; font-size: 1.02rem; }

/* Inputs */
.nc-el-input { width: 100%; padding: 0.5rem 0.65rem; border: 1px solid var(--nc-border, #d0d0d8); border-radius: var(--nc-radius-sm, 10px); background: var(--nc-bg, #fff); color: inherit; font: inherit; margin-bottom: 0.4rem; }

/* Top-Warnung (akut) */
.nc-el-topwarn { padding: 0.85rem 1rem; margin: 0 0 0.6rem; border-radius: 12px; background: rgba(220,38,38,0.09); border-left: 4px solid var(--nc-red, #dc2626); font-size: 0.92rem; line-height: 1.5; font-weight: 500; }

/* Risiko-Ampel */
.nc-el-ampel { border: 1px solid var(--nc-border, #e3e3ea); border-left-width: 5px; border-radius: 12px; padding: 0.9rem 1rem; margin: 0.7rem 0; background: var(--nc-bg-card, #fff); }
.nc-el-ampel-head { font-weight: 800; margin-bottom: 0.4rem; }
.nc-el-ampel-rec { margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; }
.nc-el-ampel--gruen { border-left-color: #059669; } .nc-el-ampel--gruen .nc-el-ampel-head { color: #059669; }
.nc-el-ampel--gelb  { border-left-color: #d97706; background: rgba(217,119,6,0.05); } .nc-el-ampel--gelb .nc-el-ampel-head { color: #b45309; }
.nc-el-ampel--rot   { border-left-color: #dc2626; background: rgba(220,38,38,0.06); } .nc-el-ampel--rot .nc-el-ampel-head { color: #dc2626; }

/* Kontaktperson-Zeile (erweitert) */
.nc-el-cgrow2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; align-items: center; padding: 0.5rem 0; border-top: 1px solid var(--nc-border, #f0f0f4); }
.nc-el-cgrow2:first-child { border-top: none; }
.nc-el-cgrow2 .nc-el-input { margin-bottom: 0; }
.nc-el-cgrow2 .nc-el-check { grid-column: 1 / -1; }
.nc-el-cgrow2 .nc-el-del { grid-column: 1 / -1; justify-self: end; }

/* Gespräch: gut/ungünstig */
.nc-el-good { padding: 0.6rem 0.8rem; background: rgba(5,150,105,0.07); border-left: 3px solid #059669; border-radius: 8px; font-size: 0.9rem; margin-bottom: 0.5rem; }
.nc-el-bad li { color: var(--nc-text-muted, #888); }

/* SGB-Karten */
.nc-el-sgb-par { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.04em; color: var(--nc-accent, #6c5ce7); text-transform: uppercase; }
.nc-el-sgb h4 { margin: 0.15rem 0 0.4rem; }

/* Kind-Botschaften */
.nc-el-kind { background: rgba(108,92,231,0.04); }
.nc-el-kind-quote { font-style: italic; font-size: 1rem; color: var(--nc-text, #1a1a1f); margin: 0 0 0.5rem; }

/* Mythos-Zusatz */
.nc-el-myth-add { margin-top: 0.5rem; padding-top: 0.4rem; border-top: 1px dashed var(--nc-border, #e3e3ea); font-size: 0.88rem; color: var(--nc-text-muted, #555); }

/* Mythen & Fakten */
.nc-el-myth { border: 1px solid var(--nc-border, #e3e3ea); border-radius: var(--nc-radius, 14px); padding: 0.9rem 1rem; margin: 0.6rem 0; background: var(--nc-bg-card, #fff); }
.nc-el-myth-q { color: var(--nc-text-muted, #555); margin-bottom: 0.4rem; }
.nc-el-myth-a { padding-top: 0.4rem; border-top: 1px solid var(--nc-border, #f0f0f4); }

/* Checkliste */
.nc-el-check { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.35rem 0; cursor: pointer; }
.nc-el-check input { margin-top: 0.2rem; }

/* Fragen */
.nc-el-q { padding: 0.6rem 0; border-top: 1px solid var(--nc-border, #f0f0f4); }
.nc-el-q:first-of-type { border-top: none; }
.nc-el-qtext { font-weight: 600; margin-bottom: 0.25rem; }
.nc-el-qhint { font-size: 0.85rem; color: var(--nc-text-muted, #666); margin-bottom: 0.4rem; padding: 0.45rem 0.7rem; background: rgba(108,92,231,0.06); border-radius: 8px; }

/* Schutzplan Caregivers */
.nc-el-cgrow { display: grid; grid-template-columns: 1fr 1fr 1fr 24px; gap: 0.4rem; align-items: center; margin-bottom: 0.4rem; }
.nc-el-cgrow .nc-el-input { margin-bottom: 0; }
.nc-el-del { background: none; border: none; cursor: pointer; color: var(--nc-text-muted, #999); }
.nc-el-del:hover { color: var(--nc-red, #dc2626); }

/* Listen Rechte/Pflichten */
.nc-el-ul { margin: 0; padding-left: 1.2rem; }
.nc-el-ul li { margin: 0.35rem 0; }
.nc-el-rechte { border-left: 4px solid var(--nc-green, #059669); }
.nc-el-pflichten { border-left: 4px solid var(--nc-blue, #2f7fd1); }

/* Hotlines */
.nc-el-hotline { padding: 0.55rem 0; border-bottom: 1px solid var(--nc-border, #f0f0f4); }
.nc-el-hotline.is-urgent { background: rgba(220,38,38,0.05); border-radius: 8px; padding: 0.6rem 0.7rem; border-bottom: none; }
.nc-el-hot-name { font-weight: 600; }
.nc-el-hot-num { display: inline-block; font-weight: 700; color: var(--nc-accent, #6c5ce7); text-decoration: none; margin: 0.1rem 0; }
.nc-el-hotline.is-urgent .nc-el-hot-num { color: var(--nc-red, #dc2626); font-size: 1.1rem; }
.nc-el-hot-note { font-size: 0.84rem; color: var(--nc-text-muted, #888); }

/* Wissen */
.nc-el-cat { border: 1px solid var(--nc-border, #e3e3ea); border-radius: var(--nc-radius, 14px); margin: 0.5rem 0; padding: 0.4rem 0.8rem; background: var(--nc-bg-card, #fff); }
.nc-el-cat > summary { cursor: pointer; font-weight: 700; padding: 0.4rem 0; }
.nc-el-know { font-size: 0.9rem; padding: 0.3rem 0 0.6rem; }

/* Notes / Warn / Savebar */
.nc-el-note { padding: 0.7rem 0.9rem; background: rgba(47,127,209,0.06); border-left: 3px solid var(--nc-blue, #2f7fd1); border-radius: 8px; font-size: 0.88rem; margin: 0.6rem 0; }
.nc-el-note a { color: var(--nc-accent, #6c5ce7); font-weight: 700; }
.nc-el-warn { padding: 0.7rem 0.9rem; background: rgba(217,119,6,0.07); border-left: 3px solid var(--nc-gold, #d97706); border-radius: 8px; font-size: 0.88rem; margin: 0.6rem 0; }
.nc-el-savebar { min-height: 1.2rem; margin-top: 0.5rem; }
.nc-el-savestatus { font-size: 0.82rem; color: var(--nc-green, #059669); }
