/* CSS 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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 100%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  background: #f7faf9;
  color: #1b2e28;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  padding-left: 1.5rem;
}
a {
  color: #22594a;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #f5c162;
  outline: none;
}

/* Typography hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #22594a;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 8px;
}
p, li, address {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #384e45;
}
strong {
  color: #22594a;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section {
  background: #ffffff;
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(34, 89, 74, 0.04), 0 0.5px 1.5px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.card {
  flex: 1 1 270px;
  background: #f4f7f5;
  margin-bottom: 20px;
  border-radius: 16px;
  padding: 26px 20px;
  box-shadow: 0 2px 8px rgba(34, 89, 74, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 6px 16px rgba(34, 89, 74, 0.13);
  transform: translateY(-3px);
}

.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;
  margin-bottom: 40px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  background: #f2f8f5;
  border-radius: 15px;
  box-shadow: 0 1.5px 7px rgba(34, 89, 74, 0.07);
  color: #24392e;
  font-size: 1rem;
  min-width: 260px;
  max-width: 350px;
  flex: 1 1 270px;
  margin-bottom: 20px;
}
.testimonial-card p {
  color: #23422f;
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: #60796e;
  font-size: 0.97rem;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 20px;
}
.feature-grid > div {
  background: #f9fcfa;
  border-radius: 14px;
  padding: 20px 14px;
  min-width: 200px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  box-shadow: 0 1px 5px rgba(34, 89, 74, 0.08);
  transition: box-shadow 0.2s, transform 0.21s;
}
.feature-grid > div:hover {
  box-shadow: 0 5px 16px rgba(34, 89, 74, 0.12);
  transform: translateY(-2.5px) scale(1.01);
}
.feature-grid img {
  width: 45px;
  height: 45px;
  margin-bottom: 2px;
}

/* Article List */
.article-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.article-list li {
  background: #eff5f2;
  border-radius: 13px;
  padding: 22px 18px;
  box-shadow: 0 1px 8px rgba(34, 89, 74, 0.04);
  flex: 1 1 250px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.article-list a {
  color: #22594a;
  font-weight: 600;
  transition: color 0.2s;
}
.article-list a:hover {
  color: #f5c162;
}

/* Feature Item */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* Special team card (About page) */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.team-grid > div {
  background: #f9fcfa;
  flex: 1 1 220px;
  min-width: 200px;
  border-radius: 14px;
  box-shadow: 0 1px 5px rgba(34, 89, 74, 0.04);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

/* Header Styles */
header {
  width: 100%;
  background: #ffffff;
  padding-top: 16px;
  padding-bottom: 16px;
  box-shadow: 0 2px 10px rgba(92,107,92,0.07);
  border-bottom: 2px solid #c6e3c1;
  position: relative;
  z-index: 20;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 22px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #22594a;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
  z-index: 1;
}
header nav a.cta {
  background: #22594a;
  color: #fff5e2;
  padding: 10px 18px;
  font-weight: 700;
  border-radius: 10px;
  margin-left: 10px;
  box-shadow: 0 1.5px 7px rgba(34, 89, 74, 0.09);
  transition: background 0.21s, color 0.21s;
}
header nav a.cta:hover {
  background: #19725e;
  color: #f5c162;
}
header nav a:hover:not(.cta), header nav a:focus:not(.cta) {
  color: #fff;
  background: #22594a;
}
header img {
  height: 52px;
  margin-right: 30px;
}
/* Hide nav on mobile, show burger */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #22594a;
  padding: 7px 11px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 10;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #c6e3c1;
}
@media (max-width: 980px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 90vw;
  min-width: 270px;
  max-width: 420px;
  z-index: 9999;
  box-shadow: 1px 0 18px rgba(34, 89, 74, 0.16);
  transform: translateX(-120%);
  transition: transform 0.33s cubic-bezier(0.84,0.12,0.36,0.95);
  padding: 36px 28px 16px 28px;
  gap: 28px;
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #22594a;
  cursor: pointer;
  margin-bottom: 18px;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: #f5c162;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.17rem;
  color: #22594a;
  padding: 12px 2px;
  border-radius: 8px;
  font-weight: 600;
  transition: color 0.19s, background 0.15s;
}
.mobile-nav a:hover {
  background: #c6e3c1;
  color: #163329;
}
@media (max-width: 980px) {
  .mobile-menu {
    display: flex;
  }
}
@media (min-width: 981px) {
  .mobile-menu {
    display: none !important;
  }
}

/* Main Buttons & Links */
.cta {
  display: inline-block;
  background: #22594a;
  color: #fff5e2;
  padding: 13px 28px;
  border-radius: 11px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  box-shadow: 0 2px 8px rgba(34, 89, 74, 0.13);
  transition: background 0.19s, color 0.18s, transform 0.15s;
  border: none;
  cursor: pointer;
  margin-top: 6px;
}
.cta:hover, .cta:focus {
  background: #19725e;
  color: #f5c162;
  transform: translateY(-2px) scale(1.02);
  outline: none;
}

/* Footer Styles */
footer {
  width: 100%;
  background: #22594a;
  color: #f2f5f0;
  padding: 42px 0 0 0;
  margin-top: 60px;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -1px 16px rgba(34, 89, 74, 0.06);
}
footer .container {
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 38px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 32px;
}
.footer-links, .footer-contact, .footer-social, .footer-legal {
  flex: 1 1 155px;
  min-width: 155px;
  color: #f2f7f3;
}
.footer-links h3, .footer-contact h3, .footer-social h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.04rem;
  margin-bottom: 11px;
  color: #fff9ea;
  font-weight: 700;
}
.footer-links nav, .footer-legal nav, .footer-social nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 7px;
}
.footer-links a, .footer-legal a {
  color: #e7efe6;
  font-size: 1rem;
  padding: 4px 0;
  border-radius: 4px;
  transition: color 0.18s, background 0.17s;
}
.footer-links a:hover, .footer-legal a:hover {
  color: #f5c162;
  background: #173b2d;
}
.footer-contact img {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}
.footer-social nav {
  flex-direction: row;
  gap: 14px;
}
.footer-social img {
  width: 29px;
  height: 29px;
  filter: brightness(0.9) invert(0.98) sepia(0.14) saturate(2.5) hue-rotate(30deg);
  transition: filter 0.18s;
}
.footer-social a:hover img {
  filter: brightness(1.2) invert(0.4) sepia(0.7) saturate(5) hue-rotate(0deg);
}
.footer-legal a {
  font-size: 0.98rem;
  color: #d5efe5;
}
footer p {
  color: #f8f8f6;
  font-size: 1rem;
}

