/* =====================================================
   CSS 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 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  background: #F4F4F0;
  color: #222;
  scroll-behavior: smooth;
}
body {
  background: #F4F4F0;
  color: #222;
  min-height: 100vh;
  line-height: 1.7;
  font-family: 'Open Sans', Georgia, Times, serif;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border-style: none;
}
a {
  color: #23513C;
  transition: color 0.2s;
  text-decoration: none;
}
a:hover, a:focus {
  color: #6C947B;
  text-decoration: underline;
}
strong { font-weight: 700; }

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, Times, serif;
  color: #23513C;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}
h1 { font-size: 2.4rem; line-height: 1.14; margin-bottom: 24px; }
h2 { font-size: 1.7rem; margin-bottom: 22px; }
h3 { font-size: 1.3rem; margin-bottom: 16px; }
h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 14px; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.95rem; font-weight: 600; }
p, ul, ol { margin-bottom: 20px; }
ul, ol { padding-left: 24px; }
li { margin-bottom: 10px; }

.subheadline {
  font-size: 1.17rem;
  color: #6C947B;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  margin-bottom: 22px;
  letter-spacing: 0.02em;
}

/* =====================================================
   GLOBAL CONTAINER & SPACING
   ===================================================== */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 24px rgba(35, 81, 60, 0.07);
}
.cta {
  background: #23513C;
}
.cta h2,.cta p {
  color: #fff;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */
header {
  background: #F4F4F0;
  box-shadow: 0 4px 18px rgba(35,81,60,0.04);
  position: relative;
  z-index: 40;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 0;
}
header img[alt="NordGrün Kiel"] {
  height: 48px;
  width: auto;
  margin-right: 22px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  padding: 8px 8px;
  font-family: 'Montserrat', serif;
  font-weight: 500;
  font-size: 1rem;
  color: #000;
  border-radius: 5px;
  transition: background 0.13s, box-shadow 0.13s, color 0.13s;
  outline: none;
}
.main-nav a:hover, .main-nav a:focus {
  background: #6C947B22;
  color: #23513C;
}
.main-nav .btn-primary {
  margin-left: 28px;
}

/* Hamburger button */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #23513C;
  padding: 3px 6px 0px 6px;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #6C947B;
  outline: none;
}

/* =====================================================
   MOBILE MENU OVERLAY
   ===================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.85,0,0.25,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0;
  box-shadow: -6px 0 32px rgba(35,81,60,.16);
  padding: 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  border: none;
  font-size: 2.2rem;
  color: #23513C;
  align-self: flex-end;
  margin: 16px 26px 14px 0;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1010;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #6C947B;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 26px;
  align-items: flex-start;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.2rem;
  padding: 22px 32px 22px 38px;
  width: 100%;
  color: #23513C;
  border-bottom: 1px solid #F4F4F0;
  background: transparent;
  transition: background .13s, color .13s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EAF0EA;
  color: #6C947B;
}

/* Show burger + hide main nav on mobile */
@media (max-width: 1050px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width:1051px) {
  .mobile-menu { display: none !important;}
}
/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary,
.btn-secondary {
  display: inline-block;
  font-family: 'Montserrat', serif;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 13px 30px;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  transition: background 0.16s, color 0.16s, box-shadow 0.19s;
  box-shadow: 0 2px 16px rgba(35, 81, 60, 0.05);
  outline: none;
  text-align: center;
  text-decoration: none;
  margin: 0 0 2px 0;
}
.btn-primary {
  background: #23513C;
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: #295D49;
  color: #fff;
  box-shadow: 0 7px 28px rgba(35,81,60,0.09);
}
.btn-secondary {
  background: #6C947B;
  color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #23513C;
  color: #fff;
}

/* =====================================================
   HERO SECTIONS
   ===================================================== */
.hero {
  display: flex;
  align-items: center;
  background: #EAF0EA;
  padding: 58px 0 38px 0;
  margin-bottom: 64px;
  border-bottom: 1px solid #e0e5e0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  max-width: 730px;
  margin: 0 auto;
}
.hero h1 {
  color: #23513C;
  font-family: 'Montserrat', serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* =====================================================
   CARDS & FLEXIBLE GRIDS
   ===================================================== */
.card-container, .feature-grid, .service-list, .idea-list, .post-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 16px;
}
.card, .testimonial-card, .project-card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 16px rgba(35,81,60,0.09);
  padding: 26px 20px 18px 20px;
  margin-bottom: 20px;
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 250px;
  max-width: 340px;
  gap: 14px;
}

.project-card {
  border-left: 5px solid #23513C;
  margin-bottom: 22px;
  padding-left: 28px;
  position: relative;
}

