/* ==========================================================================
   seite.css — Lesetypografie fuer die statischen Inhaltsseiten
   (was-ist-ein-kink-fragebogen.html, kinky-score-erklaert.html).
   Nutzt ausschliesslich Tokens aus theme.css, keine Literalwerte.
   ========================================================================== */

.article {
  width: 100%;
  max-width: 40em; /* ~68 Zeichen Zeilenlaenge bei Fliesstext-Groesse */
  margin: 0 auto;
}

.article__lede {
  color: var(--text-dim);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-5);
}

.article h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.article h2 {
  font-size: 1.3rem;
  line-height: 1.3;
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  padding-top: var(--space-5);
  border-top: var(--border-width) solid var(--border);
}

.article section:first-of-type h2 {
  margin-top: var(--space-5);
}

.article h3 {
  font-size: 1.05rem;
  line-height: 1.35;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.article p {
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.article p:last-child {
  margin-bottom: 0;
}

.article ul,
.article ol {
  margin: 0 0 var(--space-4);
  padding-left: var(--space-5);
  line-height: 1.7;
}

.article li {
  margin-bottom: var(--space-2);
}

.article li:last-child {
  margin-bottom: 0;
}

.article strong {
  color: var(--text);
  font-weight: 600;
}

/* -- Beispielblock ------------------------------------------------------- */
.example {
  background: var(--surface-alt);
  border: var(--border-width) solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin: var(--space-4) 0 var(--space-5);
}

.example p {
  margin-bottom: var(--space-2);
}

.example p:last-child {
  margin-bottom: 0;
}

.example__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}

/* -- Tabelle (Gewichtung) ------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin: var(--space-4) 0 var(--space-5);
  border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table caption {
  caption-side: top;
  text-align: left;
  padding: var(--space-3) var(--space-4) var(--space-2);
  color: var(--muted);
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  padding: var(--space-2) var(--space-4);
  text-align: left;
  border-bottom: var(--border-width) solid var(--border);
}

.data-table thead th {
  background: var(--surface-alt);
  font-weight: 600;
  color: var(--text);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody th {
  font-weight: 500;
  color: var(--text-dim);
}

/* -- Seitennavigation (Verweis auf App + jeweils andere Textseite) ------- */
.article-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin: var(--space-6) 0 0;
  padding-top: var(--space-5);
  border-top: var(--border-width) solid var(--border);
}

@media (max-width: 600px) {
  .article h1 {
    font-size: 1.5rem;
  }

  .article h2 {
    font-size: 1.15rem;
  }
}
