/* =========================
   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;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #F8F6F0; /* brand secondary light */
  color: #1E485C;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
input, button, select, textarea {
  font-family: inherit; font-size: inherit; line-height: inherit;
  color: inherit;
}
a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #176942; text-decoration: underline; }
ul, ol { padding-left: 24px; margin-bottom: 1em; }
li { margin-bottom: 8px; }
strong, b { font-weight: 700; }

/* =========================
   TYPOGRAPHY SCALE
   ========================= */
h1, .h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem; /* 40px */
  font-weight: 700;
  margin-bottom: 16px;
  color: #1E485C;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem; /* 32px */
  font-weight: 600;
  margin-bottom: 16px;
  color: #1E485C;
  letter-spacing: -0.5px;
}
h3, .h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.375rem; /* 22px */
  font-weight: 600;
  margin-bottom: 10px;
  color: #176942;
  letter-spacing: -0.25px;
}
h4, .h4 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 10px;
}
p, .p, blockquote, cite, small, li, ul, ol {
  font-size: 1rem; /* 16px */
  color: #2C3D47;
}
blockquote {
  font-style: italic;
  font-size: 1.12rem;
  line-height: 1.65;
  color: #1E485C;
  background: #E8EFE7;
  border-left: 4px solid #176942;
  padding: 16px 24px;
  margin-bottom: 12px;
  border-radius: 6px;
}
cite {
  display: block;
  font-size: 0.97rem;
  color: #176942;
  margin-top: 4px;
}
small { font-size: 0.93rem; color: #888; }

/* =========================
   LAYOUT CONTAINERS
   ========================= */
.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(30,72,92,0.04);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  width: 100%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  padding: 18px 32px 18px 24px;
  box-shadow: 0 2px 12px 0 rgba(30,72,92, 0.05);
  z-index: 100;
}
header img[alt="AssetSpirale"] {
  height: 40px;
  min-width: 130px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
}
header nav a:hover,
header nav a:focus {
  background: #E8EFE7;
  color: #176942;
}
header .cta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: #297C5A;
  color: #FFF;
  border-radius: 9px;
  padding: 10px 22px;
  border: none;
  margin-left: 16px;
  box-shadow: 0 2px 8px rgba(30,72,92,0.08);
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s;
}
header .cta:hover, header .cta:focus {
  background: #176942;
  transform: translateY(-2px) scale(1.026);
  box-shadow: 0 6px 20px rgba(41,124,90,0.13);
}

/* ================
   BURGER MENU
   ================ */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #297C5A;
  padding: 7px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.13s;
  z-index: 211;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #E8EFE7;
}

.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(30,72,92,0.80);
  display: none;
  flex-direction: column;
  align-items: flex-start;
  z-index: 2024;
  transition: opacity 0.32s;
}
.mobile-menu.open {
  display: flex;
  animation: menufadein 0.35s cubic-bezier(.47,1.25,.52,.96);
}
@keyframes menufadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.mobile-menu .mobile-menu-close {
  background: none;
  border: none;
  color: #FFF;
  font-size: 2.3rem;
  align-self: flex-end;
  margin: 30px 26px 0 0;
  padding: 6px 3px;
  cursor: pointer;
  z-index: 2025;
  border-radius: 5px;
  transition: background 0.15s;
}
.mobile-menu .mobile-menu-close:hover,
.mobile-menu .mobile-menu-close:focus {
  background: #176942;
}
.mobile-nav {
  width: 100%;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  padding: 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  color: #FFF;
  background: transparent;
  border-radius: 8px;
  padding: 15px 9px 15px 0;
  width: 100%;
  transition: background 0.13s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #297C5A;
  color: #F8F6F0;
}

/* =========================
   HERO SECTIONS
   ========================= */
