/* CSS RESET & NORMALIZE */
html {
  box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
html, body {
  height: 100%;
}
body {
  min-height: 100vh;
  font-family: 'Nunito', Arial, sans-serif;
  color: #284B36;
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #284B36;
  text-decoration: none;
  transition: color 0.2s;
}
a:focus {
  outline: 2px solid #7CA98B;
  outline-offset: 2px;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #284B36;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 18px;
}
h2 {
  font-size: 1.65rem;
  margin-bottom: 16px;
  line-height: 1.15;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
}
p {
  margin-bottom: 14px;
  font-size: 1rem;
  color: #284B36;
}
strong {
  font-weight: 700;
}
.text-center {
  text-align: center;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section,
main section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}

.content-wrapper {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* HEADER */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(40,75,54,0.06);
  height: auto;
  position: sticky;
  top: 0;
  z-index: 1100;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding-top: 20px;
  padding-bottom: 20px;
}
header .container {
  padding-top: 0;
  padding-bottom: 0;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Nunito', Arial, sans-serif;
  font-size: 1rem;
  color: #284B36;
  opacity: 0.94;
  transition: color 0.2s, opacity 0.2s;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #7CA98B;
  border-bottom: 2px solid #7CA98B;
  opacity: 1;
}

/* CTA BUTTONS */
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 28px;
  background: #284B36;
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(40,75,54,0.07);
  cursor: pointer;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
  display: inline-block;
  margin-top: 8px;
  outline: none;
  text-align: center;
}
.cta-btn.primary {
  background: #284B36;
  color: #fff;
}
.cta-btn.primary:hover,
.cta-btn.primary:focus {
  background: #7CA98B;
  color: #284B36;
  box-shadow: 0 4px 16px rgba(124,169,139,0.16), 0 2px 5px rgba(40,75,54,0.04);
  transform: translateY(-2px) scale(1.028);
}

/* HERO SECTION */
.hero {
  background: #F5F1EC;
  border-radius: 20px;
  box-shadow: 0 3px 18px rgba(40,75,54,0.06);
  padding-top: 56px;
  padding-bottom: 56px;
  margin-bottom: 60px;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}

/* FEATURES */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  list-style: none;
  margin-bottom: 0;
  margin-top: 26px;
}
.feature-grid li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  padding: 26px 20px 22px 20px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(40,75,54,0.05);
  min-width: 180px;
  max-width: 230px;
  flex: 1 1 180px;
  align-items: flex-start;
  font-size: 1rem;
  color: #284B36;
}
.feature-grid li img {
  width: 40px;
  height: 40px;
  margin-bottom: 6px;
}
.feature-grid strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 6px;
  color: #284B36;
}

/* TOPIC CARDS (Index) */
.topic-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 8px;
  justify-content: space-between;
}
.topic-cards > div {
  background: #fff;
  box-shadow: 0 2px 12px rgba(40,75,54,0.06);
  border-radius: 14px;
  padding: 28px 22px 22px 22px;
  min-width: 232px;
  flex: 1 1 232px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.16s, transform 0.18s;
}
.topic-cards > div:hover {
  box-shadow: 0 6px 20px rgba(40,75,54,0.12), 0 2px 7px rgba(124,169,139,0.04);
  transform: translateY(-4px) scale(1.015);
}
.topic-cards h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: #284B36;
}
.topic-cards p {
  color: #284B36;
  margin-bottom: 9px;
  font-size: 1rem;
}
.topic-cards a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #7CA98B;
  transition: color 0.15s, text-decoration 0.18s;
  text-decoration: underline; 
  margin-top: 5px;
}
.topic-cards a:hover {
  color: #284B36;
  text-decoration: none;
}

/* TESTIMONIALS */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
  margin-bottom: 8px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: 20px;
  border-radius: 14px;
  background: #F5F1EC;
  box-shadow: 0 3px 14px rgba(40,75,54,0.07);
  color: #222;
  flex: 1 1 260px;
  min-width: 235px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.16s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(124,169,139,0.11), 0 3px 10px rgba(40,75,54,0.05);
  transform: translateY(-3px) scale(1.012);
}
.testimonial-card p {
  font-size: 1rem;
  margin-bottom: 0;
  color: #284B36;
  font-style: italic;
}
.testimonial-card strong {
  font-weight: 700;
  color: #284B36;
  font-size: 0.97rem;
  margin-top: 8px;
}

