/* CHARAKTERBOGEN-2 — categorised trait grid with warn-signal styling (mobile-first). */

.trait-category {
  margin-bottom: 0.25rem;
}

.trait-category__heading {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0.75rem 0 0.35rem;
}

.charakterbogen .trait-grid {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
}

@media (min-width: 480px) {
  .charakterbogen .trait-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) {
  .charakterbogen .trait-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.trait-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: var(--color-surface);
  cursor: pointer;
  min-height: 44px;
}

.trait-chip input {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  flex: 0 0 auto;
}

.trait-chip--warn {
  border-color: #d97706;
  background: #fff7ed;
}

.trait-warn-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 600;
  color: #d97706;
  white-space: nowrap;
}
