/* =========================
   RESET & BASE 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;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
  display: block;
}
body {
  line-height: 1.6;
  min-height: 100vh;
  background: #F4F7F9;
  color: #2A3434;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
}
ol, ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: #14334A;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #397E51;
  outline: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* =========================
   COLOR VARIABLES (fallback-compatible)
   ========================= */
:root {
  --primary: #14334A;
  --primary-dark: #0B232F;
  --secondary: #E3C199;
  --accent: #F4F7F9;
  --organic-green: #397E51;
  --organic-leaf: #8AB67B;
  --organic-earth: #ab946a;
  --body-text: #2A3434;
  --card-bg: #fff;
  --card-shadow: 0 6px 24px 0 rgba(44,56,47,0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -1px;
}
h1 {font-size: 2.2rem; line-height: 1.1; margin-bottom: 20px;}
h2 {font-size: 1.7rem; margin-bottom: 16px;}
h3 {font-size: 1.25rem; margin-bottom: 12px;}
h4 {font-size: 1.1rem; margin-bottom: 10px;}
p, ul, ol, li, table, th, td {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--body-text);
}
strong {
  font-weight: 700;
}

body, .container, .text-section, .content-wrapper, .feature-grid, .testimonial-grid {
  /* correction for inherited box-sizing */
  box-sizing: border-box;
}

/* =========================
   CONTAINERS & LAYOUT
   ========================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.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;
}

/* =========================
   FLEX LAYOUTS FOR GRIDS
   ========================= */
.feature-grid, .testimonial-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 20px 0;
}
.feature-grid > div, .testimonial-grid > div {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 28px 24px 22px 24px;
  flex: 1 1 300px;
  min-width: 260px;
  max-width: calc(33% - 24px);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.23s, background 0.23s, transform 0.23s;
  border: 2px solid rgba(62,101,71,0.07);
}
.feature-grid > div:hover, .testimonial-grid > div:hover {
  box-shadow: 0 8px 32px 0 rgba(44,56,47,0.16);
  outline: 0;
  transform: translateY(-4px) scale(1.018);
  background: #f9faf6;
}
@media (max-width: 992px) {
  .feature-grid > div {
    min-width: 48%;
    max-width: 60%;
  }
  .testimonial-grid > div {
    min-width: 60%;
    max-width: 88%;
  }
}
@media (max-width: 768px) {
  .feature-grid, .testimonial-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .testimonial-grid > div {
    min-width: 100%;
    max-width: 100%;
  }
}

.text-section {
  padding: 32px 24px 28px 24px;
  background: #f9faf6;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(44,56,47,0.05);
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .text-section {
    padding: 20px 12px 14px 12px;
    margin-bottom: 16px;
  }
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background: var(--primary);
  width: 100%;
  box-shadow: 0 2px 8px 0 rgba(20,51,74,0.05);
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  flex-wrap: wrap;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 20px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 4px 0 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.22s, border-color 0.12s;
}
.main-nav a.cta-primary {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  margin-left: 14px;
  border: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  box-shadow: 0 2px 8px 0 rgba(20,51,74,0.10);
  letter-spacing: 0.5px;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--organic-green);
  border-bottom: 2px solid var(--organic-green);
  outline: none;
}
.main-nav a.cta-primary:hover,
.main-nav a.cta-primary:focus {
  background: var(--organic-green);
  color: #fff;
  box-shadow: 0 4px 18px 0 rgba(44,56,47,0.10);
}
.mobile-menu-toggle {
  background: transparent;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  padding: 10px 14px;
  cursor: pointer;
  display: none;
  transition: color 0.18s;
  border-radius: 5px;
}
.mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--primary);
}

