/* CrystalWealth Ernährung – Vintage Retro CSS Theme */

/* =========================
   1. CSS Variables & Fonts
   ========================= */
:root {
  /* Brand Colors (Vintage Retro Palette) */
  --primary: #15614F;
  --primary-dark: #104d3e;
  --secondary: #fff8e7;
  --accent: #e3b505;
  --accent-dark: #b48a04;
  --retro-red: #c1440e;
  --retro-blue: #4a90a4;
  --retro-green: #6b8e23;
  --retro-brown: #a67c52;
  --retro-orange: #e07a1b;
  --retro-cream: #f9e7cf;
  --retro-shadow: rgba(60, 40, 20, 0.08);
  --text-dark: #2d2a26;
  --text-light: #fff8e7;
  --border-radius: 14px;
  --border-radius-lg: 24px;
  --shadow: 0 4px 24px var(--retro-shadow);
  --shadow-card: 0 2px 8px var(--retro-shadow);
  --pattern-bg: repeating-linear-gradient(135deg, #f9e7cf 0 10px, #fff8e7 10px 20px);
  /* Fonts */
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', 'Futura', 'Trebuchet MS', sans-serif;
  --font-body: 'Open Sans', 'Arial', 'Helvetica Neue', sans-serif;
  --font-retro: 'Montserrat', 'Open Sans', 'Arial', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');

html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-body);
  background: var(--pattern-bg);
  color: var(--text-dark);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
  background-attachment: fixed;
}

/* =========================
   2. Typography
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-top: 0;
  margin-bottom: 0.7em;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 1px 2px 0 #e3b50522;
}
h1 {
  font-size: 2.2rem;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}
h2 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.4em;
}
p, ul, ol {
  font-size: 1rem;
  margin-bottom: 1em;
}
strong {
  color: var(--retro-red);
  font-weight: 700;
}
a {
  color: var(--retro-blue);
  text-decoration: underline dotted var(--accent-dark) 1.5px;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: var(--retro-red);
  text-decoration: underline solid var(--retro-red) 2px;
}

/* =========================
   3. Layout Containers
   ========================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  position: relative;
}

/* =========================
   4. Header & Navigation
   ========================= */
header {
  background: var(--retro-cream);
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 2px 8px #e3b50511;
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  min-height: 80px;
}
header img {
  height: 54px;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--accent);
  color: var(--retro-red);
}
.main-nav .btn-primary {
  background: var(--accent);
  color: var(--primary);
  border-radius: 18px;
  padding: 8px 22px;
  font-size: 1.05rem;
  margin-left: 10px;
  box-shadow: 0 2px 8px #e3b50533;
  border: 2px solid var(--accent-dark);
  text-shadow: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.main-nav .btn-primary:hover, .main-nav .btn-primary:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 16px #e3b50544;
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: 18px;
  box-shadow: 0 2px 8px #e3b50522;
  transition: background 0.2s, color 0.2s;
}
.mobile-menu-toggle:active {
  background: var(--primary);
  color: var(--accent);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--retro-cream);
  z-index: 1000;
  padding: 32px 24px 24px 24px;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.77,0,.18,1);
  box-shadow: 0 0 0 100vw #2d2a2640;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2.2rem;
  align-self: flex-end;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: var(--retro-red);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px dashed var(--accent);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--retro-red);
  background: var(--accent);
}

/* Hide main nav on mobile */
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 901px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================
   5. Hero Section
   ========================= */
.hero {
  background: linear-gradient(120deg, var(--retro-cream) 60%, var(--accent) 100%);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  position: relative;
  overflow: hidden;
}
.hero .container {
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 18px;
}
.hero h1 {
  color: var(--retro-red);
  font-size: 2.5rem;
  text-shadow: 2px 4px 0 #e3b50533;
}
.hero p {
  color: var(--primary-dark);
  font-size: 1.2rem;
  margin-bottom: 1.2em;
}

/* =========================
   6. Buttons
   ========================= */
.btn-primary, .btn-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 12px 32px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px #e3b50522;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
  text-decoration: none;
  margin-top: 8px;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--accent-dark);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 4px 16px #e3b50544;
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: var(--primary);
  color: var(--accent);
  border: 2px solid var(--primary-dark);
}
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 4px 16px #e3b50544;
  transform: translateY(-2px) scale(1.03);
}
.read-more {
  font-family: var(--font-display);
  color: var(--retro-blue);
  font-weight: 700;
  text-decoration: underline dotted var(--accent-dark) 1.5px;
  transition: color 0.2s;
}
.read-more:hover {
  color: var(--retro-red);
  text-decoration: underline solid var(--retro-red) 2px;
}

/* =========================
   7. Features & Services
   ========================= */
