/* ==========================================================================
   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;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5;
  background: #232933;
  color: #F4F7FA;
  min-height: 100vh;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
*, *:before, *:after {
  box-sizing: border-box;
}
a {
  color: #7EB26D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #F4F7FA;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol {
  margin-left: 24px;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

/* ==========================================================================
   VARIABLES & FONTS
   ========================================================================== */
:root {
  --primary: #2B3A67;
  --secondary: #7EB26D;
  --accent: #F4F7FA;
  --dark-bg: #232933;
  --metal: #48494D;
  --text-light: #F4F7FA;
  --text-dark: #232933;
  --shadow-small: 0 2px 6px rgba(30, 32, 40, 0.11);
  --shadow: 0 4px 20px 0 rgba(30,34,50,0.16);
  --radius: 11px;
  --radius-sm: 7px;
}

body, .body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Arial Black', Arial, sans-serif;
  color: #F4F7FA;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 24px;
  line-height: 1.2;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  line-height: 1.25;
}
h3 {
  font-size: 1.3rem;
  margin-bottom: 14px;
}
h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}
@media (min-width: 900px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.4rem; }
}
p, ul, ol {
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 16px;
  color: var(--accent);
}
strong {
  color: var(--secondary);
  font-weight: 600;
}

/* ==========================================================================
   CONTAINER & LAYOUT UTILS (FLEXBOX ONLY)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius);
}
@media (min-width: 900px) {
  .content-wrapper {
    gap: 40px;
  }
  .section {
    padding: 50px 0 50px 0;
  }
}

/* Flex-Based Grids */
.card-container, .content-grid, .feature-grid, .team-list, .course-list, .article-list, .latest-posts, .testimonial-row, .usp-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.card, .feature-item, .team-member, .course-item, .article-preview, .blog-post {
  margin-bottom: 20px;
}

/* Overwrites for specific grids */
.usp-grid {
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 700px) {
  .feature-grid, .team-list, .course-list, .article-list, .latest-posts {
    flex-direction: row;
    gap: 32px;
  }
  .usp-grid {
    flex-direction: row;
    gap: 24px;
  }
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #F4F7FA;
  color: #232933;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-small);
  margin-bottom: 20px;
  min-width: 230px;
  flex: 1 1 260px;
}
.testimonial-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

/* Feature item layout */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #2B3A67;
  border-radius: var(--radius-sm);
  padding: 24px 16px;
  min-width: 210px;
  box-shadow: var(--shadow-small);
  border: 1.5px solid #48494D;
  transition: box-shadow 0.25s;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 8px 30px rgba(30,34,50,0.18), 0 1px 2px rgba(0,0,0,0.04);
}

/* ==========================================================================
   HEADER / NAVIGATION / HERO
   ========================================================================== */
header {
  background: var(--primary);
  box-shadow: 0 2px 13px rgba(43,58,103,0.18);
  position: sticky;
  top: 0;
  z-index: 30;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  min-height: 68px;
}
.logo img {
  height: 38px;
  filter: grayscale(10%) drop-shadow(0 1px 2px #14181e);
}
.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 18px;
}
.main-nav ul li {
  display: flex;
}
.main-nav a {
  color: var(--accent);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.06rem;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.15s, color 0.2s;
  letter-spacing: 0.02em;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--metal);
  color: var(--secondary);
}
.cta-btn {
  background: var(--secondary);
  color: var(--text-dark);
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-sm);
  padding: 11px 30px;
  margin-left: 16px;
  box-shadow: 0 3px 10px rgba(43,58,103,0.06), 0 1px 1px rgba(0,0,0,0.02);
  cursor: pointer;
  transition: background 0.20s, color 0.18s, transform 0.16s;
  text-align: center;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:active, .cta-btn:focus {
  background: #386044;
  color: var(--accent);
  transform: translateY(-2px) scale(1.04);
}
.mini-cta-btn {
  background: none;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  border-radius: var(--radius-sm);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  padding: 8px 18px;
  transition: background 0.17s, color 0.13s;
  margin-top: 10px;
}
.mini-cta-btn:hover, .mini-cta-btn:focus {
  background: var(--secondary);
  color: var(--text-dark);
}

