/* --------------------------------------------------
   CSS RESET & BASE STYLES (Mobile first)
-------------------------------------------------- */
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 {
  box-sizing: border-box;
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #151515;
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  background-color: #f8f9fa;
}

img {
  max-width: 100%;
  display: block;
}
a {
  color: #243A5E;
  text-decoration: none;
  transition: color .2s;
}
a:hover, a:focus {
  color: #000;
  text-decoration: underline;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 10px;
}

/* --------------------------------------------------
   TYPOGRAPHY (Monochrome Sophisticated)
-------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: #121212;
  margin-bottom: 16px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
}
h4, h5, h6 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}

p {
  margin-bottom: 16px;
  color: #232323;
}

strong {
  font-weight: 700;
  color: #181818;
}

blockquote {
  border-left: 4px solid #243A5E;
  padding-left: 18px;
  color: #353535;
  font-style: italic;
}

.container {
  width: 100%;
  padding-left: 18px;
  padding-right: 18px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 600px) {
  .container {
    max-width: 650px;
  }
}
@media (min-width: 900px) {
  .container {
    max-width: 900px;
  }
}
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }
}

.content-wrapper {
  margin: 0 auto;
  max-width: 900px;
}

/* --------------------------------------------------
   SECTIONS/LAYOUT SPACING & FLEXBOX PATTERNS
-------------------------------------------------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container,
.features-grid,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.features-grid {
  gap: 32px 24px;
}
.card {
  position: relative;
  margin-bottom: 20px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #FAFAFA;
  color: #151515;
  border: 1px solid #ECECEC;
  border-radius: 14px;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px 0 rgba(20,20,20,0.06);
  max-width: 540px;
  transition: box-shadow .35s;
}
.testimonial-card:hover,
.testimonial-card:focus {
  box-shadow: 0 4px 24px 0 rgba(20,20,20,0.11);
}
.card-content, .feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 18px 20px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(20,20,20,0.08);
  border: 1px solid #ECECEC;
  flex: 1 1 260px;
  min-width: 240px;
  transition: box-shadow .25s, border-color .15s;
}
.feature:hover {
  box-shadow: 0 4px 24px 0 rgba(20,20,20,.13);
  border-color: #BFBFBF;
}
@media (max-width: 900px) {
  .features-grid, .content-grid, .card-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .features-grid, .content-grid, .card-grid {
    flex-direction: column;
    gap: 16px;
  }
}

/*********
  Other Lists inside Features
*********/
.benefit-list {
  margin-top: 20px;
}
.benefit-list h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #2a2a2a;
}
.benefit-list ul {
  margin-bottom: 0;
}

/* --------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------- */
header {
  background: #fff;
  box-shadow: 0 2px 12px 0 rgba(24,24,24,0.05);
  position: relative;
  z-index: 100;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  position: relative;
}
header nav {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 1rem;
  letter-spacing: -.01em;
}
header nav a, .mobile-nav a {
  color: #181818;
  padding: 7px 10px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: background .18s, color .15s;
}
header nav a:hover, .mobile-nav a:hover, header nav a:focus, .mobile-nav a:focus {
  color: #fff;
  background: #243A5E;
  outline: none;
}
.cta-btn {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #fff;
  background: #243A5E;
  padding: 13px 28px;
  border-radius: 28px;
  font-size: 1.08rem;
  box-shadow: 0 2px 8px 0 rgba(36,58,94,0.09);
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
  transition: background .19s, color .13s, box-shadow .2s;
  margin-left: 14px;
}
.cta-btn:hover, .cta-btn:focus {
  background: #151515;
  color: #fff;
  box-shadow: 0 4px 24px 0 rgba(36,58,94,0.15);
  outline: none;
  text-decoration: none;
}

.mobile-menu-toggle {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #243A5E;
  margin-left: 16px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 6px;
  transition: background .16s;
  cursor: pointer;
  z-index: 102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #ECECEC;
}

