/*
Theme Name: zwergencheck
Theme URI: https://example.com
Author: Dein Name
Author URI: https://example.com
Description: Custom Theme für zwergencheck.de – Vergleiche, Tests und Ratgeber rund um Baby- und Kleinkindausstattung.
Version: 1.0
Requires PHP: 7.4
Text Domain: zwergencheck
*/

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  --blue:       #6E9575;
  --blue-hover: #587A60;
  --blue-light: #E8F1E9;
  --blue-mid:   #BBD4BE;
  --green:      #86A88C;
  --green-bg:   #EDF4EE;
  --orange:     #EFB94F;
  --orange-bg:  #FBEFD7;
  --red:        #C1443D;

  --bg:         #FBF8F2;
  --bg-secondary: #F6F0E7;
  --bg-tertiary:  #EFE7D9;
  --border:     #E6DDC9;
  --border-strong: #D5C9AE;

  --text-primary:   #414957;
  --text-secondary: #6E7789;
  --text-muted:     #9AA1AC;
  --text-inverse:   #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08), 0 16px 48px rgba(0,0,0,0.06);
  --shadow-card: 0 0 0 1px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.06);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --nav-h: 64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

[data-theme="dark"] {
  --bg:         #23261F;
  --bg-secondary: #2B2E25;
  --bg-tertiary:  #34382B;
  --border:     #454A3A;
  --border-strong: #575D49;

  --text-primary:   #F1EEE4;
  --text-secondary: #C1BFAF;
  --text-muted:     #8B8A78;

  --blue-light: #37453A;
  --blue-mid:   #4E6552;
  --green-bg:   #33402F;
  --orange-bg:  #4A3E20;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-card: 0 0 0 1px rgba(255,255,255,0.06), 0 4px 12px rgba(0,0,0,0.3);
}

/* ─── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.2s, color 0.2s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── UTILITY ────────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; clip: rect(0,0,0,0); overflow: hidden; }

/* ─── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}
[data-theme="dark"] .navbar {
  background: rgba(10,15,30,0.85);
}
.navbar-inner {
  height: 100%; display: flex; align-items: center; gap: 0;
}
.navbar-logo {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 17px; letter-spacing: -0.4px;
  color: var(--text-primary); flex-shrink: 0; margin-right: 8px;
}
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon img { width: 100%; height: 100%; object-fit: contain; }
.logo-text span { color: var(--blue); }

.navbar-nav {
  display: flex; align-items: center; gap: 2px; flex: 1;
  margin-left: 16px;
}
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 10px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; color: var(--text-secondary);
  transition: color 0.15s, background 0.15s; cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); background: var(--bg-tertiary); }
.nav-link svg { width: 12px; height: 12px; transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Mega Menu */
.mega-menu {
  position: absolute; top: calc(100% + 8px); left: -16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 20px; min-width: 640px;
  opacity: 0; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
}
.nav-item:hover .mega-menu,
.nav-item.hov-mega-open .mega-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mega-col h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--text-muted);
  padding: 4px 8px; margin-bottom: 4px;
}
.mega-link {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: var(--radius-sm);
  font-size: 13.5px; color: var(--text-secondary);
  transition: background 0.12s, color 0.12s;
}
.mega-link:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.mega-link-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: var(--blue-light); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; font-size: 14px;
}

.navbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn-search, .btn-dark {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.btn-search:hover, .btn-dark:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.btn-search svg, .btn-dark svg { width: 16px; height: 16px; }

/* Mobil-Menü Button (nur auf kleinen Bildschirmen sichtbar) */
.btn-mobile-menu {
  display: none;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: transparent;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}
.btn-mobile-menu:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.btn-mobile-menu svg { width: 18px; height: 18px; }

/* Mobil-Menü Panel */
.mobile-menu {
  position: fixed; inset: 0; z-index: 250;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  display: none;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg); z-index: 1;
}
.mobile-menu-section { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.mobile-menu-section h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.mobile-menu-link {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 0; font-size: 15.5px; font-weight: 500;
  color: var(--text-primary); border-bottom: 1px solid var(--border);
}
.mobile-menu-link:last-child { border-bottom: none; }

@media (max-width: 768px) {
  .btn-mobile-menu { display: flex; }
  .mobile-menu { display: block; }
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue); color: white;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--blue-hover); }
.btn-primary:active { transform: scale(0.98); }

