/* ===============================
   Crystal Adventure Finanzen Style
   "elegant_classic" Responsive CSS
   =============================== */

/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *::before, *::after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', Georgia, 'Times New Roman', Times, serif;
  font-size: 1rem;
  color: #1C2841;
  background: #F4F7FA;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #1C2841;
  text-decoration: none;
  transition: color 0.22s;
}
a:focus {
  outline: 2px solid #A7C7E7;
  outline-offset: 2px;
}
a:hover {
  color: #24406c;
}
ul, ol {
  margin-left: 1.3em;
  margin-bottom: 16px;
}
li {
  margin-bottom: 8px;
}

/*  TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  color: #1C2841;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  line-height: 1.18;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem; margin-bottom: 20px; }
h3 { font-size: 1.44rem; margin-bottom: 14px; }
h4 { font-size: 1.15rem; margin-bottom: 8px; }

p {
  font-family: 'Roboto', Georgia, serif;
  color: #232e44;
  margin-bottom: 16px;
  font-size: 1.05rem;
}
strong, b {
  font-weight: 600;
}

/* =======================
    LAYOUT & CONTAINERS
   ======================= */
.container {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

/* ----- Section Spacing Pattern (MANDATORY) ------ */
section {
  margin-bottom: 60px;
  padding: 40px 0 40px 0;
  background: transparent;
}
@media (max-width: 768px) {
  section {
    padding: 28px 0;
    margin-bottom: 36px;
  }
}

/* =======================
    HEADER & NAVIGATION
   ======================= */
header {
  background: #fff;
  border-bottom: 1px solid #E4E8EE;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1010;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 76px;
}
header img {
  height: 50px;
  max-width: 170px;
  margin-right: 28px;
}
header nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
header nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  color: #1C2841;
  letter-spacing: 0.04em;
  padding: 6px 0;
  position: relative;
  transition: color 0.18s;
}
header nav a:hover,
header nav a.active {
  color: #5A7996;
}
header .button.primary {
  margin-left: 22px;
}

/* ------ MOBILE NAVIGATION ------ */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  color: #1C2841;
  cursor: pointer;
  display: none;
  padding: 8px;
}
@media (max-width: 990px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

.mobile-menu {
  position: fixed;
  top: 0; left: 0; height: 100vh; width: 100vw;
  background: rgba(28, 40, 65, 0.95);
  z-index: 2001;
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.32,1.2,.45,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  font-size: 2.1rem;
  color: #fff;
  align-self: flex-end;
  margin: 24px 28px 0 0;
  cursor: pointer;
  z-index: 2002;
  transition: color 0.16s;
}
.mobile-menu-close:hover {
  color: #A7C7E7;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 36px 32px 0 32px;
  width: 100%;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #fff;
  font-family: 'Montserrat', Georgia, serif;
  padding: 10px 0;
  border-bottom: 1px solid rgba(167,199,231, 0.12);
  transition: color 0.15s, background 0.2s;
  letter-spacing: 0.03em;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover {
  color: #A7C7E7;
  background: rgba(244, 247, 250, 0.07);
}
@media (min-width: 991px) {
  .mobile-menu,
  .mobile-menu-toggle {
    display: none;
  }
}

/* =======================
    BUTTONS
   ======================= */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.07rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 13px 28px;
  background: #A7C7E7;
  color: #1C2841;
  cursor: pointer;
  transition: background 0.18s, color 0.22s, box-shadow 0.18s;
  box-shadow: 0 4px 18px 0 rgba(84, 93, 110, 0.07);
  margin-top: 10px;
  margin-bottom: 10px;
  outline: none;
}
.button.primary {
  background: #1C2841;
  color: #fff;
}
.button.secondary {
  background: #fff;
  color: #1C2841;
  border: 1px solid #A7C7E7;
}
.button:hover, .button:focus {
  background: #5A7996;
  color: #fff;
  box-shadow: 0 8px 32px 0 rgba(84, 93, 110, 0.12);
}
.button.secondary:hover,.button.secondary:focus {
  background: #A7C7E7;
  color: #1C2841;
}

/* =======================
      HERO SECTIONS
   ======================= */
section:first-of-type {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 32px 0 rgba(60,64,86,0.07);
  margin-top: 22px;
  margin-bottom: 60px;
}

/* =======================
      FLEXBOX PATTERNS
   ======================= */
.feature-grid, .category-grid, .course-list, .team-list, .blog-list, .resource-list, .timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 8px;
  margin-bottom: 16px;
}
.feature-card, .category-card, .course-card, .team-profile, .blog-teaser {
  background: #fff;
  border-radius: 10px;
  padding: 30px 22px;
  box-shadow: 0 2px 11px 0 rgba(36,46,68,0.14);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  border: 1px solid #F4F7FA;
  transition: box-shadow 0.18s, border 0.18s, transform 0.22s;
}
.feature-card:hover, .category-card:hover, .course-card:hover, .blog-teaser:hover {
  box-shadow: 0 8px 28px 0 rgba(36,46,68,0.14);
  border: 1px solid #A7C7E7;
  transform: translateY(-3px) scale(1.017);
}

