/* 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-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
/* Set base styles and font smoothing */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}
body {
  width: 100%;
  min-height: 100vh;
  background: #F9F8F4;
  color: #014C42;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}
*, *:before, *:after {
  box-sizing: inherit;
}

/* Typography Scale */
h1 {
  font-family: 'Playfair Display', Times, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #014C42;
  margin-bottom: 16px;
  line-height: 1.15;
}
h2 {
  font-family: 'Playfair Display', Times, serif;
  font-size: 2rem;
  color: #014C42;
  font-weight: 600;
  margin-bottom: 16px;
}
h3 {
  font-family: 'Playfair Display', Times, serif;
  font-size: 1.4rem;
  color: #014C42;
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 700;
}
p, ul, ol {
  margin-bottom: 16px;
  color: #1C3633;
  font-size: 1rem;
}
ul, ol {
  padding-left: 1.2em;
}
li {
  margin-bottom: 8px;
}
strong {
  color: #014C42;
}
.subheadline, .brand-tagline {
  font-size: 1.15rem;
  font-weight: 500;
  color: #014C42;
  margin-bottom: 22px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

/* Containers & Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(1,76,66,0.06), 0 1.5px 4px rgba(1,76,66,0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-section {
  align-items: flex-start;
  gap: 14px;
}

/* Flex Patterns for Custom Layouts */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container,
.feature-grid,
.service-list,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid {
  gap: 24px;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1.5px 8px rgba(1,76,66,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
}
.card .card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.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;
  background: #F6F8FA;
  padding: 20px;
  margin-bottom: 24px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(1,76,66, 0.09);
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F9F8F4;
  border-radius: 8px;
  padding: 22px;
  margin-bottom: 20px;
}

/* Feature Grid Individual Feature */
.feature {
  flex: 1 1 280px;
  min-width: 240px;
  background: #F6F8FA;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(1,76,66,0.06);
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 6px 28px rgba(1,76,66,0.15);
}
.feature img {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

/* Service List & Service Cards */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.service {
  flex: 1 1 270px;
  min-width: 220px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(1,76,66, 0.07);
  padding: 24px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 13px;
  border-left: 4px solid #85C5BB;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service:hover {
  box-shadow: 0 6px 32px rgba(1,76,66,0.12);
  border-left: 4px solid #014C42;
}
.service .price {
  font-size: 1.1rem;
  font-weight: 600;
  color: #014C42;
  background: #F6F8FA;
  border-radius: 4px;
  padding: 4px 12px;
  margin-top: 6px;
  display: inline-block;
}

/* Quick Facts List (e.g. Contact) */
.quick-facts, .content-wrapper ul {
  list-style: none;
  padding: 0;
  margin-bottom: 18px;
}
.quick-facts li, .content-wrapper ul li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  color: #1C3633;
  margin-bottom: 12px;
}
.quick-facts img, .content-wrapper ul li img {
  width: 20px;
  height: 20px;
}

/* Navigation Styles */
header {
  background: #fff;
  box-shadow: 0 2px 12px rgba(1,76,66,0.07);
  width: 100%;
  position: relative;
  z-index: 20;
  margin-bottom: 0;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px;
  min-height: 74px;
}
header nav[aria-label='Hauptnavigation'] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  width: 100%;
}
header nav[aria-label='Hauptnavigation'] a {
  color: #014C42;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 7px 0;
  transition: color 0.18s;
  border-radius: 3px;
}
header nav[aria-label='Hauptnavigation'] a:hover:not(.cta) {
  color: #35766D;
  background: #F6F8FA;
}
header nav[aria-label='Hauptnavigation'] img {
  height: 46px;
  margin-right: 14px;
}
.cta.primary {
  background: #014C42;
  color: #fff !important;
  border-radius: 6px;
  padding: 11px 24px;
  margin-left: 17px;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(1,76,66,0.09);
  border: none;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s;
  text-decoration: none;
  letter-spacing: 0.01em;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.cta.primary:hover, .cta.primary:focus {
  background: #0D7C6A;
  box-shadow: 0 6px 28px rgba(1,76,66,0.13);
}
.cta {
  background: #85C5BB;
  color: #014C42 !important;
  border-radius: 6px;
  padding: 10px 22px;
  margin-top: 7px;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(133,197,187,0.09);
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: background 0.18s, box-shadow 0.18s, color 0.18s;
  text-decoration: none;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
}
.cta:hover, .cta:focus {
  background: #5AA195;
  color: #fff !important;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 107;
  background: #014C42;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(1,76,66,0.09);
  transition: background 0.18s, box-shadow 0.18s;
  cursor: pointer;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #85C5BB;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 106;
  background: rgba(1,76,66,0.95);
  transform: translateX(100%);
  transition: transform 0.36s cubic-bezier(0.62,0,.32,1.38);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  margin: 24px 24px 0 0;
  background: #85C5BB;
  color: #014C42;
  border: none;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(133,197,187, 0.16);
  transition: background 0.16s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: #fff;
  color: #85C5BB;
}
.mobile-nav {
  width: 100vw;
  margin-top: 38px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.125rem;
  text-decoration: none;
  padding: 10px 2px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.01em;
  width: 100%;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #F6F8FA;
  color: #014C42;
}

/* Hide Desktop Nav on Mobile and Show Burger */
@media (max-width: 990px) {
  header nav[aria-label='Hauptnavigation'] a:not(:first-child),
  header nav[aria-label='Hauptnavigation'] .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (max-width: 576px) {
  .mobile-nav {
    padding: 0 12px;
  }
  .mobile-menu-close {
    width: 44px;
    height: 44px;
    font-size: 1.7rem;
    margin-right: 14px;
    margin-top: 13px;
  }
}

/* Footer */
footer {
  background: #014C42;
  color: #fff;
  padding: 35px 0 0 0;
  width: 100%;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center;
}
.footer-menu a {
  color: #fff;
  font-size: 0.96rem;
  text-decoration: none;
  opacity: 0.87;
  transition: opacity 0.16s, color 0.17s;
  margin-bottom: 6px;
}
.footer-menu a:hover,
.footer-menu a:focus {
  opacity: 1;
  color: #85C5BB;
}
.legal-text {
  font-size: 0.96rem;
  opacity: 0.7;
  margin: 12px 0 0 0;
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin: 18px 0 0 0;
}
.social-links a img {
  width: 28px;
  height: 28px;
  filter: grayscale(68%);
  opacity: 0.9;
  transition: filter 0.2s, opacity 0.2s;
}
.social-links a:hover img,
.social-links a:focus img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Testimonial Cards */
.testimonial-card {
  background: #F6F8FA;
  color: #014C42;
  border-left: 4px solid #85C5BB;
  box-shadow: 0 2px 8px rgba(1,76,66, 0.09);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  font-size: 1rem;
  min-width: 0;
}
.testimonial-card p {
  color: #014C42;
  font-size: 1.07rem;
  margin-bottom: 8px;
}
.testimonial-card span {
  color: #1C3633;
  opacity: 0.8;
  font-size: 0.99rem;
}
.stars {
  color: #85C5BB;
  font-size: 1.3rem;
  letter-spacing: 3px;
  margin-left: 2px;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}

/* Miscellaneous */
img {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  transition: color 0.18s, background 0.14s;
  text-decoration: none;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 110;
  background: #fff;
  color: #014C42;
  box-shadow: 0 -2px 26px rgba(1,76,66,0.08);
  border-top: 2px solid #85C5BB;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  gap: 18px;
  font-size: 1rem;
  max-width: 100vw;
  animation: cookiebanner-in 0.5s cubic-bezier(0.72,0,.44,1.32);
}
@keyframes cookiebanner-in {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
}
.cookie-banner button {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 5px;
  border: none;
  padding: 9px 16px;
  box-shadow: 0 1px 8px rgba(1,76,66,0.04);
  margin-left: 0px;
  transition: background 0.16s, color 0.13s;
  cursor: pointer;
}
.cookie-banner .accept {
  background: #014C42;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #0D7C6A;
}
.cookie-banner .reject {
  background: #d6dede;
  color: #014C42;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #85C5BB;
  color: #fff;
}
.cookie-banner .settings {
  background: #fff;
  color: #014C42;
  border: 2px solid #85C5BB;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #F6F8FA;
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 111;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(1,76,66,0.38);
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  display: flex;
  pointer-events: auto;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  color: #014C42;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(1,76,66,0.17);
  max-width: 98vw;
  width: 420px;
  padding: 32px 24px 24px 24px;
  position: relative;
  animation: cookiemodal-in 0.5s cubic-bezier(0.72,0,.44,1.32);
}
@keyframes cookiemodal-in {
  from { transform: scale(0.96) translateY(32px); opacity: 0; }
  to { transform: scale(1.0) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-categories {
  margin-bottom: 24px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-weight: 600;
}
.cookie-modal button {
  margin-right: 8px;
  margin-top: 8px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  color: #014C42;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
}
.cookie-modal .close-modal:hover,
.cookie-modal .close-modal:focus {
  background: #F6F8FA;
  color: #85C5BB;
  outline: 2px solid #85C5BB;
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 26px;
  display: inline-block;
}
.toggle-switch input[type="checkbox"] {
  display: none;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  background: #d3e7e4;
  border-radius: 13px;
  top: 0; left: 0; right: 0; bottom: 0;
  transition: background 0.3s;
}
.toggle-slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: #85C5BB;
  border-radius: 50%;
  transition: 0.3s;
}
.toggle-switch input:checked + .toggle-slider {
  background: #85C5BB;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
  background: #014C42;
}
/* End Toggle Switch */

/* Responsive Design */
@media (max-width: 1320px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 1060px) {
  .content-wrapper, .section, .card {
    padding: 34px 10px;
  }
  .feature-grid, .service-list, .card-container,
  .content-grid {
    gap: 18px;
  }
  header .container {
    padding: 0 10px;
  }
}
@media (max-width: 900px) {
  .card-container,
  .content-grid,
  .feature-grid,
  .service-list {
    gap: 14px;
  }
  header nav[aria-label='Hauptnavigation'] img {
    height: 40px;
    margin-right: 8px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 100vw;
    padding: 0 6vw;
  }
  .content-wrapper, .section {
    padding: 27px 4vw;
    margin-bottom: 36px;
  }
  h1 {
    font-size: 1.6rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .feature-grid, .service-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .feature, .service, .card {
    min-width: 0;
    width: 100%;
    min-width: unset;
  }
  .testimonial-card {
    padding: 15px 13px;
    margin-bottom: 17px;
  }
  .section {
    padding: 26px 2vw;
    margin-bottom: 32px;
  }
  .text-image-section {
    flex-direction: column !important;
    gap: 16px;
  }
}
@media (max-width: 576px) {
  .container {
    padding: 0 2vw;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 10px 20px 10px;
    font-size: 0.99rem;
  }
  .cookie-modal {
    width: 99vw;
    min-width: 0;
    padding: 18px 7vw 18px 7vw;
  }
}

/* Spacing and Alignment (reinforcement for flex containers) */
.section, .content-wrapper {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .feature-grid, .service-list, .card-grid, .content-grid {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.content-grid {
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .section, .content-wrapper {
    margin-bottom: 36px;
    padding: 28px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* Misc Buttons and Form Elements */
button, input[type=button], input[type=submit] {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background: #85C5BB;
  color: #014C42;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.16s;
  font-weight: 600;
  box-shadow: 0 1.2px 4px rgba(1,76,66,0.06);
}
button:hover, button:focus, input[type=button]:hover, input[type=submit]:hover {
  background: #014C42;
  color: #fff;
}

/* Accessibility: Focus outline */
:focus {
  outline: 2px solid #85C5BB;
  outline-offset: 2px;
}

/* Hide mobile menu toggle on desktop */
@media (min-width: 991px) {
  .mobile-menu-toggle {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}

/* Z-index for layering */
header, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
  z-index: 100;
}

/* Disable user select on .mobile-menu and header nav during transitions for polish */
.mobile-menu, header nav[aria-label='Hauptnavigation'] {
  -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;
}

/* Subtle link underline on hover */
a:not(.cta):not(.primary):hover, a:not(.cta):not(.primary):focus {
  text-decoration: underline;
}
