/*--------------------------------------------------
 CSS RESET & NORMALIZATION
--------------------------------------------------*/
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.5;
  background: #F0EDEE;
  color: #223148;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  transition: background 0.3s;
}
*, *:before, *:after { box-sizing: inherit; }

img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
}
a {
  color: #5496C7;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus { color: #223148; }

ul, ol {
  margin-left: 1.25em;
  margin-bottom: 16px;
}
li { margin-bottom: .5em; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  color: #223148;
}
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.375rem; margin-bottom: 10px; }
h4 { font-size: 1.125rem; }

p, .subheadline { font-family: 'Open Sans', Arial, sans-serif; color: #223148; font-size: 1rem; }
.subheadline { font-size: 1.25rem; margin-bottom: 18px; color: #5496C7; }

strong, b { font-weight: 700; }


/*--------------------------------------------------
 BRAND COLOR VARIABLES (No CSS vars for max support)
--------------------------------------------------*/
/* #223148 = primary (dark blue)
   #5496C7 = secondary (vivid blue)
   #F0EDEE = accent (soft light)
*/

/*--------------------------------------------------
 CONTAINER & SECTION SPACING
--------------------------------------------------*/
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 6px 28px rgba(34,49,72,0.08);
  display: flex;
  flex-direction: column;
}

/* Section gradient accent backgrounds for hero etc. */
section:first-of-type {
  background: linear-gradient(96deg, #bbd4ea 0%, #F0EDEE 70%, #e4f0fb 100%);
}

main > section:not(:first-of-type) .container {
  background: none;
}

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

.text-section {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/*--------------------------------------------------
 FLEXBOX LAYOUTS
--------------------------------------------------*/
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.features-grid > div {
  background: #F0EDEE;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(85,150,199,0.04);
  padding: 24px 20px 20px;
  flex: 1 1 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.features-grid img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(34,49,72,.09);
  padding: 28px 22px 22px;
  flex: 1 1 320px;
}

.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;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 24px;
  background: #F0EDEE;
  color: #223148;
  box-shadow: 0 2px 12px rgba(34,49,72,0.05);
  flex-direction: column;
  align-items: flex-start;
}
.testimonial-card p {
  font-size: 1.125rem;
  font-style: italic;
  color: #223148;
}
.testimonial-card span {
  font-size: .95rem;
  color: #5496C7;
  margin-top: 4px;
  font-family: 'Montserrat', Arial, sans-serif;
}

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

.trainer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 18px;
}
.trainer-bio {
  background: #F0EDEE;
  border-radius: 12px;
  padding: 16px 18px;
  min-width: 220px;
  max-width: 340px;
  box-shadow: 0 1px 7px rgba(34,49,72,.07);
}

/* Critical: Ensure no overlapping and adequate gaps */
.section:not(:last-child), .features-grid > div, .testimonial-card, .card {
  margin-bottom: 20px;
}

/*--------------------------------------------------
 BUTTONS & CTA
--------------------------------------------------*/
.cta, .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.07rem;
  padding: 12px 32px;
  border-radius: 999px;
  background: linear-gradient(95deg, #5496C7 0%, #223148 100%);
  color: #fff;
  border: none;
  box-shadow: 0 5px 18px rgba(85,150,199, 0.16);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: .03em;
  transition: transform 0.13s, box-shadow 0.25s, background 0.18s, color 0.18s;
  margin-top: 10px;
}
.cta.primary {
  background: linear-gradient(95deg, #223148 0%, #5496C7 100%);
  color: #fff;
}
.cta:hover, .cta:focus, .primary:hover, .primary:focus {
  background: #223148;
  color: #F0EDEE;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 28px rgba(34,49,72, 0.16);
}
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  font-size: 1rem;
  border-radius: 999px;
  background: #5496C7;
  color: #fff;
  border: none;
  transition: background 0.21s;
}
.button-link:hover {
  background: #223148;
  color: #F0EDEE;
}

/*--------------------------------------------------
 HEADER & NAVIGATION
--------------------------------------------------*/
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 12px rgba(34,49,72,0.05);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0;
}
header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 80px;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  color: #223148;
  font-size: 1.02rem;
  opacity: .89;
  position: relative;
  padding: 2px 6px;
  transition: color 0.18s;
}
header nav a:hover, header nav a:focus {
  color: #5496C7;
}
header a.cta.primary {
  margin-left: auto;
  margin-right: 10px;
}

