/* ==== CSS RESET & BASE STYLES ==== */
html {
  box-sizing: border-box;
  font-size: 16px;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #233E57;
  background: linear-gradient(135deg, #f5fafd 0%, #e6f7fb 100%);
  min-height: 100vh;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #72B01D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #233E57;
}
ul, ol {
  padding-left: 1.2em;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  margin-bottom: 0.4em;
  font-weight: 700;
  color: #233E57;
}
h1 { font-size: 2.5rem; margin-bottom: 24px;}
h2 { font-size: 2rem; margin-bottom: 18px;}
h3 { font-size: 1.25rem; margin-bottom: 10px;}
blockquote {
  border-left: 4px solid #72B01D;
  background: #f9fbe7;
  padding: 16px 24px;
  border-radius: 8px;
  font-style: italic;
  color: #233E57;
  margin: 20px 0;
}

/* ==== CONTAINER & LAYOUT ==== */
.container {
  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.text-section {
  align-items: center;
  text-align: center;
}

/* ==== FLEXBOX COMPONENTS ==== */
.card-container, .feature-grid, .team-grid, .card-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 3px 16px 0 rgba(35,62,87,0.07);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(35,62,87,0.17);
  transform: translateY(-2px) scale(1.02);
  z-index: 1;
}
.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;
  background: #fbfff8;
  border-radius: 14px;
  box-shadow: 0 2px 7px rgba(35,62,87,0.08);
  padding: 24px 18px;
  flex: 1 1 245px;
  min-width: 210px;
  transition: box-shadow .2s, background .2s;
}
.feature-item img { width: 44px; height: 44px; margin-bottom: 8px; }
.feature-item:hover {
  box-shadow: 0 2px 16px 0 rgba(114,176,29,0.13);
  background: #f4fdfa;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.trainer-profile {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px 0 rgba(35,62,87,0.09);
  padding: 20px 18px;
  flex: 1 1 185px;
  min-width: 170px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;  
  transition: box-shadow .2s, background .2s;
}
.trainer-profile img {
  margin-bottom: 8px;
  width: 48px;
  height: 48px;
}
.trainer-profile:hover {
  box-shadow: 0 4px 18px rgba(114,176,29,0.14);
  background: #f9fdd0;
}

