/* Neelix Mischkonsum-Check 2.0 – Werkzeug (.nxmk-*). Seite im Design des Substanz-Hubs (.nxh-*, neelix_hub_styles) – 29.11.2026 */

/* Seite: Rahmen kommt aus dem Hub (main.nxh, .nxh-wrap, .nxh-hero); hier nur Feinheiten */
.nxmk-seite .nxmk-held { margin-top: 0; }
.nxmk-seite .nxmk-stufen li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.nxmk-seite .nxh-basis { margin-right: 4px; }

/* Werkzeug */
.nxmk { min-width: 0; --mk-acc: #c40d86; --mk-acc2: #6d28d9; --mk-ink: #141233; --mk-mut: #5c5a7a; --mk-line: #ececf4; }
.nxmk *, .nxmk *::before, .nxmk *::after { box-sizing: border-box; }
.nxmk .nxmk-inhalt { display: grid; gap: 12px; min-width: 0; }
.nxmk .nxmk-unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nxmk h2[tabindex] { outline: none; }
.nxmk .nxmk-karte { padding: 16px 18px; border-radius: 18px; background: #fff; border: 1px solid var(--mk-line); box-shadow: 0 10px 26px rgba(20, 18, 51, .05); overflow-wrap: anywhere; }
@media (max-width: 600px) { .nxmk .nxmk-karte { padding: 14px; border-radius: 16px; } }
.nxmk .nxmk-karte h2 { margin: 0 0 6px; font-size: clamp(1.15rem, 3vw, 1.35rem); font-weight: 800; line-height: 1.3; color: var(--mk-ink); }
.nxmk .nxmk-klein { margin: 0 0 8px; font-size: .9rem; color: var(--mk-mut); line-height: 1.5; }
.nxmk a { color: var(--mk-acc2); }

.nxmk .nxmk-gewaehlt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 12px; }
.nxmk .nxmk-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--mk-ink); color: #fff; font-weight: 700; }
.nxmk .nxmk-tag button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.1rem; cursor: pointer; }
.nxmk .nxmk-plus { font-weight: 800; color: var(--mk-acc); }
.nxmk .nxmk-leer { margin: 8px 0 12px; color: var(--mk-mut); font-size: .9rem; }
.nxmk .nxmk-suche input { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid #d9d6e8; background: #fff; color: var(--mk-ink); font: inherit; font-size: 1rem; }
.nxmk .nxmk-suche input:focus { outline: none; border-color: var(--mk-acc2); box-shadow: 0 0 0 3px rgba(109, 40, 217, .15); }
.nxmk .nxmk-gruppe { margin: 16px 0 8px; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--mk-mut); }
.nxmk .nxmk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nxmk .nxmk-chip { min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--mk-line); background: #fff; color: var(--mk-ink); font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(20, 18, 51, .04); }
.nxmk .nxmk-chip:hover { border-color: var(--mk-acc); }
.nxmk .nxmk-chip.is-med { border-style: dashed; border-color: #cfcbe4; }
.nxmk .nxmk-chip[aria-pressed="true"] { background: var(--mk-ink); border-color: var(--mk-ink); color: #fff; }
.nxmk .nxmk-chip[aria-disabled="true"] { opacity: .55; }
.nxmk .nxmk-chip.is-voll { animation: nxmk-wackeln .3s ease 2; }
@keyframes nxmk-wackeln { 0%, 100% { transform: none; } 50% { transform: translateX(3px); } }
.nxmk .nxmk-chip:focus-visible, .nxmk .nxmk-knopf:focus-visible, .nxmk .nxmk-tag button:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; }
.nxmk .nxmk-los { position: sticky; bottom: 10px; margin-top: 16px; z-index: 5; }
.nxmk .nxmk-knopf { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 10px 20px; border-radius: 999px; border: 0; background: linear-gradient(135deg, #c20e88, var(--mk-acc2)); color: #fff; font: inherit; font-weight: 800; font-size: 1rem; cursor: pointer; box-shadow: 0 10px 24px rgba(109, 40, 217, .25); text-align: center; }
.nxmk .nxmk-knopf[disabled] { background: #ecebf4; color: var(--mk-mut); box-shadow: none; cursor: not-allowed; }
.nxmk .nxmk-leise { background: #fff; color: var(--mk-ink); border: 1px solid #d6d3e6; box-shadow: none; min-height: 44px; font-weight: 700; }
.nxmk .nxmk-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.nxmk .nxmk-nav > * { flex: 1 1 160px; }
.nxmk .nxmk-meldung { margin: 0; font-size: .88rem; color: #166534; min-height: 0; }

/* Ergebnis */
.nxmk .nxmk-gesamt { border-width: 2px; }
.nxmk .nxmk-gesamt h2 { font-size: clamp(1.35rem, 3.4vw, 1.7rem); font-weight: 900; }
.nxmk .nxmk-gesamt.is-lebensgefahr { background: #fef2f2; border-color: #fca5a5; }
.nxmk .nxmk-gesamt.is-lebensgefahr h2 { color: #991b1b; }
.nxmk .nxmk-gesamt.is-hoch { background: #fff7ed; border-color: #fdba74; }
.nxmk .nxmk-gesamt.is-hoch h2 { color: #9a3412; }
.nxmk .nxmk-gesamt.is-vorsicht { background: #fefce8; border-color: #fde047; }
.nxmk .nxmk-gesamt.is-vorsicht h2 { color: #854d0e; }
.nxmk .nxmk-gesamt.is-unbekannt { background: #f8fafc; border-color: #cbd5e1; }
.nxmk .nxmk-gesamt p { margin: 0 0 6px; line-height: 1.55; }
.nxmk .nxmk-notfall { background: #fff1f2; border: 2px solid #fecaca; }
.nxmk .nxmk-notfall h3 { margin: 0 0 6px; color: #991b1b; font-weight: 800; }
.nxmk .nxmk-112 { display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 10px; border-radius: 999px; background: #b91c1c; color: #fff !important; font-weight: 800; font-size: 1.1rem; text-decoration: none !important; }
.nxmk .nxmk-weg { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid #fca5a5; background: #fff; color: #7f1d1d !important; font-weight: 700; text-decoration: none !important; text-align: center; }
.nxmk .nxmk-paare-titel { margin: 10px 0 0; font-size: clamp(1.2rem, 3vw, 1.45rem); font-weight: 800; color: var(--mk-ink); }
.nxmk .nxmk-paar { padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid var(--mk-line); border-left: 5px solid #cbd5e1; box-shadow: 0 8px 20px rgba(20, 18, 51, .04); }
.nxmk .nxmk-paar.is-lebensgefahr { border-left-color: #dc2626; }
.nxmk .nxmk-paar.is-hoch { border-left-color: #ea580c; }
.nxmk .nxmk-paar.is-vorsicht { border-left-color: #ca8a04; }
.nxmk .nxmk-paar h3 { margin: 0 0 6px; font-size: 1.02rem; font-weight: 800; line-height: 1.4; color: var(--mk-ink); }
.nxmk .nxmk-stufe { display: inline-block; margin-right: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 800; background: #f1f5f9; white-space: nowrap; }
.nxmk .is-lebensgefahr .nxmk-stufe { background: #fee2e2; color: #991b1b; }
.nxmk .is-hoch .nxmk-stufe { background: #ffedd5; color: #9a3412; }
.nxmk .is-vorsicht .nxmk-stufe { background: #fef9c3; color: #854d0e; }
.nxmk .nxmk-paar p { margin: 0 0 8px; line-height: 1.55; color: #2e2950; }
.nxmk .nxmk-meta { display: flex; flex-wrap: wrap; gap: 6px; font-size: .78rem; }
.nxmk .nxmk-meta span { display: inline-block; padding: 3px 10px; border-radius: 999px; background: #f1f5f9; color: #334155; font-weight: 700; }
.nxmk .nxmk-quellen { margin: 4px 0 8px; font-size: .88rem; }
.nxmk .nxmk-quellen summary { cursor: pointer; font-weight: 700; color: var(--mk-ink); min-height: 32px; display: flex; align-items: center; }
.nxmk .nxmk-quellen ol { margin: 6px 0 0; padding-left: 1.2rem; display: grid; gap: 4px; }
.nxmk .nxmk-mehr { display: inline-flex; align-items: center; min-height: 40px; margin-right: 12px; font-weight: 700; color: var(--mk-acc2); }
.nxmk .nxmk-fuss { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) { .nxmk .nxmk-chip.is-voll { animation: none; } }

/* Details je Stoff: Zeitachse, Dosis-Referenzwerte, Toleranz */
.nxmk .nxmk-zeitkarte h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; color: var(--mk-ink); }
.nxmk .nxmk-routen { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 6px 0 10px; }
.nxmk .nxmk-route { display: flex; flex-direction: column; gap: 3px; font-size: .84rem; font-weight: 700; color: var(--mk-ink); }
.nxmk .nxmk-route select { min-height: 44px; max-width: 100%; padding: 6px 10px; border-radius: 10px; border: 1.5px solid #d9d6e8; background: #fff; color: var(--mk-ink); font: inherit; font-weight: 500; }
.nxmk .nxmk-zeit { width: 100%; height: auto; display: block; margin-top: 4px; }
.nxmk .nxmk-zeit text { fill: var(--mk-ink); }
.nxmk .nxmk-zeit text.nxmk-weiter { fill: #fff; }
.nxmk .nxmk-zleg { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 8px; padding: 0; font-size: .82rem; color: var(--mk-mut); }
.nxmk .nxmk-zleg i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.nxmk .nxmk-zleg i.n { background: #efebfb; border: 1px dashed #b79af0; }
.nxmk .nxmk-ztxt { margin: 0 0 8px; padding-left: 1.1rem; display: grid; gap: 4px; line-height: 1.5; font-size: .9rem; color: #2e2950; }
.nxmk .nxmk-stoff { border: 1px solid var(--mk-line); border-radius: 16px; background: #fff; }
.nxmk .nxmk-stoff summary { cursor: pointer; padding: 12px 16px; min-height: 48px; font-weight: 800; display: flex; align-items: center; color: var(--mk-ink); }
.nxmk .nxmk-stoff summary:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; border-radius: 12px; }
.nxmk .nxmk-stoff-in { padding: 0 16px 16px; }
.nxmk .nxmk-stoff h4 { margin: 12px 0 6px; font-size: .95rem; font-weight: 800; color: var(--mk-ink); }
.nxmk .nxmk-struk { margin: 0 0 10px; max-width: 240px; background: #faf9ff; border: 1px solid var(--mk-line); border-radius: 14px; padding: 8px; text-align: center; }
.nxmk .nxmk-struk img { width: 100%; height: auto; display: block; }
.nxmk .nxmk-struk figcaption { font-size: .76rem; color: var(--mk-mut); line-height: 1.35; }
.nxmk .nxmk-hinweis { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: #fffbeb; border: 1px solid #fde68a; color: #713f12; font-size: .9rem; line-height: 1.5; }
.nxmk .nxmk-tabelle { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 8px; }
.nxmk .nxmk-tabelle table { width: 100%; min-width: 420px; border-collapse: collapse; font-size: .9rem; color: var(--mk-ink); background: #fff; }
.nxmk .nxmk-tabelle th, .nxmk .nxmk-tabelle td { padding: 8px 10px; border-top: 1px solid var(--mk-line); text-align: left; vertical-align: top; line-height: 1.45; }
.nxmk .nxmk-tabelle thead th { border-top: 0; background: #f3efff; color: var(--mk-ink); }
.nxmk .nxmk-tabelle th.nxmk-st0 { background: #f1f5f9; } .nxmk .nxmk-tabelle th.nxmk-st1 { background: #fef9c3; } .nxmk .nxmk-tabelle th.nxmk-st2 { background: #ffedd5; } .nxmk .nxmk-tabelle th.nxmk-st3 { background: #fed7aa; } .nxmk .nxmk-tabelle th.nxmk-st4 { background: #fecaca; }
.nxmk .nxmk-tol { margin: 0 0 6px; padding-left: 1.1rem; display: grid; gap: 4px; line-height: 1.5; color: #2e2950; }

/* Bewegung & Ladezustände (29.11.2026): nur ohne „Bewegung reduzieren“, nur transform/opacity.
   Ergebnis blendet gestaffelt ein (nüchtern, auch bei „Lebensgefährlich“), Zeitachse wächst, Platzhalter beim Nachladen. */
.nxmk .nxmk-skelett { display: flex; flex-wrap: wrap; gap: 6px; }
.nxmk .nxmk-skelett span, .nxmk .nxmk-laedt span[aria-hidden] { display: block; height: 44px; width: var(--w, 90px); border-radius: 999px; background: linear-gradient(90deg, #f1effa 25%, #e6e1f6 50%, #f1effa 75%); background-size: 200% 100%; }
.nxmk .nxmk-laedt { padding: 14px 16px; display: grid; gap: 10px; }
.nxmk .nxmk-laedt span[aria-hidden] { height: 14px; border-radius: 8px; }
@media (prefers-reduced-motion: no-preference) {
  .nxmk .nxmk-chip, .nxmk .nxmk-knopf, .nxmk .nxmk-tag button, .nxmk .nxmk-112, .nxmk .nxmk-weg { transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, border-color .16s ease, color .16s ease; }
  @media (hover: hover) {
    .nxmk .nxmk-chip:hover { transform: translateY(-1px); }
    .nxmk .nxmk-knopf:not([disabled]):hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(109, 40, 217, .3); }
  }
  .nxmk .nxmk-chip:active, .nxmk .nxmk-knopf:not([disabled]):active, .nxmk .nxmk-112:active { transform: scale(.97); }
  .nxmk:not(.is-ruhig) .nxmk-ergebnis > * { animation: nxmk-ein .32s cubic-bezier(.2, .7, .2, 1) both; }
  .nxmk:not(.is-ruhig) .nxmk-ergebnis > :nth-child(2) { animation-delay: .04s; }
  .nxmk:not(.is-ruhig) .nxmk-ergebnis > :nth-child(3) { animation-delay: .08s; }
  .nxmk:not(.is-ruhig) .nxmk-ergebnis > :nth-child(4) { animation-delay: .14s; }
  .nxmk:not(.is-ruhig) .nxmk-ergebnis > :nth-child(5) { animation-delay: .2s; }
  .nxmk:not(.is-ruhig) .nxmk-ergebnis > :nth-child(6) { animation-delay: .26s; }
  .nxmk:not(.is-ruhig) .nxmk-ergebnis > :nth-child(n+7) { animation-delay: .32s; }
  .nxmk:not(.is-ruhig) .nxmk-zeit rect { animation: nxmk-balken .7s cubic-bezier(.2, .7, .2, 1) .3s both; transform-box: fill-box; transform-origin: 0 50%; }
  .nxmk .nxmk-skelett span, .nxmk .nxmk-laedt span[aria-hidden] { animation: nxmk-schimmer 1.3s ease-in-out infinite; }
  @keyframes nxmk-ein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  @keyframes nxmk-balken { from { transform: scaleX(0); } to { transform: none; } }
  @keyframes nxmk-schimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
}
