/* ═══════════════════════════════════════════════════════════════════════════
   Findorado – Artikel-Seite CSS  (vollständig überarbeitet)
═══════════════════════════════════════════════════════════════════════════ */

/* ── Article Page: main-nav als freies Overlay außerhalb des Headers ─────── */
/* Desktop: unsichtbar (Breadcrumb übernimmt). Mobile: Vollbild-Overlay per JS */
body > .main-nav {
  display: none;
}
body > .main-nav.nav-open {
  display: flex;
  /* Eigener Root-Stacking-Context – nicht durch Header-backdrop-filter begrenzt */
  z-index: 9999;
}

/* ── Reading Progress Bar ───────────────────────────────────────────────── */
.reading-progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--accent), #ff8c42, #ffd700);
  width: 0%; transition: width .1s linear;
  box-shadow: 0 0 10px rgba(232,66,10,.5);
}

/* ── Floating Share ─────────────────────────────────────────────────────── */
.share-float {
  position: fixed; left: 24px; top: 50%; transform: translateY(-50%);
  z-index: 80; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.share-float.visible { opacity: 1; pointer-events: all; }
.share-float-inner {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 50px; padding: 12px 8px; box-shadow: var(--shadow-lg);
}
.share-label {
  font-size: 10px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--muted);
  writing-mode: vertical-lr; transform: rotate(180deg); margin-bottom: 4px;
}
.share-btn {
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; transition: all .2s;
  background: var(--surface-2); color: var(--text);
}
.share-btn:hover { background: var(--accent); color: #fff; transform: scale(1.1); }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.article-main { padding-top: calc(var(--header-h) + 40px); padding-bottom: 100px; }
.article-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px; align-items: start;
}

/* ── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.5); transition: color .2s; }
.breadcrumb a:hover { color: #fff; }

/* ── Hero Image ─────────────────────────────────────────────────────────── */
.article-hero {
  border-radius: 20px; overflow: hidden; margin-bottom: 36px;
  aspect-ratio: 16/9; box-shadow: 0 12px 40px rgba(0,0,0,.3);
  position: relative;
}
.article-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.35) 100%);
  pointer-events: none;
}

/* ── Article Header ─────────────────────────────────────────────────────── */
.article-header { margin-bottom: 40px; }
.article-header-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

.article-category {
  display: inline-flex; align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
  color: var(--accent); background: rgba(232,66,10,.08);
  padding: 5px 14px; border-radius: 50px; text-decoration: none;
  border: 1px solid rgba(232,66,10,.2); transition: all .2s;
}
.article-category:hover { background: var(--accent); color: #fff; }
.article-type-badge {
  font-size: 11px; font-weight: 600; color: var(--muted);
  background: var(--surface-2); padding: 5px 12px; border-radius: 50px;
  border: 1px solid var(--border);
}

.article-header h1 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 800;
  line-height: 1.1; letter-spacing: -.5px;
  color: var(--text); margin-bottom: 18px;
}
.article-meta {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 14px; flex-wrap: wrap;
}
.meta-dot { opacity: .35; }

/* ═══════════════════════════════════════════════════════════════════════════
   PRODUKT-RANKING (neu – ersetzt alte Top-Products-Card)
═══════════════════════════════════════════════════════════════════════════ */
.product-ranking-section {
  margin-bottom: 48px;
}

.ranking-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 8px;
}
.ranking-title-wrap { display: flex; align-items: center; gap: 10px; }
.ranking-icon { font-size: 22px; }
.ranking-header h2 {
  font-size: 19px; font-weight: 800; color: #fff; margin: 0;
}
.ranking-note { font-size: 12px; color: rgba(255,255,255,.45); }

.product-cards-list { display: flex; flex-direction: column; gap: 12px; }

/* ── Einzelne Produktkarte ──────────────────────────────────────────────── */
.product-card-item {
  background: var(--surface-2); border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px; overflow: hidden; transition: all .25s;
  position: relative;
}
.product-card-item:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.3); transform: translateY(-1px);
  border-color: rgba(255,255,255,.14);
}
.product-card-top {
  border-color: rgba(232,66,10,.35);
  background: linear-gradient(135deg, rgba(232,66,10,.07) 0%, var(--surface-2) 60%);
}

