
:root {
  --bg: #f8f4ea;          /* Creme – Seitenhintergrund */
  --surface: #ffffff;      /* Karten / Flächen */
  --ink: #232b1e;          /* Fließtext, fast schwarz mit Grünstich */
  --muted: #62705c;        /* gedämpfter Text */
  --brand: #41543a;        /* NIBOVIA Dunkelgrün – primäre Markenfarbe */
  --brand-light: #56754b;  /* NIBOVIA Mittelgrün – Hover / Sekundär */
  --accent: #eb9c67;       /* Orange – "Discover more", Call-to-Action */
  --accent-soft: #f9c39e;  /* helles Pfirsich – sanfte Flächen */
  --teal: #7db5bb;         /* Petrol – zweiter Akzent, z. B. Badges */
  --terracotta: #ad7661;   /* Terracotta – Rahmen, dritter Akzent */
  --maroon: #a20c29;       /* Bordeaux – nur für Hinweise/Rabatte, sparsam */
  --line: #e3decc;         /* Trennlinien */
  --shadow: 0 18px 40px rgba(35,43,30,.12);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Barrierefreiheit: sichtbarer Fokus & Skip-Link */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 10px 0;
}
.skip-link:focus {
  left: 0;
}


@font-face {
  font-family: 'Poppins';
  src: 
       url('../fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/Fraunces_72pt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}

body {
  margin: 0;
  font-family: 'Poppins' ;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, .button { font: inherit; }
.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }

/* ===== Topbar ===== */
.topbar {
  font-size: .88rem;
  color: #fff;
  background: var(--brand);
  text-align: center;
  padding: 8px 16px;
}

/* ===== Header & Navigation ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248,244,234,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(227,222,204,.9);
}
.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .95rem; }
.nav-links a:hover { color: var(--accent); }
.menu-button { display: none; border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; color: var(--brand); }

/* ===== Hero ===== */
.hero { padding: 86px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.eyebrow { color: var(--accent); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 18px; }
h1 { font-family: 'Fraunces', Georgia, "Times New Roman", serif; font-size: clamp(3.25rem, 7vw, 6.4rem); font-weight: 500; letter-spacing: -.045em; color: var(--brand); }
h2 { font-family: 'Fraunces', Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 4.4vw, 4rem); font-weight: 500; letter-spacing: -.025em; color: var(--brand); }
h3 { font-size: 1.2rem; color: var(--ink); }
.hero p { max-width: 640px; font-size: 1.14rem; color: var(--muted); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  transition: .2s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(65,84,58,.22); background: var(--brand-light); border-color: var(--brand-light); }
.button.secondary { background: transparent; color: var(--brand); }
.button.secondary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--brand); }
.button.text { min-height: auto; padding: 0; border: 0; background: transparent; color: var(--brand); border-radius: 0; }
.button.text:hover { color: var(--accent); background: none; box-shadow: none; transform: none; }

.hero-art {
  display: grid;
  place-items: center;
  padding: 24px;
}
.hero-cover {
  width: 100%;
  height: auto;
  max-width: 460px;
}

