/* ====================== CSS RESET & NORMALIZATION ====================== */
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;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, sans-serif;
  background: #FFFFFF;
  color: #194D2F;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
  box-sizing: inherit;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 16px;
}

ul li, ol li {
  margin-bottom: 8px;
}

a {
  color: #336146;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #B9492E;
  text-decoration: underline;
  outline: none;
}

::-webkit-input-placeholder { color: #888; }
::-moz-placeholder { color: #888; }
:-ms-input-placeholder { color: #888; }
::placeholder { color: #888; }

/* ====================== TYPOGRAPHY ====================== */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: #194D2F;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #194D2F;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #194D2F;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #194D2F;
}
p {
  font-size: 1rem;
  color: #194D2F;
  margin-bottom: 16px;
}
strong { font-weight: 700; }

/* ====================== LAYOUT CONTAINERS ====================== */
.container {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

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

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
}

.card {
  background: #FFF;
  border: 1px solid #F5EDE2;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(25,77,47,0.06);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 270px;
  min-width: 270px;
  padding: 30px 22px;
  transition: box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}
.card:hover, .card:focus {
  box-shadow: 0 4px 18px rgba(25,77,47,0.15);
}

.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 10px;
  background: #F5EDE2;
  box-shadow: 0 1px 5px rgba(25,77,47,0.07);
  max-width: 500px;
  color: #194D2F;
}

.testimonial-card p {
  font-size: 1rem;
  color: #194D2F;
  font-style: italic;
  line-height: 1.6;
}

.testimonial-card span {
  font-size: 0.95rem;
  color: #336146;
  font-weight: 500;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #FFF;
  border-radius: 8px;
  padding: 20px 16px;
  box-shadow: 0 1.5px 8px rgba(25,77,47,0.05);
  border: 1px solid #F5EDE2;
}

/* Special Feature Grid for Sections (Home, Rezepte, Länder, Tipss, Kurse) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 10px 0;
  justify-content: flex-start;
}

.feature {
  flex: 1 1 210px;
  min-width: 210px;
  max-width: 260px;
  background: #FFF;
  border-radius: 10px;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 2px 8px rgba(51,97,70,0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid #F5EDE2;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.feature:hover, .feature:focus {
  box-shadow: 0 4px 14px rgba(51,97,70,0.12);
  border-color: #DDD;
}

.feature img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

/* ====================== CTA & BUTTON STYLES ====================== */
.cta,
button,
input[type="submit"] {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #336146;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.07rem;
  line-height: 1.2;
  padding: 14px 30px;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, box-shadow 0.19s;
  margin-top: 8px;
  outline: none;
  box-shadow: 0 2px 6px rgba(51,97,70,0.07);
}
.cta:hover, .cta:focus,
button:hover, button:focus,
input[type="submit"]:hover, input[type="submit"]:focus {
  background: #194D2F;
  color: #fff;
  box-shadow: 0 3px 13px rgba(51,97,70,0.13);
}

.cta:active, button:active {
  background: #B9492E;
  color: #fff;
}

/* ====================== HEADER & NAVIGATION ====================== */
header {
  width: 100%;
  background: #FFFFFF;
  padding: 0;
  box-shadow: 0px 2px 8px rgba(25,77,47,0.04);
  position: sticky;
  top: 0;
  z-index: 900;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 0 14px 0;
  max-width: 1100px;
  margin: 0 auto;
}
.main-nav > a {
  color: #194D2F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.17s, color 0.17s;
  position: relative;
}
.main-nav > a:hover, .main-nav > a:focus {
  background: #F5EDE2;
  color: #B9492E;
}
.main-nav > a:first-child img {
  width: 140px;
  height: auto;
  margin-right: 14px;
  vertical-align: bottom;
}

/* ====================== FOOTER ====================== */
footer {
  background: #FFFFFF;
  border-top: 1.2px solid #F5EDE2;
  margin-top: 70px;
  padding: 42px 0 30px 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-bottom: 20px;
  justify-content: center;
}
.footer-nav a {
  color: #336146;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 5px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: background 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #F5EDE2;
  color: #B9492E;
}
footer .text-section {
  text-align: center;
  color: #7A7A7A;
  font-size: 0.98rem;
}

/* ====================== TEXT-SECTION ====================== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  color: #194D2F;
}
.text-section a {
  color: #B9492E;
  text-decoration: underline;
  transition: color 0.16s;
}
.text-section a:hover, .text-section a:focus {
  color: #336146;
}

/* ====================== LIST & TABLE BASE ====================== */
ul, ol {
  margin-bottom: 18px;
}
ul li, ol li {
  margin-bottom: 9px;
  color: #194D2F;
  font-size: 1rem;
  line-height: 1.6;
}

/* ====================== RESPONSIVE LAYOUTS ====================== */
@media (max-width: 1150px) {
  .container {
    max-width: 96vw;
    padding: 0 8px;
  }
}
@media (max-width: 930px) {
  .main-nav {
    justify-content: flex-start;
    gap: 10px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .feature-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1, .h1 {font-size: 1.75rem;}
  h2, .h2 {font-size: 1.2rem;}
  .section { padding: 30px 9px; margin-bottom: 38px; }
  .card-container, .content-grid, .feature-grid {
    flex-direction: column;
    gap: 16px;
  }
  .card, .feature, .feature-item, .testimonial-card {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }
  .main-nav { gap: 6px; padding: 12px 3px 12px 3px; font-size: 0.99rem; }
  .main-nav > a:first-child img {
    width: 110px;
    margin-right: 6px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}
@media (max-width: 500px) {
  .container { padding-left: 0; padding-right: 0; }
  .main-nav, .footer-nav { gap: 2px; }
}

/* ====================== MOBILE BURGER MENU ====================== */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2.1rem;
  color: #336146;
  cursor: pointer;
  margin-right: 14px;
  z-index: 1200;
  transition: color 0.13s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  color: #B9492E;
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFF;
  z-index: 1201;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.55,.09,.68,.53);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 29px 35px 25px 18px;
  box-shadow: 0 0 0 0 #3336;
}
.mobile-menu.open {
  transform: translateX(0);
  box-shadow: 0px 3px 23px rgba(25,77,47,0.11);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #336146;
  cursor: pointer;
  align-self: flex-end;
  transition: color 0.15s;
  margin-bottom: 18px;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #B9492E;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  color: #194D2F;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 500;
  padding: 13px 0;
  border-radius: 4px;
  transition: background 0.09s, color 0.17s;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F5EDE2;
  color: #B9492E;
}
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 20px; top: 20px;
  }
}
@media (min-width: 1025px) {
  .mobile-menu { display: none; }
  .mobile-menu-toggle { display: none !important; }
}