/* ─── SEARCH OVERLAY ─────────────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.search-overlay.open { opacity: 1; pointer-events: auto; }
.search-box {
  background: var(--bg); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); width: 100%; max-width: 640px;
  overflow: hidden; margin: 0 24px;
  transform: translateY(-12px); transition: transform 0.2s;
}
.search-overlay.open .search-box { transform: translateY(0); }
.search-input-row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--border);
}
.search-input-row svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-input-row input {
  flex: 1; border: none; background: transparent;
  font-size: 16px; color: var(--text-primary); outline: none;
  font-family: var(--font);
}
.search-input-row input::placeholder { color: var(--text-muted); }
.search-results { padding: 12px; }
.search-suggestion {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-secondary); cursor: pointer;
  transition: background 0.1s;
}
.search-suggestion:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.search-suggestion svg { width: 14px; height: 14px; color: var(--text-muted); }

/* ─── HERO ───────────────────────────────────────────────────── */
.hero {
  padding: 72px 0 64px;
  background: var(--bg);
  overflow: hidden; position: relative;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.08) 0%, transparent 70%);
  pointer-events: none;
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,0.15) 0%, transparent 70%);
}
.hero-inner { text-align: center; max-width: 760px; margin: 0 auto; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--blue-light); color: var(--blue);
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px; border: 1px solid var(--blue-mid);
}
.hero-badge svg { width: 13px; height: 13px; }
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900; letter-spacing: -2.5px; line-height: 1.05;
  color: var(--text-primary); margin-bottom: 20px;
}
.hero h1 .accent { color: var(--blue); }
.hero-sub {
  font-size: 18px; color: var(--text-secondary); line-height: 1.65;
  max-width: 560px; margin: 0 auto 36px; font-weight: 400;
}
.hero-ctas { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); color: var(--text-primary);
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600; border: 1.5px solid var(--border-strong); cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-secondary:hover { background: var(--bg-secondary); }
.btn-lg { padding: 12px 24px; font-size: 15px; border-radius: var(--radius); }
.hero-stats {
  display: flex; justify-content: center; gap: 40px; margin-top: 48px;
  padding-top: 32px; border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.5px; color: var(--text-primary); }
.hero-stat span { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ─── SECTION HEADERS ────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px; gap: 16px; flex-wrap: wrap;
}
.section-header-left { min-width: 0; }
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 6px;
}
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800; letter-spacing: -0.8px; color: var(--text-primary);
}
.section-sub { font-size: 15px; color: var(--text-secondary); margin-top: 6px; }
.link-all {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600; color: var(--blue);
  white-space: nowrap; flex-shrink: 0;
  transition: gap 0.15s;
}
.link-all:hover { gap: 7px; }
.link-all svg { width: 14px; height: 14px; }

