/* ============================================================
   Vergleichs-/Produkttest-Seite — baut auf advertorial.css auf.
   Nur Komponenten, die es dort nicht gibt.
   ============================================================ */

/* ---------- Inhaltsverzeichnis ---------- */

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 16.5px;
}

.toc li::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.toc a { color: var(--ink) !important; text-decoration: none; font-weight: 600; }

.toc a:hover { color: var(--accent) !important; text-decoration: underline; }

/* ---------- Mythen ---------- */

.myth {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  margin: 22px 0;
}

.myth-claim, .myth-truth {
  display: flex;
  gap: 13px;
  align-items: baseline;
  padding: 18px 24px;
}

.myth-claim { background: var(--paper-warm); }

.myth-truth { border-top: 1px solid var(--line); }

.myth p { margin: 0; font-size: 16.5px; }

.myth-claim p { font-weight: 700; }

.myth-truth p { color: var(--ink-soft); }

.myth-tag, .truth-tag {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 2px 8px;
  position: relative;
  top: -1px;
}

.myth-tag { background: #fdebea; color: var(--accent); }

.truth-tag { background: var(--green-soft); color: var(--green); }

/* ---------- Wissenschaft / Referenz-Sups ---------- */

a.ref {
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  vertical-align: super;
  line-height: 1;
}

/* ---------- Ranking-Karten ---------- */

.rank-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  margin: 30px 0;
  overflow: hidden;
}

.rank-card.winner {
  border: 2px solid var(--navy);
  box-shadow: 0 12px 36px rgba(30, 58, 95, 0.10);
}

.rank-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 15px 26px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}

.rank-card.winner .rank-head { background: var(--navy); border-bottom-color: var(--navy); }

.rank-pos {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 99px;
  padding: 4px 12px;
  background: #ffffff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.rank-card.winner .rank-pos { background: var(--accent); border-color: var(--accent); color: #ffffff; }

.rank-head h3 { margin: 0; font-family: var(--font-head); font-size: 20.5px; }

.rank-card.winner .rank-head h3 { color: #ffffff; }

.rank-body { padding: 24px 26px 26px 26px; }

.rank-intro {
  display: grid;
  grid-template-columns: 1fr 210px;
  gap: 26px;
  align-items: start;
}

.rank-intro p { font-size: 17px; }

.rank-intro p:last-child { margin-bottom: 0; }

.rank-visual { position: relative; }

.rank-visual img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}

.rank-price {
  margin-top: 18px;
  font-size: 15.5px;
  background: var(--paper-warm);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
}

.rank-card .proscons { margin-bottom: 0; }

.rank-cta { margin-top: 4px; }

.rank-cta .cta-button { width: 100%; }

/* Sekundär-CTA für Plätze 2–5 */

a.cta-button.cta-outline {
  background: #ffffff;
  color: var(--navy);
  border: 2px solid var(--navy);
  box-shadow: none;
  padding: 13px 24px;
  font-size: 16.5px;
}

a.cta-button.cta-outline:hover {
  background: var(--paper-warm);
  filter: none;
  transform: none;
  box-shadow: none;
}

body.hide-rival-ctas .rank-card:not(.winner) .rank-cta { display: none; }

/* ---------- Methodik-Accordions ---------- */

.method details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #ffffff;
  margin-bottom: 10px;
  overflow: hidden;
}

.method summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 20px;
  font-weight: 700;
  font-size: 16px;
}

.method summary::-webkit-details-marker { display: none; }

.method summary::after {
  content: "+";
  font-size: 21px;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.method details[open] summary::after { transform: rotate(45deg); }

.method .method-body { padding: 0 20px 18px 20px; font-size: 15.5px; color: var(--ink-soft); }

.method .method-body p { margin: 0 0 10px 0; }

.method .method-body ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 7px; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .rank-intro { grid-template-columns: 1fr; }
  .rank-visual { max-width: 240px; margin: 0 auto; }
  .rank-head { padding: 14px 18px; }
  .rank-head h3 { font-size: 18.5px; }
  .rank-body { padding: 20px 18px 22px 18px; }
  .rank-price { font-size: 14.5px; padding: 9px 14px; }
  .myth-claim, .myth-truth { padding: 15px 16px; flex-direction: column; gap: 8px; }
  .toc li { font-size: 15.5px; }
  a.cta-button.cta-outline { padding: 12px 18px; font-size: 15.5px; }
}
