/* PräsentaMeister Modern Gradient CSS – Mobile-first, Flexbox-only, Accessible */

/* =====================
   RESET & BASE
===================== */
html {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #253346;
  background: linear-gradient(120deg, #f8fafc 0%, #e9f1fb 100%);
  min-height: 100vh;
  line-height: 1.6;
  font-size: 1rem;
}
img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #3063a5;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #253346;
  text-decoration: underline;
}
ul, ol {
  margin-left: 1.5em;
  margin-bottom: 1.2em;
}
li {
  margin-bottom: 0.8em;
}

/* =====================
   TYPOGRAPHY
===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  color: #253346;
  font-weight: 700;
}
h1 {font-size: 2.5rem; line-height: 1.15; margin-bottom: 20px;}
h2 {font-size: 2rem; line-height: 1.2; margin-bottom: 18px;}
h3 {font-size: 1.25rem; line-height: 1.3; margin-bottom: 12px;}
h4, h5, h6 {font-size: 1rem; font-weight: 600;}
.subheadline {  font-size: 1.25rem;  color: #46617e;  margin-bottom: 20px;  line-height: 1.4;}
strong {font-weight: bold;}

/* =====================
   GENERAL LAYOUT & CONTAINERS
===================== */
.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* =====================
   HEADER & NAVIGATION