/* ─── KATEGORIE CARDS ────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.cat-card {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px 16px; background: var(--bg);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  cursor: pointer; text-align: center;
}
.cat-card:hover {
  border-color: var(--blue); box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.cat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  margin: 0 auto 12px; display: flex; align-items: center;
  justify-content: center; font-size: 22px;
}
.cat-card h3 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.cat-card p { font-size: 12px; color: var(--text-muted); }

/* ─── PRODUKT KARTEN ─────────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.product-grid > * { min-width: 0; height: 100%; }
.product-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
  cursor: pointer; display: flex; flex-direction: column;
  min-width: 0; height: 100%;
}
.product-card h3, .product-card .product-name, .product-name {
  overflow-wrap: break-word; word-break: break-word;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-img {
  aspect-ratio: 4/3; background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; position: relative; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--blue); color: white;
  font-size: 11px; font-weight: 700; padding: 3px 8px;
  border-radius: 999px;
}
.product-badge.green { background: var(--green); }
.product-badge.orange { background: var(--orange); }
.product-body { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.product-brand { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 4px; }
.product-name { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.3; margin-bottom: 8px; }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.stars { display: flex; gap: 1px; }
.star { width: 13px; height: 13px; color: #F59E0B; }
.star.half { color: #FCD34D; }
.star.empty { color: var(--border-strong); }
.rating-val { font-size: 13px; font-weight: 700; color: var(--text-primary); }
.rating-count { font-size: 12px; color: var(--text-muted); }
.product-pros { margin-bottom: 12px; flex: 1; }
.product-pro {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: 12.5px; color: var(--text-secondary); margin-bottom: 4px;
}
.product-pro svg { width: 13px; height: 13px; color: var(--green); flex-shrink: 0; margin-top: 2px; }
.product-footer { padding: 12px 16px; border-top: 1px solid var(--border); margin-top: auto; }
.product-price {
  display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px;
}
.price-from { font-size: 11px; color: var(--text-muted); }
.price-val { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; color: var(--text-primary); }
.price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }
.price-save { font-size: 12px; font-weight: 700; color: var(--green); background: var(--green-bg); padding: 2px 6px; border-radius: 4px; }
.amazon-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 9px; border-radius: var(--radius-sm);
  background: #FF9900; color: #111; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; transition: background 0.15s, transform 0.1s;
}
.amazon-btn:hover { background: #F08000; }
.amazon-btn:active { transform: scale(0.98); }
.amazon-btn svg { width: 60px; height: 18px; }
.affiliate-note { font-size: 10.5px; color: var(--text-muted); text-align: center; margin-top: 6px; }

/* ─── VERGLEICHSTABELLE ──────────────────────────────────────── */
.compare-section { background: var(--bg-secondary); }
.compare-table-wrap { overflow-x: auto; margin-top: 8px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 12px 16px; text-align: left;
  font-size: 13.5px; border-bottom: 1px solid var(--border);
}
.compare-table th {
  background: var(--bg-tertiary); font-weight: 700;
  color: var(--text-secondary); font-size: 12px; letter-spacing: 0.4px;
  text-transform: uppercase; white-space: nowrap;
}
.compare-table th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.compare-table th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table tr:hover td { background: var(--bg-tertiary); }
.compare-table .product-cell { display: flex; align-items: center; gap: 10px; }
.compare-thumb { width: 40px; height: 40px; border-radius: 6px; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; overflow: hidden; }
.compare-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compare-name { font-weight: 600; font-size: 14px; }
.compare-brand { font-size: 11px; color: var(--text-muted); }
.score-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  font-size: 14px; font-weight: 800;
}
.score-a { background: var(--green-bg); color: var(--green); }
.score-b { background: var(--blue-light); color: var(--blue); }
.score-c { background: var(--orange-bg); color: var(--orange); }
.check { color: var(--green); }
.cross { color: var(--red); }
.tag-chip {
  display: inline-block; padding: 3px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 700;
}
.tag-best { background: var(--green-bg); color: var(--green); }
.tag-value { background: var(--blue-light); color: var(--blue); }
.tag-prem { background: #FDF4FF; color: #9333EA; }
[data-theme="dark"] .tag-prem { background: #3B0764; color: #C084FC; }

/* ─── EDITORS CHOICE ─────────────────────────────────────────── */
.editors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.editors-card {
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; display: flex;
  transition: box-shadow 0.2s;
}
.editors-card:hover { box-shadow: var(--shadow-lg); }
.editors-img {
  width: 180px; flex-shrink: 0; background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center; font-size: 56px;
  overflow: hidden;
}
.editors-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; box-sizing: border-box; }
.editors-body { padding: 20px; flex: 1; }
.editors-label {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--blue-light); color: var(--blue);
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 999px; margin-bottom: 10px;
}
.editors-body h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 4px; }
.editors-body p { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 14px; line-height: 1.5; }
.editors-score { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.big-score {
  font-size: 28px; font-weight: 900; letter-spacing: -1px;
  color: var(--blue);
}
.score-label { font-size: 12px; color: var(--text-muted); }
.score-label span { display: block; font-weight: 600; color: var(--text-secondary); }
.editors-price { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; }

/* ─── BLOG KARTEN ────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.blog-card {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border);
  transition: box-shadow 0.2s, transform 0.15s;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-img {
  aspect-ratio: 16/9; background: var(--bg-tertiary);
  display: flex; align-items: center; justify-content: center; font-size: 48px;
  overflow: hidden;
}
.blog-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-body { padding: 16px; }
.blog-cat {
  font-size: 11px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; color: var(--blue); margin-bottom: 6px;
}
.blog-body h3 { font-size: 16px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.blog-body p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; margin-bottom: 12px; }
.blog-meta { display: flex; align-items: center; gap: 10px; }
.blog-avatar {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--blue); display: flex; align-items: center;
  justify-content: center; font-size: 11px; font-weight: 700; color: white;
}
.blog-author { font-size: 12px; font-weight: 600; }
.blog-date { font-size: 12px; color: var(--text-muted); margin-left: auto; }

/* ─── NEWSLETTER ─────────────────────────────────────────────── */
.newsletter-section {
  background: var(--blue);
  padding: 64px 0;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.newsletter-inner h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: white; letter-spacing: -0.8px; margin-bottom: 10px; }
.newsletter-inner p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 8px; max-width: 440px; margin: 0 auto; }
.newsletter-input {
  flex: 1; padding: 12px 16px; border-radius: var(--radius-sm);
  border: none; background: rgba(255,255,255,0.15);
  color: white; font-size: 15px; font-family: var(--font); outline: none;
  backdrop-filter: blur(10px);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter-input:focus { background: rgba(255,255,255,0.2); }
.btn-white {
  background: white; color: var(--blue); padding: 12px 20px;
  border-radius: var(--radius-sm); border: none; font-size: 14px;
  font-weight: 700; cursor: pointer; font-family: var(--font);
  transition: background 0.15s; white-space: nowrap;
}
.btn-white:hover { background: #EFF6FF; }
.newsletter-note { font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 12px; }

/* ─── BRANDS ─────────────────────────────────────────────────── */
.brands-row { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-chip {
  padding: 8px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all 0.15s;
}
.brand-chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-light); }

/* ─── KATEGORIE-FILTER-CHIPS (Bestseller/Deals) ────────────── */
.hov-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.hov-filter-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--border-strong); background: var(--bg);
  font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
  cursor: pointer; transition: all 0.15s; user-select: none;
}
.hov-filter-chip input { accent-color: var(--blue); cursor: pointer; }
.hov-filter-chip:hover { border-color: var(--blue); }
.hov-filter-chip.active,
.hov-filter-chip:has(input:checked) {
  border-color: var(--blue); background: var(--blue-light); color: var(--blue);
}

