/* assets/style.css */

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

:root {
  --primary:   #2563eb;
  --primary-h: #1d4ed8;
  --text:      #1e293b;
  --muted:     #64748b;
  --bg:        #f8fafc;
  --card-bg:   #ffffff;
  --border:    #e2e8f0;
  --radius:    8px;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container { display: flex; align-items: center; gap: 2rem; }
.logo { font-size: 1.3rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.site-header nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.site-header nav a:hover { color: var(--primary); }

/* Main */
main.container { padding-top: 2rem; padding-bottom: 3rem; }

h1 { font-size: 2rem; margin-bottom: .5rem; }
h2 { font-size: 1.4rem; margin: 2rem 0 1rem; }
.lead { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.5rem; }

/* Kategorien-Grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.cat-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .15s, border-color .15s;
}
.cat-card:hover { border-color: var(--primary); box-shadow: 0 2px 12px rgba(37,99,235,.15); }
.cat-name { font-weight: 600; }
.cat-count { font-size: .85rem; color: var(--muted); margin-top: .25rem; }

/* Produkt-Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow .15s;
}
.product-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.product-card a { text-decoration: none; color: inherit; display: block; }
.product-card img { width: 100%; height: 200px; object-fit: contain; padding: .5rem; }
.no-image-sm { height: 200px; display: flex; align-items: center; justify-content: center; background: #f1f5f9; color: var(--muted); font-size: .85rem; }
.card-body { padding: .75rem 1rem 1rem; }
.card-body h3 { font-size: .95rem; font-weight: 600; margin-bottom: .25rem; }
.mfr { font-size: .8rem; color: var(--muted); margin-bottom: .25rem; }
.card-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin: .5rem 0; }
.btn-card {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: .4rem .9rem;
  border-radius: 4px;
  font-size: .85rem;
  margin-top: .5rem;
}

/* Breadcrumb */
.breadcrumb { margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; gap: .5rem; flex-wrap: wrap; font-size: .875rem; color: var(--muted); }
.breadcrumb ol li + li::before { content: '/'; margin-right: .5rem; }
.breadcrumb a { color: var(--primary); text-decoration: none; }

/* Produkt-Detail */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 700px) { .product-layout { grid-template-columns: 1fr; } }

.product-image img {
  width: 100%;
  max-height: 450px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
}
.product-info h1 { font-size: 1.5rem; margin-bottom: .75rem; }
.meta { font-size: .9rem; color: var(--muted); margin-bottom: .4rem; }
.price-box { margin: 1.25rem 0; }
.price-old { font-size: 1rem; color: var(--muted); text-decoration: line-through; margin-right: .5rem; }
.price-savings {
  display: inline-block;
  background: #dc2626;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 4px;
  margin-right: .5rem;
  vertical-align: middle;
}
.price { font-size: 2rem; font-weight: 700; color: var(--primary); }
.price-box small { display: block; font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.availability { font-size: .9rem; color: #16a34a; margin: .5rem 0 1rem; }

.btn-buy {
  display: inline-block;
  background: #16a34a;
  color: #fff;
  padding: .8rem 2rem;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s;
  margin-bottom: .75rem;
}
.btn-buy:hover { background: #15803d; }

.affiliate-note { font-size: .78rem; color: var(--muted); }

.product-description { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.description-text { font-size: .95rem; line-height: 1.8; max-width: 750px; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 2rem; }
.pagination a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--text);
  color: #cbd5e1;
  padding: 1.5rem 0;
  font-size: .85rem;
  text-align: center;
}
.site-footer a { color: #93c5fd; text-decoration: none; }
.disclaimer { margin-top: .5rem; font-size: .78rem; color: #94a3b8; }
