/* CSS RESET & 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;
  box-sizing: border-box;
  vertical-align: baseline;
}
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  line-height: 1.5;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #18405A;
  background: #F0ECE2;
  min-height: 100vh;
}
a {
  color: #18405A;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.68,-0.55,.27,1.55);
}
a:hover, a:focus {
  color: #43A47E;
  outline: none;
}
ul, ol {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
button {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
}

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,600,500,400|Roboto:400,500,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #18405A;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.25rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h4, h5, h6 { font-size: 1rem; }
@media (min-width: 450px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.4rem; }
}

p, li {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #18405A;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1em;
}

strong, b {
  font-weight: 700;
}

/* LAYOUT & CONTAINERS */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section,
.hero,
.features,
.about-short,
.services-overview,
.services,
.features-publications,
.features-events,
.testimonials,
.about-team,
.methods,
.cookie-policy,
.nutzungsbedingungen,
.gdpr,
.datenschutz,
.location-overview,
.contact-details,
.callout,
.callout-confirm {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(24,64,90,0.05), 0 4px 24px 0 rgba(67,164,126,0.04);
  position: relative;
}

/* --- FLEX PATTERNS (from briefing) --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(24,64,90,0.07);
  overflow: hidden;
  margin-bottom: 20px;
  padding: 20px;
  position: relative;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow 0.25s cubic-bezier(.68,-0.55,.27,1.55), transform 0.18s cubic-bezier(.68,-0.55,.27,1.55);
}
.card:hover {
  box-shadow: 0 6px 20px rgba(24,64,90,0.12), 0 2px 8px rgba(67,164,126,0.07);
  transform: translateY(-5px) scale(1.02);
}
.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: #F0ECE2;
  border-radius: 14px 30px 14px 30px;
  box-shadow: 0 1px 10px rgba(24,64,90,0.05),0 0.5px 4px rgba(67,164,126,0.05);
  margin-bottom: 20px;
  min-width: 0;
  transition: box-shadow 0.2s cubic-bezier(.68,-0.55,.27,1.55);
  color: #18405A;
}
.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(24,64,90,0.12),0 2px 12px rgba(67,164,126,0.08);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- HERO STYLES --- */
.hero {
  background: #43A47E;
  background-image: linear-gradient(120deg, #43A47E 80%, #F0ECE2 100%);
  color: #fff;
  border-radius: 0 0 38px 38px;
  padding-top: 50px;
  padding-bottom: 60px;
  margin-bottom: 48px;
}
.hero h1, .hero p {
  color: #fff;
}
.hero .cta-btn {
  background: #fff;
  color: #18405A;
  box-shadow: 0 2px 16px rgba(24,64,90,0.12);
}
.hero .cta-btn:hover {
  background: #F0ECE2;
  color: #43A47E;
}

/* --- PRIMARY NAVIGATION --- */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
nav.primary-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
nav.primary-nav a {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  color: #18405A;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
  transition: background .2s, color .2s;
}
nav.primary-nav a.cta-btn {
  background: #43A47E;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 18px;
  padding: 10px 26px;
  box-shadow: 0 2px 16px 0 rgba(67,164,126,0.18);
  margin-left: 10px;
}
nav.primary-nav a.cta-btn:hover, nav.primary-nav a.cta-btn:focus {
  background: #18405A;
  color: #fff;
}
nav.primary-nav a:hover, nav.primary-nav a:focus {
  background: #F0ECE2;
}
.mobile-menu-toggle {
  display: none;
  z-index: 6000;
  background: #43A47E;
  color: #fff;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 1.4rem;
  align-items: center;
  justify-content: center;
  transition: background 0.19s cubic-bezier(.68,-0.55,.27,1.55);
}
.mobile-menu-toggle:focus {
  outline: 2px solid #18405A;
  background: #18405A;
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #18405A;
  color: #fff;
  z-index: 15000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  transform: translateX(-110vw);
  transition: transform 0.3s cubic-bezier(.68,-0.55,.27,1.55);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  color: #43A47E;
  background: none;
  border: none;
  font-size: 2rem;
  padding: 24px;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 12px;
  transition: color 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 8px;
  padding: 0 32px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 500;
  padding: 18px 0;
  border-bottom: 1px solid #43A47E22;
  border-radius: 0;
  transition: color 0.2s, background 0.21s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #43A47E;
  color: #fff;
}

/* --- FOOTER --- */
footer {
  background: #18405A;
  color: #fff;
  border-top: 7px solid #43A47E;
  margin-top: 40px;
  font-size: 1rem;
}
.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 0 20px 0;
  gap: 36px;
}
.footer-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-info p {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin: 0 0 2px 0;
  letter-spacing: 0.01em;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-menu a {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 4px 0;
  transition: color 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  color: #43A47E;
}
.small-city-hint {
  font-size: 0.96rem;
  color: #F0ECE2;
  font-style: italic;
  margin-top: 12px;
}

/* --- CTA STYLES --- */
.cta-btn {
  background: #43A47E;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 18px;
  padding: 12px 32px;
  font-size: 1.08rem;
  box-shadow: 0 2px 18px rgba(67,164,126,0.16);
  border: none;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.15s, color 0.18s, transform 0.14s;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #18405A;
  color: #fff;
  transform: translateY(-2px) scale(1.03);
}
.cta-link {
  color: #43A47E;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.07rem;
  border-bottom: 2.5px solid #43A47E;
  padding-bottom: 3px;
  margin-top: 10px;
  transition: border-color 0.22s, color 0.19s;
}
.cta-link:hover, .cta-link:focus {
  color: #18405A;
  border-color: #18405A;
}

/* --- FEATURES / TAGS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
  justify-content: flex-start;
}
.feature-grid li {
  background: #fff;
  box-shadow: 0 2px 12px rgba(24,64,90,0.07);
  border-radius: 16px;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 240px;
  flex: 1 1 270px;
  gap: 10px;
  border-left: 5px solid #43A47E;
  margin-bottom: 12px;
  transition: box-shadow 0.19s, transform 0.17s;
}
.feature-grid li:hover {
  box-shadow: 0 8px 22px rgba(24,64,90,.13);
  transform: translateY(-4px) scale(1.01);
}
.feature-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
}
.tag {
  background: #43A47E;
  color: #fff;
  border-radius: 22px;
  padding: 3px 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-left: 7px;
  vertical-align: middle;
  display: inline-block;
}
.highlight {
  background: #F0ECE2;
  color: #18405A;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-block;
  margin-top: 10px;
}

/* --- TEAM PROFILES (About) --- */
.team-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 12px;
}
.profile {
  flex: 1 1 230px;
  background: #F0ECE2;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(24,64,90,0.07);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  border-left: 5px solid #43A47E;
}
.profile h3 { margin-bottom: 5px; }

