/* ==========================================================
   Zauberholz – Stylesheet
   Farben und Schriften zentral hier oben ändern.
   Es werden nur Systemschriften genutzt (keine Google Fonts),
   damit keine Daten an Dritte gehen (DSGVO).
   ========================================================== */

:root {
  --paper:   #fbf9f4;  /* Hintergrund */
  --tint:    #efebe3;  /* abgesetzte Abschnitte */
  --ink:     #2a2622;  /* Text */
  --muted:   #6b635b;  /* Nebentext */
  --larch:   #8f5426;  /* Lärche – Buttons, Links */
  --larch-d: #6e3f1b;  /* Lärche dunkel – Hover */
  --heide:   #6e4a6b;  /* Heidekraut – kleine Akzente */
  --line:    #ddd6ca;

  --font-head: Rockwell, "Rockwell Nova", "Roboto Slab", "Zilla Slab", "DejaVu Serif", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --wrap: 72rem;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--larch); text-underline-offset: 0.2em; }
a:hover { color: var(--larch-d); }
:focus-visible { outline: 3px solid var(--heide); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 50rem; }
.center { text-align: center; margin-top: 2.5rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 100; border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.kicker {
  color: var(--heide);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--larch);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  padding: 0.8rem 1.4rem;
  border: 2px solid var(--larch);
  border-radius: var(--radius);
  white-space: nowrap;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--larch-d); border-color: var(--larch-d); color: #fff; }
.btn-ghost { background: transparent; color: var(--larch); }
.btn-ghost:hover { background: var(--larch); color: #fff; }
.btn-small { padding: 0.5rem 1rem; font-size: 0.95rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 2rem;
  min-height: 4.75rem;
}
.logo { display: block; line-height: 0; }
.logo img { height: 2.9rem; width: auto; }
@media (max-width: 30rem) {
  .logo img { height: 2.1rem; }
  .header-inner { gap: 1rem; }
}
.main-nav { display: flex; gap: 1.6rem; margin-left: auto; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.main-nav a:hover { color: var(--larch); text-decoration: underline; }

@media (max-width: 52rem) {
  .main-nav { display: none; }
  .header-inner .btn { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0 1.75rem; }
.trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  font-size: 0.95rem; color: var(--muted);
}
.trust li::before { content: "✓"; color: var(--larch); font-weight: 700; margin-right: 0.4rem; }

/* ---------- Bild-Karussell ---------- */
.carousel { position: relative; }
.carousel-track {
  list-style: none; margin: 0; padding: 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
.slide a { display: block; color: inherit; }
.slide img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: var(--fokus, 50% 50%);
}
.slide-caption {
  position: absolute; left: 1rem; bottom: 1rem;
  background: var(--paper); color: var(--ink);
  font-weight: 600; font-size: 0.95rem;
  padding: 0.35rem 0.8rem; border-radius: 3px;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.75rem; height: 2.75rem;
  border: 0; border-radius: 50%;
  background: rgba(251, 249, 244, 0.9); color: var(--ink);
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; padding-bottom: 0.2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.carousel-btn:hover { background: var(--paper); color: var(--larch); }
.carousel-btn.prev { left: 0.75rem; }
.carousel-btn.next { right: 0.75rem; }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.carousel-dots button {
  width: 0.7rem; height: 0.7rem; padding: 0;
  border: 2px solid var(--larch); border-radius: 50%;
  background: transparent; cursor: pointer;
}
.carousel-dots button[aria-current="true"] { background: var(--larch); }
@media (prefers-reduced-motion: reduce) { .carousel-track { scroll-behavior: auto; } }

@media (max-width: 52rem) {
  .hero-grid { grid-template-columns: 1fr; }
  .carousel { order: -1; }
}

/* ---------- Abschnitte ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 46rem; margin-bottom: 3rem; }
.section-head p:last-child { color: var(--muted); }

/* ---------- Produkte ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr));
  gap: 3rem 2rem;
}
.product { display: flex; flex-direction: column; }
.product-img { position: relative; display: block; margin-bottom: 1.1rem; overflow: hidden; border-radius: var(--radius); }
.product-img img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  object-position: var(--fokus, 50% 50%);
  transition: transform .4s ease;
}
.product-img:hover img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .product-img img { transition: none; } }
.tag {
  position: absolute; left: 0.75rem; top: 0.75rem;
  background: var(--paper); color: var(--ink);
  font-size: 0.85rem; font-weight: 600;
  padding: 0.25rem 0.65rem; border-radius: 3px;
}
.product h3 { margin-bottom: 0.4rem; }
.product p { color: var(--muted); flex-grow: 1; }
.product-foot {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 0.8rem;
}
.price { font-weight: 700; }
.product-foot a { font-weight: 600; }

/* ---------- Bewertungen ---------- */
.rating { font-size: 1.1rem; }
.stars { color: var(--larch); letter-spacing: 0.1em; }
.reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 2rem;
}
.review { margin: 0; padding: 0 0 0 1.4rem; border-left: 3px solid var(--larch); }
.review blockquote { margin: 0 0 1rem; font-size: 1.05rem; }
.review figcaption { color: var(--muted); font-size: 0.95rem; }
.review figcaption strong { display: block; color: var(--ink); }

/* ---------- Über uns ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--fokus, 50% 50%); border-radius: var(--radius); }
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin: 2rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.facts dt { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--larch); }
.facts dd { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (max-width: 52rem) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { aspect-ratio: 4 / 3; }
}
@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 0;
  font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--larch); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding-bottom: 1.2rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d9d2c7; padding: 3.5rem 0 1.5rem; }
.footer-logo { height: 3rem; width: auto; margin-bottom: 1rem; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr auto;
  gap: 2rem; align-items: start;
}
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer a:not(.btn) { color: #fff; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 1.5rem; }

@media (max-width: 52rem) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Unterseiten (Impressum, Datenschutz) ---------- */
.legal { padding: clamp(3rem, 6vw, 5rem) 0; }
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.1rem; margin-top: 1.5rem; }
.legal ul { margin: 0 0 1em; padding-left: 1.3rem; }
.legal li { margin-bottom: 0.25rem; }
