/* --------------------- 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, menu, 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, 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;
}
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body, html { width: 100%; height: 100%; }
body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #333;
  background: #FFF;
  line-height: 1.5;
  font-size: 16px;
  min-height: 100vh;
  scroll-behavior: smooth;
}
img, video { max-width: 100%; height: auto; border-radius: 12px; }
ul, ol { list-style: none; padding-left: 0; }
a { color: #195B8A; text-decoration: none; transition: color .25s; }
a:hover, a:focus { color: #1C7D3B; outline: none;}
input, button, textarea, select {
  font: inherit; color: inherit; background: none; border: none;
}
button { cursor: pointer; }

/* ------------------- BRAND COLORS & VARIABLES -------------------------- */
:root {
  --color-primary: #195B8A;
  --color-secondary: #E7F1F8;
  --color-white: #FFFFFF;
  --color-accent: #1C7D3B;
  --color-accent2: #26B25A;
  --color-warm1: #FEF6ED;
  --color-warm2: #FFE5CF;
  --color-shadow: rgba(33, 40, 70, 0.08);
  --color-shadow-strong: rgba(33, 40, 70, 0.15);
}

/* ------------------------ TYPOGRAPHY ----------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Open+Sans:wght@400;600&display=swap');
h1, h2, h3, h4, .cta-button {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.01em;
}
h1 { font-size: 2.5rem; margin-bottom: 16px; }
h2 { font-size: 2rem; margin-bottom: 12px; }
h3 { font-size: 1.3rem; margin-bottom: 10px; }
h4 { font-size: 1.1rem; margin-bottom: 8px; }
p, ul, ol { font-size: 1rem; margin-bottom: 10px; color: #333; }
strong, b { color: var(--color-primary); font-weight: bold; }
blockquote {
  font-style: italic;
  background: var(--color-warm1);
  color: #333;
  border-left: 4px solid var(--color-accent2);
  padding: 16px 24px;
  margin-bottom: 12px;
  border-radius: 12px 24px 24px 12px;
}
small { font-size: 0.9em; color: #666; }

/* ---------------------------- LAYOUT ----------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-white);
  border-radius: 24px;
  box-shadow: 0 2px 16px var(--color-shadow);
}
@media (max-width: 768px) {
  section, .section { padding: 30px 8px; margin-bottom: 30px; }
}

/* ------------------- FLEXBOX UTILITY PATTERNS ------------------------- */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card {position: relative; margin-bottom: 20px; border-radius: 20px; box-shadow: 0 2px 8px var(--color-shadow); background: var(--color-warm2); padding: 24px; transition: box-shadow .25s;}
.card:hover { box-shadow: 0 4px 24px var(--color-shadow-strong); }
.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;
}
@media (max-width: 768px) {
  .content-grid, .text-image-section {
    flex-direction: column !important;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-warm1);
  border-radius: 22px;
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 20px;
  min-width: 0;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ----------------- MAIN NAVIGATION STYLING ---------------------------- */
header {
  background: var(--color-white);
  box-shadow: 0 2px 8px var(--color-shadow);
  position: sticky;
  top: 0; left: 0; width: 100%; z-index: 99;
}
.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.main-nav > a img {
  display: block;
  height: 48px;
  border-radius: 10px;
  background: var(--color-secondary);
  padding: 5px 10px;
  transition: box-shadow .25s;
}
.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin: 0;
}
.main-nav ul li a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  background: none;
  font-size: 1rem;
  border-radius: 16px;
  padding: 6px 18px;
  transition: background .22s, color .22s;
}
.main-nav ul li a:hover,
.main-nav ul li a:focus {
  background: var(--color-secondary);
  color: var(--color-accent);
}
.cta-button {
  display: inline-block;
  background: var(--color-accent2);
  color: var(--color-white);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 32px;
  box-shadow: 0 3px 12px var(--color-shadow-strong);
  font-size: 1.1rem;
  letter-spacing: .03em;
  transition: background .18s, box-shadow .20s, transform .18s;
  border: none;
  outline: none;
}
.cta-button:hover, .cta-button:focus {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 6px 28px var(--color-shadow-strong);
  transform: translateY(-2px) scale(1.03);
}
/* ------------------ MOBILE MENU: HAMBURGER ----------------------------- */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent2);
  color: var(--color-white);
  font-size: 2.2rem;
  padding: 6px 18px;
  border-radius: 80px;
  border: none;
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 102;
  transition: background .2s;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: var(--color-primary);
}
@media (max-width: 1020px) {
  .main-nav ul { display: none; }
  .cta-button { display: none; }
  .mobile-menu-toggle { display: block; }
}
/* ----------------- MOBILE MENU OVERLAY AND NAV ------------------------ */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--color-warm2);
  z-index: 110;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform .33s cubic-bezier(0.73,0.01,0.39,0.97), opacity .29s, visibility .29s;
  box-shadow: -6px 0 32px var(--color-shadow-strong);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}