@media (max-width: 1024px) {
  .main-nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 8px;
  }
}
@media (max-width: 768px) {
  header .container {
    min-height: 62px;
    padding: 6px 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* =============
   MOBILE MENU
   ============= */
.mobile-menu {
  position: fixed;
  z-index: 1200;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 51, 74, 0.97);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.6, 0, 0.3, 1);
  box-shadow: 6px 0 32px 0 rgba(20,51,74,0.18);
  padding: 0 0 0 0;
  overflow-y: auto;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  color: var(--secondary);
  font-size: 2.2rem;
  padding: 18px 26px 8px 16px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.15s;
  z-index: 1;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--organic-leaf);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 40px;
  padding: 0 28px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 12px 0 12px 0;
  border-bottom: 2px solid transparent;
  border-radius: 5px;
  transition: color 0.17s, background 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--organic-green);
  background: #ffffff12;
  outline: none;
}
@media (min-width: 769px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================
   HERO SECTIONS
   ========================= */
section:first-of-type {
  background: linear-gradient(115deg,#F4F7F9 90%,#E3C199 120%) no-repeat;
  border-bottom-left-radius: 72px 40px;
  border-bottom-right-radius: 72px 40px;
  box-shadow: 0 6px 36px 0 rgba(20,51,74,0.03);
  margin-bottom: 42px;
  padding-top: 54px;
  position: relative;
  overflow: hidden;
}
section:first-of-type .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
@media (max-width: 768px) {
  section:first-of-type {
    border-bottom-left-radius: 36px 16px;
    border-bottom-right-radius: 36px 16px;
    padding-top: 20px;
  }
}

/* =========================
   BUTTONS & CTAS
   ========================= */
.cta-primary,
.button, .btn {
  display: inline-block;
  background: var(--organic-green);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  border: none;
  box-shadow: 0 4px 20px 0 rgba(44,56,47,0.13);
  letter-spacing: 0.1px;
  cursor: pointer;
  margin-top: 10px;
  margin-bottom: 3px;
  transition: background 0.22s, color 0.22s, box-shadow 0.18s, transform 0.15s;
  outline: none;
}
.cta-primary:hover,
.button:hover,
.btn:hover,
.cta-primary:focus,
.button:focus,
.btn:focus {
  background: #295f39;
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(44,56,47,0.14);
  transform: translateY(-3px) scale(1.026);
}
@media (max-width: 470px) {
  .cta-primary,
  .button, .btn {
    font-size: 1rem;
    padding: 10px 16px;
  }
}

/* ===========
  CARDS
  =========== */
.card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  padding: 26px 22px 20px 22px;
  border: 1.5px solid #E3C19933;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ===========
   TESTIMONIALS
   =========== */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--card-shadow);
  min-width: 280px;
  color: #1A221C;
  padding: 20px 28px 16px 28px;
  margin-bottom: 20px;
  flex: 1 1 270px;
  gap: 16px;
  flex-direction: column;
  border-left: 4px solid var(--organic-green);
  position: relative;
}
.testimonial-card p {
  color: #172013;
  font-size: 1.11rem;
  line-height: 1.7;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.3px;
}

/* ===========
   TABLES (Kontakt, Öffnungszeiten, Datenschutz Pages)
   =========== */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 22px;
  box-shadow: 0 1px 6px 0 rgba(44,56,47,0.06);
}
th, td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid #e7e8e3;
  font-size: 1rem;
}
th {
  color: var(--primary-dark);
  background: var(--secondary);
  font-weight: 700;
  border-radius: 0 0 0 0;
}
tr:last-child td {
  border-bottom: none;
}

/* ===========
   FOOTER
   =========== */
footer {
  background: var(--primary);
  color: #fff;
  padding: 48px 0 18px 0;
  width: 100%;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.footer-menu a {
  color: var(--secondary);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.13s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: var(--organic-leaf);
}
.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  color: #fff;
  font-size: 1rem;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 20px;
}
.contact-details img {
  height: 22px;
  width: 22px;
  object-fit: contain;
  margin-right: 4px;
}
.social-links {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px; width: 38px;
  background: rgba(255,255,255,0.13);
  border-radius: 60px;
  border: none;
  transition: background 0.17s;
}
.social-links a:hover,
.social-links a:focus {
  background: var(--organic-green);
}
.social-links img {
  width: 24px; height: 24px;
}
@media (max-width: 768px) {
  footer .container {
    gap: 10px;
    padding: 0 14px;
  }
  .footer-menu{
    gap: 12px;
    margin-bottom: 7px;
  }
  .contact-details {
    gap: 10px;
    flex-direction: column;
    font-size: 0.98rem;
  }
  .social-links {
    margin-top: 10px;
    gap: 12px;
  }
}

/* ===========
   LISTS & LINKS
   =========== */
ul, ol {
  margin-left: 18px;
  margin-bottom: 14px;
}
li {
  margin-bottom: 8px;
  position: relative;
  line-height: 1.65;
}
ul li::before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  width: 10px;
  height: 10px;
  background: var(--organic-leaf);
  border-radius: 50%;
}
ol li {
  margin-left: 12px;
}
.text-section ul li::before {
  background: var(--organic-green);
}

/* ===========
   FORMS (Basic Styling Opportunity)
   =========== */
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  padding: 9px 12px;
  border: 1px solid #B7C7B2;
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: 18px;
  transition: box-shadow 0.15s, border-color 0.15s;
  box-shadow: 0 1px 3px 0 rgba(20,51,74,0.02);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--organic-green);
  box-shadow: 0 0 5px 0 var(--organic-leaf);
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--primary);
  display: inline-block;
}

/* ===========
   ORGANIC DESIGN TOUCHES
   =========== */
.feature-grid > div, .card, .testimonial-card, .text-section {
  border-radius: 32px 12px 30px 16px / 24px 36px 16px 28px;
  /* Organic blob shape with CSS border-radius (elliptical corners) */
  box-shadow: 0 6px 24px 0 rgba(44,56,47,0.09);
  border: 2px solid #e3c19922;
}
section:first-of-type {
  border-radius: 52px 24px 70px 48px/40px 52px 24px 70px;
}
button, .button, .cta-primary {
  border-radius: 28px 8px 24px 18px/16px 26px 10px 30px;
}
.testimonial-card {
  border-radius: 38px 14px 28px 22px/20px 40px 18px 38px;
  border-left: 5px solid var(--organic-green);
}

