/* ---------------------------------------------------------
   CSS RESET & BASE STYLES
-----------------------------------------------------------*/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F4EEE9;
  color: #293133;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}

img, svg {
  max-width: 100%;
  display: block;
  height: auto;
  vertical-align: middle;
}
a {
  color: #B79B65;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #FFB800;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* ---------------------------------------------------------
   BRAND FONTS (Google Fonts fallback)
-----------------------------------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@700&family=Open+Sans:wght@400;700&display=swap');

h1, h2, h3, h4, h5 {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  letter-spacing: -1px;
  color: #293133;
}
h1 {
  font-size: 2.6rem;
  margin-bottom: 14px;
  line-height: 1.1;
  text-shadow: 2px 2px 0 #ffebb3, 0 2px 12px #fff5dc66;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.15;
  color: #B79B65;
  text-shadow: 1px 1px 0 #fff2c2;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: #293133;
}

p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #293133;
  letter-spacing: 0.01em;
}

blockquote {
  font-family: 'Merriweather', serif;
  font-size: 1.15rem;
  background: #fffbe8;
  border-left: 6px solid #B79B65;
  padding: 18px 24px;
  margin: 16px 0 8px 0;
  border-radius: 14px 0 14px 0;
  color: #293133;
  font-style: italic;
  box-shadow: 0 1px 4px 0 #b79b651a;
}

