/* ===== Kostenlose Werkzeuge · Notenschlüssel-Rechner (28.10.2026, Paket noten-laerm) – nur /tools/notenschluessel, nach tools.css einbinden =====
   Bühne = Eingabe Höchstpunktzahl + Tabelle Note ↔ Punkte + Notenspiegel (alles druckbar, schwarz-weiß lesbar).
   Schmale Bildschirme: Spalte „Bezeichnung“ entfällt unter 430 px, damit nichts quer scrollt. */
.ns-buehne .wz-buehne-inhalt{align-items:stretch;justify-content:flex-start;text-align:left;gap:16px}
.ns-max{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 20px}
.ns-max .wz-feld{flex:0 0 auto}
.ns-max .wz-label{font-size:1.05rem}
/* Prüfung 28.10.: Höchstpunktzahl als Textfeld mit Zahlentastatur (wie pnMax in der App) – type="number" nimmt in
   Safari/iOS „27,5“ nicht an (Wert leer), die Seite liest Komma und Punkt selbst */
.ns-seite .ns-max #nsMax{font-family:'Baloo 2',system-ui,sans-serif;font-weight:700;font-size:1.6rem;width:5.2em;min-height:56px;padding:.2em .5em;text-align:center;font-variant-numeric:tabular-nums}
.ns-max .wz-haken{min-height:56px}
.ns-kurz{margin:0;color:var(--text-leicht);font-size:.95rem;line-height:1.5}
.ns-seite [aria-invalid="true"]{border-color:var(--wz-alarm-text)!important}

/* Tabelle Note ↔ Punkte */
.ns-tab{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;color:var(--text)}
.ns-tab caption{caption-side:top;text-align:left;font-weight:700;color:var(--text-leicht);font-size:.9rem;padding:0 0 6px}
.ns-tab th,.ns-tab td{padding:.45em .6em;border-bottom:1px solid var(--rand);text-align:left;vertical-align:middle}
.ns-tab thead th{font-size:.88rem;font-weight:700;color:var(--text-leicht);border-bottom:2px solid var(--wz-feldrand)}
.ns-note{display:inline-grid;place-items:center;min-width:2.3em;height:2.1em;padding:0 .35em;border-radius:10px;background:var(--wz-ton);color:var(--wz-ton-text);
  font-family:'Baloo 2',system-ui,sans-serif;font-weight:800;font-size:1.15rem;line-height:1}
.ns-tendenz .ns-note{font-size:1.02rem}
.ns-punkte{font-weight:800;font-size:1.1rem;white-space:nowrap}
.ns-proz{color:var(--text-leicht);white-space:nowrap}
.ns-leer .ns-punkte{color:var(--text-leicht);font-weight:600}
.ns-tab tr.ns-erste>*{border-top:2px solid var(--wz-ton-rand)}
.ns-tab tbody tr:last-child>*{border-bottom:0}
@media (max-width:430px){
  .ns-tab .ns-name{display:none}
  .ns-tab th,.ns-tab td{padding:.4em .35em}
  .ns-punkte{font-size:1.02rem}
}

/* Notenspiegel */
.ns-spiegel{border-top:1px solid var(--rand);padding-top:14px}
.ns-spiegel-kopf{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:4px 16px}
.wz-buehne .ns-spiegel-titel{font-family:'Baloo 2',system-ui,sans-serif;font-weight:700;font-size:1.2rem;line-height:1.25;margin:0;color:var(--text)}
.ns-schnitt{margin:0;font-size:1.05rem;color:var(--text)}
.ns-schnitt b{font-family:'Baloo 2',system-ui,sans-serif;font-size:1.5rem}
.ns-balken{list-style:none;margin:12px 0 8px;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;height:150px}
.ns-balken li{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:4px;min-width:0;height:100%}
.ns-saeule{flex:1 1 0;width:100%;max-width:3.4rem;display:flex;align-items:flex-end;min-height:0}
.ns-saeule i{display:block;width:100%;min-height:3px;background:#2F6A91;border-radius:8px 8px 0 0}
.ns-anz{font-weight:800;color:var(--text)}
.ns-bnote{font-family:'Baloo 2',system-ui,sans-serif;font-weight:800;font-size:1.1rem;color:var(--text)}

.ns-spiegel-zeile{margin:4px 0 0;font-size:.95rem;color:var(--text);line-height:1.6}
.ns-spiegel-hinweis{margin:6px 0 0;font-size:.9rem;color:var(--wz-warn-text);font-weight:700}
.ns-einzeln{margin-top:10px}
.ns-einzeln summary{cursor:pointer;font-weight:700;color:var(--blau);min-height:44px;display:flex;align-items:center}
.ns-tab-einzeln{max-width:26rem}

/* Zeile fürs Arbeitsblatt, Einstellungen */
.ns-zeile-feld{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ns-seite .ns-zeile-feld input[type="text"]{flex:1 1 14rem;width:100%;font-size:.95rem}
.ns-vorlagen{grid-template-columns:repeat(auto-fill,minmax(8rem,1fr))}
.ns-vorlagen-info{margin-top:8px}
.ns-knoepfe,.ns-abstand{margin-top:8px}
.ns-grenzen{display:grid;grid-template-columns:repeat(auto-fill,minmax(7.2rem,1fr));gap:10px 12px;margin-top:6px}
.ns-grenzen .wz-feld{gap:2px}
.ns-seite .ns-grenzen input[type="number"]{width:100%}
.ns-grenzen-fuss{margin:6px 0 0;color:var(--text-leicht);font-size:.93rem}
.ns-seite #nsPunkte{min-height:8em}
.ns-seite .wz-karte input[type="text"]{width:100%}

/* Druck: Tabelle und Notenspiegel schwarz-weiß */
@media print{
  .ns-buehne .wz-buehne-inhalt{display:block!important}
  .ns-druck-titel{font-family:'Baloo 2',system-ui,sans-serif;font-size:18pt;font-weight:800;line-height:1.2;margin:0 0 2mm!important;color:#000!important}
  .ns-kurz{margin:0 0 4mm!important}
  .ns-tab{font-size:11pt}
  .ns-tab th,.ns-tab td{border-bottom:1px solid #000!important;color:#000!important;padding:4px 6px!important}
  .ns-note{background:none!important;color:#000!important;border:1px solid #000;border-radius:6px}
  .ns-tab .ns-name{display:table-cell!important}
  .ns-spiegel{border-top:1px solid #000!important;margin-top:10mm;break-inside:avoid}
  .ns-saeule i{background:#bbb!important;border:1.5px solid #000;-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .ns-kurz,.ns-proz,.ns-spiegel-zeile,.ns-schnitt,.ns-anz,.ns-bnote{color:#000!important}
  .ns-einzeln summary{color:#000!important}
  /* Prüfung 28.10.: zugeklappte „Einzelne Ergebnisse“ nicht als leere Überschrift drucken */
  .ns-einzeln:not([open]){display:none!important}
}
