/* CSS RESET & BASELINE NORMALIZATION */
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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}

html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  background: #ffffff;
  color: #1c2b1c;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  min-height: 100vh;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --primary: #24653a;
  --primary-dark: #153821;
  --secondary: #e7ecef;
  --background: #ffffff;
  --accent: #b1bf42;
  --accent-dark: #7a8a12;
  --grey: #e7ecef;
  --border: #d0d8df;
  --shadow: rgba(36,101,58,0.07);
}

/* TYPOGRAPHY SCALE */
h1, .h1 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-size: 2.5rem; font-weight: 700; color: var(--primary); line-height: 1.2; margin-bottom: 20px; }
h2, .h2 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-size: 2rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 16px; line-height: 1.22; }
h3, .h3 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-size: 1.25rem; font-weight: 500; color: var(--primary); margin-bottom: 12px; }
h4, .h4 { font-family: 'Montserrat', Arial, Helvetica, sans-serif; font-size: 1.125rem; font-weight: 500; color: var(--primary-dark); margin-bottom: 8px; }

p { font-size: 1rem; color: #334633; margin-bottom: 12px; }

ul, ol {
  margin-left: 20px;
  margin-bottom: 16px;
}
ul li, ol li { margin-bottom: 8px; }
strong { color: var(--primary-dark); font-weight: 700; }
a { color: var(--primary); text-decoration: underline; transition: color .2s; }
a:hover, a:focus { color: var(--accent-dark); text-decoration: none; outline: none; }

.brand-tagline {
  font-size: 1rem;
  color: var(--accent-dark);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
  margin-left: 16px;
  max-width: 380px;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
header {
  width: 100%;
  background: var(--background);
  padding: 24px 0 16px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 100;
}
.logo-header {
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo-header img {
  height: 56px;
  width: auto;
  display: block;
  border-radius: 8px;
}
.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 8px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.main-nav a {
  font-size: 1rem;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 8px 8px;
  position: relative;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--grey);
  color: var(--accent-dark);
}
.cta-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.125rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  box-shadow: 0 2px 10px var(--shadow);
  transition: background 0.18s, box-shadow .2s, transform .15s;
  display: inline-block;
}
.cta-button:hover, .cta-button:focus {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 8px 24px var(--shadow);
}

/* HERO SECTION */
.hero {
  background: var(--secondary);
  min-height: 360px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 40px 20px;
}
.hero .container {
  display: flex;
  align-items: center;
  min-height: 200px;
  justify-content: flex-start;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.hero h1 {
  font-size: 2.5rem;
  color: var(--primary);
}
.hero p {
  font-size: 1.25rem;
  color: #425647;
  margin-bottom: 18px;
  max-width: 560px;
}

/* SECTION SPACING / CARD PATTERNS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 16px var(--shadow);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .2s, transform .2s;
}
.card:hover {
  box-shadow: 0 8px 32px 0 rgba(36, 101, 58, 0.13);
  transform: translateY(-2px) scale(1.03);
}
.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: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 20px;
  position: relative;
  min-width: 240px;
  max-width: 630px;
  transition: box-shadow .2s, border .2s, background .25s;
}
.testimonial-card blockquote {
  color: #213124;
  font-size: 1.11rem;
  font-style: italic;
  margin: 0;
}
.testimonial-card .testimonial-meta {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.99rem;
  margin-left: 12px;
}
.testimonial-card.highlight {
  background: var(--secondary);
  border-color: var(--accent);
  box-shadow: 0 3px 18px rgba(123,155,40,0.12);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature Grid (for Leistungen, Preise, Kundenstimmen, etc.) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 24px 0 0 0;
}
.feature {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 11px var(--shadow);
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 340px;
  padding: 28px 21px 21px 21px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow .18s, border .18s;
  margin-bottom: 20px;
  gap: 10px;
}
.feature img {
  height: 38px;
  margin-bottom: 16px;
}
.feature h3 { margin-bottom: 6px; }
.feature p { color: #3c4d3a; }
.feature:hover {
  border-color: var(--accent);
  box-shadow: 0 7px 30px var(--shadow);
}

/* cta-section */
.cta-section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: 0 3px 16px rgba(123,189,80,.075);
  display: flex;
  align-items: center;
}
.cta-section .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.cta-section h2 { color: var(--primary-dark); }

/* PRICING TABLE */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0 30px 0;
  background: var(--background);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1.5px 10px var(--shadow);
  font-size: 1rem;
}
.pricing-table th, .pricing-table td {
  padding: 16px 16px;
  text-align: left;
}
.pricing-table th {
  background: var(--grey);
  color: var(--primary-dark);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.1rem;
}
.pricing-table td {
  border-bottom: 1px solid var(--border);
  color: #334633;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

.pricing-notes {
  margin-top: 17px;
  background: var(--secondary);
  border-radius: 11px;
  padding: 16px 21px 16px 21px;
  color: var(--primary-dark);
}
.pricing-notes h3 {
  font-size: 1.15rem;
  margin-bottom: 7px;
  color: var(--primary);
}

/* LISTS in FEATURES, etc */
.feature-benefits, .service-benefits ul, .list-features {
  list-style: disc inside;
  color: #334633;
  margin-top: 10px;
}
.service-benefits h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

/* SERVICE LISTS */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
}
.service {
  background: var(--secondary);
  border-radius: 14px;
  box-shadow: 0 1.5px 10px var(--shadow);
  border: 1px solid var(--border);
  flex: 1 1 280px;
  min-width: 220px;
  max-width: 600px;
  padding: 24px 21px 17px 21px;
  margin-bottom: 20px;
}
.service h2 {
  margin-bottom: 9px;
  font-size: 1.32rem;
  color: var(--primary-dark);
}
.service ul {
  margin-top: 8px;
}

