/* --- CSS RESET AND NORMALIZE ----- */
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; }
*,*:before,*:after { box-sizing: inherit; }
body {
  line-height:1.5;
  min-height: 100vh;
  background: #F5F6FA;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #222;
}
img,svg {vertical-align:middle; max-width: 100%; height:auto;}
a { color: #11324D; text-decoration: none; transition: color .2s; }
a:focus { outline: 2px dotted #b1d3ca; outline-offset: 2px; }
ul,ol {margin-left: 20px;}
strong,b {font-weight:bold;}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #11324D;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 500; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
}

/* ---- TYPOGRAPHY ---- */
body, p, li {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem; /* 16px */
  line-height: 1.6;
  color: #224;
}
p {margin-bottom: 14px;}
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
@media (max-width: 600px) {
  .container {
    padding: 0 10px;
  }
}
.content-wrapper {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 4px 24px 0 rgba(30,30,50,0.06);
  padding: 40px 30px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (max-width: 600px) {
  .content-wrapper {
    padding: 22px 8px;
  }
}

/* --- SECTION LAYOUTS with Flexbox (Mandatory) --- */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
  width: 100%;
}

.card-container,
.feature-grid,
.card-grid,
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

.feature-item {
  background: #F9FBFF;
  border-radius: 16px;
  padding: 24px 18px 20px 18px;
  box-shadow: 0 2px 12px rgba(65,184,131,0.09);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 210px;
  min-width: 180px;
  margin-bottom: 20px;
  transition: box-shadow 0.28s;
}
.feature-item img {
  width: 42px; height:42px; margin-bottom: 8px;
}
.feature-item h3 { margin: 0 0 4px; font-size: 1.17rem; }
.feature-item p { font-size: 0.97rem; margin: 0; }
.feature-item:hover {
  box-shadow: 0 6px 32px rgba(65,184,131,0.14);
}

.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 14px 0 rgba(65,184,131,0.10);
  padding:28px 20px;
  min-width: 240px;
  transition: box-shadow 0.18s;
}
.card:hover {
  box-shadow: 0 8px 28px rgba(65,184,131,0.14);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.content-grid {
  gap: 20px;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .feature-grid, .content-grid, .card-container, .card-grid {
    flex-direction: column;
    gap: 20px;
  }
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px 20px 26px;
  margin-bottom: 22px;
  background: #f6fafc;
  border-left: 5px solid #41B883;
  border-radius: 14px;
  box-shadow: 0 1px 8px 0 rgba(17,50,77,0.07);
  max-width: 560px;
  transition: box-shadow 0.18s, border-color 0.3s;
  color: #174065;
}
.testimonial-card p {
  font-size: 1.07rem;
  font-style: italic;
  color: #11324D;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: #1d4a6b;
}
.testimonial-card img {
  width: 22px; height:22px; margin-top: 0; filter: drop-shadow(0px 1px 0px #fff);
}
.testimonial-card:hover {
  box-shadow: 0 4px 16px rgba(65,184,131,0.12);
  border-color: #4ad9a8;
}

/* ---- HEADER ----- */
header {
  background: linear-gradient(90deg, #e8f8fa 60%, #fef7fa 100%);
  padding-top: 0;
  padding-bottom: 0;
  position: relative;
  box-shadow: 0 1px 8px rgba(17,50,77,0.03);
  margin-bottom: 0;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  position: relative;
  min-height: 68px;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 0 0 0 18px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.02rem;
  color: #11324D;
  letter-spacing: 0.02em;
  padding: 8px 2px;
  border-radius: 5px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover {
  color: #41B883;
  background: #f4fffb;
}
header img[alt="CogniPeak Sicherung"] {
  height: 44px;
}
.btn-primary {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  color: #fff;
  background: #41B883;
  border-radius: 12px;
  padding: 13px 30px;
  margin-left: 30px;
  font-weight: 700;
  border: none;
  box-shadow: 0 2px 16px rgba(65,184,131,0.10);
  cursor: pointer;
  transition: background 0.16s, box-shadow 0.18s, transform .13s;
  display:inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: #37af74;
  box-shadow: 0 6px 20px rgba(65,184,131,0.16);
  transform: translateY(-2px) scale(1.03);
  color: #fff;
}
.btn-secondary {
  background: #fff0f8;
  color: #41B883;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.03rem;
  border-radius: 12px;
  border: 2px solid #41B883;
  padding: 13px 30px;
  font-weight: 700;
  box-shadow: 0 1px 8px rgba(65,184,131,0.07);
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s, color 0.15s, border-color 0.2s;
  display:inline-block;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #41B883;
  color: #fff;
  border-color: #35a570;
}
/* --- Responsive header & nav --- */
@media (max-width: 1024px) {
  .main-nav {
    gap: 14px;
  }
  .btn-primary {
    margin-left: 14px;
    padding: 12px 18px;
  }
}
@media (max-width: 860px) {
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .main-nav {
    display: none;
  }
  .btn-primary {
    margin-left: auto;
  }
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  background: #41B883;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 2.1rem;
  padding: 2px 17px 2px 12px;
  cursor: pointer;
  margin-left: 18px;
  display: none;
  box-shadow: 0 2px 12px rgba(65,184,131,0.14);
  transition: background 0.18s, transform 0.12s;
  z-index: 2050;
}
.mobile-menu-toggle:active {
  background: #289e64;
  transform: scale(.96);
}
@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: inline-block;
  }
}

.mobile-menu {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fafffd;
  box-shadow: 0 8px 32px #0002;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.32s cubic-bezier(.74,0,.25,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: #41B883;
  padding: 18px;
  margin-top: 4px;
  align-self: flex-end;
  cursor: pointer;
  transition: color .16s, transform .12s;
}
.mobile-menu-close:hover {
  color: #257d59;
  transform: scale(.97);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 15px;
  align-items: flex-start;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.12rem;
  color: #11324D;
  padding: 13px 22px;
  border-radius: 8px;
  margin-left: 12px;
  width: calc(100% - 24px);
  font-weight: 600;
  transition: background .14s, color .17s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e2fff4;
  color: #41B883;
}

@media (min-width: 861px) {
  .mobile-menu, .mobile-menu-toggle { display: none; }
}

/* --- MAIN --- */
main {
  margin-top: 0;
}

/* --- FLEX LAYOUTS FOR ALL --- */
.section {margin-bottom: 60px; padding: 40px 20px;}
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* --- BUTTONS, CTA --- */
button, .btn-primary, .btn-secondary {
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.16s, border-color 0.15s, transform .11s;
}
button:focus, .btn-primary:focus, .btn-secondary:focus {outline: 2px solid #b6ebdc; outline-offset: 1.5px;}

/* --- LISTS, LINKS --- */
ul, ol {
  margin-bottom: 16px;
  list-style: disc outside;
}
li {
  margin-bottom: 10px;
}
li strong { color: #35a570; }

/* --- FOOTER --- */
footer {
  width: 100%;
  background: linear-gradient(90deg, #f6fdff 80%, #fffdfe 100%);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -2px 14px 0 #b6caee19;
  padding: 42px 0 20px 0;
  margin-top: 42px;
}
footer .container {
  flex-direction: row;
  gap: 30px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
}
.footer-menu {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}
.footer-menu a {
  color: #175070;
  font-size: 0.99rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s, color 0.14s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #f0fcf7;
  color: #41B883;
}
.footer-contact {
  font-size: 1rem;
  color: #235078;
  flex: 1 1 310px;
  max-width: 380px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-contact img {
  height: 29px;
  margin-right: 12px;
  vertical-align:middle;
}
.footer-social {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top:4px;
}
.footer-social a img {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #39a48111;
  transition: transform .16s, box-shadow .12s;
}
.footer-social a:hover img {
  transform: scale(1.08) rotate(2.5deg);
  box-shadow: 0 4px 12px #b6ebdc44;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* ---- Cookie Consent Banner ---- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  z-index: 3300;
  background: #f6feff;
  border-top: 2px solid #e6efe5;
  box-shadow: 0 -4px 18px rgba(65,184,131,0.11);
  padding: 18px 10px 18px 10px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 28px;
  font-size: 1rem;
  color: #153d54;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: transform 0.24s cubic-bezier(.66,0,.19,1), opacity 0.24s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner .cookie-text { max-width: 450px; }
.cookie-banner .cookie-btns { 
  display: flex; flex-direction: row; gap: 14px; align-items: center; 
  flex-wrap: wrap;
}
.cookie-banner button {
  padding: 9px 18px;
  border: none;
  border-radius: 9px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: 0 1px 4px #41b88326;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, box-shadow 0.16s;
}
.cookie-banner .accept {
  background: #41B883;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #32a773;
  color: #fff;
  box-shadow: 0 3px 8px #009c6066;
}
.cookie-banner .reject {
  background: #fff4f6;
  color: #e66a98;
  border: 1.5px solid #f7c7db;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #ffeef5;
  color: #b53262;
}
.cookie-banner .settings {
  background: #fff;
  color: #11324D;
  border: 1.5px solid #cad9e2;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #f8fcfa;
  color: #41B883;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    gap: 14px;
    font-size: .99rem;
    padding: 13px 4px 14px 4px;
  }
  .cookie-banner .cookie-btns {
    gap: 7px;
    width: 100%;
    justify-content: flex-start;
  }
}

/* --- Cookie Consent Modal --- */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  z-index: 3400;
  background: rgba(0,34,51,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s cubic-bezier(.53,0,.47,1);
}
.cookie-modal.open { opacity: 1; pointer-events: all; }
.cookie-modal-content {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 4px 32px rgba(17,50,77,0.11);
  padding: 36px 34px 28px 34px;
  min-width: 340px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  animation: modalFadeIn 0.29s cubic-bezier(.46,1.28,.51,0.93);
}
@keyframes modalFadeIn { from { opacity:0; transform:translateY(22%);} to {opacity:1;transform:translateY(0);} }
.cookie-modal-close {
  position: absolute;
  right: 17px;
  top: 18px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: #41B883;
  cursor: pointer;
  padding: 2px 13px 2px 8px;
  border-radius: 7px;
  transition: background .13s;
}
.cookie-modal-close:hover { background: #ebfcf6; }
.cookie-modal h2 {
  font-size: 1.15rem;
  margin-bottom: 0;
  color: #11324D;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category label {
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222;
  margin-bottom: 0;
}
.cookie-toggle {
  width:44px; height: 22px; cursor: pointer;
  border-radius: 44px;
  background: #e6efe5;
  border: none;
  transition: background .17s;
  position: relative;
}
.cookie-toggle[data-checked="true"] {
  background: #41B883;
}
.cookie-toggle .circle {
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  position: absolute; left: 2px; top: 1px;
  box-shadow: 0 1px 4px #11324d12;
  transition: left .17s;
}
.cookie-toggle[data-checked="true"] .circle {
  left: 22px;
}
.cookie-category .always-on {
  font-size: .94rem;
  color: #58b18b;
  font-weight: 600;
  margin-left: 6px;
}
.cookie-modal-btns {
  display: flex; flex-direction: row; gap:15px;
  margin-top: 14px;
}
/* --- Contact Details --- */
.contact-details {
  display: flex; flex-direction: column; gap: 10px;
  font-size: 1.04rem;
  color: #133b54;
  margin: 13px 0 7px 0;
}
.contact-details img { height: 20px; width: 20px; margin-right: 9px; vertical-align: middle; }

@media (max-width: 660px) {
  .contact-details { font-size: 0.96rem; }
}

/* --- Subtle Animations --- */
a,
.btn-primary,
.btn-secondary,
button,
.mobile-nav a {
  transition: background 0.13s, color 0.13s, box-shadow 0.13s, border 0.13s, transform 0.13s;
}

/* --- Micro-interactions (cards, feature-item, etc) --- */
.card:focus-within, .card:hover, .feature-item:focus-within, .feature-item:hover {
  box-shadow: 0 8px 32px 0 rgba(41,163,110,0.17);
  z-index: 2;
}

/* --- Accessibility --- */
:focus {
  outline: 2px dotted #41B883;
  outline-offset: 2px;
  z-index: 10;
}

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

/* --- Soft Pastel Theming Pastel Colors --- */
body {
  background: #F5F6FA;
}
.content-wrapper, .card, .feature-item, .cookie-modal-content  {
  background: #fff;
}
.feature-item {
  background: #e7f5f8;
}
.testimonial-card {
  background: #fafdff;
  border-left: 5px solid #84d5b1;
}
@media (max-width: 600px) {
  .content-wrapper { padding: 16px 2px; }
  section { padding: 22px 0 0 0; }
}

/* -- Custom Scrollbar -- */
body::-webkit-scrollbar {
  width: 9px;
}
body::-webkit-scrollbar-thumb {
  background: #d8f8e9;
  border-radius: 8px;
}
body::-webkit-scrollbar-track {
  background: #fafafa;
}

/* --- Pastel shapes/decor (no absolute for content) --- */
/* If desired, you can add pastel dots/rings as pseudo-elements separately. */

/* ===== Soft Pastel Color Variables (fallbacks) ===== */
:root {
  --brand-primary: #11324D;
  --brand-secondary: #41B883;
  --brand-accent: #F5F6FA;
  --pastel-blue: #eaf6fa;
  --pastel-green: #e8fbed;
  --pastel-pink: #fef7fa;
  --pastel-mint: #eefdf7;
  --pastel-purple: #f5ecfa;
}

/* --- Utility spacing classes --- */
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.pt-24 { padding-top: 24px; }

/* ===== Responsive Table/Content (for legal pages) ===== */
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; background: #f8fcfd; margin-bottom: 18px;}
th, td { border: 1px solid #bee0e8; padding: 6px 10px; text-align: left;}

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