@media (max-width: 900px) {
  footer .content-wrapper {
    gap: 22px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #ffffff;
  box-shadow: 0 -2px 15px rgba(34,89,74,0.13);
  border-top: 2px solid #c6e3c1;
  z-index: 10800;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 20px 15px 20px 17px;
  animation: slideBannerIn 0.55s cubic-bezier(0.17,0.55,0.55,1) 0.0s;
}
@keyframes slideBannerIn {
  0% {transform: translateY(100%); opacity: 0;}
  60% {transform: translateY(-16px); opacity: 1;}
  100% {transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  color: #23422f;
  font-size: 0.97rem;
  margin-bottom: 0;
  margin-right: 16px;
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 12px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.97rem;
  background: #22594a;
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 9px 19px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.17s, color 0.17s;
  margin: 0 0 0 0;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: #19725e;
  color: #f5c162;
}
.cookie-banner button.cookie-settings {
  background: #f5c162;
  color: #163329;
  border: 1.5px solid #d1a138;
}
.cookie-banner button.cookie-settings:hover {
  background: #ffe3b3;
  color: #22594a;
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 24px 8px;
  }
  .cookie-banner .cookie-buttons {
    gap: 9px;
  }
}

/* Cookie Modal Styles */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,89,74,0.13);
  z-index: 11000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: bgFadeIn 0.23s;
}
@keyframes bgFadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2.5px 26px rgba(34, 89, 74, 0.14);
  padding: 38px 24px 30px 24px;
  max-width: 410px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: modalIn 0.34s cubic-bezier(0.17,0.55,0.55,1) 0.0s;
}
@keyframes modalIn {
  from {transform: scale(0.96) translateY(60px); opacity: 0;} to {transform: scale(1) translateY(0); opacity: 1;}
}
.cookie-modal h2 {
  color: #22594a;
  font-size: 1.25rem;
  margin-bottom: 0px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cookie-category label {
  color: #22594a;
  font-size: 1rem;
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  accent-color: #22594a;
  width: 20px; height: 20px;
}
.cookie-category.essential label { opacity: 0.62; font-style: italic; }
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 7px;
  margin-top: 7px;
  align-items: center;
}
.cookie-modal-close {
  position: absolute;
  top: 17px;
  right: 19px;
  font-size: 1.3rem;
  background: none;
  border: none;
  color: #22594a;
  cursor: pointer;
  transition: color 0.2s;
}
.cookie-modal-close:hover {
  color: #f5c162;
}
.cookie-modal button {
  padding: 8px 20px;
  margin-top: 12px;
}

