/* ==================================================================
   CSS RESET & BASE TYPOGRAPHY (Monochrome Sophisticated)
   ================================================================== */
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;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
  background: #fff;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  color: #212121;
  background: #fff;
  line-height: 1.6;
  min-height: 100vh;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}
a {
  color: #111;
  text-decoration: none;
  transition: color 0.2s cubic-bezier(.4,0,.2,1);
}
a:focus {
  outline: 2px solid #153075;
  outline-offset: 2px;
}
button, input, textarea, select {
  font: inherit;
  outline: none;
}
ul, ol {
  margin-left: 22px;
}
strong {
  font-weight: 600;
  color: #111;
}

/* ==================================================================
   COLORS, BRANDING & VARIABLES
   ================================================================== */
:root {
  --primary: #111;
  --primary-dark: #0b0b0c;
  --secondary: #4d4d4d;
  --accent: #f8f9fa;
  --brand-blue: #153075;
  --brand-green: #49B675;
  --gray-100: #fafbfc;
  --gray-200: #ececec;
  --gray-300: #d2d2d4;
  --gray-400: #b1b1b3;
  --gray-500: #8b8b8d;
  --gray-700: #33343a;
  --white: #fff;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-strong: 0 8px 24px rgba(0,0,0,0.12);
}

/* ==================================================================
   LAYOUT: CONTAINER, SECTIONS & RESPONSIVE
   ================================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (max-width: 800px) {
  .container {
    padding: 0 12px;
  }
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
    border-radius: 12px;
  }
}
@media (max-width: 480px) {
  .section {
    margin-bottom: 28px;
    padding: 18px 2px;
    border-radius: 8px;
  }
}

/* ==================================================================
   TYPOGRAPHY: MONTSERRAT for display, ROBOTO for body
   ================================================================== */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -1px;
}
h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
h4, h5 {
  font-size: 1.125rem;
  margin-bottom: 6px;
}
.subheadline,
.thankyou-message {
  font-size: 1.17rem;
  color: var(--secondary);
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 8px;
}
p, ul, ol, li, .faq-list, .news-teaser, .event-teaser {
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: var(--primary);
  line-height: 1.7;
}
small {
  font-size: 0.92rem;
  color: var(--gray-400);
}

@media (max-width: 800px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.05rem;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.25rem;
  }
  h2 {
    font-size: 1.05rem;
  }
}

/* Spacing for headings */
h1, h2, h3, h4, h5 {
  margin-top: 0;
}

/* ==================================================================
   FLEX LAYOUTS (MANDATORY) & GAPS
   ================================================================== */
.card-container, .feature-grid, .news-teaser-grid, .club-descriptions ul, .timetable-list, .service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.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) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 260px;
  min-width: 220px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
}
.feature-item:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-4px);
}
.news-teaser-grid, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.news-teaser {
  background: var(--gray-100);
  padding: 12px 18px;
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 600;
}
.event-teaser {
  background: var(--accent);
  border-left: 4px solid var(--brand-blue);
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--primary);
}
.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  padding: 24px;
  transition: box-shadow 0.18s cubic-bezier(.4,0,.2,1), transform 0.18s cubic-bezier(.4,0,.2,1);
}
.card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-3px);
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 900px) {
  .feature-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .content-grid {
    flex-direction: column;
    gap: 10px;
  }
}

/* ==================================================================
   BUTTONS & CALL-TO-ACTION
   ================================================================== */
.cta-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--primary);
  color: var(--white);
  border-radius: 36px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  letter-spacing: 0.5px;
  font-size: 1.11rem;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
  cursor: pointer;
  margin-top: 18px;
  transition: background 0.16s, box-shadow 0.2s, color 0.16s, transform 0.13s;
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--brand-blue);
  color: var(--accent);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 24px rgba(21,48,117,.09);
}
.cta-primary:active {
  background: var(--primary-dark);
  color: var(--gray-300);
}

/* ==================================================================
   HEADER (NAVIGATION / MOBILE MENU ICON)
   ================================================================== */
header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 0;
}
header .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 12px;
}
header nav.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
header nav.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 600;
  transition: color 0.13s cubic-bezier(.4,0,.2,1);
  position: relative;
  padding-bottom: 2px;
}
header nav.main-nav a:hover, header nav.main-nav a:focus {
  color: var(--brand-blue);
}
header .cta-primary {
  margin: 0 0 0 30px;
  padding: 12px 24px;
  font-size: 1rem;
}
header img[alt="SportHeld Hannover"] {
  height: 40px;
  width: auto;
  margin-right: 16px;
}

