/* =======================
   CSS RESET & NORMALIZATION
   ======================= */
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,
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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { scroll-behavior: smooth; }
body {
  line-height: 1.6;
  background: #F5FAF6;
  color: #263238;
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; border: 0; }

/* ==================================
   FONT IMPORTS & BASE TYPOGRAPHY
   ================================== */
@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');
:root {
  --green: #23624D;
  --light-green: #7DC383;
  --accent: #F5FAF6;
  --warm-yellow: #FEE8BF;
  --warm-orange: #F7B681;
  --cta-hover: #1e563f;
  --shadow: 0 4px 16px rgba(35, 98, 77, 0.08);
  --radius: 20px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;
  --text-dark: #263238;
  --text-light: #F5FAF6;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--green); letter-spacing:0.01em; }
h1 { font-size: 2.7rem; margin-bottom: 20px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.15rem; margin-bottom: 12px; font-weight: 600; }
h4 { font-size: 1.06rem; margin-bottom: 8px; font-weight: 500; }
p, li, blockquote, cite { font-family: var(--font-body); font-size: 1rem; }
p { margin-bottom: 16px; }
ul, ol { padding-left: 20px; margin-bottom: 16px; }
strong { font-weight: 600; }
blockquote {
  background: var(--warm-yellow);
  color: var(--green);
  border-left: 5px solid var(--light-green);
  border-radius: var(--radius);
  padding: 22px 28px;
  margin: 0 0 12px 0;
  font-style: italic;
  font-size: 1.08rem;
}
cite {
  display: block;
  color: var(--green);
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-top: 6px;
  font-style: normal;
}

/* =======================
   LAYOUT CONTAINERS
   ======================= */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  padding: 0;
  margin-bottom: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =======================
   HEADER & NAVIGATION
   ======================= */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 18px 0 18px 0;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  font-family: var(--font-body);
  color: var(--green);
  font-size: 1rem;
  padding: 8px 14px;
  border-radius: 22px;
  transition: background .2s, color .2s;
  position: relative;
}
header nav a:not(.cta-btn):hover, header nav a:focus {
  background: var(--light-green);
  color: var(--text-light);
}
.cta-btn {
  font-family: var(--font-display);
  background: var(--green);
  color: var(--text-light);
  border: none;
  padding: 11px 28px;
  border-radius: 26px;
  font-size: 1.09rem;
  box-shadow: 0 2px 12px rgba(35,98,77,0.09);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-left: 8px;
  outline: none;
  transition: background .22s, box-shadow .22s, transform .13s;
  position: relative;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--cta-hover);
  color: var(--accent);
  box-shadow: 0 6px 20px 0 rgba(35,98,77,0.15);
  transform: translateY(-2px) scale(1.03);
}

/* =============================
  MOBILE MENU (BURGER & DRAWER)
  ============================= */
.mobile-menu-toggle {
  display: none;
  background: var(--green);
  color: var(--accent);
  font-size: 1.9rem;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .18s;
  outline: none;
  box-shadow: 0 1px 7px rgba(0,0,0,0.09);
  z-index: 1101;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--cta-hover);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--accent);
  z-index: 1200;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.7,.3,0,1);
  box-shadow: -6px 0 38px 8px rgba(50,50,50,0.10);
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: flex-start;
  padding-top: 44px;
  padding-left: 30px;
  min-width: 220px;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 2.1rem;
  background: var(--light-green);
  color: var(--accent);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  z-index: 1201;
  transition: background .18s, color .18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--green);
  color: var(--accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 85vw;
  max-width: 340px;
}
.mobile-nav a {
  font-family: var(--font-display);
  color: var(--green);
  background: none;
  font-size: 1.19rem;
  padding: 13px 10px;
  border-radius: 19px;
  transition: background .2s, color .2s;
  font-weight: 500;
}
.mobile-nav a:active,
.mobile-nav a:focus,
.mobile-nav a:hover { background: var(--light-green); color: var(--text-light); }