.feature-grid li, .service-list li, .idea-list li, .post-list li {
  background: #F8F9F7;
  border-radius: 11px;
  box-shadow: 0 1px 7px rgba(35,81,60,0.03);
  padding: 24px 18px 18px 18px;
  list-style: none;
  min-width: 220px;
  max-width: 310px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 17px;
}
.feature-grid img, .service-list img {
  width: 38px;
  height: 38px;
  margin-bottom: 4px;
}

.post-list li h3 { margin-bottom: 8px; font-size: 1.15rem; }

.categories ul {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
}
.categories li {
  background: #EAF0EA;
  border-radius: 8px;
  padding: 6px 18px;
  font-size: 1rem;
  font-family: 'Open Sans', serif;
  color: #23513C;
}

/* =====================================================
   TESTIMONIAL & REVIEW CARDS
   ===================================================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 18px rgba(35,81,60,0.10);
  font-style: italic;
  margin-bottom: 20px;
  flex-direction: column;
  min-width: 260px;
  max-width: 460px;
}
.testimonial-card p {
  font-family: 'Georgia', serif;
  font-size: 1.13rem;
  color: #23513C;
  margin-bottom: 10px;
}
.testimonial-card span {
  font-family: 'Open Sans', serif;
  font-size: 1rem;
  color: #444;
  font-style: normal;
}

/* Review Section Contrast Fix */
section .testimonial-card, .testimonial-card {
  background: #fff;
  color: #23513C;
  box-shadow: 0 2px 21px rgba(35,81,60,0.10);
}

/* =====================================================
   FLEX UTILITIES
   ===================================================== */
.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;
}

/* =====================================================
   FOOTER STYLES
   ===================================================== */
footer {
  background: #23513C;
  color: #fff;
  padding: 0;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  box-shadow: 0 -2px 18px rgba(35,81,60,0.07);
  margin-top: 80px;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 38px 20px 10px 20px;
  gap: 42px;
}
.footer-logo img {
  height: 40px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff;
  opacity: 0.9;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  transition: color 0.18s, opacity 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F4F4F0;
  opacity: 1;
}
.footer-contact {
  font-size: 1rem;
  color: #E4EEE3;
  font-family: 'Open Sans', serif;
}
.footer-contact img {
  width: 17px;
  margin-right: 8px;
}
.footer-social {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 6px;
}
.footer-social a img {
  height: 23px;
  filter: grayscale(18%);
  transition: filter 0.16s;
}
.footer-social a:hover img {
  filter: grayscale(0%);
}
.copyright {
  width: 100%;
  text-align: left;
  font-size: 0.97rem;
  color: #D9E2DB;
  margin-top: 28px;
  font-family: 'Open Sans', serif;
  opacity: 0.83;
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 1050px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; padding: 0 10px;}
  .card-container, .feature-grid, .service-list, .idea-list, .post-list {
    gap: 18px;
  }
  .section { padding: 22px 8px; margin-bottom: 44px;}
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .hero { padding: 36px 0 24px 0; margin-bottom: 36px; }
  h1 { font-size: 1.7rem; margin-bottom: 19px; }
  h2 { font-size: 1.25rem; }
  .footer-logo img { height: 34px; }
  .feature-grid li, .service-list li, .idea-list li {
    min-width: 130px;
    max-width: 99vw;
    padding: 14px 10px;
  }
  .testimonial-card, .project-card {
    padding: 15px 10px;
    min-width: 0;
  }
  .content-grid, .card-container, .feature-grid, .service-list, .idea-list, .post-list {
    flex-direction: column;
    gap: 17px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
  header .container {
    padding: 8px 6px;
  }
  .section {
    padding: 17px 5px;
    margin-bottom: 35px;
  }
  .cta {
    padding: 16px 4px;
  }
  .footer-contact { font-size: 0.99rem; }
  .footer-social { gap: 9px; }
}
@media (max-width: 540px) {
  html { font-size: 14px; }
  .footer-logo img { height: 30px; }
  .footer-contact img { width: 14px; }
  .container { padding: 0 3px; }
}

/* Extra small screens adjustments  */
@media (max-width: 400px) {
  html { font-size: 13px; }
}

/* =====================================================
   MICRO-ANIMATIONS & INTERACTIONS
   ===================================================== */
.card, .feature-grid li, .service-list li, .testimonal-card, .idea-list li, .post-list li, .project-card, .cta, .section {
  transition: box-shadow 0.16s, transform 0.14s;
}
.card:hover, .feature-grid li:hover, .service-list li:hover, .project-card:hover, .idea-list li:hover, .post-list li:hover {
  box-shadow: 0 6px 28px rgba(35,81,60,0.13);
  transform: translateY(-2px) scale(1.017);
}

