/* RESET & BASE STYLES */
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 { scroll-behavior: smooth; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: #f9f7f3;
  color: #25435f;
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img { max-width: 100%; height: auto; display: inline-block; border: 0; }
a { color: #25435f; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #9fd17c; }
ul, ol { margin-left: 24px; }
strong { font-weight: 700; color: #25435f; }
::-webkit-input-placeholder { color: #7d9073; }
::-moz-placeholder { color: #7d9073; }
:-ms-input-placeholder { color: #7d9073; }
::placeholder { color: #7d9073; }

/* BRAND FONTS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #25435f;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }

/* SPACING STANDARDS */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

/* FLEXBOX UTILITY */
.feature-grid, .service-list, .project-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 18px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(59, 84, 65,0.07);
  padding: 26px 22px 24px 22px;
  min-width: 245px;
  flex: 1 1 280px;
  margin-bottom: 20px;
  transition: box-shadow 0.28s, transform 0.24s;
  border: 1.5px solid #e5e3db;
  position: relative;
}
.feature:hover, .feature:focus-within {
  box-shadow: 0 4px 22px 0 rgba(78, 102, 60, 0.16);
  transform: translateY(-2px) scale(1.02);
  border-color: #9fd17c;
}
.service-list {
  flex-direction: column;
  gap: 24px;
}
.service-list .feature {
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
  width: 100%;
  margin-bottom: 20px;
  padding: 24px 18px 22px 18px;
}
.service-list .feature img {
  width: 56px;
  height: 56px;
}
.service-list .text-section { gap: 7px; margin-bottom: 0; }

.project-list {
  flex-direction: column;
  gap: 22px;
  margin-bottom: 12px;
}
.project-list .text-section {
  background: #fff;
  border-radius: 16px 8px 22px 16px;
  padding: 18px 18px 14px 18px;
  box-shadow: 0 2px 9px 0 rgba(130,150,120,0.08);
}

/* BUTTONS */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 34px;
  border-radius: 32px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  transition: background 0.22s, color 0.18s, transform 0.12s;
  outline: none;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: 0 2px 8px 0 rgba(59, 84, 65, 0.06);
}
.btn-primary {
  background: #25435f;
  color: #fff;
  border-color: #25435f;
}
.btn-primary:hover, .btn-primary:focus {
  background: #345e43;
  color: #f9f7f3;
  border-color: #345e43;
  transform: translateY(-2px) scale(1.03);
}
.btn-secondary {
  background: #9fd17c;
  color: #25435f;
  border-color: #9fd17c;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #25435f;
  color: #fff;
  border-color: #25435f;
  transform: translateY(-2px) scale(1.03);
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 14px 0 rgba(59,66,45,0.09);
  position: sticky;
  top: 0; left: 0;
  width: 100%;
  z-index: 1002;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 12px;
  padding-bottom: 12px;
}
header img { height: 46px; border-radius: 8px; }
.main-nav {
  display: flex;
  gap: 21px;
  align-items: center;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
}
.main-nav a {
  position: relative;
  padding: 7px 4px;
  color: #25435f;
  border-radius: 6px;
  transition: color 0.18s, background 0.18s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #e2efde;
  color: #25435f;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #25435f;
  cursor: pointer;
  border-radius: 10px;
  padding: 2px 13px;
  transition: background 0.12s;
  z-index: 1400;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #dbeed1;
  color: #345e43;
}
.btn-primary {
  margin-left: 24px;
}

/* MOBILE NAVIGATION */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(38, 67, 95, 0.94);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.85,0.01,0.25,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  z-index: 1400;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0%);
  visibility: visible;
  pointer-events: all;
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #f9f7f3;
  padding: 8px 22px;
  margin-top: 18px;
  margin-right: 12px;
  cursor: pointer;
  border-radius: 10px;
  transition: background 0.12s;
  z-index: 1450;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #9fd17c;
  color: #25435f;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: flex-end;
  margin-top: 56px;
  margin-right: 37px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #f9f7f3;
  padding: 13px 20px;
  border-radius: 10px;
  text-align: right;
  transition: background 0.16s, color 0.15s;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #25435f;
  background: #e2efde;
}

@media (max-width: 1080px) {
  .container { max-width: 96vw; padding: 0 8vw; }
}
@media (max-width: 900px) {
  .main-nav { gap: 14px; font-size: 0.97rem; }
  .btn-primary { margin-left: 10px; }
  header img { height: 39px; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .btn-primary { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* MAIN LAYOUT & CONTENT */
main {
  width: 100%;
  margin-top: 0;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px 0 rgba(100,130,84,0.08);
  padding: 24px 18px;
  min-width: 250px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 22px;
  background: #f8fcf5;
  border-radius: 18px;
  box-shadow: 0 2px 12px 0 rgba(90,120,75,0.11);
  border: 1px solid #e2efde;
  max-width: 750px;
}
.testimonial-card .testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.testimonial-card p {
  color: #3b5829;
  font-size: 1.02rem;
}
.testimonial-meta {
  color: #537947;
  font-weight: 600;
  font-size: 0.99rem;
}
.stars-rating {
  letter-spacing: 0.1em;
  color: #9fd17c;
  font-size: 1.34rem;
}

/* List Styling */
ul li, ol li {
  margin-bottom: 8px;
  padding-left: 0px;
  font-size: 1rem;
  color: #426137;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}
ul li img { height: 22px; margin-right: 4px; }
ul li:last-child { margin-bottom: 0; }

/* Footer Styles */
footer {
  background: #25435f;
  color: #f9f7f3;
  padding: 34px 0 28px 0;
  margin-top: 45px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-branding {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  min-width: 220px;
}
.footer-branding img {
  height: 48px;
  margin-bottom: 4px;
  background: #9fd17c;
  border-radius: 10px;
  padding: 5px 7px;
}
.footer-branding span {
  font-size: 1.04rem;
  color: #e5efde;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}
.footer-nav,.footer-legal{
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
}
.footer-nav a,.footer-legal a {
  color: #e2efde;
  font-size: 1.02rem;
  opacity: 0.96;
  padding: 3px 0;
  border-radius: 4px;
  transition: color 0.17s, background 0.17s;
}
.footer-nav a:hover,.footer-legal a:hover,
.footer-nav a:focus,.footer-legal a:focus {
  color: #25435f;
  background: #9fd17c;
  opacity: 1;
}
.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #e2efde;
  transition: background 0.16s;
}
.footer-social a:hover img, .footer-social a:focus img {
  background: #9fd17c;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 2000;
  background: #25435f;
  color: #f9f7f3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 20px 16px;
  box-shadow: 0 -10px 40px 0 rgba(71,113,86,0.17);
  gap: 28px;
  font-size: 1.01rem;
  animation: cookiebanner-slidein 0.80s cubic-bezier(0.6,0.04,0.19,1) 0s 1;
  border-radius: 18px 18px 0 0;
}
@keyframes cookiebanner-slidein {
  from { transform: translateY(120%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner-text {
  flex: 1 1 auto;
  color: #e2efde;
  margin-right: 16px;
}
.cookie-banner-actions {
  display: flex;
  gap: 14px;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary {
  font-size: 0.97rem;
  padding: 9px 23px;
  min-width: 105px;
}
.cookie-banner .btn-secondary {
  background: #f9f7f3;
  color: #25435f;
  border-color: #e2efde;
  font-weight: 600;
}
.cookie-banner .btn-secondary:hover,
.cookie-banner .btn-secondary:focus {
  background: #9fd17c;
  color: #25435f;
  border-color: #9fd17c;
}
.cookie-banner .btn-settings {
  background: #ece9de;
  color: #527047;
  border: 1px solid #e2efde;
  border-radius: 24px;
  font-weight: 600;
  font-size: 0.93rem;
  padding: 7.5px 19px;
  transition: background 0.16s, color 0.14s;
}
.cookie-banner .btn-settings:hover,
.cookie-banner .btn-settings:focus {
  background: #9fd17c;
  color: #25435f;
}

/* COOKIE PREFERENCES MODAL */
.cookie-modal {
  position: fixed;
  top:0; left:0; right:0; bottom:0;
  background: rgba(61, 82, 71, 0.74);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal.open {
  visibility: visible;
  opacity: 1;
}
.cookie-modal-dialog {
  background: #f9f7f3;
  border-radius: 26px;
  box-shadow: 0 7px 48px 0 rgba(80,100,77,0.22);
  padding: 33px 34px 30px 34px;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: flex-start;
  position: relative;
  animation: cookiemodal-in 0.44s cubic-bezier(0.7,0.08,0.23,1) 0s 1;
}
@keyframes cookiemodal-in {
  from { transform: translateY(70px) scale(0.95); opacity: 0.4; }
  to   { transform: translateY(0)   scale(1);    opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.8rem;
  color: #2f5445;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #25435f;
}
.cookie-modal-title {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  color: #25435f;
  font-size: 1.22rem;
}
.cookie-modal-list { width: 100%; margin-bottom: 4px; }
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8.5px 0 8.5px 0;
}
.cookie-category span {
  font-weight: 600;
  color: #345e43;
  font-size: 1.08rem;
}
.cookie-category .category-toggle {
  margin-left: 22px;
}
.category-toggle input[type="checkbox"] {
  accent-color: #9fd17c;
  width: 19px; height: 19px;
  outline: 1.5px solid #9fd17c;
  outline-offset: 1.5px;
  border-radius: 9px;
}
.cookie-category.disabled label,
.cookie-category.disabled span { color: #b1bdb3; }
.cookie-modal-actions {
  margin-top: 14px;
  display: flex;
  gap: 13px;
  width: 100%;
}
.cookie-modal .btn-primary,
.cookie-modal .btn-secondary {
  font-size: 0.99rem;
  padding: 8px 20px;
}

/* ORGANIC DECORATIVE SHAPES */
.organic-shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
  /* Use inline SVG for real design. For now, emulated as a blob shape. */
  width: 130px; height: 88px;
  border-radius: 70px 60px 90px 65px/80px 70px 65px 60px;
  background: #9fd17c;
  filter: blur(3px);
  left: 50%;
  top: -44px;
  transform: translateX(-50%) rotate(-15deg);
}

/* ORGANIC SHAPES ON CARDS */
.card .organic-shape, .feature .organic-shape {
  width: 94px;
  height: 56px;
  left: unset;
  right: 12px;
  top: -18px;
  transform: rotate(18deg);
  opacity: 0.11;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .container { padding: 0 8px; }
  .section, section {
    padding: 28px 6px;
    margin-bottom: 32px;
  }
  .content-wrapper { gap: 11px; }
  .feature-grid,.card-container {
    flex-direction: column;
    gap: 20px;
  }
  .service-list {
    gap: 18px;
  }
  .project-list {
    gap: 12px;
  }
  .feature, .service-list .feature {
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
    padding: 18px 10px 15px 10px;
  }
  .feature img { width: 44px; height: 44px; }
  .btn-primary, .btn-secondary {
    padding: 11px 17vw;
    font-size: 1rem;
  }
  .testimonial-card {
    padding: 15px;
    font-size: 0.98rem;
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 580px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    font-size: 0.96rem;
  }
  .cookie-banner-actions{ flex-direction: column; gap: 8px; }
  .footer-branding img { height: 34px; }
  footer .container { flex-direction: column; gap: 20px; }
  .footer-branding { min-width: 0; }
  .main-nav, .btn-primary { display: none !important; }
}
@media (max-width: 400px) {
  .btn-primary, .btn-secondary { padding: 8px 7vw; font-size: 0.99rem; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.1rem; }
}

/* ORGANIC/NATURAL VISUALS */
.feature, .card, .testimonial-card, .project-list .text-section {
  background: #fff;
  border-radius: 20px 38px 18px 25px/22px 24px 20px 40px;
}
.feature img, .card img {
  border-radius: 12px 30px 22px 12px;
  background: #e2efde;
  padding: 6px;
}

/* ORGANIC SHAPE SHADOWS */
.feature, .testimonial-card, .project-list .text-section {
  box-shadow: 0 2px 18px 0 rgba(62, 83, 55, 0.09);
}
.feature:after {
  content: '';
  position: absolute;
  top: -15px; right: 16px;
  width: 38px; height: 21px;
  background: #9fd17c;
  border-radius: 38px 21px 16px 16px;
  opacity: 0.12;
  z-index: 0;
}

/* FORM ELEMENTS BASE (for Kontakt page if applicable later) */
input, textarea, select, button {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 8px;
  outline: none;
}
input, textarea, select {
  border: 1.5px solid #e2efde;
  background: #f9f7f3;
  padding: 11px 13px;
  margin-bottom: 17px;
  transition: border 0.19s;
}
input:focus, textarea:focus, select:focus {
  border-color: #9fd17c;
}

/* MICRO-INTERACTIONS */
button:active, .btn-primary:active, .btn-secondary:active {
  transform: scale(0.98);
}

/* SELECTION */
::selection{ background: #9fd17c; color: #25435f; }

/* SCROLLBAR for desktop */
@media (hover: hover) {
  ::-webkit-scrollbar {
    width: 10px;
    background: #e2efde;
  }
  ::-webkit-scrollbar-thumb {
    background: #9fd17c;
    border-radius: 8px;
  }
}

/* COLOR ACCESSIBILITY TESTIMONIALS / REVIEWS */
.testimonial-card, .project-list .text-section {
  color: #25435f;
  background: #f8fcf5;
  border: 1px solid #e2efde;
}

/* VISUAL HIERARCHY */
.text-section strong, .project-list .text-section strong {
  color: #25435f;
  font-size: 1.09rem;
  font-weight: bold;
}

/* Accessibility Focus State */
a:focus, .btn-primary:focus, .btn-secondary:focus {
  outline: 2px solid #9fd17c;
  outline-offset: 2px;
}

/* ORGANIC/NATURE PAGE ELEMENT BACKGROUNDS */
body {
  background: #f9f7f3 url('../assets/patterns/leaf-bg.svg') repeat top left;
  background-size: 420px 420px;
}
@media (max-width: 640px) {
  body { background-size: 200px 200px; }
}

/* Hide visually but keep accessible  */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(1px,1px,1px,1px) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