.features, .feature-list, .feature-grid, .service-list, .step-by-step {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-item, .service-item, .service-step {
  background: var(--retro-cream);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 28px 22px 22px 22px;
  flex: 1 1 260px;
  min-width: 220px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  border: 2px solid var(--accent);
  position: relative;
  transition: box-shadow 0.2s, transform 0.15s;
}
.feature-item:hover, .service-item:hover, .service-step:hover {
  box-shadow: 0 8px 32px #e3b50533;
  transform: translateY(-4px) scale(1.02);
}
.feature-icon, .service-icon {
  font-size: 2.2rem;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  padding: 10px 16px;
  margin-bottom: 8px;
  box-shadow: 0 2px 8px #e3b50522;
  border: 2px solid var(--primary);
}

/* =========================
   8. Cards & Grids
   ========================= */
.card-container, .content-grid, .blog-teaser-grid, .blog-card-list, .team-list, .impressions, .recipe-cards-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card, .blog-teaser, .blog-post-card, .team-member, .impression-item, .recipe-card {
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 24px 18px;
  margin-bottom: 20px;
  flex: 1 1 260px;
  min-width: 220px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.15s;
}
.card:hover, .blog-teaser:hover, .blog-post-card:hover, .team-member:hover, .impression-item:hover, .recipe-card:hover {
  box-shadow: 0 8px 32px #e3b50533;
  transform: translateY(-4px) scale(1.02);
}

/* =========================
   9. Testimonials
   ========================= */
.testimonials {
  background: var(--retro-cream);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 0;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 24px;
  background: var(--secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  min-width: 260px;
  max-width: 340px;
  margin-bottom: 20px;
  border-left: 8px solid var(--accent);
  transition: box-shadow 0.2s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 32px #e3b50533;
  transform: translateY(-4px) scale(1.02);
}
.testimonial-card p {
  color: var(--text-dark);
  font-size: 1.05rem;
  font-style: italic;
  margin-bottom: 0.5em;
}
.testimonial-meta {
  font-size: 0.98rem;
  color: var(--primary-dark);
  font-family: var(--font-display);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.testimonial-name {
  font-weight: 700;
  color: var(--retro-red);
}
.stars {
  color: var(--accent);
  font-size: 1.1em;
  margin-left: 6px;
}

/* =========================
   10. Blog & Legal Sections
   ========================= */
.blog-list, .legal, .faq, .about, .gallery, .contact, .thank-you {
  background: var(--secondary);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 0;
}
.categories-filter, .filter-categories, .filter-diet {
  font-family: var(--font-display);
  color: var(--retro-brown);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-item {
  background: var(--retro-cream);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 18px 16px;
  margin-bottom: 10px;
  border-left: 6px solid var(--accent);
}
.faq-item h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.4em;
}

/* =========================
   11. CTA Section
   ========================= */
.cta {
  background: linear-gradient(120deg, var(--accent) 60%, var(--retro-cream) 100%);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 0;
  text-align: center;
}
.cta h2 {
  color: var(--primary);
  font-size: 1.7rem;
  margin-bottom: 0.5em;
}
.cta p {
  color: var(--primary-dark);
  font-size: 1.1rem;
  margin-bottom: 1.2em;
}

/* =========================
   12. Footer
   ========================= */
footer {
  background: var(--primary);
  color: var(--text-light);
  padding: 40px 0 0 0;
  border-top: 6px solid var(--accent);
  margin-top: 60px;
}
footer .container {
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}
.footer-logo img {
  height: 44px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  justify-content: center;
  margin-bottom: 8px;
}
.footer-nav a {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1rem;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--accent);
  color: var(--primary);
}
.footer-contact, .footer-social, .footer-copyright {
  color: var(--text-light);
  font-size: 0.98rem;
  margin-bottom: 6px;
}
.footer-social a {
  color: var(--accent);
  text-decoration: underline dotted var(--accent-dark) 1.5px;
  margin: 0 4px;
  transition: color 0.2s;
}
.footer-social a:hover {
  color: var(--retro-red);
}
.footer-copyright {
  font-size: 0.92rem;
  color: #fff8e7cc;
  margin-top: 10px;
}

/* =========================
   13. Cookie Consent Banner
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: var(--retro-cream);
  color: var(--primary);
  box-shadow: 0 -2px 16px #e3b50533;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  border-top: 4px solid var(--accent);
  animation: cookie-slide-in 0.7s cubic-bezier(.77,0,.18,1);
}
@keyframes cookie-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 0 8px 0;
  font-size: 1rem;
  color: var(--primary-dark);
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 4px;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  margin: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #e3b50522;
}
.cookie-banner .accept {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--accent-dark);
}
.cookie-banner .accept:hover {
  background: var(--primary);
  color: var(--accent);
}
.cookie-banner .reject {
  background: var(--retro-red);
  color: var(--secondary);
  border: 2px solid var(--retro-red);
}
.cookie-banner .reject:hover {
  background: var(--primary);
  color: var(--accent);
}
.cookie-banner .settings {
  background: var(--primary);
  color: var(--accent);
  border: 2px solid var(--primary-dark);
}
.cookie-banner .settings:hover {
  background: var(--accent);
  color: var(--primary);
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2100;
  background: #2d2a26cc;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: var(--retro-cream);
  color: var(--primary);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px #e3b50544;
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: modal-pop 0.5s cubic-bezier(.77,0,.18,1);
}
@keyframes modal-pop {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5em;
  color: var(--retro-red);
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.cookie-modal-content .cookie-category label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--primary-dark);
}
.cookie-modal-content .cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 12px;
  background: var(--accent);
  position: relative;
  margin-right: 8px;
  cursor: pointer;
  transition: background 0.2s;
  border: 2px solid var(--accent-dark);
}
.cookie-modal-content .cookie-toggle[aria-checked="true"] {
  background: var(--primary);
}
.cookie-modal-content .cookie-toggle::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--secondary);
  position: absolute;
  top: 1px;
  left: 1px;
  transition: left 0.2s, background 0.2s;
}
.cookie-modal-content .cookie-toggle[aria-checked="true"]::after {
  left: 17px;
  background: var(--accent);
}
.cookie-modal-content .cookie-category .always-on {
  color: var(--retro-green);
  font-size: 0.98rem;
  font-weight: 700;
  margin-left: 8px;
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal-content button {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
  margin: 0;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #e3b50522;
}
.cookie-modal-content .save {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--accent-dark);
}
.cookie-modal-content .save:hover {
  background: var(--primary);
  color: var(--accent);
}
.cookie-modal-content .cancel {
  background: var(--retro-red);
  color: var(--secondary);
  border: 2px solid var(--retro-red);
}
.cookie-modal-content .cancel:hover {
  background: var(--primary);
  color: var(--accent);
}

/* =========================
   14. Responsive Design
   ========================= */
@media (max-width: 1100px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
}
@media (max-width: 900px) {
  .feature-item, .service-item, .service-step, .card, .blog-teaser, .blog-post-card, .team-member, .impression-item, .recipe-card {
    min-width: 180px;
    flex: 1 1 100%;
  }
  .card-container, .content-grid, .blog-teaser-grid, .blog-card-list, .team-list, .impressions, .recipe-cards-grid, .feature-grid, .service-list, .step-by-step {
    flex-direction: column;
    gap: 20px;
  }
  .main-nav {
    display: none;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .section, .hero, .cta, .testimonials, .blog-list, .legal, .faq, .about, .gallery, .contact, .thank-you {
    padding: 28px 4px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 2vw;
  }
  .content-wrapper {
    gap: 16px;
  }
  .hero .content-wrapper {
    gap: 12px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
}
@media (max-width: 540px) {
  .hero h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .btn-primary, .btn-secondary {
    font-size: 1rem;
    padding: 10px 18px;
  }
  .cookie-modal-content {
    padding: 18px 6px 16px 6px;
    min-width: 90vw;
  }
}

/* =========================
   15. Miscellaneous
   ========================= */
::-webkit-scrollbar {
  width: 10px;
  background: var(--retro-cream);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 8px;
}

/* Decorative retro patterns for sections */
.section::before, .hero::before, .cta::before {
  content: '';
  display: block;
  position: absolute;
  top: -24px; left: -24px;
  width: 80px; height: 80px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 8px, transparent 8px 16px);
  opacity: 0.12;
  border-radius: 50%;
  z-index: 0;
}
.section::after, .hero::after, .cta::after {
  content: '';
  display: block;
  position: absolute;
  bottom: -24px; right: -24px;
  width: 80px; height: 80px;
  background: repeating-linear-gradient(45deg, var(--retro-red) 0 8px, transparent 8px 16px);
  opacity: 0.10;
  border-radius: 50%;
  z-index: 0;
}

/* Hide decorative patterns on mobile */
@media (max-width: 540px) {
  .section::before, .section::after, .hero::before, .hero::after, .cta::before, .cta::after {
    display: none;
  }
}

/* =========================
   16. Utility Classes
   ========================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* =========================
   17. Accessibility
   ========================= */
:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 2px;
}

/* =========================
   18. Prevent Overlapping
   ========================= */
.card, .feature-item, .service-item, .service-step, .testimonial-card, .blog-teaser, .blog-post-card, .team-member, .impression-item, .recipe-card {
  margin-bottom: 20px;
}
.section, .hero, .cta, .testimonials, .blog-list, .legal, .faq, .about, .gallery, .contact, .thank-you {
  margin-bottom: 60px;
}

/* =========================
   END OF CSS
   ========================= */
