/* CSS Reset & Normalize */
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 {
  min-height: 100vh;
  line-height: 1.6;
  background-color: #FAF8F5;
  color: #224C36;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Font Imports */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

/* BRAND COLORS & Fallbacks */
:root {
  --primary: #224C36;
  --primary-dark: #183625;
  --secondary: #79A47C;
  --secondary-dark: #5a8c58;
  --accent: #FAF8F5;
  --text-main: #224C36;
  --text-subtle: #466752;
  --earth-brown: #B4A08B;
  --clay: #DBCBAA;
  --white: #fff;
}

/* GENERAL TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.03em;
}
h1 {
  font-size: 2.5rem; /* 40px */
  margin-bottom: 24px;
  line-height: 1.1;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 20px;
  line-height: 1.1;
}
h3 {
  font-size: 1.375rem; /* 22px */
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 8px;
  color: var(--primary-dark);
  font-weight: 500;
}
p, ul, ol {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 20px;
}
li {
  margin-bottom: 8px;
}
strong, b {
  color: var(--primary);
  font-weight: bold;
}
a {
  color: var(--secondary);
  text-decoration: underline;
  transition: color 0.2s;
  cursor: pointer;
}
a:hover, a:focus {
  color: var(--primary-dark);
  text-decoration: none;
}

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 24px;
  box-shadow: 0 4px 16px 0 rgba(34, 76, 54, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (max-width: 768px) {
  .section {
    margin-bottom: 36px;
    padding: 28px 8px;
    border-radius: 14px;
  }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 2px 10px 0 rgba(34, 76, 54, 0.06);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 250px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 24px 0 rgba(34, 76, 54, 0.12);
  transform: translateY(-3px) scale(1.01);
}

.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 18px;
  background: var(--clay, #DBCBAA);
  color: var(--text-main);
  margin-bottom: 20px;
  box-shadow: 0 1px 8px 0 rgba(34, 76, 54, 0.07);
  font-size: 1.1rem;
  line-height: 1.5;
  transition: box-shadow 0.16s, border 0.16s;
  border: 1px solid var(--clay, #DBCBAA);
}
.testimonial-card strong {
  color: var(--primary);
  font-size: 1rem;
  margin-left: auto;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 6px 20px 0 rgba(34, 76, 54, 0.13);
  border: 1.5px solid var(--primary);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f6f4ed;
  padding: 22px 18px;
  border-radius: 16px;
  box-shadow: 0 1px 4px 0 rgba(34, 76, 54, 0.06);
  margin-bottom: 20px;
}

/* HERO/INTRO */
.hero {
  background: linear-gradient(120deg, #fff 70%, #E2DED3 100%);
  border-radius: 28px;
  box-shadow: 0 2px 18px 0 rgba(34, 76, 54, 0.05);
  margin-bottom: 48px;
  padding: 48px 0 44px 0;
  display: flex;
  flex-direction: column;
  min-height: 250px;
}
@media (max-width: 768px) {
  .hero {
    padding: 28px 0 25px 0;
    border-radius: 16px;
    margin-bottom: 20px;
  }
  .content-wrapper {
    padding: 0;
  }
}

/* FEATURES GRID & SERVICE CARDS */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 8px;
}
.feature {
  flex: 1 1 180px;
  min-width: 220px;
  max-width: 280px;
  background: #f6f4ed;
  border-radius: 18px;
  padding: 24px 20px 16px 20px;
  box-shadow: 0 1px 7px 0 rgba(121, 164, 124, 0.06);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
  border-left: 5px solid var(--secondary);
  transition: box-shadow 0.16s, border 0.16s;
}
.feature img {
  width: 36px;
  height: 36px;
  margin-bottom: 8px;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 8px 24px 0 rgba(121, 164, 124, 0.15);
  border-left: 5px solid var(--primary);
  background: #e9e5da;
}
@media (max-width: 960px) {
  .features-grid {
    flex-direction: column;
    gap: 18px;
  }
  .feature {
    max-width: 100%;
    min-width: 0;
  }
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 24px;
}
.service {
  flex: 1 1 260px;
  background: #f6f4ed;
  border-radius: 18px;
  padding: 26px 22px 18px 22px;
  box-shadow: 0 1px 6px 0 rgba(121, 164, 124, 0.06);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 4px solid var(--secondary);
  transition: background 0.16s, border 0.16s;
}
.service:hover, .service:focus-within {
  background: #e9e5da;
  border-bottom: 4px solid var(--primary);
}
@media (max-width: 960px) {
  .service-list {
    flex-direction: column;
    gap: 16px;
  }
}

/* GUIDE/CARD STYLES ON RATGEBER */
.guide-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 12px;
}
.guide {
  flex: 1 1 210px;
  min-width: 200px;
  background: #f6f4ed;
  border-radius: 18px;
  padding: 18px 15px 12px 15px;
  box-shadow: 0 1px 7px 0 rgba(121, 164, 124, 0.06);
  margin-bottom: 20px;
  border-right: 5px solid var(--secondary);
  transition: box-shadow 0.14s, border 0.14s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide:hover, .guide:focus-within {
  box-shadow: 0 8px 18px 0 rgba(121, 164, 124, 0.13);
  border-right: 5px solid var(--primary);
  background: #e9e5da;
}
@media (max-width: 960px) {
  .guide-list {
    flex-direction: column;
    gap: 14px;
  }
}

/* INFO BLOCK & MODAL STYLES */
.info-block {
  background: var(--clay);
  color: var(--primary);
  border-radius: 14px;
  padding: 18px 20px 14px 20px;
  margin-top: 18px;
  margin-bottom: 16px;
  box-shadow: 0 1px 6px 0 rgba(100, 90, 50, 0.08);
}

/* CONTACT GRID (Kontaktseite) */
.contact-info-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 20px;
}
.contact-info {
  flex: 1 1 180px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f6f4ed;
  border-radius: 14px;
  padding: 14px 12px;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.contact-info img {
  width: 24px;
  height: 24px;
}
@media (max-width: 768px) {
  .contact-info-grid {
    flex-direction: column;
    gap: 12px;
  }
}

/* CTAs & BUTTONS */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 32px;
  border-radius: 26px;
  background: var(--secondary);
  color: var(--white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  box-shadow: 0 2px 10px 0 rgba(121, 164, 124, 0.07);
  cursor: pointer;
  outline: none;
  transition: background 0.18s, transform 0.14s, box-shadow 0.13s;
  margin: 8px 0 8px 0;
  text-decoration: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--primary);
  color: var(--accent);
  box-shadow: 0 6px 20px 0 rgba(34, 76, 54, 0.14);
  transform: translateY(-2px) scale(1.01);
}

button, input[type="button"], input[type="submit"], .button {
  font-family: inherit;
  font-size: 1rem;
  box-sizing: border-box;
}
button:focus {
  outline: 2px solid var(--secondary);
}

/* HEADER & NAVIGATION */
header {
  background: var(--accent);
  border-bottom: 1.5px solid #e4dfd4;
  position: sticky;
  top: 0;
  z-index: 20;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 20px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  color: var(--primary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
  padding: 6px 10px;
  border-radius: 14px;
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
  letter-spacing: 0.01em;
}
header nav a:hover, header nav a:focus {
  background: #e9e5da;
  color: var(--secondary);
}
header img {
  height: 40px;
  width: auto;
  border-radius: 8px;
}
/* Hide mobile menu toggle by default */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--accent);
  border: none;
  font-size: 2.1rem;
  padding: 8px 16px;
  border-radius: 10px;
  margin-left: 10px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  box-shadow: 0 1px 6px 0 rgba(121, 164, 124, 0.09);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--accent);
}