.hero {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #F8F6F0;
  padding: 60px 0 35px 0;
}
.hero .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}
.hero .content-wrapper {
  max-width: 700px;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.hero h1 {
  font-size: 2.5rem;
}
.hero p {
  font-size: 1.15rem;
  color: #2C3D47;
}
.hero .cta {
  margin-top: 18px;
}

/* =========================
   FEATURES & CARDS
   ========================= */
.features, .service-details, .services, .team {
  background: #FFFFFF;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 12px 0 rgba(30,72,92,0.04);
}
.feature-grid, .service-list, .service-cards, .team-bios, .featured-articles, .article-teasers, .article-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: stretch;
  justify-content: space-between;
}
.feature-grid > div, .service-list > div, .service-cards > div, .team-bios > div, .featured-articles > article, .article-teasers > article, .article-list > article, .article-list > div {
  background: #F8F6F0;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(41,124,90,0.05);
  padding: 27px 22px 26px 22px;
  min-width: 220px;
  flex: 1 1 240px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.15s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-grid > div:hover, .service-cards > div:hover, .team-bios > div:hover, .article-list > article:hover, .featured-articles > article:hover, .article-teasers > article:hover {
  box-shadow: 0 8px 24px 0 rgba(41,124,90,0.14);
  transform: translateY(-4px) scale(1.01);
}
.feature-grid img,
.team-bios img {
  height: 46px;
  width: 46px;
  margin-bottom: 10px;
}
.service-list strong, .service-cards strong {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #297C5A;
  font-size: 1.07rem;
  margin-top: 10px;
}

/* ===============
   CTA BUTTONS
   =============== */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  background: #297C5A;
  color: #FFF !important;
  border-radius: 9px;
  padding: 12px 28px;
  border: none;
  font-size: 1.13rem;
  box-shadow: 0 2px 8px rgba(30,72,92,0.045);
  transition: background 0.19s, color 0.18s, transform 0.14s, box-shadow 0.18s;
  cursor: pointer;
}
.cta:hover, .cta:focus {
  background: #176942;
  color: #FFF;
  transform: scale(1.04) translateY(-3px);
  box-shadow: 0 6px 36px rgba(41,124,90,0.09);
}

/* ===============
   ARTICLE GRID
   =============== */
.articles-grid, .articles-highlight {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(30,72,92,0.03);
}
.articles-grid .category-filters, .articles-highlight .category-filters {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-bottom: 20px;
  color: #176942
}
.articles-grid .featured-articles,
.articles-highlight .article-teasers {
  display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between;
}
.articles-grid .featured-articles > article,
.articles-highlight .article-teasers > article {
  background: #F8F6F0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30,72,92,0.045);
  padding: 24px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: box-shadow 0.19s, transform 0.10s;
}
.articles-grid .featured-articles > article:hover,
.articles-highlight .article-teasers > article:hover {
  box-shadow: 0 4px 26px rgba(41,124,90,0.08);
  transform: translateY(-3px);
}
.articles-grid .featured-articles h3,
.articles-highlight .article-teasers h3 {
  margin-bottom: 8px;
  color: #1E485C;
}

/* ===============
   TESTIMONIALS
   =============== */