/* Slight paper grain texture effect for some backgrounds */
.section, .text-section, .feature-grid > div, .testimonial-card, .card {
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23E3C199" fill-opacity="0.08" width="120" height="60" xmlns="http://www.w3.org/2000/svg"><ellipse cx="64" cy="30" rx="49" ry="16"/></svg>');
  background-repeat: repeat;
}

/* Subtle shadow for sticky/fixed overlays */
.mobile-menu, .cookie-banner, .cookie-modal {
  box-shadow: 0 6px 44px 0 rgba(34,52,24,0.18);
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  z-index: 7500;
  background: #fffbe8;
  color: #453f25;
  border-top: 3px solid var(--organic-green);
  box-shadow: 0 -2px 14px 0 rgba(44,56,47,0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 32px;
  font-size: 1rem;
  transition: transform 0.33s cubic-bezier(.7,0,.3,1.3), opacity 0.33s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100px);
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
}
.cookie-banner button {
  background: var(--organic-green);
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 18px 7px 16px 7px/13px 20px 9px 16px;
  margin-right: 4px;
  margin-bottom: 2px;
  box-shadow: 0 2px 12px 0 rgba(44,56,47,0.08);
  cursor: pointer;
  transition: background 0.22s, color 0.22s;
}
.cookie-banner button.cookie-reject {
  background: #fff1e0;
  color: var(--organic-green);
  border: 1.5px solid var(--organic-green);
}
.cookie-banner button.cookie-settings {
  background: var(--secondary);
  color: var(--primary);
  border: 1.5px solid var(--organic-green);
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--primary);
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 10px 12px 10px;
    font-size: 0.98rem;
  }
  .cookie-banner .cookie-banner-buttons {
    justify-content: flex-start;
  }
}

/* =========================
   COOKIE CONSENT MODAL
   ========================= */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 8999;
  top: 0; left:0; right:0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(20,51,74, 0.64);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s;
  opacity: 1;
}
.cookie-modal-backdrop.hide { opacity: 0; pointer-events: none; }
.cookie-modal {
  background: #fff;
  border-radius: 38px 14px 28px 19px/28px 34px 15px 24px;
  padding: 40px 32px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 8px 40px 0 rgba(44,56,47,0.18);
  color: #223214;
  position: relative;
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  color: var(--primary);
}
.cookie-modal label {
  font-size: 1.1rem;
  color: var(--primary);
  margin-right: 12px;
}
.cookie-modal .category {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cookie-modal .category input[type=checkbox] {
  accent-color: var(--organic-green);
}
.cookie-modal .modal-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 18px;
}
.cookie-modal button {
  background: var(--organic-green);
  color: #fff;
  border: none;
  padding: 11px 22px;
  border-radius: 20px 8px 17px 8px/14px 22px 6px 19px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.19s, color 0.18s;
}
.cookie-modal button:hover, .cookie-modal button:focus {
  background: var(--primary);
  color: #fff;
}
.cookie-modal-close {
  background: transparent;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  position: absolute;
  top: 14px;
  right: 22px;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--organic-green);
}
@media (max-width:600px) {
  .cookie-modal {
    padding: 20px 10px;
    min-width: 98vw;
  }
}

/* ==============
   ANIMATION KEYFRAMES
   ============= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(80px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-56px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

section, .feature-grid > div, .card, .testimonial-card {
  animation: fadeInScale 0.8s cubic-bezier(.1,.5,.6,1) both;
}

/* ==============
   MISCELLANEOUS
   ============== */
h1, h2, h3, h4, h5, h6, .cta-primary {
  text-shadow: 0 1px 8px #e3c19922;
}
hr {
  border: none;
  border-top: 1.5px dashed #ab946a33;
  margin: 24px 0;
}

::-webkit-scrollbar {
  width: 10px;
  background: #e9e7e1;
}
::-webkit-scrollbar-thumb {
  background: #CED6C9;
  border-radius: 8px;
}

/* =========================
   MEDIA QUERIES
   ========================= */
@media (max-width: 1200px) {
  .container { max-width: 1000px;}
}
@media (max-width: 900px) {
  .container { max-width: 94vw; }
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.3rem; }
  .feature-grid > div, .testimonial-grid > div { padding: 18px 10px; }
}
@media (max-width: 768px) {
  .container { padding: 0 6px; }
  .feature-grid > div, .testimonial-grid > div {
    padding: 16px 7px;
  }
  h1 { font-size: 1.33rem; margin-bottom: 8px; }
}
@media (max-width: 500px) {
  .container { padding: 0 2px; }
  .footer-menu { gap: 7px; }
  .card, .feature-grid > div, .testimonial-card {
    padding: 8px 5px;
  }
}

 