/* Neuro-Check – nutzt die Site-Tokens aus /style.css */
.nc-tool {
  --nc-ok: #15803d;
  --nc-ok-bg: #ecfdf3;
  --nc-bad: #c62828;
  --nc-bad-bg: #fdecec;
  --nc-warn-bg: #fff7e0;
  --nc-warn-line: #f4c542;
  --nc-blue: var(--site-blue, #3b22a3);
  --nc-line: var(--site-line, #e6e8ee);
  --nc-muted: var(--site-muted, #5b6273);
  --nc-text: var(--site-text, #1b2030);
  font-family: var(--site-font, system-ui, sans-serif);
  color: var(--nc-text);
  line-height: 1.5;
  padding: 0;
  overflow: hidden;
}
.nc-tool *, .nc-tool *::before, .nc-tool *::after { box-sizing: border-box; }
.nc-tool button, .nc-tool textarea { font-family: inherit; }
.nc-tool [tabindex="-1"]:focus { outline: none; }

/* ---------- Vollbild: Sicherheitsfragen & Notruf ---------- */
html.nc-locked, html.nc-locked body { overflow: hidden; }
.nc-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  overflow-y: auto;
  display: flex;
  color: #fff;
  background: var(--nc-blue);
}
html.pf-embed-minimal .nc-screen {
  position: relative;
  inset: auto;
  min-height: 560px;
  border-radius: 12px;
}
.nc-screen__inner {
  width: 100%;
  max-width: 640px;
  margin: auto;
  padding: 28px 20px 32px;
}
.nc-kicker {
  margin: 0 0 10px;
  font-size: .9rem;
  letter-spacing: .02em;
  opacity: .85;
}
.nc-dots { display: flex; gap: 8px; margin-bottom: 28px; }
.nc-dot { width: 32px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.nc-dot.is-done { background: #4ade80; }
.nc-dot.is-now { background: var(--site-yellow, #f4c542); }
.nc-tool h1.nc-gate__q {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 6vw, 2.5rem);
  line-height: 1.2;
  color: #fff;
}
.nc-gate__hint { margin: 0 0 32px; font-size: 1.08rem; opacity: .92; }
.nc-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nc-yn__btn {
  min-height: 112px;
  border: 0;
  border-radius: 16px;
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
  transition: transform .08s;
}
.nc-yn__btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.nc-yn__btn:focus-visible { outline: 4px solid var(--site-yellow, #f4c542); outline-offset: 3px; }
.nc-yn__btn--yes { background: #16a34a; }
.nc-yn__btn--no { background: #dc2626; }
.nc-gate__foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.nc-screen .nc-link { color: #fff; opacity: .85; }

.nc-alarm { background: #b91c1c; }
.nc-tool h1.nc-alarm__title { margin: 0 0 20px; font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.15; color: #fff; }
.nc-tool .nc-alarm__sub { margin: 24px 0 8px; font-size: 1.2rem; color: #fff; }
.nc-alarm__list { margin: 0; padding-left: 1.3em; font-size: 1.08rem; }
.nc-alarm__list li { margin-bottom: 8px; }
.nc-alarm__note { margin: 20px 0; padding: 12px 14px; border-radius: 10px; background: rgba(0, 0, 0, .18); }
.nc-hotline { margin: 14px 0 0; font-size: .95rem; opacity: .95; }
.nc-hotline a { color: #fff; font-weight: 700; }
.nc-hotline span { opacity: .85; }

/* ---------- Notruf-Buttons ---------- */
.nc-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 800;
  text-decoration: none;
  border-radius: 12px;
}
.nc-call--big {
  width: 100%;
  min-height: 76px;
  font-size: 1.6rem;
  background: #fff;
  color: #b91c1c;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .25);
}
.nc-call--small {
  padding: 7px 12px;
  font-size: .9rem;
  background: var(--nc-bad);
  color: #fff;
  white-space: nowrap;
}
.nc-call--inline {
  margin: 4px 0 12px;
  padding: 12px 18px;
  background: var(--nc-bad);
  color: #fff;
}

.nc-call--practice { background: #9aa0ad !important; color: #fff; cursor: default; }

/* ---------- Kopfleiste im Tool ---------- */
.nc-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--site-surface, #fff);
  border-bottom: 1px solid var(--nc-line);
}
.nc-bar__title { font-weight: 700; }
.nc-bar .nc-call { margin-left: auto; }
.nc-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--nc-warn-bg);
  border: 1px solid var(--nc-warn-line);
  font-size: .82rem;
  font-weight: 700;
}
.nc-progress { height: 6px; background: var(--site-soft, #f3f4f7); }
.nc-progress__fill { height: 100%; background: var(--nc-blue); transition: width .2s; }

/* ---------- Inhalt ---------- */
.nc-body { padding: 20px 18px 24px; }
.nc-tool h1.nc-h1 { margin: 0 0 10px; font-size: clamp(1.4rem, 4.5vw, 1.9rem); line-height: 1.2; color: var(--nc-text); }
.nc-h2 { margin: 22px 0 8px; font-size: 1.15rem; }
.nc-h3 { display: block; margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.nc-lead { font-size: 1.08rem; margin: 0 0 6px; }
.nc-small { font-size: .88rem; color: var(--nc-muted); }
.nc-meta { margin: 0 0 14px; color: var(--nc-muted); font-size: .92rem; }
.nc-info {
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--nc-warn-bg);
  border: 1px solid var(--nc-warn-line);
  font-weight: 600;
}
.nc-prep { padding-left: 1.2em; margin: 0; }
.nc-prep li { margin-bottom: 10px; }

.nc-section {
  margin: 0 0 4px;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--nc-blue);
}
.nc-count { color: var(--nc-muted); font-weight: 600; text-transform: none; letter-spacing: 0; }
.nc-test__q { margin-bottom: 14px; }
.nc-safety {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--nc-warn-bg);
  border-left: 5px solid var(--nc-warn-line);
}
.nc-howto { margin-bottom: 12px; }
.nc-steps { margin: 0; padding-left: 1.4em; font-size: 1.05rem; }
.nc-steps li { margin-bottom: 6px; padding-left: 2px; }
.nc-normal {
  margin: 0 0 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--nc-ok-bg);
  border-left: 5px solid var(--nc-ok);
}

.nc-opts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.nc-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 72px;
  padding: 10px 6px;
  border: 2px solid var(--nc-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
}
.nc-opt__label { font-weight: 800; font-size: 1.08rem; }
.nc-opt__hint { font-size: .78rem; color: var(--nc-muted); }
.nc-opt--normal { border-color: #86d3a3; }
.nc-opt--normal .nc-opt__label { color: var(--nc-ok); }
.nc-opt--abnormal { border-color: #f0a3a3; }
.nc-opt--abnormal .nc-opt__label { color: var(--nc-bad); }
.nc-opt--skip .nc-opt__label { color: var(--nc-muted); }
.nc-opt--normal[aria-pressed="true"] { background: var(--nc-ok); border-color: var(--nc-ok); }
.nc-opt--abnormal[aria-pressed="true"] { background: var(--nc-bad); border-color: var(--nc-bad); }
.nc-opt--skip[aria-pressed="true"] { background: var(--nc-muted); border-color: var(--nc-muted); }
.nc-opt[aria-pressed="true"] .nc-opt__label,
.nc-opt[aria-pressed="true"] .nc-opt__hint { color: #fff; }
.nc-opt:focus-visible { outline: 3px solid var(--nc-blue); outline-offset: 2px; }

.nc-abn {
  margin-top: 14px;
  padding: 14px;
  border-radius: 12px;
  background: var(--nc-bad-bg);
  border: 1px solid #f0a3a3;
}
.nc-abn.is-hidden { display: none; }
.nc-abn__alert { margin: 0 0 8px; }
.nc-abn__label { display: block; margin: 6px 0 4px; font-weight: 600; }
.nc-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--nc-line);
  border-radius: 10px;
  font: inherit;
  resize: vertical;
  margin-bottom: 10px;
  background: #fff;
}

.nc-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.nc-finish { margin: 16px 0 0; text-align: center; }
.nc-link {
  padding: 6px 2px;
  border: 0;
  background: none;
  color: var(--nc-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-size: .95rem;
}
.nc-link--strong { font-weight: 700; text-decoration: none; font-size: 1.05rem; }

.nc-btn {
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid var(--nc-line);
  border-radius: 10px;
  background: #fff;
  color: var(--nc-text);
  font-weight: 600;
  cursor: pointer;
}
.nc-btn--primary { background: var(--nc-text); color: #fff; border-color: transparent; }
.nc-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.nc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.nc-actions--stack { flex-direction: column; }
.nc-actions--stack .nc-btn { width: 100%; min-height: 56px; font-size: 1.08rem; }

/* ---------- Ergebnis ---------- */
.nc-verdict { margin: 0 0 12px; padding: 14px 16px; border-radius: 12px; }
.nc-verdict .nc-h2 { margin-top: 0; }
.nc-verdict p { margin: 6px 0; }
.nc-verdict--bad { background: var(--nc-bad-bg); border: 2px solid var(--nc-bad); }
.nc-verdict--bad .nc-h2 { color: var(--nc-bad); }
.nc-verdict--ok { background: var(--nc-ok-bg); border: 2px solid var(--nc-ok); }
.nc-verdict--ok .nc-h2 { color: var(--nc-ok); }
.nc-abnlist { margin: 6px 0 10px; padding-left: 1.2em; }
.nc-abnlist li { margin-bottom: 4px; }
.nc-repeat { margin: 10px 0 18px; font-weight: 600; }
.nc-notelabel { margin-top: 8px; }
.nc-bad { color: var(--nc-bad); font-weight: 700; }
.nc-time { color: var(--nc-muted); font-size: .85rem; white-space: nowrap; }

.nc-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.nc-table th, .nc-table td { padding: 8px 6px; border-top: 1px solid var(--nc-line); text-align: left; vertical-align: top; }
.nc-row--head th { padding-top: 14px; background: var(--site-soft, #f3f4f7); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.nc-res { font-weight: 700; white-space: nowrap; }
.nc-row--normal .nc-res { color: var(--nc-ok); }
.nc-row--abnormal .nc-res { color: var(--nc-bad); }
.nc-row--abnormal td:first-child { font-weight: 600; }
.nc-row--skip .nc-res, .nc-row--none .nc-res { color: var(--nc-muted); }
.nc-rownote { font-weight: 400; font-size: .88rem; color: var(--nc-bad); }

.nc-details { margin-top: 18px; padding: 10px 14px; border: 1px solid var(--nc-line); border-radius: 10px; }
.nc-details summary { cursor: pointer; font-weight: 700; }
.nc-history { padding-left: 1.1em; }
.nc-history li { margin-bottom: 8px; }
.nc-sources ul { padding-left: 1.1em; }

@media (max-width: 480px) {
  .nc-opts { grid-template-columns: 1fr; }
  .nc-opt { flex-direction: row; justify-content: space-between; min-height: 58px; padding: 10px 16px; }
  .nc-yn__btn { min-height: 96px; }
}

/* ---------- Druck ---------- */
@media print {
  #header, #footer, .nc-bar, .nc-actions, .nc-sources, .nc-details, .nc-call, .nc-link { display: none !important; }
  .pf-tool-main { padding: 0 !important; }
  .nc-tool { border: 0 !important; }
  .nc-table tr { page-break-inside: avoid; }
  .nc-textarea { border: 1px solid #999; min-height: 30mm; }
  .nc-verdict, .nc-row--head th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
