/* ============================================================
   RATGEBER (Listing + Articles) — REDESIGN WELLE 3b
   Ergänzt hp-/pp-/sp-* Klassen für Ratgeber-spezifische Features.
   ============================================================ */

/* === ARTICLE HERO (auf Sub-Article-Pages) === */
body.ratgeber-article .article-hero {
  background: var(--navy-900);
  color: #fff;
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
body.ratgeber-article .article-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(74,158,255,.08), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(28,90,168,.08), transparent 50%);
  pointer-events: none;
}
body.ratgeber-article .article-hero .container { position: relative; z-index: 1; max-width: 860px; }
body.ratgeber-article .article-hero h1 {
  font-family: var(--fs-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.1;
  color: #fff; margin: 16px 0 20px;
}
body.ratgeber-article .article-hero h1 em { color: var(--accent-light); font-style: italic; font-weight: 400; }
body.ratgeber-article .article-hero .article-meta {
  font-family: var(--fs-mono); font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-bottom: 8px;
}
body.ratgeber-article .article-hero p:not(.article-meta) {
  font-size: 1.0625rem; line-height: 1.6;
  color: rgba(255,255,255,.72);
  max-width: 64ch; margin: 0;
}

body.ratgeber-article .breadcrumb {
  font-size: 0.8125rem; color: rgba(255,255,255,.55);
  padding: 24px 0 0;
}
body.ratgeber-article .breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
body.ratgeber-article .breadcrumb a:hover { color: #fff; }

/* === TABLE OF CONTENTS === */
body.ratgeber-article .toc {
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  margin: 40px auto;
  max-width: 860px;
}
body.ratgeber-article .toc strong {
  font-family: var(--fs-sans);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
body.ratgeber-article .toc ol,
body.ratgeber-article .toc ul {
  margin: 0; padding-left: 20px;
  font-size: 0.9375rem; line-height: 1.8;
  color: var(--ink-700);
}
body.ratgeber-article .toc a {
  color: var(--ink-700); text-decoration: none;
  transition: color .12s;
}
body.ratgeber-article .toc a:hover { color: var(--accent-dark); }

/* === ARTICLE CONTENT === */
body.ratgeber-article .article-content,
body.ratgeber-article .article-body {
  max-width: 780px;
  margin: 0 auto;
  padding: 56px 24px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink-700);
}
body.ratgeber-article .article-content h2,
body.ratgeber-article .article-body h2 {
  font-family: var(--fs-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.2;
  color: var(--ink-900);
  margin: 48px 0 16px;
}
body.ratgeber-article .article-content h3,
body.ratgeber-article .article-body h3 {
  font-family: var(--fs-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.3;
  color: var(--ink-900);
  margin: 36px 0 12px;
}
body.ratgeber-article .article-content h4,
body.ratgeber-article .article-body h4 {
  font-family: var(--fs-sans);
  font-size: 1rem; font-weight: 600;
  color: var(--ink-900);
  margin: 28px 0 10px;
}
body.ratgeber-article .article-content p,
body.ratgeber-article .article-body p {
  margin: 0 0 18px;
  text-wrap: pretty;
}
body.ratgeber-article .article-content strong,
body.ratgeber-article .article-body strong { color: var(--ink-900); font-weight: 600; }
body.ratgeber-article .article-content a,
body.ratgeber-article .article-body a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
body.ratgeber-article .article-content a:hover,
body.ratgeber-article .article-body a:hover { color: var(--accent); }
body.ratgeber-article .article-content ul,
body.ratgeber-article .article-content ol,
body.ratgeber-article .article-body ul,
body.ratgeber-article .article-body ol {
  margin: 0 0 24px; padding-left: 24px;
}
body.ratgeber-article .article-content li,
body.ratgeber-article .article-body li {
  margin-bottom: 10px;
  line-height: 1.7;
}
body.ratgeber-article .article-content blockquote,
body.ratgeber-article .article-body blockquote {
  border-left: 4px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 28px 0;
  font-family: var(--fs-display);
  font-size: 1.1875rem;
  font-style: italic;
  color: var(--ink-900);
  line-height: 1.55;
}

/* Tables inside articles */
body.ratgeber-article main table {
  width: 100%; border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 28px 0;
  font-size: 0.9375rem;
}
body.ratgeber-article main table thead { background: var(--ink-50); }
body.ratgeber-article main table th {
  padding: 14px 20px; text-align: left;
  font-size: 0.6875rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-500); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
body.ratgeber-article main table td {
  padding: 14px 20px;
  color: var(--ink-700);
  border-bottom: 1px solid var(--line);
}
body.ratgeber-article main table tr:last-child td { border-bottom: none; }

/* Insider-Tip in articles */
body.ratgeber-article .insider-tip {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 24px 28px;
  margin: 28px 0;
}
body.ratgeber-article .insider-tip-title {
  font-family: var(--fs-mono);
  font-size: 0.6875rem; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
  color: var(--accent-dark); margin-bottom: 10px;
}
body.ratgeber-article .insider-tip p:last-child { margin-bottom: 0; }

/* === FAQ SECTION === */
body.ratgeber-article .faq-section {
  background: var(--paper-warm);
  border-top: 1px solid var(--line);
  padding: 56px 0;
}
body.ratgeber-article .faq-section > .container {
  max-width: 820px;
}
body.ratgeber-article .faq-section h2 {
  font-family: var(--fs-display);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 500;
  letter-spacing: -0.02em; line-height: 1.2;
  color: var(--ink-900);
  margin: 0 0 28px;
}

/* === ARTICLE CTA === */
body.ratgeber-article .article-cta {
  background: var(--navy-900);
  color: #fff;
  padding: 64px 0;
  text-align: center;
}
body.ratgeber-article .article-cta > .container { max-width: 680px; }
body.ratgeber-article .article-cta h2,
body.ratgeber-article .article-cta h3 {
  font-family: var(--fs-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin: 0 0 16px;
}
body.ratgeber-article .article-cta p {
  color: rgba(255,255,255,.72);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0 auto 32px;
  max-width: 52ch;
}
body.ratgeber-article .article-cta a,
body.ratgeber-article .article-cta .cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--fs-sans);
  font-size: 1rem; font-weight: 500;
  text-decoration: none;
  transition: background .15s;
  margin: 4px;
}
body.ratgeber-article .article-cta a:hover,
body.ratgeber-article .article-cta .cta-btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }

/* === LEGACY ARTICLE-GRID (falls noch auf anderen Pages benutzt) === */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 40px;
}
.article-card {
  background: #fff;
  padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit;
  transition: background .12s;
  min-height: 200px;
}
.article-card:hover { background: var(--ink-50); text-decoration: none; }
.article-card-thumb { display: none; }
.article-card-body { display: contents; }
.article-card-meta {
  font-family: var(--fs-mono); font-size: 0.6875rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: flex; gap: 12px;
}
.article-card h3 {
  font-family: var(--fs-display);
  font-size: 1.125rem; font-weight: 500;
  letter-spacing: -0.01em; line-height: 1.3;
  color: var(--ink-900);
  margin: 0;
}
.article-card p {
  font-size: 0.875rem; color: var(--ink-700);
  line-height: 1.55; margin: 0; flex: 1;
}
.article-card-link {
  font-size: 0.8125rem; color: var(--accent);
  font-weight: 500; margin-top: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  body.ratgeber-article .article-hero { padding: 40px 0 48px; }
  body.ratgeber-article .toc { padding: 20px 24px; margin: 32px 16px; }
  body.ratgeber-article .article-content,
  body.ratgeber-article .article-body { padding: 32px 24px; }
  body.ratgeber-article .article-cta { padding: 48px 0; }
  body.ratgeber-article main table { font-size: 0.8125rem; }
  body.ratgeber-article main table th,
  body.ratgeber-article main table td { padding: 10px 12px; }
}


/* === RELATED Section (end-of-article Ratgeber + Gehaltsseiten-Links) === */
.related {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 32px;
}
.related h3 {
  font-family: var(--fs-display);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}
.related-card {
  display: block;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.related-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 20px -8px rgba(15,23,42,.12);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.related-card h4 {
  font-family: var(--fs-display);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-900);
  margin: 0 0 6px;
  line-height: 1.35;
}
.related-card p {
  font-size: 0.8125rem;
  color: var(--ink-500);
  margin: 0;
  line-height: 1.5;
}
