/* ============================================================
   NaturVital – Haupt-Stylesheet
   assets/css/main.css
   ============================================================ */

/* ── CSS-Variablen ── */
:root {
    --forest:     #2C4A3E;
    --moss:       #4A7C59;
    --sage:       #8FAF8A;
    --cream:      #F7F3EC;
    --warm-white: #FDFAF5;
    --bark:       #7A5C3E;
    --gold:       #C9A84C;
    --text:       #1E1E1E;
    --muted:      #6B7B6E;
    --border:     #D8E4D5;
    --radius:     14px;
    --shadow:     0 8px 30px rgba(44,74,62,0.09);
    --shadow-lg:  0 16px 50px rgba(44,74,62,0.14);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    background: var(--warm-white);
    color: var(--text);
    font-size: 16px;
    line-height: 1.75;
}
img { max-width: 100%; display: block; }
a { color: var(--moss); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--forest);
    position: sticky;
    top: 0;
    z-index: 200;
    box-shadow: 0 2px 20px rgba(44,74,62,0.35);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.85rem;
    font-weight: 600;
    color: var(--cream);
    text-decoration: none;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.logo span { color: var(--gold); }

/* Desktop Nav */
.nav-desktop {
    display: flex;
    gap: 0.2rem;
    align-items: center;
}
.nav-desktop a {
    color: var(--sage);
    text-decoration: none;
    padding: 0.4rem 0.85rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 400;
    transition: all 0.2s;
    white-space: nowrap;
}
.nav-desktop a:hover,
.nav-desktop a.active {
    background: rgba(255,255,255,0.1);
    color: var(--cream);
}

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--sage);
    border-radius: 2px;
    transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.nav-mobile {
    display: none;
    flex-direction: column;
    background: #1a3028;
    padding: 1rem 2rem 1.5rem;
    gap: 0.3rem;
    border-top: 1px solid rgba(255,255,255,0.07);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
    color: var(--sage);
    text-decoration: none;
    padding: 0.6rem 0.5rem;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.2s;
}
.nav-mobile a:hover { color: var(--cream); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--forest);
    color: var(--sage);
    padding: 3.5rem 2rem 0;
    margin-top: 5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 0.8rem;
}
.footer-logo span { color: var(--gold); }

.footer-desc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: var(--sage);
    margin-bottom: 0.8rem;
}

.footer-disclaimer {
    font-size: 0.78rem;
    color: rgba(143,175,138,0.6);
}

.footer-col h4 {
    color: var(--cream);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.footer-col a {
    display: block;
    color: var(--sage);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 0.55rem;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--cream); }

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: rgba(143,175,138,0.55);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.affiliate-notice { font-size: 0.78rem; }

/* ============================================================
   ALLGEMEINE SEITEN-KOMPONENTEN
   ============================================================ */

/* Breadcrumb */
.breadcrumb {
    background: var(--cream);
    padding: 0.75rem 2rem;
    font-size: 0.82rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
}
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; }
.breadcrumb a { color: var(--moss); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Sektions-Wrapper */
.section-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
}

/* Section Title */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--forest);
    margin-bottom: 1.5rem;
}

/* Info-Karten */
.info-block {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
}
.block-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    color: var(--forest);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Listen */
.check-list { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.check-list li { padding-left: 1.5rem; position: relative; font-size: 0.94rem; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--moss); font-weight: 700; }
.warning-list li::before { content: '⚠'; color: var(--gold); }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 0.3rem 0.9rem;
    font-size: 0.82rem;
    color: var(--forest);
}

/* Nährstoff-Karten */
.nutrient-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.25s;
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
}
.nutrient-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--moss), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s;
}
.nutrient-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--sage);
}
.nutrient-card:hover::before { transform: scaleX(1); }

/* Warnbox */
.warning-box {
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Rechtlicher Hinweis Banner */
.legal-banner {
    background: rgba(201,168,76,0.07);
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
    max-width: 1200px;
    margin: 1.5rem auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.8rem;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}
.btn-primary { background: var(--moss); color: white; }
.btn-primary:hover { background: var(--forest); color: white; }
.btn-outline { background: transparent; border: 1.5px solid var(--moss); color: var(--moss); }
.btn-outline:hover { background: var(--moss); color: white; }
.btn-gold { background: var(--gold); color: var(--forest); }
.btn-gold:hover { opacity: 0.85; }

/* Suchfeld */
.search-input {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
    background: white;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}
.search-input:focus { border-color: var(--moss); }

/* Filter-Buttons */
.filter-btn {
    padding: 0.35rem 0.95rem;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: white;
    color: var(--forest);
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    font-family: 'DM Sans', sans-serif;
    display: inline-block;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--forest);
    color: white;
    border-color: var(--forest);
}

/* Symptom-Buttons */
.symptom-btn-pill {
    padding: 0.45rem 1.1rem;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    background: white;
    color: var(--forest);
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}
.symptom-btn-pill:hover {
    background: var(--forest);
    color: white;
    border-color: var(--forest);
}

/* Relevanz-Labels */
.rel-high { background: rgba(74,124,89,0.1); color: var(--moss); padding: 0.2rem 0.7rem; border-radius: 50px; font-size: 0.75rem; font-weight: 500; }
.rel-mid  { background: rgba(201,168,76,0.1); color: #a07c20; padding: 0.2rem 0.7rem; border-radius: 50px; font-size: 0.75rem; font-weight: 500; }
.rel-low  { background: rgba(107,123,110,0.1); color: var(--muted); padding: 0.2rem 0.7rem; border-radius: 50px; font-size: 0.75rem; font-weight: 500; }

/* Produkt-Karten (Sidebar) */
.product-item { padding: 1rem 1.2rem; border-bottom: 1px solid var(--border); }
.product-item:last-child { border-bottom: none; }
.product-shop { font-size: 0.72rem; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.3rem; }
.product-name { font-size: 0.9rem; font-weight: 500; color: var(--forest); margin-bottom: 0.3rem; }
.product-price { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.6rem; }
.product-btn {
    display: block;
    width: 100%;
    padding: 0.6rem;
    background: var(--moss);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    transition: background 0.2s;
}
.product-btn:hover { background: var(--forest); color: white; }

/* Sidebar-Karten */
.sidebar-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
}
.sidebar-title {
    background: var(--forest);
    color: var(--cream);
    padding: 0.9rem 1.2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
}

/* ============================================================
   ANIMATIONEN
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.25s; }
.fade-up-3 { animation-delay: 0.4s; }
.fade-up-4 { animation-delay: 0.55s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .nav-toggle  { display: flex; }
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .section-wrap { padding: 1.5rem 1rem; }
}
