/* 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;
  outline: 0;
  vertical-align: baseline;
  box-sizing: border-box;
  background: transparent;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #2a3831; /* deep natural earth tone */
  background: #F5F7FB; /* brand secondary, light background */
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #234E70;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #e27841;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
}
li {
  margin-bottom: 8px;
}

/* BRAND/STYLE VARIABLES (Fallbacks only for CSS variables shown) */
:root {
  --color-primary: #234E70;
  --color-secondary: #F5F7FB;
  --color-accent: #e27841;
  --color-darker-brown: #2a3831;
  --color-earth: #EDE6D6;
  --color-green: #4C7960;
  --color-leaf: #8BB174;
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow-card: 0 2px 16px 0 rgba(62,72,61,0.08);
  --shadow-elevation: 0 3px 32px 0 rgba(62,72,61,0.17);
}

/* TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;500;700&display=swap');
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  color: #234E70;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.25rem;
  margin-bottom: 24px;
  line-height: 1.14;
}
h2 {
  font-size: 1.625rem;
  margin-bottom: 18px;
  line-height: 1.2;
}
h3 {
  font-size: 1.14rem;
  margin-bottom: 12px;
  font-weight: 700;
  color: #4C7960;
}
h4, h5, h6 {
  font-size: 1rem;
}
p, li, .text-section {
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: #2a3831;
  margin-bottom: 14px;
}
strong, b {
  color: #234E70;
  font-weight: 700;
}
em, i {
  color: #8BB174;
}

/* CONTAINER & LAYOUTS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}
@media (max-width: 900px) {
  .section {
    padding: 32px 10px;
  }
}
@media (max-width: 600px) {
  .section {
    padding: 24px 5px;
    margin-bottom: 36px;
  }
}

/* HERO BANNERS */
.hero {
  background: #EDE6D6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  min-height: 310px;
}
.hero .container {
  min-height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
  max-width: 620px;
}
.hero h1 {
  color: #234E70;
  font-size: 2.4rem;
}
.hero p {
  font-size: 1.18rem;
  color: #4C7960;
}

/* FLEX UTILS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  padding: 28px 22px;
  transition: box-shadow 0.25s;
  min-width: 260px;
  position: relative;
}
.card:hover {
  box-shadow: 0 4px 24px 0 rgba(76,121,96,0.14);
  z-index: 2;
}
.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;
    align-items: flex-start;
    gap: 20px;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #EDE6D6;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px 0 rgba(76,121,96,0.10);
  margin-bottom: 20px;
  flex-direction: column;
  transition: background 0.23s, box-shadow 0.23s;
}
.testimonial-card:hover {
  background: #F5F7FB;
  box-shadow: 0 2px 22px 0 rgba(76,121,96,0.16);
}
.testimonial-card p {
  color: #234E70;
  margin-bottom: 8px;
  font-size: 1.08rem;
  font-style: italic;
}
.testimonial-card span {
  color: #4C7960;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius-md);
}

/* USP/ICON LOGOS (about) */
.usp-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  margin-top: 16px;
}
.usp-logos img {
  width: 52px;
  height: 52px;
  background: #EDE6D6;
  border-radius: var(--radius-md);
  padding: 8px;
}

/* CASE STUDIES (referenzen) */
.case-study {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 26px 18px;
  margin-bottom: 24px;
  border-left: 8px solid #8BB174;
}
.case-study h3 {
  margin-bottom: 10px;
  color: #4C7960;
}

/* ACCORDION/FAQ */
.accordion { margin-bottom: 30px; }
.accordion h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #234E70;
  cursor: pointer;
  margin-bottom: 6px;
  background: #EDE6D6;
  padding: 12px 18px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: background 0.2s;
}
.accordion h3:hover,
.faq-list h3:hover {
  background: #8BB174;
  color: #fff;
}
.accordion .text-section,
.faq-list .text-section {
  background: #fff;
  padding: 16px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: 0 1px 6px 0 rgba(76,121,96,0.07);
  font-size: 1rem;
  color: #2a3831;
  margin-bottom: 16px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4C7960; /* deep green accent */
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-md);
  margin: 12px 0;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.3s, transform 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover, .btn-primary:focus {
  background: #8BB174;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 22px 0 rgba(76,121,96,0.19);
}

