/* =========================================================
   NovqenAltrevoAI Finanzkompetenz Minimalist Flexbox CSS
   Brand colors: #22324A (primary), #197278 (secondary), #F7F7F7 (accent)
   Fonts: Montserrat (display), Roboto (body)
========================================================= */

/* ------------------ 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: inherit;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}
body {
  background: #FFF;
  color: #22324A;
  font-family: 'Roboto', Arial, sans-serif;
  min-height: 100vh;
}
ul, ol {
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
  background: none;
}
img {
  max-width: 100%;
  display: block;
}
table {
  border-collapse: collapse;
  width: 100%;
}
th, td {
  padding: 12px 8px;
  text-align: left;
}
th {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  color: #22324A;
  font-weight: 600;
  border-bottom: 2px solid #E5EAF2;
}
td {
  font-size: 16px;
  border-bottom: 1px solid #F0F2F5;
}

/* ------------------ TYPOGRAPHY HIERARCHY ------------------ */
h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.75rem; /* 44px */
  font-weight: 700;
  margin-bottom: 20px;
  color: #22324A;
  letter-spacing: -1px;
}
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem; /* 32px */
  font-weight: 600;
  margin-bottom: 18px;
  color: #22324A;
}
h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.25rem; /* 20px */
  font-weight: 500;
  margin-bottom: 10px;
  color: #22324A;
}
p, li, td {
  font-size: 1rem; /* 16px */
  color: #22324A;
  font-family: 'Roboto', Arial, sans-serif;
}
strong {
  font-weight: 600;
}
.text-section h3 {
  margin-top: 24px;
  margin-bottom: 10px;
}
.text-section p + h3,
.text-section ul + h3 {
  margin-top: 30px;
}

/* ----------- LAYOUT CONTAINERS & FLEXBOX PATTERNS ----------- */
.container {
  width: 100%;
  max-width: 1170px;
  padding: 0 20px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #FFF;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(34,50,74,0.04);
}
/* For index page feature cards */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 0;
}
.feature-grid > div {
  flex: 1 1 220px;
  min-width: 220px;
  background: #F7F7F7;
  border-radius: 12px;
  padding: 28px 20px 22px 20px;
  box-shadow: 0 1px 10px 0 rgba(34,50,74,0.03);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 18px rgba(25,114,120,0.07);
  transform: translateY(-2px) scale(1.01);
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #FFF;
  border-radius: 12px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 10px 0 rgba(34,50,74,0.05);
  transition: box-shadow 0.25s, transform 0.18s;
}
.card:hover {
  box-shadow: 0 8px 24px rgba(34,50,74,0.12);
  transform: translateY(-3px) scale(1.015);
}
.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;
}
.text-section {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px;
  margin-bottom: 20px;
  background: #F7F7F7;
  border-radius: 10px;
  box-shadow: 0 2px 8px 0 rgba(34,50,74,0.09);
  font-size: 1.1rem;
  color: #22324A;
  transition: box-shadow 0.18s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 6px 22px rgba(34,50,74,0.15);
  transform: translateY(-2px) scale(1.01);
}
.testimonial-meta {
  font-size: 1rem;
  color: #197278;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.1em;
  margin-top: 2px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.footer-main, .footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}
.footer-main nav {
  font-size: 15px;
  margin-left: 20px;
}
.footer-info {
  font-size: 14px;
  color: #808999;
  font-family: 'Roboto', sans-serif;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 8px;
}
.footer-copy {
  margin-top: 20px;
  font-size: 13px;
  color: #ADADAD;
}

/* ------------------ HEADER & NAVIGATION ------------------ */
header {
  background: #FFF;
  border-bottom: 1.5px solid #F0F2F5;
  position: sticky;
  top: 0;
  z-index: 101;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}
header img {
  height: 38px;
}
header nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 500;
}
header nav a {
  color: #22324A;
  padding: 6px 0;
  transition: color 0.18s;
}
header nav a:hover,
header nav a:focus {
  color: #197278;
}
.cta-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #197278;
  color: #FFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 24px;
  margin-left: 32px;
  box-shadow: 0 2px 8px rgba(25, 114, 120, 0.07);
  border: none;
  cursor: pointer;
  transition: background 0.19s, color 0.19s, transform 0.15s, box-shadow 0.17s;
}
.cta-btn:hover, 
.cta-btn:focus {
  background: #22324A;
  color: #FFF;
  transform: translateY(-1px) scale(1.025);
  box-shadow: 0 6px 20px rgba(34,50,74,0.16);
}

