/* ===========================================
   ErkenntnisWelt CSS – Minimalist Flexbox UI
   Brand: ErkenntnisWelt
   Color Palette: 
      Primary:   #1B3556
      Secondary: #82C8E1
      Accent:    #E9F6FB
      Text:      #1B3556
   Fonts: Montserrat (display), Roboto (body)
   Minimalist, lots of white space, subtle shadows
   =========================================== */

/* ---------- 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, 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;
  box-sizing: border-box;
}
body {
  font-family: 'Roboto', Arial, sans-serif;
  color: #1B3556;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
}
img, picture {
  max-width: 100%;
  display: block;
}
a {
  color: #1B3556;
  text-decoration: none;
  transition: color 0.2s;
}

/* --------- TYPOGRAPHY ----------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1B3556;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.75rem;
  line-height: 1.1;
  margin-bottom: 24px;
}
h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.125rem;
  margin-bottom: 10px;
  font-weight: 500;
}
p, ul, ol,
.text-section {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 14px;
}
.subheadline {
  font-size: 1.125rem;
  color: #355C8F;
  margin-bottom: 28px;
  font-weight: 400;
}
strong {
  font-weight: 600;
  color: #1B3556;
}
em {
  color: #82C8E1;
  font-style: normal;
  font-weight: 500;
}

ul, ol {
  margin-left: 1.5em;
  margin-bottom: 16px;
  padding-left: 0.7em;
}
ul li, ol li {
  margin-bottom: 8px;
}

/* --------- CONTAINER ----------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* --------------- HEADER --------------- */
header {
  background: #fff;
  padding: 0;
  border-bottom: 1px solid #F0F5FB;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  padding-bottom: 10px;
}
header img {
  height: 36px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: #1B3556;
  padding: 4px 7px;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a:focus {
  background: #E9F6FB;
  color: #1B3556;
}

.btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 22px;
  padding: 11px 32px;
  margin-left: 20px;
  transition: background 0.19s, color 0.19s, box-shadow 0.2s;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(27, 53, 86, 0.04);
  outline: none;
  min-width: 120px;
  display: inline-block;
  text-align: center;
}
.btn-primary {
  background: #1B3556;
  color: #fff;
  box-shadow: 0 4px 24px rgba(27,53,86,0.07);
}
.btn-primary:hover,
.btn-primary:focus {
  background: #25477b;
  color: #fff;
  box-shadow: 0 2px 18px rgba(27,53,86,0.11);
}
.btn-secondary {
  background: #E9F6FB;
  color: #1B3556;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #82C8E1;
  color: #1B3556;
}

/* -------- MOBILE NAVIGATION ----------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #1B3556;
  margin-left: 18px;
}
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: 0 2px 48px 0 rgba(27,53,86,0.13);
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.77,0,.18,1);
  overflow-y: auto;
  padding: 24px 0 0 0;
  opacity: 1;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
}
.mobile-menu-close {
  position: absolute;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #1B3556;
  cursor: pointer;
  z-index: 10001;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
  margin-top: 60px;
  margin-left: 30px;
}
.mobile-nav a {
  font-size: 1.18rem;
  color: #1B3556;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 7px 0;
  border-radius: 5px;
  width: 100%;
  transition: background 0.15s, color 0.13s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #E9F6FB;
  color: #1B3556;
}

@media (max-width: 991px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 992px) {
  .mobile-menu {
    display: none !important;
  }
}


/* ----------- HERO SECTION ------------ */
.hero {
  background: #E9F6FB;
  padding: 62px 0 54px 0;
  margin-bottom: 60px;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 220px;
}
.hero h1 {
  color: #1B3556;
  margin-bottom: 18px;
}
.hero .subheadline {
  max-width: 580px;
}
.hero .btn {
  margin-top: 25px;
}

/* ----------- SECTIONS & LAYOUTS --------- */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  margin-bottom: 10px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px 0 rgba(27,53,86,0.06);
  padding: 28px 24px;
  margin-bottom: 20px;
  position: relative;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover,
