/**
 * PixelAdvisor Produktseite 2.0
 * Nutzt Design-Tokens (tokens.css) + Basis-Komponenten (components.css).
 * Nur produkt-spezifisches Layout und Ergänzungen.
 */

/* Card Design System (Hero) */
:root {
  --card-radius: 24px;
  --card-border: 1px solid #f1f5f9;
  --card-shadow: 0 28px 70px rgba(15, 23, 42, 0.06);
}

body { background: #ffffff; }

/* Page-Hintergrund wenn Produktseite – Clean White */
.main-content:has(.pa-page) { background: #ffffff; }

.pdp-v2.pa-page { padding-bottom: var(--s-8); }
.pa-container { max-width: var(--container); }

/* ─── HERO: 2 Spalten (pa-layout), Gallery links, Sidebar rechts ─── */
.pdp-v2__hero.pa-layout {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--s-7);
    margin-bottom: var(--s-8);
    align-items: start;
}

.pdp-v2__hero-right.pa-sticky { min-width: 0; }

/* Gallery Card: Bild max 420px, Thumbnails max 6 */
.pdp-v2__gallery.pa-card {
    background: var(--surface);
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.pdp-v2__gallery-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s-5);
    cursor: pointer;
    min-height: 200px;
    background: var(--surface-2);
}

.pdp-v2__gallery-main img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.pdp-v2__gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2);
    padding: var(--s-3) var(--s-4);
    border-top: 1px solid var(--border);
}

.pdp-v2__thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--r-xs);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: var(--surface);
    flex-shrink: 0;
}

.pdp-v2__thumb.active { border-color: var(--brand); }
.pdp-v2__thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Info + Typo */
.pdp-v2__info { min-width: 0; }
.pdp-v2__breadcrumb a { color: var(--brand); }
.pdp-v2__title { font-size: var(--h1); font-weight: 800; color: var(--text); line-height: 1.15; margin: 0 0 var(--s-3); letter-spacing: -0.02em; }
.pdp-v2__summary { font-size: var(--body); line-height: var(--lh); color: var(--text-2); margin-bottom: var(--s-5); }
.pdp-v2__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pdp-v2__insights { list-style: none; margin: 0 0 var(--s-5) 0; padding: 0; font-size: var(--body); color: var(--text-2); line-height: var(--lh); }
.pdp-v2__insights li { margin-bottom: var(--s-2); }
.pdp-v2__insights strong { color: var(--text); }

/* Score Hero Card: Bubble größer im Hero */
.pdp-v2__card--score-hero .pa-score__bubble { width: 88px; height: 88px; font-size: 36px; }
.pdp-v2__score-bar-wrap { flex: 1; min-width: 140px; }
.pdp-v2__score-label { font-size: var(--small); }

/* Marktposition: Barometer-Fill Breiten (Token-Farben) */
.pdp-v2__market-barometer-fill--unter_durchschnitt { width: 33%; background: var(--good); }
.pdp-v2__market-barometer-fill--fair { width: 66%; background: var(--mid); }
.pdp-v2__market-barometer-fill--teuer { width: 100%; background: var(--bad); }
.pdp-v2__market-barometer--unter_durchschnitt { color: var(--good); }
.pdp-v2__market-barometer--fair { color: var(--mid); }
.pdp-v2__market-barometer--teuer { color: var(--bad); }

/* Alternativen: Cards mit Bild max 110px (inline im Template), Grid bereits pa-grid--3 */
.pdp-v2__alt-item.pa-card { transition: box-shadow 0.2s, transform 0.2s; }
.pdp-v2__alt-item.pa-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); color: inherit; }
.pdp-v2__alt-item .pa-btn { pointer-events: none; }

/* Body: Main + Sidebar (pa-layout), Content max-width */
.pdp-v2__body.pa-layout { gap: var(--s-8); align-items: start; }
.pdp-v2__main { min-width: 0; }

/* Vergleichstabelle */
.pdp-v2__compare-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--body); }
.pdp-v2__compare-table th,
.pdp-v2__compare-table td { padding: var(--s-4); text-align: left; border-bottom: 1px solid var(--border); }
.pdp-v2__compare-table th { background: var(--text); color: var(--surface); font-weight: 600; }
.pdp-v2__compare-table th:first-child { border-radius: var(--r-sm) 0 0 0; }
.pdp-v2__compare-table th:last-child { border-radius: 0 var(--r-sm) 0 0; }
.pdp-v2__compare-table tbody tr:hover { background: var(--surface-2); }
.pdp-v2__compare-table tr.pdp-v2__compare-current { background: var(--brand-soft); }
.pdp-v2__compare-table a { color: var(--brand); }
.pdp-v2__compare-table a:hover { text-decoration: underline; }

/* FAQ Accordion */
.pdp-v2__faq-list { border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; background: var(--surface); }
.pdp-v2__faq-item { border-bottom: 1px solid var(--border); }
.pdp-v2__faq-item:last-child { border-bottom: none; }
.pdp-v2__faq-q { padding: var(--s-4) var(--s-5); font-weight: 600; color: var(--text); cursor: pointer; list-style: none; }
.pdp-v2__faq-q::-webkit-details-marker { display: none; }
.pdp-v2__faq-q::before { content: '+'; margin-right: var(--s-2); color: var(--brand); }
.pdp-v2__faq-item[open] .pdp-v2__faq-q::before { content: '−'; }
.pdp-v2__faq-a { padding: 0 var(--s-5) var(--s-4) 2.5rem; font-size: var(--body); line-height: var(--lh); color: var(--text-2); }

/* Sidebar: Ähnliche Produkte */
.pdp-v2__sidebar .pa-card { margin-bottom: 0; }
.pdp-v2__similar-title { font-size: var(--small); font-weight: 700; color: var(--text); margin-bottom: var(--s-3); text-transform: uppercase; letter-spacing: 0.05em; }
.pdp-v2__similar-list { display: flex; flex-direction: column; gap: var(--s-2); }
.pdp-v2__similar-item { display: flex; gap: var(--s-3); align-items: center; text-decoration: none; color: inherit; padding: var(--s-2) var(--s-3); border-radius: var(--r-xs); background: var(--surface-2); transition: background 0.2s; }
.pdp-v2__similar-item:hover { background: var(--border); color: inherit; }
.pdp-v2__similar-img { width: 52px; height: 52px; border-radius: var(--r-xs); object-fit: cover; background: var(--surface); }
.pdp-v2__similar-name { font-size: var(--small); font-weight: 600; color: var(--text); line-height: 1.3; }
.pdp-v2__similar-score { font-size: var(--small); color: var(--brand); font-weight: 600; }

