/* 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; }
.article-hero .lead { max-width: 720px; font-size: clamp(17px, 1.4vw, 20px); color: var(--text-muted); margin-top: 16px; }

.article-meta {
  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); }

.article-layout { max-width: 760px; margin: 0 auto; }

.article-body { font-size: 17px; line-height: 1.75; color: var(--text); }
.article-body > * + * { margin-top: 1.3em; }
.article-body h2 { margin-top: 2em; font-size: clamp(24px,2.6vw,32px); }
.article-body h3 { margin-top: 1.6em; font-size: clamp(19px,1.8vw,23px); color: var(--secondary); }
.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: 1.6em 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); }

.article-toc {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: clamp(16px,2vw,22px) clamp(18px,2.4vw,26px); margin: clamp(24px,3vw,32px) 0;
}
.article-toc-title {
  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: 10px;
}
.article-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.article-toc li { counter-increment: toc; margin: 0; padding: 6px 0; }
.article-toc li + li { border-top: 1px dashed var(--border); }
.article-toc li::before {
  content: counter(toc); display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-right: 10px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 12px; font-weight: 700;
}
.article-toc a { color: var(--secondary); text-decoration: none; font-weight: 600; font-size: 15px; }
.article-toc a:hover { color: var(--primary); }
[hidden] { display: none !important; }

.article-steps {
  list-style: none; margin: 1.6em 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  counter-reset: step;
}
.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; } }

.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; }
}
