/* =========================
   FrostyVolt Menüatelier - style.css
   Design: gradient_modern (with solid fallbacks)
   Layout: Mobile-first, Flexbox only
   ========================= */

/* ========== CSS Reset & Base Normalize ========== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding-left: 20px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #2A6F9E; outline-offset: 2px; }

/* ========== Theme Variables (with fallbacks) ========== */
:root {
  --color-primary: #0F6A4D;
  --color-secondary: #2A6F9E;
  --color-accent: #F5FBF8;
  --color-bg: #FFFFFF;
  --color-text: #12251F;
  --color-muted: #637770;
  --color-border: #E1E8E3;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 24px rgba(0,0,0,0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --transition: 0.25s ease;
}

/* ========== Typography ========== */
body {
  font-family: Verdana, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, Arial, sans-serif; line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 32px; letter-spacing: -0.3px; }
h2 { font-size: 24px; color: var(--color-primary); }
h3 { font-size: 18px; }
h4 { font-size: 16px; color: #06446d; }
p { margin: 0 0 14px; color: var(--color-text); }
small { color: var(--color-muted); }
strong { color: var(--color-text); }

/* ========== Global Containers & Layout (Flex only) ========== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
section { margin-bottom: 60px; padding: 40px 0; }

/* Mandatory spacing classes */
.section { margin-bottom: 60px; padding: 40px 20px; }
.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; }

/* Utility */
.badge, .chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--color-accent); color: var(--color-primary); border: 1px solid var(--color-border); }
.muted { color: var(--color-muted); }
.hr { height: 1px; width: 100%; background: var(--color-border); }

/* ========== Header & Navigation ========== */
header { position: relative; z-index: 50; background: #ffffff; box-shadow: var(--shadow-sm); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 20px; }
header img { height: 36px; }
header nav { display: none; align-items: center; gap: 18px; }
header nav a { color: var(--color-text); padding: 8px 10px; border-radius: 8px; transition: background-color var(--transition), color var(--transition); }
header nav a:hover { background: var(--color-accent); color: var(--color-primary); }

/* CTAs */
.cta-primary, .cta-secondary, .cta-tertiary, button, .button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 18px; border-radius: 12px; border: 1px solid transparent;
  transition: transform var(--transition), background-color var(--transition), color var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.cta-primary, button.cta-primary {
  background: var(--color-primary);
  color: #0dac3d; box-shadow: var(--shadow-sm);
}
.cta-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cta-secondary { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.cta-secondary:hover { background: var(--color-accent); }
.cta-tertiary { background: transparent; color: var(--color-secondary); border-color: var(--color-secondary); }
.cta-tertiary:hover { background: #EEF5FA; }

/* Mobile Menu Button */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--color-border);
  background: #fff; transition: background-color var(--transition), transform var(--transition);
}
.mobile-menu-toggle:hover { background: var(--color-accent); transform: translateY(-1px); }

/* ========== Mobile Menu Overlay ========== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
  background: rgba(18,37,31,0.3);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu > .mobile-nav {
  background: #ffffff; height: 100%; max-width: 88%; width: 320px; padding: 20px; box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 12px;
}
.mobile-menu-close {
  position: absolute; top: 14px; right: 14px; /* decorative/utility, not a content card */
  width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--color-border);
  background: #fff; z-index: 1001;
}
.mobile-nav a { padding: 12px 10px; border-radius: 10px; color: var(--color-text); }
.mobile-nav a:hover { background: var(--color-accent); color: var(--color-primary); }

/* Show desktop nav on larger screens */
@media (min-width: 992px) {
  header nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ========== Hero Sections ========== */
.hero {
  /* solid fallback */
  background-color: var(--color-accent);
  /* subtle gradient for modern feel */
  background-image: linear-gradient(135deg, rgba(15,106,77,0.08), rgba(42,111,158,0.08));
  border-bottom: 1px solid var(--color-border);
}
.hero .container { padding: 36px 20px; }
.hero .content-wrapper { gap: 14px; }
.hero p { color: #1e3b33; }
.value-propositions { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--color-text); }
.value-propositions li { list-style: none; background: #fff; border: 1px solid var(--color-border); border-radius: 999px; padding: 8px 12px; }
.trust-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--color-muted); }
.trust-badges img { width: 28px; height: 28px; }

/* Inputs in hero */
.hero input[type="text"], .hero input[type="email"] {
  width: 100%; max-width: 520px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--color-border);
  background: #fff; box-shadow: var(--shadow-sm);
}
.hero .diet-badges, .diet-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.diet-badges span { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--color-border); color: var(--color-primary); }

