/* ------ 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 {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Source Sans Pro', Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #203A43;
  background: #F7F2E4;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol {
  padding-left: 1.6em;
}
a {
  color: #548687;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #203A43;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button, input[type="submit"], .cta-button, .download-button, .registration-link {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 16px;
  cursor: pointer;
}

/* ------ TYPOGRAPHY ------ */
h1, .hero h1 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-size: 2.5rem;
  color: #203A43;
  margin-bottom: 20px;
  line-height: 1.18;
  letter-spacing: 0.01em;
}
h2 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #203A43;
  margin-bottom: 18px;
  line-height: 1.22;
}
h3 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #203A43;
  margin-bottom: 12px;
  line-height: 1.25;
}
p, ul, ol, li, blockquote {
  font-size: 1rem;
  color: #203A43;
  margin-bottom: 14px;
}
strong {
  font-weight: 600;
  color: #203A43;
}
blockquote {
  font-style: italic;
  color: #203A43;
  border-left: 4px solid #548687;
  padding-left: 18px;
  margin-bottom: 12px;
  background: rgba(244, 249, 246, 0.3);
}

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

/* ------ HEADER & NAV ------ */
header {
  background: #fff;
  box-shadow: 0 1px 16px rgba(32,58,67,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 20px;
}
header a img {
  height: 42px;
  margin-right: 12px;
}
nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 500;
  color: #203A43;
  font-size: 1rem;
  padding: 6px 0;
  transition: color 0.18s;
  position: relative;
}
nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #548687;
  transition: width 0.2s;
  position: absolute;
  left: 0;
  bottom: -4px;
}
nav a:hover:after, nav a:focus:after {
  width: 100%;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  background: #548687;
  color: #fff;
  border-radius: 30px;
  border: none;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(32,58,67,0.05);
  transition: background 0.2s, box-shadow 0.2s, color 0.2s;
}
.cta-button:hover, .cta-button:focus {
  background: #203A43;
  color: #fff;
  box-shadow: 0 4px 18px rgba(32,58,67,0.10);
  text-decoration: none;
}
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #548687;
  display: none;
  padding: 8px 14px;
  transition: color 0.2s, background 0.2s;
  z-index: 120;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  color: #203A43;
  background: #F1F4F6;
  border-radius: 8px;
}

/* ------ MOBILE NAVIGATION ------ */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  background: rgba(32,58,67,0.96);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.47,1.64,.41,.8);
  display: flex;
  flex-direction: column;
  padding-top: 34px;
  /* Hidden by default */
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  position: absolute;
  top: 22px;
  right: 24px;
  padding: 8px 10px;
  z-index: 10001;
  cursor: pointer;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #F7F2E4;
  background: #548687;
  border-radius: 8px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-top: 60px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.3rem;
  padding: 14px 0;
  border-radius: 10px;
  width: 80vw;
  text-align: center;
  transition: background 0.16s, color 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #548687;
  color: #FFF;
  text-decoration: none;
}

/* ------ HERO ------ */
.hero {
  background: linear-gradient(110deg, #F7F2E4 68%, #E6ECEB 100%);
  min-height: 320px;
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  padding: 40px 0 22px 0;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.hero p {
  font-size: 1.25rem;
  max-width: 530px;
}

/* ------ SECTION BASE & LAYOUT FLEX ------ */
.section,
main>section,
.privacy-policy,
.gdpr-information,
.cookie-policy,
.terms-of-use,
.thank-you {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  max-width: 780px;
}

/* ------ FLEX LAYOUTS FOR CARDS/GRIDS ------ */
.feature-grid,
.benefit-grid,
.innovation-list,
.events-overview,
.team-list,
.project-list,
.publication-entries {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 20px;
  margin-bottom: 10px;
}
.feature-grid > div,
.benefit-grid > div,
.innovation-list > div,
.events-overview > .event-item,
.project-list > .project-category,
.publication-entries > .publication-item,
.team-list > .team-member {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(32,58,67,0.08);
  padding: 30px 24px;
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow 0.22s, transform 0.19s;
}
.feature-grid > div:hover,
.benefit-grid > div:hover,
.innovation-list > div:hover,
.project-list > .project-category:hover,
.publication-entries > .publication-item:hover,
.team-list > .team-member:hover {
  box-shadow: 0 8px 21px rgba(84,134,135,0.13);
  transform: translateY(-4px) scale(1.017);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 7px rgba(32,58,67,0.07);
  transition: box-shadow 0.21s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 7px 24px rgba(32,58,67,0.12);
  transform: translateY(-3px) scale(1.011);
}
.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: #EEF3F3;
  color: #203A43;
  border-radius: 14px;
  box-shadow: 0 1.5px 11px rgba(32,58,67,0.07);
  margin-bottom: 20px;
  transition: box-shadow 0.2s;
}
.testimonial-card blockquote {
  font-size: 1.07rem;
  color: #203A43;
  border: none;
  background: none;
  padding: 0;
}
.testimonial-card p {
  color: #548687;
  margin-left: 12px;
  font-style: normal;
  font-size: 0.97rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* LISTS */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 18px;
}
.service-list li {
  background: #fff;
  border-radius: 12px;
  padding: 22px 22px 16px 22px;
  box-shadow: 0 1px 7px rgba(32,58,67,0.05);
  margin-bottom: 20px;
  min-width: 220px;
  max-width: 330px;
  flex: 1 1 220px;
  list-style: none;
}
.value-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 18px 0 12px 0;
}
.value-list li {
  background: #F4F9F6;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 1rem;
}
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}
.team-member {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 9px rgba(32,58,67,0.07);
  padding: 24px 16px;
  flex: 1 1 215px;
  min-width: 180px;
  max-width: 320px;
}

