/* ===== CSS RESET/NORMALIZE (based on modern best-practices) ===== */
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #173A24;
  background-color: #F5F0EB;
  min-height: 100vh;
  overflow-x: hidden;
}
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  font-weight: 800;
  color: #173A24;
  line-height: 1.1;
  letter-spacing: -0.01em;
}


/* ======= BRAND COLORS & VARIABLES (fallbacks provided) ======= */
:root {
  --primary: #173A24;
  --primary-dark: #10281a;
  --secondary: #F5F0EB;
  --secondary-dark: #E9E4DD;
  --accent: #E6542C;
  --accent-dark: #B83A11;
  --background: #FFFFFF;
  --text-light: #fff;
  --text-dark: #173A24;
  --shadow: 0 2px 16px rgba(23,58,36,0.08), 0 2px 8px rgba(230,84,44,0.05);
}


/* ===== FONT LOADING (Google Webfonts, fallback to system stack) ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Open+Sans:wght@400;600&display=swap');


/* ========== TYPOGRAPHY SCALE ========== */
h1 {
  font-size: 2.75rem;
  margin-bottom: 20px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}
h4 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px;}
.subtitle {
  font-size: 1.125rem;
  color: var(--accent);
  margin-bottom: 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
p, li {
  font-size: 1rem;
  margin-bottom: 0;
  word-break: break-word;
}
strong { font-weight: 700; }
em { font-style: italic; }


/* ========== COMMON LAYOUT UTILITY CLASSES ========== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.17s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(230,84,44,0.14), 0 4px 24px rgba(23,58,36,0.10);
  transform: translateY(-4px) scale(1.025);
  z-index: 2;
}
.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: var(--secondary-dark);
  border-radius: 18px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  font-size: 1.075rem;
  color: var(--text-dark);
  position: relative;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}


/* ===== MAIN HEADER ===== */
header {
  background: #fff;
  padding: 0.5rem 0;
  box-shadow: 0 2px 16px rgba(23,58,36,0.04);
  position: sticky;
  top:0;
  z-index: 97;
  width: 100%;
  display: flex;
  align-items: center;
}
header .logo {
  margin-left: 18px;
  margin-right: 18px;
  display: flex;
  align-items: center;
}
header nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  flex: 1;
}
header nav a {
  display: block;
  padding: 12px 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  color: var(--primary);
  position: relative;
  transition: color .18s;
}
header nav a:hover, header nav a:focus {
  color: var(--accent);
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--text-light);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
  border-radius: 22px;
  border: none;
  padding: 12px 34px;
  margin-left: 24px;
  margin-right: 12px;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(230,84,44,0.12);
  transition: background .20s, transform .18s, box-shadow .18s;
  text-shadow: 0 2px 4px rgba(23,58,36,0.08);
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--accent-dark);
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 8px 24px rgba(230,84,44,0.19);
}