@media (max-width: 940px) {
  .feature-grid, .category-grid, .course-list, .team-list, .blog-list, .resource-list {
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .feature-grid, .category-grid, .course-list, .team-list, .blog-list, .resource-list {
    flex-direction: column;
    gap: 14px;
  }
}

/* Cards with images */
.feature-card img, .category-card img {
  height: 38px;
}

/* Timeline (about page) styling */
.timeline {
  flex-direction: column;
  gap: 16px;
}
.timeline li {
  font-family: 'Roboto', serif;
  font-size: 1.04rem;
  color: #26344F;
  background: #F4F7FA;
  padding: 12px 18px;
  border-left: 4px solid #A7C7E7;
  margin-bottom: 0;
  border-radius: 0 7px 7px 0;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #FAFCFF;
  border-radius: 7px;
  padding: 18px 22px;
  box-shadow: 0 2px 10px 0 rgba(60,64,86,0.09);
  margin-bottom: 0;
  transition: box-shadow 0.17s;
}
.faq-item:hover {
  box-shadow: 0 8px 18px 0 rgba(36,46,68,0.09);
}

/* Blog filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.blog-filters a {
  padding: 4px 13px;
  background: #F4F7FA;
  border-radius: 6px;
  color: #1C2841;
  font-size: 1rem;
  font-family: 'Montserrat', serif;
  transition: background 0.18s, color 0.16s;
}
.blog-filters a:hover, .blog-filters a.active {
  background: #A7C7E7;
  color: #fff;
}

/* =======================
      TESTIMONIALS
   ======================= */
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  background: #FFF;
  border-left: 6px solid #A7C7E7;
  border-radius: 9px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 1px 9px 0 rgba(28,40,65,0.10);
  color: #232e44;
  transition: box-shadow .18s, border-color .19s;
}
.testimonial-card:hover {
  box-shadow: 0 9px 32px 0 rgba(28,40,65,0.14);
  border-left: 6px solid #5A7996;
}
.testimonial-card p {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-size: 1.12rem;
  color: #1C2841;
  margin-bottom: 0;
}
.testimonial-card span {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  color: #5A7996;
  margin-top: 3px;
}

/* ================================
    CARDS, RESOURCES, VALUE-LIST
   ================================ */
.resource-list {
  flex-direction: column;
  gap: 15px;
}
.resource-list li {
  background: #fff;
  border-radius: 7px;
  padding: 13px 16px;
  color: #1C2841;
  border: 1px solid #E4E8EE;
  font-size: 1.02rem;
  margin-bottom: 0;
  font-family: 'Roboto', serif;
}
.value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  margin-bottom: 15px;
}
.value-list img {
  height: 20px;
  vertical-align: middle;
  margin-right: 8px;
}
.value-list li {
  font-size: 1.04rem;
  color: #24406c;
  font-family: 'Roboto', Georgia, serif;
  min-width: 210px;
  margin-bottom: 0;
}

/*
============================
    FORMS
============================ */
form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 480px;
  margin: 0 auto;
  padding-top: 3px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1C2841;
}
input[type="text"], input[type="email"], textarea {
  font-family: 'Roboto', serif;
  font-size: 1rem;
  color: #1C2841;
  border: 1px solid #A7C7E7;
  border-radius: 6px;
  background: #FAFCFF;
  padding: 12px 13px;
  margin-bottom: 2px;
  transition: border-color 0.19s;
  resize: vertical;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #5A7996;
  outline: none;
}
textarea {
  min-height: 80px;
  max-height: 220px;
}

/* Newsletter form in Blog */
form input[type="email"] {
  width: 100%;
  max-width: 340px;
  margin-right: 16px;
  border-radius: 5px;
}
@media (min-width:690px) {
  form input[type="email"] {
    display: inline-block;
  }
}

/* =======================
     FOOTER
   ======================= */
footer {
  background: #1C2841;
  color: #fff;
  padding: 34px 0 24px 0;
  border-top: 1px solid #A7C7E7;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 10px;
}
footer nav a {
  color: #A7C7E7;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
  transition: color 0.18s;
}
footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}
footer .footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
footer .footer-contact span {
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #E4E8EE;
}
footer .footer-contact img {
  height: 18px;
  margin-right: 4px;
}
.footer-brand {
  margin-top: 8px;
  font-family: 'Roboto', serif;
  color: #CED7E8;
  font-size: 0.97rem;
}

