/* ========================================================
   CSS RESET & BASELINE
   ======================================================== */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background-color: #FFF8EE;
  color: #382516;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased; 
  font-weight: 400;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.3rem;
  margin-bottom: 1rem;
}
li {
  margin-bottom: 0.5em;
}
a {
  color: #7B4724;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #335B31;
  text-decoration: underline;
}
button, input, select {
  font-family: inherit;
  font-size: inherit;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ========================================================
   COLORS & CUSTOM PROPERTIES
   ======================================================== */
:root {
  --primary: #7B4724;
  --primary-dark: #57321c;
  --secondary: #FFDFAF;
  --accent: #335B31;
  --accent-dark: #233121;
  --cream-bg: #FFF8EE;
  --brown-text: #382516;
  --vintage-blue: #3E7499;
  --vintage-rose: #C17C73;
  --card-bg: #FFFDF8;
  --beige-border: #E8CEAC;
  --error: #B12B28;
}

/* ========================================================
   TYPOGRAPHY: VINTAGE-RETRO STYLE
   ======================================================== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,700&display=swap');

body,
p, li, .text-section {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--brown-text);
  font-size: 1rem;
  font-weight: 400;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary);
  line-height: 1.2;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-shadow: 2px 2px 0 var(--secondary);
}
h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1.1rem;
}
.section p, .text-section p, p {
  font-size: 1.08rem;
  margin-bottom: 16px;
}
strong, b {
  font-weight: 700;
}

/* Headline underline for retro effect */
h2 {
  position: relative;
}
h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
  margin-top: 10px;
}

/* ========================================================
   LAYOUT & CONTAINERS: FLEXBOX RETRO VINTAGE
   ======================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 2px 18px 0 rgba(123, 71, 36, 0.07), 0 1.5px 0 0 var(--beige-border);
  border: 1px solid var(--beige-border);
  position: relative;
}
.text-section {
  background: none;
  box-shadow: none;
  border: none;
}

/* Pattern overlay for vintage touch */
.section::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 24px;
  width: 44px;
  height: 44px;
  background: repeating-linear-gradient(135deg, #FFDFAF 0 8px, #FFFFFF 8px 16px);
  opacity: 0.24;
  border-radius: 8px;
  z-index: 0;
  pointer-events: none;
  display: block;
}

/* Remove overlay on small for breathing room */
@media (max-width: 600px) {
  .section::before { display: none; }
}

/* ========================================================
   NAVIGATION HEADER & LOGO
   ======================================================== */
header {
  background: var(--secondary);
  border-bottom: 2px solid var(--primary);
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 2px 10px 0 #fff5d7;
}
header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-height: 68px;
}
header > a img {
  height: 48px;
  margin: 10px 0 10px 12px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}
header nav a {
  padding: 10px 14px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary);
  border-radius: 8px;
  transition: background 0.22s, color 0.19s;
  position: relative;
}
header nav a:hover, header nav a:focus {
  background: var(--accent);
  color: #fff;
}
.primary-cta {
  background: var(--primary);
  color: #fff;
  padding: 10px 26px;
  border: none;
  border-radius: 24px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px 0 rgba(123, 71, 36, 0.14);
  margin-left: 12px;
  cursor: pointer;
  margin-top: 0;
  margin-bottom: 0;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.primary-cta:hover, .primary-cta:focus {
  background: var(--accent);
  color: #FFDFAF;
  transform: translateY(-2px) scale(1.03);
}
.secondary-cta {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 9px 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  transition: background 0.16s, color 0.12s;
  margin-top: 0;
  margin-bottom: 0;
}
.secondary-cta:hover, .secondary-cta:focus {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
}
/* Hide burger on desktop, show on mobile */
.mobile-menu-toggle {
  display: none;
  background: var(--primary);
  color: #fff;
  border-radius: 14px;
  font-size: 1.55rem;
  width: 48px; height: 48px;
  align-items: center;
  justify-content: center;
  border: none;
  margin-left: 16px;
  transition: background 0.13s, box-shadow 0.22s;
  box-shadow: 0 0px 0px 0 #0000;
  z-index: 35;
}
.mobile-menu-toggle:active {
  background: var(--accent);
  box-shadow: 0 3px 12px 0 #7B472433;
}

@media (max-width: 1020px) {
  header nav {
    gap: 9px;
    font-size: 0.95rem;
  }
  header > a img {
    height: 36px;
  }
}
@media (max-width: 900px) {
  header nav a {
    padding: 9px 7px;
    font-size: 0.98rem;
  }
  .primary-cta {
    padding: 9px 16px;
    font-size: 1rem;
  }
}
@media (max-width: 840px) {
  header nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }
}

