/* --- RESET & NORMALIZE --- */
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;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #F6F8F3;
  color: #212529;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: #2C7237;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #6B4E19;
  text-decoration: underline;
}


/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2C7237;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
}
p, ul, ol {
  margin-bottom: 16px;
}
.subheadline {
  color: #5a6773;
  font-size: 1.15rem;
  margin-bottom: 20px;
}

strong {
  font-weight: 700;
}
em {
  font-style: italic;
}

/* --- CONTAINER & LAYOUT --- */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mandatory Section Spacing */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px 0 rgba(60,70,85,0.09);
}

/* --- FLEXBOX UTILITIES --- */
.card-container, .features-grid, .services-cards, .service-list, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F6F8F3;
  border: 1px solid #e4ece7;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(44,114,55,0.06);
  padding: 24px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 6px 24px 0 rgba(44,114,55,0.12);
}

.features-grid > div,
.services-cards > div,
.service-list > div {
  background: #f0f5f1;
  border-radius: 10px;
  border: 1px solid #e4ece7;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px;
  transition: box-shadow 0.18s;
  margin-bottom: 20px;
}
.features-grid > div:hover,
.services-cards > div:hover,
.service-list > div:hover {
  box-shadow: 0 6px 18px 0 rgba(44,114,55,0.10);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-grid {
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  border-radius: 10px;
  background: #F6F8F3;
  border: 1px solid #e4ece7;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(44,114,55,0.06);
  transition: box-shadow 0.18s, background 0.18s;
}
.testimonial-card p {
  color: #2C7237;
  font-size: 1.0rem;
  font-style: italic;
  margin-bottom: 4px;
}
.testimonial-card strong {
  color: #212529;
  font-size: 1.08rem;
}
.testimonial-card:hover {
  background: #e9efe7;
  box-shadow: 0 6px 20px 0 rgba(44,114,55,0.12);
}

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

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

.quick-links {
  margin-top: 10px;
  font-size: 1rem;
  color: #2C7237;
}
.quick-links a {
  text-decoration: underline;
  margin: 0 6px;
  font-weight: 600;
}

/* --- HEADER & NAVIGATION --- */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(44,114,55,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  min-height: 64px;
}
header img[alt="Blühende Epochen"] {
  height: 44px;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #26303a;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.17s, border-bottom-color 0.17s;
}
.main-nav a:hover, .main-nav a:focus {
  color: #2C7237;
  border-bottom-color: #2C7237;
}

.cta-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
  padding: 11px 28px;
  color: #fff;
  background: #2C7237;
  border-radius: 22px;
  font-weight: 600;
  border: none;
  margin-left: 24px;
  box-shadow: 0 2px 10px 0 rgba(44,114,55,0.12);
  transition: background 0.16s, box-shadow 0.17s, transform 0.13s;
  cursor: pointer;
  display: inline-block;
  outline: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: #245d2c;
  box-shadow: 0 4px 20px 0 rgba(44,114,55,0.15);
  transform: translateY(-2px) scale(1.02);
  text-decoration: none;
}

/* --- TABLES --- */
table {
  width: 100%;
  border-collapse: collapse;
  background: #f8faf7;
  margin-bottom: 18px;
  font-size: 1rem;
  border-radius: 8px;
  overflow: hidden;
}
table caption {
  text-align: left;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #2C7237;
  margin-bottom: 8px;
}
thead tr {
  background: #e0ebe4;
}
th, td {
  padding: 14px 10px;
  border-bottom: 1px solid #dbe6e0;
  text-align: left;
}
th {
  color: #2C7237;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1.06rem;
}
tbody tr:last-child td {
  border-bottom: none;
}
tbody tr:hover {
  background: #e9efe7;
}


/* --- FOOTER --- */
footer {
  background: #26303a;
  color: #fff;
  padding: 40px 0 22px 0;
  font-size: 0.95rem;
}
.footer-nav {
  display: flex;
  gap: 28px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #dde5e0;
  font-weight: 600;
  font-size: 1rem;
}
.footer-nav a:hover {
  color: #A57D3B;
  text-decoration: underline;
}
footer p {
  color: #e7f1eb;
  margin-top: 3px;
  font-size: 0.9rem;
}


/* --- ICONS IN LISTS --- */
.text-section ul,
.text-section li {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin-left: 0;
}
.text-section ul {
  flex-direction: column;
  gap: 8px;
}
.text-section li img {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

ul, ol {
  margin-left: 18px;
  margin-bottom: 18px;
}


/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: #2C7237;
  color: #fff;
  font-size: 1.9rem;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 24px;
  top: 17px;
  z-index: 1202;
  transition: background 0.13s, box-shadow 0.13s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #245d2c;
  box-shadow: 0 2px 10px 0 rgba(44,114,55,0.10);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(38,48,58,0.96);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.35);
  z-index: 1201;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  margin: 24px 24px 0 0;
  cursor: pointer;
  padding: 0 4px;
  outline: none;
  transition: color 0.18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #A57D3B;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: flex-start;
  margin-top: 32px;
  padding: 0 38px;
  gap: 24px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  color: #fff;
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid #294831;
  width: 100%;
  transition: color 0.19s;
  display: block;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #A57D3B;
}

