/*
 * VOMA Child Theme – article.css
 *
 * Wissensportal-/Artikel-System: Artikel-Hero (Meta-Zeile), Fließtext-
 * Typografie, Inhaltsverzeichnis, "Kurz gesagt"-Callout, dezente
 * Inline-CTA, Ähnliche-Artikel-Raster, Yoast-FAQ-Block-Anpassung.
 *
 * Baut bewusst auf bestehenden Komponenten auf (.voma-callout,
 * .voma-faq, .voma-tile) statt neue Parallel-Systeme einzuführen –
 * siehe docs/wissensportal-konzept-2026-07-04.md, Abschnitt 3.
 *
 * Quellen:
 *   06_Standards/CI/TYPOGRAPHY.md          – Schriftsystem
 *   06_Standards/CI/DESIGN.md              – Abstände, Radius, Schatten
 *   06_Standards/DEVELOPMENT/CSS-TOKENS.md – Token-Register
 *   06_Standards/QUALITAET/ACCESSIBILITY.md – Fokus, Kontrast, Struktur
 */

/* ============================================================
   ARTIKEL-HERO
   Textvariante ohne Bildspalte – Kategorie-Badge statt Eyebrow-Text,
   Meta-Zeile (Lesezeit, Datum) unter dem Titel.
   ============================================================ */

.voma-article-hero {
  background: #ffffff;
  padding-block: 32px 20px;
}

.voma-article-hero__inner {
  max-width: var(--voma-max-service);
  margin-inline: auto;
}

.voma-article-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(82, 177, 101, .08);
  border-radius: var(--voma-radius-pill);
  color: var(--voma-green-dark);
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--voma-space-4);
}

.voma-article-hero__badge:hover,
.voma-article-hero__badge:focus-visible {
  background: rgba(82, 177, 101, .14);
}

.voma-article-hero__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  color: #111827;
  max-width: 22ch;
  margin: 0 0 var(--voma-space-4);
}

.voma-article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--voma-space-4);
  font-size: 13.5px;
  color: rgba(17, 24, 39, .55);
}

.voma-article-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.voma-article-hero__meta svg {
  width: 15px;
  height: 15px;
  color: var(--voma-green);
  flex-shrink: 0;
}

@media (min-width: 64rem) {
  .voma-article-hero {
    padding-block: 56px 32px;
  }

  .voma-article-hero__title {
    font-size: clamp(32px, 3.2vw, 46px);
  }
}

/* ============================================================
   LAYOUT: FLIESSTEXT + TOC NEBENEINANDER (Desktop)
   Mobile: TOC einklappbar oberhalb des Fließtexts.
   ============================================================ */

.voma-article-layout {
  max-width: var(--voma-max-service);
  margin-inline: auto;
  padding-block: 0 var(--voma-space-8);
  display: flex;
  flex-direction: column;
  gap: var(--voma-space-6);
}

@media (min-width: 64rem) {
  .voma-article-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--voma-space-8);
  }

  .voma-article-layout__main {
    flex: 1;
    min-width: 0;
  }

  .voma-article-layout__toc {
    flex: 0 0 auto;
    width: 260px;
    position: sticky;
    top: var(--voma-space-6);
  }

  /* TOC steht rechts neben schmaleren Lesespalten, damit die
     Zeilenlänge im Fließtext lesefreundlich bleibt (nicht die volle
     Service-Breite von 1100px). */
  .voma-article-layout__main {
    max-width: 68ch;
  }
}

/* ============================================================
   INHALTSVERZEICHNIS (TOC)
   Reine Anker-Links, funktioniert ohne JavaScript (Grundfunktion).
   JS ergänzt nur den Einklapp-Zustand auf Mobile.
   ============================================================ */

.voma-article-toc {
  background: #ffffff;
  border: var(--voma-border);
  border-radius: var(--voma-radius-card);
  box-shadow: var(--voma-shadow-card);
  padding: var(--voma-space-5);
}

.voma-article-toc__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(17, 24, 39, .55);
  margin: 0 0 var(--voma-space-3);
  cursor: default;
}

.voma-article-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--voma-space-2);
}

.voma-article-toc__list a {
  display: block;
  font-size: 14.5px;
  line-height: 1.5;
  color: #1f2933;
  text-decoration: none;
  padding-block: 2px;
  border-left: 2px solid transparent;
  padding-left: var(--voma-space-3);
  transition: color var(--voma-transition-base), border-color var(--voma-transition-base);
}

.voma-article-toc__list a:hover,
.voma-article-toc__list a:focus-visible {
  color: var(--voma-green-dark);
  border-left-color: var(--voma-green);
}

