/* ============================================================================
   SD-Link — Kaufberater-/Kategorieseite je Funkgerät
   ----------------------------------------------------------------------------
   Nach specs/design_handoff_produktseiten (guide.css des Mocks). Laedt nur
   auf Seiten mit [sd_kaufberater], nach sdlink-tokens + sdlink-shop.
   ============================================================================ */

/* WP-Seitenrahmen zuruecknehmen: Guide steuert seine Breite selbst */
body.sd-guide-page { scroll-behavior: smooth; }
body.sd-guide-page .entry-header,
body.sd-guide-page .page .entry-title { display: none; }
body.sd-guide-page .content-area { width: 100% !important; float: none !important; margin: 0 !important; }
body.sd-guide-page .entry-content { margin: 0 !important; }
body.sd-guide-page .site-main { padding-top: 0; }

.sd-guide { max-width: 1180px; margin: 0 auto; }

/* ---- Hero ---- */
.sd-guide-hero {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center;
  padding: 24px 0 8px;
}
.sd-guide-hero h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(32px, 3.8vw, 46px); line-height: 1.08; letter-spacing: -.015em;
  color: var(--fg-brand); margin: 10px 0 14px; text-wrap: balance;
}
.sd-guide-hero .lead { font-size: 18px; line-height: 1.6; color: var(--fg-2); margin: 0; max-width: 56ch; }
.sd-guide-hero .lead strong { color: var(--fg-1); }
.sd-guide-hero-media {
  background: var(--bg-sunken); border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--shadow-1); aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
}
.sd-guide-hero-media img { max-width: 100%; max-height: 100%; object-fit: contain; margin: 0; }

/* ---- "Wichtig"-Hinweis ---- */
.sd-guide-important {
  margin: 22px 0 8px; padding: 18px 22px;
  background: var(--sd-navy-050); border-left: 4px solid var(--sd-navy-700);
  border-radius: 10px; color: var(--fg-2); font-size: 15px; line-height: 1.65;
}
.sd-guide-important .hd {
  display: flex; align-items: center; gap: 8px; width: fit-content;
  font-weight: 700; color: var(--sd-navy-700); margin-bottom: 6px;
}
.sd-guide-important b { color: var(--fg-1); font-family: var(--font-mono); font-weight: 600; }

/* ---- Sticky Quick-Nav ---- */
.sd-guide-nav {
  position: sticky; top: 84px; z-index: 20;
  display: flex; gap: 8px; flex-wrap: wrap;
  background: rgba(247,249,251,.9);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  padding: 12px 0; margin: 18px 0 8px;
  border-bottom: 1px solid var(--sd-line-soft);
}
.sd-guide-nav a {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  border-radius: 999px; background: #fff; border: 1px solid var(--sd-line);
  font-size: 13.5px; font-weight: 600; color: var(--sd-navy-700) !important;
  text-decoration: none !important; white-space: nowrap;
  transition: all var(--dur-fast) var(--ease-out);
}
.sd-guide-nav a:hover { border-color: var(--sd-navy-400); box-shadow: var(--shadow-1); }

/* ---- Varianten-Sektionen ---- */
.sd-vsection { padding: 44px 0; border-top: 1px solid var(--sd-line-soft); scroll-margin-top: 160px; }
.sd-vsection:first-of-type { border-top: 0; }
.sd-vsection-head { max-width: 760px; margin-bottom: 26px; }
.sd-vsection .vkicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sd-amber-600); margin-bottom: 10px;
}
.sd-vsection h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.01em;
  color: var(--fg-brand); margin: 0 0 10px; line-height: 1.15;
}
.sd-vsection .vbody { font-size: 16.5px; line-height: 1.65; color: var(--fg-2); margin: 0 0 10px; max-width: 70ch; text-wrap: pretty; }
.sd-vsection .vbody strong { color: var(--fg-1); }

.sd-vrow { display: grid; grid-template-columns: .9fr 1.1fr; gap: 36px; align-items: center; }
.sd-vsection.is-reverse .sd-vrow { grid-template-columns: 1.1fr .9fr; }
.sd-vsection.is-reverse .sd-vrow .sd-vmedia { order: 2; }

