/* --------------------------------------------------
   CSS RESET & BASE STYLES
-------------------------------------------------- */
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,
main, 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;
}
html {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  background: #F9F6EF;
  color: #1A3A5E;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #F9F6EF;
  color: #1A3A5E;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: #24A399;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #1A3A5E;
  text-decoration: underline;
}
ul, ol {
  padding-left: 22px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', Georgia, serif;
  color: #263B28;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
h1 { font-size: 2.25rem; line-height: 1.2; margin-bottom: 18px; }
h2 { font-size: 1.75rem; line-height: 1.25; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
p, li, table, td, th {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  color: #1A3A5E;
  margin-bottom: 12px;
}
strong, b { color: #263B28; font-weight: 700; }
em, i { color: #24A399; font-style: italic; }

/* --------------------------------------------------
   CONTAINER & SECTION STYLES
-------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(38,59,40,0.07);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .section { padding: 28px 10px; margin-bottom: 38px; }
  .container { padding: 0 6px; }
}

.content-wrapper {
  width: 100%;
}

/* --------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------- */
header {
  background: #E6EFE1;
  padding: 0;
  min-height: 68px;
  box-shadow: 0 2px 15px rgba(38,59,40,0.04);
  position: sticky;
  top: 0;
  z-index: 1099;
}
.header-logo {
  padding: 10px 0 10px 8px;
  height: 68px;
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 42px;
  width: auto;
  border-radius: 10px;
  background: #fff;
  padding: 2px 5px 2px 2px;
  box-shadow: 0 1px 3px rgba(38,59,40,0.12);
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  padding: 0 0 0 24px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}
.main-nav a {
  color: #263B28;
  border-radius: 22px;
  padding: 7px 18px;
  transition: background 0.18s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #24A3993d;
  color: #1A3A5E;
}

/* Responsive Header Layout */
header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}
@media (max-width: 1024px) {
  .main-nav { gap: 16px; padding-left: 10px; }
}

@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
    font-size: 0.95rem;
    padding-left: 0;
  }
}

/* MOBILE MENU BUTTON */
.mobile-menu-toggle {
  background: #fff;
  border: none;
  color: #1A3A5E;
  font-size: 2.1rem;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  z-index: 2002;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background:#24A39926;
  color: #24A399;
  outline: none;
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #F3F8F1;
  z-index: 2100;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.76,0,0.24,1);
  box-shadow: 6px 0 30px rgba(38,59,40, 0.18);
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: #fff;
  border: none;
  font-size: 2.1rem;
  color: #263B28;
  align-self: flex-end;
  margin: 18px 26px 2px 0;
  border-radius: 50%;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, color 0.18s;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(60,100,40, 0.11);
  z-index: 2201;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #EAF8F1;
  color: #24A399;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  align-items: flex-start;
  padding: 25px 32px;
  font-size: 1.12rem;
  margin-top: 0;
}
.mobile-nav a {
  color: #165642;
  border-radius: 15px;
  padding: 11px 14px;
  transition: background 0.17s, color 0.17s;
  font-weight: 600;
  width: 100%;
  display: flex;
  align-items: center;
  min-height: 42px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #1A3A5E;
  background: #24A39926;
}
@media (max-width: 900px) {
  .mobile-menu { display: flex; }
}
@media (min-width: 901px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* --------------------------------------------------
   CTA & BUTTONS
-------------------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 36px;
  font-size: 1.1rem;
  font-family: 'Roboto Slab', Georgia, serif;
  border-radius: 26px;
  background: #24A399;
  color: #fff;
  border: none;
  box-shadow: 0 2px 7px rgba(22,86,66,0.07);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.22s, color 0.2s, transform 0.12s;
  cursor: pointer;
  margin-top: 18px;
  margin-bottom: 18px;
  outline: none;
  text-decoration: none;
}
.cta.primary {
  background: #24A399;
  color: #fff;
}
.cta:hover, .cta:focus, .cta.primary:hover, .cta.primary:focus {
  background: #1A3A5E;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 5px 24px rgba(22,86,66,0.11);
}
.cta:active {
  background: #24A399;
  color: #e4fcec;
}