/* ─── PREIS-BEREICH & SORTIERUNG (Kategorieseiten) ───────────── */
.hov-filter-toolbar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 16px; margin-bottom: 28px;
  padding: 16px 20px; background: var(--bg-secondary);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.hov-price-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hov-price-range label { font-size: 13.5px; font-weight: 600; color: var(--text-secondary); }
.hov-price-range span { font-size: 13.5px; color: var(--text-muted); }
.hov-price-range input {
  width: 96px; padding: 8px 10px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong); background: var(--bg);
  color: var(--text-primary); font-family: var(--font); font-size: 14px;
}
.hov-price-range input:focus { outline: none; border-color: var(--blue); }
.hov-sort-bar { display: flex; align-items: center; gap: 8px; }
.hov-sort-bar label { font-size: 13.5px; font-weight: 600; color: var(--text-secondary); }
.hov-sort-bar select {
  padding: 8px 12px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong); background: var(--bg);
  color: var(--text-primary); font-family: var(--font); font-size: 14px;
  cursor: pointer;
}
.hov-sort-bar select:focus { outline: none; border-color: var(--blue); }

@media (max-width: 600px) {
  .hov-filter-toolbar { flex-direction: column; align-items: stretch; }
}

/* ─── TRUST ──────────────────────────────────────────────────── */
.trust-section { background: var(--bg-secondary); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.trust-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; text-align: center;
}
.trust-icon { font-size: 32px; margin-bottom: 12px; }
.trust-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.trust-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.55; }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  margin-bottom: 8px; overflow: hidden;
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; background: transparent; border: none;
  cursor: pointer; text-align: left; font-family: var(--font);
  color: var(--text-primary); font-size: 15px; font-weight: 600;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--bg-tertiary); }
