/* ===============================================
   RESET & BASE (Mobile-First, Box-Sizing, etc.)  
=============================================== */
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, menu, 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 {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0;
  font: inherit;
  vertical-align: baseline;
}
html { font-size: 16px; }
body {
  min-height: 100vh;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  color: #222b3a;
  background: #F0F4F8;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img { max-width: 100%; display: block; height: auto; }
main { min-height: 60vh; }
a { color: #21A179; text-decoration: none; transition: color 0.18s; }
a:hover, a:focus { color: #303A52; outline: none; }
ul, ol { padding-left: 2em; margin-bottom: 1.2em; }
*::selection { background: #21A179; color: #fff; }

/* ============================
   BRAND COLOR PALETTE
============================ */
:root {
  --mb-primary: #303A52;
  --mb-secondary: #21A179;
  --mb-accent: #F0F4F8;
  --mb-bg-dark: #25304A;
  --mb-grey-light: #e3e7ee;
  --mb-text: #222b3a;
  --mb-text-light: #fff;
}

/* ============================
   TYPOGRAPHY
============================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: var(--mb-primary);
  line-height: 1.2;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.25rem; margin-bottom: 0.5em; }
h2 { font-size: 1.75rem; margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; margin-bottom: 0.4em; }
h4, h5, h6 { font-size: 1.1rem; }
p, li, ul, ol, dl, blockquote { font-size: 1rem; }
p { margin-bottom: 1em; }
strong, b { font-weight: 700; }
.subheadline {
  font-size: 1.15rem;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--mb-secondary);
  margin-bottom: 1em;
  letter-spacing: .5px;
}

/* ============================
   STRUCTURE & LAYOUT
============================ */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(44, 53, 73, 0.07);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px 0 rgba(44, 53, 73, 0.07);
  margin-bottom: 20px;
  position: relative;
  padding: 28px 24px;
  flex: 1 1 280px;
  min-width: 260px;
  transition: box-shadow 0.22s;
}
.card:hover, .article-card:hover {
  box-shadow: 0 6px 26px 0 rgba(33, 58, 128, 0.11);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--mb-grey-light);
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(44, 53, 73, 0.06);
  margin-bottom: 20px;
  color: var(--mb-primary);
}
.testimonial-card p {
  margin-bottom: 0.5em;
  color: var(--mb-primary);
  font-size: 1.1rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.testimonial-card span {
  font-size: 0.95rem;
  font-style: italic;
  color: #4a5673;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Custom Grids (from source HTML) */
.feature_grid,
.team-list,
.service_list,
.case-grid,
.blog-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}
.feature_grid > div,
.team-list > div,
.service_list > div,
.case-grid > div,
.blog-list > div,
.article-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(33, 58, 128, 0.06);
  padding: 24px 18px;
  flex: 1 1 280px;
  min-width: 240px;
  margin-bottom: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature_grid > div img,
.icon-row img {
  height: 46px;
  margin-bottom: 12px;
}
.category-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}
.category-tabs button {
  background: var(--mb-accent);
  color: var(--mb-primary);
  border: none;
  border-radius: 24px;
  padding: 8px 20px;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.category-tabs button:hover {
  background: var(--mb-secondary);
  color: #fff;
}

.faq-list,
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}
.faq-list > div,
.contact-details > div {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fff;
  border-radius: 10px;
  padding: 18px 14px;
  box-shadow: 0 1px 6px 0 rgba(33, 58, 128, 0.08);
}

.icon-row {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  align-items: center;
}

/* ====== Article Card (Blog) ======*/
.article-card {
  margin-bottom: 20px;
}
.article-card h3 {
  margin-bottom: 0.5em;
  color: var(--mb-primary);
}
.article-card span {
  display: block;
  margin-bottom: 0.6em;
  font-size: .92em;
  color: #556;
}
.article-card a {
  color: var(--mb-secondary);
  font-weight: bold;
  display: inline-block;
  margin-top: 0.7em;
  transition: color 0.16s, text-decoration 0.2s;
}
.article-card a:hover {
  color: var(--mb-primary);
  text-decoration: underline;
}

/* ============================
   HEADER & NAVIGATION
============================ */
header {
  background: var(--mb-primary);
  padding: 0;
  color: #fff;
  position: relative;
  box-shadow: 0 2px 12px 0 rgba(33, 58, 128, 0.07);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  padding-bottom: 10px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
header nav a {
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: background 0.18s, color 0.18s;
}
header nav a.cta.primary {
  background: var(--mb-secondary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(33, 58, 128, 0.10);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
header nav a.cta.primary:hover,...header nav a.cta.primary:focus {
  background: #188760;
  color: #fff;
}
header nav a:hover, header nav a:focus {
  background: rgba(33, 161, 121, 0.12);
  color: #fff;
}

header img {
  height: 44px;
  margin-right: 18px;
}
.mobile-menu-toggle {
  display: none;
  background: var(--mb-secondary);
  border: none;
  color: #fff;
  font-size: 2.1rem;
  padding: 4px 20px;
  border-radius: 8px;
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 202;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #188760;
  color: #fff;
}

/* =============================
   MOBILE MENU OVERLAY (Slide-In)
============================= */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 85vw;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  box-shadow: -6px 0 16px 0 rgba(44,53,73,0.11);
  z-index: 400;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
  display: flex;
  flex-direction: column;
  padding-top: 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 22px; right: 22px;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--mb-primary);
  cursor: pointer;
  z-index: 401;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--mb-secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 48px;
  margin-left: 32px;
}
.mobile-nav a {
  font-size: 1.14rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--mb-primary);
  padding: 13px 0 13px 0;
  border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--mb-secondary);
  color: #fff;
}

@media (max-width: 1024px) {
  header .container {
    flex-wrap: wrap;
    gap: 12px;
  }
  header nav {
    gap: 16px;
  }
}
@media (max-width: 900px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: block; }
}

