/* FDL Ausbildung: Noten (noten.js, docs/noten.md). Farben nach Note: g1 grün … g5 rot. */
.g1 { color: var(--ok); }
.g2 { color: #a6e07a; }
.g3 { color: var(--text); }
.g4 { color: var(--gold); }
.g5 { color: var(--bad); }

/* ---- Überblick oben */
.nt-hero { display: grid; grid-template-columns: minmax(150px, auto) minmax(0, 1fr); gap: 18px 32px; align-items: center; }
.nt-hero-main { text-align: center; padding: 4px 8px; }
.nt-big { font: 600 64px/1 var(--display); font-variant-numeric: tabular-nums; margin-top: 6px; letter-spacing: -.01em; }
.nt-word { color: var(--dim); font-size: 13px; margin-top: 6px; }
.nt-hero-side { display: grid; gap: 10px; min-width: 0; }
.nt-hero-side .kpis .v { font-size: 24px; }
.nt-ziel-note { margin: 4px 0 0; }
.nt-best-name { color: var(--faint); font-size: 12px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-tabs { margin-bottom: 14px; }

/* ---- leer */
.nt-empty { display: grid; justify-items: start; gap: 6px; }
.nt-empty-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: rgba(var(--accent-rgb), .16); color: var(--accent); margin-bottom: 6px; }
.nt-empty .actions { margin-top: 10px; }

/* ---- je Fach */
.nt-fach { display: grid; gap: 14px; align-content: start; }
.nt-fach-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.nt-fach-name { display: grid; gap: 3px; min-width: 0; }
.nt-fach-name h3 { overflow-wrap: anywhere; font-size: 15.5px; }
.nt-fach-name .t { color: var(--faint); font-size: 12px; }
.nt-fach-avg { display: flex; align-items: center; gap: 8px; flex: none; }
.nt-avg { font: 600 32px/1 var(--display); font-variant-numeric: tabular-nums; }
.nt-trend { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; }
.nt-trend.besser { background: rgba(108, 203, 95, .16); color: var(--ok); }
.nt-trend.schlechter { background: rgba(255, 140, 150, .16); color: var(--bad); }
.nt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nt-chip { min-width: 40px; height: 34px; padding: 0 10px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); font-size: 15px; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.nt-chip:active { transform: scale(.95); }
/* Doppelt zählende Noten (Schulaufgaben) mit kräftigerem Rand. */
.nt-chip.heavy { border-color: currentColor; border-width: 1.5px; }
.nt-braucht { margin: 0; padding: 10px 12px; border-radius: var(--r-inner); background: rgba(255, 255, 255, .04); color: var(--dim); font-size: 13px; line-height: 1.45; }
.nt-braucht b { color: var(--accent); font-family: var(--display); font-size: 15px; }
.nt-braucht.ok { background: rgba(108, 203, 95, .1); color: #bfe8b6; }
.nt-braucht.bad { background: rgba(255, 140, 150, .08); color: #f3c3c8; }

/* ---- Liste aller Noten */
.nt-list { margin-top: 0; }
.nt-list .rowtext { display: grid; gap: 2px; min-width: 0; }
.nt-list .rowtext b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-list .rowtext .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .nt-box { font-size: 14px; width: 34px; background: rgba(255, 255, 255, .07); }
.rows .nt-box.g1 { color: var(--ok); }
.rows .nt-box.g2 { color: #a6e07a; }
.rows .nt-box.g3 { color: var(--text); }
.rows .nt-box.g4 { color: var(--gold); }
.rows .nt-box.g5 { color: var(--bad); }

/* ---- Fenster zum Eintragen */
.nt-form { margin-top: 4px; }
.nt-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.nt-form .field input[type="date"] { color-scheme: dark; }
.nt-note-input { font-family: var(--display); font-size: 18px !important; font-variant-numeric: tabular-nums; }
.nt-quick { margin-top: -8px; }
.nt-quick .segbtn { flex: 1 1 0; min-width: 40px; padding: 0 6px; font-size: 15px; }
.nt-form .seg .chip { align-self: center; }
.nt-del { margin-right: auto; color: var(--bad); }

/* ---- Startseite */
.nt-start { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 12px; }
.nt-start-avg { display: grid; gap: 2px; }
.nt-mid { font: 600 36px/1 var(--display); font-variant-numeric: tabular-nums; }
.nt-start-list { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.nt-start-fach { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; background: rgba(255, 255, 255, .05); font-size: 13px; color: var(--dim); max-width: 100%; }
.nt-start-fach > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-start-fach b { font-size: 15px; }

@media (hover: hover) {
  .nt-chip:hover { background: rgba(255, 255, 255, .1); }
}

@media (max-width: 640px) {
  .nt-hero { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .nt-big { font-size: 56px; }
  .nt-avg { font-size: 28px; }
  .nt-chip { height: 40px; min-width: 44px; }
}
