/* ============================================
   SOFORT-VERGLEICHE.DE — Main Stylesheet
   Modern Affiliate Site · BFSG Compliant
   ============================================ */

/* ---------- CSS Variables / Design Tokens ---------- */
:root {
  /* Primary — WCAG AA contrast on white: 4.6:1 */
  --color-primary: #1558b0;
  --color-primary-dark: #0e3f7e;
  --color-primary-light: #e8f0fe;
  --color-primary-rgb: 21, 88, 176;

  /* CTA — dark enough for white text (4.5:1) */
  --color-cta: #d97706;
  --color-cta-hover: #b45309;
  --color-cta-light: #fff7ed;

  /* Success / Ratings */
  --color-success: #047857;
  --color-success-light: #ecfdf5;
  --color-star: #d97706;

  /* Danger */
  --color-danger: #b91c1c;
  --color-danger-light: #fef2f2;

  /* Neutrals — all pass WCAG AA on their backgrounds */
  --color-bg: #f1f5f9;
  --color-surface: #ffffff;
  --color-border: #cbd5e1;
  --color-text: #0f172a;          /* 16:1 on white */
  --color-text-secondary: #475569; /* 7:1 on white */
  --color-text-muted: #64748b;    /* 4.6:1 on white */

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Layout */
  --max-width: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }
a:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: 3px; }
ul, ol { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: var(--space-md); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.4rem); margin-bottom: var(--space-sm); }
h4 { font-size: 1.1rem; }

