/* === 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;
  vertical-align: baseline;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.6;
  background: #F5F5F5;
  color: #16233A;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
  min-height: 100vh;
  word-break: break-word;
}
img {
  max-width: 100%;
  display: block;
}
ul,ol {
  padding-left: 20px;
}
a {
  color: #16233A;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #376486;
  text-decoration: underline;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 700;
  color: #16233A;
}
h1 { font-size: 2.75rem; margin-bottom: 0.75em; letter-spacing: -1px; }
h2 { font-size: 2rem; margin-bottom: 0.75em; }
h3 { font-size: 1.35rem; margin-bottom: 0.5em; }
h4 { font-size: 1.15rem; }
p, ul, ol { margin-bottom: 1.1em; }
blockquote {
  font-style: italic;
  font-family: 'Georgia', serif;
  background: #f9f9fa;
  border-left: 4px solid #8DCAE6;
  padding: 18px 28px;
  color: #465267;
  margin-bottom: 1.6em;
}
strong, b { font-weight: 700;}

/* === CONTAINER & SPACING === */
.container {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 22px;
  padding-right: 22px;
}
.section { margin-bottom: 60px; padding: 40px 20px; }

/* === HEADER/NAVIGATION === */
header {
  background: #fff;
  border-bottom: 1px solid #e4e7ef;
  width: 100%;
  position: relative;
  z-index: 90;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 48px;
  width: auto;
  margin-right: 28px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: 'Georgia', serif;
  font-size: 1.05rem;
  padding: 7px 0;
  color: #16233A;
  position: relative;
  transition: color 0.18s;
}
header nav a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: #8DCAE6;
  transition: width 0.21s;
  position: absolute;
  bottom: -3px; left: 0;
}
header nav a:hover::after, header nav a:focus::after { width: 100%; }
header nav a:hover, header nav a:focus { color: #8DCAE6; }

.button-primary {
  background: #16233A;
  color: #fff;
  font-family: 'Georgia', serif;
  font-size: 1.12rem;
  padding: 12px 32px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.18s;
  font-weight: 700;
  margin-left: 20px;
  box-shadow: 0 3px 12px 0 rgba(23,36,60,0.07);
  letter-spacing: 0.4px;
  outline: none;
}
.button-primary:hover, .button-primary:focus {
  background: #223969;
  color: #fff;
  box-shadow: 0 6px 14px 0 rgba(23,36,60,0.15);
}

.mobile-menu-toggle {
  display: none;
  background: #8DCAE6;
  color: #fff;
  border-radius: 32px;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  align-items: center;
  justify-content: center;
  border: none;
  margin-left: 18px;
  box-shadow:0 2px 5px 0 rgba(140,202,230,0.10);
  transition: background 0.15s, color 0.21s;
  z-index: 120;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #16233A;
  color: #8DCAE6;
}

/* === MOBILE NAVIGATION === */
.mobile-menu {
  position: fixed;
  left: 0; top: 0; height: 100vh; width: 100vw;
  background: rgba(22,35,58,0.96);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(.77,0,.18,1);
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  background: #fff;
  color: #16233A;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2.1rem;
  border: none;
  margin: 32px 24px 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.18s;
  outline: none;
  z-index: 2050;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #8DCAE6;
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 40px;
  margin-bottom: 28px;
  align-items: flex-start;
  padding-left: 48px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Georgia', serif;
  font-size: 1.35rem;
  padding: 8px 2px;
  border-radius: 4px;
  transition: background 0.18s, color 0.22s;
  width: 90%;
  display: block;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #8DCAE6;
  color: #16233A;
}

@media (max-width: 1100px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  header nav a { font-size: 0.98rem; }
  .button-primary { font-size: 1.01rem; }
}
@media (max-width: 800px) {
  header nav, .button-primary { display: none !important; }
  .mobile-menu-toggle { display: inline-flex; }
}

/* === MAIN HERO, SECTIONS & FLEX PATTERNS === */
main > section, .section {
  margin-bottom: 60px; /* Per instruction */
  padding: 40px 20px;
}
.hero {
  background: #16233A;
  color: #fff;
  padding-top: 60px;
  padding-bottom: 60px;
}
.hero h1,
.hero h2,
.hero p {
  color: #fff;
}
.hero .button-primary {
  background: #8DCAE6;
  color: #16233A;
}
.hero .button-primary:hover { background: #fff; color: #16233A; }

.content-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  gap: 28px;
}

.features .content-wrapper > ul,
.services .content-wrapper > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 30px;
  list-style: none;
  padding: 0;
}
.features .content-wrapper > ul > li,
.services .content-wrapper > ul > li {
  background: #fff;
  border-radius: 14px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 310px;
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px; /* Per instruction */
  box-shadow: 0 4px 18px 0 rgba(22,35,58,0.05);
  transition: transform 0.18s, box-shadow 0.22s;
}
.features .content-wrapper > ul > li:hover, .services .content-wrapper > ul > li:hover {
  transform: translateY(-4px) scale(1.013);
  box-shadow: 0 8px 24px 0 rgba(22,35,58,0.11);
}
.features ul img {
  height: 40px;
  width: 40px;
  margin-bottom: 6px;
  opacity: 0.87;
}
.features h3 {
  margin-bottom: 0.4em;
}
.event-highlights {
  margin-top: 34px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1.5px 7px 0 rgba(22,35,58,0.05);
  padding: 20px 24px;
}
.event-highlights ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin-top: 14px;
}
.event-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #16233A;
}