/* CARDS / CARD-CONTAINER (pattern) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(40,75,54,0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
}

/* FOOTER */
footer {
  background: #F5F1EC;
  padding-top: 28px;
  padding-bottom: 28px;
  box-shadow: 0 -2px 10px rgba(40,75,54,0.03);
  margin-top: 60px;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.footer-nav a {
  color: #284B36;
  opacity: 0.87;
  font-size: 1rem;
  transition: color 0.15s, opacity 0.15s;
  letter-spacing: 0.03em;
}
.footer-nav a:hover {
  color: #7CA98B;
  opacity: 1;
}
.footer-contact p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.97rem;
  color: #284B36;
  margin-bottom: 6px;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

/* LEGAL CONTENT */
.legal {
  font-size: 1rem;
  color: #284B36;
  line-height: 1.6;
}
.legal h2 {
  margin-top: 22px;
  margin-bottom: 12px;
  font-size: 1.23rem;
}
.legal ul {
  margin-bottom: 22px;
  padding-left: 18px;
}
.legal ul li {
  margin-bottom: 8px;
}

/* CHECKLIST (Hausordnung) */
.checklist {
  list-style: none;
  padding-left: 0;
}
.checklist li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 11px;
  font-size: 1rem;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 1px;
  color: #7CA98B;
  font-size: 1.1rem;
  font-weight: bold;
}

/* MAP PLACEHOLDER */
.map-placeholder {
  background: #F5F1EC;
  border-radius: 14px;
  padding: 24px;
  font-size: 0.97rem;
  color: #284B36;
  margin-top: 24px;
  box-shadow: 0 1px 5px rgba(40,75,54,0.05);
}

/* SPECIAL TEXT SECTIONS */
.text-section {
  margin-bottom: 32px;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* FEATURE ITEM (pattern) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* CONTENT GRID (pattern) */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ULs/lists */
ul {
  padding-left: 20px;
  margin-bottom: 10px;
}
li {
  margin-bottom: 7px;
  font-size: 1rem;
}

/* TABLES, FORMS (future proof) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 1rem;
}
th, td {
  border-bottom: 1px solid #F5F1EC;
  padding: 10px 12px;
  text-align: left;
}

/* --- BURGER MENU (Mobile) --- */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #284B36;
  display: none;
  cursor: pointer;
  line-height: 1;
  padding: 0 8px;
  transition: color 0.14s;
  z-index: 1201;
}
.mobile-menu-toggle:hover {
  color: #7CA98B;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(40,75,54, 0.98);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  padding-top: 32px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  position: absolute;
  right: 28px;
  top: 20px;
  cursor: pointer;
  z-index: 1202;
  transition: color 0.13s;
}
.mobile-menu-close:hover {
  color: #7CA98B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 58px;
  align-items: flex-start;
  padding-left: 40px;
  padding-right: 40px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.16s, background 0.16s;
  width: 100%;
  border-radius: 6px;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #7CA98B;
  background: rgba(124,169,139,0.13);
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  color: #284B36;
  box-shadow: 0 -2px 16px rgba(40,75,54,0.09);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 20px 32px 20px 20px;
  border-radius: 16px 16px 0 0;
  font-size: 1rem;
  animation: slideUpBanner 0.5s cubic-bezier(.77,0,.18,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(120%); opacity: 0.2; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  flex: 2 1 200px;
  margin: 0 0 0 0;
}
.cookie-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  min-width: 128px;
  font-size: 1rem;
  border: none;
  border-radius: 24px;
  padding: 10px 22px;
  cursor: pointer;
  transition: background 0.18s, color 0.16s, box-shadow 0.15s;
  background: #F5F1EC;
  color: #284B36;
  box-shadow: 0 2px 8px rgba(40,75,54,0.08);
}
.cookie-banner .cookie-btn.primary {
  background: #284B36;
  color: #fff;
}
.cookie-banner .cookie-btn.primary:hover {
  background: #7CA98B;
  color: #284B36;
}
.cookie-banner .cookie-btn.secondary {
  background: #fff;
  border: 1px solid #7CA98B;
  color: #7CA98B;
}
.cookie-banner .cookie-btn.secondary:hover {
  background: #F5F1EC;
  border-color: #284B36;
  color: #284B36;
}
/* Cookie Modal Overlay and Dialog */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  inset: 0;
  background: rgba(40,75,54,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  animation: fadeInModal 0.40s;
}
@keyframes fadeInModal {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 36px rgba(40,75,54,0.10);
  max-width: 420px;
  width: 94vw;
  padding: 36px 30px 24px 30px;
  position: relative;
  color: #284B36;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popInModal 0.34s cubic-bezier(.77,0,.18,1);
}
@keyframes popInModal {
  from { transform: scale(.92); opacity: .38; }
  to   { transform: scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-size: 1.17rem;
  margin-bottom: 7px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 11px;
  font-size: 1rem;
}
.cookie-modal input[type="checkbox"], .cookie-modal input[type="radio"] {
  transform: scale(1.25);
  accent-color: #7CA98B;
  margin-top: 0;
}
.cookie-modal .category-desc {
  margin-bottom: 13px;
  margin-left: 26px;
  color: #616d60;
  font-size: 0.97rem;
}
.cookie-modal .cookie-btn-row {
  margin-top: 18px;
  gap: 12px;
}
.cookie-modal .modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  border: none;
  background: none;
  font-size: 1.7rem;
  color: #7CA98B;
  cursor: pointer;
  transition: color 0.17s;
}
.cookie-modal .modal-close:hover {
  color: #d1cec2;
}