/* =======================
   MOBILE NAV OVERLAY
   ======================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #FFDFAF 90%, #f5e6cc 100%);
  transform: translateX(-100%);
  transition: transform 0.37s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 98;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  box-shadow: 0 4px 24px 0 #963f103a;
  padding-top: 20px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 0 22px 12px 0;
  font-size: 2.2rem;
  color: var(--primary);
  background: none;
  border: none;
  transition: color 0.2s;
  z-index: 101;
}
.mobile-menu-close:hover {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 28px 0 0 0;
}
.mobile-nav a {
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.18rem;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 10px;
  background: none;
  transition: background 0.17s, color 0.14s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
}

@media (min-width: 841px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}


/* =========================
   HERO SECTIONS
   ========================= */
section {
  position: relative;
  z-index: 2;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
}
section:first-child {
  margin-top: 42px;
}
section .container {
  padding: 0;
}

/* =======================
   FLEX GROUPS
   ======================= */
.card-container, .recipe-cards, .feature-grid, .content-grid, .card-grid, .blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card,
.service-card,
.tip-card {
  flex: 1 1 250px;
  min-width: 260px;
  max-width: 330px;
  background: var(--card-bg);
  border: 1.5px solid var(--beige-border);
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 #9e754018, 0 1.5px 0 0 var(--beige-border);
  padding: 30px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.17s, transform 0.18s;
}
.service-card img, .tip-card img {
  max-width: 52px;
  margin-bottom: 1rem;
}
.service-card:hover, .card:hover, .tip-card:hover {
  box-shadow: 0 8px 28px 0 #73513133, 0 1.5px 0 0 var(--beige-border);
  transform: translateY(-5px) scale(1.03) rotate(-0.5deg);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* =======================
   TESTIMONIALS
   ======================= */
.testimonial-card {
  background: #FFFDF8;
  border: 1.5px solid #E8CEAC;
  border-radius: 14px;
  box-shadow: 0 2px 8px 0 #C17C7322;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  max-width: 540px;
  width: 100%;
  font-family: 'Open Sans', sans-serif;
  color: var(--brown-text);
}
.testimonial-card p {
  color: #382516;
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 500;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: var(--accent);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ========================================================
   BUTTONS & INTERACTIVES
   ======================================================== */
button,
input[type="button"],
input[type="submit"],
.primary-cta, 
.secondary-cta {
  transition: background 0.15s, color 0.12s, border 0.16s, transform 0.12s;
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 1rem;
}
.category-filters span {
  font-family: 'Montserrat',sans-serif;
  color: var(--accent);
  font-weight: 600;
  margin-right: 12px;
}
.category-filters button {
  background: var(--secondary);
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 7px 18px;
  margin-bottom: 0;
  margin-right: 0;
  transition: background 0.15s, color 0.12s, border 0.14s, box-shadow 0.16s;
}
.category-filters button:hover, .category-filters button:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px 0 #335B3133;
  border-color: var(--primary);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin: 18px 0 20px 0;
  background: #FFFDF3;
  border-radius: 22px;
  padding: 7px 16px;
  box-shadow: 0 1px 7px 0 #E8CEAC44;
  border: 1.5px solid var(--beige-border);
}
.search-bar input[type='text'] {
  font-size: 1rem;
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 9px 8px 9px 0;
  color: var(--brown-text);
}
.search-bar button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 22px;
  padding: 9px 22px;
  font-family: 'Montserrat';
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  transition: background 0.15s, color 0.14s;
}
.search-bar button:hover {
  background: var(--primary);
}