/* Empfehlung-Banner */
.product-top-badge {
  background: var(--accent);
  color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase;
  padding: 5px 20px; text-align: center;
}

.product-card-inner {
  display: grid;
  grid-template-columns: 40px 100px 1fr auto;
  gap: 18px; align-items: center;
  padding: 18px 20px;
}

/* Rang-Nummer */
.pc-rank {
  font-size: 22px; font-weight: 900; text-align: center;
  line-height: 1; flex-shrink: 0; color: rgba(255,255,255,.35);
}
.product-card-top .pc-rank { color: var(--accent); }
.pc-rank-badge {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 900; line-height: 1;
  background: rgba(255,255,255,.07);
}

/* Produktbild */
.pc-image {
  width: 100px; height: 100px; flex-shrink: 0;
  background: #fff; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.pc-image img { width: 88px; height: 88px; object-fit: contain; }
.pc-image-placeholder { font-size: 32px; }

/* Produktdetails */
.pc-details { flex: 1; min-width: 0; }
.pc-name {
  font-size: 15px; font-weight: 600; color: #fff;
  line-height: 1.35; margin: 0 0 8px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* Sternebewertung */
.pc-stars {
  display: flex; align-items: center; gap: 3px;
  margin-bottom: 8px; flex-wrap: wrap;
}
.star { font-size: 13px; }
.star-full  { color: #E0A23E; }
.star-half  { color: #E0A23E; opacity: .55; }
.star-empty { color: rgba(255,255,255,.15); }
.pc-rating-text { font-size: 12px; font-weight: 500; color: rgba(255,255,255,.55); margin-left: 3px; }
.pc-reviews { font-weight: 400; font-size: 11px; }

/* Preis */
.pc-price {
  font-size: 20px; font-weight: 800; color: #fff; line-height: 1;
}
.pc-price-note { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.45); }
.pc-price-na { font-size: 13px; color: rgba(255,255,255,.45); }

/* Amazon Button */
.pc-action {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex-shrink: 0;
}
.btn-amazon-card {
  display: inline-block; background: #E0A23E;
  color: #111; font-weight: 800; font-size: 13px;
  padding: 11px 16px; border-radius: 10px; text-decoration: none;
  white-space: nowrap; transition: all .2s;
  border: none;
}
.btn-amazon-card:hover { background: #cf9230; transform: translateY(-1px); }
.btn-amazon-top { padding: 13px 18px; font-size: 14px; }
.pc-affiliate-note { font-size: 10px; color: rgba(255,255,255,.38); }

/* Disclaimer */
.ranking-disclaimer {
  font-size: 12px; color: rgba(255,255,255,.45); margin-top: 12px;
  padding: 10px 16px; border-radius: 8px; background: var(--surface);
  border: 1px solid rgba(255,255,255,.06);
}

/* ── Article Body ───────────────────────────────────────────────────────── */
.article-body {
  font-size: 18px; line-height: 1.88; color: var(--text);
}
.article-body h2 {
  font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -.3px;
  margin: 56px 0 20px; color: var(--text);
  padding-top: 48px; border-top: 2px solid var(--border);
}
.article-body h2:first-child { margin-top: 0; padding-top: 0; border: none; }
.article-body h3 {
  font-size: clamp(18px, 2.5vw, 22px); font-weight: 700;
  margin: 36px 0 14px; color: var(--text);
}
.article-body p  { margin-bottom: 24px; }
.article-body ul, .article-body ol {
  margin: 0 0 24px 28px; display: flex; flex-direction: column; gap: 6px;
}
.article-body li { line-height: 1.7; }
.article-body strong { font-weight: 700; color: var(--text); }
.article-body a  { color: var(--accent2); text-decoration-color: rgba(42,95,255,.3); }
.article-body a:hover { text-decoration-color: var(--accent2); }

/* Comparison-Tabelle im Fließtext (vom Editor eingefügt) */
.article-body .comparison-table {
  width: 100%; border-collapse: collapse; font-size: 15px; margin: 24px 0 32px;
  border-radius: 12px; overflow: hidden; border: 1px solid var(--border);
}
.article-body .comparison-table th {
  background: var(--ink); color: #fff; padding: 12px 16px; text-align: left;
  font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
}
[data-theme="dark"] .article-body .comparison-table th { background: #111125; }
.article-body .comparison-table td {
  padding: 11px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.article-body .comparison-table tr:last-child td { border-bottom: none; }
.article-body .comparison-table tr:hover td { background: var(--surface-2); }

/* Kurz zusammengefasst Box */
.article-body .tldr-box {
  background: rgba(42,95,255,.05); border-left: 4px solid var(--accent2);
  border-radius: 0 16px 16px 0; padding: 24px 28px; margin: 40px 0;
}
[data-theme="dark"] .article-body .tldr-box { background: rgba(42,95,255,.1); }
.article-body .tldr-box::before {
  content: '⚡ Kurz zusammengefasst'; display: block;
  font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 10px;
}
.article-body .tldr-box h3 { font-size: 16px; margin: 0 0 8px; color: var(--accent2); }
.article-body .tldr-box p  { margin: 0; font-size: 16px; }

/* Fazit Box */
.article-body .fazit-box {
  background: rgba(232,66,10,.04); border-left: 4px solid var(--accent);
  border-radius: 0 16px 16px 0; padding: 24px 28px; margin: 40px 0;
}
[data-theme="dark"] .article-body .fazit-box { background: rgba(232,66,10,.1); }
.article-body .fazit-box::before {
  content: '✅ Fazit'; display: block;
  font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.article-body .fazit-box h3 { font-size: 16px; margin: 0 0 8px; color: var(--accent); }
.article-body .fazit-box p  { margin: 0; font-size: 16px; }

/* Info / Tipp Box (optional) */
.article-body .info-box {
  background: rgba(34,197,94,.05); border-left: 4px solid #22c55e;
  border-radius: 0 16px 16px 0; padding: 20px 24px; margin: 32px 0;
}
[data-theme="dark"] .article-body .info-box { background: rgba(34,197,94,.08); }

/* ── Affiliate Disclosure ────────────────────────────────────────────────── */
.affiliate-disclosure {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 22px;
  font-size: 13px; color: var(--muted); margin-top: 52px; line-height: 1.65;
}
.affiliate-disclosure::before { content: 'ℹ️'; font-size: 18px; flex-shrink: 0; }

/* ── Amazon-Suche CTA ────────────────────────────────────────────────────── */
.amz-search-cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(224,162,62,.12) 0%, rgba(224,162,62,.05) 100%);
  border: 2px solid rgba(224,162,62,.4);
  border-radius: 16px; padding: 24px 28px;
  margin-top: 40px;
  box-shadow: 0 4px 24px rgba(224,162,62,.08);
}
.amz-search-cta-text {
  display: flex; align-items: flex-start; gap: 16px; flex: 1; min-width: 0;
}
.amz-search-icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.amz-search-cta-text strong {
  display: block; font-size: 17px; font-weight: 800;
  color: #fff; margin-bottom: 5px; letter-spacing: -.2px;
}
.amz-search-cta-text span {
  font-size: 14px; color: rgba(255,255,255,.65); line-height: 1.55;
}
.amz-search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #E0A23E; color: #111;
  font-weight: 800; font-size: 15px;
  padding: 14px 26px; border-radius: 12px;
  text-decoration: none; white-space: nowrap;
  transition: all .2s; flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(224,162,62,.35);
}
.amz-search-btn::before { content: '🛒'; font-size: 16px; }
.amz-search-btn:hover { background: #cf9230; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(224,162,62,.45); }
@media (max-width: 620px) {
  .amz-search-cta { flex-direction: column; padding: 20px; }
  .amz-search-btn { width: 100%; justify-content: center; }
}

/* ── Related Articles ───────────────────────────────────────────────────── */
.related-articles { margin-top: 52px; padding-top: 40px; border-top: 2px solid var(--border); }
.related-articles h3 { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; text-decoration: none; transition: all .25s;
}
.related-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(232,66,10,.2); }
.related-card-img {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; flex-shrink: 0; background: var(--surface-2);
}
.related-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.related-card:hover .related-card-img img { transform: scale(1.03); }
.related-card-img-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 28px; }
.related-body { padding: 14px 16px; flex: 1; }
.related-cat { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }
.related-body strong { font-size: 13px; color: var(--text); line-height: 1.4; display: block; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.article-sidebar {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: flex; flex-direction: column; gap: 16px;
}
.sidebar-widget {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  overflow: hidden;
}
.sidebar-widget-head {
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: 11px; font-weight: 800; letter-spacing: 1.2px;
  text-transform: uppercase; color: rgba(255,255,255,.70);
  background: rgba(255,255,255,.03);
}

/* Sidebar Ranking – clean minimal list */
.sidebar-ranking { list-style: none; }
.sidebar-product-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
}
.sidebar-product-item:last-child { border-bottom: none; }
.sidebar-product-item:hover { background: var(--surface-2); }

.sb-rank {
  flex-shrink: 0; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  color: rgba(255,255,255,.35);
  margin-top: 2px;
}
.sidebar-product-item:first-child .sb-rank {
  color: #fff; font-size: 14px;
}

.sidebar-product { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.sidebar-name  {
  font-size: 12.5px; font-weight: 600; line-height: 1.4;
  color: rgba(255,255,255,.82);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-product-item:first-child .sidebar-name { color: #fff; font-weight: 700; }
.sidebar-meta  { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sidebar-stars { font-size: 11px; color: rgba(255,255,255,.60); }
.sidebar-price { font-size: 12px; color: rgba(255,255,255,.55); font-weight: 500; }
.sidebar-product-item:first-child .sidebar-price { color: rgba(255,255,255,.75); font-weight: 600; }
.sidebar-amazon {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.65);
  margin-top: 4px; transition: color .15s;
  text-decoration: underline; text-decoration-color: rgba(255,255,255,.2);
  text-underline-offset: 2px;
}
.sidebar-amazon:hover { color: #fff; text-decoration-color: rgba(255,255,255,.5); }

/* Share Sidebar */
.sidebar-share-btns { display: flex; flex-direction: column; }
.share-sidebar-btn {
  all: unset; box-sizing: border-box;
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: rgba(255,255,255,.72); cursor: pointer;
  font-size: 14px; font-weight: 500; transition: color .15s, background .15s;
}
.share-sidebar-btn:last-child { border-bottom: none; }
.share-sidebar-btn:hover { background: var(--surface-2); color: #fff; }

/* TOC (kept for JS, hidden visually if empty) */
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.toc-list li a {
  display: block; font-size: 12px; color: var(--muted);
  padding: 5px 10px; border-radius: 8px; text-decoration: none;
  transition: all .15s; border-left: 2px solid transparent;
}
.toc-list li a:hover { color: var(--text); background: var(--surface-2); }
.toc-list li a.toc-active { color: var(--accent); border-left-color: var(--accent); font-weight: 600; }
.toc-list li a.toc-sub { padding-left: 20px; font-size: 11px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

/* Prevent any single element from causing page-level horizontal overflow */
.article-content { min-width: 0; max-width: 100%; overflow-x: clip; }
.article-body { overflow-wrap: break-word; word-break: break-word; }
.pc-details { overflow-wrap: break-word; word-break: break-word; }

@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .article-sidebar { display: none; }
  .share-float { display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; gap: 12px; }

  /* Product cards: 3-col grid, action hidden */
  .product-card-inner {
    grid-template-columns: 44px 90px 1fr;
    gap: 14px;
  }
  .pc-image { width: 90px; height: 90px; }
  .pc-image img { width: 78px; height: 78px; }
  .pc-action { display: none; }

  /* Hero image: cap height on small tablets */
  .article-hero { border-radius: 14px; }
}

@media (max-width: 640px) {
  /* Related articles single-column on phones */
  .related-grid { grid-template-columns: 1fr; }

  /* Ranking header stack */
  .ranking-header { flex-direction: column; gap: 4px; }
  .ranking-note { font-size: 11px; }
}

@media (max-width: 600px) {
  .article-main { padding-top: calc(var(--header-h) + 24px); padding-bottom: 60px; }
  .article-header h1 { font-size: 24px; line-height: 1.2; }
  .article-hero { border-radius: 12px; margin-bottom: 24px; }
  .article-body { font-size: 16px; line-height: 1.75; }

  /* Product cards: 3-col, smaller */
  .product-card-inner {
    grid-template-columns: 36px 72px 1fr;
    gap: 10px;
    padding: 14px 14px;
  }
  .pc-image { width: 72px; height: 72px; }
  .pc-image img { width: 60px; height: 60px; }
  .pc-rank-badge { width: 34px; height: 34px; font-size: 13px; }
  .pc-name { font-size: 13px; -webkit-line-clamp: 3; }
  .pc-price { font-size: 16px; }
  .pc-price-note { display: none; }
  .pc-stars { display: none; }

  /* Button appears full-width below grid */
  .pc-action {
    display: flex;
    grid-column: 1 / -1;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 2px;
  }
  .btn-amazon-card {
    width: 100%;
    text-align: center;
    justify-content: center;
    font-size: 14px;
    padding: 13px 16px;
  }

  /* Amazon search CTA: stack vertically */
  .amz-search-cta { padding: 18px 16px; }
  .amz-search-cta-text { gap: 10px; }
  .amz-search-icon { font-size: 22px; }
  .amz-search-cta-text strong { font-size: 15px; }
  .amz-search-btn { width: 100%; justify-content: center; font-size: 14px; padding: 13px 20px; }

  /* Affiliate disclosure */
  .affiliate-disclosure { padding: 14px 16px; font-size: 12px; }

  /* Author block */
  .art-author { flex-wrap: wrap; gap: 10px; }
  .art-author-badge { display: none; }

  /* FAQ */
  .art-faq-btn { padding: 14px 16px; font-size: 13px; gap: 10px; }
  .art-faq-ans  { padding: 0 16px 14px; font-size: 12.5px; }
  .art-faq-header { padding: 16px 16px 0; }

  /* Breadcrumb meta */
  .article-meta { font-size: 12px; }
}

@media (max-width: 380px) {
  .product-card-inner { grid-template-columns: 30px 64px 1fr; gap: 8px; padding: 12px; }
  .pc-image { width: 64px; height: 64px; }
  .pc-image img { width: 52px; height: 52px; }
  .pc-rank-badge { width: 28px; height: 28px; font-size: 12px; }
  .pc-name { font-size: 12px; }
}

/* ── Amazon CTA ───────────────────────────────────────────────────────────── */
.amazon-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; margin-top: 32px;
  background: linear-gradient(135deg, rgba(232,66,10,.08) 0%, rgba(232,66,10,.03) 100%);
  border: 1px solid rgba(232,66,10,.25);
  border-radius: 14px;
}
.amazon-cta-left { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.amazon-cta-label {
  font-size: 10px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
}
.amazon-cta-name {
  font-size: 14px; font-weight: 600; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.amazon-cta-price { font-size: 13px; color: var(--gold); font-weight: 700; }
.amazon-cta-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700;
  text-decoration: none; white-space: nowrap;
  transition: background .2s, transform .15s;
}
.amazon-cta-btn:hover { background: var(--accent-h); transform: translateY(-1px); }
@media (max-width: 640px) {
  .amazon-cta { flex-direction: column; align-items: flex-start; }
  .amazon-cta-btn { width: 100%; justify-content: center; }
}

/* ── Author Block ─────────────────────────────────────────────────────────── */
.art-author {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 20px; margin-top: 36px;
  background: var(--surface-2);
  border-radius: 14px;
  border: 1px solid var(--border);
}
.art-author-av {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #2a5fff 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.art-author-body {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 3px;
}
.art-author-body strong { font-size: 13px; font-weight: 700; color: #fff; }
.art-author-body span  { font-size: 11px; color: var(--muted); line-height: 1.45; }
.art-author-badge {
  flex-shrink: 0;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  color: var(--accent); background: rgba(232,66,10,.1);
  border: 1px solid rgba(232,66,10,.2);
  border-radius: 6px; padding: 4px 8px;
}

/* ── Article FAQ ──────────────────────────────────────────────────────────── */
.art-faq {
  margin-top: 36px;
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
}
.art-faq-header {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 24px 0;
  color: var(--accent);
}
.art-faq-header h2 {
  font-size: 17px; font-weight: 700;
  color: #fff; margin: 0; padding: 0; border: none;
}
.art-faq-list {
  padding: 12px 0 0;
}
.art-faq-item {
  border-top: 1px solid var(--border);
}
.art-faq-item:first-child { border-top: none; }
.art-faq-btn {
  /* hard reset – overrides everything */
  all: unset;
  box-sizing: border-box;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  width: 100%; padding: 16px 24px;
  cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--text); line-height: 1.45;
  transition: background .15s, color .15s;
}
.art-faq-btn:hover { background: var(--surface-2); color: #fff; }
.art-faq-btn[aria-expanded="true"] { color: var(--accent); background: rgba(232,66,10,.04); }
.art-faq-chevron {
  flex-shrink: 0; color: var(--muted);
  transition: transform .25s ease, color .15s;
}
.art-faq-btn[aria-expanded="true"] .art-faq-chevron {
  transform: rotate(180deg); color: var(--accent);
}
.art-faq-ans {
  padding: 0 24px 18px;
  font-size: 13px; color: var(--muted); line-height: 1.75;
}

@media (max-width: 600px) {
  .art-author { flex-wrap: wrap; }
  .art-author-badge { display: none; }
  .art-faq-btn { padding: 14px 16px; font-size: 13px; }
  .art-faq-ans  { padding: 0 16px 14px; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   KAUFEULE – LIGHT THEME OVERRIDES (Artikel-Seite)
═══════════════════════════════════════════════════════════════════════════ */

/* Reading progress + share */
.reading-progress-bar { background: linear-gradient(90deg, var(--accent), #3f7d5e, var(--gold)); box-shadow: 0 0 10px rgba(40,74,58,.4); }
.share-btn:hover { background: var(--accent); color: #fff; }

/* Breadcrumb */
.breadcrumb { color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }

/* Hero image */
.article-hero { box-shadow: var(--shadow-md); }
.article-hero::after { background: linear-gradient(to bottom, transparent 55%, rgba(35,32,26,.18) 100%); }

/* Category + type badge */
.article-category { color: var(--accent); background: rgba(40,74,58,.07); border: 1px solid rgba(40,74,58,.22); }
.article-category:hover { background: var(--accent); color: #fff; }

/* Article headings */
.article-header h1 { color: var(--ink); }
.article-body h2, .article-body h3 { color: var(--ink); }
.article-body strong { color: var(--ink); }
.article-body a { color: var(--accent); text-decoration-color: rgba(40,74,58,.35); }
.article-body a:hover { text-decoration-color: var(--accent); }

/* Produkt-Ranking */
.ranking-header h2 { color: var(--ink); }
.ranking-note { color: var(--muted); }
.product-card-item { border: 1px solid var(--border); }
.product-card-item:hover { box-shadow: var(--shadow-md); border-color: rgba(40,74,58,.2); }
.product-card-top { border-color: rgba(40,74,58,.35); background: linear-gradient(135deg, rgba(40,74,58,.07) 0%, var(--surface-2) 60%); }
.pc-rank { color: var(--muted); }
.product-card-top .pc-rank { color: var(--accent); }
.pc-rank-badge { background: rgba(40,74,58,.08); color: var(--ink); }
.pc-name { color: var(--ink); }
.star-empty { color: rgba(35,32,26,.18); }
.pc-rating-text { color: var(--muted); }
.pc-price { color: var(--ink); }
.pc-price-note, .pc-price-na, .pc-affiliate-note { color: var(--muted); }
.pc-price-check { color: var(--accent); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; font-size: 13px; }
.ranking-disclaimer { color: var(--muted); background: var(--surface-2); border: 1px solid var(--border); }

/* Boxen im Fließtext */
.article-body .tldr-box { background: rgba(224,162,62,.10); border-left: 4px solid var(--gold); }
.article-body .tldr-box::before, .article-body .tldr-box h3 { color: var(--accent); }
.article-body .fazit-box { background: rgba(40,74,58,.06); border-left: 4px solid var(--accent); }
.article-body .fazit-box::before, .article-body .fazit-box h3 { color: var(--accent); }
.article-body .info-box { background: rgba(40,74,58,.05); border-left: 4px solid var(--accent); }

/* Amazon-Such-CTA (Amazon-Orange bleibt als Marken-CTA) */
.amz-search-cta-text strong { color: var(--ink); }
.amz-search-cta-text span { color: var(--muted); }

/* Amazon-CTA (Box) → grün */
.amazon-cta { background: linear-gradient(135deg, rgba(40,74,58,.08) 0%, rgba(40,74,58,.03) 100%); border: 1px solid rgba(40,74,58,.22); }
.amazon-cta-name { color: var(--ink); }
.amazon-cta-price { color: #9a6f1e; }

/* Related */
.related-card:hover { box-shadow: var(--shadow-lg); border-color: rgba(40,74,58,.2); }
.related-body strong { color: var(--ink); }
.related-cat { color: var(--accent); }

/* Sidebar */
.sidebar-widget { border: 1px solid var(--border); }
.sidebar-widget-head { border-bottom: 1px solid var(--border); color: var(--muted); background: var(--surface-2); }
.sidebar-product-item { border-bottom: 1px solid var(--border); }
.sb-rank { color: var(--muted); }
.sidebar-product-item:first-child .sb-rank { color: var(--accent); }
.sidebar-name { color: var(--text); }
.sidebar-product-item:first-child .sidebar-name { color: var(--ink); }
.sidebar-stars, .sidebar-price { color: var(--muted); }
.sidebar-product-item:first-child .sidebar-price { color: var(--text); }
.sidebar-amazon { color: var(--accent); text-decoration-color: rgba(40,74,58,.3); }
.sidebar-amazon:hover { color: var(--accent-h); text-decoration-color: var(--accent); }
.share-sidebar-btn { border-bottom: 1px solid var(--border); color: var(--text); }
.share-sidebar-btn:hover { background: var(--surface-2); color: var(--accent); }

/* Author */
.art-author-av { background: linear-gradient(135deg, var(--accent), var(--gold)); color: #fff; }
.art-author-body strong { color: var(--ink); }
.art-author-badge { color: var(--accent); background: rgba(40,74,58,.10); border: 1px solid rgba(40,74,58,.2); }

/* Artikel-FAQ */
.art-faq-header h2 { color: var(--ink); }
.art-faq-btn:hover { background: var(--surface-2); color: var(--ink); }
.art-faq-btn[aria-expanded="true"] { color: var(--accent); background: rgba(40,74,58,.05); }
.comparison-table th { background: var(--ink); color: #fff; }

/* ── KAUFEULE – FLAT / KEINE VERLÄUFE (Artikel) ──────────────────────────── */
.reading-progress-bar { background: var(--accent); box-shadow: none; }
.article-hero::after { content: none; background: none; }
.product-card-top { background: var(--surface-2); }
.amz-search-cta { background: var(--surface); border: 2px solid var(--gold); box-shadow: none; }
.amz-search-btn { box-shadow: none; }
.amazon-cta { background: rgba(40,74,58,.06); }
.art-author-av { background: var(--accent); }
.tldr-box, .fazit-box, .info-box { border-radius: 0 12px 12px 0; }

/* Floating-Share erst ab genug Breite zeigen (sonst Überlappung mit Artikel) */
@media (max-width: 1280px) { .share-float { display: none !important; } }

/* ── Vergleichstabellen im Artikeltext – modern, markengerecht ───────────────
   Greift für JEDE <table> im Fließtext (die KI vergibt keine CSS-Klasse). */
.article-body table {
  width: 100%;
  border-collapse: separate; border-spacing: 0;
  margin: 28px 0 36px;
  font-size: 15px; line-height: 1.5;
  border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden;
  background: var(--surface);
}
.article-body thead th,
.article-body table th {
  background: var(--accent); color: #fff;
  font-family: var(--font-head); font-weight: 700;
  font-size: 12px; letter-spacing: .5px; text-transform: uppercase;
  text-align: left; padding: 14px 18px; vertical-align: middle;
  border: none;
}
.article-body table td {
  padding: 14px 18px; vertical-align: top;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.article-body tbody tr:nth-child(even) td { background: var(--surface-2); }
.article-body tbody tr:hover td { background: rgba(40,74,58,.06); }
.article-body table td:first-child,
.article-body tbody th:first-child {
  font-weight: 700; color: var(--ink);
}
/* obige Spezial-Regel für .comparison-table auf denselben Stil bringen */
.article-body .comparison-table th { background: var(--accent); }
.article-body .comparison-table td { background: transparent; }
.article-body .comparison-table tbody tr:nth-child(even) td { background: var(--surface-2); }

/* Mobil: breite Tabellen horizontal scrollbar statt gequetscht */
@media (max-width: 680px) {
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .article-body table td, .article-body table th { white-space: normal; min-width: 120px; }
}
