/* =========================
   CSS RESET & NORMALIZATION
   ========================= */
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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #f8f9fb;
  color: #1a3552;
  font-family: 'Roboto', Georgia, serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 0;
}
ul, ol {
  list-style: none;
}
a {
  color: #234368;
  text-decoration: none;
  transition: color .18s;
}
a:hover, a:focus {
  color: #7CB342;
  outline: none;
}
button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Georgia, serif;
  color: #1a3552;
  font-weight: 700;
  letter-spacing: .01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: 600;
}
h4, h5, h6 {
  font-size: 1.15rem;
}
p, li, ul, ol {
  font-family: 'Roboto', Georgia, serif;
  font-size: 1rem;
  color: #1a3552;
  margin-bottom: 16px;
}
p {
  line-height: 1.7;
}
strong {
  font-weight: 600;
}

/* CLASSIC ELEGANT SPACING */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 32px rgba(34,67,104,0.05);
}
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.text-section {
  padding: 24px 0;
}

/* ===================
   FLEXBOX LAYOUTS
   =================== */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 20px 0 12px 0;
}
.footer-flex {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0 18px 0;
}

/* Feature Grid (Index Intro) */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: flex-start;
}
.feature-grid > div {
  flex: 1 1 220px;
  background: #fafbfc;
  border-radius: 10px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(34,67,104,0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  border: 1px solid #e5e7eb;
  min-width: 220px;
  transition: box-shadow .22s, border-color .22s;
}
.feature-grid > div:hover {
  box-shadow: 0 4px 20px rgba(34,67,104,0.08);
  border-color: #cccccc;
}
.feature-grid img {
  width: 38px;
  margin-bottom: 6px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(34,67,104,0.06);
  padding: 28px;
  min-width: 220px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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: #F3F5F9;
  border-left: 4px solid #7CB342;
  border-radius: 8px 14px 14px 8px;
  margin-bottom: 20px;
  box-shadow: 0 1px 8px rgba(34,67,104,0.08);
  color: #1a3552;
}
.testimonial-card p {
  margin: 0 0 4px 0;
  font-style: italic;
  color: #234368;
  font-size: 1.1rem;
  flex: 1;
}
.testimonial-card strong {
  color: #1a3552;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 600;
}

/* Lists with icons in Kontakt page */
.contact-details ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-details li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}
.contact-details img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.7;
}

.newsletter-section {
  background: #fafbfc;
  border-radius: 10px;
  box-shadow: 0 1px 8px rgba(34,67,104,0.05);
  padding: 32px 20px;
}
.newsletter-info-text {
  background: #EFF3F9;
  border-left: 3px solid #7CB342;
  padding: 15px 18px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 1rem;
  color: #2a4066;
}

.counseling-info {
  background: #F3F5F9;
  border-radius: 10px;
  border-left: 3px solid #234368;
  padding: 18px 22px;
  margin: 16px 0 0 0;
}

/*  =======================
      BUTTONS & INTERACTIVE
    ======================= */
.btn-primary {
  font-family: 'Montserrat', Georgia, serif;
  background: #234368;
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
  padding: 13px 32px;
  font-size: 1.07rem;
  letter-spacing: 0.015em;
  box-shadow: 0 2px 8px rgba(34,67,104,0.11);
  transition: background 0.19s, color 0.19s, box-shadow .22s;
  border: 1.5px solid #234368;
  opacity: .96;
  display: inline-block;
  margin: 0;
}
.btn-primary:hover, .btn-primary:focus {
  background: #7CB342;
  color: #234368;
  border-color: #7CB342;
  box-shadow: 0 3px 18px rgba(124,179,66,0.12);
  text-decoration: none;
  opacity: 1;
}

/*  =======================
        HEADER & NAVIGATION
    ======================= */
header {
  background: #fff;
  box-shadow: 0 2px 18px rgba(34,67,104,0.04);
  position: relative;
  z-index: 100;
}
header img {
  height: 48px;
  max-width: 180px;
  object-fit: contain;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Georgia, serif;
  color: #1a3552;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .18s, color .18s;
}
.main-nav a:hover, .main-nav a:focus, .main-nav a.active {
  border-bottom: 2px solid #7CB342;
  color: #234368;
}