/* ------------- MOBILE MENU: Hamburger & Overlay ------------ */
.mobile-menu-toggle {
  display: none;
  position: relative;
  z-index: 999;
  font-size: 2.1rem;
  color: #197278;
  background: none;
  border: none;
  padding: 8px;
  margin-left: 14px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.19s;
}
.mobile-menu-toggle:focus {
  outline: 2px solid #197278;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(34,50,74,0.98);
  z-index: 2000;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.32s cubic-bezier(.67,.03,.29,1.04);
  transform: translateX(100%);
}
.mobile-menu.active {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 18px;
  right: 26px;
  font-size: 2rem;
  color: #FFF;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2100;
  opacity: 0.85;
  transition: color 0.2s;
}
.mobile-menu-close:focus {
  outline: 2px solid #FFF;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 70px 0 0 32px;
}
.mobile-nav a {
  color: #FFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 1.35rem;
  padding: 6px 0;
  border-radius: 2px;
  transition: color 0.22s, background 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #197278;
  background: rgba(255,255,255,0.06);
  padding-left: 10px;
}

/* ------------------- HERO SECTION -------------------- */
.hero {
  padding: 64px 0 42px 0;
  background: #F7F7F7;
  border-radius: 0 0 36px 36px;
  box-shadow: 0 2px 16px rgba(34,50,74,0.04);
  margin-bottom: 48px;
}
.hero .container {
  align-items: stretch;
  justify-content: center;
}
.hero .content-wrapper {
  max-width: 640px;
  align-self: flex-start;
  gap: 12px;
}
.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 12px;
}
.hero p {
  font-size: 1.20rem;
  color: #22324A;
  margin-bottom: 30px;
}
.hero .cta-btn {
  margin-left: 0;
  margin-top: 8px;
}

/* -------------------- SECTION STYLES ----------------------- */
section {
  width: 100%;
  margin: 0 auto;
  margin-bottom: 0;
}
section:not(.hero):not(.section) + section, section.section + section {
  margin-top: 12px;
}

/* ------------------ TEXT LINKS & BUTTONS ------------------- */
a,
button {
  transition: color 0.18s, background 0.16s, border 0.16s, box-shadow 0.18s;
}
button, .cta-btn {
  outline: none;
  border: none;
}

/* -------------------- LISTS & UL's -------------------- */
ul, ol {
  margin: 0 0 22px 0;
  padding-left: 22px;
  color: #22324A;
  font-size: 1rem;
}
ul li, ol li {
  margin-bottom: 8px;
  line-height: 1.7;
}
ul li:last-child, ol li:last-child {
  margin-bottom: 0;
}
ul li strong {
  color: #197278;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

/* --------------- TABLES (Preise) -------------- */
table {
  margin-bottom: 24px;
  background: #FFF;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(34,50,74,0.04);
  overflow-x: auto;
}

/* ------------------- FOOTER ------------------- */
footer {
  background: #F7F7F7;
  color: #22324A;
  padding: 46px 0 18px 0;
  border-top: 1.5px solid #E5EAF2;
}
footer .container {
  gap: 4px;
}
footer img {
  height: 36px;
  margin-right: 16px;
}
footer nav {
  color: #22324A;
  font-size: 1rem;
  opacity: 0.87;
}
footer nav a {
  color: #197278;
  margin: 0 7px;
  transition: opacity 0.17s, text-decoration 0.16s;
}
footer nav a:hover,footer nav a:focus {
  text-decoration: underline;
  opacity: 1;
}

/* ---------------- COOKIE CONSENT BANNER ------------------ */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #22324A;
  color: #FFF;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  z-index: 4000;
  box-shadow: 0 0 18px 0 rgba(34,50,74,0.16);
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(50px);
  transition: opacity 0.35s, transform 0.32s;
}
.cookie-banner.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.cookie-banner__text {
  font-size: 1rem;
  line-height: 1.7;
  font-family: 'Roboto', sans-serif;
}
.cookie-banner__actions {
  display: flex;
  gap: 16px;
}
.cookie-btn, .cookie-settings-btn {
  padding: 8px 22px;
  border-radius: 20px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  background: #FFF;
  color: #197278;
  border: none;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(25,114,120,0.07);
  margin-left: 2px;
  margin-right: 2px;
  transition: background 0.19s, color 0.19s, box-shadow 0.16s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #197278;
  color: #FFF;
}
.cookie-btn.reject {
  background: #F7F7F7;
  color: #22324A;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #22324A;
  color: #fff;
}
.cookie-settings-btn {
  background: none;
  border: 1.5px solid #FFF;
  color: #FFF;
  padding: 8px 16px;
  margin-left: 7px;
  margin-right: 2px;
  box-shadow: none;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #197278;
  border-color: #197278;
  color: #FFF;
}