/* Produktbild */
.sd-vmedia {
  position: relative; background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); aspect-ratio: 1 / 1; overflow: hidden;
  display: flex; align-items: center; justify-content: center; padding: 32px;
  -webkit-mask: linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0);
}
.sd-vmedia a { display: contents; }
.sd-vmedia img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; margin: 0; }

/* Eckband (Banner) im Guide-Kontext */
.sd-badge-variant.sd-badge--banner {
  position: absolute; top: 20px; right: -46px; left: auto; z-index: 2;
  width: 168px; height: 27px;
  display: inline-flex; align-items: center; justify-content: center;
  transform: rotate(45deg);
  background: var(--sd-amber-600); color: #fff;
  font-family: var(--font-body); font-size: 10.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  box-shadow: var(--shadow-1);
}
.sd-badge-variant.sd-badge--banner.is-angled { background: var(--sd-amber-600); color: #fff; }

/* Kaufblock */
.sd-vbuy { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.sd-vbuy .pname { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 0; }
.sd-vbuy .pname a { color: var(--fg-brand) !important; text-decoration: none !important; }
.sd-vbuy .pname a:hover { color: var(--sd-amber-600) !important; }
.sd-vbuy .pprice,
.sd-vcard .pprice {
  font-family: var(--font-mono); font-weight: 600; font-size: 26px; color: var(--fg-1); margin: 4px 0;
  font-variant-numeric: tabular-nums;
}
.sd-vbuy .pprice .woocommerce-Price-amount,
.sd-vcard .pprice .woocommerce-Price-amount { font-family: inherit; }
.sd-vbuy .plegal { font-size: 12.5px; color: var(--fg-3); line-height: 1.5; }
.sd-vbuy .pdesc { font-size: 14.5px; color: var(--fg-2); line-height: 1.6; margin: 8px 0 14px; max-width: 46ch; }

/* Karten-Paar (Universal E / DS) */
.sd-vpair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sd-vcard {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; overflow: hidden;
}
.sd-vcard .vcimg {
  position: relative; aspect-ratio: 4 / 3; background: #fff; padding: 22px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  -webkit-mask: linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0);
  border-bottom: 1px solid var(--sd-line-soft);
}
.sd-vcard .vcimg a { display: contents; }
.sd-vcard .vcimg img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; margin: 0; }
.sd-vcard .vcbody { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.sd-vcard .vcbody .pname { font-size: 18px; margin: 0; font-family: var(--font-display); font-weight: 700; }
.sd-vcard .vcbody .pname a { color: var(--fg-brand) !important; text-decoration: none !important; }
.sd-vcard .vcbody .pname a:hover { color: var(--sd-amber-600) !important; }
.sd-vcard .vcbody .pprice { font-size: 21px; }
.sd-vcard .vcbody .btn { margin-top: 8px; width: 100%; }

/* Feature-Bullets */
.sd-vfeatures { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; max-width: 64ch; }
.sd-vfeatures li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.sd-vfeatures li::before {
  content: ''; position: absolute; left: 4px; top: 8px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--sd-amber-600); transform: rotate(45deg);
}
.sd-vfeatures li b { color: var(--fg-1); font-weight: 600; }
.sd-vfeatures li .mono,
.sd-faq-a .mono,
.sd-guide .mono { font-family: var(--font-mono); font-size: .9em; color: var(--sd-navy-700); }

/* ---- Vergleichstabelle ---- */
.sd-compare { padding: 44px 0; border-top: 1px solid var(--sd-line-soft); }
.sd-compare h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px); color: var(--fg-brand); margin: 0 0 6px;
}
.sd-compare .sub { font-size: 15px; color: var(--fg-3); margin: 0 0 22px; }
.sd-compare-scroll { overflow-x: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.sd-compare-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 760px; margin: 0; border: 0; }
.sd-compare-table thead th {
  text-align: left; padding: 16px 18px; background: var(--sd-navy-700); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 14px; white-space: nowrap;
  border: 0;
}
.sd-compare-table thead th:first-child { background: var(--sd-navy-800); }
.sd-compare-table tbody th {
  text-align: left; padding: 14px 18px; font-weight: 600; font-size: 13px;
  color: var(--fg-2); background: var(--sd-navy-050); white-space: nowrap;
  letter-spacing: .02em; border: 0; border-top: 1px solid var(--sd-line-soft);
}
.sd-compare-table td {
  padding: 14px 18px; font-size: 14px; color: var(--fg-1);
  border: 0; border-top: 1px solid var(--sd-line-soft); vertical-align: top; line-height: 1.45;
  background: #fff;
}
.sd-compare-table tbody tr:hover td { background: #f7fafc; }
.sd-compare-table .yes { display: inline-flex; align-items: center; gap: 6px; color: var(--sd-success); font-weight: 600; }
.sd-compare-table .yes svg { flex: none; }
.sd-compare-table .no { color: var(--fg-3); }
.sd-compare-note {
  display: inline-flex; align-items: flex-start; gap: 8px;
  margin-top: 16px; font-size: 13.5px; color: #6b5310;
  background: var(--sd-warning-bg); border-radius: 8px; padding: 10px 14px;
}
.sd-compare-note svg { flex: none; margin-top: 2px; }

/* ---- FAQ-Akkordeon ---- */
.sd-guide-faq { padding: 44px 0 8px; border-top: 1px solid var(--sd-line-soft); }
.sd-guide-faq h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px); color: var(--fg-brand); margin: 0 0 22px;
}
.sd-faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.sd-faq-item { background: #fff; border: 1px solid var(--sd-line-soft); border-radius: var(--r-md); box-shadow: var(--shadow-1); overflow: hidden; }
.sd-faq-q {
  width: 100%; background: none; border: 0; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; font-family: var(--font-display); font-weight: 600;
  font-size: 17px; color: var(--fg-1); transition: color var(--dur-fast);
}
.sd-faq-q:hover { color: var(--sd-navy-700); background: none; }
.sd-faq-q .chev { flex: none; color: var(--sd-navy-500); transition: transform var(--dur-base) var(--ease-out); display: inline-flex; }
.sd-faq-item.is-open .sd-faq-q .chev { transform: rotate(180deg); }
.sd-faq-a {
  padding: 0 20px; max-height: 0; overflow: hidden;
  transition: max-height var(--dur-base) var(--ease-out), padding var(--dur-base) var(--ease-out);
}
.sd-faq-item.is-open .sd-faq-a { padding: 0 20px 20px; max-height: 640px; }
.sd-faq-a p { margin: 0 0 12px; font-size: 15px; line-height: 1.65; color: var(--fg-2); }
.sd-faq-a p:last-child { margin-bottom: 0; }
.sd-faq-a strong { color: var(--fg-1); }
.sd-faq-a ul { margin: 4px 0 12px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sd-faq-a ul li { padding-left: 18px; position: relative; font-size: 15px; color: var(--fg-2); }
.sd-faq-a ul li::before { content: '–'; position: absolute; left: 0; color: var(--sd-amber-600); font-weight: 700; }
.sd-faq-a a { color: var(--sd-navy-600); text-decoration: underline; text-underline-offset: 3px; }
.sd-faq-a a:hover { color: var(--sd-amber-600); }
.sd-faq-tip {
  background: var(--sd-navy-050); border-radius: 8px; padding: 12px 16px; margin-top: 4px;
  font-size: 14px; color: var(--fg-2); display: flex; gap: 9px; align-items: flex-start;
}
.sd-faq-tip svg { color: var(--sd-amber-600); flex: none; margin-top: 2px; }

/* ---- Abschluss-CTA ---- */
.sd-guide-close { padding: 24px 0 56px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .sd-guide-hero { grid-template-columns: 1fr; gap: 24px; }
  .sd-guide-hero-media { order: -1; aspect-ratio: 16 / 9; }
  .sd-vrow, .sd-vsection.is-reverse .sd-vrow { grid-template-columns: 1fr; gap: 22px; }
  .sd-vsection.is-reverse .sd-vrow .sd-vmedia { order: -1; }
  .sd-vmedia { aspect-ratio: 4 / 3; max-width: 440px; }
  .sd-guide-nav { top: 64px; }
  .sd-vsection { scroll-margin-top: 140px; }
}
@media (max-width: 560px) {
  .sd-vpair { grid-template-columns: 1fr; }
}
