/* --------------------------------------------------
   Lucid Matrix Beratung – style.css
   Geometric Structured Design – Flexbox layouts only
   Brand: #1C3559, #8BBF3D, #F6F7FA   Fonts: Montserrat, Roboto
-------------------------------------------------- */
/* CSS RESET & NORMALIZATION */
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 {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  color: #1C3559;
  background: #F6F7FA;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1em;
  color: inherit;
}
img, svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #1C3559;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.4,0,0.2,1);
}
a:hover, a:focus {
  color: #8BBF3D;
  outline: none;
}
/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  color: #1C3559;
  letter-spacing: .5px;
}
h1 {
  font-size: 2.5rem; /* 40px */
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem; /* 32px */
  margin-bottom: 20px;
}
h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.15rem;
}
p, ul, ol {
  margin-bottom: 16px;
}
ul, ol {
  padding-left: 20px;
  margin-top: 0;
}
ul li, ol li {
  margin-bottom: 10px;
}
strong {
  font-weight: 700;
}
/* GENERAL LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(28,53,89,0.05);
  padding: 32px;
  margin-bottom: 32px;
}
/* GEOMETRIC/STRUCTURED SECTIONS */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  position: relative;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(28,53,89,0.06);
  padding: 28px 20px;
  min-width: 270px;
  flex: 1 1 260px;
  transition: box-shadow .22s cubic-bezier(.38,.08,.24,1);
}
.card:hover {
  box-shadow: 0 6px 28px rgba(28,53,89,.13);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}
/* FLEX LAYOUTS FOR GRIDS/FEATURES */
.feature-grid, .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div, .service-cards > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(28,53,89,0.07);
  padding: 30px 22px 22px 22px;
  flex: 1 1 230px;
  min-width: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: box-shadow 0.22s cubic-bezier(.38,.08,.24,1), transform 0.18s cubic-bezier(.45,0,.55,1);
}
.feature-grid > div:hover, .service-cards > div:hover {
  box-shadow: 0 6px 30px rgba(28,53,89,0.12);
  transform: translateY(-2px) scale(1.025);
}
.feature-grid img, .service-cards img {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.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;
}
@media (max-width: 768px) {
  .feature-grid, .service-cards, .content-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  .text-section, .card, .feature-grid > div, .service-cards > div {
    padding: 20px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.1rem; }
}
@media (max-width: 480px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  section,
  .section {
    padding: 28px 7px;
  }
  .text-section, .card, .feature-grid > div, .service-cards > div {
    padding: 13px 7px;
  }
  h1 { font-size: 1.5rem; }
}
/* BUTTONS & CALL-TO-ACTIONS */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  background-color: #8BBF3D;
  color: #fff;
  border: none;
  border-radius: 27px 6px 27px 6px;
  box-shadow: 0 2px 10px rgba(139,191,61,0.09);
  font-size: 1.12rem;
  letter-spacing: .06em;
  cursor: pointer;
  text-transform: uppercase;
  transition: background .2s cubic-bezier(.33,.95,.52,.97), color .2s, box-shadow .18s;
  margin-top: 6px;
}
.cta-primary:hover, .cta-primary:focus {
  background: #659925;
  color: #fff;
  box-shadow: 0 5px 22px rgba(139,191,61,0.18);
}
main a:not(.cta-primary) {
  color: #1C3559;
  font-weight: 500;
  text-decoration: underline;
}
main a:not(.cta-primary):hover, main a:not(.cta-primary):focus {
  color: #8BBF3D;
}
.button,
.cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 8px;
  background: #F6F7FA;
  color: #1C3559;
  border: 2px solid #8BBF3D;
  transition: background 0.15s, border-color 0.15s, color .15s;
  margin-right: 6px;
  margin-top: 8px;
  cursor: pointer;
}
.button:hover, .cookie-btn:hover {
  background: #8BBF3D;
  color: #fff;
  border-color: #8BBF3D;
}
.cookie-btn.cookie-accept {
  background: #8BBF3D;
  color: #fff;
  border-color: #8BBF3D;
}
.cookie-btn.cookie-accept:hover {
  background: #659925;
  border-color: #659925;
}
.cookie-btn.cookie-reject {
  background: #fff;
  color: #1C3559;
  border-color: #e0e0e0;
}
.cookie-btn.cookie-reject:hover {
  background: #e63434;
  border-color: #e63434;
  color: #fff;
}
.cookie-btn.cookie-settings {
  background: #fff;
  color: #1C3559;
  border-color: #d3d3d3;
}
.cookie-btn.cookie-settings:hover {
  background: #1C3559;
  color: #fff;
  border-color: #1C3559;
}
/* HEADER & NAVIGATION */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 16px 0;
  background: #fff;
  box-shadow: 0 2px 9px rgba(28,53,89,.05);
  position: sticky;
  top: 0;
  z-index: 97;
}
header a img {
  height: 44px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1C3559;
  border-radius: 6px;
  padding: 8px 12px;
  transition: background .16s, color .12s;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F6F7FA;
  color: #8BBF3D;
}
.main-nav .cta-primary {
  margin: 0 0 0 12px;
  padding: 9px 24px;
  box-shadow: none;
  font-size: .96rem;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #1C3559;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .12s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: #F6F7FA;
}
/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(28,53,89,0.95);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform .33s cubic-bezier(.44,.16,.12,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.4rem;
  color: #fff;
  align-self: flex-end;
  background: none;
  border: none;
  padding: 18px 22px 8px 22px;
  cursor: pointer;
  transition: color .18s, background .12s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #8BBF3D;
  background: rgba(255,255,255,0.04);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 42px 22px 0 32px;
  margin-top: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.33rem;
  color: #fff;
  padding: 12px 8px;
  border-radius: 5px;
  transition: background .15s, color .13s;
  font-weight: 600;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: #8BBF3D;
  color: #1C3559;
}
@media (max-width: 1020px) {
  .main-nav {
    gap: 15px;
  }
}
@media (max-width: 900px) {
  .main-nav .cta-primary {
    margin-left: 6px;
    padding-left: 13px; padding-right: 13px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 7px;
  }
  h1 { font-size: 2.1rem; }
}
@media (max-width: 820px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}
@media (min-width: 821px) {
  .mobile-menu { display: none !important; }
}
/* ---- CARDS/TESTIMONIALS ---- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(28,53,89,0.06);
  margin-bottom: 24px;
  border-left: 8px solid #8BBF3D;
  font-size: 1.1rem;
  color: #212C3C;
}
.testimonial-card span {
  font-size: .97rem;
  color: #1C3559;
  font-weight: 500;
  margin-left: 12px;
  opacity: .85;
}
.client-list {
  margin-top: 16px;
  font-weight: 500;
  color: #1C3559;
  background: #F6F7FA;
  border-radius: 12px;
  padding: 17px 24px;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap:14px;
    padding: 16px 8px 18px 13px;
  }
}
/* ---- FOOTER ---- */
footer {
  width: 100%;
  background: #1C3559;
  color: #fff;
  padding: 36px 0 18px 0;
  margin-top: 65px;
  border-radius: 32px 32px 0 0;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}
