/* Self-hosted styles, no external fonts or CDNs (SHOP-SPEC §12). */

/* ---------- Tokens ---------- */
:root {
  --olive-900: #26331d;
  --olive-800: #32421f;
  --olive-700: #3f5230;
  --olive-600: #4c6339;
  --olive-500: #5f7a47;
  --olive-100: #e8ecdd;
  --gold-600: #a97e2f;
  --gold-100: #f3e8cf;
  --creme: #f7f4ec;
  --sand: #efe8da;
  --linie: #e5ddcc;
  --flaeche: #ffffff;
  --text: #26251f;
  --grau: #6d6b60;
  --rot: #a33c2e;
  --rot-hell: #fbe9e5;
  --radius: 14px;
  --radius-klein: 9px;
  --schatten: 0 1px 2px rgba(38, 51, 29, 0.06), 0 8px 24px -12px rgba(38, 51, 29, 0.18);
  --schatten-hover: 0 2px 4px rgba(38, 51, 29, 0.08), 0 16px 32px -12px rgba(38, 51, 29, 0.26);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--creme);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--olive-900); font-weight: 600; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem); margin: 0.4em 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem); margin: 1.4em 0 0.6em; }
.innen { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
a { color: var(--olive-700); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--olive-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--olive-100); }

/* ---------- USP-Leiste ---------- */
.usp-leiste { background: var(--olive-900); color: #e9ecdf; font-size: 0.82rem; }
.usp-leiste .innen { display: flex; justify-content: center; gap: 2.2rem; padding: 0.45rem 1.25rem; flex-wrap: wrap; }
.usp-leiste span { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.usp-leiste svg { flex: none; opacity: 0.85; }

/* ---------- Header ---------- */
.kopf {
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--linie);
  position: sticky; top: 0; z-index: 50;
}
.kopf .innen { display: flex; align-items: center; gap: 1.75rem; padding: 0.7rem 1.25rem; }
.logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--serif); font-weight: 700; font-size: 1.22rem;
  text-decoration: none; color: var(--olive-900); letter-spacing: -0.01em;
}
.logo svg { flex: none; }
.hauptnav { display: flex; gap: 0.25rem; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.hauptnav::-webkit-scrollbar { display: none; }
.hauptnav a {
  text-decoration: none; color: var(--text); font-size: 0.95rem; font-weight: 500;
  padding: 0.4rem 0.75rem; border-radius: 999px; white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.hauptnav a:hover { background: var(--olive-100); color: var(--olive-900); }
.korb-link {
  margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  color: #fff; background: var(--olive-700);
  padding: 0.5rem 1.05rem; border-radius: 999px;
  box-shadow: var(--schatten);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.korb-link:hover { background: var(--olive-800); box-shadow: var(--schatten-hover); transform: translateY(-1px); }
.korb-link svg { flex: none; }
.korb-zahl {
  background: var(--gold-100); color: var(--olive-900);
  font-size: 0.78rem; font-weight: 700; line-height: 1;
  padding: 0.22rem 0.5rem; border-radius: 999px;
}

main { padding: 1.75rem 0 4rem; }
main.innen { padding-left: 1.25rem; padding-right: 1.25rem; }

/* ---------- Hero (Startseite) ---------- */
.hero {
  position: relative; overflow: hidden;
  border: 1px solid var(--linie); border-radius: calc(var(--radius) + 6px);
  margin: 0.5rem 0 2.5rem;
  box-shadow: var(--schatten);
}
/* Banner image 1440x544, quiet left half — text sits on the calm side */
.hero-hintergrund {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center; z-index: 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(247, 244, 236, 0.94) 0%, rgba(247, 244, 236, 0.72) 42%, rgba(247, 244, 236, 0) 68%);
}
.hero-inhalt { position: relative; z-index: 2; max-width: 58%; padding: clamp(1.6rem, 4.5vw, 3.5rem); }
.hero h1 { margin-top: 0; }
.hero .einleitung { font-size: 1.06rem; max-width: 44ch; color: #3d3c33; }
.hero-aktionen { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-siegel {
  position: absolute; right: 1.2rem; bottom: 1.1rem; z-index: 2;
  background: var(--olive-900); color: #f0edd9;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.45rem 0.9rem; border-radius: 999px; box-shadow: var(--schatten-hover);
}

/* ---------- Stufen-Kacheln ---------- */
.stufen { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.2rem; margin: 1.6rem 0 2.4rem; }
.stufe {
  position: relative; display: block; background: var(--flaeche);
  border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 0; text-decoration: none; color: var(--text);
  box-shadow: var(--schatten); overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.stufe:hover { transform: translateY(-3px); box-shadow: var(--schatten-hover); border-color: var(--olive-500); }
.stufe-bild { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform 0.25s ease; }
.stufe:hover .stufe-bild { transform: scale(1.04); }
.stufe-text { padding: 1.1rem 1.3rem 1.25rem; }
.stufe h2 { margin: 0 0 0.35rem; font-size: 1.18rem; }
.stufe p { margin: 0 0 0.75rem; color: #45443a; font-size: 0.94rem; }
.stufe .anzahl {
  display: inline-block; background: var(--olive-100); color: var(--olive-800);
  font-size: 0.82rem; font-weight: 600; padding: 0.25rem 0.7rem; border-radius: 999px;
}
.stufe .anzahl::after { content: " →"; }

/* ---------- Abschnittsköpfe ---------- */
.abschnittskopf { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.abschnittskopf .mehr-link { font-weight: 600; text-decoration: none; white-space: nowrap; }
.abschnittskopf .mehr-link:hover { text-decoration: underline; }

/* ---------- Produktraster & Karten ---------- */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(225px, 1fr)); gap: 1.4rem; margin: 1.4rem 0; }
.karte {
  position: relative; display: flex; flex-direction: column;
  background: var(--flaeche); border: 1px solid var(--linie);
  border-radius: var(--radius); padding: 0.85rem 0.85rem 1.05rem;
  box-shadow: var(--schatten);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.karte:hover { transform: translateY(-3px); box-shadow: var(--schatten-hover); border-color: var(--olive-500); }
.karte > a { text-decoration: none; color: inherit; display: block; }
.karten-bild { position: relative; border-radius: var(--radius-klein); overflow: hidden; background: #fff; border: 1px solid var(--sand); }
.karte img, .bild-platzhalter {
  width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; display: block;
  transition: transform 0.25s ease;
}
.karte:hover .karten-bild img { transform: scale(1.045); }
.bild-platzhalter { display: flex; align-items: center; justify-content: center; color: var(--grau); font-size: 0.9rem; background: var(--sand); }
.bild-platzhalter.gross { max-width: 480px; border-radius: var(--radius); }
.chip {
  position: absolute; top: 0.6rem; left: 0.6rem;
  background: var(--olive-900); color: #f0edd9;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.28rem 0.65rem; border-radius: 999px;
}
.karte h3 { font-family: inherit; font-size: 0.97rem; font-weight: 600; margin: 0.7rem 0 0.15rem; color: var(--text); line-height: 1.35; }
.attribute { color: var(--grau); font-size: 0.84rem; margin: 0.15rem 0; }
.preis { margin: auto 0 0; padding-top: 0.5rem; }
.preis strong { font-size: 1.12rem; color: var(--olive-900); }
.preis.gross strong { font-size: 1.9rem; letter-spacing: -0.01em; }
.grundpreis { color: var(--grau); font-size: 0.84rem; }
.karte.ausverkauft .karten-bild img { opacity: 0.45; filter: grayscale(0.6); }
.hinweis-ausverkauft { color: var(--rot); font-size: 0.9rem; font-weight: 500; }

/* ---------- Produktdetail ---------- */
.produkt-detail { display: grid; grid-template-columns: minmax(300px, 1fr) minmax(320px, 1.15fr); gap: 2.5rem; align-items: start; }
/* aspect-ratio reserves the box before the image loads (CLS < 0.1, SPEC §12) */
.produkt-bilder img {
  width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff;
  border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); margin-bottom: 1rem;
}
.produkt-info h1 { margin-top: 0; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); }
.kauf-kasten {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin: 1rem 0 1.6rem; box-shadow: var(--schatten);
}
.kauf-kasten .preis { padding-top: 0; margin-bottom: 0.15rem; }
.preis-hinweise { color: var(--grau); font-size: 0.88rem; margin-top: 0.2rem; }
.kauf-form { display: flex; align-items: flex-end; gap: 0.9rem; flex-wrap: wrap; margin-top: 1rem; }
.kauf-form label { font-size: 0.88rem; color: var(--grau); display: block; }
.kauf-form input[type="number"] { margin-top: 0.25rem; }
.lieferbar-punkt { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.88rem; color: var(--olive-700); font-weight: 600; }
.lieferbar-punkt::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--olive-500); }
.attribute-tabelle { border-collapse: collapse; margin: 1.4rem 0; width: 100%; background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius-klein); overflow: hidden; }
.attribute-tabelle th, .attribute-tabelle td { text-align: left; padding: 0.55rem 1rem; border-bottom: 1px solid var(--sand); font-size: 0.93rem; }
.attribute-tabelle tr:last-child th, .attribute-tabelle tr:last-child td { border-bottom: none; }
.attribute-tabelle th { color: var(--grau); font-weight: 500; white-space: nowrap; width: 38%; }
.beschreibung { max-width: 62ch; }
.inci h2 { font-size: 1.1rem; }
.inci p { font-size: 0.88rem; color: var(--grau); max-width: 68ch; }

/* ---------- Buttons & Formulare ---------- */
.knopf, .knopf-sekundaer, .knopf-klein {
  display: inline-block; border: none; border-radius: 999px; cursor: pointer;
  text-decoration: none; font-size: 1rem; font-weight: 600; font-family: inherit;
  padding: 0.7rem 1.6rem;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.knopf { background: var(--olive-700); color: #fff; box-shadow: var(--schatten); }
.knopf:hover { background: var(--olive-800); box-shadow: var(--schatten-hover); transform: translateY(-1px); }
.knopf[disabled] { background: var(--grau); cursor: not-allowed; box-shadow: none; transform: none; }
.knopf-sekundaer { background: var(--flaeche); border: 1.5px solid var(--olive-600); color: var(--olive-800); }
.knopf-sekundaer:hover { background: var(--olive-100); border-color: var(--olive-800); }
.knopf-klein { padding: 0.35rem 0.85rem; font-size: 0.84rem; background: var(--sand); color: var(--text); font-weight: 500; }
.knopf-klein:hover { background: var(--linie); }
input[type="number"], input[type="text"], input[type="email"] {
  font: inherit; padding: 0.55rem 0.7rem;
  border: 1.5px solid var(--linie); border-radius: var(--radius-klein);
  background: #fff; color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input[type="number"]:focus, input[type="text"]:focus, input[type="email"]:focus {
  outline: none; border-color: var(--olive-600); box-shadow: 0 0 0 3px var(--olive-100);
}
input[type="number"] { width: 5rem; }
.adress-form label { display: block; margin: 0.85rem 0; font-size: 0.93rem; font-weight: 500; }
.adress-form input { display: block; width: 100%; max-width: 460px; margin-top: 0.3rem; }
.adress-form .zeile { display: flex; gap: 1rem; max-width: 460px; }
.adress-form .zeile label { flex: 1; }
.adress-form .zeile label:first-child { flex: 0 0 8.5rem; }
.agb-haken { display: block; margin: 1.2rem 0; font-weight: 400 !important; }
.agb-haken input { margin-right: 0.45rem; accent-color: var(--olive-700); }
.fehlerkasten {
  background: var(--rot-hell); border: 1px solid var(--rot); border-radius: var(--radius-klein);
  padding: 0.7rem 1.1rem; margin-bottom: 1.2rem; color: var(--rot);
}
.fehlerkasten p { margin: 0.25rem 0; }

/* ---------- Warenkorb & Kasse ---------- */
.korb-karte, .kassen-karte {
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 0.5rem 1.25rem; overflow-x: auto;
}
.kassen-karte { padding: 1.25rem 1.5rem; }
.kassen-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; align-items: start; margin-top: 1.2rem; }
.korb-tabelle { width: 100%; border-collapse: collapse; }
.korb-tabelle th, .korb-tabelle td { text-align: left; padding: 0.75rem 0.6rem; border-bottom: 1px solid var(--sand); vertical-align: top; }
.korb-tabelle thead th { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--grau); font-weight: 600; }
.korb-tabelle tr:last-child td { border-bottom: none; }
.korb-tabelle .gesamt td { border-top: 2px solid var(--olive-100); font-size: 1.05rem; }
.korb-summen {
  margin-top: 1.4rem; margin-left: auto; max-width: 380px;
  background: var(--flaeche); border: 1px solid var(--linie); border-radius: var(--radius);
  box-shadow: var(--schatten); padding: 1.1rem 1.4rem 1.3rem; text-align: right;
}
.korb-summen p { margin: 0.35rem 0; }
.korb-summen .gesamt { font-size: 1.25rem; margin-top: 0.6rem; }
.korb-summen .knopf { margin-top: 0.9rem; width: 100%; text-align: center; }
.mengen-form { display: flex; gap: 0.45rem; align-items: center; }
.weiter-einkaufen { margin-top: 1rem; }

/* ---------- Status / Bestellung ---------- */
.status-kasten {
  background: var(--flaeche); border: 1px solid var(--linie); border-left: 5px solid var(--olive-600);
  border-radius: var(--radius-klein); box-shadow: var(--schatten);
  padding: 1rem 1.3rem; margin: 1.2rem 0; max-width: 68ch;
}

/* ---------- Misc ---------- */
.brotkruemel { font-size: 0.85rem; color: var(--grau); margin-bottom: 1.2rem; }
.brotkruemel a { color: var(--grau); }
.brotkruemel a:hover { color: var(--olive-800); }
.einleitung { max-width: 65ch; }
.facetten-einleitung p { margin: 0.5rem 0 0.9rem; }
.ratgeber-verweis { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); color: var(--grau); }
.platzhalter-text {
  background: #fdf3d7; border: 1px dashed #d9b23c; padding: 0.6rem 0.9rem;
  border-radius: var(--radius-klein); color: #7a5d10; font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.fuss { background: var(--olive-900); color: #d9ddc9; margin-top: 3rem; }
.fuss .innen { padding: 2.4rem 1.25rem 1.6rem; }
.fuss-spalten { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; margin-bottom: 1.8rem; }
.fuss h2 { color: #f0edd9; font-size: 1.05rem; margin: 0 0 0.7rem; }
.fuss-marke { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: #f0edd9; margin: 0 0 0.5rem; }
.fuss-spalten p { font-size: 0.9rem; margin: 0.3rem 0; }
.fuss nav { display: flex; flex-direction: column; gap: 0.45rem; }
.fuss a { color: #d9ddc9; text-decoration: none; font-size: 0.92rem; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-unten { border-top: 1px solid rgba(240, 237, 217, 0.18); padding-top: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.fuss-hinweis { font-size: 0.84rem; color: #aab098; margin: 0; }
.fuss-hinweis a { color: #aab098; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-inhalt { max-width: 100%; }
  .hero::before { background: rgba(247, 244, 236, 0.82); }
  .hero-siegel { position: static; display: inline-block; margin: 0 0 1.2rem clamp(1.6rem, 4.5vw, 3.5rem); }
  .produkt-detail { grid-template-columns: 1fr; }
  .kassen-spalten { grid-template-columns: 1fr; }
  .fuss-spalten { grid-template-columns: 1fr; gap: 1.4rem; }
}
@media (max-width: 640px) {
  .kopf .innen { gap: 0.8rem; flex-wrap: wrap; }
  .hauptnav { order: 3; flex-basis: 100%; margin: 0 -1.25rem; padding: 0 1.25rem 0.3rem; }
  .usp-leiste .innen { gap: 1.1rem; justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .usp-leiste .innen::-webkit-scrollbar { display: none; }
  .raster { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem; }
  .korb-summen { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  html { scroll-behavior: auto; }
}
