/* ===== 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,
main, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background: #ffffff;
  color: #212121;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #20557a;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #DA8218;
}
ul, ol {
  list-style: none;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ===== BRAND FONTS ===== */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Open+Sans:400,600,700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #20557a;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2D5A27;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
}
p, ul, ol, label {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 16px;
  color: #333;
}
strong, b {
  font-weight: 700;
}

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

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
}

main section:not(:last-child) {
  border-bottom: 4px solid #ECECEC;
  margin-bottom: 60px;
}

html body section {
  background: #fff;
}

/* ===== HEADER ===== */
header {
  background: #2D5A27;
  width: 100%;
  box-shadow: 0 4px 16px rgba(22, 50, 35, 0.07);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 20px 18px 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  border-radius: 8px;
  padding: 8px 14px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #DA8218;
  color: #fff;
}
header img {
  height: 48px;
  margin-right: 24px;
}
.btn-primary {
  background: #DA8218;
  color: #fff !important;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  border-radius: 12px;
  padding: 14px 30px;
  box-shadow: 0 2px 16px rgba(166,77,13,0.09);
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  border: none;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  margin-left: 18px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #20557a;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 2px 28px rgba(45,90,39,0.13);
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 24px;
  z-index: 1030;
  font-size: 2rem;
  color: #DA8218;
  background: #fff;
  border-radius: 8px;
  height: 48px;
  width: 48px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(45,90,39,0.10);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1100;
  background: rgba(255,255,255, 0.96);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.45,1,.25,1), opacity 0.34s;
  opacity: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 26px 38px 18px 0;
  align-self: flex-end;
  font-size: 2.3rem;
  background: none;
  color: #20557a;
  border-radius: 8px;
  transition: background 0.19s;
}
.mobile-menu-close:hover {
  background: #ECECEC;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 0 38px;
  margin-top: 16px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  color: #20557a;
  padding: 12px 0 12px 0;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 2px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fff;
  background: #DA8218;
  padding-left: 12px;
}

/* Show burger on mobile, hide nav */
@media (max-width: 999px) {
  .mobile-menu-toggle {
    display: flex;
  }
  header nav, header .btn-primary {
    display: none !important;
  }
}
@media (min-width: 1000px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  header nav, header .btn-primary {
    display: flex !important;
  }
}

/* ===== SECTIONS & FLEX PATTERNS ===== */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 12px;
  margin-bottom: 32px;
  justify-content: flex-start;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #ECECEC;
  border-radius: 20px;
  padding: 26px 24px 22px 24px;
  flex: 1 1 260px;
  min-width: 210px;
  max-width: 310px;
  box-shadow: 0 2px 16px rgba(33,84,39,0.07);
  margin-bottom: 20px;
  transition: box-shadow 0.2s, transform 0.18s;
  border: 3.5px solid transparent;
}
.feature-item:hover {
  box-shadow: 0 4px 36px rgba(44,131,80,0.12);
  border-color: #DA8218;
  transform: translateY(-2px) scale(1.02);
}
.feature-item img {
  width: 44px;
  height: 44px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #ECECEC;
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(33,84,39,0.07);
  padding: 32px 26px;
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 320px;
  transition: box-shadow 0.2s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 4px 36px rgba(45,90,39,0.12);
  transform: translateY(-3px) scale(1.025);
}

.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: 20px;
  padding: 20px;
  background: #fff;
  border-left: 10px solid #2D5A27;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(45,90,39,0.09);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 350px;
  color: #222;
}
@media (min-width: 600px) {
  .testimonial-slider {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 26px;
  }
}
@media (max-width:599px) {
  .testimonial-slider {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 22px;
  }
}
.trust-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: center;
  margin-top: 24px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #20557a;
  font-weight: 700;
  font-size: 1rem;
}
.trust-signals img {
  height: 20px;
  margin-right: 7px;
  vertical-align: middle;
}

/* ===== TEAM BIOS ===== */
.team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 22px 0 8px 0;
}
.bio {
  background: #ECECEC;
  border-radius: 14px;
  padding: 22px 20px 18px 20px;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 300px;
  box-shadow: 0 1px 12px rgba(33,84,39,0.07);
  margin-bottom: 20px;
}
.bio h3 {
  margin-bottom: 10px;
  color: #DA8218;
  font-size: 1.15rem;
  font-weight: 900;
}

