/* Gedaechtnis der KI - Stilbogen zu public/kigedaechtnis.js.
   Alle Klassen tragen kg-, damit sie mit keiner anderen Ansicht kollidieren.
   Farben kommen aus den Variablen von styles.css; hier steht keine feste
   Farbe, damit das helle und das dunkle Thema beide tragen. */

.kg-vorwort {
  max-width: 70ch;
  color: var(--muted, #6b7280);
  line-height: 1.55;
}

.kg-reiter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 10px;
}

.kg-reiter-knopf {
  padding: 8px 16px;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.kg-reiter-knopf.aktiv {
  background: var(--accent, #1f2937);
  border-color: var(--accent, #1f2937);
  color: #fff;
}

.kg-erklaerung {
  max-width: 70ch;
  margin: 0 0 18px;
  line-height: 1.55;
}

.kg-hinweis {
  max-width: 70ch;
  color: var(--muted, #6b7280);
  font-size: 0.92em;
  line-height: 1.5;
}

.kg-neu {
  border: 1px solid var(--border, #d1d5db);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  max-width: 70ch;
}

.kg-feld {
  display: block;
  margin-bottom: 12px;
}

.kg-feld > span {
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

.kg-feld textarea,
.kg-feld select {
  width: 100%;
  box-sizing: border-box;
  padding: 8px;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.kg-zaehler {
  display: block;
  margin-top: 4px;
  color: var(--muted, #6b7280);
  font-size: 0.85em;
  line-height: 1.4;
}

.kg-anlaesse {
  border: 1px solid var(--border, #d1d5db);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 12px;
}

.kg-anlaesse legend {
  padding: 0 6px;
  font-size: 0.9em;
  color: var(--muted, #6b7280);
}

.kg-anlass-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.kg-schalter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

.kg-liste {
  display: grid;
  gap: 12px;
  max-width: 70ch;
}

.kg-karte {
  border: 1px solid var(--border, #d1d5db);
  border-radius: 12px;
  padding: 14px 16px;
}

/* Ein Eintrag, der auf Bestaetigung wartet, geht an keine KI. Das muss man
   sehen, sonst haelt man ihn fuer wirksam. */
.kg-wartet {
  border-style: dashed;
  opacity: 0.85;
}

.kg-satz-text {
  margin: 0 0 10px;
  line-height: 1.5;
}

.kg-marken {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.kg-marke {
  padding: 2px 10px;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 999px;
  font-size: 0.8em;
  color: var(--muted, #6b7280);
}

.kg-marke-warnung {
  border-color: var(--warn, #b45309);
  color: var(--warn, #b45309);
}

.kg-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kg-leer {
  color: var(--muted, #6b7280);
  line-height: 1.5;
}

.kg-nachschau {
  margin-top: 26px;
  max-width: 70ch;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 12px;
  padding: 14px 16px;
}

.kg-nachschau summary {
  cursor: pointer;
  font-weight: 600;
}

.kg-probe-ergebnis {
  margin-top: 12px;
}

.kg-probe-zeile {
  margin: 6px 0;
  padding: 8px 12px;
  border-left: 3px solid var(--accent, #1f2937);
  background: var(--soft, rgba(127, 127, 127, 0.08));
  line-height: 1.5;
}
