/* ----------------- CSS RESET & NORMALIZE ----------------- */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #203040;
  background-color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
img, svg { max-width: 100%; display: block; height: auto; }
a { color: #203040; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #4DA160; text-decoration: underline; }
ul, ol { padding-left: 1.2em; margin-bottom: 12px; }
table { border-collapse: collapse; width: 100%; margin-bottom: 32px; }
th, td { padding: 12px 16px; text-align: left; }
th { background: #F2F4F8; color: #203040; font-weight: 600; }
td { background: #fff; border-bottom: 1px solid #F2F4F8; }
strong, b { font-weight: 600; }

/* ----------------- FONT FAMILIES & TYPOGRAPHY ----------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.18;
  margin-bottom: 16px;
  color: #203040;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; letter-spacing: -1px; }
h2 { font-size: 2rem; margin-top: 24px; margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; }
h4 { font-size: 1.1rem; }
.subheadline { font-family: 'Roboto', Arial, sans-serif; color: #4DA160; font-size: 1.13rem; letter-spacing: .2px; margin-bottom: 24px; }
p { margin-bottom: 16px; max-width: 700px; }

/* ----------------- CONTAINER AND SPACING ----------------- */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.section { margin-bottom: 60px; padding: 40px 20px; }

/* ----------------- HEADER & NAVIGATION ----------------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(32,48,64,0.04);
  z-index: 1200;
}
header > a img {
  height: 36px;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav a {
  color: #203040;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.20s, color 0.20s;
}
nav a:hover, nav a:focus {
  background: #F2F4F8;
  color: #4DA160;
  text-decoration: none;
}
nav a.cta {
  background: #203040;
  color: #fff;
  padding: 9px 22px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-left: 16px;
  box-shadow: 0 1px 8px rgba(32,48,64,0.08);
  transition: background 0.15s, color 0.15s;
}
nav a.cta:hover, nav a.cta:focus {
  background: #4DA160;
  color: #fff;
}

/* Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  padding: 6px 12px;
  color: #203040;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.18s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F2F4F8;
}

/* ------- Mobile Menu styles ------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32,48,64,0.18);
  z-index: 1800;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 32px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.5,1.4,.6,1);
  opacity: 1;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2rem;
  color: #203040;
  background: none;
  border: none;
  margin-bottom: 18px;
  cursor: pointer;
  transition: color 0.18s;
  align-self: flex-end;
  padding: 6px 12px;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #4DA160;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.2rem;
  color: #203040;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 12px 4px;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F2F4F8;
  color: #4DA160;
}
.mobile-nav a.cta {
  background: #203040;
  color: #fff;
  font-weight: 700;
  margin-top: 12px;
  text-align: center;
  padding: 14px 0;
}
.mobile-nav a.cta:hover, .mobile-nav a.cta:focus {
  background: #4DA160;
}

/* ------------- HERO --------------- */
.hero {
  background: #F2F4F8;
  padding-top: 54px;
  padding-bottom: 54px;
  display: flex;
  align-items: center;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero .subheadline {
  color: #4DA160;
}
.hero .cta {
  margin-top: 22px;
}

/* ------------- FEATURES/GRID & FLEXBOX PATTERNS --------------- */
.features, .feature-grid, .steps-list, .trust-badges, .reasons-list, .testimonials {
  width: 100%;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 16px;
}
.feature-grid > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(32,48,64,0.05);
  padding: 28px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 1 240px;
  min-width: 210px;
  max-width: 300px;
  transition: box-shadow 0.18s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px rgba(77,161,96,0.13);
  transform: translateY(-3px) scale(1.012);
}
.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.steps-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
  justify-content: flex-start;
}
.steps-list > div {
  min-width: 210px;
  max-width: 270px;
  flex: 1 1 210px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(32, 48, 64, 0.045);
  padding: 28px 18px 18px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.18s, transform 0.17s;
}
.steps-list > div:hover {
  box-shadow: 0 6px 24px rgba(32,48,64,0.13);
  transform: translateY(-2px) scale(1.008);
}
.steps-list img {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 22px;
  margin-top: 10px;
}
.trust-badges span {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  background: #fff;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  color: #203040;
  box-shadow: 0 2px 8px rgba(32,48,64,0.06);
  gap: 10px;
  font-weight: 500;
}
.trust-badges img {
  width: 24px; height: 24px; margin-bottom: 0;
}

.reasons-list, .steps-list, .content-grid, .footer-menu, .social-links {
  gap: 20px;
}
.reasons-list {
  margin-bottom: 0;
}

/* Cards container (for testimonials, etc) */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card { margin-bottom: 20px; position: relative; background: #fff; border-radius: 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;
}

/* ----------------- TESTIMONIALS ----------------- */
.testimonials {
  background: #F2F4F8;
  padding: 44px 0 40px 0;
}
.testimonials .content-wrapper > h2 {
  margin-bottom: 12px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  margin-bottom: 20px;
  margin-top: 10px;
  box-shadow: 0 2px 16px rgba(32,48,64,0.05);
  max-width: 550px;
  width: 100%;
  color: #203040;
}
.testimonial-card p {
  font-size: 1.07rem;
  margin-bottom: 4px;
  color: #203040;
  text-align: center;
}
.testimonial-card strong {
  color: #4DA160;
  font-size: 0.97rem;
  letter-spacing: 0.2px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* ----------------- CTA SECTION ----------------- */
.cta {
  background: #203040;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  padding: 40px 20px;
  margin-bottom: 60px;
}
.cta h2 { color: #fff; margin-bottom: 14px; }
.cta p { color: #e0e6ef; }
.cta a.cta {
  background: #4DA160;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 18px;
  box-shadow: 0 2px 8px rgba(77,161,96,0.09);
  display: inline-block;
  transition: background 0.16s, color 0.16s, box-shadow 0.16s;
}
.cta a.cta:hover, .cta a.cta:focus {
  background: #203040;
  color: #fff;
  box-shadow: 0 4px 14px rgba(32,48,64,0.13);
}

/* ----------------- PRICING TABLE ----------------- */
.pricing th {
  background: #203040;
  color: #fff;
}
.pricing td { font-size: 1rem; }
.pricing tbody tr:nth-child(even) td {
  background: #F2F4F8;
}

/* ------- FAQ Accordion --------*/
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(32,48,64,0.08);
  padding: 18px 20px 12px 20px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.faq-accordion > div:hover {
  box-shadow: 0 6px 20px rgba(77,161,96,0.12);
  transform: translateY(-1px);
}
.faq-accordion h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

/* ----------------- FOOTER ----------------- */
footer {
  background: #fff;
  border-top: 1px solid #F2F4F8;
  padding: 40px 0 18px 0;
  margin-top: 60px;
  box-shadow: 0 -1px 8px rgba(32,48,64,0.03);
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
}
.footer-menu a {
  color: #203040;
  font-size: 0.98rem;
  padding: 3px 8px;
  border-radius: 5px;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #F2F4F8;
  color: #4DA160;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
  margin-bottom: 12px;
  margin-top: 8px;
}
.social-links a img {
  width: 26px; height: 26px;
  filter: grayscale(1) brightness(1.05);
  opacity: .9;
  transition: filter 0.18s, opacity 0.18s;
  border-radius: 8px;
}
.social-links a:hover img, .social-links a:focus img {
  filter: none;
  opacity: 1;
}
.legal-info {
  font-size: 0.96rem;
  color: #7a8697;
  text-align: center;
  margin-top: 16px;
}
.legal-info address { color: #7a8697; font-style: normal; }

/* ----------------- COOKIE BANNER & MODAL ----------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #F2F4F8;
  color: #203040;
  box-shadow: 0 -4px 18px rgba(32,48,64,0.13);
  padding: 24px 16px 20px 16px;
  z-index: 2200;
  width: 100vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  animation: slideUp 0.35s ease;
}
@keyframes slideUp {
  from { transform: translateY(36px); opacity: 0; } to { transform: none; opacity: 1; }
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 18px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.cookie-btn, .cookie-banner button {
  background: #4DA160;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 10px 18px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.14s;
  box-shadow: 0 1px 6px rgba(77,161,96,0.12);
}
.cookie-btn:hover, .cookie-btn:focus { background: #203040; color: #fff; }
.cookie-btn.reject {
  background: #e0e6ef;
  color: #203040;
  box-shadow: none;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #203040;
  color: #fff;
}
.cookie-btn.settings {
  background: #fff;
  color: #203040;
  border: 1px solid #203040;
  box-shadow: none;
}
.cookie-btn.settings:hover, .cookie-btn.settings:focus {
  background: #4DA160;
  color: #fff;
  border: none;
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, 30%);
  width: 96vw;
  max-width: 410px;
  background: #fff;
  color: #203040;
  z-index: 2400;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(32,48,64,0.13);
  padding: 36px 24px 24px 24px;
  animation: fadeModal 0.25s cubic-bezier(.45,1.3,.6,1.1);
  display: flex;
  flex-direction: column;
  gap: 22px;
}
@keyframes fadeModal { from { opacity:0; transform:translate(-50%,10%); } to { opacity:1; transform:translate(-50%,0); } }
.cookie-modal .modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #203040;
  cursor: pointer;
  opacity: .88;
}
.cookie-modal h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.99rem;
  margin-bottom: 6px;
}
.cookie-category input[type=checkbox] {
  accent-color: #4DA160;
}
.cookie-category.essential label::after {
  content: '(immer aktiviert)';
  color: #888;
  margin-left: 6px;
  font-size: 0.93em;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* --------------- MEDIA QUERIES (MOBILE-FIRST) ----------------- */
@media (max-width: 1080px) {
  .container { max-width: 92vw; }
}
@media (max-width: 900px) {
  header { flex-direction: column; align-items: flex-start; padding: 15px 0; }
  nav { gap: 12px; }
  .feature-grid, .steps-list { gap: 16px; }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }

  header nav { display: none !important; }
  .mobile-menu-toggle { display: inline-block; }
  .section, .hero, .cta {
    padding: 32px 8px;
  }
  .container { padding-left: 8px; padding-right: 8px; }
  .feature-grid, .steps-list, .trust-badges {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .feature-grid > div, .steps-list > div {
    max-width: 100%; min-width: 0;
  }
  .content-grid, .footer-menu, .social-links {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .testimonials {
    padding: 30px 0 24px 0;
  }
  .testimonial-card {
    max-width: 100%;
    padding: 16px 6px;
  }
  .cookie-modal { max-width: 96vw; padding: 24px 8px 18px 16px; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.27rem; margin-bottom: 12px; }
  h2 { font-size: 1.05rem; margin-bottom: 9px; margin-top: 16px; }
  .hero, .section, .cta {
    padding: 22px 2px;
  }
}

/* -------------- VISUAL ENHANCEMENTS / MICRO-INTERACTIONS -------------- */
button, .cta a, .cookie-btn, nav a, .mobile-menu-toggle {
  outline: none;
  transition: box-shadow 0.15s, border 0.15s, background 0.13s, color 0.15s;
}
button:focus-visible, .cta a:focus-visible, .cookie-btn:focus-visible, nav a:focus-visible, .mobile-menu-toggle:focus-visible {
  box-shadow: 0 0 0 2px #4DA16044;
  border: none;
}

/* ----------- Additional accessibility ----------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); border: 0;
}

/* --------------- Miscellaneous --------------- */
main { min-height: 60vh; }
::-webkit-scrollbar {
  width: 8px;
  background: #F2F4F8;
}
::-webkit-scrollbar-thumb {
  background: #e0e6ef;
  border-radius: 8px;
}

/* --------------- End of CSS --------------- */