p { margin-bottom: var(--space-md); color: var(--color-text-secondary); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section { padding: var(--space-3xl) 0; }
.section--gray { background: var(--color-bg); }
.section--white { background: var(--color-surface); }

/* ---------- Header ---------- */
.header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(203,213,225,0.5);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.header__logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.header__logo:hover { text-decoration: none; color: var(--color-primary-dark); }

.header__logo svg {
  width: 30px;
  height: 30px;
}

.nav { display: flex; align-items: center; gap: var(--space-xl); }

.nav__link {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  padding: var(--space-xs) 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.nav__link:hover { text-decoration: none; }

.nav__link:hover,
.nav__link--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-text);
  margin: 5px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero {
  background: linear-gradient(145deg, #0f3d8c 0%, #1558b0 40%, #1e6fd0 100%);
  color: white;
  padding: var(--space-3xl) 0 calc(var(--space-3xl) + 1rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle geometric pattern overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

.hero h1 {
  color: white;
  margin-bottom: var(--space-md);
  font-size: clamp(2rem, 5vw, 3.25rem);
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero p {
  color: rgba(255,255,255,0.92);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  padding: var(--space-md) 0;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.breadcrumbs a { color: var(--color-text-secondary); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs span { margin: 0 var(--space-sm); color: var(--color-text-muted); }

/* ---------- Product Cards ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid var(--color-border);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(var(--color-primary-rgb), 0.2);
}

.product-card__badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--color-cta);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}

.product-card__badge--top {
  background: var(--color-success);
  box-shadow: 0 2px 8px rgba(4,120,87,0.3);
}

.product-card__image {
  padding: var(--space-xl) var(--space-lg);
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 230px;
}

.product-card__image img {
  max-height: 190px;
  object-fit: contain;
  transition: transform var(--transition);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__body {
  padding: var(--space-lg);
}

.product-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.product-card__title a { color: var(--color-text); text-decoration: none; }
.product-card__title a:hover { color: var(--color-primary); text-decoration: none; }

.product-card__rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.stars {
  color: var(--color-star);
  letter-spacing: 1px;
}

.product-card__specs {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-lg);
}

.product-card__specs li {
  padding: 6px 0 6px 30px !important;
  position: relative;
  list-style: none !important;
}

.product-card__specs li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 20px;
  background: var(--color-success);
  border-radius: 50%;
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.product-card__specs li::after {
  content: none;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, #fafbfc 0%, #f1f5f9 100%);
}

.product-card__price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--color-text);
}

.product-card__price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-text-muted);
  display: block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn--cta {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: white;
  box-shadow: 0 3px 12px rgba(217,119,6,0.35);
}

.btn--cta:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217,119,6,0.4);
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  box-shadow: 0 3px 12px rgba(var(--color-primary-rgb),0.3);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, #0a2e5e 100%);
  color: white;
  transform: translateY(-2px);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: white;
}

.btn--sm { padding: 9px 18px; font-size: 0.85rem; border-radius: var(--radius-xs); }
.btn--lg { padding: 16px 36px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Comparison Table ---------- */
.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  font-size: 0.9rem;
}

.comparison-table th {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: white;
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text-secondary);
}

.comparison-table tr:nth-child(even) { background: #f8fafc; }
.comparison-table tr:hover { background: var(--color-primary-light); }

.comparison-table .highlight-row {
  background: var(--color-cta-light) !important;
  border-left: 4px solid var(--color-cta);
}

.table-product-name {
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.table-product-name img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* ---------- Product Detail ---------- */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.product-detail__gallery {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-2xl);
  text-align: center;
  border: 1px solid var(--color-border);
  position: sticky;
  top: 100px;
  box-shadow: var(--shadow-sm);
}

.product-detail__gallery img {
  max-height: 350px;
  margin: 0 auto;
  object-fit: contain;
}

.product-detail__info h1 { margin-bottom: var(--space-md); }

.product-detail__meta {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

/* Score Badge */
.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  box-shadow: var(--shadow-md);
}

.score-badge--excellent { background: linear-gradient(135deg, #047857, #059669); }
.score-badge--good { background: linear-gradient(135deg, #4d7c0f, #65a30d); }
.score-badge--ok { background: linear-gradient(135deg, #b45309, #d97706); }

/* Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.specs-table tr { border-bottom: 1px solid var(--color-border); }
.specs-table tr:last-child { border-bottom: none; }

.specs-table th {
  text-align: left;
  padding: var(--space-md);
  font-weight: 600;
  color: var(--color-text);
  width: 40%;
  background: #f1f5f9;
  font-size: 0.9rem;
}

.specs-table td {
  padding: var(--space-md);
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* ========== PRO / CON BOXES — FIXED ========== */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin: var(--space-xl) 0;
}

.pros-box, .cons-box {
  padding: var(--space-xl);
  border-radius: var(--radius);
  position: relative;
}

.pros-box {
  background: var(--color-success-light);
  border: 1px solid #a7f3d0;
  border-top: 4px solid var(--color-success);
}

.cons-box {
  background: var(--color-danger-light);
  border: 1px solid #fecaca;
  border-top: 4px solid var(--color-danger);
}

.pros-box h4, .cons-box h4 {
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pros-box h4 { color: #065f46; }
.cons-box h4 { color: #991b1b; }

.pros-box ul, .cons-box ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.content-block .pros-box ul,
.content-block .cons-box ul {
  list-style: none !important;
  padding-left: 0 !important;
}

.content-block .pros-box li,
.content-block .cons-box li,
.pros-box li,
.cons-box li {
  padding: 10px 0 10px 38px !important;
  margin-left: 0 !important;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid transparent;
}

.pros-box li:not(:last-child) { border-bottom-color: rgba(167,243,208,0.5); }
.cons-box li:not(:last-child) { border-bottom-color: rgba(254,202,202,0.5); }

/* Checkmark icon for pros */
.pros-box li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  background: var(--color-success);
  border-radius: 50%;
  color: white;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.pros-box li::after { content: none; }

/* X icon for cons */
.cons-box li::before {
  content: '\2717';
  position: absolute;
  left: 0;
  top: 12px;
  width: 22px;
  height: 22px;
  background: var(--color-danger);
  border-radius: 50%;
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cons-box li::after { content: none; }

/* ========== CTA Box ========== */
.cta-box {
  background: linear-gradient(135deg, var(--color-cta-light) 0%, #fffbf0 50%, var(--color-cta-light) 100%);
  border: 2px solid var(--color-cta);
  border-radius: var(--radius);
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
  margin: var(--space-xl) 0;
  box-shadow: 0 4px 16px rgba(217,119,6,0.1);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(217,119,6,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box__price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.cta-box__price small {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.cta-box p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
}

/* ---------- Content Sections ---------- */
.content-block {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: var(--space-2xl);
  margin-bottom: var(--space-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.content-block h2 {
  padding-bottom: var(--space-md);
  border-bottom: 3px solid var(--color-primary-light);
  margin-bottom: var(--space-lg);
  position: relative;
}

/* Accent line under h2 */
.content-block h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

.content-block h3 { margin-top: var(--space-lg); }

.content-block p {
  line-height: 1.8;
  color: var(--color-text-secondary);
}

.content-block ul, .content-block ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-xl);
}

.content-block ul { list-style: disc; }
.content-block ol { list-style: decimal; }

.content-block li {
  padding: 4px 0;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* Override content-block styles for product cards and pros/cons inside content-blocks */
.content-block .product-card__specs {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0 !important;
}

.content-block .product-card__specs li {
  padding: 6px 0 6px 30px !important;
  list-style: none !important;
}

/* ---------- Info Box ---------- */
.info-box {
  background: var(--color-primary-light);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--space-lg);
  margin: var(--space-lg) 0;
}

.info-box p {
  color: var(--color-text);
  margin: 0;
  font-size: 0.9rem;
}

/* ---------- FAQ / Accordion ---------- */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.faq-item:hover { box-shadow: var(--shadow-md); }

.faq-item__question {
  width: 100%;
  text-align: left;
  padding: var(--space-lg);
  background: var(--color-surface);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-main);
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}

.faq-item__question:hover { background: #f8fafc; }
.faq-item__question:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -3px; }

.faq-item__question::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2.5px solid var(--color-text-muted);
  border-bottom: 2.5px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.active .faq-item__question::after {
  transform: rotate(-135deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item__answer__inner {
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq-item__answer__inner p {
  color: var(--color-text-secondary);
}

.faq-item.active .faq-item__answer {
  max-height: 500px;
}

/* ---------- Trust Signals ---------- */
.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-sm) 0;
}

.trust-bar__inner {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* ---------- Footer ---------- */
.footer {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  color: #94a3b8;
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__brand p { color: #94a3b8; font-size: 0.9rem; }

.footer__title {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.footer a {
  color: #94a3b8;
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
  text-decoration: none;
}

.footer a:hover { color: white; text-decoration: none; }

.footer__bottom {
  border-top: 1px solid #334155;
  padding-top: var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: 0.8rem;
}

.footer__affiliate-notice {
  background: rgba(255,255,255,0.05);
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  margin-top: var(--space-lg);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ---------- Rating Bars ---------- */
.rating-bar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: 10px;
}

.rating-bar__label {
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 130px;
  color: var(--color-text);
}

.rating-bar__track {
  flex: 1;
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}

.rating-bar__fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  /* Default green color if no modifier class is used */
  background: linear-gradient(90deg, #047857, #059669);
}

.rating-bar__fill--excellent { background: linear-gradient(90deg, #047857, #059669); }
.rating-bar__fill--good { background: linear-gradient(90deg, #4d7c0f, #65a30d); }
.rating-bar__fill--ok { background: linear-gradient(90deg, #b45309, #d97706); }

/* Score badge variants for product detail pages */
.score-badge--gold {
  background: linear-gradient(135deg, #d97706, #b45309);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: var(--space-sm);
  box-shadow: 0 2px 8px rgba(217,119,6,0.3);
}

.score-badge--silver {
  background: linear-gradient(135deg, #64748b, #475569);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.score-badge--green {
  background: linear-gradient(135deg, #047857, #059669);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

/* Rating summary (score + stars on product pages) */
.rating-summary {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.rating-score {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.rating-score span {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.rating-stars {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.rating-bar__value {
  font-size: 0.875rem;
  font-weight: 700;
  min-width: 35px;
  text-align: right;
  color: var(--color-text);
}

/* ---------- TOC ---------- */
.toc {
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-lg) var(--space-xl);
  margin-bottom: var(--space-xl);
}

.toc__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.toc ol { list-style: decimal; padding-left: var(--space-lg); }
.toc li { padding: 5px 0; }
.toc a { font-size: 0.9rem; color: var(--color-text-secondary); text-decoration: none; }
.toc a:hover { color: var(--color-primary); text-decoration: underline; }

/* ---------- Last Updated ---------- */
.last-updated {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; }
  .product-detail__gallery { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    flex-direction: column;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    gap: var(--space-md);
  }

  .nav.active { display: flex; }
  .nav__toggle { display: block; }
  .products-grid { grid-template-columns: 1fr; }
  .pros-cons { grid-template-columns: 1fr; }
  .comparison-table { font-size: 0.8rem; }

  .comparison-table th,
  .comparison-table td { padding: var(--space-sm) var(--space-md); }

  .hero { padding: var(--space-2xl) 0; }
  .footer__grid { grid-template-columns: 1fr; }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .trust-bar__inner { gap: var(--space-lg); }
  .container { padding: 0 var(--space-md); }
}

@media (max-width: 480px) {
  html { font-size: 15px; }
  .product-card__image { min-height: 160px; padding: var(--space-lg); }
  .product-card__image img { max-height: 140px; }
  .content-block { padding: var(--space-lg); }
  .pros-box, .cons-box { padding: var(--space-lg); }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.affiliate-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.8rem;
  color: var(--color-success);
  font-weight: 600;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.5s ease forwards; }

/* ---------- CRITICAL OVERRIDES (must be last) ---------- */
ul.product-card__specs,
.content-block ul.product-card__specs {
  list-style: none !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

ul.product-card__specs > li,
.content-block ul.product-card__specs > li {
  padding: 6px 0 6px 30px !important;
  list-style-type: none !important;
}

.content-block .pros-box ul > li,
.content-block .cons-box ul > li,
.pros-box ul > li,
.cons-box ul > li {
  padding: 10px 0 10px 38px !important;
  list-style-type: none !important;
}

/* ---------- Print ---------- */
@media print {
  .header, .footer, .nav, .btn--cta, .cta-box { display: none; }
  body { background: white; color: black; }
  .content-block { border: 1px solid #ccc; box-shadow: none; }
}
