/* STARK · Tool-Listicle shared styles - affiliate-optimiert */

.post-hero { padding: 80px 0 32px; position: relative; overflow: hidden; }
.post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.post-meta .date,
.post-meta .reading {
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 12px;
  color: var(--fg-dim);
}
.post-meta .author {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--fg-2);
}
.post-meta .author .av {
  width: 28px; height: 28px;
  background: var(--bg-3);
  border-radius: 9999px;
}
.post-hero h1 {
  font-size: clamp(30px, 6vw, 72px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  font-weight: 500;
  max-width: 1100px;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.post-hero h1 .ac { color: var(--accent); }
.post-hero .lead { font-size: 20px; color: var(--fg-dim); max-width: 760px; line-height: 1.5; }

/* Layout - sidebar + content */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  padding: 48px 0 96px;
  align-items: start;
}
/* erlaubt Grid-Kindern, schmaler als ihr Inhalt zu werden -> compare-table scrollt intern statt das Layout zu sprengen */
.article-layout > * { min-width: 0; }
.toc-side {
  position: sticky;
  top: 96px;
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.toc-side h4 {
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: var(--fg-mute);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.toc-side ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.toc-side a {
  font-size: 13px;
  color: var(--fg-dim);
  display: block;
  padding: 6px 0;
  transition: color 0.2s;
}
.toc-side a:hover { color: var(--fg); }
.toc-side a.active { color: var(--accent); }
.toc-side .cta-mini {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}
.toc-side .cta-mini::before { content: none; }
.toc-side .cta-mini .btn {
  width: 100%;
  justify-content: center;
  border-radius: 9999px;
  padding: 13px 22px;
  font-size: 15px;
  background: var(--fg) !important;
  color: #000 !important;
  border: 0 !important;
  font-weight: 500;
  letter-spacing: 0;
  transition: background 0.2s, transform 0.15s;
}
.toc-side .cta-mini .btn:hover { background: #e5e5e5 !important; transform: translateY(-1px); }

/* Article body */
.article { max-width: 880px; }
.article > p {
  font-size: 17px;
  color: var(--fg-2);
  line-height: 1.65;
  margin-bottom: 20px;
}
.article > p strong { color: var(--fg); font-weight: 500; }
.article > p a { color: var(--accent); border-bottom: 1px solid rgba(var(--accent-rgb),.3); }

.article h2 {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 56px 0 20px;
  scroll-margin-top: 96px;
}
.article h2 .ac { color: var(--accent); }
.article h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 32px 0 12px;
}

.article ul, .article ol {
  padding-left: 22px;
  margin-bottom: 20px;
  color: var(--fg-2);
}
.article li { margin-bottom: 8px; line-height: 1.6; }

/* TL;DR card */
.tldr {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 48px;
}
.tldr .label { margin-bottom: 12px; }
.tldr h3 { font-size: 18px; font-weight: 500; margin: 0 0 16px; }
.tldr ul { padding-left: 18px; margin: 0; }
.tldr li { font-size: 15px; color: var(--fg-2); margin-bottom: 8px; }
.tldr li b { color: var(--fg); font-weight: 500; }

/* Tool card with strong affiliate CTA */
.tool-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 16px;
  position: relative;
  scroll-margin-top: 96px;
  transition: border-color 0.2s;
}
.tool-card:hover { border-color: var(--line-2); }
.tool-card.top { border-color: var(--line-2); background: var(--bg-2); }
.tool-card .top-badge {
  position: absolute;
  top: -10px;
  left: 32px;
  background: var(--fg);
  color: #000;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 9999px;
}

.tool-head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.tool-head .logo-box {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  overflow: hidden;
  flex-shrink: 0;
}
/* Echte Tool-Logos: heller Chip, Logo eingepasst */
.tool-head .logo-box:has(img) { background: #fff; border-color: rgba(255,255,255,.15); }
.tool-head .logo-box img { width: 100%; height: 100%; object-fit: contain; padding: 9px; display: block; }
.tool-head .info .rank {
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  font-size: 12px;
  color: var(--fg-dim);
  margin-bottom: 4px;
}
.tool-head .info h3 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
.tool-head .info .price {
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  color: var(--fg-2);
}
.tool-head .info .price em { color: var(--fg); font-style: normal; font-weight: 500; }

.tool-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.tool-cta .score {
  font-size: 22px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tool-cta .score-l { font-family: "Roboto", ui-sans-serif, system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; font-size: 10px; color: var(--fg-dim); }

.tool-body p {
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.6;
  margin-bottom: 16px;
}
.tool-body p strong { color: var(--fg); font-weight: 500; }

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}
.pros, .cons {
  background: var(--bg);
  border-radius: 8px;
  padding: 16px 20px;
}
.pros { border: 1px solid var(--line-2); }
.cons { border: 1px solid var(--line); }
.pros h4, .cons h4 {
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.pros h4 { color: var(--fg); }
.cons h4 { color: var(--fg-mute); }
.pros ul, .cons ul { list-style: none; padding: 0; margin: 0; }
.pros li, .cons li {
  font-size: 13px;
  color: var(--fg-2);
  padding-left: 18px;
  position: relative;
  margin-bottom: 6px;
  line-height: 1.5;
}
.pros li::before { content: "+"; position: absolute; left: 0; color: var(--fg); }
.cons li::before { content: "−"; position: absolute; left: 0; color: var(--fg-mute); }

/* Affiliate CTA row at bottom of each tool */
.aff-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  flex-wrap: wrap;
}
.aff-row .specs {
  display: flex;
  gap: 24px;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  color: var(--fg-dim);
  flex-wrap: wrap;
}
.aff-row .specs b { color: var(--fg); font-family: "Roboto", sans-serif; font-weight: 500; font-size: 13px; display: block; }
.aff-row a.btn { white-space: nowrap; }

/* Inline CTA between sections */
.inline-cta {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 28px;
  margin: 40px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}
.inline-cta h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 4px; }
.inline-cta p { font-size: 14px; color: var(--fg-dim); margin: 0; }

/* Comparison table */
.compare-table {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: auto;
  margin: 32px 0;
}
.compare-table table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 720px; }
.compare-table th, .compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare-table th {
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  background: var(--bg-1);
}
.compare-table td { color: var(--fg-2); }
.compare-table td:first-child { color: var(--fg); font-weight: 500; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--fg); }
.compare-table .no { color: var(--fg-mute); }
.compare-table .price { font-family: "Roboto", ui-sans-serif, system-ui, sans-serif; color: var(--fg); }
.compare-table .aff {
  background: var(--fg);
  color: #000;
  padding: 4px 10px;
  border-radius: 9999px;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 10px;
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
}
.compare-table .aff:hover { background: var(--fg-2); }