/* =======================
     GENERAL RESPONSIVE
   ======================= */
@media (max-width: 1020px) {
  .container {
    padding-left: 10px;
    padding-right: 10px;
  }
  header .container {
    height: auto;
    gap: 10px;
  }
}
@media (max-width: 768px) {
  .container {
    max-width: 98vw;
    padding-left: 6px;
    padding-right: 6px;
  }
  .content-wrapper {
    gap: 13px;
  }
  .testimonial-card {
    padding: 18px 12px;
  }
  .feature-card, .category-card, .course-card, .team-profile, .blog-teaser {
    max-width: 100%;
    min-width: 0;
    padding: 21px 11px;
  }
  section:first-of-type {
    padding: 19px 6px 28px 6px;
  }
}

/* Align content in image-text sections (no position: absolute, only flex) */
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ============================
    COOKIE CONSENT BANNER
   ============================ */
.cookie-consent-banner {
  position: fixed;
  left: 0; right:0; bottom:0;
  width: 100vw;
  background: #fff;
  box-shadow: 0 -2px 24px 0 rgba(28,40,65,0.09);
  border-top: 1px solid #A7C7E7;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 24px 12px 20px 12px;
  z-index: 2100;
  transition: transform .36s cubic-bezier(.32,1.2,.45,1), opacity .26s;
}
.cookie-consent-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-consent-banner p {
  font-size: 1rem;
  color: #1C2841;
  margin-bottom: 0;
  max-width: 600px;
}
.cookie-consent-banner .button, .cookie-consent-banner button {
  margin: 0 4px 0 0;
}
.cookie-consent-banner .button {
  padding: 11px 17px;
  font-size: 0.99rem;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    gap: 18px;
    padding: 17px 8px 12px 8px;
    align-items: flex-start;
  }
  .cookie-consent-banner p {
    max-width: 95vw;
  }
}

/* Cookie Modal */
.cookie-modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(28,40,65,.52);
  z-index: 2201;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity .24s;
}
.cookie-modal-bg.hidden {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 410px;
  width: 96vw;
  box-shadow: 0 6px 36px 0 rgba(28,40,65,0.17);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2211;
  animation: cookie-modal-in .32s cubic-bezier(.32,1.2,.45,1);
}
@keyframes cookie-modal-in {
  from { transform: translateY(55px) scale(0.93); opacity: 0; }
  to {transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size:1.35rem;
  color: #1C2841;
}
.cookie-modal .cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', serif;
  font-size: 1rem;
  margin-bottom:7px;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #1C2841;
  width: 19px;
  height: 19px;
}
.cookie-modal .category-desc {
  color: #26344F;
  font-size: 0.98rem;
  margin-left: 33px;
  margin-bottom: 6px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 10px;
}
.cookie-modal .button {
  padding: 10px 19px;
  font-size: 1.01rem;
}
/* Modal close button */
.cookie-modal .modal-close {
  background:none;
  border:none;
  color:#1C2841;
  font-size:1.5rem;
  position:absolute;
  top:16px; right:21px;
  cursor:pointer;
  transition: color 0.17s;
}
.cookie-modal .modal-close:hover {
  color:#A7C7E7;
}

/* =============================
    MISC & MICRO-INTERACTIONS
   ============================= */
::-webkit-input-placeholder { color: #A7C7E7; }
::-moz-placeholder { color: #A7C7E7; }
:-ms-input-placeholder { color: #A7C7E7; }
::placeholder { color: #A7C7E7; }

/* Animations for links/buttons */
a, .button, button {
  transition: color 0.18s, background 0.18s, box-shadow 0.18s, border 0.14s, transform 0.20s;
}

/* Lists style inside text-sections */
.text-section ul,
.text-section ol {
  margin-bottom: 14px;
  padding-left: 26px;
}
.text-section li {
  margin-bottom: 7px;
  font-size: 1rem;
}

/* ===== Spacing for content cards and flex containers ===== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 9px 0 rgba(60,64,86,0.10);
  margin-bottom: 20px;
  position: relative;
  padding: 22px 15px;
  min-width: 220px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========================
    MEDIA QUERIES
   ========================= */
@media (max-width: 540px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size:1.19rem; }
  h3, h4 { font-size:1.07rem; }
  section:first-of-type {
    border-radius:6px;
    margin-top:10px;
  }
}
@media (max-width:430px) {
  .container {
    min-width:0; max-width:99vw;
    padding-left:3px;padding-right:3px;
  }
}

/* =========================
    ACCESSIBILITY / UTILS
   ========================= */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

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