/* Mobile: Einklapp-Verhalten über <details>/<summary> – funktioniert
   nativ ohne JavaScript, kein eigenes Skript nötig. */
.voma-article-toc {
  /* auf Mobile per <details> gerendert, siehe article.php */
}

.voma-article-toc[open] .voma-article-toc__title svg {
  transform: rotate(180deg);
}

.voma-article-toc__title svg {
  width: 16px;
  height: 16px;
  transition: transform var(--voma-transition-base);
}

@media (min-width: 64rem) {
  .voma-article-toc__title svg {
    display: none;
  }
}

/* ============================================================
   FLIESSTEXT-TYPOGRAFIE
   Gilt innerhalb von .voma-article-layout__main für den
   Gutenberg-Standard-Content (entry-content bleibt inhaltlich
   unverändert, bekommt hier nur die VOMA-Typografie).
   ============================================================ */

.voma-article-content {
  font-size: 16.5px;
  line-height: 1.75;
  color: #1f2933;
}

.voma-article-content > * + * {
  margin-top: var(--voma-space-5);
}

.voma-article-content h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 900;
  line-height: 1.25;
  color: #111827;
  margin-top: var(--voma-space-7) !important;
  scroll-margin-top: var(--voma-space-6);
}

.voma-article-content h3 {
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.3;
  color: #111827;
  margin-top: var(--voma-space-6) !important;
  scroll-margin-top: var(--voma-space-6);
}

.voma-article-content ul,
.voma-article-content ol {
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: var(--voma-space-2);
}

.voma-article-content a {
  color: var(--voma-green-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.voma-article-content img {
  border-radius: var(--voma-radius-card);
  width: 100%;
  height: auto;
}

.voma-article-content blockquote {
  margin: 0;
  padding-inline-start: var(--voma-space-5);
  border-inline-start: 3px solid var(--voma-green);
  font-style: italic;
  color: #1f2933;
}

.voma-article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.voma-article-content th,
.voma-article-content td {
  padding: var(--voma-space-3);
  border: var(--voma-border);
  text-align: left;
}

.voma-article-content th {
  background: #f7f8f9;
  font-weight: 700;
}

/* ============================================================
   "KURZ GESAGT"-CALLOUT
   Nutzt die bestehende .voma-callout-Basis (Radius/Schatten/
   Border identisch), ergänzt nur ein kleines Kicker-Label.
   ============================================================ */

.voma-callout--summary {
  position: relative;
}

.voma-callout--summary .voma-callout__kicker {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--voma-green-dark);
  margin: 0 0 var(--voma-space-2);
}

/* ============================================================
   INLINE-CTA (dezent, keine laute Verkaufsfläche)
   Basis: .voma-callout--tint, ergänzt um eine Button-Zeile.
   ============================================================ */

.voma-article-inline-cta {
  display: flex;
  flex-direction: column;
  gap: var(--voma-space-4);
}

@media (min-width: 40rem) {
  .voma-article-inline-cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .voma-article-inline-cta__text {
    flex: 1;
  }
}

.voma-article-inline-cta__title {
  font-size: 16px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
}

.voma-article-inline-cta__text p {
  margin: 0;
  font-size: 14.5px;
  color: #1f2933;
}

.voma-article-inline-cta .voma-btn {
  white-space: nowrap;
}

/* ============================================================
   ÄHNLICHE ARTIKEL
   Eigene, schlankere Kartenvariante auf Basis von .voma-tile
   (kein Icon-Container, Bild optional, Kategorie-Label).
   ============================================================ */

.voma-article-related {
  padding-block: var(--voma-space-7);
  background: #f7f8f9;
}

.voma-article-related__inner {
  max-width: var(--voma-max);
  margin-inline: auto;
}

.voma-article-related__heading {
  font-size: 22px;
  font-weight: 900;
  color: #111827;
  margin: 0 0 var(--voma-space-5);
}

.voma-article-related__grid {
  display: grid;
  gap: var(--voma-space-5);
  grid-template-columns: 1fr;
}

@media (min-width: 48rem) {
  .voma-article-related__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   ARTIKEL-KARTE (generisch)
   Premium-Feinschliff 04.07.2026 (Kategorie-Hub-Sprint): von
   ".voma-article-related__card" auf eine kontextneutrale Klasse
   umbenannt – dieselbe Karte dient jetzt sowohl der kompakten
   "Ähnliche Artikel"-Anzeige (ohne Excerpt/Meta) als auch dem
   volleren Kategorie-Hub-Listing (mit Excerpt + Lesezeit/Datum).
   Eine Komponente statt zweier Varianten, wie im Hub-Konzept
   (docs/kategorie-hubs-konzept-2026-07-04.md, Abschnitt 5) gefordert.
   ============================================================ */

.voma-article-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: var(--voma-border);
  border-radius: var(--voma-radius-card);
  box-shadow: var(--voma-shadow-card);
  padding: var(--voma-space-5);
  text-decoration: none;
  transition: transform var(--voma-transition-base), box-shadow var(--voma-transition-base);
}

.voma-article-card:hover,
.voma-article-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--voma-shadow-card-hover);
}

