/* ----------------------------------
   ESaniTrott AkademieFinder CSS
   "gradient_modern" style
   Responsive, flexbox-only, no grid/columns
----------------------------------- */

/* RESET & BASE ------------------- */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  min-height: 100vh;
  font-family: 'Open Sans', Arial, sans-serif;
  background: linear-gradient(135deg, #F7F7F9 0%, #ECF5FC 100%);
  color: #09314A;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s;
}
img {
  max-width: 100%;
  display: block;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  border: none;
  background: none;
}
a {
  color: #A4C639;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #09314A;
  text-decoration: underline;
}

/* TYPOGRAPHY --------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #09314A;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
}
h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; font-weight: 600; }
.subheadline { color: #2c5372; font-size: 1.25rem; margin-bottom: 1.5em; }

p, li, label {
  font-size: 1.05rem;
  font-family: 'Open Sans', Arial, sans-serif;
  color: #17405c;
}
ul, ol { padding-left: 22px; margin: 0 0 1.3em 0; }
strong { font-weight: 600; }

/* --------- REUSABLE LAYOUTS --------------- */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(9,49,74,0.07);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #fff;
  color: #182733;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(9,49,74,0.10);
  min-width: 270px;
  max-width: 370px;
  margin-bottom: 20px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.testimonial-card:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 5px 24px 0 rgba(9,49,74,0.16);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #F7F7F9;
  border-radius: 16px;
  padding: 24px 20px 20px 20px;
  min-width: 235px;
  box-shadow: 0 2px 8px 0 rgba(9,49,74,0.05);
  margin-bottom: 20px;
  transition: box-shadow 0.18s, background 0.18s;
}
.feature-item img { height: 38px; margin-bottom: 6px; }
.feature-item:hover {
  background: #eaf5dd;
  box-shadow: 0 4px 18px 0 rgba(164,198,57,0.09);
}