.btn-primary, .btn-secondary {
  transition: background 0.17s, color 0.15s, box-shadow 0.18s;
}

/* =====================================================
   COOKIE CONSENT BANNER & MODAL
   ===================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #fff;
  color: #23513C;
  box-shadow: 0 -2px 28px rgba(35,81,60,0.13);
  padding: 18px 30px 18px 30px;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  font-size: 1rem;
  font-family: 'Open Sans', serif;
  transition: transform 0.36s cubic-bezier(0.7,0,0.25,1), opacity 0.2s;
  opacity: 1;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 14px;
  flex-direction: row;
}
.cookie-banner button {
  border: none;
  border-radius: 20px;
  padding: 8px 18px;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.13s, color 0.13s, box-shadow 0.17s;
}
.cookie-banner .accept {
  background: #23513C;
  color: #fff;
}
.cookie-banner .accept:hover { background: #295D49; }
.cookie-banner .reject {
  background: transparent;
  color: #23513C;
  border: 1px solid #23513C;
}
.cookie-banner .reject:hover { background: #EAF0EA; }
.cookie-banner .settings {
  background: #6C947B;
  color: #fff;
  margin-right: 5px;
}
.cookie-banner .settings:hover { background: #23513C; color: #fff; }

/* Cookie modal */
.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(35,81,60,0.23);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.25s;
  pointer-events: auto;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal-content {
  background: #fff;
  color: #23513C;
  border-radius: 18px;
  box-shadow: 0 4px 42px rgba(35,81,60,0.18);
  max-width: 95vw;
  width: 420px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Open Sans', serif;
  position: relative;
  animation: cookieModalIn 0.30s cubic-bezier(0.6,0,0.25,1);
}
@keyframes cookieModalIn {
  0% { transform: scale(0.98) translateY(20px); opacity: 0;}
  100% { transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal-content h3 {
  font-family: 'Montserrat', serif;
  font-size: 1.15rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.cookie-category label {
  font-family: 'Open Sans', serif;
  font-size: 0.99rem;
  color: #23513C;
}
.cookie-toggle {
  appearance: none;
  width: 38px;
  height: 21px;
  background: #EAF0EA;
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.14s;
  border: 1px solid #D6E8DF;
}
.cookie-toggle:checked {
  background: #6C947B;
}
.cookie-toggle:before {
  content: '';
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  left: 3px;
  top: 2.5px;
  box-shadow: 0 2px 8px rgba(35,81,60,0.07);
  transition: transform 0.17s;
}
.cookie-toggle:checked:before {
  transform: translateX(16px);
}
.cookie-modal-content .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 11px;
  margin-top: 7px;
}
.cookie-modal-content .cookie-modal-actions button {
  padding: 10px 18px;
}
.cookie-modal-content .close {
  position: absolute;
  top: 16px; right: 18px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: #23513C;
  cursor: pointer;
}
.cookie-modal-content .close:hover { color: #6C947B; }

@media (max-width: 540px) {
  .cookie-modal-content {
    width: 96vw;
    padding: 17px 7px 15px 11px;
  }
  .cookie-modal-content .close {
    top: 6px; right: 6px;
  }
  .cookie-modal-content .cookie-modal-actions button { padding: 8px 10px; font-size: 1rem; }
}
@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    font-size: 0.96rem;
    padding: 14px 8px;
    align-items: flex-start;
  }
  .cookie-banner .cookie-actions { gap: 9px; }
}

/* =====================================================
   MISC UTILITIES
   ===================================================== */
::-webkit-scrollbar { width: 10px; background: #E4EEE3; }
::-webkit-scrollbar-thumb { background: #6C947B; border-radius: 8px; }
section {
  margin-bottom: 60px; padding: 40px 20px;
  background: transparent;
  border: none;
}

/* Remove webkit autofill styling (for any input fields in future) */
input:-webkit-autofill,
input:-webkit-autofill:focus,
input:-webkit-autofill:hover,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #fff inset !important;
  -webkit-text-fill-color: #23513C !important;
  caret-color: #23513C !important;
}

/* Selection color */
::selection {
  background: #6C947B;
  color: #fff;
}

/* Focus outlines */
a:focus, .btn-primary:focus, .btn-secondary:focus, button:focus {
  outline: 2px solid #6C947B;
  outline-offset: 2px;
}

/* Accessibility: visually hidden helper (for banner/modal close/labels) */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}