.voma-article-card__badge {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--voma-green-dark);
  margin-bottom: var(--voma-space-2);
}

.voma-article-card__title {
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.35;
  color: #111827;
  margin: 0;
}

/* Nur in der vollen Variante (Hub-Listing) vorhanden – bei der
   kompakten "Ähnliche Artikel"-Karte werden diese Elemente von der
   PHP-Render-Funktion gar nicht erst ausgegeben, kein CSS-Ausblenden
   nötig. */
.voma-article-card__excerpt {
  font-size: 14.5px;
  line-height: 1.6;
  color: #1f2933;
  margin: var(--voma-space-2) 0 0;
  flex: 1;
}

.voma-article-card__meta {
  display: flex;
  align-items: center;
  gap: var(--voma-space-3);
  margin-top: var(--voma-space-4);
  padding-top: var(--voma-space-3);
  border-top: var(--voma-border);
  font-size: 12.5px;
  color: rgba(17, 24, 39, .55);
}

.voma-article-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.voma-article-card__meta svg {
  width: 13px;
  height: 13px;
  color: var(--voma-green);
  flex-shrink: 0;
}

/* ============================================================
   YOAST-FAQ-BLOCK: optische Angleichung an .voma-faq
   Yoast rendert den FAQ-Block als .schema-faq / .yoast-faq-block
   mit .schema-faq-section pro Frage – hier auf VOMA-Karten-Optik
   umgestellt statt eines eigenen Nachbaus, damit Yoast weiterhin
   korrektes FAQPage-Schema erzeugt (siehe Konzept Abschnitt 3.5).
   ============================================================ */

.voma-article-content .schema-faq,
.voma-article-content .yoast-faq-block {
  display: flex;
  flex-direction: column;
  gap: var(--voma-space-3);
}

.voma-article-content .schema-faq-section,
.voma-article-content .yoast-faq-block .wp-block-yoast-faq-block-question {
  background: #ffffff;
  border: var(--voma-border);
  border-radius: 22px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .045);
  padding: 20px;
}

.voma-article-content .schema-faq-question,
.voma-article-content .yoast-faq-block .schema-faq-question {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 var(--voma-space-2);
}

.voma-article-content .schema-faq-answer,
.voma-article-content .yoast-faq-block .schema-faq-answer {
  font-size: 15.5px;
  line-height: 1.7;
  color: #1f2933;
  margin: 0;
}

/* ============================================================
   ANSPRECHPARTNER-ZEILE AM ARTIKELENDE
   Wiederverwendung von .voma-team__card (siehe team.css) – nur
   Section-Wrapper/Überschrift sind artikelspezifisch neu.
   ============================================================ */

.voma-article-contact {
  padding-block: var(--voma-space-7);
  max-width: var(--voma-max-service);
  margin-inline: auto;
}

.voma-article-contact__kicker {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(17, 24, 39, .48);
  margin: 0 0 var(--voma-space-4);
}

/* ============================================================
   E-E-A-T: "FACHLICH GEPRÜFT VON"-BOX
   YMYL-Vertrauenssignal unter jedem Artikel (siehe inc/expertise.php).
   Bewusst schlank/ruhig gehalten – kein zweiter lauter CTA, sondern
   eine sachliche Vertrauensangabe.
   ============================================================ */

.voma-article-expertise {
  display: flex;
  gap: var(--voma-space-4);
  align-items: flex-start;
  max-width: var(--voma-max-service);
  margin: 0 auto var(--voma-space-6);
  padding: var(--voma-space-5);
  background: #f7f8f9;
  border: var(--voma-border);
  border-radius: var(--voma-radius-card);
}

.voma-article-expertise__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(82, 177, 101, .12);
  color: var(--voma-green-dark);
}

.voma-article-expertise__icon svg {
  width: 18px;
  height: 18px;
}

.voma-article-expertise__title {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 var(--voma-space-2);
}

.voma-article-expertise__title a {
  color: var(--voma-green-dark);
  text-decoration: underline;
}

.voma-article-expertise__credentials {
  list-style: none;
  margin: 0 0 var(--voma-space-2);
  padding: 0;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(17, 24, 39, .68);
}

.voma-article-expertise__date {
  font-size: 12.5px;
  color: rgba(17, 24, 39, .5);
  margin: 0;
}
