/* 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,menu,nav,output,ruby,section,summary,time,mark,audio,video{
  margin:0; padding:0; border:0; font-size:100%; font:inherit; vertical-align:baseline;
}
article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section{
  display:block;
}
body{
  line-height:1; min-height:100vh; background:#F5F9F1;
}
ol,ul{
  list-style:none;
}
a{
  background:transparent; text-decoration:none; color:inherit; transition:color 0.2s;
}
img{
  border:0; max-width:100%; display:block;
}
*,*:before,*:after{
  box-sizing:border-box;
}

/* BRAND COLORS AND VARIABLES */
:root{
  --primary:#275A2E;
  --secondary:#87A96B;
  --accent:#F5F9F1;
  --vibrant1:#F63B1D;
  --vibrant2:#FFD600;
  --vibrant3:#32C6D1;
  --dark:#222;
  --white:#fff;
  --shadow:0 3px 12px rgba(39,90,46,0.18);
  --radius:18px;
}

body {
  color:var(--dark);
  font-family:'Open Sans',Arial,sans-serif;
  font-size:16px;
  background:var(--accent);
}

h1,h2,h3,h4,h5 {
  font-family:'Merriweather',serif;
  font-weight:800;
  letter-spacing:-1px;
  color:var(--primary);
  margin-bottom:14px;
  line-height:1.1;
}
h1 { font-size:2.25rem; }
h2 { font-size:1.65rem; }
h3 { font-size:1.15rem; }

@media (min-width:768px){
  h1{ font-size:2.75rem; }
  h2{ font-size:2rem; }
  h3{ font-size:1.25rem; }
}

.subheadline {
  font-size:1.15rem;
  color:var(--vibrant1);
  font-weight:700;
  margin-bottom:24px;
  font-family:'Open Sans',Arial,sans-serif;
}

strong { color:var(--secondary); font-weight:700; }
 em   { color:var(--vibrant3); }

p,li,a,span {
  font-family:'Open Sans',Arial,sans-serif;
  line-height:1.6;
  color:var(--dark);
}

/* SPACING & CONTAINERS */
.container{
  max-width:1180px;
  margin:0 auto;
  padding:0 16px;
  width:100%;
}
.section{
  margin-bottom:60px;
  padding:40px 20px;
}
@media (max-width:768px){
  .section{
    padding:32px 8px;
    margin-bottom:38px;
  }
}
.content-wrapper{
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:24px;
  align-items:flex-start;
}