.mobile-menu-close {
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 2rem;
  display: flex; align-items: center; justify-content: center;
  border: none;
  margin-left: 18px;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background .2s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--color-accent2);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 24px 24px 0 24px;
}
.mobile-nav a {
  padding: 12px 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--color-primary);
  background: none;
  font-size: 1.2rem;
  width: 100%;
  border-radius: 15px;
  transition: background .18s, color .18s;
  margin-bottom: 8px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-secondary);
  color: var(--color-accent2);
}
/* Overlay darken effect when mobile-menu is open */
.mobile-menu.open:before {
  content: '';
  display: block;
  position: fixed; z-index: -1;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(20,33,38,0.12);
}

/* -------------- HERO SECTION and GENERIC FLEX UTILS -------------------- */
.hero {
  background: linear-gradient(120deg, var(--color-secondary) 35%, var(--color-warm2) 100%);
  text-align: center;
  margin-bottom: 60px;
  border-radius: 28px;
  box-shadow: 0 2px 18px var(--color-shadow-strong);
}
.hero .container {
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding-top: 40px; padding-bottom: 40px;
}
.hero h1 {
  color: var(--color-primary);
  font-size: 2.2rem;
  margin-bottom: 16px;
}
.hero p {
  font-size: 1.13rem;
  margin-bottom: 28px;
  color: #444;
}
.hero .cta-button { font-size: 1.15rem; padding: 15px 36px; }

/* ---- Feature sections, highlight grids, advantage grid ----------------- */
.feature-grid, .advantages-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 18px;
}
.feature-grid > div, .advantages-grid > div {
  flex: 1 1 210px;
  min-width: 210px;
  background: var(--color-warm2);
  border-radius: 22px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 28px 24px 20px 24px;
  display: flex; flex-direction: column; align-items: center;
  transition: box-shadow .22s, transform .22s;
}
.feature-grid > div:hover, .advantages-grid > div:hover {
  box-shadow: 0 8px 38px var(--color-shadow-strong);
  transform: translateY(-2px) scale(1.025);
}
.feature-grid img, .advantages-grid img {
  width: 48px; height: 48px; margin-bottom: 12px;
}
.feature-grid h3, .advantages-grid p {
  margin-bottom: 7px; text-align: center;
}
.advantages-grid p {
  font-size: 1.06em; color: #333;
}

/* ------------------- ANNOUNCEMENTS & UPDATES --------------------------- */
.announcement-list {
  background: var(--color-warm1);
  border-radius: 20px;
  box-shadow: 0 2px 10px var(--color-shadow);
  padding: 20px 24px;
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.announcement-list li {
  margin-bottom: 10px;
  padding-left: 5px;
}
.schedule-preview {
  text-align: center;
  background: var(--color-warm2);
  border-radius: 18px;
  box-shadow: 0 1px 6px var(--color-shadow);
  padding: 18px 16px 18px 16px;
  margin-top: 10px;
  display: flex; flex-direction: column; align-items: center;
  gap: 12px;
}
.schedule-preview p { margin-bottom: 0; }

/* --------------------- TESTIMONIALS ----------------------------------- */
.testimonials .content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.testimonial-card {
  background: var(--color-warm2);
  color: #222;
  border: 2px solid var(--color-accent2);
  box-shadow: 0 2px 12px var(--color-shadow);
  border-radius: 24px;
  max-width: 550px;
}
.testimonial-card blockquote {
  border: none;
  background: none;
  color: #222;
  font-size: 1.13rem;
  margin-bottom: 0;
  padding: 0;
}
.testimonial-meta {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1em;
  color: var(--color-primary);
}
/* High-contrast text for testimonials */
@media (max-width: 600px) {
  .testimonial-card {
    padding: 14px;
    font-size: 1em;
  }
}

/* ------------------- CTA & JOIN SECTIONS ------------------------------ */
.cta-section, .cta-join {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-warm1);
  border-radius: 28px;
  box-shadow: 0 2px 18px var(--color-shadow-strong);
}
.cta-section .content-wrapper, .cta-join .content-wrapper {
  align-items: center;
  text-align: center;
  gap: 20px;
}
.cta-section h2, .cta-join h2 {
  color: var(--color-accent);
  font-size: 2.1rem;
}
.cta-section p, .cta-join p {
  font-size: 1.08em;
}

