/* ── ARTICLE — heller Fließtext-Bereich (Blog, Case Study) ──────────
   Elemente: Lead, Zwischenüberschrift, Absatz, Liste, Zitat, Hinweisbox.
   Diagramme: Modul chart.
   Variante .article--toc (Case Study): Inhaltsverzeichnis (.article-rail, 1/4, läuft mit,
     article.js) und Inhalt (.article-main, 3/4), so breit wie der Header.
     Links im Verzeichnis zeigen per #id auf Lead, Panels oder .article-chapter.
   Vorher/Nachher: .article-compare > .article-panel--before · .article-compare-arrow
     (<div class="article-compare-arrow"><span class="arrow"></span></div>) · .article-panel--after
   Zwei Panels ohne Pfeil (z. B. Aufgaben | Profil): .article-compare--pair
   Vorteile (wie Icon-Karten): <ul class="article-benefits"> > li.article-benefit
     (svg.article-benefit-icon, .article-benefit-title t-h4, .article-benefit-text t-body)
   Ablauf: <ol class="article-steps"> > li.article-step (.article-step-num t-num-m,
     .article-step-title t-lead, .article-step-text t-small)
   Haken einfarbig: .article-list--check + .article-list--red / --yellow
   Listen-Zusätze: .article-list--cross (gefüllter Kreis mit Kreuz, grau) · --check (gefüllt mit Haken,
     der Reihe nach Gelb, Orange, Dunkelorange, Rot)
   Schrift: article-rail-link t-small · im Panel article-h2 t-h3
   Schrift: article-lead t-lead · article-h2 t-h2 · article-p t-body ·
            article-list li t-body · article-callout t-body ·
            article-quote p t-lead · cite t-body                          */
.article { background: var(--light-bg); padding: clamp(56px,7vw,96px) var(--gutter) clamp(64px,8vw,120px); }
.article-col { max-width: 930px; margin: 0 auto; }

.article-lead { color: var(--light-ink); margin-bottom: clamp(24px,3vw,40px); }
.article-lead strong { font-weight: 700; }
.article-h2 { font-weight: 700; color: var(--light-ink); margin: clamp(40px,5vw,56px) 0 clamp(14px,1.5vw,18px); }
.article-p  { color: var(--light-mute); margin-bottom: clamp(16px,2vw,22px); }

.article-list { list-style: none; margin: clamp(16px,2vw,20px) 0 clamp(28px,3vw,36px); display: flex; flex-direction: column; gap: 14px; }
.article-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--light-mute); }
.article-list li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--light-green); margin-top: .75em; flex-shrink: 0; }
.article-list strong { color: var(--light-ink); font-weight: 600; }

.article-callout {
  margin: clamp(24px,3vw,36px) 0; padding: clamp(16px,2vw,24px) clamp(20px,2.5vw,28px);
  border-left: 3px solid var(--light-green); background: var(--light-tint);
  color: var(--light-ink);
}

.article-quote { position: relative; margin: clamp(40px,5vw,64px) 0; padding-left: clamp(22px,3vw,32px); border-left: 3px solid var(--light-ink); }
/* UI: dekoratives Anführungszeichen */
.article-quote::before { content: '\201C'; position: absolute; left: -8px; top: -18px; font-size: 52px; line-height: 1; font-family: Georgia, serif; color: var(--light-line); user-select: none; }
.article-quote p { position: relative; font-style: italic; font-weight: 500; color: var(--light-ink); margin-bottom: 14px; }
.article-quote cite { font-style: normal; color: var(--light-mute); }


/* ── Variante: Inhaltsverzeichnis 1/4 + Inhalt 3/4 ──────────────── */
.article--toc { padding-left: 0; padding-right: 0; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: clamp(32px, 4vw, 80px); padding: 0 var(--gutter); }
.article-main { min-width: 0; }
.article-rail {
  position: sticky; top: calc(var(--nav-h) + 40px); align-self: start;
  display: flex; flex-direction: column; border-left: 1px solid var(--light-line);
}
.article-rail-link {
  display: flex; gap: 12px; padding: 10px 0 10px 18px; margin-left: -1px;
  border-left: 2px solid transparent; color: var(--light-mute); text-decoration: none;
  transition: color .3s, border-color .4s var(--ease-out), padding .4s var(--ease-out);
}
.article-rail-link:hover { color: var(--light-ink); }
.article-rail-link.is-active { color: var(--light-ink); border-color: var(--orange); padding-left: 24px; font-weight: 600; }
.article-rail-num { font-variant-numeric: tabular-nums; color: var(--orange); font-weight: 700; }
.article--toc .article-lead, .article--toc .article-panel, .article-chapter { scroll-margin-top: calc(var(--nav-h) + 32px); }
.article--toc .article-lead { max-width: 960px; }
/* Textmarker auf dem fetten Satz im Lead */
.article--toc .article-lead strong {
  background: linear-gradient(color-mix(in srgb, var(--yellow) 45%, transparent), color-mix(in srgb, var(--yellow) 45%, transparent)) no-repeat 0 88% / 0% 38%;
  transition: background-size 1.4s cubic-bezier(.65,0,.35,1) .5s;
}
.article--toc .article-lead.in strong { background-size: 100% 38%; }
.article-chapter .chart { margin-bottom: 0; }