/* ===== SEARCH FILTER WRAPPER ===== */
.search-filter-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
}
.search-filter-wrapper input[type="text"] {
  flex: 2 0 180px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 2.5px solid #20557a;
  font-size: 1rem;
  margin-bottom: 0;
  outline: none;
  transition: border 0.17s;
}
.search-filter-wrapper input[type="text"]:focus {
  border: 2.5px solid #DA8218;
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.filter-buttons button {
  background: #2D5A27;
  color: #fff;
  border-radius: 9px;
  padding: 10px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  transition: background 0.16s, color 0.16s, transform 0.14s;
}
.filter-buttons button:hover, 
.filter-buttons button:focus {
  background: #DA8218;
  color: #fff;
  transform: scale(1.06);
}

/* ===== CONTACT PAGE ===== */
.contact-info {
  background: #ECECEC;
  border-radius: 12px;
  padding: 18px 18px 14px 18px;
  margin-bottom: 12px;
  color: #20557a;
}
.contact-info span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-weight: 700;
}
.contact-info img {
  width: 20px;
  height: 20px;
  margin-right: 7px;
}
.contact-description {
  margin: 18px 0 10px 0;
}
.cta-section {
  background: #20557a;
  color: #fff;
  border-radius: 16px;
  padding: 20px 18px 14px 18px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cta-section h2 {
  color: #DA8218;
  font-size: 1.4rem;
  margin-bottom: 7px;
}

/* ===== TEXT PAGES (DSGVO, COOKIE, IMPRESSUM) ===== */
.text-section {
  background: #ECECEC;
  border-radius: 12px;
  padding: 26px 22px 22px 22px;
  margin: 22px 0;
}
.text-section h2, .text-section h3 {
  margin-bottom: 14px;
  color: #20557a;
  font-weight: 900;
}
.text-section ul {
  list-style-type: disc;
  padding-left: 24px;
  margin-bottom: 14px;
}
.text-section li {
  margin-bottom: 8px;
  color: #2D5A27;
  font-weight: 600;
  font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
  background: #20557a;
  color: #fff;
  width: 100%;
  padding: 32px 0 24px 0;
  margin-top: 60px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
}
footer nav a {
  color: #fff;
  opacity: 0.86;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-right: 4px;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #DA8218;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: center;
  font-size: 1rem;
}
.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 18px;
  height: 18px;
}
.copyright {
  margin-top: 6px;
  font-size: 0.92rem;
  color: #ECECEC;
  opacity:0.7;
}

/* ===== BUTTONS ===== */
button, .btn-primary, .filter-buttons button {
  transition: background 0.18s, color 0.18s, transform 0.13s, box-shadow 0.19s;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3020;
  width: 100vw;
  background: #ECECEC;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 -2px 28px rgba(33,84,39,0.13);
  padding: 22px 18px 24px 18px;
  gap: 16px;
  font-family: 'Open Sans', Arial, sans-serif;
  animation: cookiebanner-in 0.5s cubic-bezier(.25,1,.35,1);
}
@keyframes cookiebanner-in {
  from { transform: translateY(100%); opacity:0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 15px;
  margin-top: 10px;
}
.cookie-consent-banner button {
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border: none;
}
.cookie-consent-banner .btn-accept {
  background: #2D5A27;
  color: #fff;
}
.cookie-consent-banner .btn-accept:hover {
  background: #20557a;
}
.cookie-consent-banner .btn-reject {
  background: #ECECEC;
  border: 2px solid #da8218;
  color: #DA8218;
}
.cookie-consent-banner .btn-reject:hover {
  background: #DA8218;
  color: #fff;
}
.cookie-consent-banner .btn-settings {
  background: #fff;
  border: 2px solid #2D5A27;
  color: #2D5A27;
}
.cookie-consent-banner .btn-settings:hover {
  background: #2D5A27;
  color: #fff;
}

/* ===== COOKIE PREFERENCE MODAL ===== */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 3205;
  top:0; right:0; left:0; bottom:0;
  background: rgba(33,85,39, 0.19);
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open {
  display: flex;
}
.cookie-modal {
  z-index: 3210;
  background: #fff;
  min-width: 320px;
  max-width: 92vw;
  border-radius: 20px;
  box-shadow: 0 12px 64px rgba(33,84,39,0.22);
  padding: 36px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  animation: cookiemodal-in 0.5s cubic-bezier(.25,1,.35,1);
}
@keyframes cookiemodal-in {
  from { transform: scale(0.93); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  color: #2D5A27;
}
.cookie-modal .categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  background: #ECECEC;
  border-radius: 10px;
}
.cookie-category label {
  font-weight: 700;
  font-size: 1.04rem;
  color: #20557a;
}
.cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #DA8218;
}
.cookie-category.essential label{
  color: #2D5A27;
}
.cookie-category.essential input[type="checkbox"] {
  accent-color: #2D5A27;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: none;
  font-size: 1.4rem;
  color: #EC480F;
  border: none;
  cursor: pointer;
}
.cookie-modal .btn-accept {
  background: #2D5A27;
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  border: none;
}
.cookie-modal .btn-accept:hover {
  background: #DA8218;
}
.cookie-modal .btn-cancel {
  background: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  color: #20557a;
  border: 2px solid #ECECEC;
  font-weight: 800;
}
.cookie-modal .btn-cancel:hover {
  border: 2px solid #DA8218;
  color: #DA8218;
}

