/* ===========================================
   VorsorgeKompass SOFT PASTEL FLEXBOX CSS
   Brand colors: #154570, #67959B, #E3E9EC
   Fonts: Montserrat (display), Roboto (body)
   =========================================== */

/* ---------- CSS RESET & BASE ---------- */
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,
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: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  color: #252538;
  background: #F7FAFC;
  line-height: 1.65;
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
a {
  color: #154570;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #2478c9;
  outline: none;
}

/* ----------- TYPOGRAPHY ----------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #19406A;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.2;
}
h2 {
  font-size: 1.6rem;
  margin-bottom: 18px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.subheadline {
  font-size: 1.125rem;
  color: #5C7485;
  margin-bottom: 18px;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
}
p, ul, ol {
  margin-bottom: 14px;
}
ul, ol {
  padding-left: 20px;
}
strong {
  font-weight: 700;
}

/* ----------- CONTAINER & LAYOUT ----------- */
.container {
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
.content-wrapper {
  width: 100%;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* ----------- HEADER & NAVIGATION ----------- */
header {
  width: 100%;
  background: #E3E9EC;
  box-shadow: 0 2px 12px rgba(100,130,180,0.06);
  position: sticky;
  top: 0;
  z-index: 1001;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  margin-right: 16px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #154570;
  letter-spacing: 0.01em;
  padding: 8px 8px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
header nav a:hover, header nav a:focus {
  background: #c5d2dc;
  color: #08203C;
}
.cta.primary {
  background: #E6F1FF;
  color: #154570;
  border: 2px solid #154570;
  border-radius: 24px;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-size: 1.01rem;
  font-weight: 700;
  padding: 9px 28px;
  margin-left: 24px;
  margin-right: 4px;
  cursor: pointer;
  box-shadow: 0 1px 10px rgba(21,69,112,0.04);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cta.primary:hover, .cta.primary:focus {
  background: #d1e5fa;
  color: #10345B;
  box-shadow: 0 3px 18px rgba(21,69,112,0.11);
}
.cta.secondary {
  background: #f4fafc;
  color: #67959B;
  border: 2px solid #67959B;
  border-radius: 24px;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 9px 26px;
  margin-top: 14px;
  margin-bottom: 6px;
  cursor: pointer;
  box-shadow: 0 1px 10px rgba(103, 149, 155, 0.09);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #e6f1ff;
  color: #154570;
  box-shadow: 0 3px 18px rgba(103,149,155,0.13);
}
.cta {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  line-height: 1.22;
  min-width: 160px;
}

header .mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #19406A;
  cursor: pointer;
  border-radius: 12px;
  padding: 6px 10px;
  transition: background 0.2s, box-shadow 0.2s;
  margin-left: 6px;
  display: none;
  outline: none;
}
header .mobile-menu-toggle:focus,
header .mobile-menu-toggle:hover {
  background: #d3dde4;
  box-shadow: 0 2px 7px rgba(103,149,155,0.07);
}

/* ---------- MOBILE MENU ---------- */
.mobile-menu {
  position: fixed;
  z-index: 2002;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(213,225,237,0.97);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.66,0,0.34,1);
  box-shadow: -8px 0 32px 0 rgba(35,57,73,0.12);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #19406A;
  margin: 18px 0 10px 18px;
  cursor: pointer;
  border-radius: 12px;
  transition: background 0.2s;
  outline: none;
  z-index: 2005;
  align-self: flex-start;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #ddeafa;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 24px;
  padding: 10px 32px;
  width: 100%;
}
.mobile-nav a {
  color: #154570;
  font-size: 1.2rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 600;
  background: none;
  border-radius: 8px;
  padding: 12px 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #c5d2dc;
  color: #08203C;
}

/* Hide normal nav on small screens */
@media (max-width: 1020px) {
  header nav, header .cta.primary {
    display: none;
  }
  header .mobile-menu-toggle {
    display: block;
  }
}

/* ---------- MAIN & FLEX LAYOUTS ---------- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.features-grid > div {
  background: #FAFCFF;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(194, 210, 230, 0.14);
  padding: 28px 24px 20px 24px;
  min-width: 220px;
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.22s, transform 0.15s;
}
.features-grid > div:hover {
  box-shadow: 0 8px 28px rgba(80,120,170,0.12);
  transform: translateY(-5px) scale(1.015);
}
.features-grid img {
  width: 42px;
  margin-bottom: 4px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #F6FAFE;
  border-radius: 19px;
  box-shadow: 0 2px 12px rgba(130,190,235,0.08);
  padding: 24px 20px 16px 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(114,164,215,0.22);
  transform: translateY(-4px) scale(1.012);
}
.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 26px;
  margin-bottom: 20px;
  background: #F7F9FB;
  box-shadow: 0 2px 11px rgba(86,130,180,0.09);
  border-radius: 17px;
  color: #21253b;
  font-size: 1.06rem;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 72px;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  color: #1c2338;
  line-height: 1.55;
  margin-bottom: 0;
}
.testimonial-card span {
  color: #5a6b86;
  font-size: 0.98rem;
  font-style: italic;
  margin-left: 12px;
  white-space: nowrap;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px 0 rgba(100,130,180,0.18);
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.map-placeholder {
  display: flex;
  flex-direction: row;
  align-items: center;
  background: #FAFDFE;
  border-radius: 13px;
  box-shadow: 0 1px 8px rgba(134,180,214,0.09);
  padding: 12px 16px;
  gap: 14px;
  margin-top: 14px;
}
.map-placeholder img {
  width: 32px;
}
.map-placeholder span {
  color: #3d547a;
  font-size: 1.05rem;
}

/* ---------- MODALS & OVERLAYS ---------- */
.modal {
  position: fixed;
  z-index: 4000;
  inset: 0;
  background: rgba(220, 235, 255, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  opacity: 0;
  pointer-events: none;
}
.modal.open {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 4px 32px 0 rgba(100, 130, 180, 0.14);
  padding: 38px 26px 30px 26px;
  min-width: 295px;
  max-width: 97vw;
  color: #252538;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal-close {
  position: absolute;
  top: 11px;
  right: 14px;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #19406A;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.18s;
}
.modal-close:hover, .modal-close:focus {
  background: #E3E9EC;
}

/* ---------- FOOTER ---------- */
footer {
  width: 100%;
  background: #E3E9EC;
  border-top: 1px solid #dbe7eb;
  padding: 38px 0 16px 0;
  margin-top: 50px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
}
footer .branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 230px;
  min-width: 180px;
}
footer .branding img {
  width: 44px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #19406A;
  opacity: 0.95;
  font-size: 1rem;
  padding: 5px 0 5px 0;
  transition: color 0.2s;
}
footer nav a:hover,
footer nav a:focus {
  color: #2478c9;
  text-decoration: underline;
}
footer .privacy-shortcut {
  margin-left: auto;
  font-size: 0.98rem;
}
footer .privacy-shortcut a {
  color: #5d7e94;
  text-decoration: underline;
}

/* ---------- COOKIE CONSENT BANNER ---------- */
#cookie-banner {
  position: fixed;
  left: 0; bottom: 0; right: 0;
  background: #FAFCFF;
  color: #25304a;
  box-shadow: 0 -2px 18px rgba(95,100,130,0.14);
  padding: 22px 18px 22px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  z-index: 3000;
  gap: 18px;
  font-size: 1rem;
  border-top: 1px solid #c5d2dc;
  animation: cookieBannerFadeIn 0.8s;
}
@keyframes cookieBannerFadeIn {
  0% { opacity:0; transform: translateY(30px); }
  100% { opacity:1; transform: translateY(0); }
}
#cookie-banner .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
.cookie-btn {
  cursor: pointer;
  border: none;
  border-radius: 18px;
  padding: 8px 24px;
  font-weight: 500;
  font-size: 1rem;
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  background: #edf5fa;
  color: #154570;
  transition: background 0.18s, color 0.18s, box-shadow 0.14s;
  box-shadow: 0 1px 6px rgba(100,130,180,0.08);
}
.cookie-btn.accept {
  background: #e2f2ec;
  color: #197868;
  border: 2px solid #87beb3;
}
.cookie-btn.accept:hover {
  background: #bce4d4;
  color: #0e3c34;
}
.cookie-btn.reject {
  background: #ffdfe4;
  color: #b43c46;
  border: 2px solid #ffbac7;
}
.cookie-btn.reject:hover {
  background: #ffbac7;
  color: #840021;
}
.cookie-btn.settings {
  background: #E3E9EC;
  color: #154570;
  border: 2px solid #154570;
}
.cookie-btn.settings:hover {
  background: #d1e5fa;
  color: #10345B;
}

#cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 3200;
  background: rgba(19,57,113,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s;
}
#cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
#cookie-modal .modal-content {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 4px 32px 0 rgba(100, 130, 180, 0.14);
  padding: 36px 24px;
  color: #21253b;
  font-size: 1.04rem;
  min-width: 320px;
}
#cookie-modal h3 {
  color: #154570;
  font-size: 1.18rem;
  margin-bottom: 9px;
}
.cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0 22px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  font-weight: 500;
}
.cookie-category input[type=checkbox]:disabled + label {
  color: #3e7589;
}
.cookie-category label {
  color: #21406b;
  font-size: 1.01rem;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 24px;
}