.testimonials {
  background: #E8EFE7;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 12px 0 rgba(30,72,92,0.01);
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #FFF;
  border-radius: 13px;
  box-shadow: 0 2px 8px rgba(30,72,92,0.055);
  padding: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.testimonial-card blockquote {
  background: none;
  border: none;
  margin: 0;
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 400;
  color: #1E485C;
}
.testimonial-card cite {
  margin-top: 0;
  font-style: normal;
  color: #176942;
  font-size: 0.97rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

/* ===============
   CONTACT SECTION
   =============== */
.contact {
  background: #F8F6F0;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 10px rgba(30,72,92,0.04);
}
.contact ul {
  list-style: none;
  margin: 0 0 12px 0;
  padding: 0;
}
.contact ul li {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #1E485C;
}
.contact a.cta {
  margin-top: 20px;
}

/* ===============
   PHILOSOPHY & POLICY SECTIONS
   =============== */
.privacy-policy, .gdpr-policy, .cookie-policy, .terms-of-use, .thank-you {
  background: #FFFFFF;
  border-radius: 16px;
  margin-bottom: 60px;
  padding: 40px 20px;
  box-shadow: 0 2px 12px 0 rgba(30,72,92,0.04);
}
.privacy-policy h1, .gdpr-policy h1, .cookie-policy h1, .terms-of-use h1, .thank-you h1 {
  margin-bottom: 20px;
}
.privacy-policy h2,
.gdpr-policy h2,
.cookie-policy h2,
.terms-of-use h2 {
  margin-top: 24px;
  margin-bottom: 10px;
}
.privacy-policy ul,
.gdpr-policy ul,
.cookie-policy ul,
.terms-of-use ul {
  margin-bottom: 18px;
}

/* ===============
   FOOTER
   =============== */
footer {
  width: 100%;
  background: #1E485C;
  color: #F8F6F0;
  padding: 44px 25px 24px 25px;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -2px 18px rgba(30,72,92,0.08);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  margin-top: auto;
}
footer img[alt="AssetSpirale"] {
  height: 36px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
}
footer nav a {
  color: #F8F6F0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 6px 11px;
  border-radius: 6px;
  transition: background 0.15s, color 0.13s;
}
footer nav a:hover, footer nav a:focus {
  background: #297C5A;
  color: #FFF;
}
footer .social-media {
  display: flex;
  gap: 17px;
  align-items: center;
}
footer .social-media img {
  width: 26px; height: 26px;
  background: #f0f5f0;
  border-radius: 7px;
  padding: 5px;
  transition: background 0.13s;
}
footer .social-media img:hover, footer .social-media img:focus {
  background: #297C5A;
}
footer small {
  color: #E8EFE7;
  font-size: 0.96rem;
  text-align: center;
}

/* ===============
   COOKIE BANNER
   =============== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 4000;
  background: #FFFFFF;
  border-top: 3.5px solid #297C5A;
  box-shadow: 0 -3px 24px 0 rgba(41,124,90,0.13);
  padding: 20px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  font-size: 1rem;
  animation: bannerfadein 0.39s cubic-bezier(.16,0,.56,1.08);
}
@keyframes bannerfadein {
  0% { opacity: 0; transform: translateY(64px); }
  100% { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  color: #1E485C;
  font-size: 1rem;
  max-width: 350px;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}
.cookie-banner button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.14s, color 0.1s;
}
.cookie-banner .accept {
  background: #297C5A;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #176942;
}
.cookie-banner .reject {
  background: #E8EFE7;
  color: #1E485C;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #DEE9DF;
}
.cookie-banner .settings {
  background: #F8F6F0;
  color: #176942;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #E8EFE7;
}

/* ======================
   COOKIE PREF. MODAL
   ====================== */
.cookie-modal-overlay {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 4001;
  background: rgba(30,72,92, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modalfadein 0.26s cubic-bezier(.47,.97,.51,1.09);
}
@keyframes modalfadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #FFF;
  border-radius: 14px;
  padding: 34px 26px 26px 26px;
  max-width: 420px;
  min-width: 270px;
  box-shadow: 0 18px 56px rgba(30,72,92,0.15);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  animation: popupscale 0.22s cubic-bezier(.5,1.18,.56,.93);
}
@keyframes popupscale {
  0% { transform: scale(0.94); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.25rem;
  color: #1E485C;
  margin-bottom: 10px;
}
.cookie-category {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 9px;
}
.cookie-category label {
  font-size: 1rem;
  color: #1E485C;
}
.cookie-category input[type=checkbox] {
  accent-color: #297C5A;
  width: 18px; height: 18px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 16px; right: 22px;
  border: none;
  background: none;
  font-size: 1.5rem;
  color: #1E485C;
  cursor: pointer;
  padding: 6px;
  border-radius: 5px;
  transition: background 0.13s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #E8EFE7;
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 7px;
}
.cookie-modal .modal-actions button {
  padding: 9px 21px;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
}
.cookie-modal .modal-actions .accept {
  background: #297C5A;
  color: #fff;
}
.cookie-modal .modal-actions .accept:hover, .cookie-modal .modal-actions .accept:focus {
  background: #176942;
}
.cookie-modal .modal-actions .reject {
  background: #E8EFE7;
  color: #1E485C;
}
.cookie-modal .modal-actions .reject:hover, .cookie-modal .modal-actions .reject:focus {
  background: #DEE9DF;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 1060px) {
  .container { max-width: 98vw; }
}
@media (max-width: 900px) {
  .feature-grid, .service-list, .service-cards, .team-bios, .featured-articles, .article-teasers, .article-list {
    flex-direction: column;
    gap: 20px;
  }
  .feature-grid > div, .service-list > div, .service-cards > div, .team-bios > div, .featured-articles > article, .article-teasers > article, .article-list > article, .article-list > div {
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 820px) {
  .hero {
    padding: 38px 0 18px 0;
  }
  .section, .features, .service-details, .services, .team, .articles-grid, .articles-highlight, .testimonials, .contact, .privacy-policy, .gdpr-policy, .cookie-policy, .terms-of-use, .thank-you {
    padding: 22px 8px;
    border-radius: 10px;
  }
  header {
    padding: 11px 11px 11px 11px;
    gap: 11px;
  }
  .hero .content-wrapper {
    padding: 0 6px;
  }
  footer {
    padding: 32px 6px 16px 6px;
    border-radius: 12px 12px 0 0;
  }
}
@media (max-width: 768px) {
  header nav { display: none; }
  header .cta { display: none; }
  .mobile-menu-toggle { display: block; }
  .cookie-banner {
    flex-direction: column;
    gap: 17px;
    align-items: flex-start;
    padding: 14px 10px;
  }
  .container {
    padding: 0 9px;
  }
}
@media (max-width: 520px) {
  h1, .h1 { font-size: 1.6rem; }
  h2, .h2 { font-size: 1.22rem; }
  .hero { padding: 24px 0 5px 0; }
}
@media (max-width: 480px) {
  .cookie-modal {
    max-width: 96vw;
    padding: 20px 4vw 18px 4vw;
  }
}

/* =========================
   UTILITIES
   ========================= */
.gap-16 { gap: 16px !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.mt-16 { margin-top: 16px; }
.mb-20 { margin-bottom: 20px; }
.top-align { align-items: flex-start !important; }
.center-align { align-items: center !important; }
.rounded-12 { border-radius: 12px !important; }

/* =========================
   FLEXBOX SPACING & ALIGN
   ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

/* Prevent overlapping and enforce minimum spacing */
.section > *, .features > *, .service-details > *, .services > *, .team > *, .articles-grid > *, .articles-highlight > *, .testimonials > *, .contact > * {
  margin-bottom: 18px;
}
.section > *:last-child, .features > *:last-child, .service-details > *:last-child, .services > *:last-child, .team > *:last-child, .articles-grid > *:last-child, .articles-highlight > *:last-child, .testimonials > *:last-child, .contact > *:last-child {
  margin-bottom: 0;
}

/* ==============
   MISC
   ============== */
::-webkit-input-placeholder { color: #929fa5 !important; }
::-moz-placeholder { color: #929fa5 !important; }
:-ms-input-placeholder { color: #929fa5 !important; }
::placeholder { color: #929fa5 !important; }

/* Scrollbar for webkit
   (Not required on all browsers, optional for aesthetic)
*/
body::-webkit-scrollbar {
  width: 10px;
  background: #F8F6F0;
}
body::-webkit-scrollbar-thumb {
  background: #E1EBE3;
  border-radius: 7px;
}

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