/* HERO SECTION */
.hero-section {
  padding: 70px 0 60px 0;
  background: linear-gradient(125deg, #232933 28%, #2B3A67 100%);
  border-bottom: 2px solid #48494D;
}
.hero-section .content-wrapper {
  align-items: flex-start;
  justify-content: center;
  min-height: 340px;
  gap: 22px;
}
.hero-section h1 {
  color: var(--accent);
  font-size: 2.4rem;
  text-shadow: 0 2px 8px rgba(44,55,70,0.18);
  margin-bottom: 16px;
}
.hero-section .subheadline {
  font-family: 'Roboto', Arial, sans-serif;
  color: #B6BAC8;
  font-size: 1.13rem;
  margin-bottom: 22px;
}
@media (min-width: 900px) {
  .hero-section {
    padding: 120px 0 80px 0;
  }
  .hero-section .content-wrapper {
    align-items: flex-start;
    gap: 36px;
  }
  .hero-section h1 { font-size: 3rem; margin-bottom: 22px; }
}

/* BURGER BUTTON / MOBILE NAVIGATION */
.mobile-menu-toggle {
  display: none;
  position: absolute;
  top: 20px;
  right: 22px;
  font-size: 2rem;
  background: var(--metal);
  color: var(--accent);
  border: none;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  z-index: 100;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background 0.18s, color 0.15s;
}
.mobile-menu-toggle:active, .mobile-menu-toggle:focus {
  background: var(--secondary);
  color: var(--dark-bg);
}
@media (max-width: 950px) {
  .main-nav ul, .main-nav .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #2B3A67;
  box-shadow: 0 0 40px 0 rgba(0,0,0,0.21);
  transform: translateX(-100%);
  transition: transform 0.34s cubic-bezier(.65,.05,.36,1);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  color: var(--accent);
  border: none;
  margin: 20px 0 12px 18px;
  align-self: flex-start;
  cursor: pointer;
  z-index: 1001;
  transition: color 0.17s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus { color: var(--secondary); }
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 24px 32px;
  width: 100%;
  margin-top: 15px;
}
.mobile-nav a {
  color: var(--accent);
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.01em;
  padding: 6px 0;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
@media (max-width: 950px) {
  .mobile-menu {
    display: flex;
  }
}

/* ==========================================================================
   SECTION - FEATURES, TEAMS, CARDS, USP, ARTICLE
   ========================================================================== */
.features-section, .about-preview-section, .testimonial-preview-section, .text-section, .team-section, .usp-section, .services-section, .resources-section, .cta-section, .course-list, .blog-list-section, .testimonials-section, .privacy-policy-section, .gdpr-policy-section, .terms-of-use-section, .cookie-policy-section, .thank-you-section, .contact-section {
  margin-bottom: 60px;
  padding: 40px 0;
}

.card, .course-item, .article-preview, .blog-post {
  background: #282F37;
  border: 1px solid #48494D;
  border-radius: var(--radius-sm);
  padding: 22px 18px 16px 18px;
  box-shadow: var(--shadow-small);
  transition: box-shadow 0.20s, border 0.2s;
}
.card:hover, .course-item:hover, .article-preview:hover, .blog-post:hover {
  border: 1.5px solid var(--secondary);
  box-shadow: var(--shadow);
}

.team-member {
  background: #2B3A67;
  border: 1px solid #48494D;
  border-radius: var(--radius-sm);
  padding: 18px 17px;
  min-width: 220px;
  flex: 1 1 260px;
  box-shadow: var(--shadow-small);
  position: relative;
}
.team-list {
  gap: 24px;
}
@media (max-width: 900px) {
  .feature-item, .team-member, .course-item, .card, .article-preview, .blog-post {
    flex: 1 1 100%;
  }
}

/* USP Bullets */
.usp-grid li {
  background: #282F37;
  color: #F4F7FA;
  border-left: 4px solid var(--secondary);
  padding: 15px 17px;
  border-radius: var(--radius-sm);
}

/* Article Previews & Blog */
.article-list, .latest-posts {
  gap: 24px;
}
.article-preview, .blog-post {
  flex: 1 1 270px;
  min-width: 220px;
}
.search-bar {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}
.search-bar input {
  width: 100%;
  max-width: 330px;
  padding: 7px 16px 7px 16px;
  border-radius: 7px;
  border: 1px solid #48494D;
  background: #232933;
  color: #B6BAC8;
}

/* CTA section */
.cta-section {
  background: #2B3A67;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: 0 2px 18px rgba(43,58,103, 0.09);
}
.cta-section h2 {
  color: var(--accent);
}

/* Thank you section */
.thank-you-section {
  text-align: center;
  background: #232933;
  border-radius: var(--radius);
  box-shadow: 0 1px 12px rgba(44,55,70,.10);
  margin-top: 40px;
}

/* ==========================================================================
   TESTIMONIALS & CARDS - readable contrasting text
   ========================================================================== */
.testimonial-card blockquote, .testimonial-card cite, .testimonial-card p, .testimonial-card .before-after, .testimonial-card .testimonial-author {
  color: #232933;
}
.testimonial-card blockquote {
  font-size: 1.16rem;
  font-style: italic;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-bottom: 10px;
}
.testimonial-card cite {
  font-weight: 600;
  color: #2B3A67;
  font-family: 'Montserrat', Arial, sans-serif;
}
.before-after {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.99rem;
}
@media (min-width: 600px) {
  .before-after {
    flex-direction: row;
    gap: 40px;
  }
}

/* ==========================================================================
   CONTACT PAGE SPECIAL SECTIONS
   ========================================================================== */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 8px;
  align-items: flex-start;
}
.contact-details, .contact-message, .map-embed {
  flex: 1 1 250px;
}
.contact-details img {
  width: 21px;
  vertical-align: middle;
  margin-right: 7px;
}
.contact-details p {
  margin-bottom: 12px;
  color: #B6BAC8;
}
.contact-message {
  background: #282F37;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-small);
  padding: 18px 13px;
}
.contact-message h3 {
  margin-bottom: 12px;
  font-size: 1.08rem;
}
.map-embed {
  background: #232933;
  border-left: 4px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 18px 11px;
  min-width: 200px;
}
@media (max-width: 850px) {
  .contact-info {
    flex-direction: column;
    gap: 18px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #232933;
  border-top: 2px solid #48494D;
  padding: 0 20px;
  margin-top: 72px;
}
.footer-info {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 0 29px 0;
}
.brand-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 430px;
}
.brand-info img {
  width: 50px;
  margin-bottom: 5px;
  filter: grayscale(5%) drop-shadow(0 1px 2px #111318);
}
.footer-tagline {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #7EB26D;
  font-size: 1.1rem;
}
.impressum {
  color: #B6BAC8;
  font-size: 0.98rem;
}
.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-menu a {
  color: #B6BAC8;
  font-size: 1rem;
  border-radius: 3px;
  padding: 4px 10px;
  transition: background 0.17s, color 0.17s;
  width: fit-content;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: #282F37;
  color: var(--secondary);
}
@media (min-width: 800px) {
  .footer-info {
    flex-direction: row;
    align-items: flex-start;
    gap: 52px;
  }
  .footer-menu {
    flex-direction: row;
    gap: 38px;
    align-items: baseline;
  }
}

/* ==========================================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: #232933;
  color: var(--accent);
  box-shadow: 0 -2px 25px rgba(43,58,103,0.23);
  padding: 24px 24px 20px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transform: translateY(110%);
  transition: opacity 0.22s, transform 0.25s;
}
.cookie-banner.show {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.cookie-banner .cookie-banner-text {
  flex: 1 0 200px;
  color: #F4F7FA;
  margin-bottom: 10px;
}
.cookie-banner .cookie-btn {
  background: var(--secondary);
  color: var(--text-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 8px 19px;
  margin: 5px 5px 0 0;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(43,58,103,0.08);
  transition: background 0.17s, color 0.13s;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #386044;
  color: #F4F7FA;
}
.cookie-banner .cookie-settings-btn {
  background: #2B3A67;
  color: #F4F7FA;
  border: 1.5px solid var(--secondary);
  font-size: 1rem;
}
.cookie-banner .cookie-settings-btn:hover, .cookie-banner .cookie-settings-btn:focus {
  background: var(--secondary);
  color: var(--text-dark);
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -48%) scale(0.98);
  background: #2B3A67;
  color: var(--accent);
  border-radius: var(--radius);
  box-shadow: 0 7px 32px rgba(43,58,103,0.21);
  z-index: 2020;
  max-width: 96vw;
  width: 390px;
  padding: 32px 28px 24px 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.19s, transform 0.22s;
}
.cookie-modal.show {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h3 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--secondary);
  font-size: 1.17rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  color: #F4F7FA;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.16s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: var(--secondary);
}
.cookie-modal ul {
  margin-left: 0;
  margin-bottom: 13px;
  padding-left: 0;
}
.cookie-modal li {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.cookie-toggle {
  width: 38px;
  height: 22px;
  border-radius: 15px;
  background: #48494D;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
}
.cookie-toggle[data-enabled="true"] {
  background: var(--secondary);
}
.cookie-toggle-circle {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #F4F7FA;
  border-radius: 50%;
  transition: left 0.16s;
}
.cookie-toggle[data-enabled="true"] .cookie-toggle-circle {
  left: 19px;
}
.cookie-category-label {
  font-size: 1.01rem;
  color: var(--accent);
}
.cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 21px;
}
.cookie-modal-actions .cookie-btn {
  width: 100%;
  padding: 8px 0;
}

@media (max-width: 600px) {
  .cookie-modal {
    width: 96vw;
    max-width: 360px;
    padding: 18px 10px 10px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    gap: 13px;
    padding: 20px 7px 12px 7px;
  }
}

/* ==========================================================================
   GENERAL: ANIMATIONS & EFFECTS
   ========================================================================== */
a, button, .cta-btn {
  transition: color 0.17s, background 0.23s, border 0.15s, box-shadow 0.15s, transform 0.18s;
}
.card, .feature-item, .team-member, .testimonial-card, .course-item, .article-preview, .blog-post {
  transition: box-shadow 0.22s, border 0.15s, transform 0.18s;
}
.card:hover, .feature-item:hover, .team-member:hover, .testimonial-card:hover, .course-item:hover, .article-preview:hover, .blog-post:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow);
  border-color: var(--secondary);
}
.cta-btn:active, .feature-item:active, .course-item:active, .article-preview:active {
  transform: scale(0.98);
}

