/* =====================
   CSS RESET & NORMALIZE
   ===================== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #1a2a22;
  background: #FAFAF7;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: #20684A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #3878B0;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.4em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #1a2a22;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}
h1 { font-size: 2.7rem; margin-bottom: 18px; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }
.subtitle {
  font-size:1.2rem;
  font-weight:400;
  color: #3878B0;
  margin-bottom: 18px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, .btn-primary {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  border: 0;
  border-radius: 6px;
  padding: 12px 28px;
  background: #20684A;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(32,104,74,0.06);
  transition: background 0.14s, box-shadow 0.15s, color 0.14s, transform 0.13s;
  outline: none;
  margin-top: 14px;
  letter-spacing: .03em;
  display: inline-block;
}
button:hover, .btn-primary:hover,
button:focus, .btn-primary:focus {
  background: #174e37;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 2px 12px 0 rgba(32,104,74,0.13);
}
:disabled, [disabled] {
  opacity: .6;
  pointer-events: none;
}
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
section {
  width: 100%;
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 24px 0 rgba(32,104,74,0.04);
}
section:last-child {
  margin-bottom: 0;
}

/* ==========================
   HEADER & NAVIGATION STYLES
   ========================== */
header {
  width: 100%;
  background: #EBF4EA;
  border-bottom: 1.3px solid #D7E7D2;
  box-shadow: 0 2px 16px 0 rgba(32,104,74,0.06);
}
header .container {
  min-height: 82px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  height: 64px;
}
.logo img {
  height: 48px;
  width: auto;
  display: block;
}
.main-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #20684A;
  font-size: 1rem;
  transition: color 0.16s;
  padding: 8px 0;
  position: relative;
}
.main-nav a:after {
  content: "";
  display: block;
  height: 2px;
  width: 0%;
  background: #3878B0;
  transition: width 0.25s;
  border-radius: 2px;
  margin-top: 2px;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.main-nav a.active {
  color: #3878B0;
  font-weight: 700;
}
header .btn-primary {
  margin-left: 22px;
}

/* ============
   HERO SECTION
   ============ */
.hero-section {
  background: linear-gradient(108deg, #F5F8F4 80%, #EBF4EA 100%);
  border-radius: 32px;
  box-shadow: 0 4px 36px 0 rgba(32,104,74,0.10);
  margin-top: 32px;
  margin-bottom: 60px;
  padding-top: 62px;
  padding-bottom: 62px;
  display: flex;
  align-items: center;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 14px;
}
.hero-section h1 {
  letter-spacing: 0.02em;
  font-size: 2.8rem;
  margin-bottom: 5px;
  color: #20684a;
}
.hero-section p {
  margin-bottom: 18px;
  font-size: 1.25rem;
}
@media (max-width: 768px) {
  .hero-section {
    margin-top: 20px;
    padding: 36px 10px 36px 10px;
  }
  .hero-section h1 {
    font-size: 2rem;
  }
}

/* ================
   FEATURES SECTION
   ================ */
.features-section {
  background: #fff;
  padding-bottom: 24px;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 250px;
  min-width: 200px;
  background: #F5F8F4;
  border-radius: 18px;
  padding: 24px 20px 20px 20px;
  box-shadow: 0 1.5px 8px 0 rgba(32,104,74,0.08);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 24px 0 rgba(32,104,74,0.15);
  transform: translateY(-3px) scale(1.015);
}
.icon-features {
  display: flex;
  flex-wrap: wrap;
  gap: 23px;
  margin-top: 16px;
}
.icon-card {
  flex: 1 1 240px;
  min-width: 180px;
  background: #EBF4EA;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 16px 17px 17px 17px;
  box-shadow: 0 1px 6px 0 rgba(56,120,176,0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.16s;
}
.icon-card img {
  width: 34px;
  height: 34px;
  margin-bottom: 4px;
}
.icon-card h4 {
  color: #20684A;
  margin-bottom: 0;
  margin-top: 0;
}
@media (max-width: 900px) {
  .feature-grid, .icon-features {
    gap: 14px;
  }
}
@media (max-width: 640px) {
  .feature-grid, .icon-features {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .icon-card {
    min-width: 0;
    width: 100%;
  }
}

/* =======================
   NEWS/TEASERS & CTA
   ======================= */
.news-section .news-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 18px;
}
.news-section .news-teasers article {
  flex: 1 1 280px;
  padding: 26px 20px 20px 20px;
  background: #F5F8F4;
  border-radius: 14px;
  box-shadow: 0 1.5px 10px 0 rgba(56,120,176,0.07);
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.14s, transform 0.12s;
}
.news-section .news-teasers article:hover {
  box-shadow: 0 4px 20px 0 rgba(32,104,74,0.12);
  transform: translateY(-2px) scale(1.015);
}
.news-section .news-teasers article a {
  align-self: flex-start;
  margin-top: 4px;
  color: #3878B0;
  font-weight: 500;
}
.cta-section {
  background: #EBF4EA;
  border-radius: 32px;
  box-shadow: 0 2px 18px 0 rgba(32,104,74,0.08);
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 70px;
}
.cta-section .content-wrapper {
  align-items: center;
}

/* ===========
   FOOTER
   =========== */
footer {
  background: #20684A;
  color: #fff;
  font-size: 0.97rem;
  padding: 38px 0 18px 0;
  margin-top: 48px;
}
footer a {
  color: #EBF4EA;
  font-weight: 500;
  transition: color 0.15s;
}
footer a:hover,
footer a:focus {
  color: #3878B0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  gap: 23px;
  margin-bottom: 18px;
  margin-top: 6px;
}
.footer-contact img {
  width: 43px;
  height: 43px;
  margin-right: 10px;
}
.footer-contact address {
  font-style: normal;
  color: #EBF4EA;
  line-height: 1.6;
}
.footer-copy {
  color: #D7E7D2;
  font-size: 0.89rem;
  margin-top: 12px;
}
@media (max-width: 700px) {
  footer .container {
    flex-direction: column;
    gap: 18px;
  }
  .footer-contact {
    flex-direction: column;
    gap: 14px;
  }
  .footer-nav {
    gap: 12px;
  }
}

/* ========================
   TEXT SECTIONS & CONTENT
   ======================== */
.text-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.text-section ul, .text-section ol {
  margin-bottom: 8px;
}
.text-section li {
  margin-bottom: 8px;
}
.text-section address {
  background: #F5F8F4;
  padding: 18px 16px;
  border-radius: 10px;
  color: #13402c;
  font-size: 1.08rem;
  box-shadow: 0 0.5px 2px 0 rgba(32,104,74,0.03);
}
.text-section img[alt="Lageplan Berlin"] {
  margin-top: 8px;
  border-radius: 10px;
  border: 1.5px solid #EBF4EA;
}

/* ================
   TESTIMONIAL CARD
   ================ */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #EBF4EA;
  border-radius: 14px;
  margin-bottom: 20px;
  color: #14593b;
  font-size: 1.1rem;
  box-shadow: 0 1px 8px 0 rgba(56,120,176,0.07);
  position: relative;
  z-index: 1;
  min-width: 0;
}
.testimonial-card blockquote {
  color: #20684A;
  background: none;
  border-left: 4px solid #3878B0;
  padding-left: 15px;
  margin: 0;
  font-style: italic;
  font-size: 1.03em;
}
.testimonial-card div {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #14593b;
  opacity: 0.95;
  font-size: 0.99em;
}

/* ================
   CARD & GRID UTILS
   ================ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1.5px 8px 0 rgba(56,120,176,0.07);
  padding: 24px;
}
.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;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===========
   BUTTONS
   =========== */
.btn-secondary {
  background: #3878B0;
  color: #fff;
  box-shadow: 0 1px 6px rgba(56,120,176,0.10);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #20684A;
  color: #fff;
}
.btn-light {
  background: #F5F8F4;
  color: #20684A;
  border: 1px solid #20684A;
  box-shadow: none;
}
.btn-light:hover,
.btn-light:focus {
  background: #D7E7D2;
  color: #20684A;
}

/* ==================
   MOBILE NAVIGATION
   ================== */
.mobile-menu-toggle {
  background: #20684A;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2rem;
  padding: 10px 16px;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1031;
  box-shadow: 0 2px 12px 0 rgba(32,104,74,0.12);
  cursor: pointer;
  display: none;
  transition: background 0.17s, transform 0.16s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #174e37;
  transform: scale(1.08);
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 92vw;
  max-width: 380px;
  height: 100vh;
  background: #EBF4EA;
  box-shadow: -2px 0 48px 0 rgba(32,104,74,0.18);
  z-index: 2001;
  padding: 34px 28px 34px 28px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.7,.2,.2,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  border: none;
  background: #3878B0;
  color: #fff;
  font-size: 2rem;
  align-self: flex-end;
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: background 0.14s, transform 0.14s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: #20684A;
  transform: scale(1.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #20684A;
  font-size: 1.21rem;
  font-weight: 600;
  padding: 14px 0;
  transition: color 0.13s;
  border-radius: 5px;
}
.mobile-nav a:hover {
  color: #3878B0;
  background: #D7E7D2;
}

@media (max-width: 980px) {
  .main-nav {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .btn-primary {
    display: none;
  }
}
@media (min-width: 981px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* ==================
   RESPONSIVE SECTIONS
   ================== */
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
}
@media (max-width: 850px) {
  .footer-contact {
    flex-direction: column;
    gap: 12px;
    text-align: left;
  }
  .feature-grid, .icon-features, .news-section .news-teasers {
    flex-direction: column;
    gap: 19px;
  }
}
@media (max-width: 600px) {
  section {
    margin-bottom: 38px;
    padding: 24px 6px;
    border-radius: 14px;
  }
  .cta-section {
    margin-bottom: 45px;
    border-radius: 16px;
    padding-top: 14px;
    padding-bottom: 18px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item {
    gap: 8px;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
}

/* ===============================
   COOKIE CONSENT BANNER & MODAL
   =============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #14593b;
  border-top: 2px solid #D7E7D2;
  box-shadow: 0 -2px 22px 0 rgba(32,104,74,0.10);
  padding: 24px 20px;
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  animation: cookieBannerFadeIn 0.46s ease;
}
@keyframes cookieBannerFadeIn {
  0% { transform: translateY(60px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  font-size: 1.06rem;
  max-width: 550px;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-banner .btn-primary,
.cookie-banner .btn-secondary,
.cookie-banner .btn-light {
  margin: 0;
  padding: 7px 22px;
  font-size: 1rem;
  border-radius: 7px;
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 18px 8px;
  }
  .cookie-banner-message {
    max-width: 100vw;
    font-size: 0.97rem;
  }
}

/* Cookie settings modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(32,104,74,0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3040;
  animation: cookieModalBgIn 0.22s cubic-bezier(.73,.12,.13,.93);
}
@keyframes cookieModalBgIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal-inner {
  background: #fff;
  border-radius: 18px;
  max-width: 480px;
  width: 94vw;
  padding: 32px 32px 24px 32px;
  box-shadow: 0 4px 32px 0 rgba(32,104,74,0.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalCardIn 0.26s cubic-bezier(.63,.17,.31,1.05);
}
@keyframes cookieModalCardIn {
  0% { transform: scale(.87); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  font-weight: 600;
  color: #20684A;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  font-size: 1.03rem;
  color: #14593b;
  flex: 1;
}
.cookie-category input[type="checkbox"] {
  width: 19px; height: 19px;
  accent-color: #3878B0;
  margin-right: 4px;
}
.cookie-category .category-essential {
  font-weight: 500;
  color: #3878B0;
  opacity: 0.87;
  font-size: 1.05em;
}
.cookie-modal-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-top: 7px;
  justify-content: flex-end;
}
.cookie-modal .btn-primary,
.cookie-modal .btn-secondary,
.cookie-modal .btn-light {
  margin: 0;
  border-radius: 7px;
}
@media (max-width: 550px) {
  .cookie-modal-inner {
    padding: 18px 7px 18px 7px;
    border-radius: 8px;
  }
}
.cookie-modal-close {
  background: none;
  border: none;
  color: #3878B0;
  font-size: 1.6rem;
  position: absolute;
  top: 14px;
  right: 18px;
  cursor: pointer;
  transition: color 0.14s;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  color: #20684A;
}

/* ========
   UTILITIES
   ======== */
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }

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

/* =========================
   TYPOGRAPHY & HEADINGS
   ========================= */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.29rem; }
  h3 { font-size: 1.1rem; }
  .subtitle { font-size: 1rem; }
}

/* ===============
   PRINT CLEANUP
   =============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  section, .card, .testimonial-card {
    box-shadow: none !important;
    background: #fff !important;
  }
  body { color: #111; background: #fff; }
}