.faq-q svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; transition: transform 0.25s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a-inner { padding: 0 20px 16px; font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* ─── DEALS BANNER ───────────────────────────────────────────── */
.deal-banner {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 24px 28px;
  display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
}
.deal-icon { font-size: 40px; flex-shrink: 0; }
.deal-text h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.deal-text p { font-size: 14px; color: var(--text-secondary); }
.deal-cta { margin-left: auto; flex-shrink: 0; }

/* ─── FOOTER ─────────────────────────────────────────────────── */
.footer {
  background: var(--text-primary); color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}
[data-theme="dark"] .footer { background: #060C1A; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo-text-footer {
  font-weight: 800; font-size: 18px; letter-spacing: -0.4px;
  color: white; margin-bottom: 12px;
}
.footer-brand p { font-size: 13.5px; line-height: 1.65; max-width: 260px; }
.footer-brand .affiliate-disc {
  margin-top: 16px; font-size: 12px; line-height: 1.6;
  padding: 12px; background: rgba(255,255,255,0.06); border-radius: 8px;
}
.footer-col h4 {
  font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: white; margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13.5px; color: rgba(255,255,255,0.6); transition: color 0.15s; }
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.15s; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.8); }

/* ─── COOKIE BANNER ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px; z-index: 300;
  max-width: 520px;
  background: var(--text-primary); color: white;
  border-radius: var(--radius-lg); padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s, opacity 0.3s;
}
[data-theme="dark"] .cookie-banner { background: #1E293B; border: 1px solid var(--border-strong); }
.cookie-banner.hidden { transform: translateY(20px); opacity: 0; pointer-events: none; }
.cookie-banner p { font-size: 13.5px; color: rgba(255,255,255,0.8); line-height: 1.55; margin-bottom: 14px; }
.cookie-btns { display: flex; gap: 8px; }
.btn-cookie-accept {
  background: var(--blue); color: white; padding: 9px 18px;
  border-radius: var(--radius-sm); border: none; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: var(--font);
}
.btn-cookie-decline {
  background: transparent; color: rgba(255,255,255,0.6); padding: 9px 14px;
  border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,0.2);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font);
}

/* ─── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 24px; }
.breadcrumb a { font-size: 13px; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { font-size: 13px; color: var(--text-muted); }
.breadcrumb .current { color: var(--text-secondary); font-weight: 500; }

/* ─── DIVIDER ─────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); }

/* ─── GRID-SICHERHEITSNETZ ─────────────────────────────────────
 * CSS-Grid-Elemente ignorieren standardmäßig die zugewiesene
 * Spaltenbreite, wenn ihr Inhalt (z. B. lange deutsche Wörter,
 * Bilder) nicht umbrechen/schrumpfen kann. Das zwingt die ganze
 * Seite in die Breite und lässt mobile Browser alles verkleinern.
 * Diese Regel behebt das seitenweit für alle Raster.
 */
