/* ═══════════════════════════════════════════════════════════
   Aloe Vera Produkte – Shared Stylesheet
   Gilt für: index, creme, gel, spray, saft, pflanzen,
             impressum, datenschutzerklaerung
   ═══════════════════════════════════════════════════════════ */

/* ── RESET & VARIABLES ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-deep:  #1C3829;
  --green-mid:   #2E5C41;
  --green-light: #4A8C63;
  --green-pale:  #C4DDD0;
  --cream:       #F7F3EC;
  --ivory:       #EDE8DF;
  --gold:        #B8935A;
  --gold-light:  #D4B483;
  --text-dark:   #1A2318;
  --text-mid:    #3D5248;
  --text-muted:  #7A9186;
  --white:       #FDFCFA;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 4rem;
  background: rgba(28,56,41,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,170,110,0.18);
  transition: padding 0.3s;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: 0.04em;
  text-decoration: none;
}
.nav-logo span { color: var(--gold-light); font-style: italic; }

.nav-links { display: flex; gap: 0.2rem; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(247,243,236,0.78);
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); background: rgba(184,147,90,0.1); }
.nav-links .nav-cta a {
  background: var(--gold);
  color: var(--white);
  padding: 0.45rem 1.2rem;
  border-radius: 2px;
}
.nav-links .nav-cta a:hover { background: var(--gold-light); color: var(--green-deep); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-light); color: var(--green-deep); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--cream);
  padding: 0.85rem 2rem;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(196,221,208,0.4);
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--gold-light); color: var(--gold-light); transform: translateY(-2px); }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--ivory);
  padding: 0.9rem 5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex; gap: 0.5rem; align-items: center;
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { opacity: 0.45; }

/* ── SECTION SHARED ── */
.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.2rem;
}
.section-label::before { content: ''; width: 20px; height: 1px; background: var(--gold); }

h2.section-title {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--green-deep);
  margin-bottom: 1.6rem;
}
h2.section-title em { font-style: italic; color: var(--green-light); }

/* ── PAGE HERO (Unterseiten) ── */
.page-hero {
  padding: 9rem 5rem 4rem;
  background: var(--green-deep);
}
.page-hero-label {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
  display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
}
.page-hero-label::before { content: ''; width: 20px; height: 1px; background: var(--gold); }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 300; color: var(--cream); line-height: 1.1;
}
.page-hero h1 em { font-style: italic; color: var(--gold-light); }

/* Page hero mit Icon (Kategorieseiten) */
.page-hero-split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center; min-height: 52vh;
}
.page-hero-icon {
  display: flex; align-items: center; justify-content: center;
  font-size: 9rem; opacity: 0.18; user-select: none;
}

/* ── PRODUCT CARDS ── */
.products-section h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300; color: var(--green-deep); margin-bottom: 0.5rem;
}
.products-section h2 em { font-style: italic; color: var(--green-light); }
.products-section .sub { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 2.5rem; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border: 1px solid rgba(74,140,99,0.12);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(28,56,41,0.1); }

.product-img {
  position: relative;
  background: linear-gradient(135deg, #E8F5EE, #C4DDD0);
  height: 220px; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-img .placeholder { font-size: 5rem; opacity: 0.35; }

.product-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--gold); color: var(--white);
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.7rem;
}
.product-badge.bio { background: var(--green-mid); }

.product-body { padding: 1.4rem 1.5rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 400;
  color: var(--green-deep); margin-bottom: 0.5rem; line-height: 1.3;
}
.product-body p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; flex: 1; margin-bottom: 1.2rem; }

.product-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.product-tag {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  background: rgba(74,140,99,0.1); color: var(--green-mid);
  border: 1px solid rgba(74,140,99,0.2);
}
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; gap: 0.8rem; }
.product-price { font-family: var(--serif); font-size: 1.4rem; font-weight: 400; color: var(--green-deep); flex-shrink: 0; }
.product-price small { font-family: var(--sans); font-size: 0.72rem; color: var(--text-muted); display: block; font-weight: 300; }

.btn-amazon {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--gold); color: var(--white); text-decoration: none;
  padding: 0.6rem 1.2rem; font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 0.2s, transform 0.2s; white-space: nowrap; flex-shrink: 0;
}
.btn-amazon:hover { background: var(--gold-light); color: var(--green-deep); transform: translateY(-1px); }
.btn-amazon svg { width: 14px; height: 14px; flex-shrink: 0; }

.add-card {
  border: 2px dashed rgba(74,140,99,0.25); background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 380px; text-align: center; padding: 2rem; gap: 0.8rem;
}
.add-card .add-icon { font-size: 2.5rem; opacity: 0.25; }
.add-card h3 { font-family: var(--serif); font-size: 1.2rem; font-weight: 300; color: var(--text-muted); }
.add-card p { font-size: 0.8rem; color: var(--text-muted); opacity: 0.7; max-width: 22ch; line-height: 1.5; }

/* ── AFFILIATE NOTE ── */
.affiliate-note {
  background: var(--ivory); border-left: 3px solid var(--gold);
  padding: 1rem 1.5rem; margin: 4rem 0 0;
  font-size: 0.8rem; color: var(--text-muted); line-height: 1.6;
}
.affiliate-note strong { color: var(--text-mid); }

/* ── LEGAL PAGES ── */
.legal-section {
  margin-bottom: 3.5rem; padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(74,140,99,0.15);
  scroll-margin-top: 100px;
}
.legal-section:last-child { border-bottom: none; }
.section-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 0.6rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.section-eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--gold); }
.legal-section h2 {
  font-family: var(--serif); font-size: 1.9rem; font-weight: 300;
  color: var(--green-deep); margin-bottom: 1.5rem; line-height: 1.2;
}
.legal-section h3 {
  font-family: var(--serif); font-size: 1.25rem; font-weight: 400;
  color: var(--green-mid); margin: 1.8rem 0 0.6rem;
}
.legal-section p { font-size: 0.92rem; color: var(--text-mid); line-height: 1.85; margin-bottom: 0.9rem; font-weight: 300; }
.legal-section a { color: var(--green-light); text-decoration: none; border-bottom: 1px solid rgba(74,140,99,0.3); transition: color 0.2s; }
.legal-section a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.source-note {
  font-size: 0.78rem; color: var(--text-muted);
  margin-top: 1.5rem; padding: 1rem 1.5rem;
  background: var(--ivory); border-left: 3px solid var(--gold);
}

/* ── FOOTER ── */
footer {
  background: var(--text-dark);
  padding: 3rem 5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { font-family: var(--serif); font-size: 1.2rem; font-weight: 300; color: var(--cream); letter-spacing: 0.04em; }
.footer-logo span { font-style: italic; color: var(--gold-light); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a {
  font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(247,243,236,0.45); text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }
.footer-copy { font-size: 0.75rem; color: rgba(247,243,236,0.3); }

/* ── REVEAL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── SHARED NAV SCRIPT HELPER ── */
.nav-shrink { padding: 0.7rem 4rem !important; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .page-hero { padding: 7rem 2rem 3rem; }
  .page-hero-split { grid-template-columns: 1fr; min-height: auto; }
  .page-hero-icon { display: none; }
  .breadcrumb { padding: 0.9rem 2rem; }
  footer { padding: 2.5rem 2rem; flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
}