/* Minimal secondary-style button, for cookie modal */
.btn-secondary, .cta.secondary {
  background: #165642;
  color: #fff;
  border: none;
  outline: none;
  font-family: 'Roboto Slab', Georgia, serif;
  border-radius: 26px;
  padding: 11px 30px;
  font-weight: 500;
  transition: background 0.19s, color 0.18s;
  margin-top: 8px;
}
.btn-secondary:hover, .btn-secondary:focus, .cta.secondary:hover, .cta.secondary:focus {
  background: #24A399;
  color: #fff;
}

/* List button for cookie banner option */
.btn-ghost {
  background: #fff;
  color: #1A3A5E;
  border: 1.6px solid #A3A68A;
  font-family: 'Open Sans', Arial, sans-serif;
  border-radius: 26px;
  padding: 9px 20px;
  font-weight: 500;
  cursor: pointer;
  margin-left: 8px; margin-right: 8px;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-ghost:hover, .btn-ghost:focus {
  background: #F3F8F1;
  color: #1A3A5E;
  border-color: #24A399;
}

/* --------------------------------------------------
   ORGANIC-FEEL CARD CONTAINERS
-------------------------------------------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 16px 0 16px 0;
}
.card {
  background: #fff;
  border-radius: 20px 32px 16px 28px;
  /* Organic soft shape */
  box-shadow: 0 2px 16px rgba(60,100,40,0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 26px 24px 24px 24px;
  display: flex;
  flex-direction: column;
  min-width: 270px;
  flex: 1 1 290px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 28px rgba(22,86,66,0.13);
  transform: translateY(-4px) scale(1.015);
}

/* Neutral/organic accents on icon cards */
.card img, .feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  border-radius: 18px 19px 12px 16px;
  background: #E6EFE1;
  box-shadow: 0 1px 5px rgba(60,100,40,0.08);
  padding: 6px;
}

/* Feature grid (cards of features with icons/text) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
  margin-bottom: 6px;
  align-items: stretch;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 230px;
  background: #F3F8F1;
  border-radius: 20px 32px 16px 28px;
  box-shadow: 0 2px 8px rgba(60,100,40,0.06);
  padding: 20px 18px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  transition: box-shadow 0.19s, transform 0.16s;
}
.feature-grid > div:hover {
  box-shadow: 0 5px 18px rgba(38,59,40,0.17);
  transform: translateY(-2px) scale(1.01);
}
.feature-grid h3 {
  color: #1A3A5E;
  font-size: 1.12rem;
  margin-bottom: 3px;
  margin-top: 1px;
}
@media (max-width: 1024px) {
  .feature-grid {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
}

/* Text-image (side by side) sections for visual support */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
@media (max-width: 900px) {
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
}

.text-section {
  margin-bottom: 22px;
  font-size: 1.04rem;
  word-break: break-word;
}
.text-section ul {
  margin-bottom: 10px;
}
.text-section li {
  margin-bottom: 7px;
}

/* Testimonial/Review card UI */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #F3F8F1;
  border-radius: 22px 30px 18px 32px;
  box-shadow: 0 2px 8px rgba(60,100,40,0.09);
  color: #1A3A5E;
  font-size: 1.05rem;
  margin-bottom: 22px;
}
.testimonial-card blockquote,
.testimonial-card p {
  color: #263B28;
  font-style: italic;
  margin-bottom: 4px;
  font-size: 1.08rem;
}
.testimonial-card .author {
  font-weight: 700;
  color: #24A399;
  font-size: 0.97rem;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
}

/* Unique feature list item style */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --------------------------------------------------
   TABLES (for Anbieter-Vergleich, etc)
-------------------------------------------------- */
table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 24px 0 16px 0;
  font-size: 0.97rem;
}
th, td {
  text-align: left;
  padding: 9px 10px;
}
th {
  background: #E6EFE1;
  color: #165642;
  font-family: 'Roboto Slab', Georgia, serif;
  font-weight: 700;
  border-bottom: 2.5px solid #C0D2B3;
  font-size: 1.04rem;
}
td {
  background: #fff;
  font-family: 'Open Sans', Arial, sans-serif;
  border-bottom: 1.5px solid #F3F8F1;
  color: #1A3A5E;
}
tbody tr:last-child td { border-bottom: none; }
table thead tr {
  border-radius: 19px 22px 14px 15px;
  overflow: hidden;
}

