/* KI-Radar Wissen: Fachartikel-Layout. Erweitert style.css, keine Token-Duplikate. */

.article-breadcrumb {
  font-size: 14px;
  color: var(--text-muted);
  margin: 104px 0 8px;
}
.article-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--primary); text-decoration: underline; }
.article-breadcrumb .sep { margin: 0 6px; }

.article-hero { padding: 8px 0 clamp(24px, 4vw, 40px); }
.article-hero .eyebrow { display: block; margin-bottom: 10px; }
.article-hero h1 { max-width: 900px; text-wrap: balance; }
.article-hero .lead { max-width: 720px; font-size: clamp(17px, 1.4vw, 20px); color: var(--text-muted); margin-top: 16px; }

.article-meta {
  max-width: 900px;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 14px; color: var(--text-muted);
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
}
.article-meta strong { color: var(--secondary); }

.article-hero-media { margin: clamp(20px,3vw,32px) 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.article-hero-media img { width: 100%; height: auto; display: block; }
.article-hero-media figcaption { padding: 10px 16px; font-size: 13px; color: var(--text-muted); background: var(--bg-soft); }

/* Lesespalte linksbuendig auf der Hausflucht. Der Artikel traegt seine Belege
   als Screenshots und Grafiken: die bekommen die volle Containerbreite, der
   Text bleibt bei 688px (rund 70 Zeichen). Aus dem Wechsel schmal/breit
   entsteht der Rhythmus, den eine durchlaufende Textspalte nicht hat. */
.article-layout { max-width: none; margin: 0; }

.article-body > * { max-width: 688px; }
.article-body > figure,
.article-body > table,
.article-body > .article-steps,
.article-body > .agent-compare { max-width: none; }

.article-body { font-size: 17px; line-height: 1.75; color: var(--text); }
.article-body > * + * { margin-top: 1.4em; }
.article-body h2 {
  margin-top: 2.6em; margin-bottom: 0.5em;
  font-size: clamp(24px,2.6vw,32px);
  scroll-margin-top: 120px;   /* sonst landen Sprungziele hinter der Nav-Pille */
}
.article-body h3 {
  margin-top: 2em; margin-bottom: 0.35em;
  font-size: clamp(18px,1.5vw,21px); font-weight: 600; color: var(--text);
  scroll-margin-top: 120px;
}
.article-body p { margin: 0; color: var(--text); }
.article-body > p:not(:first-child) { margin-top: 1.3em; }
.article-body > * + p { margin-top: 1.3em; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: 0.5em; }
.article-body li p { margin: 0; }
.article-body a { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.article-body strong { color: var(--secondary); }
.article-body figure { margin: 2.8em 0; }
.article-body figure img { width: 100%; height: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-md); display: block; }
.article-body figcaption { margin-top: 8px; font-size: 13px; color: var(--text-muted); }

.article-body table {
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-collapse: collapse; width: 100%; margin: 1.6em 0; font-size: 15px;
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
}
.article-body table thead { background: var(--secondary); }
.article-body table th {
  color: #fff; text-align: left; padding: 12px 16px;
  font-family: var(--font-head); font-weight: 600; white-space: nowrap;
}
.article-body table td { padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.article-body table tbody tr:nth-child(even) { background: var(--bg-soft); }
.article-body table tbody tr:hover { background: var(--primary-soft); }

/* Inhaltsverzeichnis als ruhige Leiste ueber dem Text statt als Randspalte:
   eine Randspalte haette dem Artikel die Breite fuer seine Belege genommen.
   Keine Nummern, weil ein Artikel keine Reihenfolge ist. */
.article-toc {
  margin: 2.4em 0 3.2em;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.article-toc-title {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px;
}
.article-toc ol {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  column-gap: 32px; row-gap: 2px;
}
.article-toc li { margin: 0; }
.article-toc a {
  display: block; padding: 5px 0;
  color: var(--text-muted); text-decoration: none;
  font-size: 14.5px; line-height: 1.4;
  transition: color .15s ease;
}
.article-toc a:hover { color: var(--primary-dark); }
.article-toc a.is-current { color: var(--secondary); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .article-toc a { transition: none; } }

@media (max-width: 1180px) {
  .article-body > * { max-width: none; }
}

.article-steps li + li { margin-top: 0; }
.article-steps li { counter-increment: step; background: var(--bg-soft); border-radius: var(--radius-md); padding: 20px 22px; }
.article-steps .step-num {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; margin-bottom: 10px;
}
.article-steps h4 { font-family: var(--font-head); color: var(--secondary); font-size: 16px; margin: 0 0 6px; }
.article-steps p { font-size: 14.5px; color: var(--text-muted); margin: 0; }
@media (max-width: 600px) { .article-steps { grid-template-columns: 1fr; } }

.agent-compare {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin: 2.8em 0;
}
.agent-compare-col { border-radius: var(--radius-md); padding: 18px 18px 14px; }
.agent-compare-chat { background: var(--bg-soft); }
.agent-compare-cowork { background: var(--primary-soft); }
.agent-compare-label {
  font-family: var(--font-head); font-weight: 700; color: var(--secondary);
  font-size: 14.5px; line-height: 1.35; margin: 0 0 10px;
}
.agent-compare-svg { width: 100%; height: auto; display: block; }
.agent-compare-svg text { font-family: var(--font-sans); }
@media (max-width: 600px) { .agent-compare { grid-template-columns: 1fr; } }

.article-callout {
  background: var(--bg-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: clamp(16px,2vw,22px) clamp(18px,2.4vw,26px);
}
.article-callout p { margin: 0; color: var(--text); }
.article-callout p + p { margin-top: 0.8em; }
.article-callout .callout-label {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary-dark); margin-bottom: 8px;
}

.article-methodik {
  background: var(--secondary);
  color: rgba(255,255,255,0.92);
  border-radius: var(--radius-md);
  padding: clamp(20px,2.4vw,28px);
  margin-top: clamp(32px,4vw,48px);
}
.article-methodik h2, .article-methodik h3 { color: #fff; }
.article-methodik a { color: #bfe6f7; }
.article-methodik ul { margin-top: 0.6em; }
.article-methodik p { margin: 0; color: rgba(255,255,255,0.92); }
.article-methodik p + p { margin-top: 0.8em; }
.article-methodik strong, .article-methodik b { color: #fff; }

.article-cta {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(24px,4vw,40px);
  text-align: center;
  margin-top: clamp(32px,4vw,48px);
}
.article-cta h2 { color: #fff; font-size: clamp(22px,2.6vw,30px); }
.article-cta p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 12px auto 20px; }

.article-footer-nav {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(32px,4vw,48px); padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 15px;
}
.article-footer-nav a { color: var(--secondary); font-weight: 600; text-decoration: none; }
.article-footer-nav a:hover { color: var(--primary); }

/* Wissen-Hub: Artikel-Uebersicht */
.wissen-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(20px,2.4vw,28px); margin-top: clamp(24px,3vw,36px);
}
.wissen-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column;
}
.wissen-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.wissen-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.wissen-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.wissen-card-body h3 { font-size: 19px; }
.wissen-card-body p { font-size: 14.5px; color: var(--text-muted); margin: 0; flex: 1; }
.wissen-card-body a.wissen-card-link { color: var(--primary-dark); font-weight: 600; text-decoration: none; font-size: 14.5px; }
.wissen-card-body a.wissen-card-link:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .article-footer-nav { flex-direction: column; }
}

/* Der Handlungsaufruf traegt einen langen Satz. Das globale white-space:nowrap
   aus .btn liess ihn auf schmalen Viewports ueber den Rand laufen. */
.article-cta .btn { white-space: normal; max-width: 100%; text-align: center; }

/* Die Nav-Pille ist fuer den dunklen Hero der Startseite gebaut: halbtransparent
   plus Weichzeichner. Ueber dem weissen Artikelgrund wird sie milchig und der
   Text schimmert durch. Nur auf den Seiten decken, die article.css laden. */
.nav-wrap .nav-bar {
  background: var(--secondary);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: 0 4px 20px rgba(0, 55, 102, 0.18);
}