/* ============================
   CTA BUTTONS, MICRO INTERACTIONS
============================ */
.cta, .cta.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--mb-secondary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: .5px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px 0 rgba(33, 58, 128, 0.12);
  transition: background 0.16s, color 0.16s, box-shadow 0.16s, transform 0.13s;
  margin-top: 10px;
  text-align: center;
  text-decoration: none;
  will-change: box-shadow, transform;
}
.cta:hover, .cta:focus, .cta.primary:hover, .cta.primary:focus {
  background: #188760;
  color: #fff;
  box-shadow: 0 5px 22px 0 rgba(33, 58, 128, 0.13);
  outline: none;
  transform: translateY(-2px) scale(1.03);
}

/* =============================
   TABLE STYLES (Lösungen)
============================= */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 22px 0 30px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 6px 0 rgba(33,58,128,0.07);
}
thead {
  background: var(--mb-primary);
  color: #fff;
}
th, td {
  padding: 16px 10px;
  text-align: center;
  border-bottom: 1px solid #e3e7ee;
  font-family: 'Montserrat', Arial, sans-serif;
}
th { font-size: 1.1rem; }
tbody tr:last-child td { border-bottom: none; }

/* ===============================
   FOOTER
=============================== */
footer {
  background: var(--mb-primary);
  color: #fff;
  padding: 40px 0 24px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
}
.footer-brand img {
  height: 38px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  padding: 6px 10px;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.footer-nav a:hover { background: rgba(33, 161, 121, 0.13); color: var(--mb-secondary); }
.contact {
  font-size: 0.97rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}
.contact img { height: 20px; margin-right: 5px; }

/* ===============================
   COOKIE CONSENT BANNER & MODAL
   ================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 98vw;
  max-width: 500px;
  background: #fff;
  color: var(--mb-primary);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 22px 0 rgba(33, 58, 128, 0.13);
  padding: 24px 30px 18px 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.35s, transform 0.4s;
  animation: cookie-slidein 0.7s cubic-bezier(.65,.01,.26,.99);
}
@keyframes cookie-slidein {
  0% { opacity: 0; transform: translateX(-50%) translateY(40px); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.cookie-banner h4 {
  margin-bottom: 0.15em;
  font-size: 1.05rem;
  color: var(--mb-primary);
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.cookie-banner .cookie-btn, .cookie-banner .cookie-settings-btn {
  padding: 10px 22px;
  border-radius: 20px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: background 0.16s, color 0.18s, box-shadow 0.16s;
}
.cookie-banner .cookie-btn.accept {
  background: var(--mb-secondary);
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: var(--mb-primary);
  color: #fff;
}
.cookie-banner .cookie-settings-btn {
  background: var(--mb-accent);
  color: var(--mb-primary);
  border: 1.5px solid var(--mb-grey-light);
}
.cookie-banner .cookie-btn.accept:hover,
.cookie-banner .cookie-btn.accept:focus {
  background: #188760;
}
.cookie-banner .cookie-btn.reject:hover,
.cookie-banner .cookie-btn.reject:focus {
  background: #182138;
}
.cookie-banner .cookie-settings-btn:hover,
.cookie-banner .cookie-settings-btn:focus {
  background: #e3e7ee;
  color: var(--mb-secondary);
}

/* Cookie Preference Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: 10001;
  inset: 0;
  background: rgba(33,58,128,.25);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}
.cookie-modal {
  background: #fff;
  width: 96vw;
  max-width: 500px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -2px 18px 0 rgba(33, 58, 128, 0.18);
  padding: 34px 36px 28px 36px;
  margin-bottom: 28px;
  animation: cookie-modal-slide 0.43s cubic-bezier(.5,.09,.46,1.17);
}
@keyframes cookie-modal-slide {
  0% { transform: translateY(90px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-modal h4 { font-size: 1.08rem; margin-bottom: 16px; }
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #F0F4F8;
  border-radius: 10px;
  padding: 12px 12px 12px 16px;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  accent-color: var(--mb-secondary);
  transform: scale(1.2);
  margin-top: 5px;
}
.cookie-modal .cookie-category.essential input[type="checkbox"] { display: none; }
.cookie-modal .cookie-category.essential label {
  font-weight: bold;
  color: var(--mb-primary);
}
.cookie-modal .cookie-category-description {
  color: #303A52;
  font-size: 0.96rem;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 26px;
}
.cookie-modal .cookie-modal-actions button {
  padding: 9px 21px;
  border-radius: 20px;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  background: var(--mb-secondary);
  color: #fff;
  transition: background 0.17s;
}
.cookie-modal .cookie-modal-actions button.secondary {
  background: var(--mb-accent);
  color: var(--mb-primary);
  border: 1.4px solid var(--mb-grey-light);
}
.cookie-modal .cookie-modal-actions button.secondary:hover {
  background: #e3e7ee;
  color: var(--mb-secondary);
}
.cookie-modal .cookie-modal-actions button:hover, .cookie-modal .cookie-modal-actions button:focus {
  background: #188760;
  color: #fff;
}

/* =====================================
   MISCELLANEOUS & UTILITIES
===================================== */
blockquote {
  background: var(--mb-accent);
  border-left: 5px solid var(--mb-secondary);
  margin: 22px 0 22px 0;
  padding: 16px 24px;
  font-style: italic;
  color: var(--mb-primary);
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(33,58,128,0.04);
}
hr {
  border: none;
  border-top: 1.5px solid var(--mb-grey-light);
  margin: 32px 0;
}

/* Accessibility: Focus Styles */
a:focus, .cta:focus, button:focus {
  outline: 2.5px solid var(--mb-secondary);
  outline-offset: 1px;
}
.button, button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  cursor: pointer;
  background: none;
  padding: 0;
}