.featured-publication {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
  font-weight: 600;
  font-size: 1.08rem;
  color: #16233A;
  background: #e8f5f8;
  border-radius: 10px;
  padding: 12px 18px;
}
.featured-publication img { height: 26px; }

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #8DCAE6;
  color: #16233A;
  border-radius: 20px;
  box-shadow: 0 4.5px 18px 0 rgba(22,35,58,0.08);
  padding: 40px 28px;
  margin-top: 50px;
  margin-bottom: 60px;
}
.cta h2,
.cta p {
  color: #16233A;
}
.cta .button-primary {
  background: #16233A;
  color: #fff;
  margin-top: 22px;
}

/* === TESTIMONIALS === */
.testimonials .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 34px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 26px 22px 24px;
  background: #fff;
  border-radius: 16px;
  margin-bottom: 20px;
  min-width: 290px;
  max-width: 450px;
  box-shadow: 0 3.5px 18px 0 rgba(22,35,58,0.07);
  font-size: 1.09em;
  color: #16233A;
  transition: box-shadow 0.15s, transform 0.15s;
  position: relative;
}
.testimonial-card strong {
  color: #8DCAE6;
  margin-top: 5px;
  font-size: 1em;
  font-weight: 700;
}
.testimonial-card:hover,
.testimonial-card:focus-within {
  box-shadow: 0 11px 44px 0 rgba(22,35,58,0.15);
  transform: translateY(-2px) scale(1.021);
}

