/* Gestaltung aller Wissensartikel — eine Datei fuer alle.
   Wer hier etwas aendert, aendert es ueberall. Neue Artikel erben es
   automatisch, ohne dass eine Kopie nachgezogen werden muss.

   Leitgedanke: Ein Wissensartikel wird gelesen, nicht ueberflogen.
   Deshalb groessere Schrift, mehr Zeilenabstand, klare Abschnitte
   und ruhige Kontraste statt vieler Farben. */

.wart {
  max-width: 44rem;              /* ca. 70 Zeichen — die bequeme Lesebreite */
  margin: 0 auto;
  padding: 34px 20px 72px;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-text-size-adjust: 100%;
}

/* ── Kopf ─────────────────────────────────────────────── */
.wart .kicker {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: #1A5828; margin-bottom: 10px;
}
.wart h1 {
  font-size: clamp(27px, 6vw, 36px); line-height: 1.18; font-weight: 700;
  margin: 0 0 12px; color: #14181A; letter-spacing: -.015em; text-wrap: balance;
}
.wart .meta {
  font-size: 13px; color: #6E7D74; margin-bottom: 30px;
  padding-bottom: 18px; border-bottom: 1px solid #E6EAE7; line-height: 1.7;
}

/* ── Fliesstext ───────────────────────────────────────── */
.wart p {
  font-size: 17px; line-height: 1.72; color: #2B3733; margin: 0 0 18px;
  overflow-wrap: break-word;
}
/* Der erste Absatz traegt die Kernaussage — er darf etwas groesser sein. */
.wart .meta + p { font-size: 18.5px; line-height: 1.68; color: #1F2A26; }

.wart strong { font-weight: 650; color: #14181A; }
.wart a { color: #1A5828; text-decoration: underline; text-underline-offset: 2px;
          text-decoration-thickness: 1px; }
.wart a:hover { text-decoration-thickness: 2px; }

/* ── Gliederung ───────────────────────────────────────── */
.wart h2 {
  font-size: clamp(20px, 4.6vw, 24px); font-weight: 700; color: #14181A;
  margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid #EDF1EE;
  letter-spacing: -.01em; line-height: 1.3; scroll-margin-top: 90px;
}
.wart h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 32px; }
.wart h3 {
  font-size: 17.5px; font-weight: 700; color: #1F2A26;
  margin: 28px 0 9px; line-height: 1.4; scroll-margin-top: 90px;
}

/* ── Listen ───────────────────────────────────────────── */
.wart ul, .wart ol { margin: 0 0 20px; padding-left: 0; list-style: none; }
.wart li {
  font-size: 17px; line-height: 1.65; color: #2B3733;
  margin: 0 0 9px; padding-left: 26px; position: relative;
}
.wart ul > li::before {
  content: ""; position: absolute; left: 8px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: #4E9A5B;
}
.wart ol { counter-reset: pos; }
.wart ol > li { counter-increment: pos; }
.wart ol > li::before {
  content: counter(pos) "."; position: absolute; left: 0; top: 0;
  font-weight: 700; color: #1A5828; font-size: 15.5px; line-height: 1.75;
}
.wart li > ul, .wart li > ol { margin: 9px 0 0; }

/* ── Hinweiskasten ────────────────────────────────────── */
.wart blockquote {
  margin: 0 0 22px; padding: 16px 18px; background: #FBF7EA;
  border-left: 4px solid #B8963E; border-radius: 10px;
}
.wart blockquote p { font-size: 15.5px; line-height: 1.62; margin: 0 0 8px; color: #4A3F22; }
.wart blockquote p:last-child { margin-bottom: 0; }

/* ── Tabellen ─────────────────────────────────────────── */
.wart .tabelle-rahmen { overflow-x: auto; margin: 0 0 22px;
  -webkit-overflow-scrolling: touch; }
.wart table {
  width: 100%; border-collapse: collapse; font-size: 15px;
  min-width: 30rem; background: #fff;
}
.wart th {
  text-align: left; font-weight: 700; color: #14181A; font-size: 13px;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 11px 13px; background: #F4F7F5; border-bottom: 2px solid #DDE4DE;
  white-space: nowrap;
}
.wart td {
  padding: 11px 13px; border-bottom: 1px solid #EDF1EE;
  color: #2B3733; line-height: 1.55; vertical-align: top;
}
.wart tbody tr:last-child td { border-bottom: 0; }

/* ── Inhaltsverzeichnis ───────────────────────────────── */
.wart .inhalt {
  margin: 0 0 34px; padding: 18px 20px; background: #F7FAF8;
  border: 1px solid #E6EAE7; border-radius: 12px;
}
.wart .inhalt-titel {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: #6E7D74; margin-bottom: 11px;
}
.wart .inhalt ol { margin: 0; }
.wart .inhalt li { font-size: 15px; margin-bottom: 7px; padding-left: 22px; }
.wart .inhalt li:last-child { margin-bottom: 0; }
.wart .inhalt li::before { font-size: 14px; line-height: 1.6; }
.wart .inhalt a { color: #2B3733; text-decoration: none; }
.wart .inhalt a:hover { color: #1A5828; text-decoration: underline; }

/* ── Sonstiges ────────────────────────────────────────── */
.wart hr { border: 0; border-top: 1px solid #E6EAE7; margin: 34px 0; }
.wart img { max-width: 100%; height: auto; border-radius: 10px; margin: 0 0 20px; }
.wart code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9em; background: #F4F7F5; padding: 2px 6px; border-radius: 5px;
  color: #1F2A26;
}
.wart .niv {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
}
.wart .niv-einsteiger { background: #EAF5EF; color: #1A5828; }
.wart .niv-fortgeschritten { background: #FBF3E4; color: #8A6A1F; }
.wart .niv-experte { background: #F3EEF9; color: #5B3E8A; }

/* Auf kleinen Bildschirmen zaehlt jeder Millimeter Zeilenlaenge. */
@media (max-width: 480px) {
  .wart { padding: 26px 16px 60px; }
  .wart p, .wart li { font-size: 16.5px; }
  .wart .meta + p { font-size: 17.5px; }
  .wart h2 { margin-top: 36px; padding-top: 18px; }
}

@media print {
  .wart { max-width: none; padding: 0; }
  .wart .inhalt { display: none; }
  .wart h2 { break-after: avoid; }
}

/* ── Sprachfassungen ──────────────────────────────────────
   Beide Fassungen liegen in derselben Seite; umgeschaltet wird
   ueber das Attribut am <article>. Eine URL, eine Aufrufzaehlung,
   kein Duplikat im Suchindex. */
.wart[data-lang="en"] .wart-de { display: none; }
.wart[data-lang="en"] .wart-en { display: block !important; }
.wart .wart-en[hidden] { display: none; }

/* Tabellen ohne Rahmenelement: Fruehere Fassungen der Artikel brachten
   ihren eigenen Scrollrahmen per JavaScript mit. Der faellt beim Neubau
   weg, deshalb loesen wir es hier — dauerhaft und ohne Skript. */
.wart table, .wart .wtab {
  display: block; max-width: 100%; overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.wart table thead, .wart table tbody { display: table; width: 100%; min-width: 30rem; }