/* ====================== COOKIE CONSENT BANNER ====================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFFFFF;
  border-top: 1.5px solid #F5EDE2;
  box-shadow: 0 -2px 16px rgba(51,97,70,0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 19px 18px 19px;
  z-index: 3000;
  transition: opacity 0.37s, bottom 0.37s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  bottom: -120px;
}
.cookie-banner .cookie-banner-text {
  font-size: 1.03rem;
  color: #194D2F;
  text-align: center;
  margin-bottom: 8px;
}
.cookie-banner .cookie-banner-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.button-cookie-accept, .button-cookie-reject, .button-cookie-settings {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 8px;
  border: 0;
  font-size: 1rem;
  padding: 11px 20px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(25,77,47,0.06);
}
.button-cookie-accept {
  background: #336146;
  color: #fff;
}
.button-cookie-accept:hover, .button-cookie-accept:focus {
  background: #194D2F;
}
.button-cookie-reject {
  background: #B9492E;
  color: #fff;
}
.button-cookie-reject:hover, .button-cookie-reject:focus {
  background: #333;
}
.button-cookie-settings {
  background: #F5EDE2;
  color: #194D2F;
  border: 1px solid #CCC;
}
.button-cookie-settings:focus, .button-cookie-settings:hover {
  background: #EEE0CB;
  color: #B9492E;
}
@media (max-width: 600px) {
  .cookie-banner {
    align-items: flex-start;
    padding: 15px 5px 11px 9px;
  }
  .cookie-banner .cookie-banner-actions { gap: 7px; }
}

/* ====================== COOKIE PREFERENCES MODAL ====================== */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3100;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(25,77,47,0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 4px 32px rgba(25,77,47,0.14);
  padding: 42px 28px 29px 28px;
  min-width: 320px; max-width: 95vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  position: relative;
}
.cookie-modal-header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  color: #194D2F;
  margin-bottom: 11px;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 13px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 5px 13px 5px;
  border-radius: 7px;
  background: #F5EDE2;
}
.cookie-category-label {
  flex: 1 1 auto;
  font-weight: 600;
  color: #336146;
}
.cookie-category input[type="checkbox"] {
  accent-color: #336146;
  width: 19px; height: 19px;
  cursor: pointer;
}
.cookie-category-essential .cookie-category-label:after {
  content: ' (notwendig)';
  font-weight: 400;
  font-size: 0.98em;
  color: #7C7C7C;
  margin-left: 4px;
}
.cookie-category-essential input[disabled] {
  filter: grayscale(1) opacity(0.55);
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  gap: 11px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-close-btn {
  background: none;
  border: none;
  font-size: 1.45rem;
  color: #194D2F;
  cursor: pointer;
  position: absolute;
  right: 15px; top: 14px;
  z-index: 1;
  transition: color 0.13s;
}
.cookie-modal-close-btn:hover, .cookie-modal-close-btn:focus {
  color: #B9492E;
}
@media (max-width: 500px) {
  .cookie-modal { min-width: 0; width: 95vw; padding: 20px 7vw 18px 7vw; }
}

/* ====================== MICRO-INTERACTIONS & UTILITIES ====================== */
.shadow-subtle {
  box-shadow: 0 1px 8px rgba(51,97,70,0.06);
}
.rounded {
  border-radius: 8px;
}
.bg-highlight {
  background: #F5EDE2;
}
.text-accent {
  color: #B9492E;
}
.text-primary {
  color: #336146;
}

/* ====================== ACCESSIBILITY ====================== */
:focus-visible {
  outline: 2px solid #B9492E;
  outline-offset: 1px;
}

/* ====================== HIDE/SHOW UTILITIES ====================== */
.hidden, [hidden] { display: none !important; }

/* ====================== SCROLLBARS FOR MODALS (SUBTLE) ====================== */
.cookie-modal::-webkit-scrollbar {
  width: 7px;
  background: #F5EDE2;
}
.cookie-modal::-webkit-scrollbar-thumb { background: #DED8CF; border-radius: 6px; }

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