/*  =======================
        HERO SECTION
    ======================= */
.hero-section {
  background: linear-gradient(110deg, #e8edf4 50%, #f9fafb 100%);
  padding: 66px 0 54px 0;
  margin-bottom: 60px;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  gap: 16px;
}
.hero-section h1 {
  color: #1a3552;
  letter-spacing: 0.02em;
}
.hero-section p {
  color: #234368;
  font-size: 1.15rem;
}

/* Thank-you page hero */
.thank-you-section {
  margin-bottom: 60px;
  padding: 60px 0 50px 0;
  background: #eaeaea;
  border-bottom: 1px solid #dcdcdc;
}

/*  =========================
      FOOTER
    =========================*/
footer {
  background: #234368;
  color: #fff;
  font-size: 1rem;
  margin-top: 80px;
  border-top: 5px solid #7CB342;
}
.footer-nav {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #fff;
  font-family: 'Montserrat', serif;
  font-size: 1.01rem;
  font-weight: 600;
  padding: 2px 0;
  transition: color .18s;
  opacity: 0.87;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #7CB342;
  text-decoration: underline;
}
.footer-contact p {
  color: #eaeaee;
  font-size: .98rem;
  font-family: "Roboto", Georgia, serif;
  line-height: 1.6;
}
.footer-contact a {
  color: #7CB342;
  text-decoration: underline;
  transition: color .15s;
}
.footer-contact a:hover, .footer-contact a:focus {
  color: #fff;
}
footer img {
  height: 42px;
  max-width: 90px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* ================= 
  FLEX ELEMENTS/MICRO-COMPONENTS
  ================== */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==================
      MOBILE NAVIGATION
   ================== */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 22px;
  background: #234368;
  color: #fff;
  font-size: 2.2rem;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  z-index: 300;
  border: none;
  transition: background .16s, box-shadow .18s;
  box-shadow: 0 4px 20px rgba(34,67,104,0.10);
}
.mobile-menu-toggle:focus {
  outline: 2px solid #7CB342;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100vw;
  height: 100vh;
  background: #234368;
  z-index: 5000;
  transform: translateX(-105%);
  transition: transform .36s cubic-bezier(.63,.07,.23,.98);
  flex-direction: column;
  padding-top: 36px;
  opacity: 1;
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0%);
}
.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 18px;
  background: #fff;
  color: #234368;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background .12s;
  z-index: 5100;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 48px;
  padding-left: 40px;
  padding-right: 40px;
  align-items: flex-start;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', serif;
  font-weight: 600;
  font-size: 1.23rem;
  padding: 10px 2px 8px 0;
  border-bottom: 2px solid transparent;
  opacity: .97;
  transition: color .18s, border-color .18s;
  min-width: 160px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #7CB342;
  border-bottom: 2px solid #7CB342;
}
.mobile-nav a:last-child {
  margin-bottom: 30px;
}

/* ================
   COOKIE CONSENT BANNER
  ================= */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100%;
  background: #fff;
  color: #1a3552;
  border-top: 2.5px solid #7CB342;
  box-shadow: 0 -3px 22px rgba(34,67,104,0.14);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
  padding: 18px 16px 14px 16px;
  z-index: 8000;
  font-size: 1rem;
  opacity: 0.97;
  animation: slideUpBanner .8s cubic-bezier(.46,.14,.22,.98) 1;
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-banner p {
  color: #234368;
  margin-bottom: 0;
  font-size: 1.04rem;
}
.cookie-consent-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
.cookie-btn {
  font-family: 'Montserrat', serif;
  border-radius: 6px;
  border: 2px solid #234368;
  padding: 9px 22px;
  min-width: 120px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 1.5px 9px rgba(34,67,104,0.08);
  background: #f4f7fb;
  color: #234368;
  transition: background .15s, color .15s, border-color .14s;
}
.cookie-btn.accept {
  background: #7CB342;
  color: #fff;
  border-color: #7CB342;
}
.cookie-btn.reject {
  background: #fafbfc;
  color: #234368;
}
.cookie-btn.settings {
  background: #fff;
  border-color: #234368;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #234368;
  color: #fff;
  border-color: #234368;
  outline: none;
}
.cookie-btn.accept:hover, .cookie-btn.accept:focus {
  background: #619024;
  border-color: #7CB342;
}

