/* =========================================================
   Grüne Heimat Bremen - Minimalist Flexbox CSS
   (c) 2024 Grüne Heimat Bremen. All rights reserved.
   ========================================================= */

/* ================== CSS RESET / NORMALIZE ================== */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, a, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img, picture { max-width: 100%; display: block; border: 0; }
button { border: none; outline: none; background: none; cursor: pointer; font-family: inherit; font-size: inherit; color: inherit; }

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #232F23;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

/* ================== BRAND COLORS ================== */
:root {
  --ghb-primary: #296C32;
  --ghb-secondary: #F2F6F1;
  --ghb-accent: #B0D693;
  --ghb-text: #232F23;
  --ghb-muted: #6d8069;
  --ghb-shadow: 0 2px 16px rgba(31,51,36,0.07);
  --ghb-radius: 12px;
}

/* ================== TYPOGRAPHY ================== */
h1, .h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--ghb-primary);
  letter-spacing: -0.015em;
  margin-bottom: 16px;
  line-height: 1.15;
}

h2, .h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--ghb-primary);
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ghb-primary);
  margin-bottom: 10px;
}

p, li, span {
  font-size: 1rem;
  color: var(--ghb-text);
}

strong {
  font-weight: 600;
  color: var(--ghb-primary);
}

body, button, input, select, textarea {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* ================== LAYOUT CONTAINERS ================== */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: var(--ghb-radius);
  box-shadow: var(--ghb-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.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;
  background: var(--ghb-secondary);
  border-radius: var(--ghb-radius);
  box-shadow: 0 1.5px 8px rgba(31,51,36,0.04);
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 0;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px -8px rgba(41,108,50,0.10), 0 2px 8px rgba(41,108,50,0.07);
}
.testimonial-card p {
  color: var(--ghb-text);
  font-size: 1.05rem;
  margin-bottom: 12px;
  font-style: italic;
}
.testimonial-card span {
  font-size:0.97rem;
  color: var(--ghb-muted);
  align-self: flex-end;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px 0;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ================== HEADER & NAV ================== */
header {
  background: #fff;
  border-bottom: 1px solid #e9ecea;
  box-shadow: 0 1px 6px rgba(31,51,36,0.02);
}
header .container {
  flex-direction: row;
  align-items: center;
  gap: 28px;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

header nav a {
  position: relative;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--ghb-text);
  padding: 6px 4px;
  border-radius: 5px;
  transition: color 0.18s, background 0.18s;
}

header nav a:hover:not(.cta):not(.primary), header nav a:focus-visible:not(.cta):not(.primary) {
  color: var(--ghb-primary);
  background: var(--ghb-secondary);
}

header a.cta.primary {
  margin-left: 16px;
}

/* ================== BUTTONS & CTAs ================== */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.07rem;
  font-weight: 600;
  padding: 12px 28px;
  background-color: var(--ghb-primary);
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 1px 8px rgba(41,108,50,0.07);
  transition: background 0.2s, box-shadow 0.2s, transform 0.12s;
  border: none;
  outline: none;
  cursor: pointer;
}
.cta.primary {
  background: var(--ghb-primary);
  color: #fff;
}
.cta.primary:active {
  background: #255f2d;
}
.cta.primary:hover, .cta.primary:focus-visible {
  background: #337e3d;
  box-shadow: 0 3px 18px 0 rgba(41,108,50,0.09);
  transform: translateY(-2px) scale(1.02);
}
.cta.secondary {
  background: var(--ghb-secondary);
  color: var(--ghb-primary);
  border: 1px solid var(--ghb-primary);
}
.cta.secondary:hover, .cta.secondary:focus-visible {
  background: var(--ghb-accent);
}

button.cta, a.cta {
  min-width: 128px;
  min-height: 44px;
}

/* ================== HERO SECTION ================== */
.hero {
  background: var(--ghb-secondary);
  padding: 48px 0 44px 0;
  margin-bottom: 60px;
  box-shadow: 0 2px 24px rgba(41,108,50,0.03);
}
.hero .container {
  align-items: stretch;
}
.hero .content-wrapper {
  align-items: flex-start;
  text-align: left;
  gap: 18px;
}
.hero h1 {
  color: var(--ghb-primary);
}
.hero p {
  font-size: 1.18rem;
  color: #36563b;
}
.hero .cta {
  margin-top: 16px;
  font-size:1.11rem;
}

/* ================== LISTS ================== */
ul, ol {
  padding-left: 1.3em;
}
ul li, ol li {
  margin-bottom: 12px;
  position: relative;
  line-height: 1.65;
}
ul li strong {
  color: var(--ghb-primary);
}

/* ================== FOOTER ================== */
footer {
  background: var(--ghb-secondary);
  padding: 28px 0 18px 0;
  border-top: 1px solid #e4ede7;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  gap: 48px;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 0;
  padding-bottom: 0;
}
footer nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
}
footer nav a {
  color: var(--ghb-primary);
  font-size: 0.99rem;
  font-weight: 500;
}
footer nav a:hover, footer nav a:focus-visible {
  text-decoration: underline;
}
footer .contact-info {
  color: var(--ghb-text);
  font-size: 0.98rem;
  margin-top: 8px;
}
footer .contact-info img {
  display: inline-block;
  position: relative;
  top: 3px;
  width: 17px;
  margin-right: 7px;
}

/* ================== MOBILE MENU ================== */
.mobile-menu-toggle {
  display: inline-flex;
  font-size: 2rem;
  background: none;
  color: var(--ghb-primary);
  border: none;
  margin-left: 14px;
  z-index: 2040;
  align-items: center;
  justify-content: center;
}

