/* =========================
   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-size: 100%;
    font: inherit;
    vertical-align: baseline;
    box-sizing: border-box;
}
html { scroll-behavior: smooth; }
article,aside,details,figcaption,figure,
footer,header,hgroup,main,menu,nav,section { display: block; }
body { line-height: 1.6; background: #f7f9fb; color: #232B32; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
ul,ol { list-style: disc; margin-left: 1.5em; }

/* =========================
   CUSTOM PROPERTIES
   ========================= */
:root {
  --color-primary: #21568C;
  --color-primary-dark: #15385b;
  --color-secondary: #ffffff;
  --color-accent: #D19600;
  --color-accent-light: #f2b705;
  --color-bg-light: #f7f9fb;
  --color-gray: #708090;
  --color-gray-mid: #ced6e0;
  --color-gray-dark: #232B32;
  --shadow-card: 0 2px 8px rgba(29,49,77,0.10), 0 1.5px 6px rgba(33,86,140,0.08);
  --shadow-hover: 0 4px 16px rgba(29,49,77,0.12), 0 3px 12px rgba(33,86,140,0.08);
  --radius-card: 14px;
  --radius-btn: 8px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Roboto', 'Segoe UI', Arial, Helvetica, sans-serif;
  --transition-btn: background 0.23s, color 0.18s, box-shadow 0.22s;
}

@import url('https://fonts.googleapis.com/css?family=Montserrat:600,700&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

body, html {
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--color-bg-light);
  color: var(--color-gray-dark);
  min-height: 100vh;
  letter-spacing: 0.01em;
  font-smooth: always;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
h1 { font-size: 2.2rem; margin-bottom: 20px; }
h2 { font-size: 1.6rem; margin-bottom: 18px; }
h3 { font-size: 1.25rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.05rem; }
p, ul, ol, li {
  font-family: var(--font-body);
  font-size: 1rem;
  margin-bottom: 14px;
  max-width: 780px;
}
strong { font-weight: 600; }

/* Responsive Typography */
@media (max-width: 540px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.17rem; }
  h3 { font-size: 1rem; }
  body, html { font-size: 15px; }
}

/* =========================
   LAYOUT CONTAINERS & SPACING
   ========================= */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-secondary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

@media (max-width: 768px) {
  .section {
    padding: 28px 10px;
    margin-bottom: 36px;
  }
  .container { padding: 0 10px; }
  .content-wrapper { padding: 0 2px; }
}

/* ============ FLEX SPACING PATTERNS ============ */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-secondary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  min-width: 240px;
  min-height: 170px;
  transition: box-shadow 0.17s;
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-hover);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  width: 100%;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f8fbff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex: 1 1 260px;
  padding: 20px 16px;
  border-radius: var(--radius-card);
  background: #f2f6fa;
  box-shadow: var(--shadow-card);
  min-width: 220px;
  margin-bottom: 20px;
}
.feature-item img {
  width: 44px; height: 44px;
}
@media (max-width: 900px) {
  .content-grid, .card-container { flex-direction: column; gap: 20px; }
  .feature-grid { flex-direction: column; gap: 20px; }
}

/* Custom feature grid for home advantages */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
@media (max-width: 768px) {
  .feature-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section { flex-direction: column; gap: 15px; }
}

/* Larger gap for feature collections on large screens */
@media (min-width: 1000px) {
  .feature-grid { gap: 36px; }
}

.text-section {
  padding: 16px 18px;
  background: #f0f4f8;
  border-radius: var(--radius-card);
  margin-bottom: 18px;
  color: #15385b;
  font-size: 1rem;
}
.highlight-box, .alert-box {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 18px 22px;
  border-radius: var(--radius-btn);
  font-weight: 500;
  margin: 20px 0;
}
.alert-box a { color: var(--color-accent-light); text-decoration: underline; }

/* ================
   HEADER & NAVIGATION
   ================ */
header {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 0;
  border-bottom: 2px solid var(--color-accent);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}