/* ====== MOBILE HEADER / BURGER ====== */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: var(--text-light);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  margin-left: auto;
  margin-right: 18px;
  border: none;
  cursor: pointer;
  z-index: 101;
  transition: background 0.16s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--accent-dark);
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: var(--primary);
  color: #fff;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.6,0,0.4,1);
  box-shadow: 0 0 70px 18px rgba(27,45,61,0.24);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: auto;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  position: absolute;
  top: 24px;
  right: 30px;
  z-index: 9002;
  transition: color 0.15s;
  padding: 0 10px;
  cursor: pointer;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 110px;
  align-items: center;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 12px 0;
  border-radius: 10px;
  width: 92vw;
  max-width: 370px;
  text-align: center;
  transition: background 0.12s, color 0.13s;
}
.mobile-nav a:hover { background: var(--accent); color: #fff; }
.mobile-nav a:active { background: var(--accent-dark); }


/* ========== HERO SECTIONS ========== */
.hero-section {
  background: linear-gradient(96deg, var(--secondary) 50%, #fff 100%);
  padding: 64px 0 40px 0;
  position: relative;
  z-index: 3;
}
.hero-section h1 {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  text-shadow: 0 2px 24px rgba(230,84,44,0.07);
}
.hero-section .subtitle {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.13rem;
}


/* ========== SECTIONS (Features, About, Services) ========== */
.feature-section, .about-section, .services-section, .features-section, .categories-section, .newsletter-section, .kursangebote-section, .legal-section, .confirmation-section {
  background: #fff;
  border-radius: 22px;
  margin-bottom: 40px;
  box-shadow: 0 2px 24px rgba(230,84,44,0.05);
}
.categories-section, .about-section, .legal-section {
  background: var(--secondary);
}
.feature-section, .services-section, .features-section, .featured-recipes-section {
  background: #fff;
}


.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.feature-grid, .category-grid, .service-list, .team-member-list, .course-list, .recipe-list, .contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 8px;
}
.feature-grid li, .category-grid li, .service-list li, .course-list li, .recipe-list li, .contact-details li, .team-member {
  background: var(--secondary-dark);
  border-radius: 15px;
  box-shadow: var(--shadow);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 340px;
  transition: box-shadow 0.21s, background 0.18s, transform 0.17s;
}
.feature-grid li:focus-within, .category-grid li:focus-within, .service-list li:focus-within, .course-list li:focus-within {
  background: #fffadf;
  outline: 2px solid var(--accent);
}
.feature-grid li:hover, .category-grid li:hover, .service-list li:hover, .recipe-list li:hover, .contact-details li:hover {
  box-shadow: 0 8px 24px rgba(230,84,44,0.16);
  background: #fff8f1;
  transform: scale(1.025) translateY(-3px);
  z-index: 2;
}

/* Team member cards */
.team-member-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.team-member {
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
  flex: 1 1 300px;
  margin-bottom: 20px;
  min-width: 0;
}


/* ========== TESTIMONIALS ========== */
.testimonial-section {
  background: linear-gradient(98deg, #fff 60%, #FFE5DA 100%);
  padding: 56px 0 48px 0;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.testimonial-card {
  background: #fff;
  border-left: 8px solid var(--accent);
  color: var(--text-dark);
  border-radius: 16px;
  font-size: 1.08rem;
  padding: 26px 26px 20px 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  flex: 1 1 320px;
  min-width: 220px;
  max-width: 400px;
  font-style: italic;
}
.testimonial-card strong {
  font-style: normal;
  color: var(--primary);
  margin-top: 12px;
  display: block;
  letter-spacing: 0.02em;
  font-size: 0.96rem;
  font-family: 'Montserrat', Arial, sans-serif;
}


/* ========== NEWSLETTER ========== */
.newsletter-section {
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  margin-bottom: 40px;
  box-shadow: 0 2px 24px rgba(230,84,44,0.13);
}
.newsletter-section h2,
.newsletter-section p {
  color: #fff;
}
.newsletter-signup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  justify-content: flex-start;
}
.newsletter-signup em {
  font-style: italic;
  font-size: 1rem;
  color: #fff;
  margin-right: 10px;
}
.newsletter-signup .cta-button {
  background: #fff;
  color: var(--accent);
  font-weight: 800;
  box-shadow: 0 4px 20px rgba(230,84,44,0.06);
}
.newsletter-signup .cta-button:hover {
  background: var(--secondary-dark);
  color: var(--accent-dark);
}


/* ========== FOOTER ========== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 24px 0;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  margin-top: 48px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
footer nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
footer nav a {
  color: #fff;
  opacity: 0.82;
  letter-spacing: 0.02em;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 700;
  font-size: 0.97rem;
  transition: color .16s, opacity .14s;
}
footer nav a:hover, footer nav a:focus {
  color: var(--accent);
  opacity: 1;
}
footer p {
  font-size: 0.97rem;
  color: #fff;
  opacity: 0.65;
  text-align: center;
}

/* ========== LEGAL PAGE SECTIONS ========== */
.legal-section, .confirmation-section {
  background: var(--secondary-dark);
  border-radius: 22px;
  padding: 40px 24px 32px 24px;
  margin-bottom: 50px;
  box-shadow: 0 2px 16px rgba(23,58,36,0.04);
  color: #333;
}
.legal-section h1, .confirmation-section h1 {
  color: var(--accent);
  margin-bottom: 22px;
}
.legal-section h2, .confirmation-section h2 {
  color: var(--primary);
}
.legal-section li, .confirmation-section li {
  background: none;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}
.legal-section a {
  color: var(--accent);
  text-decoration: underline;
}
.legal-section a:hover { color: var(--primary); }

/* ========== MAP PLACEHOLDER ========== */
.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  background: var(--secondary);
  border-radius: 15px;
  box-shadow: 0 3px 14px rgba(23,58,36,0.07);
  margin-top: 14px;
}

/* ========== RESPONSIVE DESIGN (MOBILE FIRST) ========== */
@media (max-width: 1100px) {
  .container { max-width: 970px; }
  .hero-section { padding: 42px 0 24px 0; }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.35rem; }
}
@media (max-width: 900px) {
  .feature-grid li, .category-grid li, .service-list li, .course-list li, .recipe-list li, .team-member {
    max-width: 47%;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  header nav {
    display: none;
  }
  .cta-button {
    margin-left: 8px;
    margin-right: 8px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container { padding: 0 10px; }
  .content-wrapper, .feature-grid, .category-grid, .service-list, .course-list, .recipe-list, .team-member-list, .card-container, .card-grid, .testimonial-slider {
    flex-direction: column;
    gap: 16px;
    align-items: stretch !important;
  }
  .feature-grid li, .category-grid li, .service-list li, .course-list li, .recipe-list li, .team-member {
    max-width: 100%;
  }
  .newsletter-signup { flex-direction: column; align-items: stretch; }
  .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card { max-width: 100%; }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
  .legal-section, .confirmation-section {
    padding: 26px 8px 18px 8px;
  }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  h1 { font-size: 1.27rem; }
  h2 { font-size: 1.05rem; }
  .cta-button { padding: 11px 20px; font-size: 1rem; }
  .feature-grid li, .category-grid li, .service-list li, .course-list li, .recipe-list li, .contact-details li, .team-member {
    padding: 15px 10px;
  }
  .testimonial-card { padding: 15px 12px 12px 12px; }
}


/* ====== CARD/SECTION ANIMATION EFFECTS ====== */
.card, .feature-grid li, .category-grid li, .service-list li, .recipe-list li, .testimonial-card, .team-member {
  transition: box-shadow 0.21s, transform 0.13s, background 0.18s;
}
.card:hover, .feature-grid li:hover, .category-grid li:hover, .service-list li:hover, .recipe-list li:hover, .testimonial-card:hover, .team-member:hover {
  box-shadow: 0 11px 34px rgba(237,103,44,0.12), 0 4px 32px rgba(23,58,36,0.12);
  z-index: 3;
}


/* ========== FORM AND INPUT ELEMENTS ========== */
input[type='text'], input[type='email'], textarea {
  width: 100%;
  background: #fff;
  border: 2px solid var(--secondary-dark);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(23,58,36,0.017);
  transition: border-color .17s;
}
input[type='text']:focus, input[type='email']:focus, textarea:focus {
  border-color: var(--accent);
  outline: none;
}
button, .cta-button {
  cursor: pointer;
  user-select: none;
  outline: 0;
}


/* =========== COOKIE CONSENT BANNER =========== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2100;
  background: #fff;
  color: #173A24;
  box-shadow: 0 -2px 14px rgba(37,37,37,0.14);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
  padding: 24px 16px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: cookiebanner-slidein 0.49s cubic-bezier(.6,0,.4,1);
}
@keyframes cookiebanner-slidein {
  from { transform: translateY(110%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  flex: 2;
  margin-right: 12px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner .cookie-btn {
  border-radius: 22px;
  border: none;
  padding: 10px 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-top: 4px;
  transition: background .17s, color .15s, box-shadow .15s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(230,84,44,0.07);
}
.cookie-banner .cookie-btn.accept {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .cookie-btn.accept:hover {
  background: var(--accent-dark);
}
.cookie-banner .cookie-btn.reject {
  background: var(--secondary-dark);
  color: var(--primary);
}
.cookie-banner .cookie-btn.reject:hover {
  background: #fffadf;
  color: var(--accent);
}
.cookie-banner .cookie-btn.settings {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--secondary-dark);
}
.cookie-banner .cookie-btn.settings:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}


/* ===== COOKIE PREFERENCES MODAL ===== */
.cookie-modal-overlay {
  z-index: 2200;
  position: fixed;
  inset: 0;
  background: rgba(23,58,36,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  transition: opacity 0.28s;
  opacity: 1;
  animation: modal-fade-in .32s cubic-bezier(.5,0,.3,1);
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 56px rgba(23,58,36,0.23), 0 6px 32px rgba(230,84,44,0.10);
  padding: 34px 28px 24px 28px;
  max-width: 355px;
  width: 95vw;
  color: var(--primary);
  font-size: 1.08rem;
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.cookie-modal .modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}
.cookie-modal .modal-category {
  font-size: 1.02rem;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 3px;
}
.cookie-modal .modal-desc {
  color: #333;
  font-size: .98rem;
  margin-bottom: 7px;
}
.cookie-category-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 7px;
}
.cookie-toggle-label {
  font-weight: 600;
  color: var(--primary);
}
.cookie-modal .save-btn {
  margin-top: 10px;
}

/* Simple toggle switch for cookie categories */
.cookie-switch {
  position: relative;
  width: 36px;
  height: 22px;
  display: inline-block;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--secondary-dark);
  border-radius: 22px;
  transition: background 0.18s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--accent);
}
.cookie-slider::before {
  position: absolute;
  content: '';
  left: 4px;
  top: 3px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.18s;
}
.cookie-switch input:checked + .cookie-slider::before {
  transform: translateX(14px);
}