/* Organic accent for focus on any focused table cell/row */
tbody tr:hover td {
  background: #EAF8F1;
}

@media (max-width: 700px) {
  table, thead, tbody, th, td, tr {
    display: block;
    width: 100%;
  }
  th, td {
    box-sizing: border-box;
    width: 100%;
    padding-left: 0.7em;
    border-bottom: 1.5px solid #F3F8F1;
  }
  th:last-child, td:last-child { border-bottom: none; }
}

/* --------------------------------------------------
   ORGANIC NATURAL ELEMENTS
-------------------------------------------------- */
/* For map placeholder (Kontakt) */
.map-placeholder {
  background: #E6EFE1;
  border-radius: 26px 23px 18px 30px;
  padding: 20px 12px;
  text-align: center;
  margin: 22px 0 12px 0;
  font-size: 1em;
  color: #1A3A5E;
  font-style: italic;
}

/* Decorative organic background accent for hero/lead sections */
section:first-child .container {
  position: relative;
  overflow: hidden;
}
section:first-child .container::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: -45px; left: -70px;
  width: 200px; height: 150px;
  background: #D2E8CB;
  border-radius: 54% 46% 62% 38% / 59% 58% 42% 41%;
  opacity: 0.26;
  pointer-events: none;
}

/* --------------------------------------------------
   FOOTER DESIGN
-------------------------------------------------- */
footer {
  width: 100%;
  background: #E6EFE1;
  margin-top: 40px;
  padding: 0 0 30px 0;
  font-size: 1rem;
  color: #165642;
  box-shadow: 0 -2px 8px rgba(22,86,66,0.04);
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 34px 0 0 0;
}
.footer-logo img {
  height: 45px;
  width: auto;
  border-radius: 11px;
  background: #fff;
  padding: 2px 5px 2px 2px;
  margin-bottom: 4px;
  box-shadow: 0 1px 4px rgba(22,86,66,0.12);
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 0.5em;
}
.footer-nav a {
  color: #165642;
  transition: color 0.2s;
  border-radius: 14px;
  padding: 2.5px 5px;
  font-size: 0.98rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #24A399;
  background: #fff;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0.5em;
  font-size: 1em;
  color: #165642;
}
.footer-contact img {
  width: 20px;
  height: 20px;
  margin-right: 6px;
  margin-bottom: -4px;
  display: inline-block;
}
@media (max-width: 900px) {
  .footer-content {
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --------------------------------------------------
   RESPONSIVE LAYOUTS (FLEX ONLY)
-------------------------------------------------- */
@media (max-width: 768px) {
  .card-container, .feature-grid, .content-grid, .footer-content {
    flex-direction: column;
    gap: 18px;
  }
  .feature-grid > div, .card {
    min-width: 0;
    width: 100%;
  }
  .footer-content {
    gap: 18px;
    padding-top: 16px;
  }
}

/* --------------------------------------------------
   FORM & INPUTS (Kontakt Page Quick Style)
-------------------------------------------------- */
input, textarea, select {
  border: 1.6px solid #C0D2B3;
  border-radius: 14px;
  background: #F9F6EF;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 1rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #1A3A5E;
  min-width: 0;
  outline: none;
  box-shadow: 0 1px 2px rgba(60,100,40,0.09);
  transition: border 0.18s, box-shadow 0.14s;
}
input:focus, textarea:focus, select:focus {
  border: 1.6px solid #24A399;
  box-shadow: 0 3px 15px rgba(36,163,153,0.09);
}
::placeholder {
  color: #96AA99;
  opacity: 1;
}

/* --------------------------------------------------
   COOKIE CONSENT BANNER + MODAL
-------------------------------------------------- */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #263B28;
  color: #fff;
  box-shadow: 0 -3px 24px rgba(38,59,40, 0.14);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 3000;
  padding: 14px 11px;
  transition: transform 0.32s cubic-bezier(0.86,0,0.07,1), opacity 0.2s;
  transform: translateY(0);
  opacity: 1;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.03rem;
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner-inner {
  background: #135746;
  padding: 18px 18px 12px 18px;
  border-radius: 19px 29px 24px 22px;
  box-shadow: 0 3px 14px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 96vw;
  min-width: 0;
  width: 500px;
  gap: 16px;
}
.cookie-consent-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 3px;
}
.cookie-consent-banner button {
  margin-top: 0;
  margin-bottom: 0;
}
@media (max-width: 540px) {
  .cookie-banner-inner {
    width: 96vw;
    padding: 13px 6px 10px 7px;
    font-size: 0.95rem;
  }
}

/* Cookie consent modal popup */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 3100;
  background: rgba(60,100,40,0.17);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.18s, visibility 0.19s;
  opacity: 1;
  visibility: visible;
}
.cookie-modal.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-modal-content {
  background: #F9F6EF;
  border-radius: 20px 28px 22px 28px;
  padding: 32px 28px 21px 28px;
  box-shadow: 0 8px 38px rgba(36,163,153,0.09);
  max-width: 440px;
  width: 94vw;
  min-height: 90px;
  color: #1A3A5E;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 1.06rem;
}
.cookie-modal-content h2 {
  color: #1A3A5E;
  font-size: 1.35rem;
  margin-bottom: 8px;
  font-family: 'Roboto Slab', Georgia, serif;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 11px;
}
.cookie-switch {
  appearance: none;
  background: #E6EFE1;
  border-radius: 16px;
  width: 40px;
  height: 20px;
  position: relative;
  outline: none;
  transition: background 0.17s;
  cursor: pointer;
  border: 1.5px solid #A3A68A;
}
.cookie-switch:checked {
  background: #24A399;
  border-color: #24A399;
}
.cookie-switch::after {
  content: '';
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 1px; left: 1px;
  box-shadow: 0 1px 3px rgba(36,163,153,0.09);
  transition: left 0.15s;
}
.cookie-switch:checked::after {
  left: 21px;
}
.cookie-category label {
  font-size: 1rem;
  color: #1A3A5E;
}
.cookie-category .always-on {
  color: #24A399;
  font-weight: 700;
}
.cookie-modal-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: flex-end;
}
@media (max-width: 500px) {
  .cookie-modal-content {
    padding: 18px 7px 12px 7px;
  }
}

