/* 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;
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1.6;
  background: #F6F8FB;
  color: #222; /* Elegant darker text for contrast */
  font-family: 'Georgia', 'Times New Roman', Times, serif;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #134c8a; /* slightly lighter than brand primary for better legibility */
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #12457B;
  text-decoration: underline;
}

/* Typography Scale */
h1, .h1 {
  font-family: 'Georgia', 'Montserrat', serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  color: #12457B;
  letter-spacing: 1px;
}
h2, .h2 {
  font-family: 'Georgia', 'Montserrat', serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #12457B;
}
h3, .h3 {
  font-family: 'Georgia', 'Montserrat', serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin-bottom: 10px;
  color: #222;
}
h4, .h4 {
  font-size: 1.1rem;
}

p, ul, ol, address {
  font-family: 'Georgia', 'Roboto', serif;
  font-size: 1rem;
  margin-bottom: 20px;
  color: #333;
}
ul, ol {
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}
strong, b {
  font-weight: 700;
}

/* Button & CTA */
.cta-button,
button,
input[type='submit'],
.mobile-menu-toggle,
.mobile-menu-close {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  border: none;
  padding: 12px 32px;
  border-radius: 6px;
  background: #12457B;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(18,72,124,0.07);
  margin: 8px 0;
  transition: background 0.25s, transform 0.1s;
}
.cta-button.primary:hover, .cta-button.primary:focus,
button:hover, button:focus,
input[type='submit']:hover, input[type='submit']:focus {
  background: #0d3461;
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 3px 16px rgba(18,72,124,0.11);
}
.cta-button.secondary {
  background: #6EC1E4;
  color: #fff;
}
.cta-button.secondary:hover, .cta-button.secondary:focus {
  background: #349fce;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 24px 0 rgba(18,69,123,0.045);
}

/* Hero Section */
.hero {
  margin-bottom: 60px;
  padding: 60px 0 48px 0;
  background: linear-gradient(90deg, #F6F8FB 70%, #e3edf6 100%);
  border-bottom: 2px solid #e0e6ee;
}
.hero .container {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  text-align: center;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
}

/* Features Section */
.features {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #F6F8FB;
}
.features .container {
  display: flex;
  flex-direction: column;
}
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
  justify-content: space-between;
  margin-top: 32px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex-basis: 230px;
  background: #fff;
  border-radius: 12px;
  padding: 24px 18px;
  box-shadow: 0 2px 12px 0 rgba(18,69,123,0.03);
  margin-bottom: 20px;
  min-width: 0;
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item img {
  height: 40px;
  width: 40px;
  margin-bottom: 2px;
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 4px 24px 0 rgba(18,69,123,0.10);
  transform: translateY(-2px) scale(1.02);
}

/* Card Layouts */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px 0 rgba(18,69,123,0.041);
  padding: 24px;
}

/* Testimonials */
.testimonials {
  margin-bottom: 60px;
  padding: 40px 0;
  background: #e9eff4;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 28px 20px 28px;
  background: #fff;
  border-left: 5px solid #12457B;
  border-radius: 10px 18px 18px 10px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px 0 rgba(18,69,123,0.05);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.testimonial-card:hover, .testimonial-card:focus {
  box-shadow: 0 4px 32px 0 rgba(18,69,123,0.10);
  border-left: 5px solid #6EC1E4;
}
.testimonial-card p {
  color: #222;
  font-size: 1.15rem;
  font-style: italic;
  margin-bottom: 0;
  line-height: 1.7;
}
.testimonial-card .author {
  font-family: 'Georgia', serif;
  font-size: 1rem;
  color: #6EC1E4;
  font-weight: 700;
}

/* .card-content helper for vert centering cards */
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* Blog card grid */
.blog-card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 28px 0 18px 0;
  justify-content: space-between;
}
.blog-card {
  background: #fff;
  padding: 28px 22px 24px 22px;
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(18,69,123,0.045);
  margin-bottom: 20px;
  flex: 1 1 320px;
  min-width: 240px;
  transition: box-shadow 0.2s, transform 0.18s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.blog-card:hover, .blog-card:focus {
  box-shadow: 0 4px 28px 0 rgba(18,69,123,0.11);
  transform: translateY(-2px) scale(1.02);
}
.blog-category {
  color: #12457B;
  font-size: 0.97rem;
  font-style: italic;
}
.blog-more {
  font-family: 'Montserrat', serif;
  color: #6EC1E4;
  font-weight: 600;
  margin-top: 8px;
  transition: color 0.15s;
}
.blog-more:hover { color: #12457B; }

.categories {
  margin-top: 18px;
  font-family: 'Georgia', serif;
  color: #888;
  font-size: 0.97rem;
}
.categories ul {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.categories li {
  background: #e9eff4;
  border-radius: 6px;
  padding: 4px 14px;
}

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-bottom: 26px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 7px rgba(18,69,123,0.06);
}
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 16px 20px;
  font-size: 1.08rem;
  border-bottom: 1px solid #e4eaf2;
}
.pricing-table th {
  background: #12457B;
  color: #fff;
  font-family: 'Georgia', serif;
  letter-spacing: 0.2px;
}
.pricing-table tr:last-child td {
  border-bottom: none;
}

.preisvorteile, .mission-statement {
  background: #f3f7fa;
  border-radius: 12px;
  padding: 22px 20px 10px 24px;
  margin-top: 24px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(18,69,123,0.05);
}

/* Services (Leistungen) Overview */
.services-overview {
  margin-bottom: 60px;
  padding: 36px 0;
}
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 28px;
  justify-content: space-between;
}
.service-card {
  background: #fff;
  border-radius: 13px;
  flex: 1 1 240px;
  min-width: 210px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px rgba(18,69,123,0.035);
  padding: 22px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.15s, transform 0.13s;
}
.service-card img {
  width: 40px; height: 40px; margin-bottom: 2px;
}
.service-card h3 {
  color: #12457B;
}
.service-card b {
  color: #6EC1E4;
}
.service-card:hover, .service-card:focus {
  box-shadow: 0 4px 20px #6EC1E440;
  transform: translateY(-2px) scale(1.02);
}