@media (max-width: 992px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 993px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* ===================
   HERO SECTIONS
   =================== */
.hero {
  background: linear-gradient(90deg, var(--warm-yellow) 60%, var(--accent) 100%);
  border-radius: var(--radius);
  box-shadow: 0 2px 18px rgba(35,98,77,0.07);
  margin-bottom: 54px;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  padding: 36px 9vw 36px 0;
}
.hero h1 {
  color: var(--green);
  font-size: 2.3rem;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 18px;
}
.hero .cta-btn {
  font-size: 1.05rem;
  margin-top: 7px;
}

/* ====================
   CARD & FLEX LAYOUTS
   ==================== */
.features-grid, .education-grid, .project-overview, .project-snippets, .participate-options, .news-list, .news-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid .feature, .education-grid > div, .project-overview .project-card, .news-list .news-article, .news-teasers .news-tile, .project-snippets > div, .participate-options > div {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 22px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  min-width: 220px;
  transition: box-shadow .21s, transform .14s;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 9px;
}
.features-grid .feature:hover, .project-overview .project-card:hover, .news-teasers .news-tile:hover, .education-grid > div:hover, .participate-options > div:hover {
  box-shadow: 0 6px 30px rgba(35,98,77,0.11);
  transform: translateY(-3px) scale(1.017);
}
.features-grid .feature img, .education-grid > div img {
  width: 40px;
  height: 40px;
  margin-bottom: 7px;
}
.features-grid .feature h3,
.education-grid > div h3 {
  margin-top: 0;
  color: var(--green);
  font-size: 1.14rem; 
}
/* Project List, News Tiles, Participate Options spacing fix */
.project-overview, .news-list, .participate-options {
  margin-bottom: 22px;
  gap: 24px;
}
.participate-options > div {
  background: var(--warm-yellow);
}

/* Project Snippets preview */
.project-snippets > div {
  background: var(--warm-orange);
}

/* News teasers on home */
.news-teasers .news-tile {
  background: var(--warm-yellow);
}

/* ============
   IMPACT & TESTIMONIALS
   ============ */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  transition: box-shadow .22s, transform .13s;
  flex: 1 1 340px;
  max-width: 560px;
}
.testimonial-card blockquote {
  background: transparent;
  border: none;
  color: var(--green);
  font-size: 1.1rem;
  padding: 0;
}
.testimonial-card cite { color: var(--green); margin-top: 3px; }
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(35,98,77,0.15);
  transform: translateY(-2px) scale(1.019);
}

.impact-stories {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}

/* =====================
   CONTACT & MAP SECTIONS
   ===================== */
.contact-details, .map-embed, .footer-contact {
  margin-bottom: 26px;
}
.contact-details {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  margin-bottom: 22px;
}
.contact-details img { width: 18px; height: 18px; vertical-align: middle; margin-right: 5px; }
.map-embed {
  background: var(--warm-yellow);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: 0 2px 12px rgba(254,232,191,0.16);
  text-align: center;
}
.map-embed img { margin: 0 auto; width: 100%; max-width:320px; }

/* =====================
   FOOTER
   ===================== */
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  border-top: 1px solid #e5ecd7;
  padding: 38px 0 24px 0;
  margin-top: 34px;
}
.footer-flex img { width: 60px; height: auto; }
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 170px;
}
footer nav a {
  color: var(--green);
  font-family: var(--font-body);
  font-size: 1.01rem;
  transition: color .15s;
  padding: 6px 0;
  border-radius: 8px;
}
footer nav a:hover { color: var(--light-green); text-decoration: underline; }
.footer-contact p {
  color: #425344;
  font-size: 0.99rem;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  line-height: 1.5;
}
.footer-contact img { width: 16px;height: 16px; }
footer a { color: var(--green); }
footer a:hover { color: var(--light-green); text-decoration: underline; }

/* ========================
   BUTTONS & INTERACTIONS
   ======================== */
button, .cta-btn {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background .2s, color .2s, box-shadow .18s, transform .15s;
}
button:focus, .cta-btn:focus {
  box-shadow: 0 0 0 2px var(--light-green);
}