@media (min-width: 970px) {
  .mobile-menu-toggle {
    display: none;
  }
  .mobile-menu {
    display: none !important;
  }
  header nav {
    display: flex !important;
  }
}
@media (max-width: 969px) {
  header nav {
    display: none;
  }
  .cta-btn {
    margin-left: 0;
  }
}
/* --------------------------------------------------
   MOBILE MENU (Hamburger Overlay)
-------------------------------------------------- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(24,24,24,0.95);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0 0 0 0;
  z-index: 1003;
  transform: translateX(-105%);
  transition: transform .33s cubic-bezier(.8,0,.22,1);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.2rem;
  border: none;
  margin: 30px 13px 17px 24px;
  align-self: flex-start;
  cursor: pointer;
  padding: 5px 10px;
  border-radius: 7px;
  transition: background .16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #373737;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 38px;
  margin-left: 28px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border-radius: 8px;
  padding: 13px 0 13px 12px;
  display: block;
  min-width: 180px;
  transition: background .15s, color .13s;
}
.mobile-nav a.active, .mobile-nav a:focus, .mobile-nav a:hover {
  background: #243A5E;
  color: #fff;
}
@media (max-width: 969px) {
  .mobile-menu {
    display: flex;
  }
}

/* --------------------------------------------------
   SECTION & CARD VISUALS (ELEGANT MONOCHROME)
-------------------------------------------------- */
section {
  margin-bottom: 60px;
  padding: 40px 0px;
  background: #fff;
}
section:nth-of-type(odd) {
  background: #F8F9FA;
}
@media (max-width: 600px) {
  section {
    padding: 32px 0;
    margin-bottom: 40px;
  }
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
  background: #181B1F;
  color: #F4F7FB;
  padding: 48px 0 24px 0;
  font-size: 1rem;
  border-top: 3px solid #ECECEC;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}
footer nav a {
  color: #B7BCC5;
  font-size: 1rem;
  border-radius: 6px;
  padding: 6px 12px;
  transition: background .12s, color .13s;
}
footer nav a:hover, footer nav a:focus {
  color: #fff;
  background: #243A5E;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  justify-content: center;
  align-items: flex-start;
  margin-top: 6px;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #E2E3E6;
  font-size: 1rem;
}
footer img {
  filter: brightness(0) invert(1);
  margin-bottom: 9px;
}
@media (max-width: 800px) {
  footer .container {
    gap: 24px;
  }
  .footer-contact {
    gap: 14px 18px;
    font-size: .95em;
  }
}
@media (max-width: 600px) {
  footer {
    padding: 32px 0 16px 0;
  }
  .footer-contact span {
    font-size: .95em;
    margin-bottom: 6px;
  }
}

/* --------------------------------------------------
   BUTTONS, FORMS & INTERACTIONS
-------------------------------------------------- */
button, .cta-btn {
  cursor: pointer;
  outline: none;
}
button:disabled {
  opacity: 0.5;
  pointer-events: none;
}
input, textarea, select {
  font-family: inherit;
  font-size: 1rem;
  border-radius: 7px;
  border: 1px solid #A7A7A7;
  padding: 12px 14px;
  outline: none;
  background: #fff;
  color: #181818;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .16s, box-shadow .19s;
}
input:focus, textarea:focus, select:focus {
  border-color: #243A5E;
  box-shadow: 0 0 1px 1px #4DB88F33;
}
::placeholder {
  color: #A7A7A7;
  opacity: 1;
}

/* --------------------------------------------------
   RESPONSIVE & FLEX-DIRECTION COLUMNS
-------------------------------------------------- */
.text-image-section {
  flex-direction: column;
  align-items: stretch;
}
@media (min-width: 768px) {
  .text-image-section {
    flex-direction: row;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .features-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .testimonial-card, .feature {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .cta-btn {
    font-size: 1rem;
    padding: 11px 16px;
  }
  .content-wrapper {
    padding-left: 0;
    padding-right: 0;
  }
}

/* --------------------------------------------------
   TABLES
-------------------------------------------------- */
table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 32px;
}
th, td {
  padding: 12px 10px;
  border-bottom: 1px solid #EBEBEB;
}
th {
  text-align: left;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}

/* --------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
-------------------------------------------------- */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 11000;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 -3px 18px 0 rgba(16,16,16,0.11);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 14px 16px 14px;
  gap: 18px;
  font-size: 1rem;
  border-top: 2px solid #CFCFCF;
  animation: cookieslidein .44s ease;
}
@keyframes cookieslidein {
  0% { transform: translateY(160px); opacity: .4; }
  85% { transform: translateY(-9px); }
  100% { transform: translateY(0); opacity: 1; }
}
#cookie-consent-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.cookie-btn, .cookie-settings-btn {
  background: #243A5E;
  color: #fff;
  border: none;
  padding: 9px 23px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 0 2px;
  cursor: pointer;
  transition: background .18s, color .12s, box-shadow .19s;
  box-shadow: 0 2px 8px 0 rgba(36,58,94,0.09);
}
.cookie-btn:hover,
.cookie-btn:focus,
.cookie-settings-btn:hover,
.cookie-settings-btn:focus {
  background: #4DB88F;
  color: #181818;
  outline: none;
}
.cookie-btn-alt {
  background: #EDEDED;
  color: #243A5E;
  border: none;
}
.cookie-btn-alt:hover,
.cookie-btn-alt:focus {
  background: #243A5E;
  color: #fff;
}