header img {
  height: 54px;
  max-width: 140px;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  background: none;
  border: none;
  color: #223148;
  cursor: pointer;
  margin-left: 6px;
  z-index: 202;
  padding: 2px 8px;
}

/*--------------------------------------------------
 MOBILE MENU
--------------------------------------------------*/
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34, 49, 72, 0.96);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(.17,.67,.61,1.12);
  will-change: transform;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 24px 32px 0 0;
  background: none;
  border: none;
  font-size: 2.4rem;
  color: #fff;
  cursor: pointer;
  z-index: 202;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  gap: 18px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
  margin: 6px 0;
  letter-spacing: .035em;
  background: rgba(85,150,199,0.09);
  padding: 14px 38px;
  border-radius: 999px;
  transition: background 0.17s, color 0.15s;
  min-width: 220px;
  text-align: center;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #5496C7;
  color: #F0EDEE;
}

@media (max-width:1024px) {
  header nav { gap: 16px; }
}
@media (max-width:900px) {
  header nav { gap: 11px; }
}

@media (max-width: 768px) {
  header nav,
  header a.cta.primary { display: none; }
  .mobile-menu-toggle { display: inline-block; }

  .container { padding: 0 10px; }
}

/* Hide header nav/cta on mobile so only burger visible */
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    min-height: 56px;
  }
}

/*--------------------------------------------------
 TABLES (KURSE, PREISE)
--------------------------------------------------*/
.class-table, .pricing-table {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
  margin-bottom: 28px;
}
.class-table table, .pricing-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
  min-width: 480px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 14px rgba(85,150,199,0.07);
  overflow: hidden;
}
.class-table th, .pricing-table th {
  background: #5496C7;
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
}
.class-table td, .pricing-table td {
  padding: 12px 14px;
  color: #223148;
  background: #F0EDEE;
}
.class-table tr:nth-child(even) td, .pricing-table tr:nth-child(even) td {
  background: #fff;
}
.class-table tr:hover td, .pricing-table tr:hover td {
  background: #bbd4ea;
}

/*--------------------------------------------------
 FOOTER
--------------------------------------------------*/
footer {
  background: linear-gradient(95deg,#223148 65%, #335887 100%);
  color: #fff;
  padding: 48px 0 26px;
  box-shadow: 0 -2px 12px rgba(34,49,72,0.08);
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
footer img {
  height: 54px;
  margin-bottom: 5px;
}
footer nav {
  display: flex;
  gap: 16px;
}
footer nav a {
  color: #F0EDEE;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  opacity: 0.86;
  transition: color 0.18s;
  padding: 2px 6px;
}
footer nav a:hover, footer nav a:focus {
  color: #5496C7;
}
footer .contact-info {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  font-size: .98rem;
  color: #F0EDEE;
}
footer .contact-info img {
  width: 16px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}
footer small {
  color: #bbd4ea;
  opacity: .86;
  margin-top: 12px;
}

/*--------------------------------------------------
 RESPONSIVE BREAKPOINTS
--------------------------------------------------*/
@media (max-width: 1000px) {
  .features-grid { gap: 14px; }
}
@media (max-width: 900px) {
  .features-grid { gap: 10px; }
}
@media (max-width: 768px) {
  .section { padding: 32px 6px; margin-bottom: 40px; }
  .features-grid, .card-container, .content-grid {
    gap: 10px;
  }
  .testimonial-card { gap: 8px; padding: 14px; }
  footer { padding: 36px 0 18px; }
  footer .contact-info { font-size: .95rem; }
}
@media (max-width: 600px) {
  .features-grid > div { min-width: 100%; }
  .card { min-width: 100%; }
  .trainer-list, .content-grid, .card-container { flex-direction: column; }
  .container { padding: 0 6px; }
  .section { padding: 22px 2px; }
}

/* FLEX COLUMN ON MOBILE FOR text-image-section */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; gap: 18px;}
}

/*--------------------------------------------------
 MICRO-INTERACTIONS & TRANSITIONS
--------------------------------------------------*/
button, .cta, .primary, .button-link, .mobile-menu-toggle, .mobile-menu-close {
  transition: background 0.18s, color 0.18s, transform 0.13s, box-shadow 0.15s;
}

.cta, .primary, .button-link {
  outline: none;
}
.cta:active, .primary:active, .button-link:active {
  transform: scale(.98);
}