/* Hide cookie banner/modal on small devices only if needed */
@media (max-width: 425px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 8px;
    gap: 10px;
  }
  .cookie-banner .cookie-text { margin-right: 0; }
}

/* ======= HIGH CONTRAST FOR TESTIMONIALS ON LIGHT BG ======= */
.testimonial-card, .testimonial-section .testimonial-card {
  color: #173A24;
  background: #fff;
}
.testimonial-card strong { color: var(--accent); }

/* ======= MISC: CONFIRM MESSAGE & NEXT STEPS ======= */
.confirmation-message {
  background: var(--secondary-dark);
  border-radius: 15px;
  padding: 16px 14px;
  margin-bottom: 22px;
  color: var(--primary);
  box-shadow: 0 2px 12px rgba(23,58,36,0.04);
}
.next-steps {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}
.next-steps .cta-button {
  margin-top: 10px;
}

/* ===== ALIGNMENT & WHITE SPACE ENFORCEMENT ===== */
.section > *, .content-wrapper > *, .card-container > *, .card-grid > *, .feature-grid > *, .testimonial-slider > *, .team-member-list > * {
  margin-bottom: 0 !important;
  min-width: 0;
}
.section, .card-container, .content-grid, .feature-grid, .category-grid, .testimonial-slider, .service-list, .team-member-list, .newsletter-signup, .next-steps {
  gap: 20px !important;
}

/* Custom icons inside feature blocks */
.feature-grid img, .category-grid img, .contact-details img {
  width: 36px; height: 36px; margin-bottom: 8px;
}

/* Hide default scrollbar (only on horizontal testimonial-slider) */
.testimonial-slider::-webkit-scrollbar { height: 0; }


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