/* TEXT BLOCKS AND SIDEBARS */
.text-section {
  margin-top: 13px;
  margin-bottom: 38px;
  background: #fff;
  border-radius: 12px;
  padding: 21px 21px;
  box-shadow: 0 0.5px 7px var(--shadow);
}
.text-section ul {
  margin-top: 8px;
}

.map-embed {
  background: var(--secondary);
  border-radius: 11px;
  padding: 14px 19px;
  font-size: 1rem;
  margin-top: 18px;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.project-stats ul {
  list-style: disc inside;
  color: var(--accent-dark);
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.service-highlights h3 {
  color: var(--primary-dark);
  margin-bottom: 9px;
}

/* TESTIMONIAL LIST */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}

.testimonial-card {
  min-width: 240px;
  max-width: 380px;
}

/* CONTACT DETAILS */
.contact-details {
  margin-bottom: 22px;
  background: var(--secondary);
  border-radius: 10px;
  padding: 18px 23px;
  box-shadow: 0 1.2px 6px var(--shadow);
  font-size: 1.05rem;
}

/* FOOTER */
footer {
  background: var(--background);
  padding: 36px 0 26px 0;
  border-top: 1.5px solid var(--border);
  margin-top: 64px;
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 14px;
}
.footer-nav a {
  font-size: 0.97rem;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 6px 7px;
  border-radius: 6px;
  transition: background .15s, color .13s;
}
.footer-nav a:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  color: #425647;
  font-size: 0.99rem;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-contact a {
  color: var(--primary);
}

/* MOBILE NAVIGATION */

.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 21px;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  border: none;
  padding: 10px 16px;
  border-radius: 7px;
  z-index: 1202;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(36,101,58,.16);
  transition: background .17s, transform .11s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--accent);
  outline: none;
  transform: scale(1.07);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: var(--background);
  box-shadow: 0 0 22px 8px rgba(36,101,58,.14);
  z-index: 2201;
  transform: translateX(-100vw);
  opacity: 0;
  transition: transform .35s cubic-bezier(.37,1.03,.77,.99), opacity .3s cubic-bezier(.37,1.03,.77,.99);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 16px 21px 10px 0;
  background: none;
  border: none;
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--primary);
  cursor: pointer;
  z-index: 2300;
  transition: color .19s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--accent-dark);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-start;
  padding: 0 25px 0 35px;
}
.mobile-nav a {
  font-size: 1.24rem;
  color: var(--primary-dark);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey);
  width: 100%;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  transition: color .18s, background .13s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  color: #fff;
  background: var(--accent-dark);
  border-radius: 8px;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1160px) {
  .container { max-width: 97vw; }
}
@media (max-width: 1023px) {
  .main-nav {
    gap: 16px;
    font-size: 1rem;
  }
  .brand-tagline { max-width: 250px; font-size: 0.98rem; }
}
@media (max-width: 900px) {
  .container { max-width: 98vw; }
  .brand-tagline{ display: none; }
}
@media (max-width: 850px) {
  .logo-header img { height: 48px; }
  .feature, .service { min-width: 160px; max-width: unset; flex: 1 1 210px; }
  .card { min-width: 180px; }
}
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 10px;
    padding: 13px 0 12px 0;
  }
  .logo-header img { height: 40px; }
  .hero h1 { font-size: 2rem; }
  .hero { padding: 28px 10px; min-height: 180px; }
  .container { padding: 0 8px; }
  .section, .cta-section { margin-bottom: 42px; padding: 22px 8px; }
  .card-container, .feature-grid, .service-list, .testimonial-list {
    gap: 13px;
  }
  .content-grid {
    gap: 12px;
  }
  .text-image-section, .content-wrapper {
    flex-direction: column !important;
    gap: 15px;
  }
  .feature, .service {
    min-width: 100%;
    padding: 14px 11px;
    margin-bottom: 14px;
  }
  .card {
    min-width: 100%;
    padding: 16px 9px;
    margin-bottom: 12px;
  }
  .pricing-table th, .pricing-table td {
    padding: 10px 7px;
    font-size: 0.97rem;
  }
  .cta-button { padding: 10px 14px; font-size: 1rem; }
}
@media (max-width: 710px) {
  .main-nav { display: none !important; }
  .cta-button { display: none; }
  .mobile-menu-toggle { display: block; }
  header { padding-top: 9px; padding-bottom: 7px; }
  .footer-nav { flex-direction: column; gap: 7px; }
}
@media (max-width: 485px) {
  h1, .h1 { font-size: 1.33rem; }
  h2, .h2 { font-size: 1.1rem; }
  .cta-button { font-size: 0.98rem; padding: 8px 10px; }
  .footer-contact { font-size: 0.88rem; }
}

