/* Velvet Traverse Rezeptwerkstatt - style.css */
/* RESET & NORMALIZE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; font-size: 16px; line-height: 1.6; color: #1f2d24; background-color: #FAF6ED; }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: #2E5339; text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
a:hover { color: #23402D; }
:focus-visible { outline: 3px solid #C27A2C; outline-offset: 2px; }

/* THEME TOKENS (with fallbacks) */
:root { --primary: #2E5339; --secondary: #C27A2C; --accent: #FAF6ED; --bg: #FAF6ED; --ink: #1f2d24; --muted: #5a6b60; --surface: #ffffff; --surface-2: #f6f3ea; --shadow: rgba(22, 31, 27, 0.1); --radius-s: 8px; --radius-m: 14px; --radius-l: 22px; --transition: 200ms ease; }

/* TYPOGRAPHY */
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', Times, serif; color: #132018; line-height: 1.25; margin: 0 0 12px; }
h1 { font-size: 40px; }
h2 { font-size: 28px; margin-top: 8px; }
h3 { font-size: 22px; }
p { margin: 0 0 12px; }
.small { font-size: 14px; color: var(--muted); }
.eyebrow { letter-spacing: .08em; text-transform: uppercase; font-weight: bold; font-size: 12px; color: #2E5339; }
.subheadline { color: #213529; font-size: 18px; }

/* LAYOUT HELPERS - FLEX ONLY */
.container { display: flex; width: 100%; justify-content: center; padding: 0 16px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1160px; }
.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; }

/* HEADER */
header { position: relative; z-index: 30; background-color: var(--surface); box-shadow: 0 6px 20px var(--shadow); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.main-nav { display: none; gap: 16px; align-items: center; flex-wrap: wrap; }
.main-nav a { text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 8px; transition: background-color var(--transition), color var(--transition); }
.main-nav a:hover { background-color: var(--surface-2); color: #163123; }
.header-ctas { display: none; gap: 10px; align-items: center; }
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid #d9d3c6; background: var(--surface); color: var(--ink); cursor: pointer; transition: background-color var(--transition), transform var(--transition); }
.mobile-menu-toggle:hover { background-color: var(--surface-2); transform: translateY(-1px); }

/* MOBILE MENU */
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: 88%; max-width: 360px; display: flex; flex-direction: column; background: var(--surface); box-shadow: -10px 0 30px rgba(0,0,0,.15); transform: translateX(100%); transition: transform 280ms ease; z-index: 100; }
.mobile-menu.open, .mobile-menu.active, body.menu-open .mobile-menu { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; margin: 14px; width: 40px; height: 40px; border: 1px solid #e6e0d2; background: var(--surface-2); color: var(--ink); border-radius: 10px; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; padding: 10px 18px 24px; }
.mobile-nav a { text-decoration: none; color: var(--ink); padding: 12px 10px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px var(--shadow); }
.mobile-nav a:active, .mobile-nav a:hover { background: var(--surface-2); }
/* Optional backdrop when menu is open */
body.menu-open::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 90; }

/* HERO - gradient_modern */
.hero { padding: 40px 0; color: #ffffff; background-color: #2E5339; background-image: linear-gradient(135deg, rgba(46,83,57,1) 0%, rgba(194,122,44,0.92) 100%); }
.hero .content-wrapper { padding: 20px 0; }
.hero .eyebrow, .hero .subheadline { color: #f4fbf6; }
.hero h1 { color: #ffffff; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.quick-badges, .trust-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-badges span, .trust-badges span { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.18); color: #fff; border: 1px solid rgba(255,255,255,0.28); font-size: 14px; }
.hero a.link { color: #fff; text-decoration-color: rgba(255,255,255,0.6); }
.hero a.link:hover { text-decoration-color: #fff; }

/* GENERIC SECTIONS */
main section { display: flex; }
main section .content-wrapper { padding: 28px 0; }
.category-pills { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); }
.category-pills a { text-decoration: none; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid #e8e2d5; color: #203427; transition: background var(--transition), transform var(--transition); }
.category-pills a:hover { background: var(--surface-2); transform: translateY(-1px); }
.text-section { display: flex; flex-direction: column; gap: 10px; color: var(--ink); }
.text-section ul, .text-section ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

/* CARDS */
.recipe-card-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.recipe-card { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid #eadfc8; border-radius: var(--radius-m); padding: 18px; box-shadow: 0 8px 20px var(--shadow); transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition); flex: 1 1 260px; min-width: 260px; }
.recipe-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(22, 31, 27, 0.16); border-color: #dfd4bc; }
.recipe-card h3 { margin-bottom: 6px; }

/* TESTIMONIALS - light background for strong readability */
.testimonial-card { background: #ffffff; border: 1px solid #e9e1cf; border-radius: var(--radius-m); box-shadow: 0 6px 18px var(--shadow); color: var(--ink); }
.testimonial-card p { margin: 0; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 10px 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), color var(--transition), border-color var(--transition); font-weight: 600; }
.btn-primary { color: #fff; background-color: #2E5339; background-image: linear-gradient(135deg, #2E5339 0%, #3a6f4a 100%); box-shadow: 0 8px 20px rgba(46,83,57,0.25); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(46,83,57,0.32); }
.btn-secondary { color: #2E5339; background-color: #fff; border-color: #d9d3c6; box-shadow: 0 6px 16px rgba(22, 31, 27, 0.08); }
.btn-secondary:hover { background-color: #FAF6ED; border-color: #cfc6b1; transform: translateY(-2px); }
.link { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }

/* BREADCRUMBS (inside hero blocks as plain nav) */
.hero nav[aria-label="Brotkrumen"] { display: flex; flex-wrap: wrap; gap: 6px; color: #eef8f0; font-size: 14px; }
.hero nav[aria-label="Brotkrumen"] a { color: #ffffff; opacity: .9; text-decoration-color: rgba(255,255,255,0.6); }

/* FOOTER */
footer { background: #132018; color: #e7efe9; margin-top: 40px; }
footer a { color: #dfeee6; text-decoration: none; }
footer a:hover { color: #ffffff; text-decoration: underline; }
footer .content-wrapper { flex-direction: column; gap: 24px; padding: 36px 0; }
.footer-columns { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-columns > div { flex: 1 1 240px; min-width: 240px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 16px; }
footer nav { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
footer address { font-style: normal; }

/* FORMS & LISTS DEFAULTS */
ul, ol { margin: 0 0 12px 18px; padding: 0; }
li { margin: 0; }

/* COOKIE CONSENT BANNER */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; z-index: 120; transform: translateY(110%); transition: transform 280ms ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-inner { display: flex; flex-direction: column; gap: 12px; background: #ffffff; color: var(--ink); border: 1px solid #e9e1cf; border-radius: 14px 14px 0 0; box-shadow: 0 -10px 30px rgba(0,0,0,0.12); width: 100%; max-width: 1160px; padding: 16px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 10px 14px; }
.cookie-banner .btn-accept { background-color: #2E5339; color: #fff; border-color: #2E5339; }
.cookie-banner .btn-reject { background-color: #fff; border-color: #d9d3c6; color: #203427; }
.cookie-banner .btn-settings { background-color: #fff; border-color: #d9d3c6; color: #203427; }

/* COOKIE MODAL */
.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; z-index: 130; }
.cookie-overlay.show { display: flex; align-items: center; justify-content: center; }
.cookie-modal { display: flex; flex-direction: column; gap: 14px; background: #ffffff; border: 1px solid #e9e1cf; border-radius: 16px; width: 92%; max-width: 680px; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.cookie-modal .rows { display: flex; flex-direction: column; gap: 10px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid #f0eadc; }
.cookie-row:last-child { border-bottom: none; }
.toggle { display: inline-flex; align-items: center; gap: 8px; }

/* UTILITIES */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.hide { display: none !important; }

/* RESPONSIVE - Mobile first */
@media (min-width: 600px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .subheadline { font-size: 20px; }
}

@media (min-width: 768px) {
  /* Show desktop nav */
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Section paddings */
  .hero { padding: 70px 0; }
  main section .content-wrapper { padding: 36px 0; }

  /* Text-image sections switch to row */
  .text-image-section { flex-direction: row; }

  /* Card sizing */
  .recipe-card { flex: 1 1 320px; }
}

@media (min-width: 1024px) {
  .hero { padding: 90px 0; }
  h1 { font-size: 56px; }
  h2 { font-size: 36px; }
  .subheadline { font-size: 22px; }
}

/* PAGE-SPECIFIC ENHANCEMENTS */
/* Index quick stats rows within hero */
.hero .quick-badges, .hero .trust-badges { margin-top: 6px; }

/* Ensure adequate spacing between sections and elements */
main .container + .container, section + section { margin-top: 10px; }

/* ALIGNMENT REQUIREMENTS */
/* Flex alignment already applied; ensure vertical centering where needed */
.text-image-section { align-items: center; }
.card-container, .content-grid, .recipe-card-grid, .footer-columns { gap: 20px; }

/* PREVENT OVERLAP */
.content-wrapper > * { margin: 0; }

/* ACCESSIBILITY CONTRAST FOR TESTIMONIALS */
section h2 + .text-section + .testimonial-card, .testimonial-card { background-color: #fff; color: #1b261f; }

/* PRINT BASICS */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-overlay { display: none !important; }
  a { color: black; text-decoration: none; }
}