/*==================================
  RESPONSIVE DESIGN
===================================*/
@media (max-width: 900px) {
  .container { max-width: 98%; padding: 0 10px; }
  .section { padding: 32px 8px; margin-bottom: 38px; }
  .content-wrapper, .card-container,
  .content-grid, .feature_grid, .team-list, .service_list, .case-grid, .blog-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.28rem; }
  .section { padding: 22px 4px; margin-bottom: 24px; }
  .card, .feature_grid > div, .team-list > div, .service_list > div, .case-grid > div, .article-card {
    padding: 18px 10px;
    min-width: 85vw;
    flex: 1 1 100%;
  }
  .testimonial-card, .faq-list > div, .contact-details > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 7px;
  }
  .content-grid, .feature_grid, .team-list,
  .service_list, .case-grid, .blog-list {
    flex-direction: column;
    gap: 14px;
  }
  .category-tabs {
    flex-direction: column;
    gap: 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 16px;
    padding: 0 7px;
    align-items: flex-start;
  }
  .contact {
    flex-direction: column;
    gap: 8px;
  }
  table, thead, tbody, th, td { font-size: 0.92rem; }
}
@media (max-width: 540px) {
  h1 { font-size: 1.22rem; }
}
/*-----------------------------------
 ADDITIONAL SPACING REQUIREMENTS
-----------------------------------*/
.card, .testimonial-card, .faq-list > div, .contact-details > div, .feature_grid > div, .team-list > div,
.service_list > div, .case-grid > div, .article-card { margin-bottom: 20px; }
.section, .card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}

/* -----------------------------------
   NO GRID OR COLUMN PROPERTIES ALLOWED
------------------------------------ */
/* (No occurrences of display: grid, grid-*, column-count, columns, column-width, column-gap, break-inside) */