/* ---------------------------------------------------------
   CONTAINER AND LAYOUT FLEXBOX UTILS
-----------------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1160px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}
.header-flex, .footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-flex {
  margin-bottom: 12px;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.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;
  background: #fffbe8;
  border-radius: 18px;
  box-shadow: 0 4px 18px 0 #ffebb360, 0 1.5px 3px 0 #b79b652a;
  margin-bottom: 24px;
  border: 2px solid #FFD86E22;
  transition: transform 0.14s cubic-bezier(.59,1.35,.54,1), box-shadow 0.18s;
  /* Playful animation */
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.033) rotate(-1deg);
  box-shadow: 0 9px 32px 0 #eccf6eb0, 0 3px 10px 0 #b79b6533;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.features-grid, .featured-recipes, .featured-articles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
  justify-content: space-between;
}
.feature {
  background: #FBF4E4;
  border-radius: 22px;
  box-shadow: 0 3px 16px #e8b96218;
  padding: 32px 20px 22px 20px;
  min-width: 242px;
  flex: 1 1 220px;
  margin-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.18s;
  position: relative;
  text-align: center;
  cursor: pointer;
}
.feature:hover {
  transform: translateY(-5px) scale(1.05) rotateZ(-1.5deg);
  box-shadow: 0 8px 36px 0 #ffebb363, 0 1px 12px 0 #b79b653c;
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 9px;
  filter: drop-shadow(0 2px 6px #FFD86E44);
  animation: popin-sml 0.55s cubic-bezier(.9,-0.4,.39,1.5) backwards;
}
@keyframes popin-sml {
  0%   { transform: scale(0.3) rotate(-15deg); opacity: 0.2; }
  80%  { transform: scale(1.04) rotate(1.8deg); opacity: 1; }
  100% { transform: scale(1.0) rotate(0deg); }
}
.feature h3 {
  color: #B79B65;
  font-size: 1.16rem;
}

/* ---------------------------------------------------------
   HERO SECTION
-----------------------------------------------------------*/
.hero {
  background: linear-gradient(110deg, #FFD86E33 0%, #F4EEE9 70%); /* subtle playful */
  border-bottom: 4px solid #FFD86E;
  min-height: 280px;
  padding-top: 42px;
  padding-bottom: 42px;
  display: flex;
  align-items: center;
  margin-bottom: 44px;
  position: relative;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.hero h1 {
  color: #B79B65;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.18rem;
  margin-bottom: 20px;
}

/* ---------------------------------------------------------
   NAVIGATION & MOBILE MENU
-----------------------------------------------------------*/
header {
  background: #fffbe8;
  border-bottom: 3px solid #FFD86E77;
  z-index: 30;
  position: sticky;
  top: 0;
}
.brand-logo img {
  width: 48px;
  height: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: #293133;
  padding: 7px 8px 7px 8px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.main-nav a.active, .main-nav a:hover, .main-nav a:focus {
  background: #FFD86E99;
  color: #B79B65;
}
.cta-button {
  background: #FFD86E;
  color: #293133;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  font-size: 1.09rem;
  border-radius: 18px 3px 18px 3px;
  padding: 10px 32px;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 11px #FFD86E25;
  transition: background 0.22s, color 0.19s, box-shadow 0.19s, transform 0.12s;
  cursor: pointer;
  border: 2px solid #FFD86E;
  outline: none;
  margin-left: 10px;
  text-shadow: 0 1px 1px #fff7ce;
}
.cta-button:hover, .cta-button:focus {
  background: #293133;
  color: #FFD86E;
  box-shadow: 0 8px 32px 0 #FFD86E77;
  transform: scale(1.05) rotate(-1deg);
}
.mobile-menu-toggle {
  display: none;
  background: #FFD86E;
  color: #293133;
  border-radius: 10px;
  font-size: 2.1rem;
  padding: 4px 15px;
  margin-left: 14px;
  border: 2px solid #FFD86ECC;
  box-shadow: 0 3px 12px #FFD86E33;
  cursor: pointer;
  transition: background 0.17s, color 0.2s;
  z-index: 61;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #293133;
  color: #FFD86E;
  border-color: #B79B65;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 100vw;
  width: 100vw;
  height: 100vh;
  background: #fffbe8ee;
  box-shadow: -3px 0 22px #FFD86E33;
  z-index: 98;
  transition: transform 0.37s cubic-bezier(.64,1.47,.33,1), left 0.01s;
  transform: translateX(0);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.mobile-menu.open {
  left: 0;
  transform: translateX(0vw);
  pointer-events: auto;
  opacity: 1;
  animation: slideInMenu 0.34s cubic-bezier(.67,1.5,.25,1) 1;
}
@keyframes slideInMenu {
  0% { left: 100vw; opacity: 0.3; }
  100% { left: 0; opacity: 1; }
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 22px 12px auto;
  background: #FFD86E;
  color: #293133;
  border-radius: 50%;
  font-size: 2rem;
  border: 2px solid #FFD86E;
  padding: 6px 18px;
  cursor: pointer;
  box-shadow: 0 3px 11px #FFD86E33;
  transition: background 0.21s, color 0.14s, box-shadow 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #293133;
  color: #FFD86E;
  box-shadow: 0 6px 16px 0 #FFD86E55;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 21px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  margin-top: 36px;
}
.mobile-nav a {
  color: #293133;
  font-family: 'Merriweather', serif;
  font-size: 1.35rem;
  padding: 18px 0;
  border-radius: 13px;
  width: 88vw;
  text-align: center;
  transition: background 0.16s, color 0.15s;
  text-shadow: 0 1px 1px #fff7ce;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #FFD86E;
  color: #B79B65;
}

/* ---------------------------------------------------------
   FOOTER
-----------------------------------------------------------*/
footer {
  background: #293133;
  color: #fffbe8;
  font-size: 0.98rem;
  padding-top: 50px;
  padding-bottom: 24px;
  margin-top: 44px;
  border-top: 5px solid #FFD86E77;
  position: relative;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 19px;
}
.footer-nav a {
  color: #FFD86E;
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  padding: 4px 7px;
  transition: background 0.17s, color 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #FFD86E;
  color: #293133;
}
.brand-logo img {
  width: 40px;
  height: 40px;
}
.social-links {
  display: flex;
  gap: 15px;
  align-items: center;
}
.social-links a {
  background: #FFD86E;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.21s, transform 0.17s;
}
.social-links a:hover {
  background: #B79B65;
  transform: scale(1.13) rotate(-6deg);
}
footer small {
  color: #fffbe8cc;
  display: block;
  margin-top: 4px;
  text-align: center;
}

/* ---------------------------------------------------------
   SERVICES, FEATURES, CARDS ETC.
-----------------------------------------------------------*/
.service-list, .feature-list {
  display: flex;
  flex-direction: column;
  gap: 17px;
  margin-bottom: 32px;
  padding-left: 2px;
}
.course-categories, .course-highlights, .course-descriptions, .pricing-table {
  margin-bottom: 32px;
}
.course-categories ul, .course-highlights ul, .course-descriptions ul, .pricing-table ul,
.recipe-categories ul, .blog-categories ul, .author-highlights ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}
.service-list li strong,
.feature-list li strong {
  color: #B79B65;
}

.featured-recipes, .featured-articles {
  margin-bottom: 20px;
}
.recipe-preview-card, .featured-articles article {
  background: #FBF4E4;
  border-radius: 15px;
  box-shadow: 0 3px 11px #FFD86E25;
  padding: 26px 18px;
  min-width: 200px;
  flex: 1 1 180px;
  margin-bottom: 16px;
  transition: box-shadow 0.22s, transform 0.19s;
  margin-right: 8px;
}
.recipe-preview-card:hover, .featured-articles article:hover {
  box-shadow: 0 13px 40px 0 #FFD86E66;
  transform: translateY(-4px) scale(1.04) rotateZ(-1.5deg);
}
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 20px;
  margin-top: 18px;
}
.team-bios div {
  background: #ffe8b4;
  color: #293133;
  border-radius: 12px;
  font-size: 1.02rem;
  padding: 14px 19px;
  box-shadow: 0 2px 6px 0 #FFD86E44;
  margin-bottom: 12px;
}

/* ---------------------------------------------------------
   TAG FILTER/BUTTONS (Rezepte)
-----------------------------------------------------------*/
.tag-filter, .recent-posts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin-bottom: 19px;
}
.tag-filter button {
  background: #FFD86Eee;
  border-radius: 10px 2px 10px 2px;
  padding: 8px 19px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #293133;
  font-size: 1rem;
  border: 2px solid #FFD86E;
  cursor: pointer;
  margin-top: 0;
  transition: background 0.18s, color 0.16s, transform 0.13s;
}
.tag-filter button:hover, .tag-filter button:focus {
  background: #B79B65;
  color: #FFD86E;
  transform: scale(1.07) rotate(-2deg);
}

/* ---------------------------------------------------------
   CONTACT DETAILS ETC.
-----------------------------------------------------------*/
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-details div {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  gap: 12px;
}
.map-location, .address-box, .phone-box, .email-box, .opening-hours {
  background: #fffbe8;
  border: 2px solid #FFD86E77;
  border-radius: 13px;
  padding: 14px 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
}

.directions-info, .public-transport-info {
  background: #FBF4E4;
  border-radius: 11px;
  padding: 15px 14px;
  margin-bottom: 15px;
}

/* ---------------------------------------------------------
   TESTIMONIALS
-----------------------------------------------------------*/
.testimonials {
  background: #fffbe8ee;
}
.testimonial-author {
  font-style: normal;
  font-weight: 700;
  font-family: 'Merriweather', serif;
  color: #B79B65;
  margin-top: 6px;
  font-size: 1.02rem;
}
.star-rating {
  display: flex;
  align-items: center;
  gap: 2.5px;
  margin-right: 8px;
}
.star-rating img {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1.5px 0 #FFD86E);
  animation: popin-star 0.49s cubic-bezier(.73,-0.34,.61,1.39) backwards;
}
@keyframes popin-star {
  from { transform: scale(0.4) rotate(-7deg); opacity: 0.25; }
  to { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* ---------------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
-----------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFD86E;
  color: #293133;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 0 32px 0 #FFD86E66;
  padding: 18px 8px 18px 8px;
  font-size: 1.08rem;
  animation: cookieBannerPopin 0.44s cubic-bezier(.63,-0.28,.28,1.32);
  gap: 17px;
}
@keyframes cookieBannerPopin {
  0% { transform: translateY(70px) scale(0.98); opacity: 0; }
  100% { transform: translateY(0) scale(1.0); opacity: 1; }
}
.cookie-banner p {
  margin-bottom: 12px;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}
.cookie-buttons button {
  padding: 8px 22px;
  border-radius: 14px 3px 14px 3px;
  border: 2px solid #FFD86E;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  background: #293133;
  color: #FFD86E;
  transition: background 0.19s, color 0.14s, border 0.17s, transform 0.13s;
  cursor: pointer;
}
.cookie-buttons button.accept {
  background: #B79B65;
  color: #fffbe8;
}
.cookie-buttons button.reject {
  background: #293133;
  color: #FFD86E;
}
.cookie-buttons button.settings {
  background: #FFD86E;
  color: #293133;
}
.cookie-buttons button:hover, .cookie-buttons button:focus {
  opacity: 0.92;
  transform: scale(1.07) rotate(-2deg);
  background: #B79B65;
  color: #FFD86E;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #293133aa;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fffbe8;
  border-radius: 18px;
  padding: 38px 32px;
  box-shadow: 0 6px 32px #FFD86E77;
  max-width: 410px;
  width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookieModalPopin 0.3s cubic-bezier(.63,-0.28,.28,1.32);
}
@keyframes cookieModalPopin {
  0% { transform: scale(0.86) translateY(60px); opacity: 0; }
  100% { transform: scale(1.0) translateY(0); opacity: 1; }
}
.cookie-modal-content h3 {
  color: #293133;
  font-weight: 700;
  font-size: 1.25rem;
}
.cookie-modal-content label {
  font-size: 1.07rem;
  padding-left: 8px;
  user-select: none;
}
.cookie-modal-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
/* Switch/toggle for cookies */
.cookie-switch {
  width: 48px;
  height: 24px;
  background: #FFD86E88;
  border-radius: 16px;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.18s;
}
.cookie-switch[data-checked='true'] {
  background: #B79B65;
}
.cookie-switch-knob {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fffbe8;
  border-radius: 50%;
  box-shadow: 0 2px 8px #FFD86E44;
  transition: left 0.18s;
}
.cookie-switch[data-checked='true'] .cookie-switch-knob {
  left: 26px;
}
.cookie-modal-footer {
  display: flex;
  gap: 15px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal-content .close-cookie-modal {
  position: absolute;
  right: 12px;
  top: 9px;
  font-size: 1.8rem;
  background: #FFD86E;
  color: #293133;
  border-radius: 50%;
  border: 0;
  padding: 2px 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.16s;
}
.cookie-modal-content .close-cookie-modal:hover, .cookie-modal-content .close-cookie-modal:focus {
  background: #B79B65;
  color: #FFD86E;
}

/* ---------------------------------------------------------
   RESPONSIVE FLEX LAYOUTS
-----------------------------------------------------------*/
@media (max-width: 1080px) {
  .container {
    max-width: 990px;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 800px;
  }
  .features-grid, .featured-recipes, .featured-articles {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .header-flex {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 13px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .footer-flex {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .content-wrapper, .section {
    margin-bottom: 40px;
    padding: 28px 6px;
  }
  .features-grid, .featured-recipes, .featured-articles {
    flex-direction: column;
    gap: 17px;
  }
  .feature {
    margin-bottom: 13px;
  }
  .team-bios {
    flex-direction: column;
    gap: 11px;
  }
}
@media (max-width: 580px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
    max-width: 98vw;
  }
  .content-wrapper, .section {
    padding: 16px 2px;
    margin-bottom: 28px;
  }
  .hero {
    padding-top: 17px;
    padding-bottom: 19px;
    min-height: 88px;
  }
  .brand-logo img {
    width: 28px;
    height: 28px;
  }
}
@media (max-width: 490px) {
  h1 {
    font-size: 1.38rem;
  }
  h2 {
    font-size: 1.11rem;
  }
  .footer-flex,
  .header-flex {
    flex-direction: column;
    gap: 9px;
  }
}

/* ---------------------------------------------------------
   PLAYFUL MICRO-INTERACTIONS
-----------------------------------------------------------*/
.cta-button, .feature, .recipe-preview-card, .testimonial-card, .tag-filter button, .cookie-buttons button {
  transition: box-shadow 0.16s, transform 0.16s, background 0.16s, color 0.14s;
}
.cta-button:active, .feature:active, .recipe-preview-card:active, .testimonial-card:active, .tag-filter button:active {
  transform: scale(0.96) rotate(-1deg);
  box-shadow: 0 2px 8px #FFD86Ea7;
}

/* ---------------------------------------------------------
   ACCESSIBLE FOCUS INDICATORS
-----------------------------------------------------------*/
a:focus, button:focus, .cta-button:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2.3px dashed #FFD86E;
  outline-offset: 2px;
}

/* Utility for .content-grid or .card-grid if present */
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  justify-content: space-between;
}

/* Ensure min content separation */
.card, .feature, .testimonial-card, .recipe-preview-card, .featured-articles article {
  margin-bottom: 20px;
}
/* End of comprehensive playful dynamic CSS */