header img {
  height: 48px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.main-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-secondary);
  opacity: 0.85;
  padding: 4px 8px;
  border-radius: 5px;
  transition: background 0.14s, color 0.18s, opacity 0.16s;
}
.main-nav a[aria-current="page"] {
  background: var(--color-accent);
  color: var(--color-primary);
  font-weight: 700;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-primary);
  background: var(--color-accent-light);
  opacity: 1;
}
.cta-btn {
  background: var(--color-accent);
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 10px rgba(209,150,0,.07);
  cursor: pointer;
  transition: var(--transition-btn);
  outline: none;
  display: inline-block;
  margin-left: 18px;
  letter-spacing: 0.03em;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent-light);
  box-shadow: 0 4px 18px rgba(33,86,140,0.15);
}

/* ============
   MOBILE NAV
   ============ */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1050;
  background: var(--color-primary);
  color: var(--color-secondary);
  font-size: 2rem;
  border: none;
  width: 48px; height: 48px;
  border-radius: 50%;
  box-shadow: 0px 3px 14px rgba(33,86,140,0.10);
  cursor: pointer;
  transition: background 0.22s, color 0.13s;
}
.mobile-menu-toggle:active {
  background: var(--color-accent-light);
  color: var(--color-primary);
}

@media (max-width: 1023px) {
  .main-nav, .cta-btn {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    justify-content: flex-start;
  }
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-primary);
  box-shadow: 0 8px 48px rgba(33,86,140,0.30);
  z-index: 1200;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.5,1.6,.4,1);
  padding: 0;
  visibility: hidden;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-secondary);
  font-size: 2rem;
  margin: 22px 24px 10px 0;
  cursor: pointer;
  transition: color 0.18s;
  z-index: 1251;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  color: var(--color-accent-light);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 34px;
  width: 100%;
}
.mobile-nav a {
  color: var(--color-secondary);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  padding: 10px 0 8px 0;
  border-radius: 4px;
  transition: background 0.12s, color 0.13s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--color-accent-light);
  color: var(--color-primary);
}

@media (min-width: 1024px) {
  .mobile-menu, .mobile-menu-toggle { display:none !important; }
}

/* ===============
   HERO SECTIONS
   =============== */
.hero {
  background: linear-gradient(110deg, var(--color-primary) 60%, var(--color-bg-light) 100%);
  color: var(--color-secondary);
  padding: 60px 0 50px 0;
  border-radius: var(--radius-card);
  margin-bottom: 42px;
}
.hero .container, .hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.hero h1, .hero h2 {
  color: var(--color-secondary);
}
.hero p {
  color: #e7eefa;
}
.hero .cta-btn {
  background: var(--color-accent-light);
  color: var(--color-primary-dark);
}
.hero .cta-btn:hover {
  background: var(--color-secondary);
  color: var(--color-accent);
}

@media (max-width: 700px) {
  .hero {
    padding: 30px 0 25px 0;
    border-radius: 0 0 20px 20px;
  }
}

/* ============
   SECTIONS & CARDS
   ============ */
.cta {
  background: var(--color-accent-light);
  color: var(--color-primary);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 36px 12px;
  text-align: center;
  margin-bottom: 44px;
}
.cta h2 { color: var(--color-primary); margin-bottom: 10px; }
.cta p { color: var(--color-primary); margin-bottom: 14px; }
.cta .cta-btn {
  background: var(--color-primary);
  color: var(--color-secondary);
  font-size: 1.08rem;
  margin-left: 0;
}
.cta .cta-btn:hover { background: var(--color-accent); color: var(--color-primary); }

section {
  margin-bottom: 44px;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border: none;
}

.about-summary, .about, .history, .courses, .schedule, .location-info, .clubs, .how-to-join, .notifications, .news-feed, .announcements, .contact, .info, .privacy-policy, .gdpr-policy, .cookie-policy, .terms, .thank-you, .faq, .contact-form, .steps {
  background: var(--color-secondary);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-card);
  padding: 38px 20px;
  margin-bottom: 60px;
}
@media (max-width: 700px) {
  .about-summary, .about, .history, .courses, .schedule, .location-info, .clubs, .how-to-join, .notifications, .news-feed, .announcements, .contact, .info, .privacy-policy, .gdpr-policy, .cookie-policy, .terms, .thank-you, .faq, .contact-form, .steps {
    padding: 20px 7px;
    margin-bottom: 36px;
  }
}

/* ============
   UTILITY CLASSES
   ============ */
