/* Holzschrauben.com - Shop-Stylesheet
   Layout-Prinzipien orientiert an HECO (helles Theme, klare Sans-Serif,
   Filterleiste links, Produkt-Grid rechts). Akzentfarbe: tiefes Blau.
*/

:root {
  --akzent: #0d3b66;
  --akzent-dunkel: #082544;
  --akzent-hover: #1d5a99;
  --bg: #ffffff;
  --bg-grau: #f5f6f8;
  --bg-warm: #faf6ee;
  --text: #1a1a1a;
  --text-leise: #5a5a5a;
  --rand: #e2e5ea;
  --rand-stark: #c8ccd3;
  --erfolg: #2c8a3a;
  --max-breite: 1280px;
  --gap: 1.25rem;
  --rad: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px; line-height: 1.5;
}

a { color: var(--akzent); text-decoration: none; }
a:hover { color: var(--akzent-hover); text-decoration: underline; }

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

.container { max-width: var(--max-breite); margin: 0 auto; padding: 0 1rem; }

/* ---------------- Kopfzeile ---------------- */

.kopf {
  background: var(--bg);
  border-bottom: 1px solid var(--rand);
  position: sticky; top: 0; z-index: 50;
}
.kopf-zeile {
  display: flex; align-items: center; gap: var(--gap);
  padding: 0.75rem 1rem; max-width: var(--max-breite); margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--akzent); font-size: 1.25rem; }
.logo:hover { text-decoration: none; }
.logo-mark {
  display: inline-block; width: 36px; height: 36px; border-radius: var(--rad);
  background: var(--akzent); color: #fff; font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0.5px;
}
.logo-text { color: var(--text); }
.logo-tld { color: var(--akzent); }

.suche-form {
  flex: 1; display: flex; position: relative; max-width: 720px;
}
.suche-input {
  flex: 1; padding: 0.6rem 0.9rem;
  border: 1px solid var(--rand-stark); border-right: 0;
  border-radius: var(--rad) 0 0 var(--rad);
  font-size: 1rem; outline: none;
}
.suche-input:focus { border-color: var(--akzent); }
.suche-button {
  background: var(--akzent); color: #fff; border: 0;
  padding: 0 1rem; border-radius: 0 var(--rad) var(--rad) 0;
  font-weight: 600; cursor: pointer;
}
.suche-button:hover { background: var(--akzent-hover); }
.suche-vorschlag {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff; border: 1px solid var(--rand);
  list-style: none; margin: 4px 0 0; padding: 0; max-height: 360px; overflow: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08); z-index: 10;
}
.suche-vorschlag li a {
  display: flex; gap: 0.6rem; align-items: center; padding: 0.5rem 0.75rem; color: var(--text);
}
.suche-vorschlag li a:hover { background: var(--bg-grau); text-decoration: none; }
.suche-vorschlag img { width: 32px; height: 32px; object-fit: contain; }

.kopf-meta { display: flex; gap: 1rem; }

.kategorie-nav {
  border-top: 1px solid var(--rand);
  background: var(--bg-grau);
}
.kategorie-nav ul {
  list-style: none; margin: 0; padding: 0.5rem 1rem;
  display: flex; gap: 1.25rem; flex-wrap: wrap; max-width: var(--max-breite);
}
.kategorie-nav a { color: var(--text); font-weight: 500; padding: 0.25rem 0; }
.kategorie-nav a:hover { color: var(--akzent); text-decoration: none; }
.kategorie-nav .leer { color: var(--text-leise); font-style: italic; }

/* ---------------- Hauptinhalt ---------------- */

main { padding: 1.5rem 1rem 4rem; max-width: var(--max-breite); margin: 0 auto; }

h1, h2, h3 { color: var(--akzent-dunkel); }
h1 { font-size: 1.8rem; margin: 0 0 0.5rem; }
h2 { font-size: 1.3rem; margin: 1.5rem 0 0.75rem; }

/* ---------------- Hero / Startseite ---------------- */

