/* ===========================
   TestZuhause.de – Hauptstyle
   =========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #e85d04;
  --primary-dark: #c44d00;
  --secondary: #1a1a2e;
  --accent: #ffd166;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --success: #10b981;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* ===========================
   HEADER & NAV
   =========================== */

header {
  background: var(--secondary);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--primary);
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}

nav a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

nav a.active {
  color: var(--white);
  background: var(--primary);
}

/* ===========================
   HERO
   =========================== */

.hero {
  background: linear-gradient(135deg, var(--secondary) 0%, #16213e 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}

.hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-search {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-search input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.hero-search button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-search button:hover {
  background: var(--primary-dark);
}

/* ===========================
   KATEGORIEN
   =========================== */

.section {
  padding: 60px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--secondary);
}

.section-title span {
  color: var(--primary);
}

.see-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.category-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  border: 2px solid var(--border);
  transition: all 0.2s;
  display: block;
}

.category-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
  color: var(--text);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
}

.category-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-card p {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ===========================
   ARTIKEL-KARTEN
   =========================== */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.article-card-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
}

.article-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.article-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.article-category-tag {
  background: #f3f4f6;
  padding: 3px 10px;
  border-radius: 100px;
  font-weight: 600;
  color: var(--primary);
}

.article-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--text);
}

.article-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
  flex: 1;
  margin-bottom: 16px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.stars {
  color: var(--accent);
  font-size: 0.9rem;
}

.rating-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.rating-count {
  font-size: 0.8rem;
  color: var(--text-light);
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-align: center;
  cursor: pointer;
  border: none;
}

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

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

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

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

.btn-amazon {
  background: #ff9900;
  color: #1a1a1a;
  font-weight: 700;
  width: 100%;
  padding: 12px;
  font-size: 0.95rem;
  border-radius: 8px;
}

.btn-amazon:hover {
  background: #e68900;
  color: #1a1a1a;
}

/* ===========================
   BESTENLISTE / TOP-BOX
   =========================== */

.top-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  margin-bottom: 32px;
  border-left: 4px solid var(--primary);
}

.top-box-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.top-item:last-child {
  border-bottom: none;
}

.top-rank {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: white;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.top-rank.gold { background: #f59e0b; }
.top-rank.silver { background: #9ca3af; }
.top-rank.bronze { background: #d97706; }

.top-item-info {
  flex: 1;
}

.top-item-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.top-item-sub {
  font-size: 0.8rem;
  color: var(--text-light);
}

.top-item-price {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--primary);
  white-space: nowrap;
}

/* ===========================
   VERGLEICHS-TABELLE
   =========================== */

.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.compare-table th {
  background: var(--secondary);
  color: white;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 600;
}

.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: #f9fafb;
}

.badge-best {
  background: var(--success);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  text-transform: uppercase;
}

.check { color: var(--success); font-weight: 700; }
.cross { color: #ef4444; font-weight: 700; }

/* ===========================
   TRUST-ELEMENTE
   =========================== */

.trust-bar {
  background: var(--secondary);
  color: rgba(255,255,255,0.85);
  padding: 16px 24px;
}

.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.trust-icon {
  font-size: 1.2rem;
}

/* ===========================
   AFFILIATE DISCLAIMER
   =========================== */

.affiliate-notice {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: #92400e;
  margin: 16px 0 32px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* ===========================
   NEWSLETTER
   =========================== */

.newsletter {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 60px 24px;
  text-align: center;
}

.newsletter h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter p {
  opacity: 0.9;
  margin-bottom: 24px;
}

.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.newsletter-form input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  font-size: 0.95rem;
  outline: none;
}

.newsletter-form button {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
}

/* ===========================
   FOOTER
   =========================== */

footer {
  background: #111827;
  color: rgba(255,255,255,0.6);
  padding: 48px 24px 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.footer-brand span { color: var(--primary); }

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===========================
   RESPONSIVE
   =========================== */

@media (max-width: 768px) {
  nav { display: none; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-inner { gap: 20px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.8rem; }
}