/* --- RESPONSIVENESS --- */
@media (max-width: 950px) {
  .container {
    max-width: 98vw;
    padding-left: 10px;
    padding-right: 10px;
  }
  .main-nav {
    gap: 14px;
  }
  .footer-nav {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  .container {
    padding: 0 5px;
  }
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  .main-nav {
    display: none;
  }
  .cta-btn {
    margin-left: 14px;
    font-size: 1rem;
    padding: 10px 20px;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .content-wrapper {
    padding-left: 0;
    padding-right: 0;
    gap: 16px;
  }
  section, .section {
    padding: 24px 7px;
    margin-bottom: 32px;
    border-radius: 8px;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.3rem;
  }
  h3 {
    font-size: 1.1rem;
  }
  table th,
  table td {
    padding: 10px 5px;
    font-size: 0.96rem;
  }
  .features-grid, .card-container, .services-cards, .service-list, .content-grid {
    gap: 14px;
  }
  .features-grid > div,
  .services-cards > div,
  .service-list > div {
    padding: 15px 10px;
  }
  .content-grid,
  .card-container,
  .features-grid,
  .services-cards,
  .service-list {
    flex-direction: column;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    padding: 15px 10px;
    font-size: 0.99rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.1rem; }
  .cta-btn { font-size: 0.98rem; padding: 8px 12px; }
}


/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 16px 0 rgba(44,114,55,0.11);
  z-index: 9999;
  padding: 26px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  transition: transform 0.32s, opacity 0.22s;
  font-size: 1rem;
}
.cookie-banner.hide {
  transform: translateY(110%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-message {
  color: #26303a;
  max-width: 680px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 7px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border: none;
  outline: none;
  padding: 9px 26px;
  font-size: 1rem;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.18s, color 0.16s;
  background: #2C7237;
  color: #fff;
  margin-right: 8px;
}
.cookie-btn.setting {
  background: #A57D3B;
}
.cookie-btn.reject {
  background: #798683;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #245d2c;
  color: #fff;
}
.cookie-btn.setting:hover, .cookie-btn.setting:focus {
  background: #6B4E19;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #485958;
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal-bg {
  position: fixed;
  overflow: auto;
  inset: 0;
  background: rgba(38, 48, 58, 0.35);
  z-index: 12004;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s;
}
.cookie-modal-bg.open {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 28px 0 rgba(44,114,55,0.16);
  min-width: 320px;
  max-width: 98vw;
  width: 395px;
  padding: 34px 28px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.cookie-modal h3 {
  color: #2C7237;
  font-size: 1.25rem;
  margin-bottom: 0px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0 9px 0;
  border-bottom: 1px solid #ebede6;
}
.cookie-modal label {
  font-size: 1rem;
  color: #26303a;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #ecf1ed;
  border-radius: 12px;
  position: relative;
  display: inline-block;
  transition: background 0.14s;
  margin-left: 5px;
}
.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #A57D3B;
  border-radius: 50%;
  transition: left 0.18s, background 0.18s;
}
.cookie-toggle.enabled {
  background: #d5ebdb;
}
.cookie-toggle.enabled .cookie-slider {
  left: 18px;
  background: #2C7237;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #2C7237;
  cursor: pointer;
  transition: color 0.15s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  color: #A57D3B;
}
.cookie-modal .cookie-footer-buttons {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}

@media (max-width: 600px) {
  .cookie-modal {
    min-width: 94vw;
    width: 98vw;
    padding: 28px 8px 16px 8px;
  }
  .cookie-modal h3 {
    font-size: 1.1rem;
  }
}

/* --- ANIMATIONS / MICRO-INTERACTIONS --- */
.cta-btn, .cookie-btn, .main-nav a, .mobile-nav a {
  transition: background 0.17s, color 0.15s, box-shadow 0.14s, border-bottom-color 0.18s, transform 0.13s;
}
section, .section, .testimonial-card, .card, .features-grid>div, .services-cards>div, .service-list>div {
  transition: box-shadow 0.18s, background 0.16s, border-color 0.14s, transform 0.15s;
}
section:hover, .section:hover, .card:hover, .features-grid>div:hover, .testimonial-card:hover {
  transform: translateY(-4px) scale(1.015);
}

::-webkit-scrollbar {
  width: 8px;
  background: #ebede6;
}
::-webkit-scrollbar-thumb {
  background: #b6c3ba;
  border-radius: 8px;
}

/* --- ACCESSIBILITY --- */
:focus {
  outline: 2px solid #2C7237;
  outline-offset: 1px;
}

/* --- PRINT STYLES --- */
@media print {
  .mobile-menu,
  .main-nav,
  header,
  footer,
  .cta-btn,
  .cookie-banner,
  .cookie-modal-bg {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  section, .section {
    margin-bottom: 32px;
    box-shadow: none;
    border-radius: 0;
    background: none;
  }
}
