/* 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,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%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  min-height: 100vh;
  background: #FAFAF8;
  color: #173560;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
ul { list-style: disc inside; }
ol { list-style: decimal inside; }
a { color: #173560; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #F3BE36; }
strong { font-weight: 600; }

/* TYPOGRAPHY */
h1 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 700; font-size: 2.5rem; margin-bottom: 20px; letter-spacing: 0.01em; }
h2 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 600; font-size: 2rem; margin-bottom: 20px; letter-spacing: 0.01em; }
h3 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 500; font-size: 1.25rem; margin-bottom: 12px; }
h4, h5, h6 { font-family: 'Montserrat', Arial, sans-serif; font-weight: 500; margin-bottom: 12px; }
p, ul, ol { margin-bottom: 16px; }
.subheadline { font-family: 'Roboto', Arial, sans-serif; font-size: 1.1rem; color: #466291; margin-bottom: 20px; line-height: 1.6; }
.text-section ul, .text-section ol { margin-left: 1.4em; }
.text-section li { margin-bottom: 10px; }

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(23,53,96,0.07);
}
@media (max-width: 768px) {
  section {
    padding: 28px 8px;
    margin-bottom: 32px;
    border-radius: 12px;
  }
  .container { padding: 0 6px; }
}

/* FEATURE GRID & FLEX PATTERNS */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-top: 12px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  min-width: 220px;
  background: #E7EEF6;
  border-radius: 12px;
  padding: 24px 18px;
  flex: 1 1 240px;
  box-shadow: 0 1px 7px 0 rgba(23,53,96,0.05);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature-item:hover, .feature-item:focus {
  box-shadow: 0 5px 20px 0 rgba(23,53,96,0.12);
  transform: translateY(-3px) scale(1.02);
}
.feature-item img {
  width: 40px;
  height: 40px;
}

.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px 0 rgba(23,53,96,0.06);
  position: relative;
  flex: 1 1 260px;
  min-width: 220px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus {
  box-shadow: 0 8px 32px 0 rgba(23,53,96,0.15);
  transform: translateY(-4px) scale(1.025);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 24px 18px;
}