/* ANIMATIONS */
.cta-button, .card, .testimonial-card, .feature, .service {
  transition: box-shadow .22s, background .18s, border .15s, transform .18s;
}
.cta-button:active, .mobile-menu-toggle:active {
  transform: scale(.97);
}
.card:active, .feature:active, .testimonial-card:active {
  transform: scale(.98);
}

/* FOCUS VISIBLE STYLES */
a:focus, button:focus, .cta-button:focus, .mobile-menu-close:focus {
  outline: 2.5px solid var(--accent);
  outline-offset: 1px;
}

/* COOKIE BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  color: #213124;
  box-shadow: 0 -2.5px 18px rgba(36,101,58,0.09);
  border-top: 1.5px solid var(--border);
  z-index: 2500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 24px 16px 17px 20px;
  font-size: 1rem;
  gap: 17px;
  min-height: 86px;
  animation: cookieAppear .55s cubic-bezier(.25,.84,.77,1.02) both;
  transition: transform .34s cubic-bezier(.47,1.42,.24,1.0), opacity .32s;
}
@keyframes cookieAppear {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-text {
  flex: 3 1 240px;
  font-size: 0.98rem;
  color: #213124;
  margin-right: 22px;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 0.98rem;
  padding: 10px 24px;
  margin-right: 0;
  border-radius: 9px;
  border: none;
  background: var(--secondary);
  color: var(--primary-dark);
  font-weight: 500;
  cursor: pointer;
  transition: background .16s, color .14s, box-shadow .13s;
  box-shadow: 0 1.5px 7px var(--shadow);
}
.cookie-banner button.accept {
  background: var(--primary);
  color: #fff;
}
.cookie-banner button.accept:hover, .cookie-banner button.accept:focus {
  background: var(--accent-dark);
}
.cookie-banner button.reject {
  background: none;
  border: 1px solid var(--border);
  color: var(--primary);
}
.cookie-banner button.reject:hover, .cookie-banner button.reject:focus {
  background: var(--grey);
}
.cookie-banner button.settings {
  background: var(--accent);
  color: #fff;
}
.cookie-banner button.settings:focus, .cookie-banner button.settings:hover {
  background: var(--accent-dark);
  color: #fff;
}
/* Hide on accept */
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: transform .39s, opacity .27s;
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,85,53, 0.33);
  z-index: 2600;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn .35s cubic-bezier(.37,1.03,.77,.99) both;
}
@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2.5px 30px var(--shadow);
  max-width: 420px;
  width: 92vw;
  padding: 34px 30px 24px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalPop .38s cubic-bezier(.26,0,.55,1.2) both;
}
@keyframes modalPop {
  0% { transform: scale(.85) translateY(40px); opacity: 0; }
  80%{ transform: scale(1.03) translateY(-10px); opacity: 1; }
  100%{ transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal .modal-close {
  position: absolute;
  top: 13px;
  right: 18px;
  background: none;
  border: none;
  color: var(--accent-dark);
  font-size: 1.8rem;
  cursor: pointer;
}
.cookie-modal h2 {
  font-size: 1.24rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0 3px 0;
  border-bottom: 1px solid var(--border);
}
.cookie-category:last-child { border-bottom: none; }
.cookie-category label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-dark);
  cursor: pointer;
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--accent);
  width: 19px;
  height: 19px;
  margin-right: 2px;
}
.cookie-category .always-enabled, .cookie-category input[type="checkbox"][disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 13px;
}
.cookie-modal .modal-actions button {
  padding: 9px 24px;
}

/* Animation for hiding modal */
.cookie-modal.hide {
  opacity: 0;
  transform: scale(.88) translateY(20px);
  pointer-events: none;
  transition: opacity .32s, transform .27s;
}

@media (max-width: 520px) {
  .cookie-banner {
    flex-direction: column;
    padding: 16px 4px 12px 7px;
    font-size: 0.96rem;
    gap: 11px;
  }
  .cookie-modal { padding: 19px 8px 13px 8px; }
}

/* SCROLLBAR minimalist */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-dark) var(--grey);
}
::-webkit-scrollbar {
  width: 9px; background: var(--grey); border-radius: 7px; }
::-webkit-scrollbar-thumb {
  background: var(--accent-dark); border-radius: 7px; }
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Accessibility: skip-to-content */
.skip-to-content {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  z-index: 5000;
}
.skip-to-content:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  font-size: 1.1rem;
  border-radius: 8px;
}
