/* --- 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;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  height: 100%;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  min-height: 100vh;
  background: #f1f6f9;
  color: #17223b;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.7;
  font-size: 1rem;
  overflow-x: hidden;
  position: relative;
}
ul, ol {
  margin-left: 1.1em; 
  margin-bottom: 1em;
}
ul ul, ol ol, ul ol, ol ul {
  margin-bottom: 0;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: #0c7b93;
  font-weight: 600;
  transition: color 0.2s;
}
a:hover,
a:focus {
  color: #17223b;
  outline: none;
}
strong { font-weight: 700; }

/* --- BRAND FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Roboto:wght@400;700&display=swap');

body {
  font-family: 'Roboto', Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6, .cta-btn, nav, .mobile-nav {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #17223b;
}
h1, h2, h3 {
  margin-bottom: .7em;
  line-height: 1.08;
}
h1 {
  font-size: 2.5rem;
  font-weight: 900;
}
h2 {
  font-size: 2rem;
  font-weight: 800;
}
h3 {
  font-size: 1.25rem;
  font-weight: 800;
}
h4, h5, h6 {
  font-size: 1rem;
  font-weight: 700;
}
p, li {
  font-size: 1.125rem;
  margin-bottom: .6em;
  color: #25324b;
}
blockquote {
  font-size: 1.2rem;
  font-style: italic;
  position: relative;
  color: #17223b;
  padding-left: 18px;
  border-left: 4px solid #0c7b93;
  margin-bottom: 10px;
}

/* --- LAYOUT CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  /* vertical rhythm for sections */
  margin-bottom: 0;
}

section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(23,34,59,0.07), 0 0.5px 2px rgba(12,123,147,0.05);
  position: relative;
}
@media (max-width: 900px) {
  section {
    padding: 32px 10px;
    margin-bottom: 36px;
    border-radius: 14px;
  }
}

/* --- HEADER/NAVBAR --- */
header {
  width: 100%;
  background: #17223b;
  color: #fff;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  box-shadow: 0 2px 12px rgba(12,123,147,0.08);
  position: relative;
  z-index: 10;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 62px;
}
header a img {
  height: 45px;
  margin-right: 5px;
}
nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  font-size: 1.04rem;
  font-weight: 700;
  color: #f1f6f9;
  padding: 6px 12px;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
nav a:hover, nav a:focus {
  background: #0c7b93;
  color: #fff;
}
.cta-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.13rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  padding: 13px 28px;
  border-radius: 24px;
  border: none;
  background: #0c7b93;
  color: #fff;
  box-shadow: 0 2px 16px rgba(12,123,147,0.09);
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.15s, transform 0.18s;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: #17223b;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 24px rgba(12,123,147,0.13);
}

/* --- MOBILE BURGER MENU --- */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.1rem;
  padding: 0 12px;
  margin-left: 8px;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.17s, color 0.15s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #0c7b93;
  color: #fff;
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #17223b;
  color: #fff;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.64,.05,.1,.89);
  padding: 0 0 0 0;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  padding: 12px 20px;
  align-self: flex-end;
  margin-top: 12px;
  margin-right: 6px;
  cursor: pointer;
  transition: background 0.17s, color 0.11s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: #0c7b93;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  margin-top: 20px;
  margin-left: 26px;
  /* Ensure large enough targets */
}
.mobile-nav a {
  color: #fff; /* high contrast for accessibility */
  font-size: 1.3rem;
  padding: 15px 0 15px 5px;
  border-radius: 10px;
  font-weight: 800;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #0c7b93;
  outline: none;
}
@media (max-width: 1090px) {
  header nav,
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1091px) {
  .mobile-menu {
    display: none !important;
  }
}

