/* 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, main, 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;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  background-color: #F4F7F9;
  font-family: 'Roboto', 'Georgia', serif;
  color: #223967;
  font-size: 16px;
  line-height: 1.7;
}

/* FONTS */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Georgia', serif;
  color: #223967;
  font-weight: 700;
  letter-spacing: 0.5px;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.15; }
h2 { font-size: 2rem; margin-bottom: 18px; }
h3 { font-size: 1.375rem; margin-bottom: 12px; }
h4 { font-size: 1.125rem; margin-bottom: 10px; }
h5 { font-size: 1rem; margin-bottom: 8px; }
h6 { font-size: 0.93rem; margin-bottom: 8px; }
p, ul, ol, address, li {
  font-family: 'Roboto', 'Georgia', serif;
  font-size: 1rem;
  color: #223967;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
ul { padding-left: 22px; }
ol { padding-left: 26px; }

strong { font-weight: 700; color: #223967; }
em { font-style: italic; }
a {
  color: #223967;
  transition: color 0.2s;
  text-underline-offset: 2px;
  font-weight: 500;
}
a:hover, a:focus {
  color: #61C1B6;
}
av a {
  margin-right: 18px;
  text-decoration: none;
}
nav a:last-child { margin-right: 0; }

/* CONTAINER & LAYOUT */
.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}
.content-wrapper {
  padding: 40px 20px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(34,57,103,0.05);
  margin-bottom: 60px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
}

.text-section, .map-location {
  margin-bottom: 24px;
}

/* FLEX LAYOUTS (Mandatory patterns) */
.card-container, .feature-grid, .team-bios, .discount-banners, .partner-logos,
.course-overview-cards, .course-listings, .benefits-grid, .learning-formats-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card,
.course-overview-cards > div,
.course-listings > div,
.learning-formats-grid > div,
.benefits-grid > div,
.feature-grid > div,
.team-bios > div {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(34,57,103,0.07);
  padding: 24px 20px;
  flex: 1 1 260px;
  min-width: 240px;
  transition: box-shadow 0.18s;
}
.card:hover,
.course-overview-cards > div:hover,
.course-listings > div:hover,
.benefits-grid > div:hover {
  box-shadow: 0 4px 24px 0 rgba(34,57,103,0.13);
}

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

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 24px;
  background: #FAFAFB;
  border-left: 6px solid #61C1B6;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(34,57,103,0.07);
  margin-bottom: 20px;
}
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

div.partner-logos {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 18px 0 22px 0;
}
div.partner-logos img {
  width: 54px; height: 54px;
  object-fit: contain;
}
.discount-banners {
  display: flex;
  flex-direction: row;
  gap: 18px;
  margin-top: 12px;
}
.discount-banners span {
  background: #223967;
  color: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 1rem;
  font-family: 'Montserrat', 'Georgia', serif;
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(34,57,103,0.06);
  border-bottom: 2px solid #E8EAED;
  padding: 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}
header img {
  height: 52px;
  width: auto;
  margin-right: 18px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 18px;
}
header a.cta-button {
  margin-left: 18px;
}

/* CTA BUTTONS */
.cta-button {
  display: inline-block;
  background: #223967;
  color: #fff !important;
  font-family: 'Montserrat', 'Georgia', serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.1rem;
  border: none;
  border-radius: 24px;
  padding: 12px 34px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.12s;
  box-shadow: 0 1px 6px rgba(34, 57, 103, 0.06);
  text-align: center;
  cursor: pointer;
  text-decoration: none;
}
.cta-button:hover, .cta-button:focus {
  background: #61C1B6;
  color: #223967 !important;
  box-shadow: 0 6px 28px rgba(97, 193, 182, 0.14);
  transform: translateY(-2px) scale(1.03);
}

/* FOOTER */
footer {
  background: #223967;
  color: #fff;
  padding: 38px 0 18px 0;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 1050px;
}
footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 12px;
}
footer nav a {
  color: #fff;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  opacity: .92;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .15s, opacity .15s;
}
footer nav a:hover {
  color: #61C1B6;
  opacity: 1;
}
footer address {
  color: #e9ecef;
  font-style: normal;
  font-family: 'Roboto', 'Georgia', serif;
  font-size: 0.96rem;
  text-align: center;
  opacity: 0.93;
}

/* LIST ELEMENTS */
ul li, ol li {
  margin-bottom: 7px;
}
ul li img {
  vertical-align: middle;
  margin-right: 7px;
}

/* BLOGS & CATEGORIES */
span {
  display: inline-block;
}

