/* Kaisersberger Wildladen – Stylesheet
   Farben und Schriften zentral hier ändern. Keine externen Schriften (DSGVO). */

:root {
  --green: #2f5a3c;
  --green-dark: #22432c;
  --cream: #fbf7ee;
  --sand: #f1e7cf;
  --gold: #e9c45a;
  --plum: #5a3a68;
  --ink: #2a2622;
  --muted: #6b6258;
  --line: #e2d7bd;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(40, 30, 10, .25);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--green-dark); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: clamp(56px, 9vw, 104px) 0; }
.eyebrow {
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--plum); font-weight: 700; margin-bottom: .6em; display: block;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- Saison-Hinweis ---------- */
.season {
  background: var(--gold); color: var(--ink); text-align: center;
  padding: 10px 20px; font-weight: 600; font-size: .95rem;
}
.season strong { font-family: var(--serif); font-size: 1.05rem; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 238, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 34px; height: auto; }
.brand span { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; line-height: 1.1; }
.brand small { display: block; font-family: var(--sans); font-size: .72rem; color: var(--muted); font-weight: 500; letter-spacing: .04em; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { background: var(--sand); }
.nav .btn { margin-left: 6px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff !important; text-decoration: none;
  font-weight: 600; padding: 12px 22px; border-radius: 999px; border: 2px solid var(--green);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--green-dark); border-color: var(--green-dark); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.8); }
.btn.ghost:hover { background: rgba(255,255,255,.15); }
.btn.light { background: #fff; color: var(--green) !important; border-color: #fff; }
.btn svg { width: 18px; height: 18px; }
.nav .btn { padding: 8px 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(82vh, 760px); display: flex; align-items: flex-end;
  color: #fff; padding: 0; overflow: hidden;
}
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,25,15,.1) 30%, rgba(20,25,15,.75) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(40px, 8vw, 88px); width: 100%; }
.hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.6rem); max-width: 14ch; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 50ch; opacity: .95; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* ---------- Info-Leiste (Öffnungszeiten) ---------- */
.infobar { background: var(--green); color: #fff; padding: 0; }
.infobar .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.infobar .item { padding: 26px 24px; display: flex; gap: 14px; align-items: flex-start; }
.infobar .item + .item { border-left: 1px solid rgba(255,255,255,.15); }
.infobar svg { flex: none; width: 26px; height: 26px; opacity: .85; margin-top: 2px; }
.infobar b { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; }
.infobar span, .infobar a { color: rgba(255,255,255,.88); font-size: .95rem; }
.infobar a { text-decoration: none; }
.infobar a:hover { text-decoration: underline; }

/* ---------- Zweispaltig ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack { position: relative; }
.photo-stack .photo:nth-child(2) {
  position: absolute; width: 46%; right: -6%; bottom: -12%; border: 6px solid var(--cream);
}

.badge {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px 8px 10px;
  text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 500;
}
.badge .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .7rem; font-weight: 800; }
.badge:hover { border-color: var(--green); }

/* ---------- Sortiment ---------- */
.products { background: var(--sand); }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 40px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card .body { padding: 26px 28px 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.chips li { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .92rem; }
.steps { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 12px; align-items: center; padding: 6px 0; }
.steps li::before {
  content: counter(s); width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--plum); color: #fff; display: grid; place-items: center; font-size: .85rem; font-weight: 700;
}
.note { margin-top: 28px; text-align: center; color: var(--muted); }

/* ---------- Tierwohl ---------- */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; list-style: none; padding: 0; margin: 18px 0 0; }
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.subhead { margin-top: 64px; }

/* ---------- Rezepte ---------- */
.recipes { background: #fff; }
.recipe-list { display: grid; gap: 14px; margin-top: 32px; }
details.recipe { border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
details.recipe summary {
  cursor: pointer; list-style: none; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--serif); font-size: 1.25rem; font-weight: 600;
}
details.recipe summary::-webkit-details-marker { display: none; }
details.recipe summary::after {
  content: "+"; font-family: var(--sans); font-size: 1.6rem; font-weight: 300; color: var(--green); transition: transform .2s;
}
details.recipe[open] summary::after { transform: rotate(45deg); }
.recipe-body { padding: 0 24px 24px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 28px; }
.recipe-body h4 { margin: 0 0 8px; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--plum); }
.recipe-body ul { margin: 0; padding-left: 0; list-style: none; }
.recipe-body ul li { padding: 3px 0; border-bottom: 1px dashed var(--line); }
.recipe-body .qty { display: inline-block; min-width: 4.6em; font-weight: 600; color: var(--green-dark); }
.source { margin-top: 24px; font-size: .9rem; color: var(--muted); }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; margin-top: 36px; }
.gallery button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery button:hover img { transform: scale(1.04); }
.gallery .wide { grid-column: span 2; }
.gallery .tall { grid-row: span 2; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
dialog.lightbox::backdrop { background: rgba(10, 12, 8, .88); }
dialog.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 8px; }
dialog.lightbox p { color: #fff; text-align: center; margin: 10px 0 0; font-size: .95rem; }
dialog.lightbox .close {
  position: fixed; top: 14px; right: 18px; background: rgba(255,255,255,.15); color: #fff; border: 0;
  width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
}

/* ---------- Kontakt & Anfahrt ---------- */
.contact { background: var(--green-dark); color: #fff; }
.contact h2 { color: #fff; }
.contact .lead { color: rgba(255,255,255,.8); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; }
.panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 28px; }
.panel h3 { color: var(--gold); }
.panel dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 20px; }
.panel dt { color: rgba(255,255,255,.65); }
.panel dd { margin: 0; }
.panel a { color: #fff; }
.panel .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.hours td { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hours td:last-child { text-align: right; font-weight: 600; }
.map-sketch { background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 18px; }
.map-sketch svg { width: 100%; height: auto; display: block; }

/* ---------- Fußzeile ---------- */
.site-footer { background: #191f1a; color: rgba(255,255,255,.7); padding: 32px 0; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; margin-left: 18px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- Rechtstexte ---------- */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); color: var(--green-dark); }
.legal h2 { font-size: 1.4rem; margin-top: 2em; }
.legal h3 { font-size: 1.1rem; margin-top: 1.4em; }
.back { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split, .contact-grid, .cards { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .photo-stack { margin-bottom: 40px; }
  .photo-stack .photo:nth-child(2) { right: 8px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .infobar .wrap { grid-template-columns: 1fr; padding: 0; }
  .infobar .item + .item { border-left: 0; border-top: 1px solid rgba(255,255,255,.15); }
  .recipe-body { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .facts { grid-template-columns: 1fr; }
  .site-footer a { margin: 0 14px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