.technology-highlights ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

/* ------ BUTTONS ------ */
.download-button, .registration-link {
  display: inline-block;
  padding: 9px 24px;
  background: #203A43;
  color: #fff;
  border-radius: 20px;
  font-weight: 600;
  border: none;
  margin-top: 10px;
  text-align: center;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(32,58,67,0.07);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.download-button:hover, .registration-link:hover, .download-button:focus, .registration-link:focus {
  background: #548687;
  color: #fff;
  box-shadow: 0 4px 18px rgba(32,58,67,0.12);
  text-decoration: none;
}

/* ------ FOOTER ------ */
footer {
  background: #fff;
  margin-top: 80px;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 -2px 25px rgba(32,58,67,0.07);
  padding: 30px 0 16px 0;
}
.footer-brand img {
  height: 46px;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
  margin-top: 12px;
}
.footer-links a {
  font-size: 1rem;
  color: #548687;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.footer-links a:hover, .footer-links a:focus {
  color: #203A43;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 0.97rem;
  color: #203A43;
  align-items: flex-start;
}
.footer-contact p img {
  height: 18px;
  margin-right: 11px;
  vertical-align: middle;
}
.footer-social {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
}
.footer-social a img {
  height: 21px;
}
.footer-copy {
  font-size: 0.90rem;
  color: #9BB6B6;
  margin-top: 8px;
  text-align: left;
}

/* ------ CTA SECTION ------ */
.cta-section {
  background: #F4F9F6;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(32,58,67,0.06);
  margin-bottom: 60px;
  padding: 48px 20px;
}
.cta-section h2 {
  color: #203A43;
}

/* ------ COOKIE CONSENT BANNER ------ */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #203A43;
  box-shadow: 0 -2px 14px rgba(32,58,67,0.12);
  color: #fff;
  z-index: 10300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 16px 18px 16px;
  width: 100%;
  gap: 26px;
  font-size: 1rem;
  transition: transform 0.25s;
}
.cookie-banner.hide {
  transform: translateY(130%);
  opacity: 0.01;
}
.cookie-banner .cookie-text {
  max-width: 520px;
  font-size: 1rem;
  margin-right: 18px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  border: none;
  border-radius: 21px;
  padding: 10px 24px;
  cursor: pointer;
  background: #548687;
  margin-left: 0;
  transition: background 0.17s, color 0.17s;
  outline: none;
}
.cookie-banner button.accept {
  background: #548687;
}
.cookie-banner button.reject {
  background: #A8544F;
}
.cookie-banner button.cookie-settings {
  background: #7FBFB8;
  color: #203A43;
}
.cookie-banner button:hover,
.cookie-banner button:focus {
  background: #203A43;
  color: #fff;
}
.cookie-banner button.cookie-settings:hover,
.cookie-banner button.cookie-settings:focus {
  background: #548687;
  color: #fff;
}

/* ------ COOKIE MODAL ------ */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 10399;
  background: rgba(32, 58, 67, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.23s;
  opacity: 1;
}
.cookie-modal {
  background: #fff;
  color: #203A43;
  border-radius: 20px;
  padding: 32px 32px 20px 32px;
  min-width: 320px;
  max-width: 98vw;
  box-shadow: 0 8px 40px rgba(32,58,67,0.22);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: cookie-modal-appear 0.22s cubic-bezier(.46,1.36,.39,.99);
}
@keyframes cookie-modal-appear {
  0% { transform: scale(0.88) translateY(45px); opacity:0.03; }
  90% { opacity:1; }
  100% { transform: scale(1) translateY(0); opacity:1; }
}
.cookie-modal-close {
  position: absolute;
  right: 22px;
  top: 14px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #548687;
  cursor: pointer;
  transition: color 0.18s, background 0.12s;
  padding: 4px 8px;
  border-radius: 9px;
}
.cookie-modal-close:hover,
.cookie-modal-close:focus {
  background: #F4F9F6;
  color: #203A43;
}
.cookie-modal h2 {
  font-size: 1.5rem;
  color: #203A43;
}
.cookie-modal .cookie-category {
  display: flex; align-items: center; gap: 12px; margin:16px 0 7px 0;
}
.cookie-category label {
  font-weight: 600;
  font-size: 1rem;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #548687;
  margin-right: 7px;
}
.cookie-modal .essential {
  color: #7fa6a6; font-style: italic; font-size: 0.95rem;
}
.cookie-modal .modal-actions {
  display: flex; justify-content: flex-end; gap: 12px; margin-top: 6px;
}
.cookie-modal .modal-actions button {
  padding: 10px 26px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  border-radius: 21px;
  border: none;
  background: #548687;
  color: #fff;
  font-size: 1rem;
  transition: background 0.17s, color 0.17s;
}
.cookie-modal .modal-actions button.cancel {
  background: #7FBFB8;
  color: #203A43;
}
.cookie-modal .modal-actions button:hover,
.cookie-modal .modal-actions button:focus {
  background: #203A43;
  color: #fff;
}