/* Kursplan Schedule Table */
.kurs-schedule-table table {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  margin: 22px 0 24px 0;
  box-shadow: 0 1px 10px rgba(18,69,123,0.06);
}
.kurs-schedule-table th, .kurs-schedule-table td {
  text-align: left;
  padding: 14px 16px;
  font-size: 1.09rem;
  border-bottom: 1px solid #e4eaf2;
}
.kurs-schedule-table th {
  background: #12457B;
  color: #fff;
  font-family: 'Georgia', serif;
}
.kurs-schedule-table tr:last-child td {
  border-bottom: none;
}

/* Legal Pages Styling */
.legal {
  margin-bottom: 60px;
  padding: 42px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(18,69,123,0.03);
}
.legal h1, .legal h2 { margin-top: 18px; }

/* Content Grid, Text-Image Section Patterns (Flexbox) */
.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;
}

/* Footer */
footer {
  background: #12457B;
  color: #fff;
  padding: 0;
  margin-top: 60px;
}
footer .container {
  padding: 0 20px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 0 16px 0;
}
.footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}
.footer-main-nav, .footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-main-nav a, .footer-nav a {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #fff;
  font-size: 1rem;
  opacity: 0.92;
  padding: 0;
  transition: color 0.2s;
}
.footer-main-nav a:hover, .footer-nav a:hover {
  color: #6EC1E4;
}
.footer-contact address, .footer-contact a {
  font-size: 1rem;
  color: #e3edf6;
  margin-bottom: 6px;
}
.footer-social {
  display: flex; gap: 18px; margin-top: 12px;
}
.footer-social a img {
  width: 28px; height: 28px; opacity: 0.88; transition: opacity 0.15s;
}
.footer-social a:hover img { opacity: 1; }


/* Responsive Patterns */
@media (max-width: 1020px) {
  .features-grid, .services-grid, .card-container, .blog-card-grid, .content-grid,
  .footer .content-wrapper {
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
  }
  .feature-item, .service-card, .blog-card { flex:1 1 45%; min-width: 220px; }
}
@media (max-width: 900px){
  .footer .content-wrapper {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
  .services-grid, .features-grid, .blog-card-grid {
    flex-direction: column;
    gap: 20px;
  }
}
@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size:1.4rem; }
  .section, .hero, .features, .testimonials, .about, .legal, .services-overview, .pricing {
    padding: 30px 6px;
    margin-bottom: 38px;
  }
  .content-wrapper, .footer .content-wrapper { padding: 0; }
  .features-grid, .services-grid, .blog-card-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .feature-item, .service-card, .blog-card {
    flex-basis: 95%;
    min-width: 0;
    max-width: 100%;
  }
  .footer-main-nav, .footer-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}
@media (max-width: 600px) {
  .container { padding: 0 6px; }
  .hero {
    padding: 36px 0 20px 0;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 14px;
    padding: 20px 0 8px 0;
  }
}
@media (max-width: 540px) {
  h1, .h1 { font-size: 1.35rem; }
  h2, .h2 { font-size:1.08rem; }
  .testimonial-card, .service-card, .feature-item {
    padding: 16px 8px 14px 12px;
    font-size: 0.97rem;
  }
  .container { padding: 0 2px; }
}

/* HEADER, NAVIGATION & MOBILE MENU */
header {
  background: #fff;
  border-bottom: 2px solid #e0e6ee;
  box-shadow: 0 4px 14px rgba(18,69,123,0.03);
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 1100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.logo img { height: 40px; width: auto; }
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-family: 'Montserrat',serif;
  font-size: 1rem;
  color: #12457B;
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.18s, border-color 0.18s;
}
.main-nav a:hover, .main-nav a.active {
  color: #6EC1E4;
  border-bottom: 2px solid #6EC1E4;
}
.cta-button.primary {
  margin-left: 20px;
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: #12457B;
  color: #fff;
  padding: 10px 16px;
  border-radius: 7px;
  font-size: 1.7rem;
  margin-left: auto;
  z-index: 1301;
}