/* -------------------------------- FOOTER ------------------------------ */
footer {
  margin-top: 40px;
  background: var(--color-primary);
  color: var(--color-white);
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  box-shadow: 0 -3px 24px var(--color-shadow-strong);
  padding: 32px 0 0 0;
}
.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 20px;
}
.footer-nav ul li a {
  color: var(--color-white);
  background: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border-radius: 14px;
  padding: 6px 14px;
  transition: background .21s;
}
.footer-nav ul li a:hover, .footer-nav ul li a:focus {
  background: var(--color-accent2);
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: flex-start;
  font-size: 1rem;
  margin-bottom: 18px;
}
.footer-contact > div {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  padding: 4px 0;
}
.footer-contact img {
  width: 22px; height: 22px; background: #fff5; border-radius: 8px; padding: 2px 3px;
}
.footer-logo {
  display: flex; justify-content: center; margin: 24px 0 6px 0;
}
.footer-logo img { height: 38px; background: #fff5; border-radius: 9px; padding: 3px 1px; }
.copyright {
  text-align: center;
  font-size: 0.95em;
  color: #C1D1E7;
  letter-spacing: 0.02em;
  padding-bottom: 12px;
}

/* ----------------------- CONTACT / FORM AREA --------------------------- */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.input_fields ul { display: flex; flex-direction: column; gap: 16px; padding: 0 0 10px 0; }
.privacy_note small a {
  color: var(--color-accent2);
  text-decoration: underline;
}
.submit_button {
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
}

/* -------------------- PRICING TABLE (Mitgliedschaft) ------------------- */
.pricing_table table {
  width: 100%;
  background: var(--color-warm2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 8px var(--color-shadow);
  border-collapse: separate;
  margin-bottom: 20px;
}
.pricing_table th, .pricing_table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 1rem;
}
.pricing_table th {
  background: var(--color-accent2);
  color: var(--color-white);
  font-weight: bold;
}
.pricing_table tr:nth-child(even) td {
  background: #fff8f0;
}
.pricing_table tr:nth-child(odd) td {
  background: #fdeedf;
}

/* ------------------ SCHEDULE, TIMETABLE & FAQ SECTIONS ----------------- */
.timetable-display ul { display: flex; flex-direction: column; gap: 7px; padding-bottom: 8px; }
.filter_by_sport { background: var(--color-secondary); border-radius: 11px; padding: 12px 14px; margin-top: 10px; display: flex; flex-direction: column; }
.filter_by_sport h3 { color: var(--color-accent2); font-size: 1.1em; margin-bottom: 6px; }
.instructor_list { margin-top: 16px; }
.instructor_list ul { display: flex; flex-direction: column; gap: 8px; }
.change_log ul { display: flex; flex-direction: column; gap: 7px; }
.last_update_date { font-size: 0.95rem; color: #888; margin-top: 7px; }

.faq-snippets {
  background: var(--color-warm1);
  border-radius: 18px;
  box-shadow: 0 1px 5px var(--color-shadow);
  padding: 18px 18px 12px 18px;
  margin-top: 10px;
}
.faq-snippets h3 { color: var(--color-accent); margin-bottom: 8px; }
.faq-snippets ul { display: flex; flex-direction: column; gap: 8px; }

/* ------------------------ COOKIES CONSENT BANNER ----------------------- */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: var(--color-warm2);
  color: #222;
  box-shadow: 0 -2px 22px var(--color-shadow-strong);
  padding: 18px 16px 18px 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
  z-index: 9000;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  font-size: 1rem;
  opacity: 1;
  transition: opacity .3s, transform .4s cubic-bezier(.57,.18,.43,.96);
}
#cookie-consent-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(90px);
}
.cookie-actions {
  display: flex;
  gap: 14px;
}
.cookie-btn {
  padding: 10px 19px;
  border-radius: 22px;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--color-accent2);
  color: var(--color-white);
  font-size: 1rem;
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background .20s, transform .20s;
}
.cookie-btn:focus, .cookie-btn:hover {
  background: var(--color-accent);
  transform: translateY(-1px) scale(1.03);
}
.cookie-settings {
  background: var(--color-primary);
  color: var(--color-white);
  margin-left: 8px;
}
.cookie-settings:focus, .cookie-settings:hover {
  background: var(--color-accent2);
}
.cookie-decline {
  background: #FE6682;
  color: #fff;
}
.cookie-decline:focus, .cookie-decline:hover {
  background: #d63a55;
}
/* Cookie modal popup styling */
#cookie-modal {
  position: fixed;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(32,42,64,0.10);
  z-index: 9100;
  display: none;
  align-items: center;
  justify-content: center;
}
#cookie-modal.open {
  display: flex;
  animation: modal-fade-in .32s cubic-bezier(0.5,1.21,0.27,0.94);
}
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
#cookie-modal .modal-content {
  background: var(--color-warm2);
  color: #222;
  border-radius: 22px;
  box-shadow: 0 2px 32px var(--color-shadow-strong);
  padding: 36px 28px 28px 28px;
  min-width: 325px;
  max-width: 94vw;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
