/* ===========================================
   Nullzeitfinder – Ergänzungen zu /shared/calc/calc.css
   =========================================== */

.ndl-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.ndl-controls .nx-field:last-of-type { border-bottom: 0; }
.ndl-speed { margin: .45rem 0 0; color: var(--muted); font-size: .88rem; }

.ndl-buttons { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .6rem; }
.ndl-btn {
  padding: .65rem 1.3rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.ndl-btn--primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(59, 34, 163, .25); }
.ndl-btn--primary:hover { background: #2e1885; }
.ndl-btn--primary:disabled { opacity: .45; cursor: default; box-shadow: none; }
.ndl-btn--ghost { background: #fff; color: var(--brand); border-color: #cfc6e6; }
.ndl-btn--ghost:hover { border-color: var(--brand); }
.ndl-btn:focus-visible { outline: 3px solid rgba(59, 34, 163, .35); outline-offset: 2px; }

.ndl-status {
  display: grid;
  align-content: start;
  gap: .8rem;
  background: linear-gradient(160deg, #fff 0%, var(--brand-soft) 100%);
}
.ndl-limit.is-done { border-color: var(--bad); background: var(--bad-soft); }
.ndl-limit.is-done .nx-tile__value { color: var(--bad); }
.ndl-status .nx-notes { margin-top: 0; padding-top: 0; }

.ndl-chart svg { display: block; width: 100%; height: auto; }
.ndl-grid { stroke: var(--line); stroke-width: 1; }
.ndl-bar { transition: fill .2s; }
.ndl-bar.is-limit { fill: var(--bad) !important; }
.ndl-m { stroke: var(--bad); stroke-width: 3; stroke-linecap: round; }
.ndl-m.is-limit { stroke-width: 5; }
.ndl-amb { stroke: var(--p); stroke-width: 2; stroke-dasharray: 7 5; }
.ndl-amb-label { fill: var(--p); font-size: 12px; font-weight: 700; }
.ndl-num { fill: var(--ink); font-size: 12px; font-weight: 700; }
.ndl-hwz { fill: var(--muted); font-size: 10px; }
.ndl-axis { fill: var(--muted); font-size: 12px; }

.ndl-legend { margin: .6rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .88rem; color: var(--muted); }
.ndl-key { display: inline-block; width: 1.4em; height: .7em; margin-right: .45em; border-radius: 3px; vertical-align: .02em; }
.ndl-key--bar { background: linear-gradient(90deg, #4790f5, #1a2f86); }
.ndl-key--m { height: 4px; background: var(--bad); vertical-align: .25em; }
.ndl-key--amb { height: 0; border-top: 2px dashed var(--p); vertical-align: .3em; }

.ndl-text { margin: 0 0 .9rem; }
.ndl-mnote { margin-top: 1rem; }

@media (max-width: 820px) {
  .ndl-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 460px) {
  .ndl-hwz { display: none; }
}
