/*
 * Lesetext-Seiten. Ergänzt styles.css, das die Farben und Bausteine mitbringt.
 * Eigene Datei, weil die Anwendung selbst nichts davon braucht.
 */

.content-page {
  /* Lesetext verträgt etwas mehr Breite als der Fragebogen. */
  --maxw: 36rem;
}

/* --- Kopf --- */

.page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--edge) 0;
}

.page-wordmark {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
  text-decoration: none;
}
.page-wordmark:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.page-nav {
  display: flex;
  gap: 14px;
}

.page-nav a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}
.page-nav a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px var(--edge) 18px;
}

.page-footer {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 calc(var(--edge) + 6px) 18px;
}
.page-footer p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* --- Lesetext --- */

.prose h1 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 10px 0 0;
}

.prose h2 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  margin: 32px 0 10px;
}

.prose h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 18px 0 4px;
}

.prose p {
  margin: 0 0 14px;
}

.prose .lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text);
  margin: 14px 0 18px;
}

.prose-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.prose-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-secondary);
}
.prose-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 11px;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: var(--accent-muted);
}

/* --- Übersicht der Muster --- */

.muster-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.muster-list a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 18px 20px;
  border-radius: var(--radius-tap);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
}
.muster-list a:hover {
  border-color: var(--accent-muted);
}
.muster-name {
  font-size: 17px;
  font-weight: 500;
}
.muster-teaser {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* --- Weiter zum Test --- */

.cta {
  background: var(--surface-accent);
  border-radius: var(--radius-inner);
  padding: 22px 20px;
  margin: 32px 0 0;
}
.cta h2 {
  margin-top: 0;
  color: var(--selected-text);
}
.cta p {
  color: var(--selected-text);
}
.cta .btn {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  margin-top: 4px;
}

/* --- Herkunft: Prüfstand, Quellen, Datum --- */

.provenance {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.provenance h2 {
  font-size: 16px;
  margin: 18px 0 8px;
}

.byline {
  font-size: 14px;
  color: var(--text-muted);
}

/* Sichtbar, aber nicht alarmierend: ein Hinweis, kein Fehler. */
.review-pending {
  background: var(--crisis-way);
  border-radius: var(--radius-inner);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.review-pending .label {
  color: var(--clay);
  margin-bottom: 8px;
}
.review-pending p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.source-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
}
.source-list li {
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 8px;
}
.source-list a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--accent-muted);
}
.source-list a:hover {
  color: var(--text);
}

/* --- Die anderen Muster --- */

.page-siblings {
  margin-top: 32px;
}
.page-siblings h2 {
  font-size: 16px;
}
.page-siblings ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-siblings a {
  display: inline-block;
  font-size: 14px;
  padding: 8px 13px;
  border-radius: var(--radius-chip);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
}
.page-siblings a:hover {
  border-color: var(--accent-muted);
  color: var(--text);
}

/* --- Weg zum Test, direkt nach dem Aufmacher --- */

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 0 0 22px;
}
.cta-inline a {
  font-size: 16px;
  font-weight: 500;
  color: var(--label);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent-muted);
}
.cta-inline a:hover {
  text-decoration-color: currentColor;
}
.cta-inline .muted {
  font-size: 14px;
  color: var(--text-muted);
}

/* --- Rechtstexte --- */

.page-legal {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.page-legal a {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-legal a:hover {
  color: var(--text);
}

.address {
  line-height: 1.7;
}
.address .muted {
  color: var(--text-muted);
  font-size: 14px;
}

.optout {
  background: var(--surface);
  border-radius: var(--radius-inner);
  padding: 16px 18px;
  margin: 14px 0;
}
.optout p {
  margin: 0 0 10px;
}
