/* ============================================================
   NOVENA-Frischprodukte – Stylesheet
   Farbwelt aus dem Logo: warmes Grau + Apricot-Akzent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Nunito+Sans:wght@400;600;700&display=swap');

:root {
  --apricot:       #f5b271;
  --apricot-soft:  #f9cfa0;
  --apricot-deep:  #e89a4f;
  --grey:          #8d8d8d;
  --grey-dark:     #555;
  --ink:           #3a3a3a;
  --paper:         #fbf8f4;
  --paper-warm:    #f4ede3;
  --white:         #ffffff;
  --line:          #e7ded2;
  --shadow:        0 10px 40px rgba(120, 90, 50, 0.10);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Nunito Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--apricot-deep); text-decoration: none; }
a:hover { color: var(--ink); }

.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Kopfzeile ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 92px; gap: 24px;
}
.logo img { height: 46px; width: auto; }

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--grey-dark);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .02em;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--paper-warm); color: var(--ink); }
.nav a.active { background: var(--apricot); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 28px; color: var(--grey-dark); line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(245,178,113,.30), transparent 60%),
    var(--paper-warm);
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  color: var(--ink);
  max-width: 16ch;
  letter-spacing: -0.01em;
}
.hero p.lead {
  margin-top: 22px;
  max-width: 52ch;
  font-size: 1.18rem;
  color: var(--grey-dark);
}
.hero .badge {
  display: inline-block;
  background: var(--white);
  color: var(--apricot-deep);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 26px;
  box-shadow: var(--shadow);
}

/* dekoratives Wellen-Band (Anlehnung ans Logo) */
.wave {
  position: absolute; left: 0; right: 0; bottom: -2px; width: 100%;
  height: 70px; color: var(--paper);
}

.btn {
  display: inline-block;
  background: var(--apricot);
  color: #fff;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 999px;
  margin-top: 30px;
  transition: background .2s, transform .2s;
  border: 0; cursor: pointer; font-size: 16px;
}
.btn:hover { background: var(--apricot-deep); color: #fff; transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--apricot-deep); box-shadow: inset 0 0 0 2px var(--apricot); }
.btn.ghost:hover { background: var(--apricot); color: #fff; }

/* ---------- Allgemeine Sektionen ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--white); }

.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.section-title .accent { color: var(--apricot-deep); }
.lead-text { color: var(--grey-dark); max-width: 60ch; font-size: 1.08rem; }
.section .body-text p { margin-bottom: 1em; max-width: 64ch; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .14em;
  font-size: 12.5px; font-weight: 700; color: var(--apricot-deep);
  margin-bottom: 14px;
}

/* ---------- Drei Merkmale ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.feature {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 18px; padding: 30px;
}
.feature .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--apricot-soft); color: var(--apricot-deep);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--grey-dark); font-size: .98rem; }

/* ---------- Produkte ---------- */
.cat-block { margin-bottom: 56px; }
.cat-block h2 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.7rem; color: var(--ink);
  padding-bottom: 12px; margin-bottom: 8px;
  border-bottom: 2px solid var(--apricot-soft);
  display: inline-block;
}
.cat-block .cat-desc { color: var(--grey-dark); margin-bottom: 26px; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 16px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .thumb {
  aspect-ratio: 4 / 3; background: var(--paper-warm);
  display: grid; place-items: center; overflow: hidden;
}
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .thumb .placeholder { color: var(--apricot); opacity: .5; }
.product-card .pc-body { padding: 20px 22px 24px; }
.product-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.2rem; margin-bottom: 6px; }
.product-card p { color: var(--grey-dark); font-size: .96rem; }

.empty-note { color: var(--grey); font-style: italic; }

/* ---------- Kontakt ---------- */
.contact-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: 40px; box-shadow: var(--shadow);
  max-width: 560px;
}
.contact-card .row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .k { width: 110px; color: var(--grey); font-weight: 700; flex-shrink: 0; }
.contact-card .v { color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #d9d2c8;
  padding: 54px 0 34px; margin-top: 0;
}
.site-footer .cols { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-weight: 500; margin-bottom: 12px; font-size: 1.15rem; }
.site-footer a { color: var(--apricot-soft); }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #9a948b; font-size: .9rem; }
.site-footer .foot-bottom {
  margin-top: 34px; padding-top: 20px; border-top: 1px solid #4a4540;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: .88rem; color: #9a948b;
}

