/* --- CSS RESET & BASE --- */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
html, body { height: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0;
  padding: 0;
  font-weight: normal;
}
ul, ol { list-style: none; }
img, picture { max-width: 100%; display: block; border: 0; }
button, input, select, textarea { font-family: inherit; font-size: 100%; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; }
:root {
  --primary: #245D36;
  --primary-rgb: 36,93,54;
  --secondary: #74C476;
  --accent: #F8F6F0;
  --black: #232323;
  --white: #fff;
  --error: #D34B2B;
  --success: #249674;

  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Roboto', Arial, Helvetica, sans-serif;

  --radius: 20px;
  --shadow-lg: 0 8px 32px rgba(36,93,54,0.14), 0 2px 8px rgba(36,93,54,0.10);
  --shadow-md: 0 4px 16px rgba(36,93,54,0.15);
  --shadow-sm: 0 2px 8px rgba(36,93,54,0.08);
}

body {
  background: var(--accent);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  letter-spacing: 0.01em;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
@media (max-width: 768px) {
  section {
    padding: 32px 10px;
    margin-bottom: 40px;
  }
}
.content-wrapper {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* --- TYPOGRAPHY --- */
h1, .display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1.08;
  color: var(--primary);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 16px;
  color: var(--primary);
  letter-spacing: -0.01em;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: var(--secondary);
}
.subheadline {
  font-size: 1.15rem;
  color: #508261;
  font-weight: 500;
  font-family: var(--font-body);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
p, li, address {
  font-size: 1rem;
  color: var(--primary);
  font-family: var(--font-body);
}
strong {
  font-weight: 700;
}
a { transition: color 0.2s; }
a:hover { color: var(--secondary); }

/* --- HEADER & NAVIGATION --- */
header {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 15px;
  padding-bottom: 15px;
}
.logo img { height: 40px; width: auto; }
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-left: 32px;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--primary);
  padding: 7px 10px;
  border-radius: 12px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
.cta-btn {
  font-family: var(--font-display);
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  padding: 9px 26px;
  border-radius: 40px;
  box-shadow: var(--shadow-sm);
  margin-left: 20px;
  letter-spacing: 0.01em;
  font-size: 1.15rem;
  transition: background 0.22s, box-shadow 0.22s, color 0.22s, transform 0.13s;
  border: 2px solid var(--primary);
  display: inline-block;
}
.cta-btn.primary {
  background: linear-gradient(90deg, var(--secondary) 50%, var(--primary) 100%);
  color: var(--white);
  border: none;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
  transform: translateY(-2px) scale(1.03);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  line-height: 1;
  background: var(--secondary);
  color: var(--white);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
  outline: 0 none;
  margin-left: auto;
  transition: background 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus{
  background: var(--primary);
  color: var(--white);
}

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

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu {
  position: fixed;
  z-index: 1004;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(36,93,54,0.97);
  color: var(--white);
  transform: translateX(100%);
  transition: transform 0.44s cubic-bezier(0.77,0,.18,1);
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: none;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: auto;
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.2rem;
  color: var(--white);
  margin: 16px 20px 8px 0;
  background: transparent;
  transition: color 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: 40px;
  margin-top: 32px;
  gap: 16px;
}
.mobile-nav a {
  color: var(--white);
  font-size: 1.22rem;
  font-family: var(--font-display);
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  min-width: 195px;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
}
@media (min-width: 981px) {
  .mobile-menu, .mobile-menu-toggle { display: none !important; }
}

/* --- HERO/SECTIONS/CARDS/FLEXBOX LAYOUTS --- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 24px;
}
.feature, .service-item {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 20px 18px;
  flex: 1 1 238px;
  min-width: 220px;
  max-width: 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  position: relative;
  transition: box-shadow 0.19s, transform 0.19s;
}
.feature img {
  width: 48px; height: 48px; margin-bottom: 10px;
}
.feature:hover, .service-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-7px) scale(1.03);
}

.services-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.service-item {
  flex: 1 1 270px;
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 360px;
}

.service-highlights ul, .benefits-list ul, .plant-advantages ul, .faq-snippets ul {
  margin-top: 6px;
  padding-left: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.plant-advantages h3, .faq-snippets h3, .benefits-list h3 { margin-bottom: 5px; }

/* --- Testimonials --- */
.testimonials-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
  justify-content: flex-start;
}
.testimonial-card {
  background: var(--white);
  color: var(--primary);
  border-left: 7px solid var(--secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 24px 22px;
  flex: 1 1 276px;
  min-width: 240px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, border-color 0.2s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(36,93,54,0.18), 0 2px 8px rgba(36,93,54,0.09);
  border-left-color: var(--primary);
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #4B814E;
  font-style: italic;
}
.testimonial-meta span:first-child {
  color: #F2B63D;
  font-size: 1.1em;
  margin-right: 8px;
}

/* --- Footer --- */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 36px 0;
  margin-top: 48px;
  box-shadow: 0 -6px 16px #144c2640;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}
.footer-main > * {
  flex: 1 1 175px;
  min-width: 165px;
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--secondary);
  font-family: var(--font-display);
  font-size: 1.01rem;
  margin-bottom: 3px;
  transition: color 0.18s;
}
.footer-links a:hover, .footer-links a:focus { color: var(--accent); }
.mini-about {
  font-size: 0.98rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.contact-mini address, footer address {
  font-size: 0.97rem;
  color: var(--accent);
  font-style: normal;
}
footer .logo img, footer .logo {
  height: 40px;
}
@media (max-width: 980px) {
  .footer-main {
    flex-direction: column;
    gap: 18px;
  }
  .footer-main > * { min-width: 0; }
}

/* --- BUTTONS & LINKS --- */
button, .cta-btn, .mobile-menu-toggle {
  transition: background 0.22s, color 0.22s, box-shadow 0.19s, transform 0.19s;
}
.cta-btn.primary {
  background: linear-gradient(90deg, var(--secondary) 0%, var(--primary) 100%);
  color: var(--white);
  border: none;
}
.cta-btn.primary:hover {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* --- FLEX UTILITIES (MANDATORY PATTERNS) --- */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- SPACING & WHITE SPACE --- */
.content-wrapper:not(:last-child) { margin-bottom: 24px; }
.card:not(:last-child) { margin-bottom: 24px; }
.feature:not(:last-child), .service-item:not(:last-child) { margin-bottom: 20px; }

/* --- MAP PREVIEW (Kontakt) --- */
.map-preview {
  background: var(--accent);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow-md);
  margin: 18px 0 20px 0;
  font-size: 1.06rem;
  color: var(--primary);
}

/* --- FORM CONFIRMATION --- */
.confirmation-message {
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px 20px;
  margin: 20px 0;
  font-size: 1.12rem;
  text-align: left;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 9999;
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 -3px 22px rgba(36,93,54,0.19);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 18px 22px 18px;
  animation: slideUp .7s cubic-bezier(0.18,1,0.3,1.1);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner-content {
  flex: 1 1 60%;
  font-size: 1rem;
}
.cookie-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cookie-btn, .cookie-btn-accent {
  border-radius: 32px;
  padding: 8px 21px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  background: var(--secondary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(36,93,54,0.12);
  transition: background 0.18s, color 0.18s, transform 0.1s;
}
.cookie-btn-accent {
  background: var(--primary);
}
.cookie-btn:hover, .cookie-btn-accent:hover { background: #508261; color: var(--white); transform: translateY(-2px); }
.cookie-btn:last-child {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}
.cookie-btn:last-child:hover { background: var(--accent); color: var(--secondary); border-color: var(--secondary); }

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36,93,54,0.79);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  animation: fadeIn .4s cubic-bezier(.22,1,.36,1);
}
.cookie-modal-overlay.active {
  display: flex;
}
@keyframes fadeIn {
  from{opacity:0;}
  to{opacity:1;}
}
.cookie-modal {
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
  min-width: 340px;
  max-width: 97vw;
  padding: 36px 32px 26px 32px;
  color: var(--primary);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal h2 {
  font-size: 1.44rem;
  color: var(--primary);
  margin-bottom: 6px;
}
.cookie-cat-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.cookie-cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.07rem;
  color: var(--primary);
}
.cookie-cat-toggle {
  width: 36px; height: 20px; border-radius: 16px;
  background: var(--accent);
  border: 1px solid #d1e4db;
  position: relative; margin-left: auto;
  transition: background 0.18s;
  display: flex; align-items: center;
}
.cookie-cat-toggle[aria-checked="true"] {
  background: var(--secondary);
}
.cookie-cat-toggle::after {
  content: '';
  display: block;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
  left: 2px; top: 1.2px;
  box-shadow: 0 1px 3px #214e3344;
  transition: left 0.15s;
}
.cookie-cat-toggle[aria-checked="true"]::after {
  left: 17px;
  background: var(--white);
}
.cookie-modal-close {
  position: absolute; right: 18px; top: 16px;
  font-size: 1.2rem; color: var(--primary);
  background: transparent; border: none; padding: 0; cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal-close:hover { color: var(--secondary); }
.cookie-modal-footer{ display: flex; flex-direction: row; gap: 12px; justify-content: flex-end; margin-top: 10px; }

/* --- ACCENT & ARTISTIC EFFECTS --- */
h1, h2, .display {
  position: relative;
}
.display::after, h1::after, h2::after {
  content: '';
  display: block;
  width: 65px;
  height: 4px;
  border-radius: 6px;
  background: var(--secondary);
  margin-top: 8px;
  margin-bottom: -12px;
}
/* Artistic decorative colored dots for headings */
h1::before, h2::before {
  content: '';
  display: inline-block;
  background: #ffdb67;
  width: 13px; height: 13px;
  border-radius: 50%;
  margin-right: 13px;
  margin-bottom: 3px;
  box-shadow: 0 0 0 3px #eeeeee90;
  vertical-align: middle;
}
.display::before {
  content: none;
}
.subheadline {
  position: relative;
  padding-left: 16px;
}
.subheadline::before {
  content: '';
  width: 8px; height: 8px;
  background: #ffe682;
  border-radius: 50%;
  position: absolute; left: 0; top: 8px;
  display: inline-block;
}
/* Artistic underline for links inside text-section */
.text-section a {
  border-bottom: 2px dotted var(--secondary);
  position: relative;
  transition: border 0.19s;
}
.text-section a:hover { border-bottom: 2px solid var(--primary); }

/* --- MEDIA QUERIES / RESPONSIVENESS --- */
@media (max-width: 1024px) {
  .container { max-width: 96vw; }
  .content-wrapper { max-width: 94vw; }
}
@media (max-width: 900px) {
  .features-grid, .services-list, .testimonials-grid, .content-grid {
    flex-direction: column;
    gap: 20px;
  }
  .feature, .service-item, .testimonial-card { max-width: 98vw; min-width: 0; width: 100%; }
}
@media (max-width: 768px) {
  h1, .display { font-size: 2.0rem; }
  h2 { font-size: 1.36rem; }
  section {
    margin-bottom: 40px;
    padding: 26px 6px 32px 6px;
  }
  .container { padding: 0 7px; }
  .content-wrapper { padding: 0; }
  .text-section, .content-wrapper {
    gap: 15px;
  }
}
@media (max-width: 575px) {
  .container { max-width: 100vw; }
  .content-wrapper { max-width: 99vw; }
  .footer-main > * { min-width: 120px; }
  .cookie-modal { min-width: 96vw; padding: 24px 8px 18px; }
}
@media (max-width: 450px) {
  h1, .display { font-size: 1.23rem; }
  h2 { font-size: 1.07rem; }
  .cta-btn { font-size: 1rem; padding: 8px 14px; }
  .service-item, .feature, .testimonial-card { padding: 14px 7px; }
}

/* --- UNIQUE ARTISTIC ELEMENTS / MICRO-INTERACTIONS --- */
.card::after, .feature::after, .service-item::after {
  content: '';
  position: absolute;
  bottom: 13px; right: 15px;
  width: 25px; height: 25px;
  border-radius: 50%;
  background: rgba(115,196,118,0.06);
  z-index: 1;
  pointer-events: none;
}
.card:hover::after, .feature:hover::after, .service-item:hover::after {
  background: rgba(115,196,118,0.17);
}

/* --- ACCESSIBILITY/FOCUS STATES --- */
a:focus, button:focus, .cookie-btn:focus, .cta-btn:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* --- UTILITY CLASSES --- */
.hide-mobile { display: none; }
@media (min-width: 981px) {
  .hide-mobile { display: unset; }
}

.show-mobile { display: unset; }
@media (min-width: 981px) {
  .show-mobile { display: none; }
}

/* --- END CSS --- */