.cat-grid > *, .editors-grid > *, .blog-grid > *, .trust-grid > *, .footer-grid > * {
  min-width: 0;
}
.cat-grid h3, .blog-grid h3, .editors-grid h3 {
  overflow-wrap: break-word; word-break: break-word;
}

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 768px) {
  .navbar-nav { display: none; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .editors-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-form { flex-direction: column; }
  .hero-stats { gap: 24px; }
  .editors-card { flex-direction: column; }
  .editors-img { width: 100%; height: 160px; }
  .compare-table-wrap { font-size: 12px; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
}

/* ─── ANIMATIONS ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, .fade-up { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ─── STICKY DEAL BAR ─────────────────────────────────────────── */
.deal-bar {
  background: var(--orange); color: white;
  padding: 8px; text-align: center; font-size: 13px; font-weight: 600;
}
.deal-bar a { color: white; text-decoration: underline; }
.deal-bar-inner { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ─── PROGRESS / SCORE BARS ─────────────────────────────────── */
.score-bar-row { margin-bottom: 10px; }
.score-bar-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 4px; }
.score-bar-label strong { color: var(--text-primary); font-weight: 700; }
.score-bar-track { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.score-bar-fill { height: 100%; border-radius: 999px; background: var(--blue); }
.score-bar-fill.green { background: var(--green); }
.score-bar-fill.orange { background: var(--orange); }

/* ─── SINGLE POST (Blog-Artikel) ───────────────────────────────── */
.single-post-header { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.single-post-header .blog-cat { justify-content: center; display: block; text-align: center; }
.single-post-header h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin: 10px 0 16px; }
.single-post-meta { display: flex; align-items: center; justify-content: center; gap: 10px; }
.single-post-thumb { max-width: 900px; margin: 0 auto 40px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/8; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; font-size: 64px; }
.single-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.single-post-content { max-width: 720px; margin: 0 auto; font-size: 16.5px; line-height: 1.75; color: var(--text-secondary); }
.single-post-content h2 { font-size: 24px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.5px; margin: 36px 0 14px; }
.single-post-content h3 { font-size: 19px; font-weight: 700; color: var(--text-primary); margin: 28px 0 12px; }
.single-post-content p { margin-bottom: 18px; }
.single-post-content ul, .single-post-content ol { margin: 0 0 18px 20px; }
.single-post-content ul { list-style: disc; }
.single-post-content ol { list-style: decimal; }
.single-post-content img { border-radius: var(--radius); margin: 24px 0; }
.single-post-content a { color: var(--blue); text-decoration: underline; }
.single-post-content blockquote { border-left: 3px solid var(--blue); padding-left: 18px; color: var(--text-primary); font-style: italic; margin: 24px 0; }
.no-results { text-align: center; padding: 60px 0; color: var(--text-secondary); }

/* ─── PRODUKTDETAILSEITE (single-produkt.php) ──────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; margin-bottom: 48px; }
.product-detail-main-img {
  aspect-ratio: 4/3; background: var(--bg-secondary); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  font-size: 72px; margin-bottom: 12px; border: 1px solid var(--border);
}
.product-detail-main-img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; box-sizing: border-box; }

/* ─── BESTENLISTE: PRODUKTBILD (nicht zugeschnitten) ─────────── */
.hov-beste-thumb {
  flex-shrink: 0; width: 96px; height: 96px; border-radius: var(--radius);
  overflow: hidden; background: var(--bg-secondary);
  display: flex; align-items: center; justify-content: center; font-size: 36px;
}
.hov-beste-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8px; box-sizing: border-box; }
.product-detail-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-detail-thumbs img {
  width: 68px; height: 68px; object-fit: cover; border-radius: 8px; cursor: pointer;
  border: 2px solid transparent; transition: border-color 0.15s; opacity: 0.75;
}
.product-detail-thumbs img:hover { opacity: 1; }
.product-detail-thumbs img.active { border-color: var(--blue); opacity: 1; }
.product-detail-info .product-brand { font-size: 12.5px; }
.product-detail-info h1 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.7px; margin: 4px 0 12px; line-height: 1.15; }
.product-detail-price-row { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 20px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.product-detail-price-row .price-val { font-size: 30px; }
.product-detail-info .product-pros { margin: 18px 0; }
.product-detail-info .product-pro { font-size: 14px; margin-bottom: 8px; }
.product-detail-description { font-size: 15.5px; line-height: 1.75; color: var(--text-secondary); margin-top: 28px; }
.product-detail-description h2, .product-detail-description h3 { color: var(--text-primary); margin: 24px 0 10px; }
.product-detail-description p { margin-bottom: 14px; }
.product-detail-zubehoer { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border); }
.product-detail-zubehoer h2 { font-size: 21px; color: var(--text-primary); margin-bottom: 16px; }
@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
}