/* ---------- ACCESSIBILITY FOCUS ---------- */
a:focus,
button:focus,
input:focus, .modal-close:focus {
  outline: 2px dashed #67959B;
  outline-offset: 2px;
}

/* ---------- MEDIA QUERIES: MOBILE FIRST ---------- */
@media (max-width: 850px) {
  .container {
    padding: 0 10px;
  }
  .features-grid {
    gap: 18px;
  }
  footer .container {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  .section {
    margin-bottom: 36px;
    padding: 28px 4px;
  }
  .features-grid > div {
    min-width: 90%;
    padding: 18px 10px 14px 15px;
  }
  .content-grid,
  .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 8px;
    padding: 15px 10px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
  }
  .text-section {
    gap: 11px;
  }
  footer .branding img {
    width: 36px;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 97%;
  }
  .container {
    padding: 0 3px;
  }
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.02rem; }
  .footer nav, footer .privacy-shortcut {
    font-size: 0.93rem;
  }
  #cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 18px 8px 20px 8px;
    font-size: 0.97rem;
  }
  .cookie-btn {
    font-size: 0.97rem;
    padding: 8px 16px;
  }
  .modal-content, #cookie-modal .modal-content {
    min-width: 92vw;
    padding: 22px 7px 18px 7px;
  }
}