.sorting-options {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.sorting-options label {
  font-family: 'Montserrat';
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}
.sorting-options select {
  border-radius: 10px;
  border: 1.5px solid var(--beige-border);
  font-family: 'Open Sans';
  font-size: 1rem;
  padding: 7px 15px;
  background: #fff;
  color: var(--primary);
  outline: none;
  transition: border 0.13s;
}
.sorting-options select:focus {
  border-color: var(--accent);
}

/* Blog List */
.blog-list {
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  display: flex;
}
.blog-list article {
  background: #FFFDF8;
  border: 1.5px solid #E8CEAC;
  border-radius: 13px;
  box-shadow: 0 2px 14px #7B472417;
  padding: 22px 18px 16px 18px;
  margin-bottom: 0;
  max-width: 325px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.blog-list article h3 {
  color: var(--primary);
  font-size: 1.13rem;
  font-family: 'Montserrat', sans-serif;
}
.blog-list article p {
  font-size: 1rem;
  color: var(--accent-dark);
}

.featured-post {
  background: #FFDFAF;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  border-radius: 18px;
  padding: 15px 22px;
  margin: 0 0 16px 0;
  box-shadow: 0 2px 9px #C17C7312;
  font-weight: 700;
}
.family-tips ul {
  list-style-type: disc;
}
.family-tips h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.12rem;
  margin-bottom: 6px;
  color: var(--accent);
}

/* =====================
   FOOTER
   ===================== */
footer {
  background: var(--primary);
  color: #fff;
  margin-top: 90px;
  padding: 0 0 0 0;
}
footer .container {
  padding: 0 16px;
  max-width: 1140px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding: 32px 0;
  justify-content: space-between;
}
.brand-info {
  min-width: 180px;
  max-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.brand-info img {
  width: 85px;
  margin-bottom: 8px;
}
.quicklinks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quicklinks a {
  color: #fff8ee;
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.14s;
}
.quicklinks a:hover {
  color: #FFDFAF;
}
.contact-info {
  max-width: 240px;
  font-size: 0.99rem;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.contact-info img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
  filter: brightness(1.3) sepia(0.6);
}
.social-icons {
  display: flex;
  gap: 16px;
  align-items: center;
}
.social-icons img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  filter: sepia(0.34) saturate(0.9) brightness(1.1);
  border: 2px solid #FFDFAF;
  padding: 4px;
  background: #fff8ee;
  transition: filter 0.17s;
}
.social-icons img:hover {
  filter: sepia(0.7) contrast(1.11) brightness(1.2) drop-shadow(1px 2px 9px #FFDFAF88);
}

/* =====================
   FORMS (Thank you, Kontakt...)
   ===================== */
.text-section ul {
  margin-bottom: 1.2rem;
  padding-left: 1.18em;
}
.text-section li {
  margin-bottom: 0.6em;
  font-size: 1rem;
  padding-left: 0.4em;
  color: var(--brown-text);
}
.map {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0 0;
}
.map img {
  width: 46px;
  height: 46px;
}
.map p {
  font-size: 1rem;
  color: var(--accent);
}

/* ===============
   COOKIE CONSENT
   =============== */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, #FFDFAF 92%, #E8CEAC 100%);
  border-top: 2px solid var(--primary);
  box-shadow: 0 -2px 22px #C17C7324;
  z-index: 150;
  padding: 18px 14px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}
.cookie-banner p {
  font-size: 1rem;
  color: var(--primary-dark);
  font-weight: 500;
}
.cookie-actions {
  display: flex;
  gap: 18px;
}
.cookie-btn,
.cookie-settings-btn {
  font-family: 'Montserrat',sans-serif;
  font-size: 1rem;
  padding: 8px 20px;
  border-radius: 18px;
  margin-top: 0;
  margin-bottom: 0;
  border: none;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  transition: background 0.14s, color 0.13s;
}
.cookie-btn:hover {
  background: var(--accent);
  color: #FFDFAF;
}
.cookie-reject{
  background: var(--accent);
  color: #fff;
}
.cookie-reject:hover {
  background: var(--primary-dark);
  color: #FFDFAF;
}
.cookie-settings-btn {
  background: #fff8ee;
  color: var(--primary);
  border: 1.5px solid var(--accent);
  font-weight: 600;
}
.cookie-settings-btn:hover {
  background: var(--secondary);
  color: var(--accent);
  border-color: var(--primary);
}

/* Cookie modal overlay */
.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(58,37,22,0.28);
  z-index: 2000;
  display: none;
}
.cookie-modal-backdrop.open {
  display: block;
}
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  background: #FFFDF8;
  border-radius: 20px;
  box-shadow: 0 8px 44px 0 #7B472488, 0 2px 0 0 #FFDFAF77;
  z-index: 2010;
  min-width: 320px;
  max-width: 97vw;
  width: 410px;
  padding: 36px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.26s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  font-size: 1.45rem;
  margin-bottom: 8px;
  color: var(--accent);
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 14px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
}
.cookie-category label {
  font-size: 1.04rem;
  color: var(--primary);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--primary);
  width: 18px; height: 18px;
}
.cookie-category .always-on {
  color: var(--accent);
  font-size: 1rem;
  margin-left: 7px;
}
.cookie-modal-action-row {
  display: flex;
  gap: 13px;
  margin-top: 13px;
  justify-content: flex-end;
}
/* Modal close button */
.cookie-modal-close {
  background: none;
  color: var(--primary);
  font-size: 2rem;
  position: absolute;
  top: 13px;
  right: 19px;
  border: none;
  cursor: pointer;
  z-index: 1;
  transition: color 0.17s;
}
.cookie-modal-close:hover {
  color: var(--accent);
}