/* ========== Feature Sections ========== */
.features .feature-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.feature-item { flex: 1 1 260px; padding: 16px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.feature-item img { width: 36px; height: 36px; }
.feature-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.science-note { color: var(--color-muted); font-size: 14px; }

/* ========== Services ========== */
.services .service-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.service-card { flex: 1 1 260px; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.service-card a { color: var(--color-secondary); text-decoration: underline; }
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ========== Testimonials & Reviews (light cards, dark text) ========== */
.testimonials { background: #FAFCFB; }
.testimonial-list { display: flex; flex-wrap: wrap; gap: 20px; }
.testimonial-card { flex: 1 1 260px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); color: var(--color-text); }
.testimonial-card p { margin: 0; }
.testimonial-card span { color: var(--color-muted); }
.rating-metrics, .metrics { display: flex; flex-wrap: wrap; gap: 14px; color: var(--color-text); }
.rating-metrics span, .metrics span { background: #fff; border: 1px solid var(--color-border); border-radius: 999px; padding: 8px 12px; }

/* ========== About ========== */
.about { background: #ffffff; }
.about ul { display: flex; flex-direction: column; gap: 8px; }

/* ========== Onboarding / How it works ========== */
.onboarding ol, .how-it-works ol { display: flex; flex-direction: column; gap: 10px; }
.onboarding button { background: var(--color-secondary); color: #fff; border-radius: 10px; padding: 12px 16px; border: 1px solid transparent; }

/* ========== Recipe Pages ========== */
.search-filter .filter-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 12px; }
.filter-chips span { padding: 8px 12px; border-radius: 999px; background: var(--color-accent); border: 1px solid var(--color-border); color: var(--color-primary); }
.filter-chips .toggle { background: #fff; color: var(--color-secondary); border-color: #CFE2F3; }
.filter-chips input[type="range"] { accent-color: var(--color-secondary); }
.filter-chips select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--color-border); background: #fff; }

.recipe-categories .category-list { display: flex; flex-wrap: wrap; gap: 10px; }
.category-list span { padding: 8px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--color-border); }

.recipe-list .recipe-card-list { display: flex; flex-wrap: wrap; gap: 24px; }
.recipe-card { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.recipe-card h3 { color: var(--color-primary); }
.recipe-card ul { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.recipe-card button { background: var(--color-primary); color: #fff; border: 1px solid var(--color-primary); border-radius: 10px; padding: 10px 14px; }
.recipe-card button + button { background: #fff; color: var(--color-primary); border: 1px solid var(--color-primary); }
.recipe-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.knowledge ul { display: flex; flex-direction: column; gap: 8px; }

.reviews .testimonial-card { background: #fff; }

/* ========== Pricing & Plans ========== */
.pricing .plan-cards { display: flex; flex-wrap: wrap; gap: 24px; }
.plan-card { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.plan-card h3 { color: var(--color-secondary); }
.plan-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Feature comparison table (within wrapper) */
.feature-comparison-table { width: 100%; overflow-x: auto; display: flex; }
.feature-comparison-table table { border-collapse: collapse; min-width: 560px; width: 100%; }
.feature-comparison-table th, .feature-comparison-table td { border: 1px solid var(--color-border); padding: 10px 12px; text-align: left; }
.feature-comparison-table th { background: #F4F9F7; color: var(--color-primary); }

/* ========== FAQ ========== */
.faq .content-wrapper { gap: 14px; }
.faq-entry { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 14px; box-shadow: var(--shadow-sm); }

/* ========== Contact Page Extras ========== */
.contact-options ul { display: flex; flex-direction: column; gap: 8px; }
.map { display: flex; align-items: center; justify-content: center; padding: 20px; border: 1px dashed var(--color-border); border-radius: var(--radius-md); background: #fff; color: var(--color-muted); }

/* ========== Legal Pages ========== */
.legal-content ul, .dsgvo-details ul, .agb-content ul, .cookie-policy ul { display: flex; flex-direction: column; gap: 8px; }
.cookie-table-placeholder { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 14px; color: var(--color-muted); }

/* ========== CTA Sections ========== */
.cta-final, .cta-navigation, .cta-principles, .cta-together, .cta-contact, .cta-next { background: #ffffff; }
.cta-final .content-wrapper, .cta-navigation .content-wrapper, .cta-principles .content-wrapper, .cta-together .content-wrapper, .cta-contact .content-wrapper, .cta-next .content-wrapper {
  flex-direction: row; flex-wrap: wrap; gap: 12px; align-items: center;
}

/* ========== Thank You ========== */
.thank-you .content-wrapper { gap: 14px; }

/* ========== Footer ========== */
footer { background: #517067; color: #EAF6F2; padding: 28px 0; }
footer .container { gap: 16px; }
footer .content-wrapper {
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
footer address { font-style: normal; line-height: 1.7; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px; color: #CFE6DE; }
footer nav a { color: #CFE6DE; text-decoration: underline; }
footer .social-links { display: flex; align-items: center; gap: 12px; }
footer .social-links img { width: 22px; height: 22px; filter: brightness(0) invert(1); opacity: 0.9; }

/* ========== Forms & Inputs ========== */
input[type="text"], input[type="email"], select, textarea {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--color-border); background: #fff; width: 100%;
}
button { background: #fff; color: var(--color-text); border: 1px solid var(--color-border); }
button:hover { background: var(--color-accent); }

/* ========== Gradient Accents (Solid fallback included) ========== */
/* Accent band utility for optional section headers */
.accent-band {
  background-color: var(--color-accent);
  background-image: linear-gradient(90deg, rgba(15,106,77,0.12), rgba(42,111,158,0.12));
  border-radius: var(--radius-lg);
  padding: 12px 16px;
}

/* ========== Responsive Rules ========== */
/* Text-image sections stack on mobile */
.text-image-section { flex-direction: column; }
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .text-image-section { flex-direction: row; }
  .content-wrapper { gap: 18px; }
}
@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

/* ========== Transitions & Micro-interactions ========== */
a, button, .service-card, .feature-item, .recipe-card, .plan-card { transition: var(--transition); }
a:hover { opacity: 0.95; }

/* ========== Accessibility & Contrast Helpers ========== */
.testimonials, .reviews { color: var(--color-text); }
.reviews span { color: var(--color-text); }

/* ========== Mobile-first Nav visibility ========== */
/* Hide desktop CTAs on tight widths to prevent crowding (optional, still visible by wrap) */
header .cta-primary, header .cta-secondary { order: 3; }

/* ========== Cookie Consent Banner & Modal ========== */
/* Banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  background: #ffffff; border-top: 1px solid var(--color-border); box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
  display: none; /* default hidden; show via .show */
}
.cookie-banner.show { display: flex; }
.cookie-banner .container { padding: 16px 20px; gap: 12px; }
.cookie-banner .content-wrapper { gap: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-accept { background: var(--color-primary); color: #15b69b; border-color: var(--color-primary); }
.cookie-reject { background: #fff; color: var(--color-primary); border-color: var(--color-primary); }
.cookie-settings { background: #fff; color: var(--color-secondary); border-color: var(--color-secondary); }
.cookie-accept:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cookie-reject:hover, .cookie-settings:hover { background: var(--color-accent); }

/* Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center;
  background: rgba(18,37,31,0.4);
}
.cookie-modal.open { display: flex; }
.cookie-modal .modal-panel {
  width: 92%; max-width: 680px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md); padding: 18px; display: flex; flex-direction: column; gap: 14px;
  transform: translateY(12px); opacity: 0; transition: transform var(--transition), opacity var(--transition);
}
.cookie-modal.open .modal-panel { transform: translateY(0); opacity: 1; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 10px; }
.cookie-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: 12px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ========== Tables generic ========== */
.table-responsive { width: 100%; overflow-x: auto; display: flex; }

/* ========== Misc Elements From HTML ========== */
.press-partnership .content-wrapper { gap: 16px; }
.features-service ul { display: flex; flex-direction: column; gap: 8px; }
.implementation-everyday ul { display: flex; flex-direction: column; gap: 8px; }
.science-foundation p { color: var(--color-text); }

/* Ensure minimum spacing between cards/sections */
section + section { margin-top: 0; }
.service-card, .feature-item, .recipe-card, .plan-card, .faq-entry, .testimonial-card { margin-bottom: 20px; }

/* Prevent overlaps with clear gaps */
.features .content-wrapper, .services .content-wrapper, .pricing .content-wrapper, .faq .content-wrapper, .testimonials .content-wrapper {
  gap: 20px;
}

/* ========== Desktop refinements ========== */
@media (min-width: 768px) {
  .hero .container { padding: 56px 20px; }
  .container { gap: 24px; }
}

/* ========== Print basics ========== */
@media print {
  .mobile-menu, .cookie-banner, .cookie-modal, .mobile-menu-toggle { display: none !important; }
  a { text-decoration: underline; }
}