/* Similar Section (unterhalb Body) */
.pdp-v2__similar-section { margin-top: var(--s-8); padding-top: var(--s-6); border-top: 1px solid var(--border); }
.pdp-v2__similar-section-title { font-size: var(--h2); font-weight: 700; color: var(--text); margin-bottom: var(--s-5); }
.pdp-v2__similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s-5); }
.pdp-v2__similar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm); overflow: hidden; text-decoration: none; color: inherit; display: block; transition: box-shadow 0.2s, transform 0.2s; }
.pdp-v2__similar-card:hover { box-shadow: var(--shadow-md); color: inherit; transform: translateY(-2px); }
.pdp-v2__similar-card__img { aspect-ratio: 1; background: var(--surface-2); display: flex; align-items: center; justify-content: center; }
.pdp-v2__similar-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pdp-v2__similar-card__body { padding: var(--s-3); }
.pdp-v2__similar-card__name { font-size: var(--small); font-weight: 700; margin-bottom: var(--s-1); line-height: 1.3; color: var(--text); }
.pdp-v2__similar-card__score { font-size: var(--small); color: var(--brand); font-weight: 600; }

/* Article body (Technische Einordnung) */
.article-body h2 { font-size: var(--h2); margin-top: var(--s-6); margin-bottom: var(--s-3); color: var(--text); padding-bottom: var(--s-2); border-bottom: 1px solid var(--border); }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: var(--h3); margin-top: var(--s-5); margin-bottom: var(--s-2); color: var(--text); }
.article-body p { margin-bottom: var(--s-4); }
.article-body ul, .article-body ol { margin-bottom: var(--s-4); padding-left: 1.5em; }
.article-body li { margin-bottom: var(--s-2); }

/* Lightbox */
.pdp-v2__lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center; padding: var(--s-5); }
.pdp-v2__lightbox.open { display: flex; }
.pdp-v2__lightbox-close { position: absolute; top: var(--s-5); right: var(--s-6); color: var(--surface); font-size: 2rem; cursor: pointer; line-height: 1; }
.pdp-v2__lightbox-prev, .pdp-v2__lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: var(--surface); font-size: 3rem; cursor: pointer; padding: var(--s-4); }
.pdp-v2__lightbox-prev { left: var(--s-2); }
.pdp-v2__lightbox-next { right: var(--s-2); }
.pdp-v2__lightbox img { max-width: 100%; max-height: 90vh; object-fit: contain; }

/* Responsive */
@media (max-width: 1024px) {
    .pdp-v2__hero.pa-layout { grid-template-columns: 1fr; }
    .pdp-v2__hero-right.pa-sticky { flex-direction: row; flex-wrap: wrap; gap: var(--s-5); }
    .pdp-v2__hero-right .pdp-v2__aside { display: flex; flex-wrap: wrap; gap: var(--s-4); flex: 1 1 auto; }
    .pdp-v2__hero-right .pdp-v2__aside .pa-card { flex: 1; min-width: 260px; }
    .pdp-v2__body.pa-layout { grid-template-columns: 1fr; }
    .pdp-v2__sidebar.pa-sticky { position: static; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s-6); }
    .pa-grid--2.pdp-v2__market-grid { grid-template-columns: 1fr; }
    .pa-grid--2.pdp-v2__alternatives-grid { grid-template-columns: 1fr; }
    .pa-grid--3.pdp-v2__alt-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .pa-container { padding: 0 var(--s-4); }
    .pdp-v2__hero.pa-layout { gap: var(--s-5); margin-bottom: var(--s-6); }
    .pdp-v2__gallery-main img { max-height: 280px; }
    .pdp-v2__title { font-size: var(--h2); }
    .pa-section { margin-top: var(--s-8); }
    .pa-card__hd, .pa-card__bd { padding: var(--s-5); }
    .pa-grid--3.pdp-v2__alt-list { grid-template-columns: 1fr; }
    .pdp-v2__perf-row { grid-template-columns: 1fr 1fr 48px; gap: var(--s-3); }
}

@media (max-width: 480px) {
    .pa-container { padding: 0 var(--s-4); }
    .pdp-v2__hero-right .pdp-v2__aside .pa-card { min-width: 100%; }
}

/* PREMIUM BASELINE (.pdp-premium) – stabil, iterierbar */

/* ─── Motion Tokens (nur im Kontext .pdp-premium) ─── */
.pdp-premium {
    --m-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --m-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --m-dur-short: 140ms;
    --m-dur-medium: 220ms;
    --m-dur-reveal: 240ms;
    --m-dur-score: 520ms;
    --m-distance: 8px;
    --m-distance-sm: 4px;
}

