/* Neelix Naloxon 2.0 (23.11.2026) – eigene Klassen (.nxnl-*), mobil zuerst */

.nxnl { --nl-text: #141233; --nl-leise: #4b4868; --nl-rand: #e6e4f2; --nl-rot: #b91c1c; color: var(--nl-text); min-width: 0; max-width: 100%; }
.nxnl *, .nxnl *::before, .nxnl *::after { box-sizing: border-box; }
.nxnl strong, .nxnl b, .nxnl li { color: inherit; }
.nxnl .nxnl-klein { font-size: .88rem; color: var(--nl-leise); line-height: 1.5; margin: 8px 0 0; }
.nxnl a { color: #4338ca; }
.nxnl-unsichtbar { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Knöpfe */
.nxnl .nxnl-knopf { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 18px; border-radius: 14px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.25; text-align: center; text-decoration: none !important; cursor: pointer; }
.nxnl .nxnl-knopf:focus-visible, .nxnl .nxnl-link:focus-visible, .nxnl .nxnl-k-knopf:focus-visible { outline: 3px solid #6366f1; outline-offset: 2px; }
.nxnl .nxnl-haupt { background: linear-gradient(135deg, #b3127c, #5b21b6) !important; color: #fff !important; }
.nxnl .nxnl-leise { background: #fff !important; color: #3b2a7a !important; border-color: #d9d5f0; }
.nxnl .nxnl-rot { background: linear-gradient(135deg, #b91c1c, #9d174d) !important; color: #fff !important; }
.nxnl .nxnl-gross { width: 100%; min-height: 58px; font-size: 1.12rem; }
.nxnl .nxnl-klein-knopf { min-height: 44px; padding: 8px 14px; font-size: .92rem; }
.nxnl .nxnl-link { background: none !important; border: 0; padding: 8px; min-height: 44px; font: inherit; font-weight: 700; color: #4338ca !important; text-decoration: underline; cursor: pointer; }
.nxnl .nxnl-reihe { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.nxnl .nxnl-reihe > * { flex: 1 1 150px; }

/* Start-Knopf auf der Seite */
.nxnl-begleiter { margin: 14px 0 6px; }
.nxnl .nxnl-start { width: 100%; justify-content: flex-start; text-align: left; gap: 14px; padding: 16px 18px; min-height: 72px; border-radius: 18px; background: #fff !important; color: var(--nl-text) !important; border: 2px solid #f9a8d4; box-shadow: 0 10px 26px rgba(179, 18, 124, .12); }
.nxnl .nxnl-start > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nxnl .nxnl-start strong { font-size: 1.08rem; }
.nxnl .nxnl-start small { font-weight: 600; color: var(--nl-leise); font-size: .88rem; }
.nxnl .nxnl-start-ico { font-size: 1.9rem; flex: 0 0 auto; }

/* Vollbild-Begleiter */
html.nxnl-offen, html.nxnl-offen body { overflow: hidden !important; }
.nxnl-overlay { position: fixed; inset: 0; z-index: 2147483000; display: flex; flex-direction: column; background: #faf8ff; color: #141233; font-family: inherit; }
.nxnl-overlay .nxnl-kopf { display: flex; align-items: center; gap: 6px; padding: 8px 10px calc(8px); padding-top: max(8px, env(safe-area-inset-top)); background: #fff; border-bottom: 1px solid #f1d4e4; box-shadow: 0 4px 14px rgba(20, 18, 51, .06); }
.nxnl-overlay .nxnl-k-112 { display: inline-flex; align-items: center; min-height: 46px; padding: 6px 14px; border-radius: 12px; background: #b91c1c; color: #fff !important; font-weight: 800; text-decoration: none !important; }
.nxnl-overlay .nxnl-k-uhr { flex: 1 1 auto; min-width: 0; font-weight: 800; font-variant-numeric: tabular-nums; font-size: .95rem; color: #3b0764; text-align: center; }
.nxnl-overlay .nxnl-k-knopf { flex: 0 0 auto; min-width: 46px; min-height: 46px; border-radius: 12px; border: 1px solid #e5e1f3; background: #fff; color: #3f3a5c; font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; padding: 0 10px; }
.nxnl-overlay .nxnl-inhalt { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 20px 18px calc(28px + env(safe-area-inset-bottom)); max-width: 640px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.nxnl-overlay h2 { margin: 0; font-size: 1.6rem; line-height: 1.25; color: #141233; outline: none; }
.nxnl-overlay .nxnl-zaehler { margin: 0; font-size: .85rem; font-weight: 700; color: #7c3aed; text-transform: uppercase; letter-spacing: .05em; }
.nxnl-overlay .nxnl-text { font-size: 1.12rem; line-height: 1.6; color: #241f45; }
.nxnl-overlay .nxnl-text p { margin: 0 0 10px; }
.nxnl-overlay .nxnl-text ul { margin: 0 0 10px; padding-left: 1.2rem; }
.nxnl-overlay .nxnl-text li { margin: 4px 0; }
.nxnl-overlay .nxnl-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.nxnl-overlay .nxnl-nav .nxnl-link { align-self: center; }
.nxnl-overlay .nxnl-takt, .nxnl-overlay .nxnl-uhrkasten { padding: 14px; border-radius: 16px; background: #fff; border: 1px solid #e9d5ff; }
.nxnl-overlay .nxnl-takt-titel { margin: 0; font-weight: 800; font-size: 1.05rem; }
.nxnl-overlay .nxnl-takt-reihe { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.nxnl-overlay .nxnl-takt-reihe .nxnl-knopf { flex: 1 1 auto; }
.nxnl-overlay .nxnl-puls { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fde2e2; color: #b91c1c; font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; transition: transform .08s ease, background .08s ease; }
.nxnl-overlay .nxnl-puls.is-schlag { transform: scale(1.12); background: #fecaca; }
.nxnl-overlay .nxnl-puls.is-ruhig, .nxnl-overlay .nxnl-puls.is-ruhig.is-schlag { transform: none; transition: none; }
.nxnl-overlay .nxnl-gabe { margin: 8px 0; font-size: 1.02rem; }
.nxnl-overlay .nxnl-protokoll { margin: 0; padding: 12px 14px 12px 32px; border-radius: 14px; background: #fff; border: 1px solid #e6e4f2; font-size: 1.05rem; line-height: 1.7; }

/* Karten (Stellen, Mein Naloxon) */
.nxnl .nxnl-karte { margin: 14px 0; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid #ececf4; box-shadow: 0 6px 18px rgba(20, 18, 51, .05); overflow-wrap: anywhere; }
.nxnl .nxnl-karte h3 { margin: 0 0 4px; font-size: 1.05rem; color: #141233; }
.nxnl .nxnl-wahl select { width: 100%; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid #d4d0ea; background: #fff; color: #141233; font: inherit; font-size: .95rem; }
.nxnl .nxnl-liste { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.nxnl .nxnl-stelle { margin: 0; padding: 12px; border-radius: 14px; border: 1px solid #ececf4; background: #faf9fe; }
.nxnl .nxnl-stelle-kopf { display: flex; flex-direction: column; gap: 2px; }
.nxnl .nxnl-stelle-kopf a { color: #141233; text-decoration: none; }
.nxnl .nxnl-stelle-kopf a:hover strong { text-decoration: underline; }
.nxnl .nxnl-adr { margin: 6px 0 0; font-size: .88rem; color: #3f3a5c; }
.nxnl .nxnl-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.nxnl .nxnl-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .92rem; }
.nxnl .nxnl-form small { font-weight: 500; color: var(--nl-leise); }
.nxnl .nxnl-form input { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1.5px solid #d4d0ea; background: #fff; color: #141233; font: inherit; font-size: 1rem; }
.nxnl .nxnl-status { margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; font-size: .95rem; }
.nxnl .nxnl-mein-ok .nxnl-status { background: #ecfdf5; color: #14532d; }
.nxnl .nxnl-mein-bald .nxnl-status { background: #fffbeb; color: #713f12; }
.nxnl .nxnl-mein-ab .nxnl-status { background: #fef2f2; color: #7f1d1d; }

@media (prefers-reduced-motion: reduce) { .nxnl-overlay .nxnl-puls { transition: none; } }

/* Dunkelmodus der Seite */
html[data-theme="dark"] .nxnl .nxnl-karte, html[data-theme="dark"] .nxnl .nxnl-start { background: #1c1838 !important; border-color: #3a3560; color: #ece9ff !important; }
html[data-theme="dark"] .nxnl { --nl-text: #ece9ff; --nl-leise: #c7c3e6; }
html[data-theme="dark"] .nxnl .nxnl-karte h3, html[data-theme="dark"] .nxnl .nxnl-stelle-kopf a { color: #ece9ff; }
html[data-theme="dark"] .nxnl .nxnl-stelle { background: #24204a; border-color: #3a3560; }
html[data-theme="dark"] .nxnl .nxnl-adr { color: #d6d3f0; }
html[data-theme="dark"] .nxnl a { color: #a5b4fc; }
html[data-theme="dark"] .nxnl .nxnl-leise { background: #24204a !important; color: #ece9ff !important; border-color: #4a4475; }
html[data-theme="dark"] .nxnl .nxnl-form input, html[data-theme="dark"] .nxnl .nxnl-wahl select { background: #14112b; color: #ece9ff; border-color: #4a4475; }

/* Video (Klick-zum-Laden) */
.nxnl-video { margin: 30px 0 6px; }
.nxnl-video .nxnl-video-box { border-radius: 16px; overflow: hidden; background: #0b1220; box-shadow: 0 10px 34px rgba(15, 23, 42, .14); aspect-ratio: 16 / 9; }
.nxnl .nxnl-video-thumb { position: relative; display: block; width: 100%; height: 100%; padding: 0; margin: 0; border: 0; background: #0b1220; cursor: pointer; }
.nxnl .nxnl-video-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.nxnl .nxnl-video-play { position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(185, 28, 28, .94); color: #fff; font-size: 28px; padding-left: 5px; box-shadow: 0 6px 22px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.nxnl .nxnl-video-thumb:hover .nxnl-video-play { transform: scale(1.08); }
.nxnl .nxnl-video-thumb:focus-visible { outline: 3px solid #6366f1; outline-offset: -3px; }
.nxnl .nxnl-video-frame { display: block; width: 100%; height: 100%; border: 0; }
@media (prefers-reduced-motion: reduce) { .nxnl .nxnl-video-play { transition: none; } }