/* Cookie Preferences Modal */
#cookie-modal {
  position: fixed;
  left: 50vw;
  top: 48vh;
  transform: translate(-50%, -50%) scale(.98);
  min-width: 330px;
  max-width: 95vw;
  max-height: 98vh;
  background: #fff;
  color: #1a1a1a;
  border-radius: 14px;
  box-shadow: 0 8px 32px 0 rgba(44,44,44,0.21);
  z-index: 11020;
  padding: 38px 26px 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  animation: cookieslidein .38s;
}
#cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 13px;
  font-family: 'Montserrat', Arial, sans-serif;
}
#cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
  font-size: 1rem;
}
#cookie-modal .toggle {
  width: 38px;
  height: 24px;
  border-radius: 17px;
  background: #ECECEC;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}
#cookie-modal .toggle.enabled {
  background: #4DB88F;
}
#cookie-modal .toggle-switch {
  width: 19px;
  height: 19px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 2.5px;
  left: 3px;
  transition: left .18s cubic-bezier(.81,.11,.21,1.13);
}
#cookie-modal .toggle.enabled .toggle-switch {
  left: 17px;
}
#cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  color: #243A5E;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 7px;
  transition: background .17s;
}
#cookie-modal .close-modal:hover, #cookie-modal .close-modal:focus {
  background: #ECECEC;
}

@media (max-width: 480px) {
  #cookie-modal {
    min-width: 0;
    padding: 24px 7px 22px 7px;
  }
}
@media (max-width: 700px) {
  #cookie-consent-banner {
    font-size: .98rem;
    padding: 19px 4px 12px 4px;
  }
  #cookie-consent-banner .cookie-btns {
    gap: 8px;
  }
}

/* --------------------------------------------------
   MICROLEVEL INTERACTIONS
-------------------------------------------------- */
.feature img, .feature svg {
  max-height: 47px;
  min-width: 47px;
  margin-bottom: 5px;
  filter: grayscale(0.82) contrast(1.1);
  opacity: .98;
}
.feature h3 {
  color: #243A5E;
  font-size: 1.16rem;
  margin-bottom: 9px;
}

.card {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 12px 0 rgba(20,20,20,0.06);
  padding: 23px 18px 19px 18px;
  border: 1px solid #ececec;
  transition: box-shadow .25s, border-color .15s;
}
.card:hover, .card:focus {
  box-shadow: 0 5px 18px 0 rgba(36,58,94,0.13);
  border-color: #BFBFBF;
}

/**********
  Utilities
***********/
.muted {
  color: #999;
}
.text-center {
  text-align: center;
}
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.flex-gap {
  display: flex;
  gap: 1.8em;
}
.mt-3 { margin-top: 24px; }
.mb-3 { margin-bottom: 24px; }

/*************************************************************
OVERLAP PREVENTION & Z-INDEX STACKING
*************************************************************/
[role="dialog"], #cookie-modal {
  z-index: 11020 !important;
}
.mobile-menu {
  z-index: 1003;
}
header {
  z-index: 1000;
}

/* Ensure min 20px margin between cards/sections */
.card, .testimonial-card, .feature, section, .card-content, .feature-item {
  margin-bottom: 20px;
}

/*************************************************************
MONOCHROME PALETTE (Override Brand for "monochrome_sophisticated")
*************************************************************/
body, section, main {
  background: #fff;
}
section:nth-of-type(odd) {
  background: #f5f5f7;
}
header, .card, .feature, .testimonial-card {
  background: #fff;
}
footer {
  background: #181B1F;
  color: #F4F7FB;
}

/*************************************************************
RESPONSIVE UTILITY FOR FLEX/SINGLE COLUMN SWITCHING
*************************************************************/
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .card-container, .features-grid, .card-grid, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  header .container {
    flex-direction: row;
    gap: 0;
  }
}

/*************************************************************
FORMS (for Kontakt page or if added later)
*************************************************************/
form {
  max-width: 510px;
  margin: 0 auto 38px auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: .98rem;
  font-weight: 500;
  margin-bottom: 5px;
  color: #243A5E;
}

/*************************************************************
SCROLLBAR STYLING (subtle for monochrome look)
*************************************************************/
html {
  scrollbar-width: thin;
  scrollbar-color: #A6ACB2 #ECECEC;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-thumb {
  background: #A6ACB2;
  border-radius: 8px;
}
::-webkit-scrollbar-track {
  background: #ECECEC;
}

/*************************************************************
ACCESSIBILITY (visual focus)
*************************************************************/
a, button, .cta-btn, input, select, textarea {
  outline-color: #4DB88F;
  outline-width: 2px;
  outline-style: solid;
  outline-offset: 2px;
}
a:focus:not(:hover), button:focus:not(:hover), .cta-btn:focus:not(:hover) {
  outline: 2px solid #4DB88F;
  box-shadow: 0 0 0 2px #4DB88F55;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid #243A5E;
}

/*************************************************************
PRINT STYLES
*************************************************************/
@media print {
  header, footer, .mobile-menu, #cookie-consent-banner, #cookie-modal {
    display: none !important;
  }
  body, section {
    background: #fff !important;
    color: #181818;
  }
}