.timeline ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 6px;
}
.timeline li {
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
  margin-bottom: 2px;
}
.timeline li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 12px;
  background: #43A47E;
  border-radius: 3px;
  transform: rotate(45deg);
}

/* --- CONTACT INFOS --- */
.contact-infos {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 0 24px 0;
}
.contact-infos li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.06rem;
}
.contact-infos a {
  color: #43A47E;
  font-weight: 600;
}
.contact-infos a:hover, .contact-infos a:focus {
  color: #18405A;
  text-decoration: underline;
}

/* --- CALL OUTS & SPECIAL SECTIONS --- */
.callout, .callout-confirm {
  background: #18405A;
  color: #fff;
  text-align: center;
  border-radius: 22px;
  box-shadow: 0 2px 18px rgba(24,64,90,.18);
  padding: 44px 20px;
}
.callout .cta-btn, .callout-confirm .cta-btn {
  background: #43A47E;
  color: #fff;
}
.callout .cta-btn:hover, .callout-confirm .cta-btn:hover { background: #fff; color: #18405A; }

/* --- TABLES/LISTS --- */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}
th, td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e2e6ea;
}

ul li, ol li { margin-bottom: 8px; }

/* --- Cookie Consent Banner --- */
#cookie-consent-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #18405A;
  color: #fff;
  padding: 22px 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  box-shadow: 0px -2px 12px rgba(24,64,90,0.15);
  z-index: 12000;
  animation: cookieBannerIn 0.5s cubic-bezier(.68,-0.55,.27,1.55);
}
@keyframes cookieBannerIn {
  from { transform: translateY(80px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
#cookie-consent-banner b {
  color: #43A47E;
}
.cookie-btn-row {
  display: flex;
  gap: 13px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.cookie-btn {
  background: #43A47E;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 8px 20px;
  font-size: 1rem;
  min-width: 100px;
  cursor: pointer;
  transition: background .17s, color .13s, transform .15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #fff;
  color: #43A47E;
  transform: scale(1.04);
}
.cookie-btn.cookie-reject {
  background: #fff;
  color: #18405A;
  border: 1.5px solid #43A47E;
}
.cookie-btn.cookie-reject:hover, .cookie-btn.cookie-reject:focus {
  background: #43A47E;
  color: #fff;
}
.cookie-btn.cookie-settings {
  background: #18405A;
  color: #fff;
  border: 1.5px solid #43A47E;
}
.cookie-btn.cookie-settings:hover, .cookie-btn.cookie-settings:focus {
  background: #43A47E;
  color: #fff;
}

/* --- Cookie Modal --- */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; top: 0; right:0; bottom:0;
  z-index: 20001;
  background: rgba(24,64,90,0.48);
  align-items: center;
  justify-content: center;
  animation: cookieModalIn 0.3s cubic-bezier(.68,-0.55,.27,1.55);
}
#cookie-modal.open {
  display: flex;
}
@keyframes cookieModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fff;
  color: #18405A;
  border-radius: 18px;
  max-width: 420px;
  width: 92vw;
  padding: 32px 26px 24px 26px;
  box-shadow: 0 4px 36px rgba(24,64,90,0.16);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h2 {
  font-size: 1.25rem;
  margin-bottom: 16px;
  font-family: 'Montserrat', sans-serif;
  color: #18405A;
}
.cookie-category-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 7px;
}
.cookie-toggle {
  accent-color: #43A47E;
  width: 18px;
  height: 18px;
}
.cookie-category-name {
  font-weight: 600;
  font-family: 'Montserrat',sans-serif;
}
.cookie-modal-close {
  position: absolute;
  right: 18px;
  top: 10px;
  background: none;
  border: none;
  color: #18405A;
  font-size: 2rem;
  cursor: pointer;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #43A47E;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1150px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .footer-content {
    flex-direction: column;
    gap: 28px;
    align-items: flex-start;
  }
  nav.primary-nav {
    gap: 10px;
  }
}
@media (max-width: 850px) {
  .feature-grid, .team-profiles, .card-container, .content-grid {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .content-grid,
  .team-profiles,
  .feature-grid,
  .card-container,
  .footer-content {
    flex-direction: column;
    gap: 20px;
  }
  nav.primary-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .hero {
    padding: 36px 14px 36px 14px;
    border-radius: 0 0 22px 22px;
    margin-bottom: 32px;
  }
  .section,
  .about-short,
  .services-overview,
  .services,
  .features-publications,
  .features-events,
  .testimonials,
  .about-team,
  .methods,
  .cookie-policy,
  .nutzungsbedingungen,
  .gdpr,
  .datenschutz,
  .location-overview,
  .contact-details,
  .callout,
  .callout-confirm {
    padding: 32px 8px;
    margin-bottom: 32px;
  }
  .feature-grid li,
  .profile {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 480px) {
  .footer-content {
    padding: 22px 0 10px 0;
  }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .hero {
    padding: 22px 4px 24px 4px;
  }
  .callout, .callout-confirm {
    padding: 18px 5px;
    font-size: 0.98rem;
    border-radius: 10px;
  }
}

/* --- MICRO-ANIMATIONS & GEOMETRIC DECOR --- */
.section:before,
.card:before,
.profile:before {
  content: '';
  display: none;
}
/* You could add geometric SVGs as before-pseudoelements for advanced decoration if design requires */

/* --- ACCESSIBILITY --- */
:focus-visible {
  outline: 2px solid #43A47E;
  outline-offset: 2px;
}

/* --- SPECIAL FIXES --- */
.testimonial-card p, .testimonial-card span {
  color: #18405A;
  font-family: 'Roboto', sans-serif;
}
.testimonial-card span {
  font-weight: 600;
  font-size: 1rem;
  margin-left: 12px;
}

/* --- Misc Classes For Content --- */
.leadership-intro, .timeline {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 6px rgba(24,64,90,0.08);
  padding: 16px 14px;
  margin-bottom: 18px;
}

/* --- Geometric/Structured Shapes for Geometric Structured Aesthetic --- */
.section, .card, .feature-grid li, .profile, .testimonial-card, .leadership-intro, .timeline {
  /* Geometric edge and angles */
  border-radius: 14px 36px 14px 36px;
}

/* --- Snackbar/Toast for Cookie Modal Feedback (Optional) --- */
#cookie-toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%);
  background: #43A47E;
  color: #fff;
  padding: 14px 34px;
  border-radius: 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  z-index: 22000;
  box-shadow: 0 2px 12px rgba(24,64,90,0.28);
  opacity: 0;
  pointer-events: none;
  animation: toastIn 0.33s cubic-bezier(.68,-0.55,.27,1.55), toastOut 0.45s 2.15s cubic-bezier(.68,-0.55,.27,1.55) forwards;
}
@keyframes toastIn { from { opacity:0; transform: translateX(-50%) translateY(32px);} to {opacity:1;transform:translateX(-50%) translateY(0);}}
@keyframes toastOut { to { opacity:0; transform: translateX(-50%) translateY(38px);} }

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