/* Hide mobile menu toggle on desktop */
.mobile-menu-toggle {
  display: none;
}
@media (max-width: 1000px) {
  header .container {
    flex-wrap: wrap;
    gap: 6px;
  }
  header nav.main-nav {
    gap: 14px;
  }
  header .cta-primary {
    margin-left: 8px;
  }
}
@media (max-width: 820px) {
  header .container {
    flex-direction: row;
    padding: 8px 10px;
  }
  header nav.main-nav {
    display: none;
  }
  header .cta-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 24px;
    top: 22px;
    z-index: 3004;
    background: var(--accent);
    font-size: 2rem;
    border: none;
    color: var(--primary);
    padding: 8px 10px 6px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: background 0.15s;
  }
  .mobile-menu-toggle:hover,
  .mobile-menu-toggle:focus {
    background: var(--gray-200);
    outline: 2px solid var(--brand-blue);
  }
}

/* ==================================================================
   MOBILE MENU (SLIDE-IN WITH FLEXBOX)
   ================================================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 94vw;
  max-width: 375px;
  height: 100vh;
  background: var(--white);
  box-shadow: -8px 2px 32px rgba(0,0,0,0.23);
  z-index: 4000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(110%);
  transition: transform 0.32s cubic-bezier(.7,0,.21,1);
  padding: 0 0 36px 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 17px 14px 2px 0;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--primary);
  cursor: pointer;
  z-index: 4100;
  padding: 4px 10px;
  transition: color 0.17s;
  border-radius: 50%;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--brand-blue);
  background: var(--gray-200);
  outline: 2px solid var(--brand-blue);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 18px 24px;
  width: 100%;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.17rem;
  color: var(--primary);
  font-weight: 600;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-300);
  transition: color 0.17s;
}
.mobile-nav a:last-child {
  border-bottom: none;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--brand-blue);
  background: var(--gray-100);
}
@media (min-width: 821px) {
  .mobile-menu { display: none !important; }
  .mobile-menu-toggle { display: none !important; }
}

/* Overlay to darken background when mobile menu open */
body.menu-open {
  overflow: hidden;
}
body.menu-open:after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.29);
  z-index: 3990;
  pointer-events: auto;
}

/* ==================================================================
   FOOTER
   ================================================================== */
footer {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 0 0 24px 0;
  margin-top: 40px;
}
footer .container {
  display: flex;
  flex-direction: row;
  gap: 32px;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 20px 0 20px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.14s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--brand-blue);
}
.contact-info {
  font-size: 1rem;
  color: var(--gray-500);
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.contact-info img {
  height: 18px; width: 18px; vertical-align: middle; margin-right: 5px;
}
.social-media-links {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 24px;
}
.social-media-links a img {
  border-radius: 50%;
  background: var(--gray-200);
  padding: 7px;
  height: 32px;
  width: 32px;
  transition: background 0.17s;
}
.social-media-links a:hover img,
.social-media-links a:focus img {
  background: var(--brand-blue);
}
.footer-legal {
  margin-top: 18px;
  flex-basis: 100%;
}
@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    padding: 24px 10px 0 10px;
  }
  .footer-legal { margin-top: 24px; }
}

/* ==================================================================
   SPECIAL BLOCKS, LISTS, FAQS
   ================================================================== */
.key-facilities, .service-list, .feature-list, .timetable-list, .faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  list-style: disc;
  margin: 18px 0 10px 18px;
  color: var(--primary);
  font-family: 'Roboto', Arial, Helvetica, sans-serif;
}
.faq-list > div {
  background: var(--gray-200);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 6px;
}
.course-descriptions h3 {
  margin-top: 18px;
}

/* ==================================================================
   TESTIMONIALS / DISTINCTIVE CARDS (Make sure text stays dark on light!)
   ================================================================== */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 20px;
  color: var(--primary);
}
.testimonial-card .testimonial-attribution {
  font-size: 0.97rem;
  color: var(--gray-500);
  font-style: italic;
}

/* ==================================================================
   UTILITY: MARGINS, GAPS, SEPARATORS
   ================================================================== */