@media (max-width: 1050px) {
  header .container {
    gap: 10px;
  }
  header nav {
    gap: 8px;
  }
}

@media (max-width: 900px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34, 76, 54, 0.97);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.61,0,.4,1);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: none;
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  color: var(--accent);
  border: none;
  font-size: 2.5rem;
  align-self: flex-end;
  margin: 14px 20px 0 0;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:focus {
  outline: 2px solid var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100vw;
  margin-top: 40px;
  align-items: flex-start;
  padding-left: 32px;
}
.mobile-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 0;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  display: block;
  min-width: 160px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}

/* Hide regular nav on mobile, show mobile menu only */
@media (max-width: 900px) {
  header nav, .cta-btn {
    display: none !important;
  }
  header .cta-btn {
    display: none !important;
  }
}

/* Show cta-btn in hero and sections, but not in header on mobile */
@media (max-width: 900px) {
  .hero .cta-btn, .section .cta-btn, main .cta-btn {
    display: inline-flex;
  }
}

/* FOOTER */
footer {
  background: var(--primary);
  color: var(--accent);
  padding-top: 34px;
  padding-bottom: 20px;
  box-shadow: 0 -2px 12px 0 rgba(34, 76, 54, 0.08);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
}
.footer-main img {
  height: 40px;
  width: auto;
  background: var(--accent);
  border-radius: 10px;
  padding: 3px 5px;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
footer nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  opacity: 0.95;
  padding: 3px 6px;
  border-radius: 6px;
  transition: background 0.14s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
.footer-legal {
  margin-top: 16px;
}
footer address {
  color: var(--accent);
  font-style: normal;
  font-size: 0.95rem;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  line-height: 1.6;
}
footer address img {
  vertical-align: middle;
  margin-right: 4px;
  width: 16px;
  height: 16px;
  filter: invert(91%) sepia(5%) saturate(145%) hue-rotate(76deg) brightness(107%) contrast(88%);
}
.footer-bottom {
  margin-top: 20px;
  border-top: 1px solid rgba(250, 248, 245, 0.18);
  padding-top: 18px;
  text-align: center;
}
@media (max-width: 900px) {
  .footer-main {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .footer-legal nav {
    gap: 8px;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fffaf4;
  color: var(--primary);
  border-top: 2px solid var(--secondary);
  box-shadow: 0 -4px 24px 0 rgba(34, 76, 54, 0.13);
  padding: 22px 24px 24px 24px;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 1rem;
  animation: slideUp 0.7s ease;
  transition: transform 0.2s, opacity 0.2s;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner button {
  border-radius: 18px;
  padding: 10px 21px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.13s, color 0.13s;
  cursor: pointer;
}
.cookie-banner .accept {
  background: var(--secondary);
  color: var(--white);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-banner .reject {
  background: var(--clay);
  color: var(--primary);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #eedfc3;
}
.cookie-banner .settings {
  background: var(--accent);
  color: var(--primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #e6e3d6;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.98rem;
    padding: 16px 10px 18px 10px;
  }
  .cookie-banner .cookie-actions {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(60, 52, 38, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  opacity: 1;
  pointer-events: all;
  animation: fadeIn 0.3s;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: var(--accent);
  color: var(--primary);
  border-radius: 22px;
  padding: 36px 28px 30px 28px;
  min-width: 320px;
  max-width: 96vw;
  box-shadow: 0 8px 32px 0 rgba(100, 90, 50, 0.16);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}
@media (max-width: 550px) {
  .cookie-modal-content {
    padding: 20px 7px 18px 7px;
    min-width: 90vw;
    border-radius: 14px;
  }
}
.cookie-modal h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--text-main);
  cursor: pointer;
}
/* Switch toggle for cookie settings */
.cookie-switch {
  appearance: none;
  width: 38px;
  height: 20px;
  background: #ddd;
  border-radius: 11px;
  position: relative;
  outline: none;
  transition: background 0.18s;
  cursor: pointer;
}
.cookie-switch:checked {
  background: var(--secondary);
}
.cookie-switch:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  transition: left 0.16s;
}
.cookie-switch:checked:before {
  left: 21px;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.cookie-modal-actions button {
  border-radius: 16px;
  padding: 8px 18px;
  border: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  transition: background 0.13s, color 0.13s;
  cursor: pointer;
}
.cookie-modal-actions .save {
  background: var(--secondary);
  color: var(--white);
}
.cookie-modal-actions .save:hover, .cookie-modal-actions .save:focus {
  background: var(--primary);
  color: var(--accent);
}
.cookie-modal-actions .cancel {
  background: var(--clay);
  color: var(--primary);
}
.cookie-modal-actions .cancel:hover, .cookie-modal-actions .cancel:focus {
  background: #eedfc3;
}
.cookie-modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.85;
  transition: color 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: var(--secondary);
  outline: 2px solid var(--secondary);
}

/* MICRO-INTERACTIONS */
.card, .feature, .testimonial-card, .guide, .service {
  transition: box-shadow 0.16s, transform 0.13s, background 0.16s, border 0.14s;
}
.card:hover, .feature:hover, .testimonial-card:hover, .guide:hover, .service:hover {
  box-shadow: 0 8px 32px 0 rgba(34, 76, 54, 0.11);
  transform: scale(1.02) translateY(-2px);
}

/* ORGANIC/NATURE VISUALS */
.section, .feature, .service, .card, .testimonial-card {
  /* Gentle organic visual effect with border-radius and subtle shadow */
  border-radius: 22px 18px 24px 14px;
}

/* ORGANIC DECORATIVE SHAPES (optional, adapt to your needs) */
.organic-shape {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .container {
    max-width: 99vw;
    padding: 0 8px;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.55rem;
    margin-bottom: 16px;
  }
  h2 {
    font-size: 1.13rem;
    margin-bottom: 12px;
  }
  .feature, .service, .card, .testimonial-card {
    padding: 13px 8px;
    font-size: 0.96rem;
  }
}

/* ACCESSIBILITY HIGHLIGHTS */
a:focus-visible, button:focus-visible {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}

/* PRINT STYLES (minimal) */
@media print {
  header, footer, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #000; }
}