/* === CONTACT SECTION === */
.contact-section .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.address-block {
  background: #fff;
  border-radius: 10px;
  padding: 32px 24px;
  color: #16233A;
  box-shadow: 0 4px 14px 0 rgba(141,202,230,0.08);
  font-size: 1.07rem;
  margin-bottom: 20px;
}
.address-block h3 { color: #16233A; margin-bottom: 9px; }
.address-block img {
  height: 18px;
  width: 18px;
  vertical-align: middle;
  margin-right: 8px;
}
.address-block a { color: #16233A; text-decoration: underline; word-break: break-all; }
.address-block a:hover { color: #8DCAE6; }

/* === LEGAL (DATENSCHUTZ, GDPR, COOKIE, NUTZUNG) === */
.legal .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #fff;
  border-radius: 10px;
  padding: 40px 24px;
  border: 1px solid #e8f3fa;
  box-shadow: 0 3px 16px 0 rgba(22,35,58,0.06);
  margin-top: 28px;
  margin-bottom: 50px;
}
.legal ul {
  list-style: disc;
}

.thankyou .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 27px;
  background: #fff;
  border-radius: 16px;
  padding: 50px 24px 45px 24px;
  box-shadow: 0 5px 20px 0 rgba(141,202,230,0.10);
}

/* === FOOTER === */
footer {
  background: #f5f5f5;
  border-top: 1px solid #e2e8f0;
  color: #223969;
  padding-top: 38px;
  padding-bottom: 34px;
  width: 100%;
}
footer > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px;
  justify-content: space-between;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
footer nav a {
  color: #16233A;
  font-size: 1rem;
  opacity: 0.91;
  transition: color 0.14s;
}
footer nav a:hover { color: #8DCAE6; opacity: 1; text-decoration: underline; }
.footer-contact {
  font-size: 1rem;
  color: #223969;
  opacity: .92;
}
footer img {
  height: 34px;
  margin-bottom: 18px;
  opacity: 0.97;
}
@media (max-width: 900px) {
  footer > .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .footer-contact { margin-top: 1em; }
}

/* === FLEXBOX UTILITY CLASSES === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px 0 rgba(22,35,58,0.07);
  transition: box-shadow 0.15s, transform 0.12s;
}
.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;
}
.feature-item{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- DETAILED GAP & SPACING ENFORCEMENT --- */
section, .section, .features, .testimonials, .about, .services, .hero, .cta, .contact-section, .thankyou {
  margin-bottom: 60px;
}
.features .content-wrapper > ul > li, .services .content-wrapper > ul > li, .testimonial-card, .address-block, .legal .content-wrapper, .thankyou .content-wrapper {
  margin-bottom: 20px;
}

/* === LINK & BUTTON EFFECTS === */
.button-primary, .cta .button-primary, .hero .button-primary {
  transition: box-shadow 0.18s, background 0.20s, color 0.14s, transform 0.16s;
}
.button-primary:active {
  transform: scale(0.97);
}

/* === CARD & SHADOW DETAILS === */
.card, .features .content-wrapper > ul > li, .testimonial-card {
  box-shadow: 0 2.5px 12px 0 rgba(22,35,58,0.08);
}

/* === MEDIA QUERIES - RESPONSIVE BREAKPOINTS === */
@media (max-width: 900px) {
  .features .content-wrapper > ul,
  .services .content-wrapper > ul {
    flex-direction: column;
    gap: 20px;
  }
  .features .content-wrapper > ul > li, .services .content-wrapper > ul > li {
    min-width: 0;
    max-width: 100%;
  }
  .testimonials .content-wrapper {
    flex-direction: column;
    gap: 20px;
  }
  .event-highlights ul {
    flex-direction: column;
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .container { padding-left: 7vw; padding-right: 7vw; }
  .content-wrapper {
    max-width: 98vw;
    gap: 20px;
  }
  .features .content-wrapper > ul, .services .content-wrapper > ul {
    gap: 16px;
  }
  .cta { padding: 34px 4vw; border-radius: 12px; }
  .legal .content-wrapper { padding: 24px 6vw; border-radius: 8px; }
  header img, footer img { height: 32px; }
}
@media (max-width: 600px) {
  body { font-size: 15px; }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.28rem; }
  h3 { font-size: 1.05rem; }
  header .container { gap: 8px; padding-left: 9vw; padding-right: 9vw; }
  .hero { padding: 40px 0 34px 0; }
  .footer-contact { font-size: 0.98em;}
  .features .content-wrapper > ul > li, .testimonial-card { padding: 16px 10px; }
  .card, .legal .content-wrapper, .thankyou .content-wrapper { padding: 20px 10px; }
  .address-block { padding: 18px 10px; }
}

/* === COOKIE CONSENT BANNER === */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #16233A;
  color: #fff;
  box-shadow: 0 -2px 12px 0 rgba(22,35,58,0.19);
  z-index: 4000;
  padding: 18px 24px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 1.07em;
  transition: transform 0.38s;
}
.cookie-consent-banner.hide {
  transform: translateY(100%);
}
.cookie-consent-banner .cookie-buttons {
  display: flex;
  gap: 14px;
}
.cookie-consent-banner button {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  border-radius: 20px;
  padding: 8px 20px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.17s, color 0.13s;
  box-shadow: 0 2px 8px 0 rgba(22,35,58,0.07);
}
.cookie-consent-banner .accept {
  background: #8DCAE6;
  color: #16233A;
}
.cookie-consent-banner .accept:hover { background: #fff; color: #16233A; }
.cookie-consent-banner .reject {
  background: #e9e9ed;
  color: #16233A;
}
.cookie-consent-banner .reject:hover { background: #b8b8c4; color: #fff; }
.cookie-consent-banner .settings {
  background: #16233A;
  color: #8DCAE6;
  border: 1.5px solid #8DCAE6;
}
.cookie-consent-banner .settings:hover {
  background: #8DCAE6;
  color: #16233A;
}

@media (max-width: 600px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.99em;
    padding: 14px 10px;
  }
  .cookie-consent-banner .cookie-buttons {
    width: 100%;
    gap: 8px;
  }
}

/* === COOKIE SETTINGS MODAL === */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 4100;
  background: rgba(22,35,58, 0.74);
  display: flex;
  align-items: center; justify-content: center;
  padding: 30px 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s;
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal-content {
  background: #fff;
  color: #16233A;
  border-radius: 14px;
  padding: 40px 28px;
  min-width: 300px;
  max-width: 370px;
  box-shadow: 0 6px 33px 0 rgba(22,35,58,0.17);
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeInModal 0.45s cubic-bezier(.77,0,.18,1);
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
.cookie-modal-content h3 {
  color: #16233A;
  font-size: 1.20rem;
  margin-bottom: 14px;
}
.cookie-modal-content .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal-content label {
  font-size: 1.01em;
  color: #223969;
  font-family: 'Georgia', serif;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  background: #e4e4ef;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.22s;
  flex-shrink: 0;
}
.cookie-toggle.active {
  background: #8DCAE6;
}
.cookie-toggle::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.18s;
}
.cookie-toggle.active::after {
  left: 19px;
}
.cookie-modal-buttons {
  display: flex;
  gap: 13px;
  margin-top: 10px;
}
.cookie-modal-buttons button {
  padding: 7px 22px;
  border-radius: 19px;
  background: #16233A;
  color: #fff;
  border: none;
  font-weight: 600;
  transition: background 0.14s;
}
.cookie-modal-buttons button.cancel {
  background: #e7ebf0;
  color: #16233A;
  border: 1.5px solid #8DCAE6;
}
.cookie-modal-buttons button.cancel:hover {
  background: #8DCAE6;
  color: #fff;
}
.cookie-modal-buttons button.save:hover {
  background: #8DCAE6;
  color: #16233A;
}

/* === MICRO-INTERACTIONS === */
a, .button-primary, .mobile-menu-toggle, .mobile-menu-close, .cookie-consent-banner button, .cookie-modal-buttons button, .cookie-toggle {
  outline: none;
  transition: box-shadow 0.18s, background 0.18s, color 0.18s, border 0.17s;
}
a:focus-visible, .button-primary:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible,
.cookie-consent-banner button:focus-visible, .cookie-modal-buttons button:focus-visible {
  box-shadow: 0 0 0 2px #8DCAE6, 0 3.5px 11px 0 rgba(22,35,58,0.13);
}

/* === TYPOGRAPHY SCALE ENFORCEMENT === */
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p, li, ul, ol, blockquote, .footer-contact { font-size: 1rem; }

@media (max-width:900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.2rem; }
  h3 { font-size: 1.05rem; }
}

/* === OTHER ELEMENTS & UTILS === */
section:last-child, .section:last-child { margin-bottom: 0; }

/* === END === */