.program-snippets {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.program-snippets > div {
  background: #F7F8FA;
  border-radius: 11px;
  padding: 18px 12px;
  flex: 1 0 250px;
  min-width: 210px;
}

@media (max-width: 820px) {
  .feature-grid, .card-container, .content-grid, .program-snippets {
    gap: 16px;
  }
  .feature-item, .card, .program-snippets > div {
    flex: 1 1 95%;
    min-width: 180px;
  }
}
@media (max-width: 600px) {
  .feature-grid, .card-container, .program-snippets {
    flex-direction: column;
    gap: 14px;
  }
}


/* CTA BUTTONS */
.cta-primary, .cta-secondary, button, input[type="submit"], .mobile-menu-toggle {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 25px;
  padding: 14px 32px;
  font-size: 1.1rem;
  box-shadow: 0 3px 14px 0 rgba(23,53,96,0.04);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.16s;
}
.cta-primary {
  background: #173560;
  color: #fff;
}
.cta-primary:hover, .cta-primary:focus {
  background: #466291;
  color: #fff;
  transform: scale(1.035);
  box-shadow: 0 6px 22px 0 rgba(23,53,96,0.13);
}
.cta-secondary {
  background: #F3BE36;
  color: #173560;
}
.cta-secondary:hover, .cta-secondary:focus {
  background: #E7EEF6;
  color: #173560;
  transform: scale(1.02);
}
button, input[type="submit"] {
  background: #173560;
  color: #fff;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: #F3BE36;
  color: #173560;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 1px 8px 0 rgba(23,53,96,0.09);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 30;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
header nav {
  display: flex;
  gap: 20px;
  align-items: center;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #173560;
  border-radius: 15px;
  padding: 6px 14px;
  transition: background 0.18s, color 0.18s;
}
header nav a:hover, header nav a:focus {
  background: #E7EEF6;
  color: #173560;
}
header img {
  height: 38px;
  margin-right: 16px;
}
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #173560;
  font-size: 2em;
  padding: 8px 12px;
  margin-left: 12px;
  border: none;
  line-height: 1;
}
@media (max-width: 900px) {
  header .container { gap: 12px; }
  header nav {
    gap: 11px;
  }
}
@media (max-width: 768px) {
  header nav {
    display: none;
  }
  .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header img {
    margin-right: 10px;
    height: 34px;
  }
  header .container {
    height: 58px;
  }
}

/* MOBILE MENU */
.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  background: #fff;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 50;
  width: 100%;
  height: 100vh;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.75, 0, 0.25, 1);
  box-shadow: 4px 0 32px 0 rgba(23,53,96,0.18);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 2.2em;
  background: transparent;
  color: #173560;
  border: none;
  z-index: 99;
  cursor: pointer;
  padding: 0 10px;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  padding: 80px 36px 0 36px;
}
.mobile-nav a {
  color: #173560;
  font-size: 1.25rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  padding: 10px 4px 10px 0;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E7EEF6;
  color: #F3BE36;
}
@media (min-width: 769px) {
  .mobile-menu { display: none !important; }
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -2px 24px 0 rgba(23,53,96,0.10);
  border-top: 1.5px solid #E7EEF6;
  z-index: 80;
  padding: 22px 8px;
  display: flex;
  gap: 18px;
  justify-content: center;
  align-items: center;
  opacity: 1;
  transform: translateY(0);
  transition: transform 0.28s cubic-bezier(0.6, 0, 0.48, 1); 
}
.cookie-banner.hide { opacity: 0; pointer-events: none; transform: translateY(120px); }
.cookie-banner p { flex: 1 1 200px; max-width: 450px; font-size: 1rem; }
.cookie-banner .cookie-buttons {
  display: flex;
  gap: 12px;
}
.cookie-banner button, .cookie-banner .cta-primary, .cookie-banner .cta-secondary {
  min-width: 112px;
  padding: 11px 24px;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; gap: 10px; padding: 16px 6px; }
  .cookie-banner .cookie-buttons { gap: 10px; }
}

/* COOKIE MODAL */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 120;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(23,53,96,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.22s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 6px 34px 0 rgba(23,53,96,0.14);
  max-width: 420px;
  width: 94vw;
  padding: 36px 28px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 121;
  animation: modalfadein 0.25s cubic-bezier(.48,.13,.55,.96);
}
@keyframes modalfadein { from { transform: scale(0.98) translateY(20px); opacity: 0; } to { transform:none; opacity:1; } }

