/* =======================================================
   Schneeglöckchenpfad – Industrial Modern UI
   Style: Dark, metallic accents, urban feel
   Brand: Uses Georgia (display) & Verdana (body), brand greens as accents
   Layout: MOBILE-FIRST, FLEXBOX ONLY (no grid/columns)
   Includes: Mobile menu, cookie consent banner & modal
   ======================================================= */

/* ---------------------------
   0) CSS RESET / NORMALIZE
---------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #E7ECEF; /* light steel */
  background-color: #121418; /* charcoal */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: #7FB8A5; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
ul, ol { padding-left: 1.2rem; }
button { font-family: inherit; font-size: 1rem; background: none; border: none; color: inherit; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #7FB8A5; outline-offset: 2px; }

/* ---------------------------
   1) THEME VARIABLES
---------------------------- */
:root {
  --brand-primary: #1E5B45;
  --brand-secondary: #7FB8A5;
  --brand-accent: #F5FBF7;

  --bg-deep: #0E1114;
  --bg-base: #121418;
  --bg-elev: #171B20;
  --bg-panel: #1B2026;

  --text-main: #E7ECEF;
  --text-muted: #A7B0B7;
  --text-invert: #111318;

  --steel-600: #2A3138;
  --steel-500: #343C45;
  --steel-400: #3E4852;
  --steel-300: #56616C;
  --steel-200: #7D8893;

  --success: #1E5B45;
  --warning: #C39B3B;
  --danger: #D66A6A;

  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;

  --shadow-s: 0 1px 0 rgba(255,255,255,0.04), 0 1px 8px rgba(0,0,0,0.3);
  --shadow-m: 0 1px 0 rgba(255,255,255,0.05), 0 8px 24px rgba(0,0,0,0.35);
  --shadow-l: 0 1px 0 rgba(255,255,255,0.06), 0 14px 48px rgba(0,0,0,0.4);

  --gap-8: 8px;
  --gap-12: 12px;
  --gap-16: 16px;
  --gap-20: 20px;
  --gap-24: 24px;
  --gap-30: 30px;
  --gap-32: 32px;
  --gap-40: 40px;
  --gap-60: 60px;
}

/* Fallback direct values where critical */
body { background-color: var(--bg-base, #121418); color: var(--text-main, #E7ECEF); }

/* ---------------------------
   2) TYPOGRAPHY SCALE
---------------------------- */
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: #F1F5F7; line-height: 1.2; }
h1 { font-size: 40px; letter-spacing: 0.3px; }
h2 { font-size: 28px; margin-top: 8px; }
h3 { font-size: 20px; color: #F3F7F8; }
h4 { font-size: 18px; }
p { color: var(--text-main, #E7ECEF); }
small, .muted { color: var(--text-muted, #A7B0B7); font-size: 14px; }
strong { color: #FFFFFF; }

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* ---------------------------
   3) LAYOUT WRAPPERS (FLEX ONLY)
---------------------------- */
.container {
  display: flex; /* flex-only */
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  padding: 0 16px;
}
.content-wrapper {
  display: flex; /* flex-only */
  flex-direction: column;
  gap: var(--gap-20);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Mandatory spacing pattern for any .section (and default section) */
.section { margin-bottom: 60px; padding: 40px 20px; }
section { margin-bottom: 60px; padding: 40px 0; }

/* Industrial section background alternation */
section:nth-of-type(odd) { background-color: var(--bg-base, #121418); }
section:nth-of-type(even) { background-color: var(--bg-elev, #171B20); }

/* Generic flex utility patterns required */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure no overlap with consistent spacing */
.content-grid > * { margin: 0; }

/* ---------------------------
   4) HEADER & NAVIGATION
---------------------------- */
header {
  position: sticky; top: 0; z-index: 1000;
  background: linear-gradient(to bottom, rgba(0,0,0,0.0), rgba(0,0,0,0.0)); /* keep solid feel */
  background-color: var(--bg-deep, #0E1114);
  border-bottom: 1px solid var(--steel-600, #2A3138);
  box-shadow: var(--shadow-s);
}
header .container { align-items: center; gap: var(--gap-16); padding: 14px 16px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; filter: drop-shadow(0 1px 0 rgba(255,255,255,0.08)); }

.main-nav {
  display: none; /* Mobile-first: hidden */
  gap: var(--gap-16);
}
.main-nav a {
  color: var(--text-main, #E7ECEF);
  padding: 8px 10px;
  border-radius: var(--radius-s);
  transition: background-color .2s ease, color .2s ease;
}
.main-nav a:hover { background-color: var(--steel-600, #2A3138); }
.main-nav a[aria-current="page"] { color: var(--brand-secondary, #7FB8A5); }

.mobile-menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 8px;
  background-color: var(--steel-600, #2A3138);
  color: #FFFFFF;
  box-shadow: var(--shadow-s);
}
.mobile-menu-toggle:hover { background-color: var(--steel-500, #343C45); }

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  display: flex; /* flex-only */
  flex-direction: column; justify-content: flex-start; align-items: stretch;
  background-color: rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform .35s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; margin: 12px 16px; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
  background-color: var(--steel-600, #2A3138); color: #fff;
}
.mobile-nav {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 20px; width: 100%;
  background-color: var(--bg-panel, #1B2026); border-top: 1px solid var(--steel-600, #2A3138);
  box-shadow: var(--shadow-l);
}
.mobile-nav a {
  display: flex; align-items: center; min-height: 48px;
  color: #F1F5F7; font-size: 18px; border-radius: 8px; padding: 10px 12px;
}
.mobile-nav a:hover { background-color: var(--steel-600, #2A3138); }

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ---------------------------
   5) HERO
---------------------------- */
.hero { background-color: var(--bg-deep, #0E1114); border-bottom: 1px solid var(--steel-600, #2A3138); }
.hero .content-wrapper { padding: 24px 0; gap: 20px; }
.hero h1 { text-shadow: 0 1px 0 rgba(255,255,255,0.05); }
.hero p { color: var(--text-muted, #A7B0B7); max-width: 68ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--gap-16); align-items: center; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trust-badges span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 999px;
  background-color: var(--steel-600, #2A3138); color: #EAF2F0;
  border: 1px solid var(--steel-400, #3E4852);
}

/* ---------------------------
   6) BUTTONS
---------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; flex-wrap: nowrap;
  gap: 8px; padding: 12px 18px; border-radius: var(--radius-m);
  border: 1px solid transparent; font-weight: 600; letter-spacing: 0.2px;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-s);
}
.button:active { transform: translateY(1px); }
.button.primary {
  background-color: var(--brand-primary, #1E5B45);
  color: #FFFFFF;
}
.button.primary:hover { background-color: #184B39; box-shadow: var(--shadow-m); }
.button.secondary {
  background-color: transparent;
  color: var(--brand-secondary, #7FB8A5);
  border-color: var(--steel-400, #3E4852);
}
.button.secondary:hover { background-color: var(--steel-600, #2A3138); }
.button.link {
  background: transparent; border: 1px dashed var(--steel-400, #3E4852);
  color: #FFFFFF; padding: 10px 14px; border-radius: var(--radius-s);
}
.button.link:hover { border-style: solid; background-color: var(--steel-600, #2A3138); }

/* ---------------------------
   7) CARDS & PANELS (Industrial finish)
---------------------------- */
.card, .feature, .recipe-card, .collection, .goal, .plan, .principle {
  background-color: var(--bg-panel, #1B2026);
  border: 1px solid var(--steel-600, #2A3138);
  border-radius: var(--radius-l);
  padding: 18px;
  box-shadow: var(--shadow-s);
}
.card:hover, .feature:hover, .recipe-card:hover, .collection:hover, .goal:hover, .plan:hover, .principle:hover {
  box-shadow: var(--shadow-m);
}

/* ---------------------------
   8) FEATURE / GRID SECTIONS (FLEX ONLY)
---------------------------- */
.feature-grid, .recipe-cards-grid, .collection-cards, .goal-tiles, .service-cards, .pricing-table, .footer-top {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; justify-content: space-between;
}
.feature { flex: 1 1 280px; min-width: 260px; }
.recipe-cards-grid .recipe-card { flex: 1 1 300px; min-width: 280px; }
.collection-cards .collection { flex: 1 1 340px; min-width: 280px; }
.goal-tiles .goal { flex: 1 1 220px; min-width: 220px; }
.service-cards > article { flex: 1 1 260px; min-width: 240px; }

/* Pricing */
.pricing-table .plan { flex: 1 1 260px; min-width: 260px; position: relative; }
.pricing-table .plan h3 { margin: 0 0 6px; }
.pricing-table .plan ul { margin: 8px 0 0 18px; color: var(--text-muted, #A7B0B7); }
.trial-badge, .money-back-note { color: var(--brand-secondary, #7FB8A5); }

/* Steps, lists & badges */
.steps { display: flex; flex-direction: column; gap: 10px; margin: 0; padding-left: 20px; }
.supporting-points, .illustrated-bullets, .benefit-list, .brand-values, .evidence-highlights, .benefit-bullets, .values, .top-rated-list, .preference-list, .method-pillars, .response-policy, .next-steps { 
  display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 18px; 
}

/* Stats & icon rows */
.icon-row, .stats-bar, .trust-badges, .toc-list {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.stats-bar span {
  display: inline-flex; align-items: center; padding: 6px 10px;
  border-radius: 999px; background-color: var(--steel-600, #2A3138);
  color: #EAF2F0; border: 1px solid var(--steel-400, #3E4852);
}

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.pagination a { padding: 6px 10px; border-radius: 8px; background-color: var(--steel-600, #2A3138); color: #fff; }
.pagination a:hover { background-color: var(--steel-500, #343C45); }

/* Summaries / details */
details { border: 1px solid var(--steel-600, #2A3138); border-radius: var(--radius-m); background-color: var(--bg-panel, #1B2026); }
summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; cursor: pointer; list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; color: #FFFFFF; font-weight: 700; transition: transform .2s ease;
}
details[open] summary::after { content: '–'; transform: rotate(180deg); }
.text-section { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px 16px; color: var(--text-muted, #A7B0B7); }

/* Banners */
.collection-banner { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; border-radius: var(--radius-m); background-color: var(--steel-600, #2A3138); border: 1px solid var(--steel-400, #3E4852); }

/* Notes */
.note, .save-note, .newsletter-note, .platforms-note, .rating-summary, .impact, .quality-standards, .what-different, .methodology-notes, .evidence-note, .micro-bio, .money-back-note, .trial-badge, .support-note { color: var(--text-muted, #A7B0B7); }

/* Testimonials (CRITICAL: light background with dark text) */
.testimonial-card {
  background-color: var(--brand-accent, #F5FBF7);
  color: #222;
  border: 1px solid #DCE6E1;
  border-radius: var(--radius-l);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7), 0 10px 24px rgba(0,0,0,0.08);
}
.testimonial-card p { color: #222; }
.testimonial-card strong { color: #111; }
.rating-summary { color: #EAF2F0; }

/* User quotes grouping */
.user-quotes { display: flex; flex-direction: column; gap: 12px; }

/* ---------------------------
   9) HERO + PAGE-SPECIFIC TWEAKS
---------------------------- */
.filter-bar { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px dashed var(--steel-600, #2A3138); border-radius: var(--radius-m); background-color: var(--bg-panel, #1B2026); }
.filter-summary { display: flex; flex-direction: column; gap: 8px; }
.filter-summary a { color: var(--brand-secondary, #7FB8A5); }

.toc-list a { padding: 6px 10px; border-radius: 999px; background-color: var(--steel-600, #2A3138); color: #fff; }

/* Address & contact lines */
.text-section img { width: 18px; height: 18px; display: inline-block; vertical-align: middle; margin-right: 6px; filter: grayscale(100%) brightness(1.4); }
.text-section a { color: var(--brand-secondary, #7FB8A5); }

/* Downloads */
.downloads a { color: var(--brand-secondary, #7FB8A5); }

/* ---------------------------
   10) FOOTER
---------------------------- */
footer { background-color: #0C0F12; border-top: 1px solid var(--steel-600, #2A3138); }
footer .content-wrapper { padding: 28px 0; gap: 22px; }
.footer-top { align-items: flex-start; }
.footer-top > div { flex: 1 1 260px; min-width: 220px; }
footer nav { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
footer a { color: #CFE5DE; }
.brand-badge img { height: 40px; margin-bottom: 10px; filter: drop-shadow(0 1px 0 rgba(255,255,255,0.08)); }
.newsletter-note p, footer p { color: var(--text-muted, #A7B0B7); }

/* ---------------------------
   11) UTILITIES & MICRO-INTERACTIONS
---------------------------- */
.hr-line { height: 1px; background-color: var(--steel-600, #2A3138); width: 100%; }
.badge { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--steel-400, #3E4852); background-color: var(--steel-600, #2A3138); color: #F1F6F4; }

/* Hover lift for cards */
.card, .feature, .recipe-card, .collection, .goal, .plan, .principle { transition: transform .2s ease, box-shadow .2s ease; }
.card:hover, .feature:hover, .recipe-card:hover, .collection:hover, .goal:hover, .plan:hover, .principle:hover { transform: translateY(-2px); }

/* Lists inside cards */
.card ul, .feature ul, .principle ul { padding-left: 18px; color: var(--text-muted, #A7B0B7); }

/* ---------------------------
   12) RESPONSIVE RULES
---------------------------- */
@media (max-width: 768px) {
  /* required: text-image-section stacks */
  .text-image-section { flex-direction: column; align-items: flex-start; }
  .feature-grid, .recipe-cards-grid, .collection-cards, .goal-tiles, .service-cards, .pricing-table, .footer-top { justify-content: flex-start; }
}

@media (min-width: 768px) {
  .hero .content-wrapper { padding: 36px 0; }
}

@media (min-width: 1200px) {
  .content-wrapper { gap: 24px; }
}

/* ---------------------------
   13) ACCESSIBILITY & REDUCED MOTION
---------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------------------
   14) MOBILE MENU ANIMATIONS (flex only structure)
---------------------------- */
@keyframes slideInPanel { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes slideOutPanel { from { transform: translateX(0); } to { transform: translateX(100%); } }

/* Applied via JS by toggling .open */
.mobile-menu.open .mobile-nav { animation: slideInPanel .35s ease both; }

/* ---------------------------
   15) COOKIE CONSENT BANNER (required)
---------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px;
  padding: 16px; background-color: var(--bg-panel, #1B2026);
  border-top: 1px solid var(--steel-600, #2A3138); box-shadow: var(--shadow-m);
  transform: translateY(100%); transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; max-width: 1200px;
}
.cookie-text { color: var(--text-main, #E7ECEF); flex: 1 1 240px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .accept { background-color: var(--brand-primary, #1E5B45); color: #fff; border: 1px solid transparent; border-radius: var(--radius-m); padding: 10px 14px; }
.cookie-actions .reject { background-color: transparent; color: #fff; border: 1px solid var(--steel-400, #3E4852); border-radius: var(--radius-m); padding: 10px 14px; }
.cookie-actions .settings { background-color: var(--steel-600, #2A3138); color: #fff; border: 1px solid var(--steel-400, #3E4852); border-radius: var(--radius-m); padding: 10px 14px; }
.cookie-actions .accept:hover { background-color: #184B39; }
.cookie-actions .reject:hover, .cookie-actions .settings:hover { background-color: var(--steel-500, #343C45); }

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 1300;
  display: none; /* toggled by .open */
  align-items: center; justify-content: center;
  background-color: rgba(0,0,0,0.55);
  padding: 20px;
}
.cookie-modal.open { display: flex; }
.cookie-dialog {
  display: flex; flex-direction: column; gap: 16px;
  width: 100%; max-width: 720px; padding: 18px;
  background-color: var(--bg-panel, #1B2026);
  border: 1px solid var(--steel-600, #2A3138); border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
}
.cookie-dialog h3 { margin: 0; }
.cookie-cats { display: flex; flex-direction: column; gap: 10px; }
.cookie-cat { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 10px; border: 1px solid var(--steel-600, #2A3138); border-radius: var(--radius-m); }
.cookie-cat .always { color: var(--brand-secondary, #7FB8A5); font-size: 14px; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle switch (pure CSS) */
.switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background-color: var(--steel-600, #2A3138); border: 1px solid var(--steel-400, #3E4852); }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s ease; }
.switch.on { background-color: var(--brand-primary, #1E5B45); border-color: #184B39; }
.switch.on::after { transform: translateX(20px); }

/* ---------------------------
   16) HEADINGS / TEXT REFINEMENTS
---------------------------- */
h2 { border-left: 4px solid var(--steel-300, #56616C); padding-left: 10px; }

/* ---------------------------
   17) TABLE-LIKE LISTS (no grid)
---------------------------- */
.cookie-table { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--steel-600, #2A3138); border-radius: var(--radius-m); background-color: var(--bg-panel, #1B2026); }
.cookie-table ul { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 18px; color: var(--text-muted, #A7B0B7); }

/* ---------------------------
   18) LINKS & INTERACTIVE STATES
---------------------------- */
a, .button { transition: color .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .15s ease; }
a:focus-visible, .button:focus-visible { box-shadow: 0 0 0 3px rgba(127,184,165,0.35); }

/* ---------------------------
   19) HEADER CTA BUTTON LAYOUT
---------------------------- */
header .button.primary { padding: 10px 14px; }
header .container { flex-wrap: nowrap; }
@media (max-width: 991px) {
  header .button.primary { display: none; }
}

/* ---------------------------
   20) IMAGE TREATMENT
---------------------------- */
img { border-radius: 4px; }

/* ---------------------------
   21) DARK/LIGHT MIX FOR TESTIMONIALS
---------------------------- */
/* already handled above; ensure separation spacing */
.testimonial-card + .testimonial-card { margin-top: 16px; }

/* ---------------------------
   22) PAGE-SPECIFIC SMALL TWEAKS
---------------------------- */
.rating-summary { margin-top: 10px; }
.collection h3, .goal h3, .recipe-card h3, .feature h3, .plan h3 { margin-top: 0; }
.save-note, .note { font-size: 14px; }

/* ---------------------------
   23) PRINT BASICS
---------------------------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ========================
   END OF STYLESHEET
======================== */