/* COOKIE MODAL DIALOG */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 4100;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: rgba(34,50,74,0.82);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.active {
  display: flex;
  animation: fade-in 0.33s cubic-bezier(0.29,0.88,0.38,1.12);
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #FFF;
  color: #22324A;
  max-width: 410px;
  width: 92vw;
  border-radius: 16px;
  box-shadow: 0 6px 36px rgba(34,50,74,0.19);
  padding: 36px 28px 28px 28px;
  font-family: 'Roboto', sans-serif;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  animation: modal-slide 0.37s cubic-bezier(.51,.14,.15,1.09);
}
@keyframes modal-slide {
  from { transform: translateY(60px); opacity: 0; } to { transform: translateY(0); opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 18px; right: 20px;
  background: none;
  border: none;
  color: #197278;
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.8;
  transition: color 0.18s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #22324A;
}
.cookie-modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  margin-bottom: 2px;
}
.cookie-modal-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.cookie-modal-category label {
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  color: #197278;
}
.cookie-modal-category input[type="checkbox"] {
  accent-color: #197278;
  width: 17px;
  height: 17px;
}
.cookie-modal-category .cookie-essential {
  color: #197278;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}
.cookie-modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 12px;
}
.cookie-modal-actions .cookie-btn {
  width: 50%;
  min-width: 120px;
}

/* ------------- RESPONSIVE DESIGN (MOBILE FIRST) ------------- */
@media (max-width: 1024px) {
  .container {
    max-width: 95vw;
  }
  .footer-main,
  .footer-info {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 900px) {
  .feature-grid {
    gap: 18px;
  }
  .feature-grid > div {
    padding: 24px 15px;
    font-size: 1rem;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .hero { padding: 34px 0 30px 0; border-radius: 0 0 28px 28px; }
  .section { padding: 24px 8px; margin-bottom: 40px; border-radius: 10px; }
  .feature-grid {
    flex-direction: column;
    gap: 14px;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    border-radius: 10px;
    padding: 22px 12px 14px 12px;
  }
  .testimonial-card {
    padding: 18px 12px;
    gap: 12px;
    border-radius: 8px;
  }
  .content-grid, .card-container, .footer-main, .footer-info {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header nav, .cta-btn {
    display: none;
  }
  header .container {
    min-height: 52px;
  }
}
@media (max-width: 500px) {
  .container {
    padding: 0 7px;
  }
  .hero, .section {
    padding-left: 6px;
    padding-right: 6px;
  }
  .cookie-modal {
    padding: 22px 5vw 18px 7vw;
  }
}

/* ----------- UTILITIES ---------- */
.mt-xxl { margin-top: 60px !important; }
.mt-xl { margin-top: 40px !important; }
.mb-lg { margin-bottom: 32px !important; }
.mb-md { margin-bottom: 18px !important; }
.w-100 { width: 100% !important; }
.fs-14 { font-size: 14px !important; }
.text-center { text-align: center !important; }

/* ------------- MICRO-INTERACTIONS & TRANSITIONS ------------- */
.card,
.feature-grid > div,
.testimonial-card,
.cta-btn {
  transition: box-shadow 0.18s, transform 0.13s, background 0.18s, color 0.13s;
}
/* Button focus for accessibility */
button:focus,
.cta-btn:focus {
  outline: 2px solid #197278 !important;
  outline-offset: 2px;
}

/* ------------- FOCUS and VISIBLE STATES for CONSISTENCY -------- */
a:focus,
.mobile-nav a:focus {
  outline: 2px solid #197278;
  outline-offset: 2px;
}

/* ---------- Hide scroll on mobile menu when open ---------- */
body.mobile-menu-open {
  overflow: hidden !important;
}

/* ----------- Prevent overlapping of all flex children ----------- */
.card-container > *,
.feature-grid > *,
.content-grid > *,
.footer-main > *,
.footer-info > *,
.text-image-section > *,
.testimonial-card > * {
  min-width: 0;
}

/* End of CSS */