.card:focus-within {
  box-shadow: 0 5px 26px 2px rgba(27,53,86,0.13);
  transform: translateY(-3px) scale(1.015);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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;
}

/* -------- CTA SECTION -------- */
.cta {
  background: #1B3556;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(27,53,86,0.08);
  margin-bottom: 60px;
  padding: 44px 0;
}
.cta .container {
  color: #fff;
}
.cta .btn-primary {
  background: #fff;
  color: #1B3556;
  box-shadow: 0 2px 12px 0 rgba(27,53,86,0.05);
}
.cta .btn-primary:hover {
  background: #82C8E1;
  color: #1B3556;
}


/* ------ FEATURE LIST (Homepage Section) --- */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

/* ----------- BLOG / EVENT LISTS ------------ */
.blog-post-list,
.event-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.blog-post-list li,
.event-list li {
  background: #fff;
  border-radius: 10px;
  padding: 26px 18px 18px 18px;
  box-shadow: 0 2px 13px rgba(27,53,86,0.06);
  margin-bottom: 20px;
  transition: box-shadow 0.18s;
}
.blog-post-list li:hover,
.event-list li:hover {
  box-shadow: 0 8px 24px rgba(27,53,86,0.10);
}
.category {
  display: inline-block;
  background: #E9F6FB;
  color: #1B3556;
  font-size: 0.95rem;
  padding: 2px 10px;
  border-radius: 12px;
  margin-top: 10px;
}

/* --------- BLOG CATEGORIES --------- */
.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}
.blog-categories span {
  background: #E9F6FB;
  color: #1B3556;
  font-size: 1em;
  padding: 5px 12px;
  border-radius: 8px;
}

/* ----------- TESTIMONIALS ----------- */
.testimonial-slider {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(27,53,86,0.07);
  min-width: 220px;
  max-width: 370px;
  margin-bottom: 20px;
  color: #1B3556;
  transition: box-shadow 0.18s, transform 0.2s;
  font-size: 1.05rem;
}
.testimonial-card:hover {
  box-shadow: 0 6px 24px rgba(27,53,86,0.09);
  transform: translateY(-3px) scale(1.02);
}
.testimonial-author {
  font-style: italic;
  font-size: 0.99rem;
  color: #355C8F;
}

/* -------- CONFIRMATION (Thank you) -------- */
.confirmation {
  padding: 32px 22px;
  border-radius: 12px;
  background: #E9F6FB;
  box-shadow: 0 2px 14px rgba(27,53,86,0.07);
  color: #1B3556;
}
.confirmation .btn {
  margin-top: 16px;
}

/* ----------- FOOTER -------------- */
footer {
  background: #fff;
  color: #1B3556;
  border-top: 1px solid #F0F5FB;
  margin-top: 66px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 22px;
  padding-bottom: 15px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid #E9F6FB;
  padding-bottom: 18px;
}
.footer-top a img {
  height: 32px;
}
.contact-short {
  font-size: 1em;
  line-height: 1.6;
  color: #1B3556;
}
.footer-navigation {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 1em;
  color: #355C8F;
}
.footer-navigation a {
  color: #355C8F;
  margin: 0 7px;
  transition: color 0.17s;
}
.footer-navigation a:hover {
  color: #1B3556;
}
.social-links {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 5px;
}
.social-links a img {
  height: 26px;
  width: 26px;
}
.footer-bottom {
  font-size: 0.94rem;
  color: #8B9BB4;
  margin-top: 9px;
}