/* HEADER/NAVIGATION */
header {
  width: 100%;
  background: #ffffff;
  box-shadow: 0 3px 18px 0 rgba(35,78,112,0.08);
  padding: 0;
  position: relative;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
}
.logo img {
  display: block;
  max-height: 54px;
}
nav.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
}
.main-nav a {
  font-family: 'Roboto', Arial, sans-serif;
  color: #234E70;
  font-size: 1rem;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #EDE6D6;
  color: #8BB174;
}
.mobile-menu-toggle {
  display: none;
  background: #EDE6D6;
  color: #234E70;
  font-size: 2rem;
  border: none;
  border-radius: var(--radius-md);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-left: 12px;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.24s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #4C7960;
  color: #fff;
}
/* MOBILE NAV */
@media (max-width:1000px) {
  nav.main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(45,58,45, 0.93);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.44s cubic-bezier(.54,.21,.5,.88), opacity 0.23s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.5rem;
  border: none;
  padding: 22px 32px 8px 0;
  cursor: pointer;
  margin-bottom: 16px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 94vw;
  background: #fff;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  padding: 48px 32px 32px 24px;
  min-height: calc(100vh - 20px);
  box-shadow: 0 2px 22px rgba(35,78,112,0.14);
  align-items: flex-start;
  margin-top: 0;
}
.mobile-nav a {
  color: #234E70;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.22rem;
  padding: 16px 0;
  width: 100%;
  border-radius: var(--radius-md);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8BB174;
  color: #fff;
}
@media (max-width: 600px) {
  .mobile-nav {
    padding: 44px 10px 24px 10px;
    width: 100vw;
    border-radius: 0;
  }
}

/* FOOTER */
footer {
  background: #234E70;
  color: #fff;
  margin-top: 80px;
  padding: 64px 0 28px 0;
  position: relative;
}
footer .container {
  flex-direction: column;
  gap: 34px;
}
.footer-logo {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 10px;
}
.footer-logo img {
  max-height: 54px;
  width: auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  justify-content: flex-start;
  align-items: flex-start;
}
.footer-links div h3 {
  color: #8BB174;
  font-weight: 700;
  margin-bottom: 10px;
}
.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links ul li {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 6px;
}
.footer-links a {
  color: #fff;
  font-weight: 400;
  transition: color 0.18s;
}
.footer-links a:hover, .footer-links a:focus {
  color: #e27841;
}
.footer-copy {
  margin-top: 24px;
  font-size: 0.98rem;
  text-align: left;
  color: #EDE6D6;
}
@media (max-width: 800px) {
  .footer-links {
    flex-direction: column;
    gap: 18px;
  }
  footer .container { gap: 20px; }
  .footer-logo { margin-bottom: 4px; }
}


/* NATURAL ORGANIC VISUALS */
.section, .card, .testimonial-card, .case-study, .feature-item {
  border-radius: 28px 100px 50px 12px/30px 60px 40px 18px;
  /* freeform border radius for organic feel */
}
.card, .testimonial-card, .case-study {
  box-shadow: 0 3px 22px 0 rgba(139,177,116,0.13), var(--shadow-card);
}

/* ORGANIC DECORATIVE ELEMENTS */
.section:before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 160px;
  height: 160px;
  background: #EDE6D6;
  border-radius: 60% 40% 30% 80%;
  z-index: 0;
  opacity: 0.19;
  pointer-events: none;
}
.section:after {
  content: "";
  position: absolute;
  left: -42px;
  bottom: -60px;
  width: 110px;
  height: 70px;
  background: #8BB174;
  border-radius: 80% 30% 50% 70%;
  z-index: 0;
  opacity: 0.11;
  pointer-events: none;
}
.section > *, .card > *, .testimonial-card > *, .case-study > * {
  position: relative;
  z-index: 2;
}