/* Project Filter Chips */
.project-filters {
  margin-top: 20px;
  margin-bottom: 4px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.project-filters ul {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.project-filters li {
  background: var(--warm-yellow);
  color: var(--green);
  font-family: var(--font-body);
  border-radius: 14px;
  padding: 6px 17px;
  font-size: 1rem;
  margin-bottom: 6px;
  cursor: pointer;
  transition: background .18s,color .13s;
}
.project-filters li:hover, .project-filters li.active {
  background: var(--green);
  color: var(--accent);
}

/* Event & Press Lists in Aktuelles */
.event-list, .press-releases { margin: 32px 0 8px 0; }
.event-list h3, .press-releases h3 { color: var(--green); font-size: 1.1rem; margin-bottom: 8px; }
.event-list ul, .press-releases ul {
  padding-left: 0;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.event-list li, .press-releases li {
  background: var(--warm-yellow);
  border-radius: var(--radius);
  padding: 10px 15px;
  color: var(--green);
  font-size: 1rem;
}

/* ===============================
   TEXT SECTION ALIGNMENT/STYLE
   =============================== */
.text-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 28px 32px 28px;
  margin-bottom: 32px;
}
.text-section ul {
  padding-left: 23px; margin-bottom: 16px;
}
.text-section li { margin-bottom: 7px; }
.text-section a { color: var(--green); text-decoration: underline; }
.text-section a:hover { color: var(--light-green); }

/* Responsive Spacing/Alignment Patterns */
.card-container {
  display: flex; flex-wrap: wrap; gap: 24px;
}
.card { margin-bottom: 20px; position: relative; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ======================
    COOKIE CONSENT BANNER
   ====================== */
.cookie-banner {
  position: fixed;
  left:0; right:0; bottom:0;
  z-index:2002;
  background: #fffbe7;
  color: var(--green);
  font-family: var(--font-body);
  box-shadow: 0 -2px 24px 4px rgba(35,98,77,0.13);
  padding: 20px 22px 22px 22px;
  border-radius: 24px 24px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  min-width:280px;
  max-width: 800px;
  margin: 0 auto;
  left: 50%;
  transform: translateX(-50%);
  animation: cookie-fade-in .52s;
}
@keyframes cookie-fade-in {from{opacity:0;transform:translateY(60px) translateX(-50%);}to{opacity:1;transform:translateY(0) translateX(-50%);}}
.cookie-banner p {
  margin: 0 22px 0 0;
  flex: 2 1 180px;
  font-size: 1.04rem;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
}
.cookie-btn {
  border-radius: 22px;
  padding:  9px 21px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-right: 5px;
  margin-top:3px;
  transition: background .17s, color .18s;
}
.cookie-btn.accept {
  background: var(--green); color: var(--accent);
}
.cookie-btn.accept:hover,.cookie-btn.accept:focus {
  background: var(--cta-hover);
}
.cookie-btn.reject {
  background: var(--warm-orange); color: var(--green);
}
.cookie-btn.reject:hover,.cookie-btn.reject:focus {
  background: #F99E46;
}
.cookie-btn.settings {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.cookie-btn.settings:hover,.cookie-btn.settings:focus {
  background: var(--warm-yellow);
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed; z-index:2005; top:0; left:0; bottom:0; right:0;
  background: rgba(35,98,77,0.18);
  display:flex; align-items:center; justify-content:center;
  animation: cookie-modal-fadein .23s;
}
@keyframes cookie-modal-fadein { from{opacity:0;} to{opacity:1;} }
.cookie-modal {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 6px 32px rgba(35,98,77,.17);
  max-width: 440px; width:94vw;
  padding: 32px 28px 28px 28px;
  font-family: var(--font-body);
  position: relative;
  animation: modal-pop-up .34s;
}
@keyframes modal-pop-up {from{transform: translateY(30px) scale(.92);opacity:0;}to{transform:none;opacity:1;}}
.cookie-modal h3 {
  color: var(--green);
  font-size: 1.18rem;
  margin-bottom: 15px;
}
.cookie-modal .cookie-modal-close {
  position: absolute; top: 18px; right: 18px;
  background: none; border: none; color: var(--green); font-size: 1.55rem; cursor: pointer; padding:2px;
  border-radius: 50%; 
  transition: background .15s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus{ background: var(--accent); color: var(--cta-hover); }
.cookie-categories {
  display: flex; flex-direction: column; gap: 19px;
  margin-bottom:18px;
}
.cookie-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--accent);
  border-radius: 15px;
  padding: 11px 16px;
  font-size: 1.01rem;
  color: var(--green);
  gap: 9px;
}
.cookie-category label { cursor:pointer; }
.cookie-category input[type="checkbox"] {
  accent-color: var(--green);
  width: 20px; height: 20px;
  margin-left: 14px;
}
/* Always enabled: strike toggle, dim */
.cookie-category.essential { opacity: 0.6; }
.cookie-category.essential input[type="checkbox"] { display:none; }
.cookie-modal-actions {
  display: flex; gap: 11px; justify-content: flex-end; }
.cookie-modal .cookie-btn { width: auto; }

/* ===============
RESPONSIVE LAYOUTS
=============== */
@media (max-width: 992px) {
  .header-flex { padding: 9px 0 13px 0; gap: 10px; }
  .footer-flex { flex-direction: column; align-items: flex-start; gap: 22px; }
  .container { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 768px) {
  .hero .content-wrapper, .content-wrapper { padding: 18px 0 18px 0; }
  .section {padding: 22px 3vw; margin-bottom: 38px;}
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .features-grid, .education-grid, .project-overview, .project-snippets, .news-teasers, .participate-options, .impact-stories, .news-list,.card-container {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid .feature, .education-grid > div, .project-overview .project-card, .news-list .news-article, .news-teasers .news-tile, .participate-options > div, .project-snippets > div {
    min-width: 0; width: 100%;
    padding: 19px 14px;
  }
  .text-section { padding: 19px 12px 16px 12px; }
  .footer-flex { padding: 22px 0 18px 0; }
  .cookie-banner { flex-direction: column; gap: 12px; padding: 17px 9px 13px 9px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.49rem; }
  h2 { font-size: 1.18rem; }
  .container { padding-left: 6px; padding-right: 6px; }
  .hero { min-height: 130px; }
}

/* ===============
ACCESSIBILITY & DETAILS
=============== */
:focus-visible { outline: 2px solid var(--light-green); outline-offset: 2px; }

/* ===============
FIXED CLASSES FOR CONSISTENT SPACING
=============== */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Avoid element overlap and ensure proper spacing */
.card:not(:last-child), .testimonial-card:not(:last-child), .feature:not(:last-child) {
  margin-bottom: 20px;
}

/* ===============
END OF STYLE.CSS
=============== */