/* === CSS RESET & BASE STYLES === */
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, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  box-sizing: border-box;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure,  
footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #f4f6fb;
  color: #23272A;
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, ol { list-style: inside disc; margin-bottom: 16px; }
a { color: #135CB2; text-decoration: none; transition: color .2s; }
a:focus, a:hover { color: #0d3f7c; text-decoration: underline; outline: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #135CB2;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.7rem; line-height: 1.15; }
h2 { font-size: 2rem; margin-top: 16px; }
h3 { font-size: 1.35rem; }
h4, h5, h6 { font-size: 1.1rem; font-weight: 600; }
p, li { font-size: 1.06rem; margin-bottom: 14px; color: #23272A; }
strong { font-weight: 700; color: #135CB2; }
.container {
  max-width: 1130px;
  margin: 0 auto;
  padding: 0 18px;
  width: 100%;
}
hr { border: none; border-top: 1.5px solid #e3eaf5; margin: 28px 0; }
img { max-width: 100%; height: auto; display: block; }

/* === HEADER & NAVIGATION === */
header {
  background: linear-gradient(90deg, #135CB2 0%, #2c7ce6 100%);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(35, 39, 42, 0.05);
  z-index: 12;
  position: relative;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 22px;
  padding: 0 18px;
}
header img {
  height: 62px;
  margin-right: 16px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.07));
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}
nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  padding: 8px 0;
  position: relative;
  transition: color .18s;
}
nav a:hover, nav a:focus {
  color: #fee07d;
  text-shadow: 0 2px 8px rgba(35,39,42,0.07);
}
.cta.primary {
  background: linear-gradient(90deg, #fee07d 0%, #ffa93e 100%);
  color: #135CB2;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 700;
  font-size: 1.04rem;
  padding: 11px 26px;
  border-radius: 26px;
  transition: box-shadow .25s, background .18s, color .16s;
  box-shadow: 0 4px 12px 0 rgba(35,39,42,0.07);
  border: none;
  margin-left: 16px;
  outline: none;
  display: inline-block;
  cursor: pointer;
}
.cta.primary:hover, .cta.primary:focus {
  background: linear-gradient(90deg, #ffe8ad 0%, #ffbe6a 100%);
  color: #0d3f7c;
  box-shadow: 0 6px 18px 0 rgba(35,39,42,0.13);
}

/* BURGER MENU FOR MOBILE */
.mobile-menu-toggle {
  display: none;
  background: #135CB2;
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 8px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

@media (max-width: 968px) {
  header .container nav,
  header .container .cta.primary { display: none; }
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 24px;
    top: 18px;
    z-index: 15;
  }
}

/* === MOBILE MENU === */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(96deg,#135CB2 0%, #3076d1 100%);
  display: flex;
  flex-direction: column;
  z-index: 99;
  transform: translateX(-110%);
  transition: transform 0.38s cubic-bezier(.7,.3,.2,1);
  box-shadow: 0 7px 28px 0 rgba(11,21,40,0.25);
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  cursor: pointer;
  align-self: flex-end;
  margin: 18px 22px 0 0;
  transition: color .18s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: #fee07d;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
  padding: 36px 36px 0 36px;
  width: 90vw;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .01em;
  display: block;
  padding: 8px 0;
  margin-bottom: 4px;
  transition: color .18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #fea924;
}

@media (min-width: 969px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}


/* === MAIN STRUCTURE & SECTION STYLES === */
main {
  padding-top: 38px;
  padding-bottom: 36px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 2px 18px 0 rgba(19,92,178,0.06);
  position: relative;
}
section:last-child { margin-bottom: 0; }

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

/* === FEATURE GRID (Flexbox Only) === */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  width: 100%;
}
.feature-grid > div {
  background: #E3EAF5;
  border-radius: 18px;
  box-shadow: 0 1px 7px 0 rgba(19,92,178,0.07);
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 240px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: box-shadow .23s;
}
.feature-grid > div:hover {
  box-shadow: 0 6px 24px 0 rgba(19,92,178,0.15);
}
.feature-grid img {
  width: 48px; height: 48px;
  margin-bottom: 12px;
}

/* === TESTIMONIAL CARD === */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f9fafc;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(35,39,42,0.11);
  margin-bottom: 20px;
  border-left: 5px solid #135CB2;
  color: #23272A;
}
.testimonial-card p {
  color: #23272A;
  font-size: 1.13rem;
  margin-bottom: 6px;
}
.testimonial-card strong {
  color: #135CB2;
  font-size: 1.09rem;
}

/* === BUTTONS & MICRO-INTERACTIONS === */
button, .cta, .mobile-menu-toggle, .mobile-menu-close {
  outline: none;
  cursor: pointer;
  border: none;
}
.cta {
  padding: 10px 26px;
  border-radius: 26px;
  font-family: 'Montserrat',Arial,sans-serif;
  font-weight: 600;
  background: #135CB2;
  color: #fff;
  font-size: 1.05rem;
  transition: box-shadow .18s, background .17s, color .15s;
  box-shadow: 0 2px 8px 0 rgba(35,39,42,0.09);
  border: none;
}
.cta:not(.primary):hover,.cta:not(.primary):focus {
  background: #23272A;
}

/* === CARDS & CARD-LIKE ELEMENTS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1.5px 12px 0 rgba(19,92,178,0.11);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .22s;
}
.card:hover {
  box-shadow: 0 8px 28px 0 rgba(19,92,178,0.17);
}

.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;
}

/* Section alignment utility */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* === TABLES (Kurse & Zeitplan) === */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 16px 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(35,39,42,0.09);
}
thead { background: #135CB2; color: #fff; }
thead th {
  padding: 14px 10px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
}
tbody td {
  padding: 13px 10px;
  font-size: 1.03rem;
  color: #23272A;
  background: #fff;
  border-bottom: 1px solid #E3EAF5;
}
tr:last-child td { border-bottom: none; }

/* === FOOTER === */
footer {
  background: linear-gradient(90deg, #1b334b 0%, #135CB2 100%);
  color: #fff;
  padding: 44px 0 16px 0;
  margin-top: 44px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 14px;
}
.footer-nav a {
  color: #e3eaf5;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  transition: color .15s;
  font-size: 1rem;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fee07d;
  text-decoration: underline;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  font-size: 1.07rem;
  color: #e3eaf5;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 10px;
}
footer small {
  color: #E3EAF5;
  font-size: .97rem;
  margin-top: 12px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  background: linear-gradient(90deg,#135CB2 0%, #2c7ce6 100%);
  color: #fff;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 -3px 20px 0 rgba(19,92,178,0.21);
  padding: 22px 12px;
  animation: cookie-fade-in .7s cubic-bezier(.5,0,.3,1);
}
@keyframes cookie-fade-in {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: none; }
}
.cookie-banner p {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 15px;
}
.cookie-banner .cookie-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.cookie-banner button,
.cookie-banner .cookie-btn {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 22px;
  font-size: 1.06rem;
  padding: 10px 24px;
  margin-bottom: 4px;
  border: none;
  transition: background .17s, color .15s, box-shadow .18s;
  cursor: pointer;
  box-shadow: 0 1px 5px 0 rgba(35,39,42,0.07);
}
.cookie-banner .accept {
  background: linear-gradient(90deg,#fee07d 0%, #ffa93e 100%);
  color: #135CB2;
}
.cookie-banner .accept:hover,
.cookie-banner .accept:focus {
  background: linear-gradient(90deg,#ffe8ad 0%, #ffbe6a 100%);
  color: #0d3f7c;
}
.cookie-banner .reject {
  background: #fff;
  color: #135CB2;
  border: 2px solid #fee07d;
}
.cookie-banner .reject:hover,
.cookie-banner .reject:focus {
  background: #E3EAF5;
}
.cookie-banner .settings {
  background: transparent;
  color: #fee07d;
  border: 2px solid #fee07d;
}
.cookie-banner .settings:hover,
.cookie-banner .settings:focus {
  background: #fee07d;
  color: #135CB2;
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  z-index: 1200;
  background: rgba(19,92,178,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookie-modal-fade .27s cubic-bezier(.6,0,.35,1);
  pointer-events: auto;
}
@keyframes cookie-modal-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal .cookie-popup {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 7px 34px 0 rgba(19,92,178,0.23);
  max-width: 375px;
  width: 96vw;
  padding: 36px 26px 26px 26px;
  color: #23272A;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: cookie-popup-fade .32s cubic-bezier(.7,0,.29,1);
  position: relative;
}
@keyframes cookie-popup-fade {
  0% { opacity: 0; transform: scale(.96); }
  100% { opacity: 1; transform: none; }
}
.cookie-modal .close-popup {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: #135CB2;
  position: absolute;
  top: 12px;
  right: 14px;
  cursor: pointer;
}
.cookie-popup h2 {
  font-size: 1.22rem;
  color: #135CB2;
  margin-bottom: 18px;
}
.cookie-popup .cookie-category {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.cookie-category label {
  font-size: 1.06rem;
  font-family: 'Montserrat',Arial,sans-serif;
  color: #23272A;
}
.cookie-category .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #E3EAF5;
  border-radius: 14px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background .18s;
}
.cookie-category .cookie-toggle:checked {
  background: #fee07d;
}
.cookie-category .cookie-toggle::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .18s;
  box-shadow: 0 1px 3px 0 rgba(35,39,42,.10);
}
.cookie-category .cookie-toggle:checked::before {
  transform: translateX(16px);
}
.cookie-popup .cookie-actions {
  display: flex;
  gap: 15px;
  margin-top: 14px;
}
.cookie-popup .accept, .cookie-popup .reject {
  font-family: 'Montserrat',Arial,sans-serif;
  font-size: 1rem;
  border-radius: 18px;
  padding: 9px 18px;
  margin-bottom: 0;
}
.cookie-popup .accept {
  background: linear-gradient(90deg,#fee07d 0%, #ffa93e 100%);
  color: #135CB2;
}
.cookie-popup .reject {
  background: #E3EAF5;
  color: #135CB2;
  border: 2px solid #fee07d;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
  .container { padding: 0 7px; }
  header .container {
    gap: 10px;
    padding: 0 9px;
  }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.28rem; }
  nav { gap: 13px; }
  .footer-contact {
    gap: 9px;
    flex-direction: column;
    align-items: flex-start;
  }
  .feature-grid {
    gap: 18px;
    flex-direction: column;
  }
  .feature-grid > div {
    min-width: 0;
    width: 100%;
    padding: 17px 10px;
  }
  section {
    padding: 22px 5px;
    border-radius: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 8px;
    font-size: 1rem;
  }
  .footer-nav {
    gap: 14px;
    flex-wrap: wrap;
    font-size: .98rem;
  }
  .cookie-banner {
    padding: 14px 4px;
  }
  .cookie-banner .cookie-btns {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cookie-modal .cookie-popup {
    padding: 18px 10px 10px 10px;
    border-radius: 14px;
    max-width: 99vw;
  }
}

@media (max-width: 540px) {
  h1 { font-size: 1.2rem; }
  h2 { font-size: .99rem; }
  h3 { font-size: .91rem; }
}

@media (max-width: 400px) {
  .cookie-popup h2 { font-size: 1.01rem; }
}

/* === ADDITIONAL ACCESSIBILITY & VISUAL ENHANCEMENTS === */
a:focus, button:focus, .cta:focus, .cookie-btn:focus, .mobile-menu-toggle:focus, .mobile-menu-close:focus {
  outline: 2px solid #fee07d;
  outline-offset: 2px;
}
::-webkit-scrollbar { width: 10px; background: #E3EAF5; }
::-webkit-scrollbar-thumb { background: #b8c6db; border-radius: 8px; }

/* === Utility classes for consistent spacing === */
.mt-32 { margin-top: 32px !important; }
.mb-32 { margin-bottom: 32px !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.pt-12 { padding-top: 12px !important; }
.pb-12 { padding-bottom: 12px !important; }

/* === VISUAL HIERARCHY AND EFFECTS === */
.card, .feature-grid > div, .testimonial-card, section, .cookie-banner, .cookie-modal .cookie-popup {
  box-shadow: 0 2px 18px 0 rgba(19,92,178,0.06);
  border-radius: 18px;
}

/* === FORM ELEMENTS (future-proof for booking/contact) === */
input, textarea, select {
  font-family: 'Roboto',Arial,Helvetica,sans-serif;
  border: 1.5px solid #E3EAF5;
  border-radius: 9px;
  padding: 11px 14px;
  font-size: 1.05rem;
  margin-bottom: 16px;
  transition: border-color .16s;
  background: #f4f6fb;
  color: #23272A;
}
input:focus, textarea:focus, select:focus {
  border-color: #135CB2;
  outline: none;
}

/* === MISC (fixing overlapping, etc.) === */
.card, .feature-grid > div, .testimonial-card, section {
  margin-bottom: 20px;
}
