/* --- CSS Reset and 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 {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  background: #F4F7FA;
  color: #232B33;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #254B76;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight:600; }
h4, h5, h6 { font-size: 1rem; font-weight: 500; margin-bottom: 8px; }
p, ul, ol, li { font-family: 'Roboto', Arial, sans-serif; font-size: 1rem; color: #232B33; }
ul, ol { margin-left: 20px; margin-bottom: 18px; }
strong { font-weight: 600; }
a { color: #254B76; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #163052; text-decoration: underline; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* --- Layout Containers --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- Hero --- */
.hero-section {
  background: #254B76;
  color: #fff;
  padding: 60px 0 40px 0;
}
.hero-section h1, .hero-section h2,
.hero-section .hero-subheadline {
  color: #fff;
}
.hero-section .btn-primary {
  margin-top: 18px;
  align-self: flex-start;
}
.hero-subheadline {
  font-size: 1.2rem;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  margin-bottom: 16px;
  color: #dde6f4;
}

/* --- Buttons --- */
.btn-primary {
  background: #254B76;
  color: #fff;
  padding: 12px 32px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 12px rgba(37,75,118,0.10);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  border: none;
  display: inline-block;
  margin-top: 8px;
}
.btn-primary:hover, .btn-primary:focus {
  background: #163052;
  color: #F7B32B;
  box-shadow: 0 4px 16px rgba(87,110,140,0.18);
  transform: translateY(-1px) scale(1.02);
}
.btn-secondary {
  background: #F7B32B;
  color: #254B76;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  border: none;
  transition: background 0.2s, color 0.2s;
  margin-right: 10px;
  margin-top: 8px;
}
.btn-secondary:hover, .btn-secondary:focus {
  background: #FFD674;
  color: #163052;
}
.btn-tertiary {
  background: transparent;
  color: #254B76;
  border: 1.5px solid #254B76;
  padding: 11px 26px;
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight:500;
  transition: all 0.2s;
  margin-top: 8px;
}
.btn-tertiary:hover, .btn-tertiary:focus {
  background: #254B76;
  color: #fff;
}

/* --- Navigation --- */
header {
  background: #fff;
  width: 100%;
  box-shadow: 0 2px 12px rgba(30,40,60,0.08);
  position: relative;
}
header .container {
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: space-between;
  height: 80px;
  gap: 8px;
}
header img {
  max-height: 50px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 32px;
}
.desktop-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #254B76;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s;
  padding: 4px 2px;
  border-radius: 3px;
}
.desktop-nav a:hover, .desktop-nav a:focus {
  background: #F4F7FA;
  color: #163052;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #254B76;
  margin-left: 18px;
  min-width: 44px; min-height: 44px;
  line-height: 1;
  z-index: 1100;
  border-radius: 6px;
  transition: background 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #e9ecf2;
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  width: 86vw;
  max-width: 340px;
  background: #fff;
  box-shadow: -6px 0 18px rgba(0,0,0,0.12);
  z-index: 2000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  display: flex;
  flex-direction: column;
  padding: 30px 28px 24px 28px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  color: #254B76;
  background: none;
  border: none;
  min-width: 44px;
  min-height: 44px;
  border-radius: 6px;
  margin-bottom: 18px;
  transition: background 0.2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #e9ecf2;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top:8px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #254B76;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 12px 0 6px 2px;
  border-radius: 4px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #F4F7FA;
  color: #163052;
}

/* Overlay to gray out the page when menu is open */
body.menu-open::after {
  content: '';
  position: fixed;
  z-index: 1990;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(37,75,118,0.18);
  pointer-events: all;
}

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .mobile-menu-toggle { display: block; }
}
@media (min-width: 1021px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle {display: none !important;}
}

/* --- Section Patterns --- */
.features-section, .services-section, .about-intro-section, .about-history-section, .team-section, .contact-section, .footer-section {
  background: #fff;
  border-radius: 18px;
  margin-bottom: 46px;
  box-shadow: 0 4px 16px rgba(30,60,90,0.05);
}
.features-section {
  padding-top: 40px;
  padding-bottom: 16px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-item {
  background: #F4F7FA;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(37,75,118,0.045);
  padding: 28px 22px 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 260px;
  max-width: 340px;
  transition: box-shadow 0.2s, transform 0.15s;
  margin-bottom: 20px;
  position: relative;
}
.feature-item img { height: 48px; margin-bottom: 4px; }
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 6px 22px rgba(37,75,118,0.125);
  transform: translateY(-2px) scale(1.019);
}