/* Recommendation card */
.rec-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 12px;
}
.rec-card .meta { font-family: "Roboto", ui-sans-serif, system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; color: var(--fg-dim); font-size: 12px; margin-bottom: 8px; }
.rec-card h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; margin-bottom: 12px; }
.rec-card p { font-size: 15px; color: var(--fg-2); line-height: 1.6; margin-bottom: 20px; }
.rec-card .picks { display: flex; gap: 10px; flex-wrap: wrap; }

/* Author + related */
.author-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  margin: 48px 0;
}
.author-card .av {
  width: 64px; height: 64px;
  background: var(--bg-3);
  border-radius: 14px;
}
.author-card .name { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.author-card .role { font-family: "Roboto", ui-sans-serif, system-ui, sans-serif; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; font-size: 12px; color: var(--fg-dim); margin-bottom: 12px; }
.author-card p { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin: 0; }

.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
  color: inherit;
  text-decoration: none;
}
.related-card:hover { border-color: var(--line-2); transform: translateY(-2px); }
.related-card .tag-ghost { margin-bottom: 16px; }
.related-card h4 { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; margin-bottom: 8px; }
.related-card p { font-size: 13px; color: var(--fg-dim); line-height: 1.5; }

/* FAQ - zero-JS accordion via <details> */
.faq { margin: 40px 0; display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.faq details {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  transition: background 0.2s;
}
.faq details:last-child { border-bottom: 0; }
.faq details:hover { background: rgba(255,255,255,0.015); }
.faq details[open] {
  background: var(--bg-1);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 24px 22px 8px;
  font-size: 17px;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: -0.01em;
  display: grid;
  grid-template-columns: 1fr 32px;
  align-items: center;
  gap: 18px;
  transition: padding 0.2s;
}
.faq summary:hover { padding-left: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--fg-dim);
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease, border-color 0.2s, background-color 0.2s, color 0.2s;
  justify-self: end;
}
.faq summary:hover::after { border-color: var(--fg-2); color: var(--fg); }
.faq details[open] summary::after {
  transform: rotate(45deg);
  border-color: var(--accent);
  background-color: rgba(255,255,255,0.06);
  color: var(--accent);
}
.faq details[open] summary { padding-left: 16px; color: var(--accent); }
.faq .faq-a {
  padding: 0 24px 26px 16px;
  font-size: 15.5px;
  color: var(--fg-2);
  line-height: 1.7;
  max-width: 760px;
}
.faq .faq-a p { margin-bottom: 12px; }
.faq .faq-a p:last-child { margin-bottom: 0; }
.faq .faq-a a { color: var(--accent); border-bottom: 1px solid rgba(var(--accent-rgb),.3); }
.faq .faq-a strong, .faq .faq-a b { color: var(--fg); font-weight: 500; }