/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #EDE6D6;
  color: #234E70;
  box-shadow: 0 -2px 24px rgba(35,78,112,0.12);
  z-index: 1200;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 22px;
  padding: 24px 18px;
  font-size: 1rem;
  transition: transform 0.31s;
}
.cookie-banner.hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-shade {
  background: rgba(35,78,112,0.29);
  position: fixed;
  left:0;top:0;right:0;bottom:0;
  z-index: 1199;
}
.cookie-banner .cookie-text {
  flex: 1 1 auto;
  min-width: 180px;
  font-size: 0.98rem;
}
.cookie-banner .cookie-actions {
  display: flex; flex-direction: row;
  gap: 13px;
}
.cookie-banner button, .cookie-banner .btn-cookie {
  background: #4C7960;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  border: none;
  padding: 9px 22px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 10px 0 rgba(76,121,96,0.04);
  margin-right: 0;
  transition: background 0.18s, color 0.14s;
  cursor: pointer;
}
.cookie-banner .btn-cookie-reject {
  background: #EDE6D6;
  color: #234E70;
  border: 1.5px solid #4C7960;
}
.cookie-banner .btn-cookie-reject:hover {
  background: #fff;
  color: #4C7960;
}
.cookie-banner .btn-cookie-settings {
  background: #8BB174;
}
.cookie-banner .btn-cookie-settings:hover {
  background: #4C7960;
}
.cookie-banner button:hover, .cookie-banner .btn-cookie:hover {
  background: #8BB174;
  color: #fff;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(45,58,45,0.44);
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  transition: opacity 0.22s;
}
.cookie-modal.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 48px rgba(35,78,112,0.14);
  max-width: 440px;
  padding: 36px 32px 30px 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: cookiePopIn 0.37s cubic-bezier(0.4,1.2,0.7,1) 1;
}
@keyframes cookiePopIn {
  0% { transform: translateY(48px) scale(.85); opacity: 0; }
  80% { transform: scale(1.02); opacity: 1; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal-content h2 {
  font-size: 1.28rem;
  color: #4C7960;
  font-weight: 800;
}
.cookie-modal-content label {
  font-size: 1.06rem;
  color: #234E70;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
}
.cookie-modal-content input[type="checkbox"] {
  accent-color: #8BB174;
  width: 20px; height: 20px;
}
.cookie-modal-actions {
  display: flex; flex-direction: row; gap: 15px; margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal-close {
  background: none;
  color: #8BB174;
  border: none;
  font-size: 2rem;
  position: absolute;
  top: 12px; right: 20px;
  cursor: pointer;
}
.cookie-modal-close:hover { color: #e27841; }

/* Responsive Layouts */
@media (max-width: 800px) {
  body, html {
    font-size: 15px;
  }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.18rem; }
}
@media (max-width: 750px) {
  .footer-links { gap: 12px; }
  .footer-logo { margin-bottom: 10px; }
}
@media (max-width: 600px) {
  body, html {
    font-size: 14px;
  }
  .container { padding: 0 6px; }
  .section { padding: 11px 0; }
  .content-wrapper { gap: 18px; }
}

/* Accessibility & Focus States */
a, button, .btn-primary, .mobile-menu-toggle, .mobile-menu-close, .cookie-banner button, .cookie-modal-close {
  outline: none;
}
a:focus, button:focus, .btn-primary:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus, .cookie-modal-close:focus {
  box-shadow: 0 0 0 2px #8BB174;
}

/* Miscellaneous: Tables & Legal */
.legal-text {
  font-size: 1rem;
  color: #2a3831;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 1px 10px 0 rgba(139,177,116,0.09);
  padding: 20px 18px;
}

/* Utility styles */
.hr {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid #EDE6D6;
  margin: 24px 0;
}

/* ORGANIC SHAPE SHADOWS */
.card, .testimonial-card, .case-study {
  transition: box-shadow 0.2s;
}
.card:hover, .testimonial-card:hover, .case-study:hover {
  box-shadow: 0 8px 24px 0 rgba(76,121,96,0.22) !important;
  z-index: 9;
}

/* CARD SPACING & RESPONSIVENESS */
.card-container, .content-grid {
  margin-bottom: 20px;
}
.card-container .card, .content-grid .card {
  min-width: 250px;
  max-width: 420px;
  flex: 1 1 260px;
}
@media (max-width: 1050px) {
  .card-container, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* FORM & CTA (kontakt, thank you, etc.) */
input, textarea, select {
  border-radius: var(--radius-md);
  border: 1px solid #EDE6D6;
  padding: 12px 16px;
  font-size: 1rem;
  margin-bottom: 18px;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: #4C7960;
  outline: none;
}

/* Lists organic */
ul {
  list-style-type: disc;
  color: #8BB174;
}
ul li {
  color: #2a3831;
  margin-bottom: 6px;
}
ol {
  list-style-type: decimal;
  color: #4C7960;
  margin-bottom: 8px;
}

/* Hide irrelevant overflow */
body::-webkit-scrollbar {
  background: #F5F7FB;
  width: 12px;
}
body::-webkit-scrollbar-thumb {
  background: #EDE6D6;
  border-radius: 6px;
}

/* Animation for mobile menu slide in */
.mobile-menu {
  will-change: transform, opacity;
}

/* Hide empty sections */
section:empty, .content-wrapper:empty {
  display: none;
}

/* END */
