/* ================================================================
   SAMMLUNG — Übersichtsseiten für Blog, Tipps, Anleitungen …
   Geladen nur von sammlung-index.njk. Erwachsenen-Optik ruhig,
   Kinder-Seiten (body.layout--kids) bekommen bunte Akzente.
   ================================================================ */

.sml {
  max-width: 780px;
  margin: 0 auto;
}

.sml-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.sml-header__title {
  margin: 0 0 0.75rem;
  border: none;
}

.sml-header__intro {
  max-width: 40em;
  margin: 0 auto;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ── Beitrags-Liste ───────────────────────────────────────────── */

.sml-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.sml-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.3rem 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition-quick), box-shadow var(--transition-quick),
              border-color var(--transition-quick);
}

.sml-card:hover,
.sml-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(44, 42, 40, 0.10);
  border-left-color: var(--color-primary);
}

.sml-card__date {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.sml-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.sml-card__desc {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.sml-card__cta {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-accent-text);
}

/* ── Gruppierte Ansicht (z.B. Anleitungen nach Tier) ──────────── */

.sml-gruppe {
  margin: 2.25rem 0 1rem;
  border: none;
  font-size: 1.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--color-border);
}

.sml-list--gruppe + .sml-gruppe {
  margin-top: 2.5rem;
}

/* ── Leerer Zustand ───────────────────────────────────────────── */

.sml-leer {
  text-align: center;
  padding: 3rem 1.5rem;
  border: 2px dashed var(--color-border);
  border-radius: 16px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
}

.sml-leer__emoji {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

/* ── Kinder-Optik ─────────────────────────────────────────────── */

.layout--kids .sml-card {
  border-radius: 18px;
  border-width: 2px;
  border-left-width: 6px;
}

.layout--kids .sml-list li:nth-child(4n+1) .sml-card { border-left-color: #E8604C; }
.layout--kids .sml-list li:nth-child(4n+2) .sml-card { border-left-color: #E9A00E; }
.layout--kids .sml-list li:nth-child(4n+3) .sml-card { border-left-color: #5FA83E; }
.layout--kids .sml-list li:nth-child(4n+4) .sml-card { border-left-color: #3E8FB0; }

.layout--kids .sml-card__title {
  font-size: 1.35rem;
}

.layout--kids .sml-leer {
  border-radius: 24px;
  font-size: 1.15rem;
}

@media (prefers-reduced-motion: reduce) {
  .sml-card:hover,
  .sml-card:focus-visible {
    transform: none;
  }
}
