/* Neelix — Selbst-Check ohne Anmeldung (05.11.2026). Baut auf community.css auf
   (.nc-card, .nc-btn, .nc-timer-mode, .nc-anon-notice). Dunkelmodus: Mount bekommt .nc-dark. */

.nc-selbstcheck-local { margin: 18px 0; }
.nc-sc-app { display: flex; flex-direction: column; gap: 12px; color: var(--nc-text, #141233); }
.nc-sc-app .nc-card { padding: 18px; }
.nc-sc-app .nc-card:hover { transform: none; }
@media (max-width: 560px) { .nc-sc-app .nc-card { padding: 14px; } }
.nc-sc-local { margin: 0; display: flex; gap: 8px; align-items: flex-start; }
.nc-sc-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 0; }
.nc-sc-body { display: flex; flex-direction: column; gap: 12px; }

/* Start */
.nc-sc-feat-h { font-size: .82rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: #b30d7c; margin: 0 0 6px; }
.nc-sc-gh { font-size: 1.05rem; font-weight: 800; margin: 10px 0 2px; color: #141233; }
.nc-sc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.nc-sc-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: inherit; border: 1px solid #ececf4 !important; min-height: 64px; }
.nc-sc-card:hover, .nc-sc-card:focus-visible { border-color: #e0119d !important; }
.nc-sc-card.is-featured { border: 2px solid #e0119d !important; background: linear-gradient(135deg, #fff, #fdf3f9) !important; }
.nc-sc-card-ic { font-size: 1.8rem; line-height: 1; flex: 0 0 auto; }
.nc-sc-card-txt { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.nc-sc-card-txt strong { font-size: 1rem; }
.nc-sc-card-txt small { color: #6b6889; font-size: .82rem; line-height: 1.4; }
.nc-sc-card-go { font-size: 1.2rem; color: #c40d86; font-weight: 800; }
.nc-sc-last { align-self: flex-start; margin-top: 4px; font-size: .74rem; font-weight: 600; color: #4a4460; border-left: 4px solid #94a3b8; padding: 1px 0 1px 6px; }
.nc-sc-foot { font-size: .8rem; color: #6b6889; line-height: 1.5; margin: 6px 0 0; }

/* Fragen */
.nc-sc-q-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
.nc-sc-back { font: inherit; font-size: .85rem; font-weight: 600; color: #4f46a8; background: none; border: 0; cursor: pointer; padding: 6px 0; }
.nc-sc-q-title { font-weight: 800; font-size: .92rem; }
.nc-sc-q-count { margin-left: auto; font-size: .8rem; color: #6b6889; }
.nc-sc-progress { height: 6px; border-radius: 999px; background: #eceafc; overflow: hidden; margin-bottom: 12px; }
.nc-sc-progress span { display: block; height: 100%; background: linear-gradient(90deg, #818cf8, #c40d86); border-radius: 999px; transition: width .3s ease; }
.nc-sc-intro { font-size: .88rem; line-height: 1.5; color: #4a4460; background: #f6f5fd; border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }
.nc-sc-q-text { font-size: clamp(1.05rem, 3.6vw, 1.3rem); line-height: 1.4; margin: 4px 0 14px; color: #141233; outline: none; }
.nc-sc-opts { display: flex; flex-direction: column; gap: 8px; }
.nc-sc-opt { font: inherit; font-size: 1rem; text-align: left; padding: 13px 16px; min-height: 50px; border-radius: 12px; border: 1.5px solid #e2ddef; background: #fff; color: #141233; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.nc-sc-opt:hover, .nc-sc-opt:focus-visible { border-color: #c40d86; background: #fdf3f9; }
.nc-sc-opt.is-on { border-color: #c40d86; background: #c40d86; color: #fff; font-weight: 700; }
.nc-sc-hint { font-size: .78rem; color: #6b6889; margin: 10px 0 0; }
.nc-sc-cont { width: 100%; justify-content: center; margin: 8px 0 14px; min-height: 46px; }

/* Krise */
.nc-sc-crisis { border: 2px solid #f59e0b; background: #fffbeb; color: #78350f; border-radius: 12px; padding: 12px 14px; margin: 0 0 12px; }
.nc-sc-crisis.is-acute { border-color: #dc2626; background: #fef2f2; color: #7f1d1d; }
.nc-sc-crisis-title { font-weight: 800; font-size: 1rem; margin-bottom: 4px; }
.nc-sc-crisis p { margin: 0 0 8px; line-height: 1.5; font-size: .92rem; }
.nc-sc-crisis-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.nc-sc-crisis-btns .nc-btn { min-height: 44px; }
.nc-sc-112 { background: #dc2626 !important; color: #fff !important; font-weight: 800; }
.nc-sc-crisis small { font-size: .78rem; }

/* Ergebnis */
.nc-sc-r-top { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.nc-sc-r-ic { font-size: 2rem; }
.nc-sc-r-name { font-weight: 800; font-size: 1.05rem; }
.nc-sc-r-top small { color: #6b6889; }
.nc-sc-r-label { font-size: clamp(1.25rem, 4.5vw, 1.6rem); font-weight: 800; line-height: 1.25; margin: 6px 0 2px; }
.nc-sc-r-score { font-size: .9rem; color: #4a4460; margin-bottom: 10px; }
.nc-sc-scale { position: relative; height: 14px; margin: 4px 0 2px; }
.nc-sc-scale-segs { display: flex; height: 100%; border-radius: 999px; overflow: hidden; opacity: .85; }
.nc-sc-scale-segs span { display: block; height: 100%; }
.nc-sc-scale-mark { position: absolute; top: -5px; width: 4px; height: 24px; margin-left: -2px; background: #141233; border-radius: 3px; box-shadow: 0 0 0 2px #fff; }
.nc-sc-scale-legend { display: flex; justify-content: space-between; font-size: .72rem; color: #6b6889; margin-bottom: 12px; }
.nc-sc-r-note { font-size: .92rem; line-height: 1.55; color: #2d2a3e; margin: 8px 0 12px; }
.nc-sc-next h3, .nc-sc-related h3 { font-size: .98rem; margin: 6px 0 6px; }
.nc-sc-next ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nc-sc-next a { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; background: #f6f5fd; border: 1px solid #e6e2f2; color: #2d2a3e; font-weight: 600; text-decoration: none; min-height: 44px; }
.nc-sc-next a:hover { border-color: #c40d86; }
.nc-sc-r-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.nc-sc-r-btns .nc-btn { min-height: 40px; }
.nc-sc-src { display: block; font-size: .74rem; color: #6b6889; line-height: 1.45; margin-top: 6px; }
.nc-sc-related p { font-size: .88rem; color: #4a4460; margin: 0 0 8px; line-height: 1.5; }
.nc-sc-related { padding: 2px 4px; }
.nc-sc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nc-sc-chip { font: inherit; font-size: .88rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid #ddd8f5; background: #f3f1fd; color: #4f46a8; cursor: pointer; min-height: 40px; }
.nc-sc-chip:hover { border-color: #4f46a8; }
.nc-sc-cta { font-size: .9rem; line-height: 1.5; }
.nc-sc-cta a { color: #c40d86; font-weight: 700; }

/* Verlauf */
.nc-sc-empty { text-align: center; }
.nc-sc-empty p { color: #6b6889; max-width: 480px; margin: 6px auto 12px; }
.nc-sc-hist-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.nc-sc-hist-head small { color: #6b6889; }
.nc-sc-hbars { display: flex; align-items: flex-end; gap: 4px; height: 60px; margin-bottom: 6px; }
.nc-sc-hbar { flex: 1; max-width: 26px; border-radius: 5px 5px 2px 2px; opacity: .85; }
.nc-sc-hist-last { font-size: .86rem; margin-bottom: 8px; }
.nc-sc-backup p { font-size: .86rem; color: #4a4460; margin: 6px 0 4px; line-height: 1.5; }
.nc-sc-clear { color: #b91c1c !important; }

/* Dunkelmodus */
.nc-dark .nc-sc-app, .nc-dark .nc-sc-gh, .nc-dark .nc-sc-q-text, .nc-dark .nc-sc-r-note, .nc-dark .nc-sc-next a { color: #ece9f6; }
.nc-dark .nc-sc-card { background: #1f1a2c !important; border-color: #33304a !important; }
.nc-dark .nc-sc-card.is-featured { background: linear-gradient(135deg, #2a1b2e, #1f1a2c) !important; border-color: #e0119d !important; }
.nc-dark .nc-sc-card-txt small, .nc-dark .nc-sc-foot, .nc-dark .nc-sc-q-count, .nc-dark .nc-sc-hint, .nc-dark .nc-sc-src, .nc-dark .nc-sc-scale-legend, .nc-dark .nc-sc-r-top small, .nc-dark .nc-sc-hist-head small, .nc-dark .nc-sc-empty p { color: #b8b2c8; }
.nc-dark .nc-sc-last, .nc-dark .nc-sc-r-score, .nc-dark .nc-sc-related p, .nc-dark .nc-sc-backup p { color: #cfc7dd; }
.nc-dark .nc-sc-opt { background: #1f1a2c; border-color: #3d3860; color: #ece9f6; }
.nc-dark .nc-sc-opt:hover { background: #2a1b2e; }
.nc-dark .nc-sc-opt.is-on { background: #c40d86; border-color: #c40d86; color: #fff; }
.nc-dark .nc-sc-intro, .nc-dark .nc-sc-next a { background: #1f1a2c; border-color: #33304a; }
.nc-dark .nc-sc-progress { background: #2a2740; }
.nc-dark .nc-sc-crisis { background: #2b1d12; border-color: #f59e0b; color: #fde68a; }
.nc-dark .nc-sc-crisis.is-acute { background: #2a1416; border-color: #f87171; color: #fecaca; }
.nc-dark .nc-sc-chip { background: #2a2740; border-color: #3d3860; color: #c7c2ea; }
.nc-dark .nc-sc-back { color: #c7c2ea; }
.nc-dark .nc-sc-scale-mark { background: #fff; box-shadow: 0 0 0 2px #141233; }
.nc-dark .nc-sc-feat-h { color: #f5b8de; }

@media (prefers-reduced-motion: reduce) { .nc-sc-app * { transition: none !important; } }

/* Test-Unterseiten /selbstcheck/<test>/: Infoteil + Linkliste (außerhalb des Mounts → Dunkelmodus über data-theme) */
.nc-sc-info { display: flex; flex-direction: column; gap: 14px; margin: 26px 0 0; color: #141233; line-height: 1.65; }
.nc-sc-info-block { background: #fff; border: 1px solid #ececf4; border-radius: 16px; padding: 18px 20px; }
.nc-sc-info h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 8px; color: #141233; }
.nc-sc-info h3 { font-size: 1rem; font-weight: 700; margin: 14px 0 4px; color: #141233; }
.nc-sc-info p { margin: 0 0 8px; color: #3f3d5c; }
.nc-sc-info p:last-child { margin-bottom: 0; }
.nc-sc-info-extra { border-color: #f59e0b; background: #fffbeb; }
.nc-sc-info-table { width: 100%; border-collapse: collapse; margin: 8px 0 10px; font-size: .95rem; }
.nc-sc-info-table th, .nc-sc-info-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #ececf4; vertical-align: top; }
.nc-sc-info-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.nc-sc-info-table td:first-child { white-space: nowrap; font-weight: 700; width: 1%; }
.nc-sc-info-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: #94a3b8; }
.nc-sc-info-dot.is-green { background: #16a34a; } .nc-sc-info-dot.is-amber { background: #d97706; }
.nc-sc-info-dot.is-orange { background: #ea580c; } .nc-sc-info-dot.is-red { background: #dc2626; }
.nc-sc-info-note { font-size: .9rem; color: #5c5a7a !important; }
.nc-sc-info-qs { background: #fff; border: 1px solid #ececf4; border-radius: 16px; padding: 14px 20px; }
.nc-sc-info-qs summary { cursor: pointer; font-weight: 700; color: #6d28d9; min-height: 32px; display: flex; align-items: center; }
.nc-sc-info-qs ol { margin: 10px 0 8px; padding-left: 22px; color: #3f3d5c; }
.nc-sc-info-qs li { margin: 0 0 6px; }
.nc-sc-info-qs small, .nc-sc-info-src { color: #64748b; font-size: .82rem; }
.nc-sc-links { margin: 22px 0 0; }
.nc-sc-links h2 { font-size: 1.2rem; font-weight: 800; margin: 0 0 10px; color: #141233; }
.nc-sc-links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.nc-sc-links a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1px solid #ececf4; border-radius: 14px; background: #fff; color: #141233; text-decoration: none; }
.nc-sc-links a:hover, .nc-sc-links a:focus-visible { border-color: #e0119d; }
.nc-sc-links-ic { font-size: 1.5rem; line-height: 1; }
.nc-sc-links strong { display: block; font-size: .95rem; }
.nc-sc-links small { display: block; color: #64748b; font-size: .8rem; }
@media (max-width: 560px) { .nc-sc-info-block, .nc-sc-info-qs { padding: 14px; } .nc-sc-info-table td, .nc-sc-info-table th { padding: 7px 6px; } }
[data-theme="dark"] .nc-sc-info, [data-theme="dark"] .nc-sc-info h2, [data-theme="dark"] .nc-sc-info h3, [data-theme="dark"] .nc-sc-links h2 { color: #ece9f6; }
[data-theme="dark"] .nc-sc-info-block, [data-theme="dark"] .nc-sc-info-qs, [data-theme="dark"] .nc-sc-links a { background: #1f1a2c; border-color: #33304a; color: #ece9f6; }
[data-theme="dark"] .nc-sc-info p, [data-theme="dark"] .nc-sc-info-qs ol { color: #cfc7dd; }
[data-theme="dark"] .nc-sc-info-note, [data-theme="dark"] .nc-sc-info-qs small, [data-theme="dark"] .nc-sc-info-src, [data-theme="dark"] .nc-sc-links small, [data-theme="dark"] .nc-sc-info-table th { color: #b8b2c8 !important; }
[data-theme="dark"] .nc-sc-info-table th, [data-theme="dark"] .nc-sc-info-table td { border-color: #33304a; }
[data-theme="dark"] .nc-sc-info-extra { background: #2b1d12; border-color: #f59e0b; }
[data-theme="dark"] .nc-sc-info-qs summary { color: #c4b5fd; }
