/* article.css — Typografie & Tabellen fuer den Markdown-Artikel-Body.
   Ergaenzt Agopa (style.css/responsive.css bleiben unveraendert). Palette 1:1 aus dem Theme:
   Petrol #132b34 / #26363c, Orange #db6d36 / #d96226, warmes Hellgrau #f4f1f0, Text #6e6773.
   Grund: Agopa (Shop/Agency-Demo) bringt fuer Artikel-Tabellen/Listen kein Styling mit -> wirkte "billig". */

/* ---------- Überschriften im Fließtext ---------- */
.article-body h2 {
  color: #132b34;
  font-weight: 700;
  margin: 2.3em 0 .7em;
  padding-bottom: .35em;
  border-bottom: 2px solid #ece7e3;
  position: relative;
}
.article-body h2::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 64px; height: 2px; background: #db6d36;
}
.article-body h3 { color: #26363c; font-weight: 700; margin: 1.7em 0 .5em; }
.article-body > p:first-of-type { font-size: 1.06em; }
.article-body p { margin-bottom: 1.15em; line-height: 1.85; }
.article-body strong { color: #132b34; font-weight: 700; }
.article-body a { color: #d96226; text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: #132b34; }

/* ---------- Listen ---------- */
.article-body ul { list-style: none; margin: 0 0 1.3em; padding: 0; }
.article-body ul > li {
  position: relative; padding-left: 1.6em; margin-bottom: .55em; line-height: 1.7;
}
.article-body ul > li::before {
  content: ""; position: absolute; left: .1em; top: .62em;
  width: .5em; height: .5em; background: #db6d36; border-radius: 50%;
}
.article-body ol { margin: 0 0 1.3em 1.2em; }
.article-body ol > li { margin-bottom: .55em; line-height: 1.7; }

/* ---------- Tabellen (der Hauptgrund fuers "billige" Aussehen) ---------- */
.article-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.6em 0 1.9em;
  font-size: .97rem;
  background: #fff;
  border: 1px solid #e7e2df;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(19, 43, 52, .06);
}
.article-body thead th {
  background: #132b34;
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 13px 18px;
  border: none;
  white-space: nowrap;
}
.article-body tbody td {
  padding: 12px 18px;
  border-top: 1px solid #eee7e2;
  color: #55535a;
  vertical-align: top;
}
.article-body tbody tr:nth-child(even) td { background: #f7f4f2; }
.article-body tbody tr:hover td { background: #fdf1ea; }
.article-body tbody td:first-child { color: #132b34; }
.article-body tbody td strong { color: #d96226; }

/* ---------- Zitat / Pull-Quote (Agopa {% zitat %}) ---------- */
.article-body blockquote {
  position: relative;
  margin: 1.9em 0;
  padding: 1.4em 1.7em 1.4em 3.4em;
  background: #f4f1f0;
  border-left: 4px solid #db6d36;
  border-radius: 0 10px 10px 0;
}
.article-body blockquote::before {
  content: "\201C";                 /* großes Anführungszeichen als sicheres Quote-Zeichen */
  position: absolute; left: .5rem; top: .1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.2rem; line-height: 1; color: #db6d36; opacity: .55;
}
.article-body blockquote .icon-box { display: none; }   /* Flaticon-Fallback ("99") ausblenden */
.article-body blockquote .blockquote-text,
.article-body blockquote p {
  margin: 0; color: #132b34; font-size: 1.13rem; font-style: italic; line-height: 1.7; font-weight: 500;
}

/* ---------- Inline-Content-Bilder (dezente, editorial Groesse) ----------
   Header/Hero-Bild wird separat als Hintergrund gesetzt; hier nur Bilder IM Fliesstext.
   Producer liefern uneinheitliches Markup (<figure class=image-box>, bare <img>, Markdown ![]),
   oft mit width="2688" -> ohne Begrenzung viel zu gross. Diese Regeln baendigen alle Varianten. */
.article-body figure { margin: 1.9em auto; max-width: 780px; }
.article-body figure img { margin: 0; width: 100%; }
.article-body img {
  display: block;
  max-width: 780px;
  width: 100%;
  height: auto;
  margin: 1.9em auto;
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(19, 43, 52, .10);
}
.article-body figure figcaption {
  margin-top: .7em; text-align: center; font-size: .9rem; color: #8a868f; font-style: italic;
}

/* Mobile: Tabelle horizontal scrollbar statt gequetscht */
@media (max-width: 767px) {
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .article-body h2::after { width: 48px; }
}