.hero {
  background: linear-gradient(135deg, var(--bg-warm) 0%, #fff 100%);
  border: 1px solid var(--rand);
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  margin-bottom: 2rem;
}
.hero-text h1 { color: var(--akzent-dunkel); font-size: 2.2rem; margin-bottom: 0.5rem; }
.hero-text p { color: var(--text-leise); font-size: 1.1rem; max-width: 60ch; }

.button-primaer {
  display: inline-block;
  background: var(--akzent); color: #fff;
  padding: 0.7rem 1.4rem; border-radius: var(--rad);
  border: 0; font-weight: 600; cursor: pointer;
  margin-top: 1rem; text-decoration: none;
}
.button-primaer:hover { background: var(--akzent-hover); color: #fff; text-decoration: none; }
.button-primaer:disabled { background: var(--rand-stark); cursor: not-allowed; }

.kategorien-tiles .tiles {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.tile {
  background: var(--bg-grau);
  border: 1px solid var(--rand);
  padding: 1.5rem 1rem;
  border-radius: var(--rad);
  display: flex; flex-direction: column; gap: 0.4rem;
  color: var(--text);
}
.tile:hover { border-color: var(--akzent); text-decoration: none; }
.tile-name { font-weight: 600; font-size: 1.1rem; color: var(--akzent-dunkel); }
.tile-kinder { color: var(--text-leise); font-size: 0.9rem; }

/* ---------------- Kategorie-Layout ---------------- */

.kategorie-kopf { margin-bottom: 1rem; }
.kategorie-kopf .meta { color: var(--text-leise); margin: 0; }

.kategorie-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 2rem;
}
@media (max-width: 800px) {
  .kategorie-layout { grid-template-columns: 1fr; }
}

.filter-form {
  background: var(--bg-grau);
  border: 1px solid var(--rand);
  border-radius: var(--rad);
  padding: 1rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}
.filter-form fieldset { border: 0; padding: 0; margin: 0; }
.filter-form legend { font-weight: 600; margin-bottom: 0.25rem; color: var(--akzent-dunkel); }
.filter-form select {
  width: 100%; padding: 0.4rem; border: 1px solid var(--rand-stark);
  border-radius: var(--rad); background: #fff;
}
.filter-form .reset { color: var(--text-leise); text-align: center; }

/* ---------------- Produkt-Grid ---------------- */

.produkt-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.produkt-karte {
  background: #fff; border: 1px solid var(--rand); border-radius: var(--rad);
  padding: 0.75rem; color: var(--text); display: flex; flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.produkt-karte:hover {
  border-color: var(--akzent); text-decoration: none;
  box-shadow: 0 4px 14px rgba(13,59,102,0.08);
}
.produkt-karte img {
  aspect-ratio: 1 / 1; object-fit: contain; background: #fff;
  margin-bottom: 0.6rem;
}
.bild-platzhalter {
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center;
  background: var(--bg-grau); color: var(--text-leise);
  border: 1px dashed var(--rand-stark); border-radius: var(--rad);
  margin-bottom: 0.6rem;
}
.bild-platzhalter.gross { aspect-ratio: 4/3; }
.produkt-name { font-weight: 500; flex: 1; }
.produkt-preis { font-weight: 700; color: var(--akzent-dunkel); margin-top: 0.4rem; }
.preis-anfrage { color: var(--text-leise); font-style: italic; font-weight: 400; }

.pagination { margin-top: 1.5rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pagination .seite {
  border: 1px solid var(--rand); padding: 0.4rem 0.7rem; border-radius: var(--rad);
  color: var(--text);
}
.pagination .seite:hover { border-color: var(--akzent); text-decoration: none; }
.pagination .seite.aktiv { background: var(--akzent); color: #fff; border-color: var(--akzent); }

/* ---------------- Detailseite ---------------- */

.breadcrumb { color: var(--text-leise); margin-bottom: 0.75rem; font-size: 0.9rem; }
.breadcrumb a { color: var(--text-leise); }
.breadcrumb a:hover { color: var(--akzent); }

.artikel-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
  background: #fff; border: 1px solid var(--rand); border-radius: 8px;
  padding: 1.5rem;
}
@media (max-width: 800px) { .artikel-detail { grid-template-columns: 1fr; } }

.galerie #haupt-bild {
  width: 100%; aspect-ratio: 1/1; object-fit: contain;
  background: var(--bg-grau); border-radius: var(--rad);
}
.thumbs { display: flex; gap: 0.4rem; margin-top: 0.6rem; flex-wrap: wrap; }
.thumb { background: #fff; border: 1px solid var(--rand); border-radius: var(--rad); padding: 0; cursor: pointer; }
.thumb img { width: 64px; height: 64px; object-fit: contain; }
.thumb.aktiv { border-color: var(--akzent); }

.info .hersteller { color: var(--text-leise); }
.preisbox {
  background: var(--bg-warm); border: 1px solid var(--rand);
  border-radius: var(--rad); padding: 1rem; margin: 1rem 0;
}
.preis-aktuell { font-size: 1.6rem; font-weight: 700; color: var(--akzent-dunkel); }
.preis-aktuell small { display: block; font-size: 0.8rem; color: var(--text-leise); font-weight: 400; margin-top: 0.2rem; }
.staffel { width: 100%; border-collapse: collapse; margin: 0.75rem 0; }
.staffel caption { text-align: left; font-weight: 600; padding-bottom: 0.3rem; }
.staffel th, .staffel td { padding: 0.3rem 0.5rem; text-align: left; border-bottom: 1px solid var(--rand); }

.specs dl {
  display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1rem;
}
.specs dt { color: var(--text-leise); }
.specs dd { margin: 0; font-weight: 500; }

.beschreibung { margin-top: 1.5rem; }

/* ---------------- Footer ---------------- */

.fuss { background: var(--bg-grau); border-top: 1px solid var(--rand); margin-top: 3rem; padding: 2rem 1rem 1rem; }
.fuss-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; }
.fuss h3 { margin-top: 0; font-size: 1rem; }
.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 0.3rem; }
.fuss-unten { padding-top: 1rem; margin-top: 1.5rem; border-top: 1px solid var(--rand); color: var(--text-leise); font-size: 0.85rem; }

/* ---------------- Cookie-Banner ---------------- */

.cookie-banner {
  position: fixed; bottom: 1rem; left: 1rem; right: 1rem;
  background: #fff; border: 1px solid var(--rand-stark); border-radius: var(--rad);
  padding: 0.8rem 1rem; box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  display: flex; align-items: center; gap: 1rem; max-width: 720px; margin: 0 auto;
}
.cookie-banner button { background: var(--akzent); color: #fff; border: 0; padding: 0.4rem 1rem; border-radius: var(--rad); cursor: pointer; }

/* ---------------- Sonstiges ---------------- */

.leer { color: var(--text-leise); font-style: italic; }
.leerseite { padding: 2rem 0; text-align: center; }
.verwandte { margin-top: 2rem; }