/* ------ RESPONSIVE DESIGN ------ */
@media (max-width: 1024px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  .feature-grid > div, .benefit-grid > div, .innovation-list > div, .project-list > .project-category, .team-list > .team-member,
  .service-list li, .publication-entries > .publication-item, .events-overview > .event-item {
    max-width: 100%;
    min-width: 200px;
    flex: 1 1 220px;
  }
  .footer-brand img {
    height: 36px;
  }
}
@media (max-width: 768px) {
  /* HEADER */
  header .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
  }
  nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .cta-button {
    padding: 11px 22px;
    margin-left: 0;
  }
  .hero, .cta-section, .section, main > section {
    padding: 30px 0 15px 0;
    margin-bottom: 44px;
  }
  .hero .container, .cta-section .container, .section .container, main > section .container {
    padding: 0 8px !important;
  }
  .feature-grid, .benefit-grid, .innovation-list, .events-overview, .team-list, .service-list, .publication-entries, .card-container, .project-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .benefit-grid > div, .innovation-list > div, .project-list > .project-category, .team-member, .service-list li, .publication-item, .event-item {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
    margin-bottom: 16px;
  }
  .content-wrapper {
    gap: 17px;
  }
  .footer-links {
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.95rem;
  }
  .footer-contact p {
    font-size: 0.94rem;
  }
  .cta-section {
    padding: 28px 10px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .cookie-banner .cookie-text {
    margin-right: 0;
    max-width: 98vw;
    font-size: 0.98rem;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    font-size: 0.97rem;
    padding: 16px 6px 16px 8px;
  }
  .cookie-banner .cookie-actions {
    gap: 8px;
  }
  .cookie-modal {
    padding: 16px 7vw 13px 7vw;
    min-width: 180px;
    font-size: 1rem;
  }
}
@media (max-width: 480px) {
  h1, .hero h1 { font-size: 1.4rem; }
  h2 { font-size: 1.12rem; }
  h3 { font-size: 1rem; }
  .hero, .cta-section, .section, main > section {
    padding: 18px 0 12px 0;
    margin-bottom: 32px;
  }
  .feature-grid > div, .benefit-grid > div, .innovation-list > div, .project-list > .project-category, .team-member, .service-list li,
  .publication-item, .event-item {
    padding: 16px 7px;
    font-size: 0.97rem;
  }
  .footer-brand img {
    height: 28px;
  }
  .cta-button, .download-button, .registration-link {
    font-size: 0.97rem;
    padding: 9px 18px;
  }
  .cookie-banner {
    font-size: 0.92rem;
  }
}

/* ------ UTILITY CLASSES ------ */
.mt-3 { margin-top: 18px; }
.mb-3 { margin-bottom: 18px; }
.mt-2 { margin-top: 12px; }
.mb-2 { margin-bottom: 12px; }
.center { text-align: center; justify-content: center; }
.text-muted { color: #9BB6B6; }
.rounded { border-radius: 12px; }

/* --- Misc Specifics --- */
::-webkit-input-placeholder { color: #BFCAD0; }
::-moz-placeholder { color: #BFCAD0; }
:-ms-input-placeholder { color: #BFCAD0; }
::placeholder { color: #BFCAD0; }

/* Accessibility focus states */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid #548687;
  outline-offset: 2px;
}

/* Decorative separators (if needed) */
hr {
  border: none;
  border-top: 2px solid #EEF3F3;
  margin: 28px 0;
}

/* ------ MICRO INTERACTIONS & ANIMATIONS ------ */
.card,
.feature-grid > div,
.benefit-grid > div,
.innovation-list > div,
.project-list > .project-category,
.publication-entries > .publication-item,
.team-list > .team-member,
.service-list li,
.cta-button, .download-button,
.registration-link
{
  transition: box-shadow 0.22s cubic-bezier(.21,.61,.35,1), transform 0.12s cubic-bezier(.45,.01,1,.56);
}
.card:active,.cta-button:active,.download-button:active,.registration-link:active {
  transform: scale(0.97);
}

/* ------ ENSURE NO OVERLAPS ------ */
.card, .testimonial-card, .feature-grid>div, .service-list li, .benefit-grid>div, .innovation-list>div, .event-item, .publication-item, .team-member {
  margin-bottom: 20px !important;
}
.section, main>section {
  margin-bottom: 60px !important;
}

/* ------ PRINT ATTR ------ */
@media print {
  header, footer, .cookie-banner, .cookie-modal-overlay, .mobile-menu { display: none !important; }
}