/* ========================
   SPACING & PATTERN 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; }

/* =====================
   RESPONSIVE QUERIES
   ===================== */
@media (max-width: 1140px) {
  .container {
    max-width: 98vw;
    padding-left: 9px;
    padding-right: 9px;
  }
}
@media (max-width: 920px) {
  .content-wrapper, .content-grid, .card-container, .recipe-cards, .feature-grid, .blog-list, .footer .content-wrapper {
    flex-wrap: wrap;
    gap: 16px;
  }
  footer .content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 28px 0;
  }
  .card, .service-card, .tip-card, .blog-list article {
    min-width: 205px;
    font-size: 0.96rem;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding-left: 4vw;
    padding-right: 4vw;
  }
  header {
    padding: 0 0;
  }
  section, .section {
    padding: 28px 7px;
    margin-bottom: 38px;
    border-radius: 12px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .content-wrapper, .content-grid, .card-container, .feature-grid, .recipe-cards, .blog-list {
    flex-direction: column;
    gap: 16px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.30rem; }
  h2 { font-size: 1.07rem; }
  .testimonial-card, .card, .service-card, .blog-list article {
    padding: 15px 7px;
    min-width: 95vw;
    max-width: 95vw;
    font-size: 0.93rem;
  }
}

/* =====================
   MISC ACCESSIBILITY
   ===================== */
:focus-visible {
  outline: 2.5px dashed var(--accent);
  outline-offset: 2px;
}

/* Error color for forms, if needed */
.error-message {
  color: var(--error);
  font-size: 1rem;
  margin-top: 4px;
}

/* Retro motif elements (optional, sprinkles) */
.retro-sprinkles {
  background-image: radial-gradient(circle at 12px 12px, #FFDFAF 3px, transparent 4px),
    radial-gradient(circle at 38px 24px, #C17C73 2.5px, transparent 3.5px),
    radial-gradient(circle at 65px 23px, #3E7499 2.5px, transparent 3.5px);
  background-repeat: repeat;
}