/* ===== RESPONSIVE (MOBILE FIRST) ===== */
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding-left: 7vw;
    padding-right: 7vw;
  }
  .content-wrapper {
    max-width: 96vw;
    padding: 0 0.5vw;
  }
}
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
    gap: 0;
  }
  .section {
    padding: 26px 7px;
    margin-bottom: 38px;
    border-radius: 12px;
  }
  .feature-item {
    min-width: 98vw;
    max-width: 98vw;
    padding: 21px 12px 18px 16px;
    border-radius: 14px;
  }
  .card,.bio {
    min-width: 98vw;
    max-width: 98vw;
    border-radius: 14px;
  }
  .text-image-section, .search-filter-wrapper {
    flex-direction: column;
    gap: 16px;
  }
  header .container {
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    padding-left: 13px;
    padding-right: 13px;
    padding-top: 15px;
    padding-bottom: 12px;
  }
  footer .footer-contact {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.99rem;
  }
}
@media (max-width: 580px) {
  .container,
  .content-wrapper,
  .feature-item,
  .bio, .card {
    min-width: 100vw;
    max-width: 100vw;
    padding-left: 0.5vw;
    padding-right: 0.5vw;
  }
  .section {
    padding: 18px 3px;
    margin-bottom: 22px;
    border-radius: 9px;
  }
  .testimonial-card {
    border-radius: 10px;
    padding: 13px;
  }
}

/* ===== MICRO-INTERACTIONS & EFFECTS ===== */
.btn-primary, .filter-buttons button, .cta-section a, .cookie-consent-banner button {
  transition: background 0.18s, color 0.14s, box-shadow 0.17s, transform 0.13s;
}
.btn-primary:active, .cta-section a:active, .filter-buttons button:active {
  transform: scale(0.95);
  filter: brightness(0.93);
}

/* ===== ACCESSIBILITY FIXES ===== */
.btn-primary:focus-visible, .cookie-consent-banner button:focus-visible, .mobile-menu-close:focus-visible, .filter-buttons button:focus-visible {
  outline: 3px solid #DA8218;
  outline-offset: 2px;
}

/* ===== Misc styling for strong geometric look ===== */
.section, .feature-item, .card, .bio, .testimonial-card, .cookie-modal {
  /* geometric accents: show strong shadow and sharp rounded corners */
  border-radius: 20px;
  box-shadow: 0 2px 16px rgba(45,90,39,0.06);
}

/* ===== Prevent element overlapping by enforcing spacing ===== */
.section > *, .content-wrapper > *, .feature-grid > *, .card-container > *, .testimonial-slider > *, .team-bios > *, .footer-contact > * {
  margin-bottom: 20px;
}
.section > *:last-child,
.content-wrapper > *:last-child,
.feature-grid > *:last-child,
.card-container > *:last-child,
.team-bios > *:last-child,
.footer-contact > *:last-child {
  margin-bottom: 0;
}

/* ===== Hide scroll on mobile menu when open ===== */
body.menu-open {
  overflow: hidden;
}

/* ===== Print Style Minimal ===== */
@media print {
  header, footer, .mobile-menu, .cookie-consent-banner, .cookie-modal-backdrop {
    display: none !important;
  }
}