.mt-1 { margin-top: 8px !important; }
.mt-2 { margin-top: 16px !important; }
.mt-3 { margin-top: 32px !important; }
.mb-1 { margin-bottom: 8px !important; }
.mb-2 { margin-bottom: 16px !important; }
.mb-3 { margin-bottom: 32px !important; }
.gap-1 { gap: 8px !important; }
.gap-2 { gap: 16px !important; }
.gap-3 { gap: 32px !important; }

hr {
  border: none;
  border-top: 1px solid var(--gray-300);
  margin: 18px 0;
}

/* ==================================================================
   COOKIE CONSENT BANNER (Fixed)
   ================================================================== */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8000;
  background: var(--white);
  color: var(--primary);
  padding: 18px 20px 18px 20px;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  justify-content: center;
}
.cookie-consent-banner .cookie-text {
  flex: 1 1 auto;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-consent-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  flex-shrink: 0;
}
.cookie-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 26px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 600;
  padding: 10px 22px;
  margin: 0 2px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0,0,0,0.09);
  transition: background 0.15s, color 0.15s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--brand-blue);
  color: var(--accent);
}
.cookie-btn.secondary {
  background: var(--gray-400);
  color: var(--white);
}
.cookie-btn.secondary:hover, .cookie-btn.secondary:focus {
  background: var(--secondary);
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 15px 10px 16px 10px;
  }
}

/* Cookie Consent Modal */
.cookie-modal-backdrop {
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(0,0,0,0.23);
  z-index: 8200;
  display: none;
  align-items: center;
  justify-content: center;
}
.cookie-modal-backdrop.open {
  display: flex;
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  min-width: 320px;
  max-width: 94vw;
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  padding: 32px 30px 24px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: cookieModalFadeIn 0.32s cubic-bezier(.7,0,.21,1);
}
@keyframes cookieModalFadeIn {
  from {opacity:0; transform: scale(.92);}
  to {opacity:1; transform: scale(1);}
}
.cookie-modal h2 {
  font-size: 1.35rem;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
}
.cookie-category .cookie-toggle {
  margin-left: auto;
  background: var(--gray-200);
  border-radius: 23px;
  width: 38px;
  height: 20px;
  cursor: pointer;
  position: relative;
  outline: none;
  border: none;
  transition: background 0.13s;
}
.cookie-category .cookie-toggle[aria-checked="true"] {
  background: var(--brand-green);
}
.cookie-category .cookie-toggle .toggle-ball {
  position: absolute;
  left: 2px; top: 2px;
  width: 16px; height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: left 0.15s cubic-bezier(.4,0,.2,1);
}
.cookie-category .cookie-toggle[aria-checked="true"] .toggle-ball {
  left: 20px;
}
.cookie-modal .modal-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 16px;
}
.cookie-modal .cookie-btn {
  min-width: 100px;
}
.cookie-modal .modal-close {
  position: absolute;
  right: 18px;
  top: 12px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.12s;
  border-radius: 50%;
  padding: 4px;
}
.cookie-modal .modal-close:hover {
  color: var(--brand-blue);
  background: var(--gray-100);
}

/* ==================================================================
   ANIMATIONS, INTERACTIONS
   ================================================================== */
.cta-primary, .cookie-btn, .feature-item, .card, .mobile-menu {
  transition-property: background, box-shadow, color, transform;
  transition-duration: 0.13s;
  transition-timing-function: cubic-bezier(.4,0,.2,1);
}
.section, .card, .feature-item, .testimonial-card,
.news-teaser, .event-teaser {
  animation: contentFadeIn .43s cubic-bezier(.65,.05,.36,1) backwards;
}
@keyframes contentFadeIn {
  from {opacity:0; transform: translateY(22px);}
  to {opacity:1; transform: none;}
}

/* ==================================================================
   MISCELLANEOUS OVERRIDES & ACCESSIBILITY
   ================================================================== */
::-webkit-input-placeholder { color: var(--gray-400); }
::-moz-placeholder { color: var(--gray-400); }
:-ms-input-placeholder { color: var(--gray-400); }
::placeholder { color: var(--gray-400); }

/* Hide scrollbars for smoother monochrome look on overlays */
.mobile-menu, .cookie-modal { scrollbar-width: none; }
.mobile-menu::-webkit-scrollbar, .cookie-modal::-webkit-scrollbar { display: none; }

/* Make all interactive elements keyboard accessible */
button:focus, .cta-primary:focus, .cookie-btn:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* =========================== END OF CSS =========================== */