.services-list,
.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 24px 0 0 0;
}
.services-list li, .benefits-list li {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(35,62,87,0.08);
  padding: 20px 18px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 1.08rem;
  color: #233E57;
}
.service-link {
  margin-left: 0;
  color: #72B01D;
  text-decoration: underline;
}
.service-link:hover { color: #233E57; text-decoration: none; }

.service-cta {
  display: flex;
  flex-direction: row;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
}

/* == Testimonial Styles == */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 26px;
  background: #f1f5ed;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 3px 13px 0 rgba(114,176,29,0.09);
  color: #233E57;
  font-size: 1.07rem;
  min-width: 210px;
  max-width: 500px;
  margin-right: auto;
  margin-left: auto;
  transition: box-shadow .22s, background .22s;
}
.testimonial-card:hover {
  box-shadow: 0 7px 19px 0 rgba(35,62,87,0.18);
  background: #e7f4cc;
}
.testimonial-card span { font-size: 0.97rem; color: #233E57; opacity: 0.75; }
.testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.faq-item {
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 1px 7px 0 rgba(35,62,87,0.07);
  padding: 17px 15px;
}

/* ==== TABLES (Course Schedule) ==== */
.course-schedule {
  border-collapse: collapse;
  width: 100%;
  margin: 22px 0;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 14px rgba(35,62,87,0.065);
  overflow: hidden;
}
.course-schedule th, .course-schedule td {
  padding: 13px 11px;
  border-bottom: 1px solid #e4efd6;
  text-align: left;
}
.course-schedule th {
  background: #f4ffe1;
  color: #233E57;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.13rem;
}
.course-schedule tr:last-child td {
  border-bottom: none;
}

/* ==== BUTTONS ==== */
.cta-btn {
  display: inline-block;
  background: linear-gradient(86deg, #72B01D 40%, #FFD966 150%);
  color: #233E57;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  border: none;
  border-radius: 29px;
  padding: 15px 36px;
  box-shadow: 0 3px 14px 0 rgba(114,176,29,0.11);
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 1.16rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: center;
  transition: background 0.22s, color 0.22s, box-shadow 0.23s, transform 0.19s;
}
.cta-btn:hover, .cta-btn:focus {
  background: linear-gradient(92deg, #FFD966 0%, #72B01D 100%);
  color: #233E57;
  box-shadow: 0 6px 17px 0 rgba(35,62,87,0.18);
  transform: translateY(-2px) scale(1.05);
}

button, .button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  background: #72B01D;
  color: #233E57;
  border-radius: 24px;
  padding: 10px 22px;
  box-shadow: 0 2px 8px 0 rgba(114,176,29,0.08);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.12s;
}
button:active, button:hover, .button:hover {
  background: #233E57;
  color: #FFD966;
  transform: scale(1.04);
}

/* ==== HEADER & NAVIGATION ==== */
header {
  width: 100%;
  background: linear-gradient(90deg, #233E57 60%, #72B01D 140%);
  box-shadow: 0 2px 10px 0 rgba(35,62,87,0.075);
  padding: 0;
  min-height: 74px;
  z-index: 12;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  padding: 18px 0 18px 8px;
  height: 46px;
}
.logo img { height: 40px; width: auto; }
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-left: 0;
  padding-right: 0;
  gap: 16px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-left: auto;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: #fff;
  font-weight: 500;
  font-size: 1.06rem;
  transition: color 0.18s;
  position: relative;
  padding: 0 3px;
}
.main-nav a:after {
  content: '';
  display: block;
  width: 0;
  height: 2.5px;
  background: #FFD966;
  border-radius: 2px;
  transition: width 0.2s;
  margin: 2px auto 0 auto;
}
.main-nav a:hover,.main-nav a:focus {
  color: #FFD966;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}

.cta-btn {
  margin-left: 25px;
}

/* ==== MOBILE NAVIGATION ==== */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: none;
  color: #FFD966;
  border: none;
  cursor: pointer;
  margin-right: 10px;
  margin-left: 18px;
  z-index: 45;
  transition: color 0.2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: #fff;
}
.mobile-menu {
  display: none;
}
.mobile-menu[aria-expanded="true"], .mobile-menu.active {
  display: flex;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: linear-gradient(90deg,#233E57 60%,#72B01D 150%);
  z-index: 999;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transition: transform 0.45s cubic-bezier(0.65,0,0.35,1);
  transform: translateX(0);
  padding: 36px 18px 0 16px;
  animation: slideInMenu 0.34s ease-out both;
}
@keyframes slideInMenu {
  from {transform: translateX(-108vw); opacity: 0.33;}
  to   {transform: translateX(0);}
}
.mobile-menu:not(.active) {
  transform: translateX(-120vw);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: #FFD966;
  font-size: 2.3rem;
  align-self: flex-end;
  margin-top: 8px;
  cursor: pointer;
  padding: 0 12px 0 0;
  z-index: 1002;
  transition: color .18s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 38px;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.23rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.09);
  width: 100%;
  border-radius: 6px;
  box-sizing: border-box;
  transition: background 0.17s, color 0.17s;
}
.mobile-nav a:hover {
  background: rgba(255,217,102,0.12);
  color: #FFD966;
}

/* ==== FOOTER ==== */
footer {
  background: #f6fbff;
  padding: 32px 0 0 0;
  border-top: 1.5px solid #e6ebf1;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  justify-content: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: #233E57;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.01rem;
  text-decoration: none;
  position: relative;
  padding: 0 4px;
  opacity: 0.90;
  transition: color 0.16s, opacity 0.13s;
}
.footer-nav a:hover { color: #72B01D; opacity: 1;}
.footer-contact {
  display: flex;
  flex-direction: row;
  gap: 9px;
  font-size: 0.99rem;
  color: #233E57;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-contact a {
  color: #72B01D;
  text-decoration: underline;
}
.footer-contact a:hover { color: #233E57; }
.footer-copy {
  text-align: center;
  opacity: 0.7;
  font-size: 0.97rem;
  padding: 0 0 20px 0;
  color: #233E57;
}

/* ==== INFO HINT ==== */
.info-hint {
  background: #FAFAF2;
  padding: 17px 18px;
  border-radius: 8px;
  border-left: 5px solid #72B01D;
  color: #233E57;
  margin-top: 18px;
  font-size: 1.02rem;
}

/* ==== COOKIE BANNER & MODAL ==== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: linear-gradient(90deg,#233E57 70%,#FFD966 150%);
  color: #fff;
  box-shadow: 0 -3px 18px 0 rgba(35,62,87,0.14);
  z-index: 10002;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  padding: 17px 28px 17px 20px;
  font-size: 1rem;
  justify-content: space-between;
  animation: slideInBanner 0.38s ease-in both;
}
@keyframes slideInBanner {
  from {transform: translateY(64px);opacity:0.3;}
  to {transform: translateY(0);opacity:1;}
}
.cookie-banner-buttons {
  display: flex;
  gap: 13px;
}
.cookie-banner button {
  font-size: 1rem;
  border: none;
  padding: 9px 20px;
  border-radius: 21px;
  font-family: inherit;
  font-weight: 700;
  margin: 0 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.13s;
}
.cookie-accept {
  background: #FFD966;
  color: #233E57;
}
.cookie-accept:hover, .cookie-accept:focus {
  background: #72B01D;
  color: #fff;
}
.cookie-reject {
  background: #fff;
  color: #233E57;
  border: 2px solid #FFD966;
}
.cookie-reject:hover, .cookie-reject:focus {
  background: #FFD966;
  color: #233E57;
}
.cookie-settings {
  background: #72B01D;
  color: #fff;
}
.cookie-settings:hover, .cookie-settings:focus {
  background: #233E57;
  color: #FFD966;
}

.cookie-modal {
  position: fixed;
  left: 50%;
  bottom: 50%;
  transform: translate(-50%,48vh);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 7px 38px 0 rgba(35,62,87,0.25);
  min-width: 325px;
  max-width: 92vw;
  padding: 34px 22px 30px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 11000;
  animation: modalPop .28s cubic-bezier(0.73,0,0.33,1) both;
}
@keyframes modalPop {
  from { opacity: 0.18; transform: translate(-50%,56vh) scale(0.93); }
  to   { opacity: 1;   transform: translate(-50%,48vh) scale(1); }
}
.cookie-modal h2 {
  font-size: 1.26rem;
  color: #233E57;
  margin-bottom: 6px;
}
.cookie-modal-category {
  background: #f6fbe6;
  border-radius: 9px;
  padding: 13px 13px 9px 13px;
  margin-bottom: 11px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 1rem;
  color: #233E57;
}
.cookie-modal input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: #72B01D;
  border-radius: 3px;
}
.cookie-modal input[disabled] {
  accent-color: #FFD966;
  opacity: 0.77;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 7px;
}
.cookie-modal button {
  font-size: 1rem;
  border-radius: 18px;
  padding: 8px 18px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  border: 2px solid #FFD966;
  color: #233E57;
  transition: background 0.16s, color 0.16s;
}
.cookie-modal button.cookie-accept {
  background: #72B01D;
  color: #fff;
  border: none;
}
.cookie-modal button.cookie-accept:hover, .cookie-modal button.cookie-accept:focus {
  background: #FFD966;
  color: #233E57;
}
.cookie-modal button.cookie-reject:hover {
  background: #FFD966;
  color: #233E57;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.35rem;
  background: none;
  border: none;
  color: #233E57;
  cursor: pointer;
}

/* ==== RESPONSIVE (MOBILE FIRST) ==== */
@media (max-width: 1024px) {
  .container { max-width: 98vw; }
  .main-nav { gap: 18px; }
  .footer-nav { gap: 13px; }
  .feature-grid, .team-grid { gap: 16px; }
}
@media (max-width: 900px) {
  .main-nav, .footer-nav, .footer-contact {
    flex-wrap: wrap;
  }
  .team-grid, .feature-grid, .card-grid, .content-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
  .footer-contact { flex-direction: column; align-items: center; gap: 3px; }
}

@media (max-width: 768px) {
  html { font-size: 15px; }
  body {
    font-size: 0.97rem;
  }
  .container { padding: 0 8px; }
  .section { padding: 28px 5px; margin-bottom: 34px; }
  .content-wrapper { gap: 20px; }
  .card-container, .feature-grid, .team-grid, .card-grid, .content-grid {
    flex-direction: column !important;
    gap: 13px;
  }
  .testimonial-card, .card, .feature-item, .trainer-profile {
    margin-left: auto;
    margin-right: auto;
  }
  .text-image-section { flex-direction: column; gap: 13px; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.45rem; }
  .services-list li, .benefits-list li {
    font-size: 1rem;
    padding: 14px 10px;
  }
  .footer-nav { flex-direction: column; gap: 7px; }
  .footer-contact { gap: 1px; font-size: 0.95rem; }
  .cookie-banner { flex-direction: column; gap: 13px; padding: 15px 9px 15px 9px; }
}
@media (max-width: 700px) {
  .main-nav { display: none !important; }
  .cta-btn {
    margin-left: 0;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header { flex-direction: row; gap: 4px; justify-content: flex-start; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  .section { padding: 18px 2px; }
  .footer-copy { font-size: 0.93rem; }
  .faq-item { padding: 10px 6px; }
}

/* ==== MISC ELEMENTS ==== */
ul, ol {
  margin-left: 15px;
  margin-bottom: 12px;
}
li {
  margin-bottom: 7px;
}
table {
  border-spacing: 0;
}

::-webkit-input-placeholder { color: #b6bfc0; }
::-moz-placeholder { color: #b6bfc0; }
:-ms-input-placeholder { color: #b6bfc0; }
::placeholder { color: #b6bfc0; }

/* ==== Z-INDEX LAYERING ==== */
header { z-index: 100; }
.mobile-menu, .cookie-modal { z-index: 9999; }
.cookie-banner { z-index: 9000; }

/* ==== VISUAL HIERARCHY AND MICROANIMATIONS ==== */
.card, .feature-item, .testimonial-card, .trainer-profile {
  transition: box-shadow .21s, background .14s, transform .1s;
}
.card:active, .feature-item:active, .testimonial-card:active, .trainer-profile:active {
  transform: scale(0.99);
}

/* ==== ACCESSIBLITY ==== */
*:focus {
  outline: 2px solid #FFD966;
  outline-offset: 1.5px;
  transition: outline 0.3s;
}

/* ==== GRADIENT MODERN Custom accents ==== */
section { background: none; }
/* Add subtle gradient backgrounds to hero CTAs */
section:first-of-type {
  background: linear-gradient(87deg,#fff 60%,#f6ffe1 120%);
  border-radius: 0 0 30px 30px;
}
/* Add accent under lines on h2 */
h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 5px;
}
h2:after {
  content: '';
  display: block;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg,#FFD966,#72B01D 60%);
  border-radius: 2px;
  margin: 12px auto 0 auto;
  opacity: 0.23;
}

/* Hide cookie-modal by default */
.cookie-modal { display: none; }

/* === Utility classes for JS toggle states === */
.mobile-menu.active,
.mobile-menu[aria-expanded="true"],
.cookie-modal.active {
  display: flex !important;
}
body.modal-open { overflow: hidden; }

/*******************************************/
/* ==== END FitDaheim - Gradient Modern ==== */