/*--------------------------------------------------
 COOKIE CONSENT BANNER & MODAL
--------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; width: 100vw;
  background: linear-gradient(95deg, #fff 80%, #F0EDEE 100%);
  color: #223148;
  box-shadow: 0 -4px 24px rgba(34,49,72,0.08);
  padding: 20px 10px 19px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  animation: cookieSlideUp .48s ease;
}
@keyframes cookieSlideUp {
  from { opacity: 0; transform: translateY(54px); }
  to { opacity: 1; transform: translateY(0); }
}
.cookie-banner__text {
  max-width: 700px;
  text-align: center;
  font-size: 1rem;
  margin-bottom: 8px;
}
.cookie-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}
.cookie-banner__button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  border: none;
  outline: none;
  padding: 9px 24px;
  border-radius: 999px;
  font-size: 1rem;
  cursor: pointer;
  color: #fff;
  box-shadow: 0 1px 8px rgba(85,150,199,0.10);
  transition: background 0.12s, color 0.12s, outline 0.08s;
}
.cookie-banner__button.accept {
  background: #5496C7;
}
.cookie-banner__button.accept:hover, .cookie-banner__button.accept:focus {
  background: #223148;
}
.cookie-banner__button.reject {
  background: #223148;
}
.cookie-banner__button.reject:hover, .cookie-banner__button.reject:focus {
  background: #5496C7;
}
.cookie-banner__button.settings {
  background: #F0EDEE;
  color: #223148;
  border: 1px solid #5496C7;
}
.cookie-banner__button.settings:hover, .cookie-banner__button.settings:focus {
  background: #5496C7;
  color: #fff;
}

/* Cookie Modal */
.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,49,72,0.62);
  z-index: 4100;
  animation: cookieModalFadeIn .28s cubic-bezier(.34,1.02,.74,1.18);
}
@keyframes cookieModalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cookie-modal__content {
  background: #fff;
  border-radius: 22px;
  max-width: 440px;
  width: 91%;
  padding: 32px 26px 24px;
  text-align: left;
  box-shadow: 0 8px 42px rgba(34,49,72,0.19);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal__header {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  color: #223148;
  margin-bottom: 8px;
}
.cookie-modal__categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 1.07rem;
}
.cookie-category label {
  font-weight: 600;
  color: #223148;
  margin-left: 0;
}
.cookie-category input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: #5496C7;
  min-width: 20px;
  margin-right: 7px;
}
.cookie-category.--essential label {
  color: #5496C7;
  font-weight: bold;
}
.cookie-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal__button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  border-radius: 999px;
  padding: 8px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s, color 0.13s;
}
.cookie-modal__button.save {
  background: #5496C7;
  color: #fff;
}
.cookie-modal__button.cancel {
  background: #F0EDEE;
  color: #223148;
  border: 1px solid #dae3ea;
  margin-right: 7px;
}
.cookie-modal__button.save:hover, .cookie-modal__button.save:focus {
  background: #223148;
}
.cookie-modal__button.cancel:hover, .cookie-modal__button.cancel:focus {
  background: #5496C7;
  color: #fff;
}

/*--------------------------------------------------
 TYPOGRAPHY
--------------------------------------------------*/
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700,800&display=swap');
@import url('https://fonts.googleapis.com/css?family=Open+Sans:400,600,700&display=swap');

html { font-size: 16px; }

/* Responsive font scale */
@media (max-width: 900px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  .subheadline { font-size: 1.04rem; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.14rem; }
}

/*--------------------------------------------------
 MISC STYLING
--------------------------------------------------*/
::-webkit-scrollbar { width: 8px; background: #e0e9f1; }
::-webkit-scrollbar-thumb { background: #a6bbcc; border-radius: 4px; }

/* Lists icon spacing */
ul li img, .contact-info img { vertical-align: middle; }
ul li strong, ul li b { color: #223148; }

/* Accessibility: Focus styling */
a:focus, .cta:focus, .primary:focus, .mobile-menu-toggle:focus, .cookie-banner__button:focus {
  outline: 2px solid #5496C7;
  outline-offset: 2px;
}

/*--------------------------
 HIDE & OVERRIDE UTILS
--------------------------*/
[hidden] { display: none !important; }

/*--------------------------------------------------
 NO CSS GRID/NO COLUMNS/NO BREAK-INSIDE -- Only Flex!
--------------------------------------------------*/