.footer-nav a {
  color: #8BBF3D;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.01rem;
  transition: text-decoration .12s, color .08s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
.footer-contact {
  margin: 28px auto 14px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-items: center;
  font-size: 1.04rem;
  color: #F6F7FA;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 210px;
  margin-bottom: 10px;
}
.footer-contact img {
  width: 21px;
  height: 21px;
}
.footer-claim {
  margin-top: 25px;
  text-align: center;
  font-size: 0.98rem;
  color: #B9C6DB;
  letter-spacing: .03em;
  opacity:.8;
}
@media (max-width: 900px) {
  footer {
    border-radius: 23px 23px 0 0;
    font-size: .98rem;
    padding: 29px 0 9px 0;
  }
  .footer-contact {
    gap: 13px;
    font-size: .93rem;
  }
}
@media (max-width: 600px) {
  .footer-contact {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }
  .footer-claim {
    font-size: .93rem;
  }
  footer {
    padding-top: 14px;
    padding-bottom: 3px;
   }
}
/* ---- COOKIE CONSENT BANNER ---- */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  z-index: 2999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  color: #1C3559;
  border-top: 4px solid #8BBF3D;
  box-shadow: 0 -6px 24px rgba(28,53,89,0.09);
  padding: 20px 36px;
  gap: 20px;
  font-size: 1.07rem;
  animation: cookie-banner-fadein .7s cubic-bezier(.45,0,.55,1);
}
@keyframes cookie-banner-fadein {
  0% { transform: translateY(110%); opacity: 0; }
  70% { opacity: .7; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner-message {
  max-width: 650px;
}
.cookie-banner-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
@media (max-width: 700px) {
 .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 14px 8px 7px 8px;
    font-size: 1rem;
 }
 .cookie-banner-buttons {
   justify-content: flex-start;
 }
}
/* COOKIE MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  z-index: 3900;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(28,53,89,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .36s cubic-bezier(.55,0,.45,1);
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  min-width: 320px;
  max-width: 98vw;
  width: 414px;
  box-shadow: 0 12px 64px rgba(28,53,89,0.18);
  padding: 30px 28px 23px 28px;
  display: flex;
  flex-direction: column;
  gap: 21px;
  animation: cookie-modal-pop .41s cubic-bezier(.44,.11,.55,1);
}
@keyframes cookie-modal-pop {
  0% { transform: scale(.8) translateY(80px); opacity: 0; }
  60% { opacity: .44; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.32rem;
  font-weight: 700;
  margin-bottom: 7px;
  color: #8BBF3D;
  letter-spacing: .04em;
}
.cookie-modal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 1.03rem;
}
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F6F7FA;
  padding: 10px 14px;
  border-radius: 7px;
  margin-bottom: 2px;
}
.cookie-option-label {
  font-size: 1.04rem;
  color: #1C3559;
  font-weight: 500;
}
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #D1D8E2;
  border-radius: 11px;
  transition: background .18s;
}
.cookie-switch input:checked + .cookie-slider {
  background-color: #8BBF3D;
}
.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform .16s;
  box-shadow: 0 2px 5px rgba(28,53,89,0.12);
}
.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(14px);
}
.cookie-modal-actions {
  display: flex;
  gap: 11px;
  justify-content: flex-end;
  margin-top: 9px;
}
.cookie-modal-close {
  background: transparent;
  color: #8BBF3D;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  align-self: flex-end;
  margin-top:-15px;
  margin-right: -10px;
  transition: color .16s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #1C3559;
}
@media (max-width: 520px) {
 .cookie-modal {
   padding: 13px 5px 11px 6px;
   width: 98vw;
   min-width: unset;
 }
}
/* --- HTML ELEMENTS */
table { border-collapse: collapse; margin-bottom: 20px; width: 100%; }
th, td { border: 1px solid #e2e5ea; padding: 9px 12px; text-align: left; }
th { background: #F6F7FA; color: #1C3559; }
blockquote {
  border-left: 7px solid #8BBF3D;
  background: #F6F7FA;
  padding: 14px 26px;
  color: #1C3559;
  border-radius: 11px;
  font-style: italic;
  margin-bottom: 20px;
}
/* FORMS */
input, textarea, select {
  border: 2px solid #e2e5ea;
  border-radius: 7px;
  padding: 11px 14px;
  font-size: 1rem;
  background: #F6F7FA;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
  color: #1C3559;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #8BBF3D;
}
label {
  font-size: 1.07rem;
  font-weight: 600;
  color: #1C3559;
  margin-bottom: 9px;
  display: block;
}
/* CONTACT DETAILS CARDS */
.contact-details ul {
  list-style: none;
  padding-left: 0;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
  font-size: 1.09rem;
  color: #1C3559;
}
.contact-details img {
  width: 20px;
  height: 20px;
}
/* --- Utility / Geometric Accents --- */
hr {
  border: none;
  border-bottom: 3px solid #8BBF3D;
  margin: 32px 0;
  width: 38px;
}
.geometric-shape {
  width: 48px;
  height: 48px;
  background: #1C3559;
  clip-path: polygon(0 0, 100% 0, 100% 80%, 0% 100%);
  margin-bottom: 14px;
  opacity: .86;
}
/* --- MICRO-INTERACTIONS & ANIMATIONS --- */
a, button, .card, .cta-primary, .main-nav a, .footer-nav a, .feature-grid > div, .service-cards > div {
  transition: color .18s, background .18s, box-shadow .18s, transform .19s;
}
.cta-primary:active, .main-nav .cta-primary:active {
  transform: scale(.96);
}
.card:active, .feature-grid > div:active, .service-cards > div:active {
  transform: scale(.98);
}
.button:active, .cookie-btn:active {
  transform: scale(.96);
}
/* --- SPECIAL: Hide cookie banner/modal when not present --- */
.cookie-banner {
  display: none;
}
.cookie-banner.active {
  display: flex;
}
.cookie-modal-overlay {
  display: none;
}
.cookie-modal-overlay.active {
  display: flex;
}
/* ---- END OF CSS ---- */