/* ═══════════════════════════════════════════════════════════════════════════
   ARTICLE / SINGLE POST — Light Editorial
   ═══════════════════════════════════════════════════════════════════════════ */

.site-main--article {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
}

/* ── Article Header ───────────────────────────────────────────────────────── */

.article__header {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.article__header-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.article__header-top .type-badge {
  flex-shrink: 0;
}

.article__eyebrow {
  margin-bottom: 0;
}

.article__header .eyebrow::before {
  width: 20px;
}

.article__title {
  font-family: var(--font);
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: var(--leading-tight);
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 20px;
  text-wrap: balance;
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.article__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.article__author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.article__author a {
  color: var(--text-secondary);
  font-weight: 600;
}
.article__author a:hover {
  color: var(--accent);
}

.article__sep {
  color: var(--border-strong);
}

/* ── Hero Image ───────────────────────────────────────────────────────────── */

.article__hero-image {
  margin-bottom: 40px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.article__hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Article Content ──────────────────────────────────────────────────────── */

.article__content {
  font-size: 1.0625rem;
  line-height: var(--leading-relaxed);
  color: var(--text-primary);
}

.article__content > * {
  max-width: 70ch;
}

.article__content h2 {
  font-family: var(--font);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 2.2em 0 .7em;
  line-height: var(--leading-snug);
  padding-bottom: .4em;
  border-bottom: 1px solid var(--border);
}

.article__content h3 {
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.8em 0 .55em;
  color: var(--text);
  line-height: var(--leading-snug);
}

.article__content h4 {
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 700;
  margin: 1.6em 0 .5em;
  color: var(--text);
}

.article__content p {
  margin-bottom: 1.5em;
}

.article__content strong {
  color: var(--text);
  font-weight: 700;
}

.article__content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: color var(--transition-fast);
}
.article__content a:hover {
  color: var(--accent-hover);
}

.article__content img {
  border-radius: var(--radius);
  margin: 1.5em 0;
}

.article__content figure {
  margin: 1.8em 0;
}

.article__content figcaption {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* ── Lists ────────────────────────────────────────────────────────────────── */

.article__content ul:not(.em-list),
.article__content ol {
  margin: 1em 0 1.5em 1.4em;
  display: flex;
  flex-direction: column;
  gap: .5em;
}

.article__content ul:not(.em-list) { list-style: disc; }
.article__content ol { list-style: decimal; }

.article__content li {
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  padding-left: .2em;
}

.article__content li::marker {
  color: var(--text-muted);
}

/* EM-List (styled bullet list) */

.article__content .em-list {
  margin: 1.2em 0 1.8em;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .65em;
}

.article__content .em-list li {
  color: var(--text-secondary);
  padding-left: 1.6em;
  position: relative;
  line-height: var(--leading-normal);
}

.article__content .em-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Insight Box ──────────────────────────────────────────────────────────── */

.article__content .em-insight {
  margin: 2em 0;
  padding: 22px 26px;
  background: var(--accent-soft);
  border: 1px solid rgba(234, 88, 12, .12);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.article__content .em-insight strong {
  color: var(--accent-hover);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Blockquote ───────────────────────────────────────────────────────────── */

.article__content blockquote {
  margin: 2.2em 0;
  padding: 24px 28px;
  background: var(--bg-elevated);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  position: relative;
}

.article__content blockquote p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: 0;
  max-width: none;
}

.article__content blockquote p::before {
  content: '\201C';
  color: var(--accent);
  font-size: 1.6em;
  line-height: 0;
  vertical-align: -.25em;
  margin-right: 4px;
  font-style: normal;
  font-weight: 800;
}

/* ── Code ─────────────────────────────────────────────────────────────────── */

.article__content code {
  font-family: var(--font-mono);
  font-size: .875em;
  background: var(--bg-elevated);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-hover);
}

.article__content pre {
  background: var(--text);
  color: #e8e8e8;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 1.5em 0;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.article__content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ── Tables ───────────────────────────────────────────────────────────────── */

.article__content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: var(--text-sm);
}

.article__content th,
.article__content td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.article__content th {
  font-weight: 700;
  color: var(--text);
  border-bottom: 2px solid var(--border-strong);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.article__content tr:hover td {
  background: var(--bg-hover);
}

/* ── FAQ Block ────────────────────────────────────────────────────────────── */

.article__content h3:has(+ p.faq-answer),
.article__content .faq-block h3 {
  margin-top: 1.4em;
  color: var(--accent);
  font-size: var(--text-md);
}

/* ── Article Footer ───────────────────────────────────────────────────────── */

.article__footer {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.article__cats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.article__cats-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 600;
  margin-right: 4px;
}

.article__cats .eyebrow {
  font-size: .6875rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   NEUTRALISE CTA BOXES & INLINE STYLES — override Gutenberg inline styles
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Neutralise all inline-styled badges/spans in article content ─────────── */
.article__content span[style*="background-color:"],
.article__content span[style*="background:"] {
  background: var(--bg-elevated) !important;
  background-color: var(--bg-elevated) !important;
  background-image: none !important;
  color: var(--text-secondary) !important;
  padding: 3px 10px !important;
  border-radius: 4px !important;
  font-size: .75rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  border: 1px solid var(--border) !important;
}

/* ── Neutralise gold/coloured group boxes ─────────────────────────────────── */
.article__content .wp-block-group[style*="border-color:#ffd700"],
.article__content .wp-block-group[style*="border-color: #ffd700"],
.article__content .wp-block-group[style*="background-color:#fff9f0"],
.article__content .wp-block-group[style*="background-color: #fff9f0"] {
  border-color: var(--border) !important;
  border-width: 1px !important;
  background-color: var(--bg-elevated) !important;
  background: var(--bg-elevated) !important;
}

/* ── Neutralise grey info boxes ───────────────────────────────────────────── */
.article__content .wp-block-group[style*="background-color:#f0f4f8"],
.article__content .wp-block-group[style*="background-color: #f0f4f8"],
.article__content .wp-block-group[style*="background-color:#f8f9fa"],
.article__content .wp-block-group[style*="background-color: #f8f9fa"] {
  background-color: var(--bg-elevated) !important;
  background: var(--bg-elevated) !important;
  border-color: var(--border) !important;
}

/* ── Neutralise table header ──────────────────────────────────────────────── */
.article__content .wp-block-table thead[style*="background-color:#0f0f23"],
.article__content .wp-block-table thead[style*="background-color: #0f0f23"],
.article__content .wp-block-table thead tr,
.article__content table thead {
  background-color: var(--bg-elevated) !important;
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
}

.article__content .wp-block-table thead th,
.article__content table thead th {
  color: var(--text) !important;
  background-color: var(--bg-elevated) !important;
  border-bottom: 2px solid var(--border-strong) !important;
}

/* ── Neutralise coloured table cells ──────────────────────────────────────── */
.article__content .wp-block-table td span[style*="background-color:"],
.article__content table td span[style*="background-color:"] {
  background: var(--bg-elevated) !important;
  background-color: var(--bg-elevated) !important;
  color: var(--text-secondary) !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-size: .75rem !important;
}

/* ── Neutralise coloured HR ───────────────────────────────────────────────── */
.article__content hr[style*="background-color:#e94560"],
.article__content hr[style*="background-color: #e94560"],
.article__content .wp-block-separator[style*="background-color:#e94560"],
.article__content .wp-block-separator[style*="color:#e94560"] {
  background-color: var(--border) !important;
  color: var(--border) !important;
}

/* ── Neutralise inline coloured text ──────────────────────────────────────── */
.article__content [style*="color:#e94560"],
.article__content [style*="color: #e94560"] {
  color: var(--text-secondary) !important;
}

.article__content [style*="color:#666666"],
.article__content [style*="color: #666666"] {
  color: var(--text-muted) !important;
}

/* ── Neutralise blockquote border colour ──────────────────────────────────── */
.article__content .wp-block-quote[style*="border-left-color:#e94560"],
.article__content .wp-block-quote[style*="border-left-color: #e94560"] {
  border-left-color: var(--accent) !important;
}

/* ── Hide pushy CTA boxes in article content ──────────────────────────────── */

/* Dark CTA boxes ("Testsieger direkt kontaktieren") */
.article__content .wp-block-group[style*="background-color:#0f0f23"],
.article__content .wp-block-group[style*="background-color: #0f0f23"] {
  display: none !important;
}

/* ── Subtle editorial source hint ─────────────────────────────────────────── */

.article__source-hint {
  margin: 32px 0 0;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.article__source-hint p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: var(--leading-normal);
  margin-bottom: 0;
  font-style: italic;
}

.article__source-hint a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article__source-hint a:hover {
  color: var(--accent);
}