.services-section .course-list, .about-history-section .team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.course-item, .team-member {
  background: #F4F7FA;
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(37,75,118,0.045);
  padding: 24px 18px 18px 18px;
  flex: 1 1 270px;
  min-width: 240px;
  max-width: 350px;
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.team-member {
  min-width: 210px;
}

.text-section {
  font-size: 1.06rem;
  color: #232B33;
}

.section ul {
  margin-bottom: 0;
  margin-top: 8px;
  padding-left: 1.2em;
}

.section ol {
  margin-bottom: 0;
  margin-top: 8px;
  padding-left: 1.3em;
}

/* --- Testimonials --- */
.testimonials-section {
  background: #F4F7FA;
  border-radius: 18px;
  margin-bottom: 60px;
  box-shadow: 0 4px 14px rgba(37,75,118,0.055);
  color: #232B33;
}
.testimonials-section h2 {
  color: #254B76;
}
.testimonials-section .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 10px;
}
.testimonial-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(37,75,118,0.09);
  padding: 20px 30px;
  min-width: 260px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  transition: box-shadow 0.2s, transform 0.14s;
  color: #232B33;
}
.testimonial-card p {
  font-size: 1.1rem;
  color: #232B33;
  font-style: italic;
}
.testimonial-card span {
  font-size: 0.96rem;
  color: #254B76;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 6px 20px rgba(37,75,118,0.16);
  transform: translateY(-2px) scale(1.014);
}

/* --- CTA --- */
.cta-section {
  background: #254B76;
  padding: 48px 0 44px 0;
  border-radius: 18px;
  text-align: center;
  margin-bottom: 60px;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,75,118,0.10);
}
.cta-section h2, .cta-section p {
  color: #fff;
}
.cta-section .btn-primary { margin-top: 18px; }
.cta-section .content-wrapper { align-items: center; }

/* --- Team Section (About) --- */
.team-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}

/* --- About/Features/Simple Lists --- */
.features-section ul, .features-section ol {
  background: #F4F7FA;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(37,75,118,0.04);
  padding: 20px 24px;
  list-style-type: disc;
  font-size: 1rem;
  color: #232B33;
  margin-top: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 12px;
}
.faq-item {
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 5px rgba(37,75,118,0.07);
  padding: 18px 18px 10px 18px;
  flex: 1 1 260px;
  min-width: 210px;
  margin-bottom: 20px;
  color: #254B76;
}
.faq-item strong {
  display: block;
  color: #232B33;
  font-weight: 600;
}