/* ===== Produkte (Bücher & Downloads) ===== */
.section { padding: 84px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.section-head p { max-width: 560px; color: var(--muted); margin: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .2s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 4 / 3; background: var(--accent-soft); display: grid; place-items: center; padding: 32px; }
.product-image .mini-cover { width: 120px; aspect-ratio: 3/4; background: var(--brand); border-radius: 4px 9px 9px 4px; box-shadow: 0 16px 28px rgba(35,43,30,.22); color: #fff; display: grid; place-items: center; text-align: center; padding: 14px; font-family: Georgia, serif; }
.product-image.pdf { background: #e4ecea; }
.product-image.pdf .mini-cover { background: #fff; color: var(--brand); border: 1px solid var(--line); border-radius: 8px; }
.product-body { padding: 24px; }
.meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .86rem; margin-bottom: 10px; }
.meta span:first-child { color: var(--terracotta); font-weight: 700; }
.price { font-weight: 800; color: var(--ink); }
.product-body p { color: var(--muted); min-height: 52px; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.card-actions .button { min-height: 42px; padding: 0 15px; font-size: .9rem; }
.amazon-badge-link { display: inline-flex; align-items: center; border-radius: 10px; }
.amazon-badge-link img { height: 42px; width: auto; }

/* ===== Produkt-Bildslider ===== */
.product-slider {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--accent-soft);
}
.slider-track {
  display: flex;
  height: 100%;
  transition: transform .35s ease;
}
.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.85);
  color: var(--brand);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(35,43,30,.18);
  opacity: 0;
  transition: opacity .2s ease, background .2s ease;
}
.product-slider:hover .slider-btn,
.slider-btn:focus-visible {
  opacity: 1;
}
.slider-btn:hover { background: #fff; }
.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  cursor: pointer;
}
.dot.active {
  background: #fff;
  box-shadow: 0 0 0 2px var(--brand);
}

@media (hover: none) {
  .slider-btn { opacity: 1; background: rgba(255,255,255,.75); }
}

/* ===== Über uns ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-panel { min-height: 430px; background: var(--accent-soft); border-radius: 32px; position: relative; overflow: hidden; display: grid; place-items: center; }
.about-panel img { width: 62%; opacity: .35; }
.checks { display: grid; gap: 10px; margin-top: 26px; color: var(--muted); }
.checks div::before { content: "✓"; color: var(--accent); font-weight: 900; margin-right: 10px; }

/* ===== Social-Media-Bereich ===== */
.social-cta { background: var(--brand); color: #fff; border-radius: 30px; padding: 44px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.social-cta p { color: rgba(255,255,255,.78); margin-bottom: 0; }
.social-cta-eyebrow { color: var(--accent-soft); }
.social-cta-heading { font-size: clamp(2rem, 4vw, 3.5rem); color: #fff; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 10px 14px; }
.socials a:hover { background: var(--accent); border-color: var(--accent); }

/* ===== Kontakt ===== */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 520px;
}
.contact-card strong { color: var(--brand); }
.js-email a { color: var(--brand); font-weight: 700; border-bottom: 1px solid var(--accent); }
.js-email a:hover { color: var(--accent); }
.contact-note { color: var(--muted); font-size: .85rem; margin-top: 14px; }

/* ===== Footer ===== */
.site-footer { padding: 56px 0 28px; }
.footer-logo { height: 30px; width: auto; margin-bottom: 12px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.footer-grid h3 { color: var(--brand); font-size: 1rem; }
.footer-grid p, .footer-grid a { color: var(--muted); font-size: .94rem; }
.footer-links { display: grid; gap: 8px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 20px; color: var(--muted); font-size: .82rem; }

/* ===== Rechtliche Seiten (Impressum, Datenschutz, Widerruf) ===== */
.legal { max-width: 840px; padding: 70px 0 90px; }
.legal h1 { font-size: clamp(2.8rem, 6vw, 4.7rem); color: var(--brand); }
.legal h2 { font-family: inherit; font-size: 1.3rem; font-weight: 800; letter-spacing: 0; margin-top: 36px; color: var(--brand); }
.legal h3 { font-size: 1.05rem; margin-top: 22px; color: var(--brand); }
.legal p, .legal li, .legal address { color: #3d4a38; }
.legal address { font-style: normal; }
.notice { background: var(--accent-soft); border: 1px solid #eab98d; padding: 18px 20px; border-radius: 14px; margin: 24px 0; color: #4a2f1c; }
.placeholder { background: #eef0e5; border: 1px dashed #b9c2ab; border-radius: 8px; padding: 2px 6px; }
.legal-note { color: var(--muted); font-size: .85rem; margin-top: 40px; }
.withdrawal-form { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin-top: 16px; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid, .split, .social-cta, .footer-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 54px; }
  .nav-links { display: none; position: absolute; top: 80px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 22px; flex-direction: column; align-items: flex-start; }
  .nav-links.open { display: flex; }
  .menu-button { display: block; }
}

@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .social-cta { padding: 30px 24px; }
  .brand-logo { height: 28px; }
}