/* Responsive Flex Directions */
@media (max-width: 900px) {
  .feature-grid, .testimonial-slider, .card-container, .team-grid, .article-list, .content-grid {
    flex-direction: column;
    gap: 24px !important;
  }
  .content-wrapper { gap: 16px; }
}
@media (max-width: 800px) {
  .section, .card, .feature-grid > div, .team-grid > div, .article-list li {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media (max-width: 600px) {
  h1 { font-size: 1.65rem; }
  h2 { font-size: 1.32rem; }
  .section {
    padding: 26px 5vw;
    border-radius: 13px;
  }
  .container {
    padding: 0 10px;
  }
  .feature-grid > div, .team-grid > div, .article-list li {
    min-width: 0;
  }
}

/* List/UL Styling */
ul, ol {
  margin-bottom: 16px;
}
ul li, ol li {
  margin-bottom: 6px;
  padding-left: 2px;
  font-size: 1rem;
  color: #405e51;
}
ul li::marker {
  color: #f5c162;
}

/* Forms (Kontakt page address etc.) */
address {
  font-style: normal;
  background: #f7faf9;
  padding: 18px 13px;
  border-radius: 10px;
  box-shadow: 0 1px 5px rgba(34, 89, 74, 0.08);
  margin-bottom: 13px;
  line-height: 1.7;
  color: #24392e;
}

/* Animations for hover/focus */
button, .cta {
  transition: background 0.14s, color 0.12s, transform 0.13s;
}
button:active, .cta:active {
  transform: scale(0.97);
}

/* Utility Classes */
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }

/* Hide scroll when mobile menu/cookie modal open */
body.mobile-menu-open, body.cookie-modal-open {
  overflow: hidden;
}

/* Ensure no overlapping for cards/sections */
.section, .card, .feature-grid > div, .testimonial-card, .article-list li, .team-grid > div {
  margin-bottom: 20px;
}

/* Fix for z-index stacking of banners and overlays */
body > .cookie-banner, body > .cookie-modal-overlay {
  z-index: 10999;
}

/* Error and success messages (optional) */
.form-error {
  color: #b94a48;
  background: #fae1e1;
  border-radius: 8px;
  padding: 6px 12px;
}
.form-success {
  color: #22594a;
  background: #c6e3c1;
  border-radius: 8px;
  padding: 6px 12px;
}

/* Accessibility: Focus visible transitions */
:focus-visible {
  outline: 2px solid #f5c162;
  outline-offset: 3px;
  transition: outline 0.14s;
}

/* Support for images/icons (natural look) */
img[alt*="Icon"], img[alt*="icon"] {
  background: #e9f5ee;
  border-radius: 8px;
  padding: 5px;
}

/* Style for inactive links in footer legal */
.footer-legal a:active {
  background: #f5c162;
  color: #22594a;
}

/* END OF STYLE */