/* Map or images */
.map-location {
  background: #22396710;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
  color: #223967;
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* MOBILE NAVIGATION */
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 120;
  background: #223967;
  color: #fff;
  width: 46px; height: 46px;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(34,57,103,0.12);
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.17s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #61C1B6;
  color: #223967;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34, 57, 103, 0.96);
  z-index: 200;
  display: flex; flex-direction: column;
  align-items: flex-end;
  transform: translateX(110%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .28s cubic-bezier(0.8,0.2,0.1,1);
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 2.3rem;
  margin: 24px 24px 0 0;
  cursor: pointer;
  opacity: 0.87;
  transition: color .18s, opacity .14s;
  z-index: 201;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #61C1B6;
  opacity: 1;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 28px;
  margin: 48px 44px;
  z-index: 202;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1.34rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 10px 0;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  width: 100%;
  text-align: right;
  min-width: 180px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: #61C1B6;
  background: #fff2;
}

/* Show/hide nav depending on screen */
@media (max-width: 1000px) {
  header nav, header .cta-button {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1001px) {
  .mobile-menu-toggle { display: none; }
  .mobile-menu { display: none; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1220px) {
  .container { max-width: 97vw; }
}
@media (max-width: 900px) {
  .content-wrapper, .section {
    padding: 32px 10px;
    margin-bottom: 44px;
  }
  h1 { font-size: 2.05rem; }
  h2 { font-size: 1.56rem; }
}
@media (max-width: 768px) {
  .container {
    padding-left: 8px;
    padding-right: 8px;
  }
  .content-wrapper, .section {
    padding: 24px 3vw;
    margin-bottom: 38px;
  }
  h1 { font-size: 1.4rem; }
  h2 { font-size: 1.125rem; }
  h3 { font-size: 1rem; }

  .card-container, .feature-grid, .team-bios,
  .discount-banners, .partner-logos,
  .course-overview-cards, .course-listings,
  .benefits-grid, .learning-formats-grid, .testimonial-slider {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  header .container {
    padding-left: 0;
    padding-right: 0;
  }
  .content-wrapper, .section {
    padding: 16px 2vw;
    margin-bottom: 28px;
    border-radius: 10px;
  }
  .testimonial-card {
    padding: 14px 9px;
    font-size: .93rem;
  }
}

/* BUTTONS + INTERACTIVE ELEMENTS */
button, input[type="button"], input[type="submit"], .cta-button {
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  outline: none;
  border: none;
  cursor: pointer;
}
button:active, .cta-button:active {
  transform: scale(0.97);
}

/* Cookie Banner & Modal */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  z-index: 999;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(34,57,103,0.11);
  border-top: 3px solid #61C1B6;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 22px 10vw 22px 10vw;
  font-size: 1rem;
  animation: cookieSlideIn 0.5s cubic-bezier(0.55,0.05,0.67,1.38);
}
@keyframes cookieSlideIn {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-banner-buttons {
  display: flex;
  flex-direction: row;
  gap: 18px;
}
.cookie-banner .cookie-btn {
  background: #223967;
  color: #fff;
  border-radius: 20px;
  padding: 9px 23px;
  font-weight: 600;
  font-family: 'Montserrat', 'Georgia', serif;
  font-size: 1rem;
  border: none;
  margin-right: 4px;
  transition: background 0.16s;
}
.cookie-banner .cookie-btn.cookie-accept { background: #61C1B6; color: #223967; }
.cookie-banner .cookie-btn.cookie-accept:hover { background: #49b2a1; }
.cookie-banner .cookie-btn.cookie-reject { background: #e84c4c; color: #fff; }
.cookie-banner .cookie-btn.cookie-reject:hover { background: #bf3535; }
.cookie-banner .cookie-btn.cookie-settings {
  background: #ccc;
  color: #223967;
  border: 1px solid #22396710;
}
.cookie-banner .cookie-btn.cookie-settings:hover {
  background: #f7fafc;
}

.cookie-modal-overlay {
  display: none;
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(34,57,103,0.46);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: cookieModalFadeIn 0.35s cubic-bezier(0.55,0.05,0.67,1.38);
}
.cookie-modal-overlay.open {
  display: flex;
}
@keyframes cookieModalFadeIn {
  from { opacity:0; }
  to { opacity:1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 32px rgba(34,57,103,0.17);
  padding: 36px 26px 32px 26px;
  min-width: 320px;
  max-width: 98vw;
  text-align: left;
  position: relative;
  font-size: 1rem;
  display: flex;
  flex-direction: column;
  gap: 19px;
}
.cookie-modal h2 {
  font-family: 'Montserrat', 'Georgia', serif;
  margin-bottom: 8px;
  color: #223967;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.cookie-modal label {
  font-weight: 500;
}
.cookie-modal input[type='checkbox'] {
  margin-right: 7px;
  accent-color: #61C1B6;
}
.cookie-modal .cookie-category.disabled label {
  color: #b2b7c2;
}
.cookie-modal .cookie-btn-row {
  display: flex;
  gap: 16px;
  flex-direction: row;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 12px; right: 18px;
  background: none;
  border: none;
  font-size: 1.9rem;
  color: #223967;
  cursor: pointer;
  opacity: 0.66;
  transition: color 0.18s, opacity 0.12s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  color: #61C1B6;
  opacity: 1;
}

@media (max-width: 600px) {
  .cookie-banner { padding: 15px 2vw; font-size: .97rem; }
  .cookie-modal { padding: 16px 6px 15px 6px; }
}

/* Animations, microinteractions */
.card, .testimonial-card, .cta-button, .discount-banners span {
  transition: box-shadow 0.19s, background 0.17s, color 0.18s, transform 0.13s;
}
.card:active, .cta-button:active { transform: scale(0.98); }

/* Input styling (if any forms are present) */
input, textarea, select {
  font-family: 'Roboto', 'Georgia', serif;
  padding: 9px 13px;
  border-radius: 7px;
  border: 1px solid #22396733;
  font-size: 1rem;
  margin-bottom: 12px;
  outline: none;
  background: #f7f9fb;
  transition: border-color 0.18s;
}
input:focus, textarea:focus, select:focus {
  border-color: #61C1B6;
}

/* Miscellaneous helpers */
hr {
  border: none;
  border-top: 1.5px solid #E8EAED;
  margin: 28px 0;
}
.small-text { font-size: 0.96rem; color: #7e8395; font-family: 'Roboto', serif; }

::-webkit-input-placeholder {color: #b2b7c2;}
:-ms-input-placeholder {color: #b2b7c2;}
::placeholder {color: #b2b7c2;}

/* Hide outlines for mouse but show for keyboard navigation */
:focus:not(:focus-visible) { outline: none; }
:focus-visible { outline: 2px solid #61C1B6; }

/* Accessibility: Ensure testimonial readability (dark text on light bg) */
.testimonial-card p, .testimonial-card strong {
  color: #223967;
  font-size: 1.02rem;
}

/* Ensure spacing between cards/sections */
.card + .card,
.testimonial-card + .testimonial-card,
.feature-item + .feature-item,
.section + .section,
.content-wrapper + .content-wrapper,
.container + .container
{ margin-top: 28px !important; }

/* Z-Index Stacking for overlay elements */
.mobile-menu       { z-index: 200; }
.mobile-menu-close { z-index: 201; }
.mobile-nav        { z-index: 202; }
.cookie-banner     { z-index: 999; }
.cookie-modal-overlay { z-index: 2000; }

/* Remove absolute for cards (only for deco, not content) */
.card, .testimonial-card, .content-wrapper {
  position: relative;
}

/* Elegant_classic refinements */
h1, h2, h3, h4, h5, h6 {
  text-shadow: 0 1px 0 #f7f7fa;
}
.card, .testimonial-card {
  border: 1.5px solid #E5E7EB;
}

/*******************************************
COOKIE BANNER & MODAL STRUCTURE
*******************************************/
/* Expected HTML structure to enable banner & modal styling:
<div class="cookie-banner">
  <span>Wir verwenden Cookies, um Ihre Erfahrung zu verbessern...</span>
  <div class="cookie-banner-buttons">
    <button class="cookie-btn cookie-accept">Alle akzeptieren</button>
    <button class="cookie-btn cookie-reject">Alle ablehnen</button>
    <button class="cookie-btn cookie-settings">Einstellungen</button>
  </div>
</div>
<div class="cookie-modal-overlay">
  <div class="cookie-modal">
    <button class="cookie-modal-close">✕</button>
    <h2>Cookie-Einstellungen</h2>
    <div class="cookie-category disabled">
      <input type="checkbox" checked disabled><label>Essentielle Cookies (immer aktiv)</label>
    </div>
    <div class="cookie-category">
      <input type="checkbox" id="analytics-cookies">
      <label for="analytics-cookies">Analytics Cookies</label>
    </div>
    <div class="cookie-category">
      <input type="checkbox" id="marketing-cookies">
      <label for="marketing-cookies">Marketing Cookies</label>
    </div>
    <div class="cookie-btn-row">
      <button class="cookie-btn cookie-accept">Speichern</button>
      <button class="cookie-btn cookie-reject">Ablehnen</button>
    </div>
  </div>
</div>
*/