@media (min-width: 1025px) {
  .mobile-menu-toggle { display: none; }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fff;
  z-index: 3000;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.8,.2,.2,1);
  box-shadow: 0 0 37px 0 rgba(41,108,50,0.11);
}
.mobile-menu.active {
  transform: translateX(0%);
  transition: transform 0.42s cubic-bezier(.5,1.7,.75,1.05);
}
.mobile-menu-close {
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 18px 20px 0 0;
  color: var(--ghb-primary);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 50px;
  align-items: center;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: var(--ghb-primary);
  padding: 18px 0;
  width: 88vw;
  text-align: center;
  border-radius: 16px;
  background: none;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:active, .mobile-nav a:hover, .mobile-nav a:focus-visible {
  background: var(--ghb-accent);
  color: #fff;
}

/* Hide desktop nav on mobile */
@media (max-width: 1024px) {
  header nav {
    display: none !important;
  }
}
/* Hide mobile menu on desktop */
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* ================== COOKIE CONSENT BANNER ================== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: #fff;
  color: var(--ghb-text);
  box-shadow: 0 -4px 16px 0 rgba(41,108,50,0.12);
  border-top: 1px solid #e5eae1;
  padding: 24px 15px 20px 15px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: cookieBannerSlideIn 0.61s cubic-bezier(.64,0,.36,1);
}
@keyframes cookieBannerSlideIn {
  from {transform: translateY(80px); opacity:0;}
  to {transform: translateY(0);opacity:1;}
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
  justify-content: center;
}
.cookie-banner button {
  min-width: 110px;
  min-height: 44px;
  border-radius: 22px;
  padding: 0 22px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  transition: background 0.16s, color 0.16s, box-shadow 0.15s;
  outline: none;
}
.cookie-banner .accept {
  background: var(--ghb-primary);
  color: #fff;
  border: none;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus-visible {
  background: #337e3d;
  box-shadow: 0 4px 18px 0 rgba(41,108,50,0.11);
}
.cookie-banner .reject {
  background: #e0e6de;
  color: var(--ghb-primary);
  border: none;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus-visible {
  background: #c7d8b5;
  color: #003c14;
}
.cookie-banner .settings {
  background: #fff;
  color: var(--ghb-primary);
  border: 1px solid var(--ghb-primary);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus-visible {
  background: var(--ghb-secondary);
  color: var(--ghb-primary);
}

/* Cookie Modal Popup */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(31,51,36, 0.36);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s cubic-bezier(.71,0,.32,1);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: var(--ghb-radius);
  box-shadow: 0 6px 36px rgba(41,108,50,0.17);
  padding: 40px 28px 32px 28px;
  max-width: 97vw;
  width: 440px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalIn 0.35s cubic-bezier(.70,0,.34,1);
  position: relative;
}
@keyframes cookieModalIn {
  from { transform: scale(0.89) translateY(60px); opacity:0; }
  to { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal h3 {
  color: var(--ghb-primary);
}
.cookie-modal label {
  font-size: 1.02rem;
  color: var(--ghb-text);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.cookie-modal input[type=checkbox] {
  accent-color: var(--ghb-primary);
  width: 20px; height: 20px;
  margin-right: 6px;
}
.cookie-modal .modal-btns {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 15px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--ghb-muted);
  cursor: pointer;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus-visible {
  color: var(--ghb-primary);
}

/* ================== RESPONSIVE STYLES ================== */
@media (max-width: 1024px) {
  .container {
    max-width: 96vw;
    gap: 24px;
  }
  footer .container, header .container {gap: 20px;}
}
@media (max-width: 900px) {
  .container { max-width: 99vw; }
  .section { padding: 40px 8px; }
  .hero { padding: 30px 0 28px 0; }
}
@media (max-width: 768px) {
  h1, .h1   { font-size: 2rem; }
  h2, .h2   { font-size: 1.4rem; }
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    text-align: left;
  }
  .section {
    padding: 30px 6px;
    margin-bottom: 34px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card { min-width: 0; width: 100%; }
  .feature-item { width: 100%; }
}
@media (max-width: 540px) {
  .container {
    padding-left: 5vw;
    padding-right: 5vw;
  }
  .hero,
  footer,
  .section {
    padding-left: 6px;
    padding-right: 6px;
  }
}

/* ================== FORM ELEMENTS ================== */
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  background: #f9fbf8;
  color: var(--ghb-text);
  border: 1px solid #c8d3c6;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 8px;
  outline: none;
  width: 100%;
  transition: border 0.17s, background 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--ghb-primary);
  background: #f5f9f3;
}
label {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--ghb-primary);
}

/* ================== MICRO-INTERACTIONS ================== */
a, button, .cta, .mobile-menu-toggle, .mobile-menu-close {
  transition: color 0.16s, background 0.18s, box-shadow 0.18s, transform 0.12s;
}

/* ================== UTILITY ================== */
.mt-20 { margin-top: 20px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ================== Z-INDEX LAYERS ================== */
header   { z-index: 1000; }
.mobile-menu { z-index: 3000; }
.cookie-banner { z-index: 4000; }
.cookie-modal-overlay { z-index: 4100; }

/* ================== A11Y FOCUS OUTLINE ================== */
a:focus-visible, button:focus-visible, .cta:focus-visible {
  outline: 2px solid var(--ghb-accent);
  outline-offset: 2px;
}

/* ================== ICONS ================== */
img[alt^='Icon'], img[alt^='icon'], img[alt*='icon-'] {
  width: 22px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}

/* ================== MINIMALIST SPACING ================== */
main > section:not(.hero) { margin-bottom: 60px; }
.testimonial-card + .testimonial-card { margin-top: 16px; }
.card + .card { margin-top: 20px; }
.content-grid > *, .card-container > * {
  flex: 1 1 340px;
  min-width: 225px;
}

/* ================== PRINT ================== */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  a:after { display: none !important; }
}