@media (max-width: 900px) {
  .main-nav, .cta-button.primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%;
  height: 100vh;
  z-index: 1800;
  background: rgba(18,69,123,0.98);
  transform: translateX(100%);
  transition: transform 0.33s cubic-bezier(.78,.1,.16,.83);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 0 0 0;
  overflow-y: auto;
  box-shadow: 0 2px 44px 0 rgba(18,69,123,0.13);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 300;
  border: none;
  padding: 18px 32px 0 0;
  cursor: pointer;
  z-index: 1900;
  margin: 0 6px 0 0;
  align-self: flex-end;
  transition: color 0.14s;
}
.mobile-menu-close:hover { color: #6EC1E4; }
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin: 48px 0 0 36px;
  width: 80vw;
  max-width: 350px;
}
.mobile-nav a {
  font-family: 'Montserrat', serif;
  font-size: 1.18rem;
  color: #fff;
  padding: 6px 0;
  border-left: 3px solid transparent;
  transition: color 0.17s, border-color 0.17s;
}
.mobile-nav a:hover, .mobile-nav a.active {
  color: #6EC1E4;
  border-left: 3px solid #6EC1E4;
}
@media (min-width: 900px) {
  .mobile-menu, .mobile-menu-close, .mobile-menu-toggle { display:none !important; }
}

/* Cookie Consent Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff;
  color: #222;
  border-top: 1px solid #e0e6ee;
  box-shadow: 0 -2px 18px rgba(18,69,123, 0.06);
  z-index: 3000;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 24px 40px;
  font-family: 'Georgia', serif;
  font-size: 1.09rem;
  animation: banner-slidein .5s cubic-bezier(.62,.05,.17,.98);
}
@keyframes banner-slidein { from { transform:translateY(100%);} to {transform:translateY(0);} }
.cookie-banner p { margin-bottom: 0; }
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
  margin-left: auto;
}
.cookie-banner button {
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  box-shadow: none;
  margin: 0 0 0 0;
  border: none;
  outline: none;
  transition: background 0.16s, color 0.14s;
}
.cookie-banner .accept {
  background: #12457B;
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #0f315a;
}
.cookie-banner .deny {
  background: #fff;
  color: #12457B;
  border: 1px solid #12457B;
}
.cookie-banner .deny:hover, .cookie-banner .deny:focus {
  background: #e9eff4;
}
.cookie-banner .settings {
  background: #6EC1E4;
  color: #fff;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #349fce;
}

@media (max-width: 700px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 18px; padding:18px 8px; font-size:1rem; }
  .cookie-banner .cookie-buttons { margin-left: 0; }
}

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(27,39,65,0.84);
  z-index: 4200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fadein .28s cubic-bezier(.60,.14,.21,.97);
}
@keyframes modal-fadein { from { opacity:0;} to {opacity:1;} }
.cookie-modal-inner {
  background: #fff;
  color: #222;
  max-width: 400px;
  width: 93vw;
  border-radius: 18px;
  box-shadow: 0 8px 44px rgba(18,69,123, 0.10);
  padding: 38px 22px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'Georgia', serif;
  font-size: 1.1rem;
  position: relative;
}
.cookie-modal-inner h2 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  font-family: 'Montserrat',serif;
}
.cookie-modal-inner .close-modal {
  position: absolute;
  top: 18px;
  right: 22px;
  background: none;
  color: #12457B;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
}
.cookie-category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 12px 0 18px 0;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.06rem;
}
.cookie-category label {
  font-weight: 500;
}
.cookie-category input[type=checkbox] {
  accent-color: #12457B;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  margin: 0 2px;
}
.cookie-category .essential {
  color: #6EC1E4;
  font-weight: 600;
  font-style: italic;
}
.cookie-modal-inner .modal-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  justify-content: flex-end;
}
.cookie-modal-inner button {
  padding: 8px 20px;
  border-radius: 7px;
  font-weight: 600;
  font-family: 'Montserrat', 'Georgia', serif;
  border: none;
  transition: background 0.18s;
}
.cookie-modal-inner .save {
  background: #12457B; color: #fff;
}
.cookie-modal-inner .save:hover { background: #0f315a; }
.cookie-modal-inner .cancel {
  background: #e9eff4; color: #12457B;
}
.cookie-modal-inner .cancel:hover { background: #349fce; color: #fff; }

/* Standalone Thank You Confirmation Section */
.thank-you-confirmation {
  margin: 80px auto 60px auto;
  padding: 48px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 18px 0 rgba(18,69,123,0.10);
  max-width: 540px;
  text-align: center;
}
.thank-you-confirmation h1 { color: #12457B; }

/* General Utility Spacing */
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-32 { margin-top: 32px; }
.pt-16 { padding-top: 16px; }

/* Misc */
::-webkit-scrollbar {
  width: 8px; background: #e9eff4; border-radius: 8px;
}
::-webkit-scrollbar-thumb {
  background: #c4cfe0; border-radius: 4px;
}

/* Accessibility: Focus Styles */
:focus {
  outline: 2px solid #6EC1E4;
  outline-offset: 2px;
}

/* Hide visually but keep accessible */
.sr-only {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
}