/* --------------------------------------------------
   UTILITY CLASSES, SPACING, ANIMATION
-------------------------------------------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-8 { margin-top: 8px !important; }
.mb-8 { margin-bottom: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }

@media (max-width: 430px) {
  html { font-size: 14px; }
  .header-logo img, .footer-logo img {
    height: 34px;
  }
}

/* Page-specific: Success, alert, etc. */
.success-message {
  background: #D2E8CB;
  color: #165642;
  padding: 18px 12px;
  border-radius: 16px 18px 14px 17px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(36,163,153,0.07);
  margin-bottom: 17px;
}

/* Animate modal and banner transitions */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-modal-content,
.cookie-banner-inner {
  animation: fadeInUp 0.44s cubic-bezier(0.74,0,0.32,1);
}

/* Focus ring for a11y */
:focus-visible {
  outline: 2px solid #24A399;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Hide visually */
.sr-only {
  border: 0;
  clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
}

/* Organic HR divider */
hr {
  border: 0;
  height: 1.4px;
  background: #A3A68A;
  border-radius: 7px/7px;
  margin: 24px 0;
}

/* --------------------------------------------------
   PRINT OPTIMIZATION
-------------------------------------------------- */
@media print {
  header, .main-nav, .mobile-menu-toggle, .mobile-menu, .cookie-consent-banner, .cookie-modal, footer { display: none !important; }
  section, .section, .container { box-shadow: none !important; background: #fff !important; }
  a { color: #1A3A5E !important; text-decoration: underline; }
}