/* Shadows for primary cards */
.card, .feature-item, .testimonial-card {
  box-shadow: var(--shadow-small);
}

/* ================== RESPONSIVE ===================== */
@media (max-width: 700px) {
  .container { padding: 0 8px; }
  .footer-info { flex-direction: column; gap: 23px; align-items: flex-start; }
  .team-list, .feature-grid, .course-list, .article-list, .latest-posts, .testimonial-row, .usp-grid { flex-direction: column; gap:18px; }
  .section, .features-section, .about-preview-section, .testimonial-preview-section, .cta-section { padding: 30px 0; }
  .contact-info { gap: 12px; }
}

/* ================== FORMATTING HELPERS ===================== */
.bullet-list {
  padding-left: 20px;
  color: var(--accent);
}
.bullet-list li {
  padding-bottom: 6px;
  font-size: 1rem;
}

ul, ol {
  padding-left: 17px;
  margin-bottom: 13px;
}

::-webkit-scrollbar { width: 9px; background: #232933; }
::-webkit-scrollbar-thumb { background: #48494D; border-radius: 5px; }

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

/* ========== Z-INDEX Layering ========== */
header { z-index: 30; }
.mobile-menu { z-index: 999; }
.cookie-banner { z-index: 2000; }
.cookie-modal { z-index: 2020; }

/* ================= BRAND-FONT LOAD EXAMPLES (only for local development) ================ */
@font-face {
  font-family: 'Montserrat';
  src: local('Montserrat'), url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&display=swap');
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: local('Roboto'), url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');
  font-display: swap;
}

/* END OF STYLE */