/* Cookie Modal Overlay & Content */
.cookie-modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,67,104, 0.28);
  z-index: 8900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 5px 30px rgba(34,67,104,0.18);
  max-width: 360px;
  width: 96vw;
  padding: 34px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: fadeInModal .46s cubic-bezier(.52,.14,.22,.98);
}
@keyframes fadeInModal {
  from { scale: 0.95; opacity: 0; }
  to   { scale: 1; opacity: 1; }
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px; right: 16px;
  background: #234368;
  color: #fff;
  font-size: 1.23rem;
  border-radius: 4px;
  width: 34px; height: 34px;
  display: flex;
  align-items: center; justify-content: center;
  transition: background .14s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #7CB342;
}
.cookie-modal h3 {
  font-size: 1.22rem;
  margin-bottom: 6px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #e2e6f0;
  font-size: 1rem;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category input[type="checkbox"] {
  accent-color: #7CB342;
  width: 18px;
  height: 18px;
  margin-right: 2px;
}
.cookie-toggle-label {
  font-weight: 500;
}

/*  ===============
   MISC LAYOUT UTILS
   =============== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-8 { margin-top: 8px !important; }
.mt-20 { margin-top: 20px !important; }
.mb-16 { margin-bottom: 16px !important; }
.w-100 { width: 100%; }

/* ================
   SPACING REFINEMENTS
   (Implement professional/classic rhythm)
   ================ */
.content-wrapper > * { margin-bottom: 0; }
.content-wrapper > :not(:last-child) {
  margin-bottom: 18px;
}
li + li {
  margin-top: 10px;
}

/* ================
   RESPONSIVE DESIGN (MOBILE FIRST)
   ================ */
@media (max-width: 1120px) {
  .container { max-width: 92vw; }
  .main-nav { gap: 14px; }
  .footer-flex { gap: 30px; }
}
@media (max-width: 980px) {
  .container { max-width: 99vw; }
  .footer-flex { flex-direction: column; align-items: stretch; }
}
@media (max-width: 900px) {
  .feature-grid { gap: 20px; }
  .footer-flex { gap: 20px; }
}
@media (max-width: 768px) {
  .header-flex { flex-direction: row; gap: 12px; }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container,
  .content-wrapper,
  .hero-section,
  .footer-flex,
  .feature-grid,
  .newsletter-section {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
  .footer-flex {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .feature-grid {
    flex-direction: column;
    gap: 20px;
  }
  .content-grid { flex-direction: column; gap: 16px; }
  .text-image-section { flex-direction: column; gap: 18px; align-items: flex-start; }
  .newsletter-section {
    padding: 18px 8px 18px 8px;
  }
  .thank-you-section, .hero-section {
    padding: 34px 0 22px 0;
  }
}
@media (max-width: 600px) {
  h1 {
    font-size: 1.4rem;
    margin-bottom: 18px;
  }
  h2 {
    font-size: 1.15rem;
    margin-bottom: 12px;
  }
  .container {
    padding-left: 2px;
    padding-right: 2px;
  }
}
/* Ensure all Cards & Testimonials have at least 20px gap to prevent overlap */
.card + .card, .testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* Highlights for Newsletter/Contact CTA */
.newsletter-section, .counseling-info {
  border: 1.5px solid #e6e9ef;
}

/* Elegant Classic Focus States (Accessibility) */
a:focus, .btn-primary:focus, .cookie-btn:focus {
  outline: 2px solid #7CB342;
  outline-offset: 2px;
}

/* Hide visually, but keep readable for screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ===============
      END OF CSS
   =============== */