/* FLEXBOX-ONLY GRIDS --------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}
.course-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.article-teasers {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 22px 0 18px 0;
}

/* HEADER & NAVIGATION ----------------- */
header {
  background: linear-gradient(90deg, #F7F7F9 60%, #eaf5dd 100%);
  box-shadow: 0 2px 8px 0 rgba(9,49,74,0.05);
  position: relative;
  z-index: 50;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  padding-bottom: 14px;
}
header img {
  height: 46px;
  margin-right: 26px;
}
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #09314A;
  font-weight: 500;
  font-size: 1rem;
  padding: 6px 8px;
  border-radius: 5px;
  transition: background 0.18s, color 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  background: #eaf5dd;
  color: #09314A;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  background: linear-gradient(90deg, #A4C639 51%, #7C9715 100%);
  color: #fff !important;
  padding: 11px 30px;
  font-size: 1.1rem;
  border-radius: 24px;
  box-shadow: 0 2px 8px 0 rgba(164,198,57,0.12);
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
  cursor: pointer;
  margin-left: 12px;
  margin-right: 4px;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(90deg, #7C9715 10%, #A4C639 96%);
  box-shadow: 0 6px 24px 0 rgba(164,198,57,0.16);
  transform: scale(1.04);
  color: #fff;
  text-decoration: none;
}

/* MOBILE MENU -------------------------- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #09314A;
  cursor: pointer;
  margin-left: 16px;
  z-index: 104;
  transition: color 0.18s;
}
.mobile-menu-toggle:focus {
  outline: 2px dashed #A4C639;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right:0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #F7F7F9 70%, #eaf5dd 100%);
  z-index: 110;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transition: transform 0.36s cubic-bezier(.4,1.4,.6,1), opacity 0.36s;
  transform: translateX(-100vw);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 32px 0 rgba(9,49,74,0.13);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.3rem;
  color: #09314A;
  align-self: flex-end;
  background: none;
  border: none;
  margin: 28px 24px 8px 0;
  cursor: pointer;
  z-index: 120;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 24px 0 0 36px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.17rem;
  color: #09314A;
  font-weight: 600;
  padding: 12px 0;
  border-radius: 7px;
  width: max-content;
  background: none;
  transition: color 0.19s, background 0.18s;
}
.mobile-nav a:active,
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #eaf5dd;
  color: #7C9715;
  text-decoration: none;
}

/* --------- HERO & SECTIONS --------------- */
.hero-section {
  background: linear-gradient(90deg, #eaf5dd 0%, #F7F7F9 100%);
  padding: 60px 0 50px 0;
}
.hero-section h1 {
  color: #09314A;
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero-section .cta-btn {
  margin-top: 24px;
}

.search-section {
  background: #fff;
  border-radius: 0 0 32px 32px;
  box-shadow: 0 4px 18px 0 rgba(9,49,74,0.04);
  margin-bottom: 38px;
  padding: 40px 0 32px 0;
}
.search-bar, .search-bar.advanced {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-bottom: 18px;
}
.search-bar input, .search-bar select {
  background: #F7F7F9;
  border-radius: 8px;
  border: 1px solid #eaf5dd;
  padding: 12px 14px;
  font-size: 1rem;
  width: 210px;
  margin-right: 0;
  transition: box-shadow 0.15s, border 0.13s;
}
.search-bar input:focus, .search-bar select:focus {
  box-shadow: 0 2px 6px #A4C63933;
  border: 1.5px solid #A4C639;
}
.search-bar button {
  background: linear-gradient(90deg,#A4C639 51%,#7C9715 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: 18px;
  padding: 10px 28px;
  cursor: pointer;
  border: none;
  transition: background 0.17s, box-shadow 0.15s, transform 0.13s;
  box-shadow: 0 2px 8px 0 rgba(164,198,57,0.10);
}
.search-bar button:hover, .search-bar button:focus {
  background: linear-gradient(90deg,#7C9715 10%, #A4C639 96%);
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(164,198,57,0.15);
}
.filter-panel {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 13px;
}
.filter-panel span {
  font-weight: bold;
  color: #09314A;
}
.filter-panel label {
  font-size: 1rem;
  color: #09314A;
  display: flex;
  align-items: center;
  gap: 4px;
}
.filter-panel input[type="checkbox"] {
  accent-color: #A4C639;
  width: 16px;
  height: 16px;
}

.listings-section, .info-section, .about-section, .legal-section, .team-section, .stats-section, .contact-section, .thankyou-section, .blog-list-section {
  margin-bottom: 60px;
  padding: 40px 0;
}

/* ------ COURSE & PARTNER CARDS ----------- */
.course-list, .partner-list {
  margin-top: 18px;
}
.course-card, .provider-profile {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 15px 0 rgba(9,49,74,0.07);
  padding: 28px 20px 18px 20px;
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 370px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.17s, transform 0.16s;
}
.course-card:hover, .provider-profile:hover {
  box-shadow: 0 5px 24px 0 rgba(9,49,74,0.18);
  transform: translateY(-3px) scale(1.035);
}
.course-card h3, .provider-profile h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}
.course-card ul, .provider-profile ul {
  margin: 8px 0 8px 16px;
}
.course-card a, .provider-profile a {
  color: #A4C639;
  font-weight: 600;
  margin-top: 8px;
  text-decoration: underline;
  font-size: 1rem;
}

/* ---- BLOG, FAQ, DETAILS  ---- */
article {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px 0 rgba(9,49,74,0.06);
  padding: 24px 20px;
  margin-bottom: 20px;
  min-width: 240px;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow 0.17s, transform 0.14s;
}
article:hover {
  box-shadow: 0 6px 24px 0 rgba(164,198,57,0.11);
  transform: translateY(-2px) scale(1.03);
}
.category-filters button {
  background: #eaf5dd;
  color: #09314A;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 7px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.category-filters button:hover, .category-filters button.active {
  background: #A4C639;
  color: #fff;
}
.faq-section {
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 2px 18px 0 rgba(9,49,74,0.06);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 22px;
}
.faq-list details {
  background: #F7F7F9;
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 2px 7px 0 rgba(9,49,74,0.07);
  color: #09314A;
  font-size: 1.05rem;
}
.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 8px;
  outline: none;
  color: #09314A;
  font-family: 'Montserrat', Arial, sans-serif;
}
.faq-list details[open] {
  background: #eaf5dd;
}
.faq-list details p {
  margin-top: 8px;
  color: #17405c;
}

/* TESTIMONIALS - HIGH CONTRAST ----------- */
.testimonials-section {
  background: linear-gradient(90deg, #F7F7F9 55%, #eaf5dd 100%);
  border-radius: 28px;
  box-shadow: 0 2px 13px 0 rgba(9,49,74,0.06);
  padding-top: 40px;
  padding-bottom: 40px;
}
.testimonials-section h2 {
  margin-bottom: 18px;
}
.testimonial-list {
  margin-top: 16px;
}
.testimonial-card p {
  color: #182733;
  font-size: 1.08rem;
  margin-bottom: 14px;
  font-style: italic;
}
.testimonial-card span {
  color: #295C5B;
  font-size: 0.98rem;
}

/* FOOTER -------------------------------- */
footer {
  background: linear-gradient(90deg,#09314A 75%,#A4C639 100%);
  color: #fff;
  border-radius: 24px 24px 0 0;
  margin-top: 60px;
  padding-top: 28px;
  padding-bottom: 16px;
  position: relative;
  z-index: 5;
}
.footer-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: underline;
  opacity: 0.88;
  transition: color 0.15s, opacity 0.17s;
}
.footer-nav a:hover {
  color: #A4C639;
  opacity: 1;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.99rem;
  color: #fff;
  margin-bottom: 14px;
  opacity: 0.90;
}
.footer-contact img {
  width: 17px;
  height: 17px;
  display: inline-block;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-disclaimer {
  font-size: 0.95rem;
  color: #dde3e7;
  opacity: 0.68;
}

/* COOKIE BANNER ----------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg,#F7F7F9 88%,#eaf5dd 100%);
  box-shadow: 0 -2px 14px 0 rgba(9,49,74,0.16);
  padding: 18px 0 15px 0;
  z-index: 1001;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  font-size: 1rem;
  transition: transform 0.35s cubic-bezier(.45,.9,.45,1.19), opacity 0.35s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-message {
  max-width: 56vw;
  color: #09314A;
  font-size: 1rem;
}
.cookie-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-btn, .cookie-settings-btn {
  background: linear-gradient(90deg, #A4C639 65%, #7C9715 100%);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 8px 20px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 6px 0 rgba(164,198,57,0.11);
  transition: background 0.17s, box-shadow 0.15s;
}
.cookie-btn.reject {
  background: #fff;
  color: #09314A;
  border: 1px solid #A4C639;
  box-shadow: none;
}
.cookie-btn.reject:hover, .cookie-btn.reject:focus {
  background: #eaf5dd;
  color: #09314A;
}
.cookie-btn:hover, .cookie-settings-btn:hover, .cookie-btn:focus, .cookie-settings-btn:focus {
  background: linear-gradient(90deg, #7C9715 10%, #A4C639 96%);
}

/* COOKIE MODAL -------------------------- */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1100;
  background: rgba(9,49,74,0.23);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.active {
  display: flex;
}
.cookie-modal {
  min-width: 315px;
  max-width: 400px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 42px 0 rgba(9,49,74,0.23);
  padding: 34px 32px 24px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal h2 {
  font-size: 1.37rem;
  color: #09314A;
  margin-bottom: 14px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category label {
  font-size: 1.05rem;
  color: #09314A;
  font-weight: 500;
}
.cookie-modal input[type="checkbox"] {
  accent-color: #A4C639;
  width: 18px;
  height: 18px;
}
.cookie-modal .cookie-desc {
  font-size: 0.96rem;
  color: #295C5B;
  margin-bottom: 7px;
}
.cookie-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}
.cookie-modal .cookie-close {
  position: absolute;
  right: 18px;
  top: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #09314A;
  cursor: pointer;
  opacity: 0.74;
  z-index: 10;
}
/* ------------- MAP ----------- */
.map-embed {
  background: #F7F7F9;
  border-radius: 16px;
  padding: 20px;
  color: #09314A;
  margin: 18px 0 0 0;
  box-shadow: 0 1px 8px rgba(9,49,74,0.04);
}

/* --- VISUAL EFFECTS --- */
.boxed {
  border-radius: 22px;
  box-shadow: 0 2px 17px 0 rgba(9,49,74,0.08);
  background: #fff;
}

/* --- ANIMATIONS --- */
.fade-in {animation: fade-in 0.7s cubic-bezier(.62,1.41,.29,1.01);}
@keyframes fade-in { from { opacity: 0;} to { opacity: 1;}}

/* -------------------- MEDIA QUERIES --------------------- */
@media (max-width: 992px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  .hero-section h1 { font-size: 2.1rem; }
  .course-card, .provider-profile, article, .testimonial-card { min-width: 220px; max-width: 100%; }
  .partner-list, .course-list, .article-teasers, .testimonial-list, .feature-grid {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { max-width: 100vw; padding: 0 10px; }

  header .container { flex-direction: row; }
  .main-nav, .cta-btn { display: none; }
  .mobile-menu-toggle { display: block; }
  .hero-section, .search-section, .testimonials-section, .features-section, .cta-section { padding-top: 26px; padding-bottom: 26px; }
  .feature-grid, .course-list, .partner-list, .testimonial-list, .article-teasers {
    flex-direction: column;
    gap: 22px;
  }
  .feature-item, .course-card, .provider-profile, article, .testimonial-card, .boxed {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
  .faq-list { gap: 14px; }
  .filter-panel { gap: 6px; font-size: 0.97rem; }
  .cookie-banner .cookie-message { max-width: 70vw; font-size: 0.98rem; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  header img { height: 37px; margin-right: 15px; }
  .hero-section, .section { padding: 18px 0 10px 0; }
  .cookie-banner { flex-direction: column; gap: 15px; padding: 14px 0 10px 0; }
  .footer-contact { font-size: 0.918rem; }
  .footer-nav { gap: 13px; }
  .cookie-modal { min-width: 94vw; max-width: 98vw; padding: 22px 8px 12px 14px; }
}

/* -------- UTILITY CLASSES ----------- */
.mt-2 { margin-top: 16px; }
.margin-bottom-md { margin-bottom: 24px; }

/* -------- MISC ----------- */
:focus-visible { outline: 2px solid #A4C639; outline-offset: 2px; }
::-webkit-input-placeholder { color: #6d859b; }
::-moz-placeholder { color: #6d859b; }
:-ms-input-placeholder { color: #6d859b; }
::placeholder { color: #6d859b; }

/* SCROLLBAR STYLING (for webkit) */
body::-webkit-scrollbar {
  width: 13px;
  background: #ececec;
}
body::-webkit-scrollbar-thumb {
  background: #B7D458;
  border-radius: 8px;
  border: 3px solid #ececec;
}

/* ----------- END ------------- */