/* ---------- Shop / Anfrage ---------- */
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-badge {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px;
  padding: 0 6px; border-radius: 999px; background: var(--apricot-deep);
  color: #fff; font-size: 12px; font-weight: 700; line-height: 1;
}
.nav a.cart-link.active .cart-badge { background: #fff; color: var(--apricot-deep); }

.add-form { margin-top: 16px; display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.qty-lbl { font-size: .8rem; font-weight: 700; color: var(--grey); display: flex; flex-direction: column; gap: 4px; }
.qty-lbl input { width: 70px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.btn-add {
  background: var(--apricot); color: #fff; border: 0; cursor: pointer;
  font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px;
  transition: background .2s, transform .2s;
}
.btn-add:hover { background: var(--apricot-deep); transform: translateY(-1px); }

.panel-light { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.cart-table th { font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey); }
.qty-input { width: 90px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; font: inherit; }
.link-remove { background: none; border: 0; color: var(--grey); cursor: pointer; font: inherit; text-decoration: underline; }
.link-remove:hover { color: #c0392b; }
.cart-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.btn-sm {
  display: inline-block; font-size: 13px; font-weight: 700; padding: 9px 16px;
  border-radius: 999px; border: 1px solid var(--line); background: #fff;
  color: var(--grey-dark); cursor: pointer;
}
.btn-sm:hover { border-color: var(--apricot); color: var(--apricot-deep); }
.btn-sm.danger:hover { border-color: #e57373; color: #c0392b; }

.form-h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin-bottom: 18px; }
.request-form label { display: block; font-weight: 700; font-size: .88rem; color: var(--grey-dark); margin-bottom: 16px; }
.request-form input, .request-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 13px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; color: var(--ink); background: var(--paper);
}
.request-form input:focus, .request-form textarea:focus { outline: 2px solid var(--apricot-soft); border-color: var(--apricot); }
.rf-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rf-hint { color: var(--grey); font-size: .85rem; font-weight: 400; margin-top: 12px; }
@media (max-width: 600px) { .rf-row2 { grid-template-columns: 1fr; } }

/* ---------- Reveal-Animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .features, .product-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 92px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; border-radius: 10px; }
  .features, .product-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 90px; }
  .section { padding: 56px 0; }
  .contact-card { padding: 28px; }
}

/* ---------- Produkte: Layout Kategorien links / Produkte rechts ---------- */
.prod-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 36px;
  margin-top: 40px;
  align-items: start;
}
.cat-nav {
  position: sticky;
  top: 110px;
}
.cat-nav-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.1rem; color: var(--grey-dark);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--apricot-soft);
}
.cat-nav ul { list-style: none; margin: 0; padding: 0; }
.cat-nav li { margin-bottom: 6px; }
.cat-tab {
  width: 100%; text-align: left; cursor: pointer;
  background: none; border: 0; font: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-radius: 10px;
  color: var(--grey-dark); font-weight: 600; font-size: 15px;
  transition: background .15s, color .15s;
}
.cat-tab:hover { background: var(--paper-warm); color: var(--ink); }
.cat-tab.active { background: var(--apricot); color: #fff; }
.cat-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px;
  padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: rgba(0,0,0,.07); color: inherit;
}
.cat-tab.active .cat-count { background: rgba(255,255,255,.3); color: #fff; }

.cat-panel { display: none; }
.cat-panel.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cat-panel-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.7rem; color: var(--ink);
  padding-bottom: 12px; margin-bottom: 8px;
  border-bottom: 2px solid var(--apricot-soft);
  display: inline-block;
}

/* Auf der Produktseite zwei Spalten (rechte Spalte ist schmaler) */
.prod-main .product-grid { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 820px) {
  .prod-layout { grid-template-columns: 1fr; gap: 20px; }
  .cat-nav { position: static; }
  .cat-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
  .cat-nav li { margin-bottom: 0; }
  .cat-tab { width: auto; }
  .prod-main .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .prod-main .product-grid { grid-template-columns: 1fr; }
}
