:root{
  --fg:#1a1a1a; --muted:#5a5a5a; --accent:#d35400; --accent-dark:#a84300;
  --bg:#fff; --card-bg:#fff; --border:#e5e5e5; --star:#f5a623; --chip:#fff3e0;
}
*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{margin:0;font-family:'Inter',-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;color:var(--fg);background:var(--bg);line-height:1.65;transition:background-color .25s ease,color .25s ease;}
.wrap{max-width:900px;margin:0 auto;padding:0 20px;}
header.site{max-width:900px;margin:0 auto;padding:14px 20px;font-weight:800;font-size:18px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;gap:12px;}
header.site a{color:var(--fg);text-decoration:none;}
main{padding-top:24px;padding-bottom:48px;}
footer.site{padding:24px 20px;color:var(--muted);font-size:14px;border-top:1px solid var(--border);margin-top:40px;text-align:center;}
footer.site a{color:var(--muted);}
.amz-note{margin:10px 0 0;font-size:13px;color:var(--muted);}

h1{font-size:30px;margin:20px 0 14px;line-height:1.25;text-align:center;}
.hero h1{text-align:left;}
h2{font-size:22px;margin:40px 0 14px;}
h3{font-size:17px;margin:0 0 6px;}
p.intro{font-size:18px;color:var(--muted);margin-top:0;}
.updated{color:var(--muted);font-size:13px;margin-bottom:20px;}

