/* ============================================================
   style.css – Kennel & Schmenger inspired design
   ============================================================ */

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

:root {
  --primary:   #111111;
  --primary-h: #333333;
  --accent:    #111111;
  --text:      #111111;
  --muted:     #888888;
  --bg:        #ffffff;
  --card-bg:   #ffffff;
  --border:    #e0e0e0;
  --border-light: #f0f0f0;
  --radius:    0px;
  --font:      'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 14px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ---- Header ---- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
}
.site-header nav a {
  color: var(--text);
  text-decoration: none;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--muted); }

/* ---- Main ---- */
main.container { padding-top: 2.5rem; padding-bottom: 4rem; }

h1 {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
h2 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
  color: var(--text);
}
.lead {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 2rem;
}

/* ---- Kategorien ---- */
.cat-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 3rem;
}
.cat-card {
  display: inline-flex;
  flex-direction: column;
  background: #f4f4f4;
  padding: 1.1rem 1.5rem;
  text-decoration: none;
  color: var(--text);
  transition: background .15s, color .15s;
  border: 1px solid transparent;
}
.cat-card:hover {
  background: var(--text);
  color: #fff;
}
.cat-card:hover .cat-count { color: #aaa; }
.cat-name {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cat-count {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .25rem;
  letter-spacing: .04em;
}

/* ---- Produkt-Grid ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem 1.5rem;
}
.product-card {
  background: var(--card-bg);
}
.product-card a { text-decoration: none; color: inherit; display: block; }
.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: bottom center;
  background: #f8f8f8;
  display: block;
  transition: opacity .2s;
  padding: .5rem .5rem 0;
}
.product-card:hover img { opacity: .85; }
.no-image-sm {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f4f4;
  color: var(--muted);
  font-size: .8rem;
}
.card-body { padding: .75rem 0 0; }
.card-body h3 {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: .2rem;
}
.mfr {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .2rem;
}
.card-prices { display: flex; align-items: baseline; gap: .5rem; margin-top: .35rem; }
.card-price-old {
  font-size: .8rem;
  color: var(--muted);
  text-decoration: line-through;
}
.card-price {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.btn-card {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
}

/* ---- Breadcrumb ---- */
.breadcrumb { margin-bottom: 1.5rem; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.breadcrumb ol li + li::before { content: '/'; margin-right: .4rem; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* ---- Produkt-Detail ---- */
.product-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* Bildergalerie */
.product-image img#main-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: bottom center;
  background: #f8f8f8;
  display: block;
  padding: 1rem 1rem 0;
}
.image-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
}
.thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  object-position: bottom center;
  background: #f8f8f8;
  cursor: pointer;
  opacity: .65;
  transition: opacity .15s;
  display: block;
  padding: .25rem .25rem 0;
}
.thumb:hover, .thumb.active { opacity: 1; outline: 2px solid var(--text); outline-offset: -2px; }

/* Produktinfo */
.product-info h1 {
  font-size: 1.4rem;
  letter-spacing: .1em;
  margin-bottom: .5rem;
}
.description-text {
  font-size: .88rem;
  line-height: 1.75;
  color: #444;
  margin: .75rem 0 1.5rem;
}
.meta {
  font-size: .78rem;
  color: var(--muted);
  margin-bottom: .3rem;
  letter-spacing: .03em;
}
.meta strong { color: var(--text); }

/* Größenauswahl */
.size-selector { margin: 1.5rem 0; }
.size-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: .6rem;
}
.size-label strong {
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  font-size: .85rem;
}
.size-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.size-btn {
  min-width: 3.2rem;
  padding: .55rem .7rem;
  border: 1px solid var(--border);
  border-radius: 0;
  background: #fff;
  font-size: .82rem;
  font-weight: 600;
  font-family: var(--font);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: border-color .1s, background .1s;
  letter-spacing: .02em;
}
.size-btn:hover:not([data-unavailable]) {
  border-color: var(--text);
}
.size-btn.active {
  border-color: var(--text);
  background: var(--text);
  color: #fff;
}
.size-btn[data-unavailable] {
  opacity: .3;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Preis */
.price-box { margin: 1.5rem 0 .75rem; }
.price-old {
  font-size: .9rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-right: .5rem;
}
.price-savings {
  display: inline-block;
  background: #c00;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .1rem .4rem;
  margin-right: .5rem;
  letter-spacing: .03em;
}
.price {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
}
.price-box small {
  display: block;
  font-size: .75rem;
  color: var(--muted);
  margin-top: .3rem;
  letter-spacing: .02em;
}
.availability {
  font-size: .78rem;
  color: #2a7a2a;
  margin: .5rem 0 1.25rem;
  letter-spacing: .03em;
}

/* Kaufen-Button */
.btn-buy {
  display: block;
  width: 100%;
  background: var(--text);
  color: #fff;
  padding: 1rem 2rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  transition: background .15s;
  margin-bottom: .75rem;
  font-family: var(--font);
}
.btn-buy:hover { background: #333; }
.affiliate-note {
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .02em;
}

/* Produktbeschreibung */
.product-description { border-top: 1px solid var(--border); padding-top: 1.5rem; margin-top: 2rem; }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 3rem;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.pagination a { color: var(--text); text-decoration: none; font-weight: 700; }
.pagination a:hover { color: var(--muted); }

/* Footer */
.site-footer {
  background: var(--text);
  color: #888;
  padding: 2rem 0;
  font-size: .75rem;
  text-align: center;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-top: 4rem;
}
.site-footer a { color: #aaa; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.disclaimer {
  margin-top: .5rem;
  font-size: .7rem;
  color: #666;
  text-transform: none;
  letter-spacing: 0;
}

/* ---- Legal-Seiten (Impressum, Datenschutz) ---- */
.legal-page { max-width: 800px; }
.legal-page h1 { margin-bottom: 2rem; }
.legal-page section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border-light); }
.legal-page section:last-child { border-bottom: none; }
.legal-page h2 { margin: 0 0 .75rem; font-size: .78rem; }
.legal-page p { font-size: .9rem; line-height: 1.8; color: #333; margin-bottom: .75rem; }
.legal-page p:last-child { margin-bottom: 0; }
.legal-page ul { margin: .5rem 0 .75rem 1.5rem; }
.legal-page ul li { font-size: .9rem; line-height: 1.8; color: #333; }
.legal-page a { color: var(--text); }
.legal-page a:hover { color: var(--muted); }
