/* nop.tools by Matze — © 2026 Matthias Pawlak. Richtung A „Ruhig & kompakt“, P8 Zustände.
   Anmeldung, PIN einrichten, Modul deaktiviert, Kein Zugang. Diese Seiten laufen oft OHNE Session;
   dann lädt base.html staff-design.css nicht. Deshalb tragen sie hier dieselben Token-Werte wie
   staff-design.css (hell + dunkel), gescopt auf .nop-state bzw. den Body, der .nop-state enthält.
   design-system.css und staff-design.css bleiben unverändert. */
/* UA-Schrift (gleicher Block wie staff-design.css, für Seiten ohne Session; Dateien aus m8/uafont): Noto Sans/Serif self-hosted, nur Kyrillisch (unicode-range) — Latin bleibt DM Sans/Fraunces.
   Quelle @fontsource/noto-sans + noto-serif 5.3.0, Lizenz static/fonts/NOTO-OFL.txt. */
@font-face{font-family:'Noto Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/static/fonts/noto-sans-cyrillic-400-normal.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Noto Sans';font-style:normal;font-weight:400;font-display:swap;src:url('/static/fonts/noto-sans-cyrillic-ext-400-normal.woff2') format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Noto Sans';font-style:normal;font-weight:500;font-display:swap;src:url('/static/fonts/noto-sans-cyrillic-500-normal.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Noto Sans';font-style:normal;font-weight:500;font-display:swap;src:url('/static/fonts/noto-sans-cyrillic-ext-500-normal.woff2') format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:'Noto Serif';font-style:normal;font-weight:400;font-display:swap;src:url('/static/fonts/noto-serif-cyrillic-400-normal.woff2') format('woff2');unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:'Noto Serif';font-style:normal;font-weight:400;font-display:swap;src:url('/static/fonts/noto-serif-cyrillic-ext-400-normal.woff2') format('woff2');unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
.nop-state,body:has(.nop-state){--text-muted:#67625a;--accent:#73602e;--accent-h:#5f4f25;--accent-dim:#9b854e;--on-accent:#fffdf9;
  --green:#1f7040;--warn:#825e2a;--border-input:#8f877a;--accent-wash:rgba(138,115,64,.10);--red-wash:#f6e9e6;--red-line:#d8b4ae;
  --font-sans:'DM Sans','Noto Sans',system-ui,-apple-system,'Segoe UI',sans-serif;--font-display:'Fraunces','Noto Serif',Georgia,'Times New Roman',serif}
[data-theme=dark] .nop-state,[data-theme=dark] body:has(.nop-state){--text-muted:#938e89;--red:#d46f6f;--border-input:#6b655f;
  --accent:#c4a35a;--accent-h:#d4b46c;--accent-dim:#8a7340;--on-accent:#0a0a0a;--green:#5ac47a;--warn:#c4915a;
  --accent-wash:rgba(196,163,90,.12);--red-wash:#1d1212;--red-line:#6b3a3a}

.nop-state{font-family:var(--font-sans);font-size:15px;line-height:1.5;font-weight:400;color:var(--text)}
.nop-state *{box-sizing:border-box}
.nop-state :is(a,button,input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.nop-state :is(h1,h2,p){margin:0}
.nop-state label{text-transform:none;letter-spacing:normal}

/* Schale ohne Navigation: 16 px Rand am Handy, Fußzeile ≥ 12 px, Rückmeldeknopf 44 px */
body:has(.nop-state) .site-footer{font-size:12px;letter-spacing:normal;line-height:1.6;margin-top:24px}
body:has(.nop-state) #nop-feedback-btn{min-height:44px;font-size:13px}
/* Anmeldung/PIN: Marke + Sprachwahl stehen im Formular (Artboard F-Login-Handy) — die Kopfleiste
   ohne Navigation würde beides nur doppeln („Start“ führt ohne Anmeldung ohnehin zurück hierher). */
body:has(.nop-state-auth) nav.topnav{display:none}
@media (max-width:760px){
  body:has(.nop-state-auth) .wrapper{padding:20px 16px 32px}
  body:has(.nop-state) #nop-feedback-btn{height:44px;padding:0 14px}
}

/* ── Anmeldung / PIN einrichten ─────────────────────────────────────────── */
.nop-state-auth{width:100%;max-width:420px;margin:0 auto;display:flex;flex-direction:column;gap:0}
.nop-state-auth .ns-mark{display:flex;flex-direction:column;gap:2px;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid var(--border)}
.nop-state-auth .ns-brand{font-family:var(--font-display);font-weight:400;font-size:34px;line-height:1.1;letter-spacing:.02em;color:var(--accent)}
.nop-state-auth .ns-studio{font-size:13.5px;line-height:1.4;color:var(--text-muted);letter-spacing:normal;text-transform:none;margin:0;text-align:left}
.nop-state-auth .ns-h1{font-family:var(--font-sans);font-size:22px;font-weight:600;line-height:1.25;color:var(--text)}
.nop-state-auth .ns-lead{margin:4px 0 16px;font-size:15px;color:var(--text-muted)}
.nop-state-auth .language-control{display:flex!important;flex-wrap:wrap;align-items:center;gap:8px 12px!important;margin:0 0 20px;font-size:14px!important;color:var(--text-muted)}
.nop-state-auth .language-control span{font-size:14px;font-weight:500;color:var(--text-muted)}
.nop-state-auth .language-control select{width:auto;min-width:160px;min-height:44px;padding:0 10px;font:inherit;font-size:15px;color:var(--text);background:var(--bg-card);border:1px solid var(--border-input);border-radius:2px}
.nop-state-auth .ns-form{width:100%;max-width:none;padding:0;margin:0;border:0;background:none}
.nop-state-auth .ns-label{display:block;margin:0 0 6px;font-size:15px;font-weight:600;line-height:1.3;color:var(--text)}
.nop-state-auth .ns-form input:not([type=checkbox]){display:block;width:100%;min-height:50px;margin:0 0 16px;padding:0 14px;font-family:var(--font-sans);font-size:17px;color:var(--text);background:var(--bg-card);border:1px solid var(--border-input);border-radius:0}
.nop-state-auth .ns-form input:not([type=checkbox]):focus{border-color:var(--accent)}
.nop-state-auth .ns-form input::placeholder{color:var(--text-muted);opacity:1}
.nop-state-auth .ns-form input.ns-pin{letter-spacing:.3em;font-size:20px;text-align:left}
.nop-state-auth .ns-keep{display:flex;align-items:center;gap:12px;min-height:48px;margin:0 0 18px;cursor:pointer;font-size:16px;font-weight:500;line-height:1.3;color:var(--text)}
.nop-state-auth .ns-keep input{width:24px;height:24px;margin:0;flex:none;accent-color:var(--accent)}
.nop-state-auth .ns-keep small{display:block;font-size:13.5px;font-weight:400;color:var(--text-muted)}
.nop-state-auth .ns-submit{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;padding:6px 16px;font-family:var(--font-sans);font-size:17px;font-weight:600;line-height:1.25;letter-spacing:normal;text-transform:none;color:var(--on-accent);background:var(--accent);border:1px solid var(--accent);border-radius:2px;cursor:pointer}
.nop-state-auth .ns-submit:hover{background:var(--accent-h);border-color:var(--accent-h);color:var(--on-accent)}
.nop-state-auth .ns-err{min-height:0;margin:12px 0 0;font-size:15px;line-height:1.4;text-align:left;color:var(--red)}
.nop-state-auth .ns-err:empty{margin:0}
.nop-state-auth .ns-err:not(:empty){padding:12px 14px;background:var(--red-wash);border:1px solid var(--red-line);color:var(--text);border-left:3px solid var(--red)}
.nop-state-auth .ns-ok{margin:12px 0 0;padding:12px 14px;font-size:15px;font-weight:500;line-height:1.4;text-align:left;color:var(--text);border:1px solid var(--border);border-left:3px solid var(--green);background:var(--bg-card)}
.nop-state-auth .ns-help{margin:16px 0 0;font-size:14.5px;line-height:1.45;color:var(--text-muted)}
.nop-state-auth .ns-welcome{font-family:var(--font-display);font-weight:400;font-size:26px;line-height:1.2;color:var(--accent);text-align:left;margin-top:8px}
.nop-state-auth .ns-info{margin:24px 0 0;padding:16px;background:var(--bg-card);border:1px solid var(--border);width:100%;max-width:none;text-align:left}
.nop-state-auth .ns-info h2{margin:0 0 4px;font-family:var(--font-sans);font-size:15px;font-weight:600;color:var(--text)}
.nop-state-auth .ns-info p{margin:0 0 12px;font-size:14.5px;line-height:1.45;color:var(--text-muted)}
.nop-state-auth .ns-links{display:flex;flex-wrap:wrap;gap:8px}
.nop-state-auth .ns-links a{flex:1 1 150px;display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:6px 12px;font-size:15px;font-weight:500;line-height:1.25;letter-spacing:normal;text-transform:none;color:var(--text);background:var(--bg-card);border:1px solid var(--border-input);border-radius:2px;text-decoration:none;text-align:center}
.nop-state-auth .ns-links a:hover{border-color:var(--accent);color:var(--accent)}
@media (min-width:761px){
  .nop-state-auth{padding-top:5vh}
  .nop-state-auth .ns-form{padding:24px;background:var(--bg-card);border:1px solid var(--border)}
}

/* ── Hinweiskarte: Modul deaktiviert / Kein Zugang ───────────────────────── */
.nop-state-card{max-width:640px;margin:8px 0 16px;padding:20px 18px;background:var(--bg-card);border:1px solid var(--border)}
.nop-state-card .ns-crumb{margin:0 0 10px;font-size:14px;color:var(--text-muted);overflow-wrap:anywhere}
.nop-state-card .ns-icon{width:52px;height:52px;display:inline-flex;align-items:center;justify-content:center;margin:0 0 14px;color:var(--accent);background:var(--bg);border:1px solid var(--border)}
.nop-state-card .ns-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.nop-state-card .ns-h1{margin:0 0 6px;font-family:var(--font-display);font-weight:400;font-size:24px;line-height:1.2;color:var(--text);overflow-wrap:anywhere;text-transform:none;letter-spacing:normal}
.nop-state-card .ns-title{margin:0 0 4px;font-size:16px;font-weight:600;line-height:1.35;color:var(--text)}
.nop-state-card .ns-text{margin:0 0 16px;font-size:15.5px;line-height:1.5;color:var(--text)}
.nop-state-card .ns-who{margin:0 0 16px;padding:12px 14px;background:var(--bg);border:1px solid var(--border);font-size:15px;line-height:1.45;color:var(--text)}
.nop-state-card .ns-who b{display:block;font-weight:600}
.nop-state-card .ns-stack{display:flex;flex-direction:column;gap:8px}
.nop-state-card .ns-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:6px 16px;font-family:var(--font-sans);font-size:16px;font-weight:500;line-height:1.25;letter-spacing:normal;text-transform:none;text-align:center;text-decoration:none;color:var(--text);background:var(--bg-card);border:1px solid var(--border-input);border-radius:2px;cursor:pointer}
.nop-state-card .ns-btn:hover{border-color:var(--accent);color:var(--accent)}
.nop-state-card .ns-btn svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nop-state-card .ns-btn.ns-primary{background:var(--accent);border-color:var(--accent);color:var(--on-accent)}
.nop-state-card .ns-btn.ns-primary:hover{background:var(--accent-h);border-color:var(--accent-h);color:var(--on-accent)}
@media (min-width:761px){
  .nop-state-card{margin-top:16px;padding:28px}
  .nop-state-card .ns-stack{flex-direction:row;flex-wrap:wrap}
  .nop-state-card .ns-h1{font-size:28px}
}