/* FLEXBOX LAYOUTS */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px 20px;
  margin-bottom:20px;
  position:relative;
  min-width:250px;
  flex:1;
  transition:box-shadow .2s,transform .2s;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.card:hover {
  box-shadow:0 6px 20px rgba(246,59,29,0.10),0 1.5px 15px rgba(39,90,46,.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;
}
@media (max-width:768px){
  .text-image-section{ flex-direction:column; gap:18px; align-items:flex-start; }
}
.testimonial-card {
  display:flex; align-items:center; gap:20px; padding:20px;
  background:var(--accent);
  border-left:6px solid var(--vibrant1);
  border-radius:var(--radius);
  box-shadow:0 1.5px 8px rgba(39,90,46,0.07);
  margin-bottom:20px;
  color:var(--primary);
  min-width:240px;
  transition:box-shadow .17s, transform .15s;
}
.testimonial-card:hover {
  box-shadow:0 4px 22px rgba(39,90,46,0.17);
  transform:scale(1.02);
}
.testimonial-card p {
  color:#222;
  font-size:1.08rem;
  margin-bottom:6px;
}
.testimonial-card span{
  color:var(--vibrant2);
  font-weight:600;
  font-size:.96em;
}
.feature-item{
  display:flex; flex-direction:column; align-items:flex-start; gap:15px;
}

/* FEATURE GRID (Index Page) */
.feature-grid{
  display:flex;
  flex-wrap:wrap;
  gap:28px;
  margin-top:14px;
  margin-bottom:10px;
}
.feature-grid > div{
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:28px 18px 20px 18px;
  flex:1 1 230px;
  min-width:220px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:18px;
  border-left:5px solid var(--vibrant3);
  transition:box-shadow .19s, border-color .22s;
  position:relative;
}
.feature-grid > div:hover{
  border-left-color:var(--vibrant1);
  box-shadow:0 5px 18px rgba(39,90,46,0.12);
}
.feature-grid img {
  width:48px; height:48px; margin-bottom:2px;
}

/* TEAM GRID (About Page) */
.team-grid{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  margin:8px 0 18px 0;
}
.team-grid > div{
  background:var(--accent);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px 16px 16px 16px;
  flex:1 1 210px;
  min-width:200px;
  gap:8px;
  border-left:3.5px solid var(--secondary);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

/* PROJECTS (Projekte Page) */
.project-list{
  display:flex;
  flex-wrap:wrap;
  gap:24px;
  margin-bottom:16px;
}
.project-list > div {
  background:var(--white);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:22px 15px 17px 18px;
  flex:1 1 250px; min-width:220px;
  position:relative;
  transition:box-shadow .21s;
  border-left:5px solid var(--vibrant2);
  display:flex;
  flex-direction:column;
  gap:16px;
}
.project-list > div:hover{
  box-shadow:0 5px 17px rgba(39,90,46,0.15);
  border-left-color:var(--vibrant3);
}

/* NEWSLETTER SIGNUP */
.newsletter-signup {
  background:var(--vibrant3);
  color:var(--white);
  border-radius:var(--radius);
  padding:18px 18px 8px 18px;
  margin-top:12px;
  font-size:.98em;
  width:100%;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.newsletter-signup em {
  color:var(--white);
}

.newsletter-prompt {
  padding:12px 16px;
  background:var(--vibrant2);
  border-radius:var(--radius);
  color:var(--primary);
  font-weight:bold;
  margin-top:10px;
}
.newsletter-prompt a{
  color:var(--primary);
  text-decoration:underline;
  font-weight:700;
}

/* HEADER/NAVIGATION */
header{
  width:100%;
  background:var(--primary);
  color:var(--white);
  box-shadow:0 2px 10px rgba(39,90,46,.10);
  position:sticky; top:0; z-index:101;
}
header .container{
  display:flex; align-items:center; justify-content:space-between; gap:24px; height:76px;
}
header img{
  max-height:47px;
  width:auto;
}
nav {
  display:flex; align-items:center; gap:18px;
}
nav a {
  color:var(--white);
  font-family:'Open Sans',Arial,sans-serif;
  padding:7px 14px;
  border-radius:9999px;
  font-weight:700;
  font-size:1rem;
  opacity:.92;
  transition:background .19s, color .19s,box-shadow .19s;
}
nav a:hover,
nav a:focus {
  background:var(--vibrant2);
  color:var(--primary);
  box-shadow:0 2px 12px rgba(255,214,0,0.09);
  outline:none;
}
nav a.cta {
  background:var(--vibrant1);
  color:var(--white);
  padding:10px 24px;
  font-size:1.12rem;
  letter-spacing:0.02em;
  box-shadow:0 1.5px 9px rgba(246,59,29,0.07);
  transition:background .18s, box-shadow .19s, transform .2s;
}
nav a.cta:hover,
nav a.cta:focus {
  background:var(--vibrant2);
  color:var(--primary);
  transform:translateY(-2px) scale(1.045);
  box-shadow:0 5px 18px rgba(246,59,29,0.17);
}

.mobile-menu-toggle{
  background:none; border:none; color:var(--vibrant2); font-size:2.1rem;
  display:inline-block; cursor:pointer; z-index:1002;
  padding:3px 11px; border-radius:8px; margin-left:9px;
  transition:background .15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background:rgba(39,90,46,0.15);
}

/* Hide main nav on mobile, show burger */
@media (max-width:990px) {
  nav { display:none; }
  .mobile-menu-toggle { display:inline-block; }
}
@media (min-width:991px) {
  .mobile-menu-toggle { display:none; }
  .mobile-menu { display:none!important; }
  nav { display:flex!important; }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position:fixed;
  left:0; top:0; right:0; bottom:0;
  background:var(--primary);
  color:var(--white);
  z-index:2000;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  padding:38px 24px 0 24px;
  width:100vw; height:100vh;
  transform:translateX(-100vw);
  transition:transform .33s cubic-bezier(.58, 1.45, .17, 1);
  box-shadow: 0 5px 30px rgba(0,0,0,0.10);
}
.mobile-menu.open {
  transform:translateX(0);
}
.mobile-menu-close {
  background:none; border:none; color:var(--vibrant2); font-size:2.4rem;
  align-self:flex-end;
  cursor:pointer;
  margin-bottom:30px;
  margin-top:10px;
  padding:3px 16px;
  border-radius:9px;
  transition:background .15s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus{
  background:rgba(255,214,0,0.14);
}
.mobile-nav{
  display:flex;
  flex-direction:column;
  gap:26px;
  width:100%;
  margin-top:22px;
  align-items:flex-start;
}
.mobile-nav a{
  color:var(--vibrant2);
  font-size:1.35rem;
  font-weight:800;
  letter-spacing:.01em;
  padding:8px 0;
  border-bottom:1.5px solid rgba(255,255,255,.09);
  width:100%;
  display:block;
  border-radius:0;
  transition:color .17s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  color:var(--vibrant1);
  background:none;
}

/* FOOTER */
footer {
  background:var(--primary);
  color:var(--white);
  padding:0;
  font-size:.98em;
}
footer .container {
  display:flex; flex-direction:column; gap:0;
  padding:0;
}
footer .content-wrapper {
  padding:36px 16px 20px 16px;
  max-width:1160px;
  width:100%;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:18px;
  align-items:flex-start;
}
footer nav {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}
footer nav a{
  color:var(--vibrant2);
  background:none;
  font-weight:700;
  font-size:1em;
  padding:6px 13px;
  border-radius:9999px;
  transition:background .16s, color .12s;
}
footer nav a:hover{
  background:var(--white);
  color:var(--primary);
}
.footer-contact{
  display:flex;
  flex-wrap:wrap;
  gap:18px;
  margin:12px 0 8px 0;
  color:var(--accent);
}
.footer-contact p{
  display:flex; align-items:center; gap:6px;
  font-size:0.96em;
  color:var(--accent);
}
.footer-contact img{
  width:18px; height:18px;
}
.social-media{
  display:flex; gap:14px;
  margin:10px 0 0 0;
}
.social-media a img{
  width:29px; height:auto;
  filter:contrast(1.3) brightness(1.2);
  opacity:0.81; transition:opacity .16s, transform .16s;
}
.social-media a:hover img{
  opacity:1; transform:scale(1.11);
}
.legal{
  font-size:0.88em;
  opacity:.88;
  color:var(--vibrant2);
  margin-top:8px;
}
@media (min-width:700px){
  footer .content-wrapper{
    flex-direction:row;
    justify-content:space-between;
    align-items:flex-start;
    gap:38px;
  }
  .footer-contact{flex-direction:column; gap:4px; margin-top:0;}
}

/* BUTTONS */
.cta{
  background:var(--vibrant1);
  color:var(--white) !important;
  font-family:'Merriweather',serif;
  font-weight:800;
  font-size:1.08rem;
  padding:11px 36px;
  border-radius:9999px;
  text-transform:uppercase;
  letter-spacing:.03em;
  border:none;
  box-shadow:0 2px 15px rgba(246,59,29,0.09);
  cursor:pointer;
  outline:none;
  transition:background .18s, color .16s, transform .18s, box-shadow .19s;
  display:inline-block;
  margin-top:8px;
}
.cta:hover, .cta:focus{
  background:var(--vibrant2);
  color:var(--primary) !important;
  transform:scale(1.045);
  box-shadow:0 8px 25px rgba(246,59,29,0.16);
}
a.cta {
  display:inline-block;
  text-align:center;
}

button, .btn{
  font-family:'Merriweather',serif;
  font-weight:800;
  border-radius:9999px;
  border:none;
  font-size:1.05em;
  padding:9px 27px;
  cursor:pointer;
  background:var(--secondary);
  color:var(--white);
  box-shadow:0 1.5px 9px rgba(39,90,46,0.09);
  transition:background .15s, color .13s, box-shadow .15s, transform .13s;
}
button:hover, .btn:hover{
  background:var(--vibrant1);
  color:var(--accent);
  transform:translateY(-1px) scale(1.04);
}
button:active, .btn:active { transform:scale(1.0); }

/* LISTS / UL / OL */
ul,ol{
  margin-left:21px; margin-bottom:12px; color:var(--primary);
}
ul li, ol li {
  margin-bottom:9px;
  padding-left:0;
  color:var(--dark);
  font-size:1em;
}
ul li::marker, ol li::marker{
  color:var(--vibrant1); font-weight:bolder;
}

/* LINKS */
a:focus{
  outline:2px solid var(--vibrant2);
}

/* HERO / FIRST SECTION */
main section:first-of-type{
  background:linear-gradient(90deg, var(--vibrant1) 2%, var(--accent) 98%);
  border-radius:0 0 50px 50px;
  box-shadow:0 11px 38px rgba(39,90,46,0.13);
  margin-bottom:44px;
  padding-top:76px;
}
@media (max-width:700px){
  main section:first-of-type{
    border-radius:0 0 24px 24px;
    padding-top:50px;
    margin-bottom:23px;
  }
}
main section:first-of-type .content-wrapper{
  align-items:center;
}
main section:first-of-type h1{
  color:var(--white); text-shadow:1.5px 1.5px 8px rgba(39,90,46,0.10);
}
main section:first-of-type .subheadline{
  color:var(--vibrant2);
}

/* FAQ / RESOURCES */
.topic-categories{
  display:flex; flex-direction:column; gap:10px;
  margin-bottom:14px;
}
.resources-links{
  margin-top:8px;
  font-size:1.01em;
  color:var(--vibrant1);
}
.resources-links a{
  color:var(--vibrant3); font-weight:700; margin-right:12px;
}

/* CONTACT PAGE */
.contact-details{
  display:flex; flex-direction:column; gap:12px; margin:10px 0 16px 0;
}
.contact-details p{
  font-size:1rem;
  display:flex; align-items:center; gap:8px;
  color:var(--primary);
}
.contact-details img{
  width:21px; height:21px;
}

/* MISC UTILITIES */
.mt-0 { margin-top:0 !important; }
.mb-0 { margin-bottom:0 !important; }
.text-center { text-align:center; }

/* GENERAL INTERACTION */
section a{
  color:var(--vibrant1);
  text-decoration:underline;
  font-weight:600;
  transition:color .17s;
}
section a:hover,section a:focus{
  color:var(--vibrant2);
  text-decoration:underline;
}

/* HOVER / FOCUS ANIMATION */
.card, .feature-grid > div, .team-grid > div, .testimonial-card, .project-list > div {
  transition:box-shadow .19s, transform .17s, border-left-color .21s;
}

/* RESPONSIVE LAYOUTS */
@media (max-width:1100px){
  .container{ max-width:99vw; }
  .content-grid, .feature-grid, .card-container, .team-grid, .project-list{ gap:14px; }
}
@media (max-width:850px){
  .feature-grid,
  .team-grid,
  .project-list{
    flex-direction:column; gap:18px;
  }
}

@media (max-width:700px){
  .content-grid,.feature-grid,.card-container, .team-grid, .project-list {
    flex-direction:column;
    gap:11px;
  }
  .feature-grid > div, .team-grid > div,.project-list > div {
    min-width:0; padding:18px 10px;
  }
}

/* COOKIE CONSENT BANNER */
.cookie-banner{
  position:fixed; left:0; right:0; bottom:0;
  background:var(--primary);
  color:var(--white);
  z-index:4000;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:center;
  gap:20px;
  padding:20px 16px;
  box-shadow:0 -2px 18px rgba(39,90,46,0.13);
  transition:transform .36s cubic-bezier(.77,0,.18,1.29),opacity .18s;
  opacity:1;
  transform:translateY(0%);
}
.cookie-banner.hide {
  opacity:0;
  transform:translateY(100%);
  pointer-events:none;
}
.cookie-banner__text {
  flex:1;
  color:var(--vibrant2);
  font-size:1rem;
  max-width:600px;
}
.cookie-banner__buttons{
  display:flex; flex-wrap:wrap; gap:12px; align-items:center;
}
.cookie-btn {
  font-family:'Open Sans',Arial,sans-serif;
  font-weight:700;
  border-radius:9999px;
  padding:8px 21px;
  font-size:1.03em;
  border:none;
  cursor:pointer;
  transition:background .13s,color .13s, box-shadow .15s;
  box-shadow:0 1px 5px rgba(255,214,0,0.05);
  margin-right:5px;
}
.cookie-btn.accept {
  background:var(--vibrant2);
  color:var(--primary);
}
.cookie-btn.accept:hover { background:var(--vibrant1); color:var(--white); }
.cookie-btn.reject{
  background:var(--vibrant1);
  color:var(--white);
}
.cookie-btn.reject:hover{ background:var(--dark); color:var(--vibrant2); }
.cookie-btn.settings{
  background:var(--vibrant3);
  color:var(--white);
}
.cookie-btn.settings:hover{ background:var(--secondary); }

/* COOKIE MODAL */
.cookie-modal {
  position:fixed; left:0; top:0; right:0; bottom:0;
  background:rgba(39,90,46,0.86);
  z-index:4200;
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none;
  transition:opacity .25s;
}
.cookie-modal.open {
  opacity:1; pointer-events:all;
}
.cookie-modal__dialog{
  background:var(--accent);
  color:var(--dark);
  padding:40px 32px 30px 32px;
  border-radius:var(--radius);
  min-width:330px;
  max-width:96vw;
  box-shadow:0 10px 32px rgba(39,90,46,0.21);
  display:flex;
  flex-direction:column; gap:19px;
  position:relative;
  animation:slideup .31s cubic-bezier(.58,1.2,.16,1.22);
}
@keyframes slideup{
  from{transform:translateY(80px);opacity:.5;}to{transform:translateY(0);opacity:1;}
}
.cookie-modal__close{
  position:absolute;
  top:15px; right:15px;
  background:none; border:none;
  font-size:1.8rem;
  color:var(--vibrant1);
  cursor:pointer;
  border-radius:8px;
  transition:background .12s;
  padding:4px 13px;
}
.cookie-modal__close:hover{ background:var(--vibrant2); color:var(--primary); }
.cookie-modal__title{
  font-size:1.22rem;
  font-family:'Merriweather',serif;
  font-weight:700;
  color:var(--primary);
  margin-bottom:6px;
}
.cookie-categories{
  display:flex; flex-direction:column; gap:13px;
  margin-top:20px;
}
.cookie-category{
  display:flex; align-items:center; gap:12px;
  padding:7px 0;
}
.cookie-category label{
  font-weight:600;
  color:var(--dark);
}
.cookie-category .toggle-switch{
  width:39px;
  height:22px;
  border-radius:32px;
  background:var(--secondary);
  display:inline-flex;
  align-items:center;
  transition:background .19s;
  margin-right:9px;
}
.cookie-category input[type="checkbox"]{
  appearance:none;
  width:39px; height:22px;
  margin:0; outline:none; border-radius:32px;
  background:var(--secondary);
  position:relative;
  cursor:pointer;
  transition:background .18s;
}
.cookie-category input[type="checkbox"]:checked{
  background:var(--vibrant1);
}
.cookie-category input[type="checkbox"]::-webkit-slider-thumb{
  appearance:none;
}
.cookie-category input[type="checkbox"]:after {
  content:'';
  position:absolute;
  left:4px; top:4px;
  width:15px; height:15px;
  border-radius:50%;
  background:var(--white);
  box-shadow:0 1px 4px rgba(0,0,0,0.06);
  transition:left .18s;
}
.cookie-category input[type="checkbox"]:checked:after {
  left:20px;
}
.cookie-category .category-desc{
  color:var(--dark);
  font-weight:400;
  font-size:.98em;
}
/* Mark essential cookies */
.cookie-category.essential label:after {
  content:'(immer aktiv)';
  color:var(--secondary);
  font-size:0.94em;
  font-weight:400;
  margin-left:8px;
}

.cookie-modal__actions{
  display:flex; gap:12px; margin-top:19px; flex-wrap:wrap;
}

@media (max-width:600px){
  .cookie-modal__dialog{
    padding:22px 9px 18px 9px;
    min-width:0;
  }
}

/* MODAL OVERLAYS/ANIMATION */
@media (max-width:600px){
  .cookie-banner{
    flex-direction:column; gap:12px;
    padding:14px 6px 16px 6px;
  }
  .cookie-banner__text{ font-size:0.97em; }
}

/* MISC ACCESSIBILITY & ACCESS */
:focus {
  outline:2.5px solid var(--vibrant2);
  outline-offset:2px;
}

::-webkit-scrollbar{ width:10px; background:var(--accent); }
::-webkit-scrollbar-thumb{ background:var(--secondary); border-radius:10px; }

/* PRINT SUPPORT */
@media print{ header,.mobile-menu,footer,.cookie-banner,.cookie-modal{display:none!important;} }

/* ANIMATIONS: micro-interactions */
a, button, .card, .feature-grid > div, .team-grid > div, .testimonial-card, .project-list > div {
  transition:box-shadow .18s, transform .16s, background .13s, color .13s, border-color .13s;
}

/* ENSURE CARD GAPS */
.card + .card, .testimonial-card + .testimonial-card,
.feature-grid > div + div, .team-grid > div + div, .project-list > div + div {
  margin-left:0!important; /* only rely on flexbox gap */
}

/*************** END OF CSS ***************/