.werbung-banner{max-width:900px;margin:0 auto;background:var(--chip);color:#7a4a00;text-align:center;padding:10px 16px;font-size:14px;font-weight:600;border-radius:0 0 8px 8px;}

/* theme toggle */
.theme-toggle{width:34px;height:34px;flex:0 0 auto;border-radius:50%;border:1px solid var(--border);background:var(--card-bg);cursor:pointer;font-size:15px;display:flex;align-items:center;justify-content:center;transition:transform .2s ease,background-color .25s ease;padding:0;}
.theme-toggle:hover{transform:scale(1.08);}
.theme-toggle .icon-sun{display:none;}
:root[data-theme="dark"] .theme-toggle .icon-moon{display:none;}
:root[data-theme="dark"] .theme-toggle .icon-sun{display:inline;}

/* product comparison cards */
.product-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px;margin:24px 0 32px;}
.product-card{border:1px solid var(--border);border-radius:10px;padding:14px;background:var(--card-bg);display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease,background-color .25s ease,border-color .25s ease;animation:fadeInUp .5s ease both;}
.product-card:hover{transform:translateY(-4px);box-shadow:0 10px 24px rgba(0,0,0,.08);}
.product-img-wrap{width:100%;height:150px;border-radius:6px;background:#fafafa;margin-bottom:10px;overflow:hidden;}
.product-card img{width:100%;height:150px;object-fit:contain;display:block;transition:transform .35s ease;}
.product-card:hover img{transform:scale(1.12);}
.product-card .badge{display:inline-block;background:#111;color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:4px;margin-bottom:8px;width:fit-content;}
.product-card h3{margin-bottom:4px;}
.stars{color:var(--star);font-size:15px;letter-spacing:1px;}
.rating-line{font-size:13px;color:var(--muted);margin:4px 0 10px;}
.price-note{font-size:13px;color:var(--muted);margin-bottom:10px;}
.product-card .cta{margin-top:auto;display:block;text-align:center;background:var(--accent);color:#fff;padding:10px 14px;border-radius:6px;text-decoration:none;font-weight:700;font-size:14px;transition:background-color .2s ease;}
.product-card .cta:hover{background:var(--accent-dark);}

/* review badge -- real Amazon rating/count, links to the real Amazon reviews page, never invented quotes */
.review-badge{display:flex;align-items:center;justify-content:space-between;gap:8px;background:var(--chip);border-radius:6px;padding:7px 10px;margin:8px 0 12px;text-decoration:none;font-size:12.5px;color:var(--fg);transition:background-color .2s ease,transform .15s ease;}
.review-badge:hover{transform:translateX(2px);}
.review-badge .rb-stars{color:var(--star);letter-spacing:1px;}
.review-badge .rb-arrow{color:var(--accent);font-weight:700;white-space:nowrap;}

/* comparison table (scrolls on mobile) */
.table-scroll{overflow-x:auto;margin:24px 0;}
table{width:100%;border-collapse:collapse;min-width:560px;}
table th,table td{border:1px solid var(--border);padding:10px 12px;text-align:left;font-size:14px;}
table th{background:#fafafa;}

.cta-block{margin:32px 0;text-align:center;}
.cta-block a{display:inline-block;background:var(--accent);color:#fff;padding:14px 30px;border-radius:6px;text-decoration:none;font-weight:700;transition:background-color .2s ease,transform .15s ease;}
.cta-block a:hover{background:var(--accent-dark);transform:translateY(-2px);}

ul#article-list,ul.article-list{list-style:none;padding:0;}
ul#article-list li,ul.article-list li{padding:14px 0;border-bottom:1px solid var(--border);animation:fadeInUp .5s ease both;}
ul#article-list a,ul.article-list a{color:var(--fg);text-decoration:none;font-weight:700;font-size:17px;}
ul#article-list .meta,ul.article-list .meta{color:var(--muted);font-size:13px;margin-top:4px;}

.hero{background:linear-gradient(135deg,#fff3e0,#ffffff);border-radius:12px;padding:28px 24px;margin-bottom:8px;animation:fadeInUp .6s ease both;transition:background .25s ease;}
.hero h1{margin-bottom:8px;}
.hero p{color:var(--muted);font-size:17px;margin:0;}
.featured-link{display:block;margin-top:18px;background:var(--accent);color:#fff;text-align:center;padding:12px 20px;border-radius:6px;text-decoration:none;font-weight:700;width:fit-content;transition:background-color .2s ease,transform .15s ease;}
.featured-link:hover{background:var(--accent-dark);transform:translateY(-2px);}

/* animations */
@keyframes fadeInUp{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:translateY(0);}}
main > *{animation:fadeInUp .45s ease both;}
.product-grid .product-card:nth-child(1){animation-delay:.02s;}
.product-grid .product-card:nth-child(2){animation-delay:.06s;}
.product-grid .product-card:nth-child(3){animation-delay:.10s;}
.product-grid .product-card:nth-child(4){animation-delay:.14s;}
.product-grid .product-card:nth-child(5){animation-delay:.18s;}
.product-grid .product-card:nth-child(6){animation-delay:.22s;}
.product-grid .product-card:nth-child(7){animation-delay:.26s;}
.product-grid .product-card:nth-child(8){animation-delay:.30s;}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important;animation-iteration-count:1 !important;transition-duration:.001ms !important;}
}

@media (max-width:480px){
  h1{font-size:24px;}
  .hero{padding:20px 16px;}
  .product-card img{height:120px;}
}

/* dark mode: system preference (only when user hasn't explicitly chosen light) */
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){--fg:#eee;--muted:#aaa;--bg:#121212;--card-bg:#1b1b1b;--border:#333;--chip:#3a2a10;}
  :root:not([data-theme="light"]) table th{background:#1c1c1c;}
  :root:not([data-theme="light"]) .product-card img{background:#0d0d0d;}
  :root:not([data-theme="light"]) .hero{background:linear-gradient(135deg,#3a2a10,#121212);}
}
/* dark mode: explicit user choice via toggle (cookie-backed), overrides system preference either way */
:root[data-theme="dark"]{--fg:#eee;--muted:#aaa;--bg:#121212;--card-bg:#1b1b1b;--border:#333;--chip:#3a2a10;}
:root[data-theme="dark"] table th{background:#1c1c1c;}
:root[data-theme="dark"] .product-card img{background:#0d0d0d;}
:root[data-theme="dark"] .hero{background:linear-gradient(135deg,#3a2a10,#121212);}