===================== */
header {
  background: linear-gradient(90deg, #97C2E4 0%, #FFD966 100%);
  box-shadow: 0 2px 12px 0 rgba(37,51,70,0.06);
  position: relative;
  z-index: 30;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 86px;
}
.logo {
  display: flex;
  align-items: center;
  height: 56px;
  transition: transform 0.14s;
}
.logo img {height: 40px;}
.logo:hover {transform: scale(1.05);}

.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.main-nav a {
  padding: 6px 0;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #253346;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border 0.3s;
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: #3063a5;
  border-bottom: 2px solid #FFD966;
  outline: none;
}
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  border-radius: 32px;
  padding: 13px 32px;
  font-size: 1rem;
  background: linear-gradient(90deg, #FFD966 40%, #97C2E4 100%);
  color: #253346;
  box-shadow: 0 2px 14px 0 rgba(37,51,70,0.07);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.25s, color 0.14s, box-shadow 0.2s, transform 0.1s;
  margin-left: 18px;
}
.cta-button:hover, .cta-button:focus {
  background: linear-gradient(90deg, #97C2E4 10%, #FFD966 100%);
  color: #253346;
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 4px 20px 0 rgba(151,194,228,0.19);
  outline: none;
}

/* =====================
   MOBILE NAVIGATION
===================== */
.mobile-menu-toggle {
  display: flex;
  background: #253346;
  color: #FFD966;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 2rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  margin-left: 16px;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
  z-index: 101;
  box-shadow: 0 2px 8px 0 rgba(37,51,70,0.08);
}
.mobile-menu-toggle:focus {
  background: #305276;
  outline: 2px solid #FFD966;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: #f8fafc;
  box-shadow: -2px 0 35px rgba(37,51,70,0.20);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.53,.19,.32,1.23), opacity 0.18s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #253346;
  font-size: 2rem;
  align-self: flex-end;
  margin: 26px 32px 10px 0;
  cursor: pointer;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 36px 32px 0 32px;
}
.mobile-nav a {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #253346;
  background: transparent;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  transition: color 0.18s, border 0.3s;
  min-width: 120px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #3063a5;
  border-bottom: 2px solid #FFD966;
}

/* Hide desktop nav elements on mobile, hide mobile icons on desktop */
@media (max-width: 991px) {
  .main-nav, .cta-button {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex !important;
  }
}
@media (min-width: 992px) {
  .mobile-menu, .mobile-menu-toggle {
    display: none !important;
  }
  .main-nav {
    display: flex !important;
  }
  .cta-button {
    display: inline-flex !important;
  }
}

/* =====================
   HERO SECTION
===================== */
.hero {
  background: linear-gradient(120deg, #97C2E4 0%, #fafdff 100%);
  padding: 60px 0 56px 0;
  margin-bottom: 60px;
  display: flex;
}
.hero .container {
  flex-direction: column;
  align-items: flex-start;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 18px;
  padding: 0;
}
.hero h1 { color: #253346; }
.hero .cta-button {
  margin-top: 16px;
}

/* =====================
   FEATURES, CARDS, FLEX CONTAINERS
===================== */
.features {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 4px 32px rgba(37,51,70,0.052);
}
.features .content-wrapper {
  gap: 34px;
  align-items: stretch;
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  padding: 0;
}
.feature-grid li {
  flex: 1 1 220px;
  min-width: 200px;
  background: #f3f9fd;
  border-radius: 24px;
  box-shadow: 0 6px 26px 0 rgba(151, 194, 228, 0.10);
  padding: 26px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  transition: box-shadow 0.22s, transform 0.18s;
  margin-bottom: 20px;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  box-shadow: 0 12px 38px 0 rgba(46, 87, 128, 0.18);
  transform: translateY(-4px) scale(1.025);
}
.feature-grid img {
  width: 40px;
  height: 40px;
}
.feature-grid h3 {
  margin-bottom: 0;
  font-size: 1.16rem;
  color: #253346;
}
.feature-grid p {
  font-size: 1rem;
  color: #475667;
}

/* =====================
   TESTIMONIALS
===================== */
.testimonials {
  background: linear-gradient(90deg, #e9f1fb 0%, #FFFDE6 100%);
  border-radius: 24px;
  margin-bottom: 60px;
  padding: 38px 0 50px 0;
}
.testimonials .content-wrapper {
  gap: 28px;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 22px 20px 22px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 3px 16px rgba(151, 194, 228, 0.13);
  min-width: 250px;
  max-width: 450px;
  flex: 1 1 270px;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.21s, box-shadow 0.18s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 36px 0 rgba(37,51,70,0.13);
  transform: scale(1.03) translateY(-3px);
}
.testimonial-card p {
  color: #253346;
  font-size: 1.1rem;
  margin-bottom: 0;
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 1rem;
  color: #46617e;
  font-weight: 500;
}
.testimonial-meta strong {
  font-size: 1rem;
  color: #253346;
  font-weight: 700;
}
.testimonial-meta img {
  width: 20px;
  height: 20px;
  vertical-align: top;
}
/* Readability on review cards */
.testimonial-card, .testimonial-card p, .testimonial-meta, .testimonial-meta strong {
  color: #253346 !important;
}

/* =====================
   CALL TO ACTION (CTA)
===================== */
.cta {
  background: linear-gradient(95deg, #97C2E4 0%, #FFD966 100%);
  border-radius: 24px;
  padding: 46px 0;
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta .content-wrapper {
  align-items: center;
  gap: 18px;
}
.cta h2 {
  color: #253346;
  text-align: center;
}
.cta ul {list-style: disc inside; margin-bottom: 18px; text-align:left;}
.cta .cta-button {margin-top: 12px;}

/* =====================
   LEGAL / STATIC PAGES
===================== */
.legal {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 12px 0 rgba(55,85,140,0.04);
  margin-bottom: 60px;
  padding: 44px 0 44px 0;
}
.legal h1, .legal h2 {color: #253346;}
.legal h2 {margin-top: 28px;}
.legal p, .legal ul, .legal li {font-size: 1.01rem; color: #374151;}

/* =====================
   ABOUT & TEAM
===================== */
.about {
  background: #f8fafc;
  border-radius: 24px;
  margin-bottom: 60px;
  padding: 32px 0 38px 0;
}
.about .content-wrapper {
  gap: 26px;
}
.about .text-section ul {
  margin-top: 14px;
  padding-left: 16px;
}
.team {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 12px 0 rgba(46,87,128,0.04);
  margin-bottom: 60px;
  padding: 32px 0 36px 0;
}
.team .text-section ul {
  margin: 10px 0 20px 18px;
}

/* =====================
   COURSE PAGES
===================== */
.course-outline ul, .features ul, .outcomes ul, .faq ul, .faq-preview ul {
  padding-left: 20px;
  margin-bottom: 18px;
}
.course-outline ul li, .outcomes ul li, .faq ul li, .faq-preview ul li {
  margin-bottom: 17px;
}

/* =====================
   DL ACCORDION (FAQ)
===================== */
.faq-accordion {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-accordion dt {
  cursor: pointer;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.08rem;
  color: #253346;
  background: #F3F9FD;
  padding: 14px 18px;
  border-radius: 14px;
  transition: background 0.16s;
}
.faq-accordion dt:active, .faq-accordion dt:focus {background: #e9f1fb;}
.faq-accordion dd {
  padding: 12px 18px 14px 32px;
  color: #406080;
  background: #fff;
  border-radius: 12px;
  margin-left: 0;
}

/* =====================
   CONTACT INFO
===================== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 1rem;
  color: #253346;
  margin-bottom: 10px;
}
.contact-info img {
  width: 20px;
  height: 20px;
  margin-right: 9px;
  vertical-align: middle;
}
.contact-info > div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.contact-info strong {
  font-weight: 600;
  color: #253346;
}

/* =====================
   THANK YOU PAGE
===================== */
.thank-you {
  background: linear-gradient(90deg, #e9f1fb 0%, #FFFDE6 100%);
  border-radius: 28px;
  margin-bottom: 60px;
  padding: 48px 0;
}
.thank-you h1 {
  margin-bottom: 18px;
  color: #253346;
}
.thank-you ul {
  margin: 18px 0 18px 16px;
}
.thank_you_message {
  font-size: 1.05rem;
  color: #46617e;
  margin-bottom: 10px;
}

/* =====================
   FOOTER
===================== */
footer {
  background: #253346;
  color: #fff;
  padding: 50px 0 30px 0;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.footer-nav {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #FFD966;
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 12px;
  position: relative;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-bottom 0.19s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #97C2E4;
  border-bottom: 1px solid #97C2E4;
}
footer .contact-info {
  color: #dae5f2;
  font-size: 0.98rem;
  gap: 6px;
  margin-bottom: 8px;
}
footer .branding {
  display: flex;
  align-items: center;
  gap: 12px;
}
footer .branding img {
  height: 35px;
}
footer .branding span {
  color: #fff;
}

/* =====================
   FLEX CONTAINERS PATTERN (MANDATORY)
===================== */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 22px 0 rgba(151, 194, 228, 0.10);
  overflow: hidden;
}
.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;
}

/* =====================
   RESPONSIVE DESIGN
===================== */
@media (max-width: 1200px) {
  .container {padding: 0 12px;}
}
@media (max-width: 991px) {
  .feature-grid {gap: 16px;}
  .testimonial-card {max-width: 100%;}
  .cta, .legal, .about, .thank-you, .features {
    padding-left: 6px;
    padding-right: 6px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 6px;
    min-height: 70px;
  }
  .hero {padding: 34px 0 34px 0;}
  .features, .cta, .about, .team, .thank-you, .legal {
    padding: 22px 3px;
    border-radius: 14px;
    margin-bottom: 38px;
  }
  .feature-grid {
    flex-direction: column;
    gap: 17px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    min-width: unset;
    max-width: 100%;
  }
  .content-wrapper {
    gap: 18px;
  }
  .contact-info {
    gap: 8px;
    font-size: 0.98rem;
  }
  .footer-nav {
    flex-direction: column;
    gap: 6px;
  }
  .text-image-section, .steps .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .legal, .thank-you {padding: 18px 0;}
}

/* =====================
   SPACING ADJUSTMENTS
===================== */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.7em;
}
ul, ol {margin-bottom: 1.2em;}
.section, .features, .testimonials, .about, .cta, .team, .thank-you, .legal {
  margin-bottom: 60px;
}
.card, .testimonial-card, .feature-grid li {
  margin-bottom: 20px;
}
.card-container, .content-grid, .text-image-section, .testimonial-card, .feature-item {
  gap: 20px;
}

/* =====================
   BUTTONS, INTERACTIONS
===================== */
button, .cta-button {
  outline: none;
  border: none;
}
button:active, .cta-button:active {transform: scale(0.99);}
button:focus-visible, .cta-button:focus-visible {
  outline: 2px solid #97C2E4;
  outline-offset: 2px;
}

/* Micro-interactions */
.card, .testimonial-card, .feature-grid li, .cta-button {
  transition: box-shadow 0.21s, transform 0.22s, background 0.19s, color 0.18s, border 0.14s;
}

/* =====================
   COOKIE CONSENT BANNER
===================== */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50000;
  background: #253346;
  color: #fff;
  padding: 22px 14px 16px 14px;
  box-shadow: 0 -2px 14px 0 rgba(37,51,70,0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  min-height: 88px;
  max-width: 100vw;
  animation: cookieFadeIn 0.5s cubic-bezier(.25,.72,.26,.98);
}
@keyframes cookieFadeIn {
  from { transform: translateY(60px); opacity: 0;}
  to   { transform: translateY(0); opacity: 1;}
}
.cookie-banner p {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0;
  text-align: center;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 5px;
}
.cookie-banner button {
  font-family: 'Montserrat', 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  border-radius: 32px;
  padding: 9px 28px;
  font-size: 1rem;
  border: none;
  outline: none;
  cursor: pointer;
  margin: 0 2px;
  transition: background 0.16s, color 0.16s, box-shadow 0.18s;
}
.cookie-accept {
  background: #FFD966;
  color: #253346;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #ebc931;
  color: #253346;
}
.cookie-reject {
  background: #97C2E4;
  color: #253346;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #6799c6;
  color: #fff;
}
.cookie-settings {
  background: #fff;
  color: #253346;
  border: 1px solid #97C2E4;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #f3f9fd;
  color: #253346;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(32,40,53,.72);
  z-index: 60000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.23s;
}
.cookie-modal.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal .cookie-modal-box {
  background: #fff;
  color: #253346;
  padding: 34px 30px 24px 30px;
  border-radius: 18px;
  max-width: 95vw;
  width: 420px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 4px 36px rgba(37,51,70,0.16);
  animation: modalSlideIn 0.32s cubic-bezier(.32,1.3,.44,1.05);
}
@keyframes modalSlideIn {
  from { transform: translateY(50px) scale(0.98); opacity: 0;}
  to   { transform: translateY(0) scale(1); opacity: 1;}
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-category-label {
  font-weight: 600;
  flex: 1 1 70%;
}
.cookie-toggle {
  width: 44px;
  height: 25px;
  border-radius: 16px;
  background: #e3e8f4;
  border: none;
  appearance: none;
  position: relative;
  cursor: pointer;
  transition: background 0.14s;
}
.cookie-toggle:checked {
  background: #97C2E4;
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 4px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(85,110,135,0.12);
  transition: left 0.14s;
}
.cookie-toggle:checked:before {
  left: 22px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 7px;
  justify-content: flex-end;
}

/* Essential cookies always enabled */
.cookie-modal .cookie-category.essential .cookie-toggle {
  display: none;
}
.cookie-modal .cookie-category.essential .cookie-category-label:after {
  content: '(immer aktiviert)';
  font-size: 0.93rem;
  color: #6799c6;
  margin-left: 11px;
}

/* =====================
   UTILITY CLASSES
===================== */
.hide-mobile { display: none !important; }
.show-mobile { display: block !important; }
@media (min-width: 992px) { 
  .hide-mobile { display: block !important; }
  .show-mobile { display: none !important; }
}

/* =====================
   ACCESSIBILITY / FOCUS
===================== */
a:focus, button:focus, .cta-button:focus {
  outline: 2px solid #FFD966;
  outline-offset: 1px;
}

/* =====================
   OVERRIDES/FALLBACKS
===================== */
:root {
  --brand-primary: #253346;
  --brand-secondary: #97C2E4;
  --brand-accent: #FFD966;
}

@media (max-width: 600px) {
  .cookie-modal .cookie-modal-box {
    padding: 18px 6px 14px 6px;
    width: 96vw;
  }
}