.main-content:has(.pdp-premium) { background: #ffffff; }

/* Einheitlicher Container für Hero + alle Sektionen (gleiche Breite, keine Verschiebung) */
.pa-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.productHero + .pa-container { margin-top: 32px; }
.pdp-premium__container {
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: none;
}

/* Vertical rhythm: Hero-Grid (Bild + Score) */
.pdp-premium__hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
    align-items: stretch;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Hero: eine Section, ein Container, kein grauer Wrapper */
.productHero {
  padding-top: 60px;
  padding-bottom: 40px;
  scroll-margin-top: var(--site-header-height);
}
.productHero .pa-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
/* Anker-Links: Sektionen nicht unter Header scrollen */
.pa-page section[id] {
  scroll-margin-top: var(--site-header-height);
}
.productHero__header {
  margin-bottom: clamp(18px, 2vw, 22px);
  background: none;
  padding: 0;
  border: none;
}
.productHero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: stretch;
}
.productHero__category {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 10px;
  margin-top: 0;
}
.productHero__category a {
  color: #94a3b8;
  text-decoration: none;
}
.productHero__category a:hover {
  color: #0f172a;
}
.productHero__title {
  font-size: 38px;
  line-height: 1.12;
  letter-spacing: -0.8px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px 0;
  max-width: 850px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.productHero__meta {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

/* Bild-Card Premium */
.productImageCard {
  background: #ffffff;
  border-radius: var(--card-radius);
  padding: 36px;
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.productImageCard:hover {
  transform: translateY(-1px);
  box-shadow: 0 34px 85px rgba(15, 23, 42, 0.075);
}
.productImageCard__main {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.productImageCard__main img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.productImageCard__thumbs {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content: flex-start;
  padding-top: 0;
  border-top: none;
  min-height: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.productImageCard__thumbs .pdp-premium__thumb {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  overflow: hidden;
  border: none;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  background: transparent;
}
.productImageCard__thumbs .pdp-premium__thumb img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  padding: 4px;
  background: #fff;
  object-fit: cover;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  display: block;
}
.productImageCard__thumbs .pdp-premium__thumb:hover img {
  border-color: #cbd5e1;
  box-shadow: 0 10px 18px rgba(0,0,0,.06);
  transform: translateY(-1px);
}
.productImageCard__thumbs .pdp-premium__thumb.active img {
  border-color: #94a3b8;
  box-shadow: 0 12px 22px rgba(15,23,42,.08);
}

/* Hero: rechte Spalte + Score-Card gleiche Höhe wie Bild-Card */
.pdp-premium__hero-right {
  min-height: 0;
  display: flex;
}
.productHero__grid .paScoreBox {
  height: 100%;
  width: 100%;
  max-width: none;
  border-radius: var(--card-radius);
  border: var(--card-border);
  box-shadow: var(--card-shadow);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.productHero__grid .paScoreBox:hover {
  transform: translateY(-1px);
  box-shadow: 0 34px 85px rgba(15, 23, 42, 0.075);
}
.productHero__grid .paScoreBox__cta {
  margin-top: auto;
}

.pa-hero-header {
    margin-bottom: clamp(18px, 2vw, 22px);
}
.pa-hero-header__breadcrumb {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 clamp(8px, 1vw, 12px);
    letter-spacing: 0.02em;
}
.pa-hero-header__breadcrumb a { color: #6b7280; }
.pa-hero-header__breadcrumb a:hover { color: #1a1a1a; }
.pa-hero-header__title {
    font-size: clamp(36px, 3.6vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin: 0;
}

/* E) Weniger Karten: 2 Flächen, dezente Rahmen & Schatten */
.pa-product-hero .pa-card {
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    padding: 0;
}

/* C) Media links: subtil, Bild nicht dominant */
.pdp-premium__gallery.pa-media {
    min-width: 0;
    padding: 0;
    overflow: hidden;
}
/* Fester Viewport: überschreibt generische Gallery, wenn productImageCard */
.productImageCard .productImageCard__main.pdp-premium__gallery-main {
    height: 320px;
    min-height: 320px;
}
.productImageCard .productImageCard__main.pdp-premium__gallery-main img {
    max-height: 100%;
    max-width: 100%;
}

.pdp-premium__gallery-main.pa-media__main {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 140px;
    cursor: pointer;
    padding: 0;
}
/* Nicht anwenden auf Hero Bild-Card (hat festen Viewport) */
.productImageCard .productImageCard__main.pdp-premium__gallery-main.pa-media__main {
    min-height: 320px;
    height: 320px;
}

.pdp-premium__gallery-main.pa-media__main img {
    width: 100%;
    max-height: 300px;
    height: auto;
    object-fit: contain;
    display: block;
    max-width: 100% !important;
    position: static !important;
    margin: 0 !important;
    left: auto !important;
    right: auto !important;
    transition: opacity var(--m-dur-medium) var(--m-ease);
}
/* Hero: ein Bild, fester Viewport */
.productImageCard .productImageCard__main img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.pdp-premium__gallery-main img.is-changing { opacity: 0; }

/* Thumbnails: 44–52px, 8px Abstand, active orange + inset */
.pdp-premium__gallery-thumbs.pa-thumbs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid rgba(0,0,0,.06);
    min-height: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pdp-premium__thumb {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: #fff;
    flex-shrink: 0;
    transition: border-color var(--m-dur-short), box-shadow var(--m-dur-short);
}
.pdp-premium__thumb:hover { box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.pdp-premium__thumb.active {
    border-color: #f59e0b;
    box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.2);
}
.pdp-premium__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Score-Box: siehe pa-scorebox.css (.paScoreBox) – eine Komponente, isoliert */

.pdp-premium__kicker { font-size: 13px; color: #888; margin: 0 0 12px; }
.pdp-premium__kicker a { color: #666; }
.pdp-premium__kicker a:hover { color: #1a1a1a; }
.pdp-premium__title { font-size: 38px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #1a1a1a; margin: 0 0 24px; }

.pdp-premium__score-wrap { margin-bottom: 8px; }
.pdp-premium__score-label { font-size: 12px; color: #888; text-transform: uppercase; letter-spacing: 0.04em; display: block; margin-bottom: 4px; }
.pdp-premium__score-block { }
.pdp-premium__score-value { font-size: clamp(40px, 4.5vw, 56px); font-weight: 600; letter-spacing: -0.02em; color: #1a1a1a; }
.pdp-premium__score-of { font-size: 22px; font-weight: 400; color: #999; margin-left: 2px; }
.pdp-premium__score-bar {
    height: 4px;
    border-radius: 4px;
    background: #eee;
    overflow: hidden;
    margin-bottom: 20px;
    max-width: 120px;
}
.pdp-premium__score-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: #1a1a1a;
    min-width: 0;
    transition: width var(--m-dur-score) var(--m-ease-out);
}
.pdp-premium__score-bar-fill[data-pa-score-percent] { min-width: 0; }
body.is-ready .pdp-premium__score-bar-fill[data-pa-score-percent]:not(.is-visible) { width: 0 !important; }
body.is-ready .pdp-premium__score-bar-fill.is-visible[data-pa-score-percent] { width: var(--pa-score-pct, 0) !important; }

.pdp-premium__subtitle { font-size: 14px; color: #666; margin: 0 0 14px; }
.pdp-premium__suitability { font-size: 14px; color: #666; margin: 0 0 18px; }
.pdp-premium__summary { font-size: 17px; line-height: 1.65; color: #444; margin: 0 0 28px; }
.pdp-premium__cta {
    display: inline-block;
    padding: 14px 26px;
    background: var(--brand, #f59e0b);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: opacity var(--m-dur-short), box-shadow var(--m-dur-short);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.pdp-premium__cta:hover { opacity: 0.92; color: #fff; }
.pdp-premium__cta:focus-visible { outline: 2px solid var(--brand, #f59e0b); outline-offset: 3px; }

.pdp-premium__section-head {
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.pdp-premium__prose {
    max-width: 820px;
    font-size: 17px;
    line-height: 1.65;
    color: #444;
}
.pdp-premium__prose p { margin: 0 0 18px; }
.pdp-premium__prose p:last-child { margin-bottom: 0; }

/* ─── Page Layout: Sections als Cards, kein HR/Dividers ─── */
.pa-section { padding-top: 0; }
.pa-section + .pa-section { padding-top: 0; }
.pa-container > .pa-sections { margin-top: 0; }
.pa-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 0;
}
.pdp-premium__body { margin-top: 18px; }

/* Kurz entscheiden: Premium Quick-Modul (gleicher Container wie Hero) */
.pa-section.pa-quick {
  margin-top: 0;
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(15,23,42,.06);
  box-shadow: 0 20px 50px rgba(15,23,42,.05);
}
.pa-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.2;
}
.pa-section-sub {
  color: #64748b;
  font-size: 14px;
  margin: 0 0 18px 0;
  line-height: 1.4;
}
.pa-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pa-quick-pro,
.pa-quick-con {
  margin: 0;
  padding: 0 0 0 1.2em;
  list-style: disc;
}
.pa-quick-pro li {
  color: #065f46;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
}
.pa-quick-pro li:last-child { margin-bottom: 0; }
.pa-quick-con li {
  color: #7c2d12;
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
}
.pa-quick-con li:last-child { margin-bottom: 0; }
@media (max-width: 768px) {
  .pa-quick-grid { grid-template-columns: 1fr; }
}

.pa-section {
  background: #fff;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 18px;
  padding: 18px 18px;
  box-shadow: 0 18px 50px rgba(15,23,42,.06);
}
.pa-section__title {
  margin: 0 0 10px 0;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}
.pa-section__title.pdp-premium__section-head { margin-bottom: 10px; }
.pa-section__body {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.7;
}
.pa-section__body .pdp-premium__prose { margin: 0; }
.pa-section__body .pdp-premium__prose p { margin: 0 0 12px; }
.pa-section__body .pdp-premium__prose p:last-child { margin-bottom: 0; }
.pa-decision-strip__insights { display: flex; flex-wrap: wrap; gap: 12px 24px; min-width: 0; }
.pa-decision-strip__item { margin: 0; font-size: 14px; color: #374151; line-height: 1.5; }
.pa-decision-strip__item strong { color: #111; }

.pa-cta { display: inline-block; text-align: center; text-decoration: none; font-weight: 600; transition: background var(--m-dur-short), opacity var(--m-dur-short); border-radius: 12px; }
.pa-cta--primary {
    padding: 14px 20px;
    background: #f59e0b;
    color: #fff;
    font-size: 15px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.pa-cta--primary:hover { background: #d97706; color: #fff; }
.pa-cta--secondary {
    padding: 10px 16px;
    background: transparent;
    color: #f59e0b;
    font-size: 14px;
    border: 1px solid rgba(245,158,11,0.5);
}
.pa-cta--secondary:hover { background: rgba(245,158,11,0.08); color: #b45309; }
.pa-cta--link {
    padding: 0;
    background: none;
    color: #f59e0b;
    font-size: 15px;
    border-radius: 0;
}
.pa-cta--link:hover { text-decoration: underline; color: #d97706; }
.pa-cta:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }

.pa-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 8px 0 0 0; }
.pa-chip {
  display: inline-block;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.03);
  color: #334155;
}
.pa-chip--good {
  border-color: rgba(16,185,129,.30);
  background: rgba(16,185,129,.10);
  color: #065f46;
}
.pa-chip--bad {
  border-color: rgba(185,28,28,.25);
  background: rgba(185,28,28,.08);
  color: #991b1b;
}
.pa-lead { font-weight: 600; font-size: 18px; margin: 6px 0 10px 0; color: #0f172a; line-height: 1.3; }
.pa-section__cta-wrap { margin: 24px 0 0; }

.pa-kurzfakten {
    max-width: 560px;
    margin-bottom: 28px;
    padding: 18px 20px;
    background: #f9fafb;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 14px;
}
.pa-kurzfakten__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.pa-kurzfakten__row { margin: 0 0 10px; font-size: 14px; display: flex; justify-content: space-between; gap: 12px; }
.pa-kurzfakten__row:last-child { margin-bottom: 0; }
.pa-kurzfakten__label { color: #6b7280; }
.pa-kurzfakten__value { color: #111; font-weight: 500; }

.pa-perf__interpretation { font-size: 14px; color: #6b7280; margin: 16px 0 0; max-width: 520px; line-height: 1.55; }

.pa-procons { }
.pa-procons__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; margin-top: 20px; }
.pa-procons__head { font-size: 16px; font-weight: 600; color: #111; margin: 0 0 12px; }
.pa-procons__pro .pa-procons__head { color: #047857; }
.pa-procons__contra .pa-procons__head { color: #b91c1c; }
.pa-procons__list { margin: 0; padding-left: 1.2em; font-size: 15px; line-height: 1.6; color: #374151; }
.pa-procons__list li { margin-bottom: 6px; }

.pa-fazit__cta-zone { margin-top: 28px; padding-top: 24px; border-top: none; }
.pa-fazit__cta-zone .pa-cta--primary { display: block; width: 100%; max-width: 360px; }
.pa-fazit__disclaimer { font-size: 12px; color: #9ca3af; margin: 10px 0 0; }
.pa-fazit__hint { font-size: 14px; color: #9ca3af; margin: 0; }

.pdp-premium__einschaetzung {
    padding: 0;
    border-top: none;
}

.pdp-premium__body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
    padding-top: 0;
    border-top: none;
    margin-top: 18px;
}
.pdp-premium__main { min-width: 0; }

.pdp-premium__content { padding-bottom: 0; }
.pdp-premium__content .article-body {
    max-width: 820px;
    font-size: 17px;
    line-height: 1.65;
    color: #444;
}
.pdp-premium__content .article-body h2 { font-size: 22px; margin: 32px 0 14px; color: #1a1a1a; font-weight: 600; }
.pdp-premium__content .article-body h2:first-child { margin-top: 0; font-size: 18px; font-weight: 600; margin: 6px 0 10px 0; }
.pdp-premium__content .article-body h1 { font-size: 22px; margin: 32px 0 14px; color: #1a1a1a; font-weight: 600; }
.pdp-premium__content .article-body h1:first-child { margin-top: 0; font-size: 18px; font-weight: 600; margin: 6px 0 10px 0; }
.pdp-premium__content .article-body h3 { font-size: 18px; margin: 24px 0 10px; color: #1a1a1a; }
.pdp-premium__content .article-body p { margin-bottom: 16px; }
.pdp-premium__content .article-body ul, .pdp-premium__content .article-body ol { margin-bottom: 16px; padding-left: 1.4em; }

.pdp-premium__performance { padding-bottom: 0; }
.pdp-premium__perf-bars { display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
.pdp-premium__perf-row { display: grid; grid-template-columns: 120px 1fr 44px; gap: 14px; align-items: center; }
.pdp-premium__perf-label { font-size: 15px; color: #555; }
.pdp-premium__perf-bar { height: 8px; border-radius: 4px; background: #eee; overflow: hidden; }
.pdp-premium__perf-fill { display: block; height: 100%; border-radius: 4px; background: #1a1a1a; min-width: 0; }
.pdp-premium__perf-num { font-size: 14px; color: #666; text-align: right; }

.pdp-premium__alternatives { padding: 0; border-top: none; }
.pdp-premium__alt-list { max-width: 560px; }
.pdp-premium__alt-lead { font-size: 14px; color: #888; margin: 18px 0 6px; }
.pdp-premium__alt-lead:first-child { margin-top: 0; }
.pdp-premium__alt-row { font-size: 16px; color: #444; margin: 0 0 4px; }
.pdp-premium__alt-row a { color: #1a1a1a; text-decoration: none; }
.pdp-premium__alt-row a:hover { text-decoration: underline; }
.pdp-premium__alt-empty { color: #888; margin: 0; }

.pdp-premium__fazit { padding: 0; border-top: none; }

.pdp-premium .pa-card,
.pdp-premium [class*="card"] {
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    border-radius: 14px;
}

.pdp-premium__faq { padding-bottom: 0; }
.pdp-premium__faq-list { border: 1px solid #eee; border-radius: 14px; overflow: hidden; max-width: 640px; }
.pdp-premium__faq-item {
    border-bottom: 1px solid #eee;
    display: grid;
    grid-template-rows: auto 0fr;
    transition: grid-template-rows 200ms var(--m-ease);
}
.pdp-premium__faq-item:last-child { border-bottom: none; }
.pdp-premium__faq-item[open] { grid-template-rows: auto 1fr; }
.pdp-premium__faq-q {
    padding: 18px 20px; font-size: 16px; font-weight: 500; color: #1a1a1a; cursor: pointer; list-style: none;
    transition: color var(--m-dur-short);
}
.pdp-premium__faq-q::-webkit-details-marker { display: none; }
.pdp-premium__faq-q::before { content: '+'; margin-right: 12px; color: #999; display: inline-block; transition: transform 180ms var(--m-ease); }
.pdp-premium__faq-item[open] .pdp-premium__faq-q::before { content: '−'; transform: rotate(0deg); }
.pdp-premium__faq-a { padding: 0 20px 18px 44px; font-size: 15px; line-height: 1.65; color: #555; min-height: 0; overflow: hidden; }
.pdp-premium__sidebar {
    position: sticky;
    top: 100px;
    padding: 24px 0;
}
.pdp-premium__sidebar:empty { display: none; }
.pdp-premium__sidebar-score { font-size: 22px; font-weight: 600; color: #1a1a1a; margin-bottom: 12px; }
.pdp-premium__cta--sidebar { display: block; text-align: center; margin-top: 12px; }

/* Scroll-Reveal: Sektionen (opacity + translateY), nur wenn .is-visible gesetzt */
.pdp-premium__reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity var(--m-dur-reveal) var(--m-ease), transform var(--m-dur-reveal) var(--m-ease);
}
.pdp-premium__reveal.is-visible { opacity: 1; transform: translateY(0); }
.pdp-premium__reveal--1 { transition-delay: 0ms; }
.pdp-premium__reveal--2 { transition-delay: 40ms; }
.pdp-premium__reveal--3 { transition-delay: 80ms; }

/* Reduced Motion: alle Animationen/Transitions auf der Produktseite ausschalten */
@media (prefers-reduced-motion: reduce) {
    html:has(.pdp-premium) { scroll-behavior: auto !important; }
    .pdp-premium,
    .pdp-premium * {
        animation: none !important;
        transition: none !important;
    }
    .pdp-premium__score-bar-fill[data-pa-score-percent] { width: var(--pa-score-pct, 0) !important; }
    .pdp-premium__reveal { opacity: 1; transform: none; }
}
/* 5) RESPONSIVE – < 900px: 1 Spalte, Bild max-height 240px */
@media (max-width: 900px) {
    .pdp-premium__hero.pa-product-hero,
    .productHero__grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding-bottom: 0;
    }
    .pdp-premium__gallery-main.pa-media__main img { max-height: 240px; }
    .pdp-premium__body { grid-template-columns: 1fr; }
    .pdp-premium__sidebar { position: static; padding-top: 0; }
}

@media (max-width: 768px) {
    .pdp-premium__container { padding: 24px 16px; }
    .productHero { padding-top: 40px; padding-bottom: 32px; }
    .productHero .pa-container { padding: 0 16px; }
    .pa-decision-strip { flex-direction: column; align-items: flex-start; gap: 16px; }
    .pa-procons__grid { grid-template-columns: 1fr; }
    .pa-kurzfakten__grid { grid-template-columns: 1fr; }
    .pa-hero-header__title { font-size: 32px; }
    .productHero__title { font-size: 28px; -webkit-line-clamp: 3; }
    .productImageCard { padding: 20px; }
    .productImageCard__main img { max-height: 260px; }
    .pdp-premium__section-head { font-size: 22px; }
    .pdp-premium__prose { font-size: 16px; }
    .pdp-premium__perf-row { grid-template-columns: 1fr 1fr 40px; }
}

/* ─── pa-prod: Bereich unter Hero (Kurzfassung / Für wen / Einschätzung + Specs) ─── */
.pa-prod {
    max-width: var(--container, 1200px);
    margin: 0 auto;
    padding: 0 var(--s-4, 24px);
    padding-top: var(--s-6, 32px);
    padding-bottom: var(--s-8, 48px);
}
.pa-prod__section {
    margin-bottom: var(--s-6, 32px);
}
.pa-prod__section:last-child { margin-bottom: 0; }
.pa-prod__title {
    font-size: var(--h2, 1.35rem);
    font-weight: 700;
    color: var(--text, #0f172a);
    margin: 0 0 var(--s-4, 20px);
    letter-spacing: -0.02em;
}
.pa-prod__card {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--r-md, 12px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    padding: var(--s-5, 24px);
    height: 100%;
    box-sizing: border-box;
}
.pa-prod__twocol {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5, 24px);
}
.pa-prod__cards.pa-prod__twocol { align-items: stretch; }
.pa-prod__card--pro .pa-prod__card-icon { color: var(--good, #16a34a); }
.pa-prod__card--con .pa-prod__card-icon--con { color: #ea580c; }
.pa-prod__card-icon {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--s-2, 8px);
}
.pa-prod__card-head {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text, #0f172a);
    margin: 0 0 var(--s-3, 12px);
}
.pa-prod__list {
    margin: 0;
    padding-left: 1.2em;
    font-size: var(--body, 1rem);
    line-height: 1.5;
    color: var(--text-2, #475569);
}
.pa-prod__list li { margin-bottom: var(--s-2, 8px); }
.pa-prod__fallback {
    margin: 0;
    font-size: var(--small, 0.9rem);
    color: var(--text-2, #64748b);
    font-style: italic;
}
.pa-prod__tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4, 20px);
}
.pa-prod__tile {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: var(--r-md, 12px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    padding: var(--s-4, 20px);
    text-align: center;
}
.pa-prod__tile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--s-3, 12px);
    color: var(--brand, #2563eb);
}
.pa-prod__tile-icon svg { flex-shrink: 0; }
.pa-prod__tile-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text, #0f172a);
    margin: 0 0 var(--s-2, 8px);
}
.pa-prod__tile-text {
    font-size: var(--small, 0.9rem);
    line-height: 1.45;
    color: var(--text-2, #475569);
    margin: 0;
}
.pa-prod__tile-badge {
    font-size: 0.8rem;
    color: var(--brand, #2563eb);
    margin: var(--s-2, 8px) 0 0;
    font-weight: 600;
}
.pa-prod__badge-wrap { margin-bottom: var(--s-4, 16px); }
.pa-prod__badge {
    display: inline-block;
    padding: var(--s-1, 4px) var(--s-3, 12px);
    border-radius: 999px;
    font-size: var(--small, 0.875rem);
    font-weight: 600;
}
.pa-prod__badge--good { background: #dcfce7; color: #166534; }
.pa-prod__badge--mid { background: #fef3c7; color: #92400e; }
.pa-prod__badge--bad { background: #fee2e2; color: #991b1b; }
.pa-prod__prose {
    font-size: var(--body, 1rem);
    line-height: 1.6;
    color: var(--text-2, #475569);
    margin: 0;
}
.pa-prod__spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--body, 1rem);
}
.pa-prod__spec-table td { padding: var(--s-2, 8px) 0; border-bottom: 1px solid var(--border, #e2e8f0); vertical-align: top; }
.pa-prod__spec-table tr:last-child td { border-bottom: 0; }
.pa-prod__spec-key { color: var(--text-2, #64748b); padding-right: var(--s-4, 16px); width: 40%; }
.pa-prod__spec-val { color: var(--text, #0f172a); font-weight: 500; }

@media (max-width: 900px) {
    .pa-prod__twocol { grid-template-columns: 1fr; }
    .pa-prod__tiles { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .pa-prod { padding-left: var(--s-3, 16px); padding-right: var(--s-3, 16px); }
    .pa-prod__title { font-size: 1.2rem; }
    .pa-prod__card { padding: var(--s-4, 20px); }
}

/* Alternativen (Ebene A) */
.pa-prod__section-lead { font-size: var(--small, 0.9rem); color: var(--text-2, #64748b); margin: 0 0 var(--s-4, 20px); }
.pa-prod__alt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5, 24px); margin-bottom: var(--s-5, 24px); }
.pa-prod__alt-card {
    display: block; background: #fff; border: 1px solid var(--border, #e2e8f0); border-radius: var(--r-md, 12px);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04); padding: var(--s-4, 20px); text-decoration: none; color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.pa-prod__alt-card:hover { box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08); transform: translateY(-2px); color: inherit; }
.pa-prod__alt-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand, #2563eb); margin-bottom: var(--s-2, 8px); display: block; }
.pa-prod__alt-img-wrap { width: 80px; height: 80px; margin: 0 auto var(--s-3, 12px); border-radius: var(--r-xs, 6px); overflow: hidden; background: var(--surface-2, #f1f5f9); display: flex; align-items: center; justify-content: center; }
.pa-prod__alt-img-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pa-prod__alt-name { font-size: 1rem; font-weight: 600; color: var(--text, #0f172a); margin: 0 0 var(--s-1, 4px); line-height: 1.3; }
.pa-prod__alt-score { font-size: var(--small, 0.9rem); color: var(--brand, #2563eb); font-weight: 600; margin: 0; }
.pa-prod__vergleich-cta { margin: 0; font-size: var(--small, 0.9rem); }
.pa-prod__vergleich-cta a { color: var(--brand, #2563eb); font-weight: 600; }
@media (max-width: 900px) { .pa-prod__alt-grid { grid-template-columns: 1fr; } }

/* Proof Layer (Ebene B) Accordion */
.pa-prod-proof { padding-top: var(--s-6, 32px); padding-bottom: var(--s-6, 32px); border-top: 1px solid var(--border, #e2e8f0); }
.pa-prod-proof .pa-prod__title { margin-bottom: var(--s-2, 8px); }
.pa-proof-accordion { display: flex; flex-direction: column; gap: 0; }
.pa-proof-item { border-bottom: 1px solid var(--border, #e2e8f0); }
.pa-proof-item:first-of-type { border-top: 1px solid var(--border, #e2e8f0); }
.pa-proof-summary { padding: var(--s-4, 16px) var(--s-4, 16px); font-weight: 600; font-size: 1rem; color: var(--text, #0f172a); cursor: pointer; list-style: none; }
.pa-proof-summary::-webkit-details-marker { display: none; }
.pa-proof-summary::after { content: '+'; float: right; }
.pa-proof-item[open] .pa-proof-summary::after { content: '−'; }
.pa-proof-body { padding: 0 var(--s-4, 16px) var(--s-4, 16px); }
.pa-proof-body p { margin: 0 0 var(--s-3, 12px); font-size: var(--body, 1rem); line-height: 1.5; color: var(--text-2, #475569); }
.pa-proof-body p:last-child { margin-bottom: 0; }
.pa-proof-note { font-size: var(--small, 0.9rem); color: var(--text-2, #64748b); margin-top: var(--s-3, 12px); }
.pa-proof-list { margin: 0; padding-left: 1.2em; }
.pa-proof-list li { margin-bottom: var(--s-2, 8px); }
.pa-proof-faq { list-style: none; margin: 0; padding: 0; }
.pa-proof-faq li { margin-bottom: var(--s-4, 16px); padding-bottom: var(--s-4, 16px); border-bottom: 1px solid var(--border, #e2e8f0); font-size: var(--body, 1rem); color: var(--text-2, #475569); }
.pa-proof-faq li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.pa-proof-faq strong { color: var(--text, #0f172a); display: block; margin-bottom: var(--s-1, 4px); }

/* Vergleichsseite (Ebene C) /produkt/{slug}/vergleich */
.pa-vergleich-page { padding: var(--s-6, 32px) 0; }
.pa-vergleich-header { margin-bottom: var(--s-5, 24px); }
.pa-vergleich-breadcrumb { font-size: var(--small, 0.9rem); color: var(--text-2, #64748b); margin: 0 0 var(--s-2, 8px); }
.pa-vergleich-breadcrumb a { color: var(--brand, #2563eb); }
.pa-vergleich-title { font-size: var(--h1, 1.5rem); font-weight: 700; color: var(--text, #0f172a); margin: 0; }
.pa-vergleich-ranking { font-size: var(--body, 1rem); color: var(--text-2, #475569); margin-bottom: var(--s-6, 32px); }
.pa-vergleich-section { margin-bottom: var(--s-6, 32px); }
.pa-vergleich-section h2 { font-size: 1.25rem; font-weight: 700; margin: 0 0 var(--s-4, 16px); color: var(--text, #0f172a); }
.pa-vergleich-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border, #e2e8f0); border-radius: var(--r-md, 12px); }
.pa-vergleich-table { width: 100%; table-layout: auto; border-collapse: separate; border-spacing: 0; min-width: 1000px; font-size: 14px; line-height: 1.4; }
.pa-vergleich-table thead th { white-space: nowrap; overflow: visible; text-overflow: clip; background: #f8fafc; font-weight: 600; color: var(--text, #0f172a); font-size: 13px; }
.pa-vergleich-table th,
.pa-vergleich-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border, #e2e8f0); vertical-align: middle; }
.pa-vergleich-table td { overflow: visible; text-overflow: clip; }
.pa-vergleich-table td.col-product,
.pa-vergleich-table th.col-product { white-space: normal; }
.pa-vergleich-table td.col-product { overflow: hidden; }
.pa-vergleich-table th.col-score,
.pa-vergleich-table td.col-score { min-width: 90px; }
.pa-vergleich-table th.col-capacity,
.pa-vergleich-table td.col-capacity { min-width: 110px; }
.pa-vergleich-table th.col-speed,
.pa-vergleich-table td.col-speed { min-width: 120px; }
.pa-vergleich-table th.col-latency,
.pa-vergleich-table td.col-latency { min-width: 110px; }
.pa-vergleich-table th.col-voltage,
.pa-vergleich-table td.col-voltage { min-width: 120px; }
.pa-vergleich-table th.col-ecc,
.pa-vergleich-table td.col-ecc { min-width: 80px; text-align: center; }
.pa-vergleich-table th.col-sweet,
.pa-vergleich-table td.col-sweet { min-width: 120px; text-align: center; }
.pa-vergleich-table th.col-action,
.pa-vergleich-table td.col-action { min-width: 140px; text-align: right; }
.pa-vergleich-table thead th:nth-child(1) { width: 22%; }
.pa-vergleich-table thead th:nth-child(2) { width: 8%; }
.pa-vergleich-table thead th:nth-child(3) { width: 10%; }
.pa-vergleich-table thead th:nth-child(4) { width: 10%; }
.pa-vergleich-table thead th:nth-child(5) { width: 8%; }
.pa-vergleich-table thead th:nth-child(6) { width: 10%; }
.pa-vergleich-table thead th:nth-child(7) { width: 6%; }
.pa-vergleich-table thead th:nth-child(8) { width: 8%; }
.pa-vergleich-table thead th:nth-child(9) { width: 18%; }
.pa-vergleich-table tr.pa-vergleich-current td { background: rgba(37, 99, 235, 0.06); }
.pa-vergleich-table tr.pa-vergleich-current { outline: 1px solid rgba(37, 99, 235, 0.25); outline-offset: -1px; }
.pa-vergleich-table .pa-vergleich-product-cell { display: block; }
.pa-vergleich-table .pa-vergleich-product-cell .pa-vergleich-badge { display: inline-block; margin-left: 0; margin-top: 4px; }
.pa-vergleich-badge { font-size: 0.75rem; font-weight: 600; color: var(--brand, #2563eb); }
.pa-vergleich-section p { margin: 0 0 var(--s-3, 12px); line-height: 1.6; color: var(--text-2, #475569); }
.pa-vergleich-glossar { margin: 0; }
.pa-vergleich-glossar dt { font-weight: 600; color: var(--text, #0f172a); margin-top: var(--s-4, 16px); }
.pa-vergleich-glossar dt:first-child { margin-top: 0; }
.pa-vergleich-glossar dd { margin: var(--s-1, 4px) 0 0; padding-left: 0; color: var(--text-2, #475569); line-height: 1.5; }
.pa-vergleich-back { margin-top: var(--s-6, 32px); }
.pa-vergleich-back a { color: var(--brand, #2563eb); font-weight: 600; }

/* Analyse-Seite: Hero, Ranking-Card, Tabelle, Methodik, Sweet Spot, FAQ, Links */
.pa-vergleich-hero { margin-bottom: var(--s-6, 32px); }
.pa-vergleich-hero-title { font-size: var(--h1, 1.5rem); font-weight: 700; color: var(--text, #0f172a); margin: 0 0 var(--s-2, 8px); }
.pa-vergleich-hero-lead { font-size: var(--body, 1rem); color: var(--text-2, #64748b); margin: 0 0 var(--s-4, 16px); }
.pa-vergleich-hero-badges { display: flex; flex-wrap: wrap; gap: var(--s-2, 8px); }
.pa-vergleich-score-badge { display: inline-block; padding: var(--s-1, 4px) var(--s-3, 12px); border-radius: 999px; font-size: var(--small, 0.875rem); font-weight: 600; background: var(--brand, #2563eb); color: #fff; }
.pa-vergleich-rank-badge { display: inline-block; padding: var(--s-1, 4px) var(--s-3, 12px); border-radius: 999px; font-size: var(--small, 0.875rem); font-weight: 600; background: var(--surface-2, #f1f5f9); color: var(--text, #0f172a); }
.pa-vergleich-card { background: #fff; border: 1px solid var(--border, #e2e8f0); border-radius: var(--r-md, 12px); box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04); padding: var(--s-5, 24px); margin-bottom: var(--s-5, 24px); }
.pa-vergleich-card-title { font-size: 1.15rem; font-weight: 700; color: var(--text, #0f172a); margin: 0 0 var(--s-4, 16px); }
.pa-vergleich-ranking-meta { font-size: var(--small, 0.9rem); color: var(--text-2, #64748b); margin: 0 0 var(--s-4, 16px); }
.pa-vergleich-ranking-stats { display: flex; flex-wrap: wrap; gap: var(--s-5, 24px); margin-bottom: var(--s-4, 16px); }
.pa-vergleich-stat { display: flex; flex-direction: column; gap: var(--s-1, 4px); }
.pa-vergleich-stat-label { font-size: var(--small, 0.875rem); color: var(--text-2, #64748b); }
.pa-vergleich-stat-value { font-size: 1.25rem; font-weight: 700; color: var(--brand, #2563eb); }
.pa-vergleich-mini-bars { display: flex; flex-direction: column; gap: var(--s-3, 12px); }
.pa-vergleich-mini-bar-wrap { display: grid; grid-template-columns: 100px 1fr 40px; align-items: center; gap: var(--s-3, 12px); }
.pa-vergleich-mini-label { font-size: var(--small, 0.875rem); color: var(--text-2, #64748b); }
.pa-vergleich-mini-bar { height: 6px; background: var(--surface-2, #f1f5f9); border-radius: 3px; overflow: hidden; }
.pa-vergleich-mini-fill { display: block; height: 100%; background: var(--brand, #2563eb); border-radius: 3px; }
.pa-vergleich-mini-fill--avg { background: var(--text-2, #64748b); }
.pa-vergleich-mini-val { font-size: var(--small, 0.875rem); font-weight: 600; color: var(--text, #0f172a); min-width: 2.2em; text-align: right; }
.pa-vergleich-table-wrap--sticky { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pa-vergleich-table-wrap--sticky .pa-vergleich-table thead th { position: sticky; top: 0; z-index: 5; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.pa-vergleich-table--full { min-width: 1000px; }
.pa-vergleich-table--full thead th { white-space: nowrap; }
/* Desktop: keine Header-Truncation (text-overflow: clip). Nur auf sehr kleinen Viewports Ellipsis erlauben */
@media (max-width: 520px) {
    .pa-vergleich-table thead th { overflow: hidden; text-overflow: ellipsis; max-width: 100px; }
}
.pa-vergleich-debug-row { font-size: 11px; color: #64748b; background: #f8fafc; }
.pa-vergleich-debug-row td { padding: 6px 16px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.pa-vergleich-debug-toggle { cursor: pointer; user-select: none; }
.pa-vergleich-debug-toggle:hover { color: #475569; }
.pa-vergleich-debug-content { display: none; margin-top: 4px; }
.pa-vergleich-debug-content.is-open { display: block; }
.pa-vergleich-debug-details { margin-top: 12px; font-size: 12px; color: #64748b; }
.pa-vergleich-debug-details summary { cursor: pointer; }
.pa-vergleich-debug-pre { margin: 8px 0 0; padding: 12px; background: #f1f5f9; border-radius: 6px; overflow-x: auto; font-size: 11px; max-height: 300px; overflow-y: auto; }
.pa-vergleich-btn { display: inline-block; padding: var(--s-2, 8px) var(--s-3, 12px); border-radius: var(--r-xs, 6px); font-size: var(--small, 0.875rem); font-weight: 600; background: var(--brand, #2563eb); color: #fff; text-decoration: none; }
.pa-vergleich-btn:hover { opacity: 0.9; color: #fff; }
.pa-vergleich-btn--current { background: var(--surface-2, #e2e8f0); color: var(--text-2, #64748b); cursor: default; pointer-events: none; }
.pa-vergleich-weights { margin: 0 0 var(--s-4, 16px); padding-left: 1.2em; }
.pa-vergleich-weights li { margin-bottom: var(--s-2, 8px); color: var(--text-2, #475569); }
.pa-vergleich-perf-bars { display: flex; flex-direction: column; gap: var(--s-3, 12px); }
.pa-vergleich-perf-row { display: grid; grid-template-columns: 120px 1fr 44px; align-items: center; gap: var(--s-3, 12px); }
.pa-vergleich-perf-label { font-size: var(--small, 0.875rem); color: var(--text-2, #64748b); }
.pa-vergleich-perf-bar { height: 10px; background: var(--surface-2, #f1f5f9); border-radius: 5px; overflow: hidden; }
.pa-vergleich-perf-fill { display: block; height: 100%; background: var(--brand, #2563eb); border-radius: 5px; }
.pa-vergleich-perf-num { font-size: var(--small, 0.875rem); font-weight: 600; color: var(--text, #0f172a); }
.pa-vergleich-card--success { border-color: var(--good, #22c55e); background: rgba(34, 197, 94, 0.04); }
.pa-vergleich-sweet-text { margin: 0; font-size: var(--body, 1rem); line-height: 1.5; color: var(--text-2, #475569); }
.pa-vergleich-contra-list { margin: 0; padding-left: 1.2em; }
.pa-vergleich-contra-list li { margin-bottom: var(--s-2, 8px); color: var(--text-2, #475569); }
.pa-vergleich-faq-item { margin-bottom: var(--s-4, 16px); padding-bottom: var(--s-4, 16px); border-bottom: 1px solid var(--border, #e2e8f0); }
.pa-vergleich-faq-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.pa-vergleich-faq-q { font-size: 1rem; font-weight: 600; color: var(--text, #0f172a); margin: 0 0 var(--s-2, 8px); }
.pa-vergleich-faq-a { font-size: var(--body, 1rem); line-height: 1.5; color: var(--text-2, #475569); }
.pa-vergleich-links { display: flex; flex-wrap: wrap; gap: var(--s-4, 16px); padding-top: var(--s-5, 24px); border-top: 1px solid var(--border, #e2e8f0); }
.pa-vergleich-links a { color: var(--brand, #2563eb); font-weight: 600; }
@media (max-width: 768px) {
    .pa-vergleich-perf-row { grid-template-columns: 100px 1fr 40px; }
    .pa-vergleich-mini-bar-wrap { grid-template-columns: 80px 1fr 36px; }
}