/* --- Contact, Footer, Social --- */
.contact-section .text-section a {
  color: #254B76;
  font-weight: 500;
  text-decoration: underline;
}
.footer-brand { flex: 1 0 130px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
  margin-top: 14px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #254B76;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 6px;
  transition: color 0.13s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #F7B32B;
}
.footer-contact {
  color: #232B33;
  margin-top: 6px;
}
.footer-contact strong { font-weight: 600; }
.footer-legal {
  display: flex;
  gap: 18px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: #6278a8;
  font-size: 0.99rem;
  transition: color 0.17s;
}
.footer-legal a:hover, .footer-legal a:focus {
  color: #254B76;
}
.footer-social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.footer-social img {
  width: 28px;
  height: 28px;
  filter: grayscale(25%) brightness(0.98);
  opacity: 0.89;
  transition: filter 0.17s, opacity 0.17s, transform 0.13s;
}
.footer-social a:hover img, .footer-social a:focus img {
  filter: none;
  opacity: 1;
  transform: scale(1.07);
}
footer {
  background: #fff;
  margin-top: 60px;
  border-top: 1.5px solid #EDF3F6;
  padding-top: 36px;
  padding-bottom: 20px;
  box-shadow: 0 -2px 18px rgba(37,75,118,0.04);
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

/* --- Misc Cards and Grids --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(37,75,118,0.08);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 20px 18px 20px;
}
.card-content { 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;
}

/* --- Forms (Kontakt) --- */
input[type="text"], input[type="email"], textarea {
  width: 100%;
  background: #F4F7FA;
  border: 1.5px solid #BFD3EE;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
  color: #254B76;
  font-family: 'Roboto', Arial, sans-serif;
  transition: border-color 0.2s, background 0.2s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border-color: #254B76;
  background: #EDF3FB;
  outline: none;
}
label { font-weight: 500; color: #254B76; margin-bottom: 6px; display: inline-block; }

/* --- Cookie Consent Banner & Modal --- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #fff;
  color: #232B33;
  border-top: 2.5px solid #254B76;
  box-shadow: 0 -2px 16px rgba(37,75,118,0.13);
  padding: 26px 14px 16px 14px;
  z-index: 5000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  justify-content: space-between;
  font-size: 1rem;
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
}
.cookie-banner.hide {
  transform: translateY(140%);
}
.cookie-banner .cookie-message {
  flex: 2 1 300px;
  color: #254B76;
  font-size: 1.02rem;
  font-family: 'Roboto', Arial, sans-serif;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}

.cookie-modal {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  z-index: 5500;
  background: rgba(37,75,118,0.19);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
}
.cookie-modal .modal-content {
  background: #fff;
  border-radius: 16px;
  max-width: 440px;
  width: 90vw;
  padding: 36px 26px 30px 26px;
  box-shadow: 0 10px 36px rgba(37,75,118,0.24);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  animation: fade-in 0.34s cubic-bezier(.52,0,.55,1);
}
@keyframes fade-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
.cookie-modal h2 { font-size:1.4rem;}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.cookie-modal .category-label {
  font-size: 1.07rem;
  font-family: "Montserrat", Arial, sans-serif;
  color: #254B76;
  font-weight: 500;
}
.cookie-modal .toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  display: inline-block;
}
.cookie-modal .toggle-switch input {
  opacity: 0;
  width: 0; height: 0;
  position: absolute;
}
.cookie-modal .slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #c9d4e9;
  border-radius: 24px;
  transition: background 0.22s;
}
.cookie-modal .slider:before {
  position: absolute;
  content: "";
  left: 4px;
  top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(37,75,118,0.14);
  transition: transform 0.24s;
}
.cookie-modal .toggle-switch input:checked + .slider {
  background-color: #254B76;
}
.cookie-modal .toggle-switch input:checked + .slider:before {
  transform: translateX(18px);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  background: none;
  color: #254B76;
  font-size: 1.36rem;
  border: none;
  position: absolute;
  right: 14px;
  top: 14px;
  min-width: 32px; min-height: 32px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s;
}
.cookie-modal .close-modal:hover, .cookie-modal .close-modal:focus {
  background: #e9ecf2;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .container { padding-left: 12px; padding-right: 12px; }
  .feature-grid, .team-list, .content-wrapper, .footer-nav, .footer-legal {
    gap: 16px;
    flex-wrap: wrap;
  }
  .footer-social { gap: 8px; }
}
@media (max-width: 768px) {
  .container { padding-left: 7px; padding-right: 7px; }
  .hero-section,
  .features-section,
  .about-intro-section,
  .about-history-section,
  .team-section,
  .services-section,
  .testimonials-section,
  .cta-section,
  .footer-section {
    border-radius: 0;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  .content-wrapper,
  .feature-grid,
  .card-container,
  .team-list,
  .course-list,
  .faq-list,
  .footer-nav,
  .footer-legal,
  .footer-social {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }
  .feature-item, .team-member, .course-item, .faq-item, .testimonial-card {
    max-width: 100%; min-width: 0;
  }
  .hero-section {
    padding: 32px 0 18px 0;
  }
  .section { padding: 22px 4px; margin-bottom: 38px; }
  .footer-brand { margin-bottom: 12px; }
  footer .container { gap: 18px; }
  header .container {
    flex-direction: row;
    gap: 4px;
    height: 62px;
    padding-top: 8px;
    padding-bottom: 6px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  .testimonial-card, .feature-item, .card, .course-item {
    padding: 15px 10px;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    font-size: 0.97rem;
    text-align: left;
  }
  .cookie-banner .cookie-message { font-size: 0.95rem; }
  .cookie-banner .cookie-actions { justify-content: flex-start; flex-wrap: wrap; gap: 12px; }
}

@media (max-width: 480px) {
  .hero-section { padding: 22px 0 8px 0; }
  .cta-section { padding: 22px 0 16px 0; }
  h1 { font-size: 1.3rem; }
  h2 { font-size: 1.1rem; }
  .cookie-banner {padding: 14px 4px 6px 4px;}
  .cookie-modal .modal-content { padding: 20px 6px 18px 6px; }
}

/* --- Utility (Spacing, Hide, etc) --- */
.mt-0 {margin-top: 0 !important;}
.mt-12 {margin-top: 12px !important;}
.mb-0 {margin-bottom: 0 !important;}
.hide {display: none!important;}

/* --- Accessibility and Focus --- */
a:focus, button:focus, .btn-primary:focus, .btn-secondary:focus, .btn-tertiary:focus {
  outline: 2.5px solid #F7B32B;
  outline-offset: 1px;
  z-index: 1;
}

/* --- Print Styles (optional) --- */
@media print {
  header, footer, .mobile-menu, .cta-section, .cookie-banner, .cookie-modal { display: none !important; }
  main { margin: 0; padding: 0; }
}