.text-center { text-align: center !important; }
.flex { display: flex; }
.align-center { align-items: center; }
.rounded { border-radius: var(--radius-card); }
.shadow { box-shadow: var(--shadow-card); }
.gap-24 { gap: 24px; }
.m-b-20 { margin-bottom: 20px !important; }
.m-b-40 { margin-bottom: 40px !important; }

/* ===============
   FOOTER
   =============== */
footer {
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 40px 0 18px 0;
  border-top: 2px solid var(--color-accent);
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-secondary);
  opacity: 0.7;
  font-size: 1rem;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.18s, background 0.13s, opacity 0.17s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  opacity: 1;
}
.brand-footer {
  margin-top: 12px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 500;
  color: #e7eefa;
}
.brand-footer small {
  display: block;
  font-size: 0.82rem;
  color: #c6d8ef;
}
@media (max-width: 700px) {
  .footer-nav {
    gap: 12px;
    font-size: 0.96rem;
  }
  .brand-footer { font-size: 0.89rem; }
}

/* =============
   FORMS & INPUTS (Kontakt, etc.)
   ============= */
input[type="text"],input[type="email"],textarea,select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--color-gray-mid);
  border-radius: var(--radius-btn);
  background: var(--color-secondary);
  color: var(--color-gray-dark);
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: box-shadow 0.13s, border-color 0.13s;
}
input:focus, textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(33,86,140,0.08);
}
label {
  margin-bottom: 4px;
  color: var(--color-gray-dark);
  font-weight: 500;
}
button, input[type="submit"], input[type="button"] {
  font-family: var(--font-display);
  padding: 10px 22px;
  background: var(--color-primary);
  color: var(--color-secondary);
  border: none;
  border-radius: var(--radius-btn);
  box-shadow: 0 2px 8px rgba(33,86,140,0.08);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-btn);
  margin-top: 6px;
  outline: none;
}
button:hover, button:focus, input[type="submit"]:hover, input[type="submit"]:focus {
  background: var(--color-accent);
  color: var(--color-primary);
}

/* ===============
   MICRO-INTERACTIONS & HOVER STATES
   =============== */
.card, .feature-item, .testimonial-card {
  transition: box-shadow 0.22s, transform 0.14s;
}
.card:hover, .feature-item:hover, .testimonial-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.02);
}

a.cta-btn:active { transform: scale(0.98); }
.mobile-menu a:active { opacity: 0.75; }
input:disabled, button:disabled {
  background: #f0f2f7; color: #b0b7c4; cursor: not-allowed;
}

/* ===================
   COOKIE CONSENT BANNER
   =================== */