.cookie-modal h2 { font-size: 1.3rem; margin-bottom: 10px; }
.cookie-modal fieldset { border: none; margin: 0 0 14px 0; padding: 0; }
.cookie-modal label { display: flex; align-items: center; gap: 10px; font-size: 1rem; }
.cookie-modal input[type="checkbox"] { width: 1.15em; height: 1.15em; accent-color: #F3BE36; }
.cookie-modal .modal-actions {
  display: flex;
  gap: 14px;
  justify-content: flex-end;
  margin-top: 14px;
}
.cookie-modal .close-modal {
  background: transparent;
  color: #173560;
  font-size: 1.6em;
  border: none;
  position: absolute;
  top: 10px; right: 18px;
  cursor: pointer;
}
.cookie-modal .cookie-group { margin-bottom: 11px; }
.cookie-modal .cookie-group:last-child { margin-bottom: 0; }

/* FORMS (NEWSLETTER, GENERIC) */
form {
  margin-top: 10px;
  display: flex;
  flex-direction: row;
  gap: 13px;
  align-items: stretch;
}
input, textarea {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  padding: 10px 15px;
  border-radius: 8px;
  border: 1.3px solid #ccd7e5;
  background: #F8F9FB;
  color: #173560;
  width: 100%;
  transition: border 0.14s;
}
input:focus, textarea:focus {
  outline: none;
  border-color: #173560;
  background: #fff;
}
form button, input[type="submit"] {
  min-width: 90px;
  padding: 13px 18px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  color: #fff;
  background: #173560;
  border-radius: 22px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.18s, color 0.15s;
}
form button:hover, input[type="submit"]:hover {
  background: #F3BE36;
  color: #173560;
}
@media (max-width: 600px) {
  form {
    flex-direction: column;
    gap: 10px;
  }
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: #E7EEF6;
  border-radius: 13px;
  box-shadow: 0 2px 13px 0 rgba(23,53,96,0.07);
  margin-bottom: 20px;
  max-width: 640px;
  color: #173560; /* Ensured high contrast */
}
.testimonial-card blockquote {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.07rem;
  margin: 0 0 8px 0;
  color: #173560;
  font-style: italic;
  line-height: 1.7;
}
.testimonial-card strong{ font-weight: 600; color: #173560; }
@media (max-width: 600px){
  .testimonial-card {
    padding: 13px;
    font-size: 0.96rem;
    max-width: 100%;
  }
}

/* FOOTER */
footer {
  background: #173560;
  color: #fff;
  padding: 40px 0 26px 0;
  width: 100%;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #E7EEF6;
  font-size: 1rem;
  margin-bottom: 0;
  padding: 4px 0;
  border-radius: 8px;
  font-family: 'Montserrat', Arial, sans-serif;
  transition: color 0.16s, background 0.13s;
}
footer nav a:hover, footer nav a:focus {
  color: #F3BE36;
  background: rgba(243,190,54,0.06);
}
.footer-brand img {
  height: 35px;
  margin-bottom: 9px;
  display: block;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer-contact img {
  width: 17px; height: 17px;
  filter: brightness(0) invert(1);
}
@media (max-width: 820px){
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding-left: 8px;
  }
}

/* SPACING UTILITY CLASSES FOR CONSISTENCY */
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-20 { gap: 20px; }
.gap-24 { gap: 24px; }

/* RESPONSIVE TYPOGRAPHY */
@media (max-width: 420px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.28rem; }
  .cta-primary, .cta-secondary, button, input[type="submit"] { font-size: 1rem; }
}

/* MICRO-INTERACTIONS & TRANSITIONS */
section, .feature-item, .card, .testimonial-card {
  transition: box-shadow 0.18s, background 0.14s;
}
.cta-primary, .cta-secondary, button, input[type="submit"] {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.18s;
}
form input, form textarea {
  transition: border 0.14s, background 0.14s;
}

/* ACCESSIBILITY FOCUS STYLES */
a:focus, .cta-primary:focus, .cta-secondary:focus, button:focus, input:focus {
  outline: 2px dashed #F3BE36;
  outline-offset: 2px;
  background: #E7EEF6;
}

/* ACCENT BADGES / CATEGORIES */
.programme-categories {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 13px 0;
}
.programme-categories span {
  background: #E7EEF6;
  color: #173560;
  border-radius: 6px;
  font-size: 0.97rem;
  padding: 3px 13px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
}

/* TABLE/PERSONA INFO (if needed) */
table { border-collapse: collapse; width: 100%; }
th, td {
  padding: 13px 11px;
  border-bottom: 1.1px solid #E7EEF6;
  text-align: left;
  font-size: 1rem;
}

/*--- FORCED FLEXBOX PATTERNS ---*/
/* Already implemented layout patterns using flex! */

/* Utility: hide on desktop or mobile */
.hide-mobile { display: none !important; }
@media (max-width: 768px) {
  .hide-mobile { display: block !important; }
  .hide-desktop { display: none !important; }
}

/* Miscellaneous fixes */
::-webkit-input-placeholder { color: #90A1B6; }
::-moz-placeholder  { color: #90A1B6; }
:-ms-input-placeholder { color: #90A1B6; }
::placeholder { color: #90A1B6; }

/* Decorative image border for icons/photos */
img[alt^="Adresse"], img[alt^="Telefon"], img[alt^="E-Mail"] {
  padding: 0 2px;
  background: none;
  border-radius: 5px;
}
img[alt^="icon-"] {
  background: #fff;
  border-radius: 7px;
  box-shadow: 0 1px 4px 0 rgba(23,53,96,0.08);
  padding: 4px;
}

/* Print styles */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal-backdrop { display: none !important; }
  section, .container { box-shadow: none !important; background: #fff !important; }
}