/* -------------- COOKIE BANNER --------------- */
.cookie-banner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #fff;
  color: #1B3556;
  box-shadow: 0 -2px 26px rgba(27,53,86,0.13);
  padding: 28px 20px;
  z-index: 12000;
  font-size: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid #E9F6FB;
  animation: cookieFadeIn 0.4s;
}
@keyframes cookieFadeIn {
  from {transform: translateY(40px); opacity:0}
  to {transform: translateY(0);opacity:1}
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}
.cookie-banner .btn,
.cookie-banner button {
  min-width: unset;
  border-radius: 18px;
  padding: 8px 24px;
  font-size: 1em;
  margin: 0 3px;
  background: #E9F6FB;
  color: #1B3556;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 1px 4px 0 rgba(27,53,86,0.04);
  transition: background 0.16s, color 0.13s;
}
.cookie-banner .btn:hover,
.cookie-banner .btn:focus {
  background: #82C8E1;
  color: #1B3556;
}
.cookie-banner .btn.btn-primary {
  background: #1B3556;
  color: #fff;
}
.cookie-banner .btn.btn-primary:hover {
  background: #25477b;
}
.cookie-banner .btn.btn-secondary {
  background: #E9F6FB;
  color: #1B3556;
}
.cookie-banner .btn.btn-secondary:hover {
  background: #82C8E1;
}

/* -------------- COOKIE MODAL --------------- */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(26, 35, 56, 0.27);
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.3s;
}
@keyframes cookieModalFadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: #fff;
  color: #1B3556;
  padding: 38px 28px 28px 28px;
  border-radius: 13px;
  min-width: 320px;
  max-width: 420px;
  box-shadow: 0 8px 36px rgba(27,53,86,0.15);
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal h3 {
  font-size: 1.16rem;
  margin-bottom: 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #1B3556;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #1B3556;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  margin-top: 15px;
}
.cookie-modal .btn {
  border-radius: 16px;
  padding: 7px 23px;
  font-size: 1em;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #1B3556;
  cursor: pointer;
}

/* ----------- RESPONSIVE LAYOUTS ------------- */
@media (max-width: 991px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
@media (max-width: 820px) {
  .testimonial-slider {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
  }
}
@media (max-width: 768px) {
  html { font-size: 97%; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  h3 { font-size: 1.09rem; }
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero {
    padding: 44px 0 32px 0;
    margin-bottom: 34px;
  }
  .cta {
    padding: 34px 0;
  }
  .content-wrapper {
    gap: 18px;
  }
  .section {
    margin-bottom: 40px;
    padding: 22px 8px;
  }
  .card-container {
    gap: 14px;
  }
  .card {
    padding: 16px 10px;
    min-width: 150px;
  }
  .content-grid {
    flex-direction: column;
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 13px;
    align-items: flex-start;
  }
  .footer-top {
    gap: 16px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 18px;
    padding: 22px 12px;
    font-size: 0.97em;
  }
  .cookie-modal {
    min-width: 85vw;
    padding: 24px 8vw 18px 8vw;
  }
}
@media (max-width: 540px) {
  .hero .container {
    min-height: 0;
  }
  .card-container, .testimonial-slider {
    gap: 12px;
  }
  .blog-post-list li, .event-list li {
    padding: 14px 6px 10px 7px;
  }
}

/* ----------- UTILITY CLASSES ------------- */
.text-center {
  text-align: center!important;
}
.mt-0 { margin-top: 0!important; }
.mb-0 { margin-bottom: 0!important; }
.mt-1 { margin-top: 8px!important; }
.mb-1 { margin-bottom: 8px!important; }
.mt-2 { margin-top: 16px!important; }
.mb-2 { margin-bottom: 16px!important; }
.mb-3 { margin-bottom: 24px!important; }

/* ----------- FORM (contact, cookie modal) ----------- */
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1em;
  color: #1B3556;
  background: #F6FBFF;
  border: 1px solid #E9F6FB;
  border-radius: 7px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 14px;
  outline: none;
  transition: border 0.18s;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid #82C8E1;
}
label {
  display: block;
  margin-bottom: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #1B3556;
}

/* --------- ANIMATIONS & TRANSITIONS ----------- */
.btn, .main-nav a, .mobile-nav a,
.card, .testimonial-card,
input, textarea, select {
  transition: background 0.13s, color 0.14s, box-shadow 0.14s, border 0.13s, transform 0.14s;
}

/* ------ Z-INDEX SAFETY (menus, cookie, header) ----- */
header { z-index: 100; }
.mobile-menu { z-index: 9999; }
.cookie-banner { z-index: 12000; }
.cookie-modal-overlay { z-index: 13000; }

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