/* =============================================================
   CSS RESET & BASE
   ============================================================= */
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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.5;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background-color: #F6F5EF;
  color: #21322A;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

* {
  box-sizing: inherit;
}
img {
  max-width: 100%;
  height: auto;
  border-style: none;
}
a {
  color: #0B5F2E;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #56894c;
  outline: none;
}
ul {
  list-style: none;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* =============================================================
   BRAND VARIABLES -- fallback for CSS custom props
   ============================================================= */
:root {
  --color-primary: #0B5F2E;
  --color-secondary: #FCD307;
  --color-accent: #FFFFFF;
  --color-brown: #835C3B;
  --color-leaf: #90A955;
  --color-sand: #EFE6D6;
  --color-bg: #F6F5EF;
  --color-dark: #21322A;
  --color-light: #FAFAF4;
  --box-radius: 18px;
  --shadow-xs: 0 1px 5px rgba(27,51,34,0.09);
  --shadow-md: 0 4px 18px rgba(27,51,34,0.13);
  --transition: 0.23s cubic-bezier(.71, 1.7, .77, 1.24);
  --font-display: 'Bitter', serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* =============================================================
   TYPOGRAPHY
   ============================================================= */
h1, .h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-brown);
  margin-bottom: 14px;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
}
h4, .h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: bold;
  color: var(--color-dark);
  margin-bottom: 8px;
}
p, ul li, address {
  font-family: var(--font-body);
  font-size: 1em;
  color: var(--color-dark);
  margin-bottom: 12px;
  line-height: 1.7;
}
.subtitle {
  color: var(--color-leaf);
  font-size: 1.25rem;
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
strong, b {
  color: var(--color-primary);
  font-weight: 700;
}

/* =============================================================
   CONTAINER/SPACING UTILS
   ============================================================= */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: transparent;
  border-radius: var(--box-radius);
}

@media (min-width: 900px) {
  .content-wrapper { gap: 20px; }
  .section { padding: 60px 40px; }
}

/* =============================================================
   HEADER & NAVIGATION
   ============================================================= */
header {
  background: var(--color-accent);
  box-shadow: var(--shadow-xs);
  position: sticky;
  top: 0;
  z-index: 60;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header img {
  height: 48px;
  min-width: 120px;
  margin-right: 30px;
}
nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
nav a {
  font-family: var(--font-body);
  font-size: 1em;
  font-weight: 600;
  color: var(--color-brown);
  position: relative;
  padding: 8px 0;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
}
nav a:hover, nav a:focus {
  background: var(--color-sand);
  color: var(--color-primary);
}
.cta-btn.primary {
  background-color: var(--color-primary);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 28px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-left: 10px;
}
.cta-btn, .cta-btn.primary {
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-leaf);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-md);
  outline: none;
}

@media (max-width: 900px) {
  header .container {
    gap: 12px;
  }
  nav {
    gap: 16px;
  }
  .cta-btn.primary {
    padding: 10px 22px;
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }
  .cta-btn.primary {
    display: none;
  }
}

/* =============================================================
   HERO SECTIONS
   ============================================================= */
.hero {
  background: var(--color-bg);
  border-radius: 0 0 var(--box-radius) var(--box-radius);  
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  position: relative;
  min-height: 350px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 10px;
  padding-top: 20px;
}
@media (min-width: 900px) {
  .hero .content-wrapper { padding-top: 40px; }
  .hero { min-height: 400px; }
}

/* =============================================================
   FEATURES (REZEPTKATEGORIEN ETC.)
   ============================================================= */
.features {
  background: var(--color-light);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow-xs);
  margin-bottom: 60px;
}
.features ul {
  margin: 0 0 10px 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
}
.features ul li {
  position: relative;
  padding-left: 34px;
  color: var(--color-primary);
  font-size: 1em;
  margin-bottom: 0;
  line-height: 1.65;
}
.features ul li:before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 9px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-leaf);
  box-shadow: 0 2px 7px rgba(11, 95, 46, 0.13);
}
.features ul li span {
  color: var(--color-brown);
  font-weight: 600;
}
@media (min-width: 700px) {
  .features ul { flex-direction: row; gap: 28px; }
}

/* =============================================================
   SERVICES & CARDS
   ============================================================= */
.services {
  background: var(--color-sand);
  border-radius: var(--box-radius);
  margin-bottom: 60px;
}
.services ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.services ul li {
  font-size: 1em;
  color: var(--color-brown);
  line-height: 1.5;
}
.services ul strong { color: var(--color-primary); font-weight: 700; }

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  background: var(--color-accent);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow-xs);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px) scale(1.01); }

@media (max-width: 768px) {
  .card-container { flex-direction: column; gap: 20px; }
}

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.testimonials {
  background: var(--color-bg);
  border-radius: var(--box-radius);
  box-shadow: var(--shadow-xs);
  padding: 40px 20px;
  margin-bottom: 60px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background-color: var(--color-light);
  margin-bottom: 20px;
  border-radius: var(--box-radius);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card p {
  font-size: 1.12em;
  color: var(--color-dark);
  flex: 1 1 0;
}
.testimonial-card span {
  min-width: 170px;
  color: var(--color-primary);
  font-weight: 700;
  font-family: var(--font-display);
  font-size: 1em;
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px) scale(1.01);
}
@media (max-width: 700px) {
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 14px; }
  .testimonial-card span { min-width: 0; }
}

/* =============================================================
   LEGAL/ABOUT/CONTACT SECTION VARIANTS
   ============================================================= */