/* Vorher / Nachher */
.article-compare { display: grid; grid-template-columns: minmax(0, 1fr) 88px minmax(0, 1fr); align-items: stretch; margin: clamp(32px, 4vw, 56px) 0 0; }
.article-panel { position: relative; padding: clamp(28px, 3.2vw, 48px); }
.article-panel .article-h2 { margin-top: 0; }
.article-panel--before { background: var(--light-tint); }
.article-panel--after  { background: var(--light-bg); border: 2px solid var(--orange); box-shadow: 0 24px 60px rgba(244,113,37,.14); }
/* Pfeil wie der Maus-Cursor über Links: dunkler Kreis, heller Pfeil */
.article-compare-arrow { align-self: center; justify-self: center; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--light-ink); color: var(--light-bg); }
.article-compare-arrow .arrow { width: 24px; height: 24px; }
.article-list--cross li, .article-list--check li { gap: 16px; }
.article-list--cross li::before, .article-list--check li::before { /* UI: gefüllter Kreis mit ausgespartem Kreuz / Haken */
  width: 30px; height: 30px; margin-top: -.1em; border-radius: 0;
  -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat;
}
.article-list--cross li::before { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='%23fff'/%3E%3Cpath d='M8.8 8.8l6.4 6.4M15.2 8.8l-6.4 6.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='11' fill='%23000' mask='url%28%23m%29'/%3E%3C/svg%3E"); background: var(--light-mute); }
.article-list--check li::before { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='%23fff'/%3E%3Cpath d='M7.5 12.4l3 3 6-6.4' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='11' fill='%23000' mask='url%28%23m%29'/%3E%3C/svg%3E"); background: var(--yellow); }
/* Haken der Reihe nach: Gelb, Orange, Dunkelorange, Rot (wie bei den Icon-Karten) */
.article-list--check li:nth-child(4n+2)::before { background: var(--orange); }
.article-list--check li:nth-child(4n+3)::before { background: var(--darkorange); }
.article-list--check li:nth-child(4n+4)::before { background: var(--red); }
.article-list--check.article-list--red li::before    { background: var(--red); }
.article-list--check.article-list--yellow li::before { background: var(--yellow); }

.article-compare--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.article-chapter .article-h2 { margin-top: clamp(48px, 6vw, 88px); }

/* Vorteile: Karten mit Line-Icon */
.article-benefits { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.article-benefit { display: flex; flex-direction: column; gap: 14px; padding: clamp(28px, 3vw, 40px); background: var(--light-tint); transition: background .3s; }
.article-benefit:hover { background: var(--light-line-soft); }
/* UI: Line-Icon wie bei den Icon-Karten: einfarbig, 40 % Deckkraft auf dem ganzen Icon */
.article-benefit-icon { width: 56px; height: 56px; fill: none; stroke: var(--light-ink); opacity: .4; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.article-benefit-title { font-weight: 700; color: var(--light-ink); margin-top: 18px; }
.article-benefit-text  { color: var(--light-mute); }

/* Ablauf: nummerierte Schritte nebeneinander */
.article-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0; counter-reset: none; }
.article-step { display: flex; flex-direction: column; gap: 8px; padding: clamp(22px, 2.4vw, 32px); border-top: 3px solid var(--yellow); background: var(--light-tint); }
.article-step:nth-child(4n+2) { border-color: var(--orange); }
.article-step:nth-child(4n+3) { border-color: var(--darkorange); }
.article-step:nth-child(4n+4) { border-color: var(--red); }
.article-step-num   { font-weight: 700; color: var(--light-ink); margin-bottom: 6px; }
.article-step-title { font-weight: 700; color: var(--light-ink); }
.article-step-text  { color: var(--light-mute); }

@media (max-width: 1024px) {
  .article-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .article-rail { display: none; }
  .article-compare, .article-compare--pair { grid-template-columns: minmax(0, 1fr); }
  .article-compare-arrow { margin: -14px auto; position: relative; z-index: 1; rotate: 90deg; }
}
@media (max-width: 640px) {
  .article-benefits, .article-steps { grid-template-columns: minmax(0, 1fr); }
}
