/* RESET & BASE STYLES (Normalize + Geometric Structured) */
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;
}
html {
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  background: #fff;
  color: #23485B;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background: #fff;
}
img, picture, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #23485B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #65A984;
}
ul, ol {
  list-style: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #23485B;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.15;
  text-transform: uppercase;
}
h2 {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
h3 {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
}
p, li, span, address {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #23485B;
  line-height: 1.7;
}
strong {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #23485B;
  letter-spacing: 0.5px;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background-color: #fff;
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  border-bottom: 3px solid #65A984;
  z-index: 100;
  position: relative;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 24px 0 12px 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}
.main-nav img {
  height: 40px;
  width: auto;
  margin-right: 24px;
  display: block;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #23485B;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  background: #65A984;
  color: #fff;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #23485B;
  cursor: pointer;
  position: absolute;
  right: 20px;
  top: 24px;
  z-index: 200;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #65A984;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #23485B;
  z-index: 999;
  transform: translateX(-110%);
  transition: transform 0.4s cubic-bezier(.74,-0.07,.36,1.11);
  display: flex;
  flex-direction: column;
  padding: 0;
  justify-content: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  padding: 24px 20px 12px 20px;
  align-self: flex-end;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #65A984;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 32px;
  margin-top: 40px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #65A984;
  color: #23485B;
}

/* HERO SECTION */
.hero-section {
  background: #F3E7D7;
  border-bottom: 7px solid #65A984;
  border-radius: 0 0 24px 24px;
  margin-bottom: 48px;
  padding: 56px 0 56px 0;
  box-shadow: 0 6px 36px 0 rgba(35,72,91,0.05);
  position: relative;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 18px;
}
.hero-section h1 {
  font-size: 2.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #23485B;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
@media (min-width: 768px) {
  .hero-section h1 {
    font-size: 2.8rem;
  }
}
.hero-section p {
  font-size: 1.2rem;
  color: #23485B;
}

/* CTA BUTTONS */
.cta, .cta.primary {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #23485B;
  color: #fff;
  border: none;
  padding: 14px 30px;
  margin-top: 20px;
  border-radius: 14px;
  box-shadow: 0 3px 16px 0 rgba(35,72,91,0.15);
  letter-spacing: 0.05em;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.12s;
  cursor: pointer;
}
.cta.primary {
  background: #65A984;
  color: #fff;
}
.cta:hover,.cta:focus,.cta.primary:hover,.cta.primary:focus {
  background: #F3E7D7;
  color: #23485B;
  box-shadow: 0 6px 32px 0 rgba(101, 169, 132, 0.17);
  transform: translateY(-2px) scale(1.025);
}

/* GENERAL FLEX LAYOUTS & CARDS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border: 2.5px solid #65A984;
  border-radius: 18px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 3px 14px 0 rgba(35,72,91,.07);
  display: flex;
  flex-direction: column;
  min-width: 220px;
  padding: 28px 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
.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;
}
.card img {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

/* FEATURE GRID STRUCTURE */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: flex-start;
}
.feature-grid li {
  background: #fff;
  border-radius: 16px;
  border: 2.5px solid #65A984;
  box-shadow: 0 2px 9px 0 rgba(35,72,91,.07);
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 24px 20px 20px 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.16s, transform 0.14s;
}
.feature-grid li:hover {
  box-shadow: 0 4px 22px 0 rgba(101,169,132, 0.18);
  transform: translateY(-4px) scale(1.03);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}
.feature-grid strong {
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  color: #23485B;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* SERVICES LIST */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 16px 0 32px 0;
  width: 100%;
}
.service-list li {
  background: #fff;
  border: 2.5px solid #65A984;
  border-radius: 13px;
  box-shadow: 0 2px 8px 0 rgba(35,72,91,0.07);
  padding: 22px 18px;
  margin-bottom: 12px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow 0.16s, border 0.14s;
}
.service-list li:hover {
  box-shadow: 0 6px 24px 0 rgba(101,169,132, 0.13);
  border-color: #23485B;
}
.service-list b, .service-list span {
  color: #23485B;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ABOUT / TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 16px 0 20px 0;
  position: relative;
  border-left: 4px solid #65A984;
  padding-left: 24px;
}
.timeline li {
  position: relative;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding-bottom: 0;
}
.timeline li:before {
  content: '';
  position: absolute;
  left: -15px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: #23485B;
  border-radius: 2px;
  transform: rotate(45deg);
}

/* TESTIMONIALS */
.testimonials-section {
  background: #f9f9f9;
  border-radius: 20px;
  border: 2.5px solid #65A984;
  margin-bottom: 48px;
  padding: 48px 0 48px 0;
  box-shadow: 0 2px 18px 0 rgba(35,72,91,.03);
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 32px;
  background: #fff;
  border: 2.5px solid #23485B;
  border-radius: 14px;
  box-shadow: 0 3px 16px 0 rgba(35,72,91,0.09);
  margin-bottom: 24px;
  max-width: 775px;
  margin-left: auto;
  margin-right: auto;
  transition: box-shadow 0.18s, border 0.16s;
}
.testimonial-card p {
  color: #23485B;
  font-size: 1.13rem;
  line-height: 1.5;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  text-align: center;
}
.testimonial-card span {
  color: #23485B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
  align-self: flex-end;
}
.testimonial-card:hover {
  border-color: #65A984;
  box-shadow: 0 6px 42px 0 rgba(101,169,132, 0.14);
  transform: translateY(-2px) scale(1.012);
}

/* TEXT SECTIONS & GENERIC RULES */
.text-section {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #23485B;
}
.text-section h3 {
  margin-top: 16px;
  font-size: 1.2rem;
}
address {
  font-style: normal;
  color: #23485B;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 10px;
}

/* FOOTER */
footer {
  background: #23485B;
  color: #fff;
  padding: 30px 0 0 0;
  margin-top: 40px;
  border-radius: 24px 24px 0 0;
}
footer .container {
  flex-direction: column;
  align-items: stretch;
  padding: 0 12px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 7vw 22px 7vw;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #fff;
}
.footer-brand img {
  height: 36px;
  width: auto;
  margin-right: 8px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.93;
  transition: color 0.17s;
  margin-bottom: 3px;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #65A984;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
  color: #fff;
}
.footer-contact a {
  color: #65A984;
  text-decoration: underline;
  transition: color 0.18s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #F3E7D7;
}
.copyright {
  text-align: center;
  font-size: 0.95rem;
  color: #fff;
  opacity: 0.66;
  padding: 15px 0 16px 0;
  border-top: 1.5px solid #65A984;
}

/* MAP PLACEHOLDER */
.map-placeholder {
  border: 2px dashed #65A984;
  border-radius: 10px;
  background: #F3E7D7;
  color: #23485B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

/* GDPR, DATENSCHUTZ, TERMS & COOKIE POLICY */
.gdpr-section, .datenschutz-section, .cookie-section, .terms-section {
  background: #F3E7D7;
  border-radius: 20px;
  border: 2.5px solid #65A984;
  margin-bottom: 48px;
  padding: 40px 0 40px 0;
  box-shadow: 0 2px 8px 0 rgba(35,72,91,.04);
}
.gdpr-section h1, .datenschutz-section h1, .cookie-section h1, .terms-section h1 {
  font-size: 2rem;
}

/* THANK YOU PAGE */
.thank-you-section {
  background: #F3E7D7;
  border: 2.5px solid #65A984;
  border-radius: 16px;
  padding: 44px 0 44px 0;
}
.thank-you-section h1 {
  font-size: 2rem;
  color: #23485B;
  font-weight: 700;
  text-align: left;
}
.thank-you-section p {
  font-size: 1.15rem;
  color: #23485B;
  margin-bottom: 24px;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #F3E7D7;
  border-top: 3px solid #65A984;
  color: #23485B;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 18px 18px 18px;
  box-shadow: 0 -4px 22px 0 rgba(35,72,91,0.07);
  transition: transform 0.33s ease, opacity 0.18s linear;
  opacity: 1;
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #23485B;
}
.cookie-banner-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  margin-right: 5px;
  margin-bottom: 5px;
  transition: background 0.2s, color 0.2s;
}
.cookie-btn.accept {
  background: #65A984;
  color: #fff;
}
.cookie-btn.reject {
  background: #23485B;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #23485B;
  border: 2px solid #65A984;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #23485B;
  color: #fff;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #65A984;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #F3E7D7;
}

/* COOKIE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2100;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35,72,91,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.24s;
  opacity: 1;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #F3E7D7;
  border: 2.5px solid #65A984;
  border-radius: 18px;
  box-shadow: 0 8px 48px 0 rgba(35,72,91,0.13);
  padding: 36px 28px 28px 28px;
  min-width: 320px;
  max-width: 99vw;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  transform: translateY(0);
  transition: transform 0.3s;
}
.cookie-modal h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #23485B;
  text-transform: uppercase;
  font-weight: bold;
}
.cookie-modal-section {
  margin-bottom: 18px;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 11px 0 7px 0;
}
.cookie-category .switch {
  margin-left: 12px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #eee;
  border-radius: 24px;
  transition: background-color 0.18s;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #23485B;
  border-radius: 50%;
  transition: transform 0.2s;
}
.switch input:checked + .switch-slider {
  background-color: #65A984;
}
.switch input:checked + .switch-slider:before {
  transform: translateX(18px);
  background-color: #fff;
}

/* ESSENTIAL cannot be turned off visually */
.cookie-category.essential .switch-slider {
  background: #23485B;
  opacity: 0.65;
}
.cookie-category.essential .switch,
.cookie-category.essential input,
.cookie-category.essential label {
  pointer-events: none;
}
.cookie-modal-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.cookie-modal .cookie-btn {
  margin: 0 7px 0 0;
}
.cookie-modal .cookie-btn:last-child {
  margin-right: 0;
}

/* RESPONSIVENESS */
@media (max-width: 1040px) {
  .footer-wrapper {
    flex-direction: column;
    gap: 22px;
    padding: 0 5vw 16px 5vw;
    align-items: stretch;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 16px;
    flex-wrap: wrap;
  }
  .feature-grid {
    gap: 18px;
  }
  .footer-wrapper {
    padding: 0 2vw 14px 2vw;
  }
}
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-section,
  .about-section,
  .features-section,
  .services-section,
  .testimonials-section,
  .thank-you-section,
  .gdpr-section,
  .datenschutz-section,
  .cookie-section,
  .terms-section {
    margin-bottom: 36px;
    padding: 26px 0 26px 0;
    border-radius: 0;
  }
  .feature-grid,
  .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 0 2vw 10px 2vw;
    align-items: flex-start;
  }
  .section, section {
    margin-bottom: 32px;
    padding: 26px 0 26px 0;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .testimonial-card {
    padding: 16px 6vw;
  }
}
@media (max-width: 500px) {
  html {
    font-size: 15px;
  }
  .container {
    padding: 0 4px;
  }
  .hero-section {
    padding: 30px 0;
  }
  .feature-grid li, .card {
    min-width: 90vw;
    max-width: 98vw;
    padding: 18px 6vw;
  }
}

/* MICRO-ANIMATIONS */
a, .cta, .cta.primary, .service-list li, .feature-grid li, .testimonial-card, .footer-nav a, .cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.15s, transform 0.12s;
}

/* FOCUS STATES */
a:focus, .cta:focus, .cta.primary:focus, .service-list li:focus, .feature-grid li:focus, .testimonial-card:focus, .footer-nav a:focus, .cookie-btn:focus {
  outline: 2.5px solid #65A984;
  outline-offset: 2px;
  box-shadow: 0 0 0 2.5px #F3E7D7;
}

/* PRINT SUPPORT */
@media print {
  header, footer, .main-nav, .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-modal-overlay {
    display: none !important;
  }
  main, section, .container, .content-wrapper {
    background: #fff !important;
    color: #000 !important;
  }
}
