/* Namen melden – 22.11.2026 */

.ndmeld-knopf {
  flex: none;
  width: 34px;
  height: 34px;
  margin-left: var(--ds-space-2);
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-control);
  background: transparent;
  color: var(--ds-ink-muted);
  opacity: .55;
  cursor: pointer;
}
.ndmeld-knopf:hover,
.ndmeld-knopf:focus-visible { opacity: 1; color: var(--ds-negative); border-color: currentColor; }
.ndmeld-knopf .ndi { width: 16px; height: 16px; }

.ndmeld-backdrop {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: var(--ds-space-4);
  background: rgba(10, 18, 13, .55);
}
.ndmeld-box {
  width: min(430px, 100%);
  max-height: 86vh;
  overflow: auto;
  display: grid;
  gap: var(--ds-space-3);
  padding: var(--ds-space-5);
  border-radius: var(--ds-radius-card);
  background: var(--ds-surface-card);
  color: var(--ds-ink);
  box-shadow: 0 18px 48px rgba(10, 18, 13, .35);
}
.ndmeld-box h2 { margin: 0; font-size: 20px; }
.ndmeld-wer { margin: 0; font-weight: 700; font-size: 14px; }
.ndmeld-hinweis { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ds-ink-muted); }

.ndmeld-gruende { display: grid; gap: var(--ds-space-2); }
.ndmeld-grund {
  min-height: 46px;
  padding: 10px 14px;
  text-align: left;
  font: inherit;
  font-size: 14.5px;
  color: var(--ds-ink);
  background: var(--ds-surface-sunken);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-control);
  cursor: pointer;
}
.ndmeld-grund.gewaehlt {
  border: 2px solid var(--ds-brand);
  background: var(--ds-brand-soft);
  font-weight: 700;
}

.ndmeld-notiz-label { font-size: 12.5px; font-weight: 700; }
.ndmeld-notiz {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ds-ink);
  background: var(--ds-surface-sunken);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-control);
  resize: vertical;
}

.ndmeld-aktionen { display: flex; gap: var(--ds-space-2); }
.ndmeld-aktionen button {
  flex: 1;
  min-height: 46px;
  font: inherit;
  font-weight: 700;
  border-radius: var(--ds-radius-control);
  cursor: pointer;
}
.ndmeld-abbrechen { background: transparent; border: 1px solid var(--ds-line); color: var(--ds-ink); }
.ndmeld-senden { background: var(--ds-brand); border: 1px solid var(--ds-brand); color: var(--ds-brand-contrast); }
.ndmeld-senden:disabled { opacity: .5; cursor: default; }

/* Founder-Ansicht */
#ndmeldFounder { display: grid; gap: var(--ds-space-3); font-size: 14px; }
.ndmeld-fall {
  display: grid;
  gap: var(--ds-space-2);
  padding: var(--ds-space-3);
  border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-card);
  background: var(--ds-surface-sunken);
}
.ndmeld-fall-kopf { display: flex; align-items: center; gap: var(--ds-space-2); flex-wrap: wrap; }
.ndmeld-fall-kopf span { font-size: 12px; color: var(--ds-ink-muted); }
.ndmeld-mehrfach {
  padding: 2px 8px;
  border-radius: var(--ds-radius-pill);
  background: var(--ds-fill-caution);
  color: var(--ds-caution);
  font-size: 11.5px;
}
.ndmeld-fall p { margin: 0; }
.ndmeld-fall-notiz { font-size: 13px; color: var(--ds-ink-muted); }
.ndmeld-fall-aktionen { display: flex; gap: var(--ds-space-2); }
.ndmeld-fall-aktionen button {
  flex: 1;
  min-height: 42px;
  font: inherit;
  font-weight: 700;
  border-radius: var(--ds-radius-control);
  cursor: pointer;
}
.ndmeld-tun { background: var(--ds-negative); border: 1px solid var(--ds-negative); color: #fff; }
.ndmeld-lassen { background: transparent; border: 1px solid var(--ds-line); color: var(--ds-ink); }

body.n30-dark .ndmeld-box { background: #16291e; color: #e9f3ec; }
body.n30-dark .ndmeld-grund { background: #1d3527; border-color: #33503c; color: #e9f3ec; }
body.n30-dark .ndmeld-grund.gewaehlt { background: #27503a; border-color: #63e897; }
body.n30-dark .ndmeld-notiz { background: #1d3527; border-color: #33503c; color: #e9f3ec; }
body.n30-dark .ndmeld-fall { background: #1a3025; border-color: #33503c; }

/* 28.11.2026: Der Melden-Knopf brach in eine eigene Zeile um und verdoppelte die Zeilenhöhe. */
#v256BoardResults .v256-rank-row { grid-template-columns: 32px minmax(0, 1fr) auto 32px !important; }
#v256BoardResults .v256-rank-row .ndmeld-knopf { grid-column: 4; justify-self: end; margin: 0 !important; }