/* Code blocks (How-To / Divi snippets) */
.article pre {
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 18px 20px;
  overflow-x: auto;
  margin: 20px 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-2);
}
.article pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.article code, .faq-a code, .def-box code {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88em;
  color: var(--accent);
}
.code-label {
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif;
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-mute);
  margin: 24px 0 -8px;
}
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; }
.step-list > li {
  position: relative;
  padding-left: 48px;
  margin-bottom: 20px;
  min-height: 32px;
}
.step-list > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 32px; height: 32px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--fg);
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif; font-size: 13px;
}

/* Glossar entry (kurze Wissens-Begriffe) */
.glossary-meta {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Roboto", ui-sans-serif, system-ui, sans-serif; font-size: 12px;
  color: var(--fg-dim); margin-bottom: 20px;
}
.glossary-meta .chip {
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 9999px; padding: 4px 12px; color: var(--fg-2);
}
.def-box {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--fg);
  border-radius: 14px;
  padding: 24px 28px;
  margin-bottom: 40px;
}
.def-box .label { margin-bottom: 10px; }
.def-box p { font-size: 17px; color: var(--fg); line-height: 1.6; margin: 0; }
.def-box p strong { color: var(--fg); font-weight: 500; }

/* Inline figure / image */
.article figure { margin: 32px 0; }
.article figure img { width: 100%; border-radius: 14px; border: 1px solid var(--line); display: block; }
.article figure figcaption { font-size: 12px; color: var(--fg-mute); margin-top: 10px; text-align: center; font-family: "Roboto", ui-sans-serif, system-ui, sans-serif; }

/* Key-takeaways / note callout */
.callout {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 28px 0;
  font-size: 15px;
  color: var(--fg-2);
  line-height: 1.6;
}
.callout b { color: var(--fg); font-weight: 500; }

/* Disclaimer */
.affiliate-disclaimer {
  background: var(--bg-1);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 32px 0;
  font-size: 13px;
  color: var(--fg-dim);
  line-height: 1.5;
}
.affiliate-disclaimer b { color: var(--fg); font-weight: 500; }

@media (max-width: 880px) {
  .article-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc-side { position: static; border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 20px; }
  .tool-head { grid-template-columns: 52px 1fr; gap: 14px; }
  .tool-head .tool-cta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .tool-grid, .related { grid-template-columns: 1fr; }
  .aff-row { flex-direction: column; align-items: stretch; }
  .aff-row .specs { gap: 16px; }
  .inline-cta { grid-template-columns: 1fr; }
  .author-card { grid-template-columns: 1fr; }
  .tool-card { padding: 24px 20px; }

  /* TOC-CTA auf Mobile als schmale, gut tippbare Sticky-Leiste am unteren Rand */
  .toc-side .cta-mini {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    margin: 0;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: var(--bg-2);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.28);
  }
  .toc-side .cta-mini::before { display: none; }
  .toc-side .cta-mini .btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 15px;
  }
  /* WhatsApp-Bubble über die Sticky-Leiste heben; das ProvenExpert-Seal (unten links,
     z-index 9999) würde die volle CTA-Leiste überlappen -> auf Mobile in Artikeln
     ausgeblendet (auf Desktop und allen anderen Seiten bleibt es sichtbar).
     Artikelende per padding-bottom freihalten. */
  .wa-bubble { bottom: 80px !important; }
  .pe-pro-seal { display: none !important; }
  .article-layout { padding-bottom: 84px; }
}