.legal, .about, .contact, .thankyou, .cta {
  background: var(--color-light);
  border-radius: var(--box-radius);
  margin-bottom: 60px;
  box-shadow: var(--shadow-xs);
}
.about .subtitle, .contact .subtitle { color: var(--color-leaf); }
.contact ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 20px;
}
.contact ul li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1em;
  color: var(--color-primary);
}
.contact ul img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: hue-rotate(-32deg) brightness(0.8) saturate(1.4);
}
.cta .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 15px;
}

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 48px 0 26px 0;
  margin-top: 40px;
}
footer .container {
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
}
footer nav {
  display: flex;
  gap: 28px;
}
footer nav a {
  color: var(--color-secondary);
  font-size: 1em;
  font-family: var(--font-body);
  border-radius: 5px;
  padding: 6px 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s, color 0.2s;
}
footer nav a:hover,footer nav a:focus {
  background: var(--color-leaf);
  color: var(--color-accent);
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.98em;
}
.footer-info address {
  font-style: normal;
  color: var(--color-sand);
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  footer nav {
    flex-wrap: wrap;
    gap: 15px;
  }
}

/* =============================================================
   FLEXBOX LAYOUT UTILS (MANDATORY .content-grid etc.)
   ============================================================= */
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}
@media (max-width: 768px) {
  .content-grid,.text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: stretch !important;
  }
}

.mobile-menu, .mobile-menu-toggle {
  display: none;
}

/* =============================================================
   COOKIE CONSENT BANNER
   ============================================================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 230;
  background: var(--color-light);
  box-shadow: 0 -4px 18px rgba(11, 95, 46, 0.11);
  padding: 28px 20px 22px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  border-radius: 18px 18px 0 0;
  animation: cookieEnter .7s cubic-bezier(.77,-0.01,.43,1.07);
}
@keyframes cookieEnter {
  0% { transform: translateY(100%); opacity:0; }
  100% { transform: translateY(0); opacity:1; }
}
.cookie-banner p {
  font-size: 1em;
  color: var(--color-dark);
  margin: 0 12px 0 0;
  flex-shrink: 1;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1em;
  color: var(--color-accent);
  background: var(--color-primary);
  border: none;
  border-radius: 30px;
  padding: 10px 28px;
  box-shadow: var(--shadow-xs);
  margin-left: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.cookie-banner .cookie-btn.rejected {
  background: var(--color-brown);
  color: var(--color-accent);
}
.cookie-banner .cookie-btn.settings {
  background: var(--color-secondary);
  color: var(--color-primary);
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: var(--color-leaf);
  color: var(--color-accent);
  transform: translateY(-2px) scale(1.03);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    font-size: .97em;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 11px;
  }
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(33,50,42,0.23);
  z-index: 299;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in-ovl 0.33s;
}
.cookie-modal {
  background: var(--color-light);
  border-radius: 18px;
  box-shadow: 0 10px 30px 4px rgba(33,50,42,0.17);
  min-width: 320px;
  max-width: 96vw;
  padding: 36px 28px 28px 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalIn 0.5s;
}
@keyframes cookieModalIn {
  from { transform: scale(.91) translateY(100px); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-primary);
  margin-bottom: 6px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 2em;
  color: var(--color-primary);
  background: var(--color-secondary);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  line-height: 38px;
  border: none;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: background 0.15s;
  cursor: pointer;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus { background: var(--color-leaf); color:var(--color-accent); }
.cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 8px 0 12px 0;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--color-dark);
  font-weight: 600;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}
.cookie-switch input { display: none; }
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-brown);
  border-radius: 26px;
  transition: background .2s;
}
.cookie-switch input:checked + .cookie-slider {
  background: var(--color-primary);
}
.cookie-slider:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--color-accent);
  border-radius: 50%;
  transition: transform .2s;
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(20px);
}
.cookie-category .always-on {
  color: var(--color-secondary);
  font-size: .97em;
  font-weight: 500;
  margin-left: 10px;
}

/* =============================================================
   ORGANIC/NATURE DESIGN ORNAMENTS
   ============================================================= */
.section, .features, .services, .testimonials, .about, .contact, .legal, .cta, .thankyou {
  /* organic shape shadow & rounded */
  border-radius: var(--box-radius);
  box-shadow: 0 10px 26px 0 rgba(143, 102, 46, 0.07);
  background-size: cover;
}
.section::after {
  content: '';
  display: block;
  position: absolute;
  width: 70px;
  height: 70px;
  bottom: 16px;
  right: 28px;
  background: url('../assets/leaf-texture.svg') no-repeat center center/contain;
  opacity: 0.09;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 768px) {
  .section::after { display: none; }
}

/* Subtle hover animation for cards */
.card,
.testimonial-card,
.features,
.services {
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover,
.testimonial-card:hover,
.features:hover,
.services:hover {
  box-shadow: 0 8px 30px 0 rgba(68, 111, 74, 0.09);
  transform: translateY(-3px) scale(1.01);
}

/* =============================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================= */
@media (max-width: 700px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.35rem; }
}
@media (max-width: 500px) {
  .cookie-modal { min-width: 0; padding: 18px 6vw; }
  .modal h2 { font-size: 1rem; }
}
/* More compact sections on small screens */
@media (max-width: 600px) {
  .section, .features, .services, .testimonials, .about, .contact, .legal,.cta,.thankyou {
    padding: 22px 6vw;
    margin-bottom: 38px;
  }
}

/* ===========================================
   MISC, OVERRIDE SOME UX ELEMENTS
   =========================================== */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--color-leaf);
  border-radius: 9px;
}
:focus-visible {
  outline: 2px solid var(--color-secondary);
  outline-offset: 2px;
}

/* ===========================================
   PRINT SAFE
   =========================================== */
@media print { body{ background: #fff; color:#111; } }