#cookie-modal .close {
  position: absolute;
  right: 18px;
  top: 14px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background .19s;
}
#cookie-modal .close:hover, #cookie-modal .close:focus {
  background: var(--color-accent2);
}
.cookie-category {
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.cookie-category input[type=checkbox] {
  accent-color: var(--color-accent2);
  width: 20px; height: 20px; margin: 0 5px;
}
.cookie-category label {
  font-weight: 600;
  color: var(--color-primary);
}
.cookie-essential {
  opacity: 0.7;
}

/* ------------------- RESPONSIVE DESIGN RULES -------------------------- */
@media (max-width: 1020px) {
  .main-nav { flex-wrap: wrap; }
}
@media (max-width: 880px) {
  .footer-contact { flex-direction: column; gap: 7px; align-items: flex-start; }
}
@media (max-width: 768px) {
  .container {
    padding-left: 10px; padding-right: 10px;
  }
  .card-container, .feature-grid, .advantages-grid, .footer-nav ul {
    flex-direction: column; flex-wrap: wrap;
    align-items: stretch;
    gap: 16px;
  }
  .main-nav > a img {
    height: 36px;
  }
  .footer-logo img { height: 28px; }
  .pricing_table th, .pricing_table td { padding: 8px 8px; }
  .footer-nav ul { gap: 12px; }
  .section, section {
    padding: 18px 2px;
    margin-bottom: 20px;
  }
  .cta-button { padding: 11px 14px; font-size: 1rem; }
}
@media (max-width: 520px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1.05rem; }
  .testimonial-card { font-size: 0.95rem; }
  .modal-content { min-width: 94vw; font-size: 1rem; }
}

/* --------------------- MICRO-INTERACTIONS ---------------------------- */
/* Only transitions, transform and hover/focus already applied above */

/* --------------------- VISUAL ENHANCEMENTS --------------------------- */
.card, .feature-grid > div, .advantages-grid > div, .testimonial-card, .faq-snippets, .schedule-preview, .announcement-list, .modal-content {
  transition: box-shadow .19s, transform .13s;
}

/* ------------------ VISUAL ADJUSTMENTS FOR SECTION HEADINGS ---------- */
.section > h2, section > h2 {
  color: var(--color-accent);
  margin-bottom: 14px;
}

a:focus, button:focus, .cta-button:focus {
  outline: 2px solid var(--color-accent2);
  outline-offset: 2px;
}

/* --------------- Z-INDEX STRATEGY FOR MENUS AND OVERLAYS ------------- */
header { z-index: 90; }
.mobile-menu { z-index: 110; }
#cookie-modal { z-index: 9100; }
#cookie-consent-banner { z-index: 9000; }

/* ---------------------- ACCESSIBILITY IMPROVEMENTS ------------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ------------------- MANDATORY SPACING ENFORCEMENT ------------------ */
.card-container, .feature-grid, .advantages-grid, .content-grid, .testimonials .content-wrapper, .testimonial-card, .section, section {
  margin-bottom: 20px;
}
.card-container, .feature-grid, .advantages-grid, .content-grid {
  gap: 24px;
}
