/* ======================================================================
   CSS RESET & NORMALIZATION (mobile-first approach)
   ====================================================================== */
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 {
  font-size: 16px;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  min-height: 100vh;
  background: #F4F7FB;
  color: #1A2A40;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #F4F7FB;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin-left: 1.25em;
  margin-bottom: 1.25em;
}

li {
  margin-bottom: 0.5em;
}

a {
  color: #1987C5;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover, a:focus {
  color: #145179;
  text-decoration: underline;
}

strong {
  font-weight: 600;
}

/* Typography (elegant_classic hierarchy) */
h1, .hero h1 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 2.375rem; /* 38px */
  line-height: 1.15;
  font-weight: 700;
  color: #1A2A40;
  margin-bottom: 0.6em;
  letter-spacing: -1px;
}
@media (min-width: 600px) {
  h1, .hero h1 { font-size: 2.75rem; }
}
h2 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.75rem; /* 28px */
  font-weight: 600;
  color: #1A2A40;
  margin-bottom: 0.7em;
  letter-spacing: -0.5px;
}
h3 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  color: #1A2A40;
  margin-bottom: 0.5em;
  letter-spacing: -0.2px;
}
h4, h5, h6 {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #233453;
}

p, li, label, span, .footer-contact {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: #1A2A40;
}

/* Container / Content Wrappers */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sections & Spacing */
section {
  margin-bottom: 60px;
  padding: 40px 0 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.text-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

@media (min-width: 900px) {
  .content-wrapper {
    gap: 40px;
  }
  section {
    padding: 48px 0 0 0;
    margin-bottom: 80px;
  }
  .section { padding: 60px 48px; }
}

/* ================= HEADER & NAVIGATION =============== */
header {
  background: #fff;
  box-shadow: 0 4px 20px rgba(26,42,64,0.05);
  position: relative;
  z-index: 20;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 24px 20px 0 20px;
  max-width: 1240px;
  margin: 0 auto;
  position: relative;
  background: transparent;
}

.logo-link img {
  height: 42px;
  width: auto;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  align-items: center;
  margin: 0 22px 0 0;
}

.main-nav ul li a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.063rem;
  color: #1A2A40;
  padding: 6px 0;
  border-radius: 2px;
  position: relative;
  transition: color 0.2s, background 0.2s;
}
.main-nav ul li a:hover, .main-nav ul li a:focus {
  color: #1987C5;
  background: #F4F7FB;
}

.cta-primary {
  display: inline-block;
  padding: 12px 32px;
  background: #1987C5;
  color: #fff;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.063rem;
  font-weight: 600;
  border: none;
  border-radius: 32px;
  box-shadow: 0 2px 6px rgba(26,42,64,0.09);
  text-align: center;
  cursor: pointer;
  outline: none;
  letter-spacing: 0.4px;
  transition: background 0.18s, color 0.2s, transform 0.16s, box-shadow 0.2s;
}
.cta-primary:hover, .cta-primary:focus {
  background: #145179;
  color: #fff;
  transform: translateY(-2px) scale(1.025);
  box-shadow: 0 6px 24px rgba(26,42,64,0.12);
  text-decoration: none;
}

/* Mobile Burger Menu */
.mobile-menu-toggle {
  background: #1A2A40;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 1.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.15s, color 0.18s, transform 0.18s;
  z-index: 99;
  margin-left: auto;
  margin-right: 18px;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #1987C5;
  color: #fff;
  outline: none;
  transform: scale(1.08);
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(250,250,252,0.98);
  z-index: 1200;
  box-shadow: 0 10px 40px rgba(26,42,64,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 40px 28px 24px 28px;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.74,.01,.38,1.02);
  width: 100vw;
  min-height: 100vh;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: #1A2A40;
  font-size: 2rem;
  border: none;
  align-self: flex-end;
  margin: -8px 0 20px 0;
  padding: 0 8px;
  cursor: pointer;
  transition: color 0.16s;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  color: #1987C5;
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  margin-top: 18px;
}
.mobile-nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1.25rem;
  color: #1A2A40;
  padding: 12px 0;
  border-radius: 0;
  border-bottom: 1px solid #E4E8F1;
  background: none;
  transition: color 0.18s, background 0.18s;
  text-align: left;
  display: block;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: #F4F7FB;
  color: #1681BE;
}