/* --- SECTION/FLEX LAYOUTS --- */
.features-grid,
.courses-overview,
.courses-listing,
.team-bios,
.blog-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  align-items: stretch;
}
.features-grid > div,
.courses-overview > div,
.courses-listing > div,
.team-bios > div,
.blog-preview > article {
  background: #f1f6f9;
  border-radius: 16px;
  padding: 28px 24px 22px 24px;
  box-shadow: 0 4px 24px rgba(23,34,59,0.05);
  flex: 1 1 280px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 2px solid transparent;
  transition: border 0.2s, box-shadow 0.2s, transform 0.18s;
}
.features-grid > div:hover,
.courses-overview > div:hover,
.courses-listing > div:hover,
.team-bios > div:hover,
.blog-preview > article:hover {
  border: 2px solid #0c7b93;
  background: #e9f3f7;
  box-shadow: 0 8px 36px rgba(12,123,147,0.13);
  transform: translateY(-4px) scale(1.02);
}

@media (max-width: 768px) {
  .features-grid,
  .courses-overview,
  .courses-listing,
  .team-bios,
  .blog-preview {
    flex-direction: column;
    gap: 18px;
  }
}

/* --- CARD CONTAINER --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(23,34,59,0.06);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px 24px 24px;
  display: flex;
  flex-direction: column;
}

/* --- TESTIMONIAL CARDS --- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px 20px 24px;
  margin-bottom: 28px;
  background: #fafcff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(23,34,59,0.08);
  border-left: 5px solid #0c7b93;
  max-width: 580px;
  color: #17223b;
}
.testimonial-card:last-child {
  margin-bottom: 0;
}
.testimonial-card span {
  font-size: 1rem;
  color: #0c7b93;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* --- FLEX CONTENT GRIDS --- */
.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;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f1f6f9;
  border-radius: 14px;
  padding: 22px 22px 16px 18px;
}

@media (max-width: 900px) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* --- FILTERS / BLOG TAGS --- */
.filter-list {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.filter-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  margin-bottom: 0;
}
.filter-list li {
  background: #0c7b93;
  border-radius: 8px;
  color: #fff;
  padding: 5px 16px;
  font-size: 0.97rem;
  font-weight: 700;
}
.tags {
  display: inline-block;
  background: #0c7b93;
  color: #fff;
  border-radius: 8px;
  padding: 2px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 8px;
}

/* --- FAQ ACCORDION UX --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: #f1f6f9;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(23,34,59,0.07);
  margin-bottom: 0;
}
.faq-accordion h3 {
  font-size: 1.12rem;
  font-weight: 800;
  color: #17223b;
  margin-bottom: 0.35em;
}
.faq-accordion p { margin-bottom: 0; }

/* --- USP HIGHLIGHTS --- */
.usp-highlights {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 12px;
}
.usp-highlights p {
  display: flex;
  align-items: center;
  font-size: 1.11rem;
  gap: 10px;
  font-weight: 700;
  color: #0c7b93;
}
.usp-highlights img {
  width: 28px; height: 28px;
}

.newsletter-cta {
  background: #e9f3f7;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin: 16px 0 0 0;
}

.contact-cta {
  background: #e9f3f7;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin: 28px 0 0 0;
}