/* --- RESPONSIVE --- */
@media (max-width: 1090px) {
  .footer-flex {
    flex-direction: column;
    gap: 30px;
  }
  .header-flex {
    gap: 14px;
  }
  .feature-grid, .topic-cards, .testimonials {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  .footer-flex {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .header-flex {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  .section {
    margin-bottom: 50px;
    padding: 32px 18px;
  }
  .feature-grid, .topic-cards, .testimonials {
    flex-wrap: wrap;
    gap: 12px;
  }
  .feature-grid li, .topic-cards > div, .testimonial-card {
    min-width: 180px;
    max-width: 100%;
    flex-basis: 45%;
  }
}
@media (max-width: 768px) {
  .header-flex {
    flex-direction: row;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .section {
    padding: 22px 6px;
    margin-bottom: 36px;
  }
  .hero {
    border-radius: 12px;
    padding-top: 36px;
    padding-bottom: 36px;
    margin-bottom: 38px;
  }
  .feature-grid, .topic-cards, .testimonials {
    flex-direction: column;
    gap: 10px;
  }
  .feature-grid li, .topic-cards > div, .testimonial-card {
    min-width: unset;
    max-width: 100%;
    flex-basis: 100%;
    width: 100%;
  }
  .footer-flex {
    flex-direction: column;
    gap: 18px;
  }
  .footer-nav, .footer-contact {
    width: 100%;
  }
  .topic-cards, .feature-grid, .testimonials {
    margin-top: 12px;
    margin-bottom: 0;
  }
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 550px) {
  h1 {
    font-size: 1.35rem;
  }
  h2 {
    font-size: 1.05rem;
  }
  .cta-btn {
    font-size: .98rem;
    padding: 11px 16px;
  }
  .footer-contact p, .footer-nav a {
    font-size: .97rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    font-size: .99rem;
    padding: 17px 10px 17px 10px;
  }
  .cookie-btn-row {
    gap: 10px;
  }
}
/* Accessibility: Focus States */
.cta-btn:focus, .cookie-btn:focus, .mobile-menu-close:focus, .mobile-menu-toggle:focus {
  outline: 2px solid #7CA98B;
  outline-offset: 2px;
}

/* Subtle transitions for cards and buttons */
.card, .topic-cards > div, .feature-grid li, .testimonial-card {
  transition: box-shadow 0.18s, transform 0.17s;
}
.card:hover, .card:focus, .feature-grid li:hover, .feature-grid li:focus {
  box-shadow: 0 8px 26px rgba(40,75,54,0.11);
  transform: translateY(-2px) scale(1.02);
}

/* Hide cookie modal by default */
.cookie-modal-overlay[aria-hidden="true"] {
  display: none;
}

/* Misc */
::-webkit-scrollbar {
  width: 10px;
  background: #F5F1EC;
}
::-webkit-scrollbar-thumb {
  background: #7CA98B;
  border-radius: 7px;
}

/* Utility: visually-hidden for accessibility (if needed) */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}