/* Hide main navigation on mobile */
@media (max-width: 991px) {
  .main-nav ul,
  .main-nav .cta-primary {
    display: none !important;
  }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* ================= HERO SECTION =============== */
.hero {
  background: linear-gradient(120deg, #F4F7FB 65%, #e2e6ef 100%);
  padding: 60px 0 40px 0;
  margin-bottom: 38px;
  border-bottom: 1px solid #E4E8F1;
}
.hero .container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.hero .text-section {
  max-width: 640px;
}
.hero p {
  font-size: 1.18rem;
  color: #1A2A40;
  margin-bottom: 18px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
}
@media (min-width: 900px) {
  .hero {
    padding: 110px 0 66px 0;
    margin-bottom: 55px;
  }
  .hero .container {
    flex-direction: row;
    gap: 60px;
    align-items: center;
    justify-content: flex-start;
  }
}

/* =============== FEATURES GRID / INFO CARDS =============== */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.features-grid > div {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 14px rgba(26,42,64,0.06);
  flex: 1 1 240px;
  min-width: 210px;
  max-width: 340px;
  padding: 30px 24px 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.features-grid > div:hover, .features-grid > div:focus-within {
  box-shadow: 0 6px 28px rgba(26,42,64,0.14);
  transform: translateY(-4px) scale(1.012);
}
.features-grid img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
}

/* =============== CARD-CONTAINER & CARDS =============== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 15px rgba(26,42,64,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  transition: box-shadow 0.18s, transform 0.14s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px rgba(26,42,64,0.14);
  transform: translateY(-3px) scale(1.012);
}

/* =============== CONTENT GRID =============== */
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* =============== TEXT-IMAGE SECTION =============== */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}

/* =============== TESTIMONIALS =============== */
.testimonials {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 22px 28px;
  background: #fff;
  color: #1A2A40;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(26,42,64,0.10);
  min-width: 220px;
  max-width: 380px;
  flex: 1 1 260px;
  border-left: 4px solid #1987C5;
  margin-bottom: 20px;
  font-size: 1rem;
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.14s;
}
.testimonial-card strong {
  color: #1987C5;
  font-size: 1.09rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-weight: 600;
  letter-spacing: 0.1px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 36px rgba(26,42,64,0.17);
  border-left: 4px solid #145179;
  transform: translateY(-2px) scale(1.012);
}

/* =============== FEATURE ITEM =============== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =============== BUTTONS =============== */
button {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  background: none;
  color: inherit;
  outline: none;
}

button:focus {
  outline: 2px solid #1987C5;
  outline-offset: 2px;
}

/* =============== FOOTER =============== */
footer {
  background: #fff;
  border-top: 1px solid #E4E8F1;
  padding: 32px 0 8px 0;
  width: 100%;
  box-shadow: 0 -2px 16px rgba(26, 42, 64, 0.04);
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding-bottom: 18px;
}
.footer-nav a {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: #1A2A40;
  opacity: 0.75;
  transition: opacity 0.12s, color 0.12s;
  padding: 2px 7px;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: #1987C5;
  opacity: 1;
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #1A2A40;
  opacity: 0.89;
  max-width: 820px;
  margin: 0 auto;
}
.footer-contact p,
.footer-contact a {
  font-size: 0.96rem;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  color: #233453;
  text-align: center;
}
.footer-contact img {
  vertical-align: middle;
  height: 21px;
  width: 21px;
  margin-right: 6px;
}

/* =============== CARD & SECTION SPACING REQUIREMENTS =============== */
section, .section,
.features-grid, .testimonials, .card-container, .content-grid {
  margin-bottom: 60px;
  gap: 24px;
}
.card, .testimonial-card, .features-grid > div {
  margin-bottom: 20px;
}

/* =============== FORM / INPUTS =============== */
input,
select,
textarea {
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #D8DEE7;
  padding: 11px 17px;
  margin-bottom: 18px;
  background: #fff;
  color: #1A2A40;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.17s;
}
input:focus, select:focus, textarea:focus {
  border-color: #1987C5;
  outline: none;
}

/* =============== COOKIE CONSENT BANNER =============== */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2000;
  background: #fff;
  border-top: 1px solid #E4E8F1;
  box-shadow: 0 -2px 18px rgba(26,42,64,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 22px 8vw 18px 8vw;
  transition: transform 0.32s cubic-bezier(.79,.17,.22,1.04), opacity 0.18s;
}
.cookie-banner.hide {
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  font-size: 1rem;
  color: #1A2A40;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}
.cookie-btn {
  background: #1987C5;
  color: #fff;
  border: none;
  border-radius: 32px;
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 10px 25px;
  margin: 0 3px;
  box-shadow: 0 2px 7px rgba(26,42,64,0.06);
  cursor: pointer;
  outline: none;
  transition: background 0.19s, transform 0.17s, color 0.13s, box-shadow 0.20s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #145179;
  color: #fff;
  transform: scale(1.03) translateY(-1.5px);
  box-shadow: 0 5px 18px rgba(26,42,64,0.12);
}
.cookie-btn.secondary {
  background: #fff;
  color: #1987C5;
  border: 1.5px solid #1987C5;
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: #F4F7FB;
  color: #145179;
  border-color: #145179;
}
/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2500;
  background: rgba(34, 38, 53, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  opacity: 1;
  transition: opacity 0.18s;
}
.cookie-modal.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal .cookie-modal-content {
  max-width: 425px;
  width: 93vw;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 14px 50px rgba(26,42,64,0.17);
  padding: 34px 26px 32px 26px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  position: relative;
  animation: cookieModalFadeIn 0.33s cubic-bezier(.75,.01,.18,1.1);
}
@keyframes cookieModalFadeIn {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1A2A40;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cookie-modal label {
  font-size: 1rem;
  color: #1A2A40;
}
.cookie-modal input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #1987C5;
  margin-left: 12px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: #1A2A40;
  cursor: pointer;
  transition: color 0.13s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: #1987C5;
}
.cookie-modal .cookie-actions {
  margin-top: 12px;
  justify-content: flex-end;
}

/* Responsive adjustments for cookie banner/modal */
@media (max-width: 525px) {
  .cookie-banner {
    padding: 12px 3vw 10px 3vw;
    gap: 10px;
  }
  .cookie-btn {
    min-width: 108px;
    font-size: 0.98rem;
    padding: 8px 15px;
  }
  .cookie-modal .cookie-modal-content {
    padding: 16px 8px 20px 8px;
    gap: 12px;
  }
}

/* =============== RESPONSIVE DESIGN =============== */
@media (max-width: 991px) {
  .features-grid, .testimonials, .footer-nav {
    gap: 16px;
  }
  .features-grid > div, .testimonial-card {
    min-width: 180px;
    max-width: 100%;
    width: 100%;
    padding: 18px 13px;
  }
}
@media (max-width: 600px) {
  h1, .hero h1 { font-size: 1.53rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1.09rem; }
  .container {
    padding: 0 6px;
  }
  section, .section {
    padding: 24px 2px;
    margin-bottom: 35px;
  }
  .main-nav {
    padding: 16px 6px 0 6px;
  }
  .features-grid {
    gap: 12px;
  }
  .testimonial-card {
    padding: 14px 8px 15px 12px;
    gap: 10px;
  }
  .footer-contact {
    gap: 2px;
  }
}

/* ================= UTILITIES =============== */
.shadow-sm {
  box-shadow: 0 1px 6px rgba(26,42,64,0.09);
}
.rounded {
  border-radius: 14px;
}

/* ================= ACCESSIBILITY ===================== */
:focus {
  outline: 2px solid #1987C5;
  outline-offset: 2px;
}

/* ================= PRINT OVERRIDE =============== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal {
    display: none !important;
  }
  main, .container, section { padding: 0 !important; margin: 0 !important; }
}

/* ================= MINIMUM SPACING BETWEEN CARDS/SECTIONS =============== */
.features-grid > div, .testimonial-card, .card, .features-grid, .testimonials, .card-container, .content-grid, section, .section {
  margin-bottom: 20px;
}


/* ================= .card-content (in flex containers) =============== */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

/* End of NeuroCrypt Akademie CSS */