.cookie-consent-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  width: 100vw;
  background: var(--color-primary);
  color: var(--color-secondary);
  padding: 24px 14px 18px 14px;
  z-index: 2000;
  display: flex;
  align-items: center;
  flex-direction: row;
  justify-content: center;
  gap: 24px;
  box-shadow: 0 6px 32px 2px rgba(33,86,140,.22);
  animation: cookieSlideIn 0.5s cubic-bezier(.6,1.8,.5,1) 1;
}
@media (max-width: 700px) {
  .cookie-consent-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 8px 16px 8px;
  }
}
.cookie-consent-banner .cookie-btn {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: none;
  border-radius: var(--radius-btn);
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 4px;
  cursor: pointer;
  transition: background 0.17s, color 0.12s, box-shadow 0.22s;
  box-shadow: 0 1.5px 4px rgba(209,150,0,0.09);
}
.cookie-consent-banner .cookie-btn:hover {
  background: var(--color-accent-light);
  color: var(--color-primary);
}
.cookie-consent-banner .cookie-btn-settings {
  background: transparent;
  border: 2px solid var(--color-accent-light);
  color: var(--color-secondary);
  margin-left: 8px;
}
.cookie-consent-banner .cookie-btn-settings:hover {
  background: var(--color-accent-light);
  color: var(--color-primary);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 2500;
  background: rgba(37,49,75,0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.cookie-modal {
  background: #fff;
  width: 98%;
  max-width: 440px;
  border-radius: 16px;
  box-shadow: 0 8px 34px rgba(33,86,140,0.16);
  padding: 32px 28px 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: cookieModalPop 0.3s cubic-bezier(.56,1.4,.4,1) 1;
}
.cookie-modal h2 {
  color: var(--color-primary);
  font-size: 1.35rem;
  margin-bottom: 20px;
  font-weight: 700;
}
.cookie-category {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 13px;
  width: 100%;
  gap: 16px;
}
.cookie-category label {
  flex:1;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-gray-dark);
}
.cookie-category input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 22px;
  height: 22px;
  margin-right: 4px;
}
.cookie-category input[disabled] {
  accent-color: var(--color-gray);
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .cookie-btn {
  min-width: 120px;
  margin-left: 0;
  margin-right: 6px;
}
.cookie-modal .cookie-btn:last-child { margin-right: 0; }

@keyframes cookieSlideIn {
  from { transform: translateY(80px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes cookieModalPop {
  from { transform: scale(.9); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* =====================
   ACCESSIBILITY & MISC
   ===================== */
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
[aria-current="page"] { text-decoration: underline; }
.skip-link {
  position: absolute;
  left: -9999px; top: auto; width: 1px; height: 1px;
  overflow: hidden;
}
.skip-link:focus { left: 8px; top: 8px; width: auto; height: auto; padding: 7px; background: #fff; z-index: 5000; border-radius: 5px; }

/* ==============
   SPECIAL SECTIONS & CARDS
   ============== */

/* Announcement/Highlight Card */
.highlight-box {
  background: linear-gradient(88deg,#21568C 85%, #f2b705 130%);
  color: var(--color-secondary);
  font-size: 1.04rem;
  padding: 18px 22px;
  border-radius: var(--radius-card);
  margin-top: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 1.5px 7px rgba(33,86,140,0.13);
}

/* Alert notification */
.alert-box { background: #E84118; color: #fff; }
.alert-box a { color: var(--color-accent-light); text-decoration: underline; font-weight: 600;}

/* Thank You page highlight */
.thank-you .cta-btn {
  margin-top: 28px;
  background: var(--color-primary);
  color: var(--color-secondary);
}

/* ================
   ICONS IN LISTS AND CONTACT
   ================ */
li img {
  display: inline-block;
  vertical-align: text-bottom;
  width: 22px;
  height: 22px;
  margin-right: 9px;
}
ul li, ol li,
.history ul li, .about ul li, .schedule ul li, .courses ul li {
  margin-bottom: 9px;
  line-height: 1.55;
  font-size: 1rem;
}

/* ================
   RESPONSIVE UTILITIES
   ================ */
@media (max-width: 1024px) {
  .container, .content-wrapper {
    max-width: 96vw;
  }
}
@media (max-width: 600px) {
  html, body { font-size: 15px; }
  header .container { flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-direction: column; gap: 6px; }
  .brand-footer { margin-top: 16px; }
}
/* Ensure min 20px between all content cards/sections */
.section + .section,
.about-summary + .cta,
.about + .history,
.location-info + .clubs,
.clubs + .how-to-join,
.notifications + .cta,
.courses + .schedule,
.schedule + .cta,
.news-feed + .announcements,
.contact + .contact-form,
.contact-form + .info,
.privacy-policy + .cta,
.gdpr-policy + .cta,
.cookie-policy + .cta {
  margin-top: 28px;
}

/* Min gap between cards in containers */
.card + .card, .feature-item + .feature-item, .testimonial-card + .testimonial-card {
  margin-left: 0;
  margin-top: 20px;
}

/* ================
   VISUAL HIERARCHY
   ================ */
h1 + p, h2 + p, h2 + ul, h3 + p, h3 + ul {
  margin-top: 8px;
}

/* ================
   ACCESSIBLE TESTIMONIALS
   ================ */
.testimonial-card {
  color: #29405d;
  background: #eef5fb;
  border-left: 5px solid var(--color-primary);
  font-style: italic;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.testimonial-card cite { font-weight: bold; color: var(--color-accent); margin-left: 18px; }

/* ================
   MISCELLANEOUS
   ================ */
::-webkit-input-placeholder { color: #a0aec0; }  /* Chrome/Opera/Safari */
::-moz-placeholder { color: #a0aec0; }          /* Firefox 19+ */
:-ms-input-placeholder { color: #a0aec0; }       /* IE 10+ */
::placeholder { color: #a0aec0; }                /* Modern Browsers */

/* Selection */
::selection { background: var(--color-accent-light); color: var(--color-primary); }

/* End of CSS */