/* ---------- ANIMATIONS & MICRO-INTERACTIONS ---------- */
.cta,.cookie-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.14s, transform 0.16s;
}
.cta:active, .cookie-btn:active {
  transform: scale(0.97);
}

/* ---------- HIDE COOKIE BANNER/OVERLAY WHEN JS ACTIVE ---------- */
#cookie-banner[hidden],
#cookie-modal[hidden] {
  display: none!important;
}

/* DARK MODE SUPPORT (OPTIONAL, CAN BE REMOVED IF NOT DESIRED) */
@media (prefers-color-scheme: dark) {
  body {
    background: #222e36;
    color: #eaf4fd;
  }
  header, footer {
    background: #25304a;
  }
  .section,
  .features-grid > div,
  .card,
  .testimonial-card,
  .map-placeholder {
    background: #2e3e51;
    color: #eaf4fd;
  }
  .cta, .cta.primary, .cta.secondary {
    background: #375d7b;
    color: #d0e5ff;
    border-color: #d0e5ff;
  }
  .cta.primary:hover, .cta.secondary:hover {
    background: #588CC5;
    color: #fff;
  }
  a, header nav a, .mobile-nav a, .privacy-shortcut a { color: #c2e9ff; }
  a:hover, header nav a:hover, .mobile-nav a:hover { color: #fff; }
  #cookie-banner, #cookie-modal .modal-content {
    background: #29384b;
    color: #eaf4fd;
  }
  .cookie-btn, .cookie-btn.accept, .cookie-btn.reject, .cookie-btn.settings {
    background: #19406A;
    color: #eaf4fd;
    border-color: #63B1CF;
  }
  .cookie-btn.accept:hover {
    background: #256e71;
    color: #b7f3ee;
  }
  .cookie-btn.reject:hover {
    background: #b43c46;
    color: #fff;
  }
  .cookie-btn.settings:hover {
    background: #588CC5;
    color: #fff;
  }
}

/* ----------- MISCELLANEOUS ----------- */
::-webkit-input-placeholder { color: #a7b6c2; }
::-moz-placeholder { color: #a7b6c2; }
:-ms-input-placeholder { color: #a7b6c2; }
::placeholder { color: #a7b6c2; }

/* Hide elements with [hidden] attribute */
[hidden] { display: none !important; }

/* ----------- END ----------- */
