/* ============================================================
   Biohof Hirnschall — Styles
   Natürliche Farbwelt (Erd-/Grüntöne) mit dem Logo-Gelb als Akzent.
   Kein Framework, keine Abhängigkeiten.
   ============================================================ */

/* ---------- Schrift: Nunito (lokal gehostet, DSGVO-konform) ----------
   Variable Font – eine Datei deckt die Schnitte 400–700 ab. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/nunito-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Farben */
  --bg:        #f6f2e7;  /* warmes Cremeweiß  */
  --surface:   #fffdf7;  /* Karten/Flächen    */
  --text:      #23201a;  /* fast schwarz      */
  --muted:     #5d564a;  /* gedämpfter Text   */
  --accent:    #d8c11d;  /* Logo-Gelb         */
  --accent-dk: #b4a014;  /* dunkleres Gelb    */
  --green:     #5f7050;  /* Naturgrün         */
  --green-dk:  #46543a;
  --brown:     #7a6443;  /* Erdton            */
  --border:    #e3dcc8;

  /* Maße */
  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(40, 35, 20, 0.07);

  --font-sans:  "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--green-dk);
  margin: 0 0 .5em;
}

a { color: var(--green-dk); }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 242, 231, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--green-dk);
  text-decoration: none;
  font-size: 1.05rem;
}

.brand img { width: 40px; height: 40px; border-radius: 50%; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: .98rem;
}

.nav-menu a:hover { color: var(--accent-dk); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .4rem;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--green-dk);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #1e1b12;
  font-weight: 600;
  text-decoration: none;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--accent-dk);
  transition: transform .08s ease, background .15s ease;
}
.btn:hover { background: var(--accent-dk); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--green-dk);
  border-color: var(--green);
}
.btn-ghost:hover { background: rgba(95, 112, 80, .1); }

/* ---------- Hero (Hintergrundbild + Titel) ---------- */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 80vh, 760px);
  padding: 4rem 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(rgba(30, 27, 18, .42), rgba(30, 27, 18, .66)),
    url("images/hero.jpg");
  background-image:
    linear-gradient(rgba(30, 27, 18, .42), rgba(30, 27, 18, .66)),
    -webkit-image-set(url("images/hero.webp") type("image/webp"), url("images/hero.jpg") type("image/jpeg"));
  background-image:
    linear-gradient(rgba(30, 27, 18, .42), rgba(30, 27, 18, .66)),
    image-set(url("images/hero.webp") type("image/webp"), url("images/hero.jpg") type("image/jpeg"));
}
.hero .container { width: 100%; }
.hero img.logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 3.2rem);
  margin-bottom: .2em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .4);
}
.hero .claim {
  font-style: italic;
  color: #f6e7b8;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .4);
}
.hero .lead {
  max-width: 640px;
  margin: 0 auto 1.8rem;
  color: rgba(255, 255, 255, .94);
  font-size: 1.1rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .35);
}
.hero-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .1);
}
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .2); }

/* ---------- Abschnitte ---------- */
.section { padding: 3.5rem 0; }
.section:nth-of-type(even) { background: var(--surface); border-block: 1px solid var(--border); }

.section-head { max-width: 720px; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.section-head .kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent-dk);
  margin-bottom: .4rem;
}
.section p { color: var(--muted); max-width: 720px; }

/* Faktenliste je Abschnitt */
.facts {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: .6rem;
}
.facts li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: .6rem; height: .6rem;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Produkt-Filter ---------- */
.produkt-filter {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.6rem 0 1.2rem;
}
.filter-chip {
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .45rem .95rem;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.filter-chip:hover { border-color: var(--accent-dk); }
.filter-chip[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent-dk);
  color: #1e1b12;
}

/* ---------- Produkt-Karten ---------- */
.produkt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 0;
}
.produkt-karte {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.produkt-karte.hidden { display: none; }
.produkt-karte h3 {
  color: var(--green-dk);
  font-size: 1.15rem;
  margin-bottom: .6rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--accent);
}
.produkt-karte ul { list-style: none; margin: 0; padding: 0; }
.produkt-karte li {
  position: relative;
  padding-left: 1.15rem;
  margin: .25rem 0;
  color: var(--text);
}
.produkt-karte li.hidden { display: none; }
.produkt-karte li::before {
  content: "";
  position: absolute;
  left: 0; top: .5em;
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: var(--accent);
}
.produkt-karte li[data-kat="oel"]::before       { background: #d8a11d; }
.produkt-karte li[data-kat="mehl"]::before      { background: #b08a4f; }
.produkt-karte li[data-kat="kerne"]::before     { background: #7a8562; }
.produkt-karte li[data-kat="koerner"]::before   { background: #9c7b3f; }
.produkt-karte li[data-kat="futter"]::before    { background: #6b7d56; }
.produkt-karte li[data-kat="sonstiges"]::before { background: #a05a3a; }

.hinweis {
  margin-top: 1.6rem;
  background: rgba(216, 193, 29, .14);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: var(--text);
}
.hinweis strong { color: var(--green-dk); }

/* ---------- Inhaltsbilder ---------- */
figure { margin: 0; }
.section-bild { margin-top: 1.8rem; }
.section-bild img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* ---------- Platzhalter für Bilder ---------- */
.bild-platzhalter {
  margin-top: 1.5rem;
  display: grid;
  place-items: center;
  min-height: 180px;
  background:
    repeating-linear-gradient(45deg, rgba(95,112,80,.06) 0 12px, transparent 12px 24px);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: .95rem;
  text-align: center;
  padding: 1rem;
}

/* ---------- Kontakt ---------- */
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.kontakt-karte {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.section:nth-of-type(even) .kontakt-karte { background: var(--surface); }
.kontakt-karte h3 { color: var(--green-dk); }
.kontakt-karte a { color: var(--green-dk); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--green-dk);
  color: #e9ecdf;
  padding: 2.5rem 0 2rem;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  justify-content: space-between;
}
.footer-legal { margin-top: 1.5rem; font-size: .9rem; color: #c5cbb6; }
.footer-legal a { margin-right: 1rem; }

/* ---------- Rechtstext-Seiten (Impressum/Datenschutz) ---------- */
.legal { padding: 3rem 0; }
.legal h1 { font-size: 2rem; }
.legal h2 { margin-top: 2rem; font-size: 1.3rem; }
.legal p, .legal li { color: var(--text); }
.legal .todo {
  background: rgba(216, 193, 29, .2);
  border-left: 4px solid var(--accent-dk);
  padding: .2rem .5rem;
  font-weight: 600;
}
.back-link { display: inline-block; margin-bottom: 1.5rem; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: .5rem 1.25rem 1rem;
    display: none;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: .7rem 0; width: 100%; }
  .kontakt-grid { grid-template-columns: 1fr; }
}