/* --- MAP PLACEHOLDER (KONTAKT) --- */
.map-placeholder {
  background: #e9f3f7;
  border-radius: 16px;
  padding: 26px 12px;
  margin-top: 20px;
  text-align: center;
  color: #0c7b93;
  font-size: 1.07rem;
  font-weight: 700;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* --- FOOTER --- */
footer {
  background: #17223b;
  color: #fff;
  padding: 46px 0 32px 0;
  border-top: 4px solid #0c7b93;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
footer a {
  color: #0c7b93;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  transition: color 0.14s;
}
footer nav {
  display: flex;
  gap: 20px;
}
footer nav a { color: #0c7b93; }
footer nav a:hover, footer nav a:focus {
  color: #fff;
  background: #0c7b93;
  border-radius: 8px;
  padding: 3px 7px;
}
footer img {
  max-width: 52px;
  margin-bottom: 13px;
}
footer p, footer a {
  color: #fff;
}
footer p {
  font-size: 0.99rem;
  margin-bottom: 0.3em;
}
footer .container > div {
  min-width: 220px;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  footer nav {
    gap: 10px;
  }
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #17223b;
  color: #fff;
  box-shadow: 0 -2px 14px rgba(23,34,59,0.14);
  z-index: 4005;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  opacity: 1;
  transition: bottom 0.35s cubic-bezier(.41,.53,.68,1), opacity 0.23s;
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  bottom: -200px;
}
.cookie-banner p {
  color: #fff;
  font-size: 1.06rem;
  text-align: center;
  margin-bottom: 0.3em;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 10px;
}
.cookie-banner button, .cookie-banner .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.11rem;
  border-radius: 13px;
  border: none;
  padding: 11px 24px;
  margin: 0;
  cursor: pointer;
  background: #0c7b93;
  color: #fff;
  transition: background 0.16s, color 0.14s, transform 0.17s;
}
.cookie-banner button:focus, .cookie-banner button:hover, .cookie-banner .btn:focus, .cookie-banner .btn:hover {
  background: #fff;
  color: #17223b;
  outline: none;
  transform: translateY(-2px) scale(1.03);
}
.cookie-banner .btn-secondary {
  background: #e9f3f7;
  color: #0c7b93;
  border: 2px solid #0c7b93;
}
.cookie-banner .btn-secondary:hover, .cookie-banner .btn-secondary:focus {
  background: #0c7b93;
  color: #fff;
}

/* --- COOKIE MODAL --- */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(23,34,59,0.82);
  z-index: 4100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #17223b;
  border-radius: 20px;
  box-shadow: 0 2px 28px rgba(12,123,147,0.17);
  padding: 38px 32px 32px 32px;
  min-width: 330px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: 95vw;
}
.cookie-modal h3 {
  color: #17223b;
  font-size: 1.25rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.cookie-modal ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.11rem;
  font-weight: 800;
  color: #0c7b93;
  margin-bottom: 9px;
}
.cookie-modal .toggle-switch {
  width: 42px;
  height: 24px;
  background: #e9f3f7;
  border-radius: 13px;
  position: relative;
  margin-left: 12px;
  flex-shrink: 0;
  border: 2px solid #0c7b93;
  transition: background 0.16s;
}
.cookie-modal .toggle-switch input[type="checkbox"] {
  opacity: 0;
  width: 42px;
  height: 24px;
  position: absolute;
  left: 0; top: 0;
  cursor: pointer;
}
.cookie-modal .toggle-switch .slider {
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #0c7b93;
  transition: left 0.18s, background 0.18s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  left: 20px;
  background: #0c7b93;
}
.cookie-modal .cookie-foot {
  width: 100%;
  margin-top: 18px;
  display: flex;
  gap: 19px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cookie-modal .btn {
  font-weight: 800;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
}
.cookie-modal .btn-secondary {
  background: #e9f3f7;
  color: #0c7b93;
  border: 2px solid #0c7b93;
}
.cookie-modal .btn-secondary:hover, .cookie-modal .btn-secondary:focus {
  background: #0c7b93;
  color: #fff;
}

/* --- BUTTONS --- */
button, .btn {
  font-family: 'Montserrat', Arial, sans-serif;
  cursor: pointer;
  border-radius: 13px;
  border: none;
  font-size: 1.07rem;
  padding: 11px 22px;
  background: #0c7b93;
  color: #fff;
  font-weight: 900;
  transition: background 0.18s, color 0.14s, box-shadow 0.13s, transform 0.14s;
  outline: none;
}
button:hover, button:focus, .btn:hover, .btn:focus {
  background: #17223b;
  color: #fff;
  box-shadow: 0 4px 20px rgba(12,123,147,0.10);
  transform: translateY(-2px) scale(1.03);
}
/* Secondary button style (for settings/cancel) */
.btn-secondary {
  background: #f1f6f9;
  color: #0c7b93;
  border: 2px solid #0c7b93;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #0c7b93;
  color: #fff;
}

/* --- LISTS & TEXT SECTIONS --- */
.text-section {
  margin-top: 5px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul, .text-section ol {
  margin-left: 18px;
  margin-bottom: 0.6em;
  color: #0c7b93;
  font-size: 1.065rem;
  font-weight: 700;
}
.text-section li {
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.text-section img {
  width: 22px;
  height: 22px;
}

/* --- OL/ULs for timeline/history etc. --- */
ol {
  list-style: decimal inside;
}
ul {
  list-style: disc inside;
}

/* --- MEDIA QUERIES / RESPONSIVENESS --- */
@media (max-width: 768px) {
  html { font-size: 15px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.32rem; }
  h3 { font-size: 1.12rem; }

  .container { padding-left: 7px; padding-right: 7px; }
  section { padding: 24px 6px; margin-bottom: 24px; border-radius: 8px; }
  footer { padding: 26px 0 18px 0; }
  .testimonial-card, .features-grid > div, .courses-overview > div, .courses-listing > div, .team-bios > div, .blog-preview > article {
    padding: 17px 11px 15px 14px;
    border-radius: 8px;
  }
  .testimonial-card {
    max-width: 100%;
  }
  .cookie-modal { min-width: unset; padding: 22px 6px 18px 8px; border-radius: 12px; }
}

@media (max-width: 410px) {
  html { font-size: 14px; }
  .cookie-banner { padding: 12px 4px 10px 4px; border-top-left-radius: 8px; border-top-right-radius: 8px; }
}

/* --- MICRO-ANIMATIONS --- */
.cta-btn, button, .btn {
  transition: background 0.2s, box-shadow 0.16s, transform 0.16s, color 0.2s;
}
.features-grid > div, .courses-overview > div, .courses-listing > div, .team-bios > div, .blog-preview > article {
  transition: border 0.24s, box-shadow 0.2s, transform 0.16s;
}
.testimonial-card {
  transition: box-shadow 0.17s, border 0.17s, transform 0.15s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px rgba(12,123,147,0.15);
  border-left: 5px solid #17223b;
  transform: translateY(-2px) scale(1.015);
}

/* --- MISC STYLES & UTILS --- */
::-webkit-scrollbar {
  width: 10px; background: #e9f3f7;
}
::-webkit-scrollbar-thumb {
  background: #0c7b93; border-radius: 8px;
}
::-webkit-input-placeholder { color: #b7bcc6; }
input, textarea, select {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1.06rem;
  border-radius: 8px;
  border: 1.7px solid #e9f3f7;
  padding: 12px;
  transition: border 0.13s;
}
input:focus, textarea:focus, select:focus {
  border: 1.7px solid #0c7b93;
  outline: none;
}

/* --- THANK YOU PAGE LIST --- */
.thank-wrapper ul {
  margin-bottom: 1.28em;
}

/* --- Z-INDEX / STACKING CONTEXTS --- */
header { z-index: 10; }
main { z-index: 1; }
footer { z-index: 5; }
.cookie-banner, .cookie-modal-overlay { z-index: 4000; }
.mobile-menu { z-index: 2000; }

/* --- VISUAL ACCENT GEOMETRY (OPTIONAL, for backgrounds/decor) --- */
/* Example of geometric accent (optional, can be added via before/after if desired) */
/*
section::before {
  content: '';
  display: block;
  position: absolute;
  top: -20px; left: -36px;
  width: 72px; height: 72px;
  background: #0c7b93;
  opacity: 0.07;
  border-radius: 19px 34px 15px 18px;
  z-index: 0;
}
*/

/* --- PRINT FRIENDLY --- */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle, .cookie-modal-overlay { display: none !important; }
  section, main { box-shadow: none !important; background: #fff !important; }
}
