/* --- 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, 
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 {
  height: 100%;
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  line-height: 1.6;
  background: #F4F4F4;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 16px;
}
img, picture, svg {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  text-decoration: none;
  color: inherit;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  background: none;
  color: inherit;
  border: none;
  outline: none;
  appearance: none;
}

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

/* --- BRAND VARIABLES (with fallback) --- */
:root {
  --primary: #14355A;
  --secondary: #38A169;
  --accent: #F4F4F4;
  --warm1: #FFD7A8;   /* Soft apricot */
  --warm2: #FFE7D2;   /* Very pale orange */
  --warm3: #FFE8BB;   /* Pale yellow-orange */
  --white: #fff;
  --gray: #6C7A89;
  --shadow: 0 4px 20px 0 rgba(36,37,42,0.06);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* --- LAYOUT CONTAINER --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .container {
    padding: 0 10px;
  }
}

/* --- HEADER & NAV --- */
header {
  background: var(--primary);
  color: var(--white);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 12;
  box-shadow: 0 2px 10px rgba(34, 34, 34, 0.06);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 16px 18px;
  gap: 20px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background .18s;
}
header nav a:hover,
header nav a:focus {
  background: var(--secondary);
  color: var(--white);
}
header a.cta {
  background: var(--secondary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  padding: 11px 28px;
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 14px 0 rgba(56, 161, 105, 0.11);
  cursor: pointer;
  transition: background .2s, transform .15s;
  margin-left: 8px;
  border: none;
  text-align: center;
  display: inline-block;
}
header a.cta:hover, header a.cta:focus {
  background: #279154;
  box-shadow: 0 4px 22px 0 rgba(56, 161, 105, 0.13);
  transform: translateY(-2px) scale(1.035);
}

header img[alt="Rare Crest Sportzentrum"] {
  height: 58px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.22);
  box-shadow: 0 2px 14px 0 rgba(20,53,90,0.03);
  padding: 4px 8px 4px 4px;
}

/* --- MOBILE NAVIGATION --- */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-lg);
  font-size: 2.1rem;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background 0.22s, box-shadow 0.18s;
  box-shadow: 0 2px 10px 0 rgba(56, 161, 105, 0.14);
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 25;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #256945;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--primary);
  z-index: 100;
  transform: translateX(-100vw);
  transition: transform 0.33s cubic-bezier(.82,-0.01,.21,1.01);
  padding: 32px 20px 0 20px;
  box-sizing: border-box;
  overflow-y: auto;
  box-shadow: 0 4px 40px 0 rgba(20,53,90,0.18);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--warm1);
  color: var(--primary);
  font-size: 2rem;
  border: none;
  position: absolute;
  top: 18px;
  right: 24px;
  border-radius: var(--radius-lg);
  padding: 4px 12px;
  cursor: pointer;
  z-index: 102;
  transition: background 0.18s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  background: var(--secondary);
  color: var(--white);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  margin-top: 44px;
  padding-bottom: 44px;
}
.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 700;
  padding: 11px 8px;
  border-radius: var(--radius-md);
  color: var(--white);
  transition: background 0.16s, color 0.15s;
  width: 100%;
  display: block;
}
.mobile-nav a:focus,
.mobile-nav a:hover {
  background: var(--secondary);
  color: var(--white);
}

@media (max-width: 1024px) {
  header .container nav {
    display: none;
  }
  header a.cta {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: none !important;
  }
}

/* --- MAIN AND SECTIONS --- */
main {
  padding: 30px 0 0 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius-lg);
}

/* --- CONTENT-WRAPPER (utility) --- */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.35rem;
  margin-bottom: 10px;
}
h2 {
  font-size: 1.65rem;
  margin-bottom: 8px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 3px;
}
@media (max-width: 768px) {
  h1 { font-size: 1.55rem; }
  h2 { font-size: 1.23rem; }
  h3 { font-size: 1rem; }
}
p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}
strong, b {
  font-weight: 700;
}
ul, ol {
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1rem;
  padding-left: 20px;
  margin-bottom: 8px;
  list-style-type: disc;
}
ul li, ol li {
  margin-bottom: 7px;
}
li img {
  vertical-align: middle;
  height: 24px;
  margin-right: 7px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* --- BUTTONS & CTA --- */
.cta {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 13px 36px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 18px 0 rgba(56, 161, 105, 0.18);
  transition: background .18s, transform .12s, box-shadow .22s;
  border: none;
  margin-top: 18px;
  margin-bottom: 6px;
  cursor: pointer;
  text-align: center;
}
.cta:hover, .cta:focus {
  background: #256945;
  color: #fff;
  transform: translateY(-1.5px) scale(1.038);
  box-shadow: 0 7px 28px 0 rgba(56, 161, 105, 0.23);
}

/* --- CARD & FLEX CONTAINERS --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px 18px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 220px;
  max-width: 340px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
}

.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;
    gap: 18px;
    align-items: flex-start;
  }
}

/* --- SPECIAL GRIDS & LISTS --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: flex-start;
  justify-content: flex-start;
  margin: 16px 0;
  padding-left: 0;
}
.feature-grid li {
  flex: 1 1 240px;
  background: var(--warm3);
  border-radius: var(--radius-md);
  box-shadow: 0 3px 12px 0 rgba(255, 205, 114, 0.09);
  padding: 19px 19px 16px 19px;
  min-width: 210px;
  max-width: 340px;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.16s, background 0.2s;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  background: var(--warm1);
  box-shadow: 0 7px 24px 0 rgba(255, 186, 52, 0.13);
  transform: translateY(-3px) scale(1.026);
}
.feature-grid img {
  height: 46px;
  margin-bottom: 6px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-bottom: 8px;
  padding-left: 0;
}
.service-list li {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px 18px 14px 18px;
  margin-bottom: 18px;
}

/* --- TESTIMONIALS --- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px 24px 20px 24px;
  margin-bottom: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 30px 0 rgba(20,53,90,0.09);
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.12s, background 0.13s;
  max-width: 620px;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 10px 36px 0 rgba(20,53,90,0.13);
  background: var(--warm2);
  transform: translateY(-2px) scale(1.008);
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.04rem;
  font-style: italic;
  margin-bottom: 6px;
}
.testimonial-card span {
  color: var(--gray);
  font-size: 0.96rem;
  font-weight: 600;
  margin-top: 1px;
  opacity: 0.88;
}

/* --- TABLES --- */
.weekly-schedule-table,
.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 3px 16px 0 rgba(20,53,90,0.06);
  margin-bottom: 30px;
  overflow: hidden;
}
.weekly-schedule-table th,
.pricing-table th {
  background: var(--warm1);
  font-family: var(--font-display);
  color: var(--primary);
  padding: 17px 10px;
  font-weight: 700;
  font-size: 1.1rem;
}
.weekly-schedule-table td,
.pricing-table td {
  background: var(--accent);
  color: var(--primary);
  padding: 13px 9px;
  font-size: 1rem;
  border-bottom: 2px solid var(--warm2);
}
.weekly-schedule-table tr:last-child td,
.pricing-table tr:last-child td {
  border-bottom: none;
}

@media (max-width: 600px) {
  .weekly-schedule-table,
  .pricing-table {
    font-size: 0.98rem;
  }
  .weekly-schedule-table th, .pricing-table th {
    font-size: 0.97rem;
    padding: 12px 6px;
  }
  .weekly-schedule-table td, .pricing-table td {
    padding: 7px 5px;
  }
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 38px 0 0 0;
  margin-top: 58px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  justify-content: flex-start;
}
.footer-links nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-links nav a {
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  opacity: 0.83;
  border-radius: var(--radius-md);
  padding: 4px 9px;
  transition: background 0.12s;
}
.footer-links nav a:hover,
.footer-links nav a:focus {
  background: var(--secondary);
  color: #fff;
  opacity: 1;
}
.footer-contact {
  display: flex;
  gap: 26px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 1rem;
}
.footer-contact img {
  height: 20px;
  margin-right: 7px;
  vertical-align: middle;
}
.footer-contact p {
  color: var(--white);
  margin-bottom: 0;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-social {
  display: flex;
  gap: 20px;
  margin-top: 7px;
}
.footer-social a img {
  height: 30px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.23);
  padding: 5px;
  transition: background 0.16s;
}
.footer-social a:hover img,
.footer-social a:focus img {
  background: var(--secondary);
}
.footer-copy {
  margin-top: 18px;
  padding-bottom: 18px;
  font-size: 0.93rem;
  opacity: 0.96;
}
@media (max-width: 900px) {
  .footer-links {
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-contact {
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-social {
    gap: 10px;
  }
}

/* --- COOKIE CONSENT BANNER & MODAL --- */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: var(--warm1);
  color: var(--primary);
  box-shadow: 0 -4px 28px 0 rgba(20,53,90,0.12);
  padding: 21px 22px 17px 22px;
  z-index: 9990;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  transition: transform 0.37s cubic-bezier(.71,-0.01,.46,1.01), opacity 0.28s;
}
.cookie-banner.hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner p {
  margin: 0 19px 0 0;
  font-size: 1rem;
  color: var(--primary);
}
.cookie-banner .cookie-btn {
  margin: 0 7px;
  padding: 9px 22px;
  font-size: 1rem;
  font-family: var(--font-display);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  background: var(--secondary);
  color: var(--white);
  font-weight: 700;
  transition: background 0.17s, box-shadow 0.14s, transform 0.10s;
  box-shadow: 0 2px 8px 0 rgba(56, 161, 105, 0.08);
}
.cookie-banner .cookie-btn.settings {
  background: var(--primary);
  color: var(--white);
}
.cookie-banner .cookie-btn.reject {
  background: #FFD7A8;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cookie-banner .cookie-btn:hover,
.cookie-banner .cookie-btn:focus {
  background: #256945;
  color: var(--white);
  transform: translateY(-2px) scale(1.03);
}
.cookie-banner .cookie-btn.reject:hover,
.cookie-banner .cookie-btn.reject:focus {
  background: #ffe8bb;
  color: var(--secondary);
  border-color: var(--secondary);
}

.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(20,53,90,0.56);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: opacity 0.28s;
}
.cookie-modal-overlay.open {
  display: flex;
  opacity: 1;
}
.cookie-modal {
  background: var(--warm2);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px 28px;
  box-shadow: 0 7px 40px 0 rgba(20,53,90,0.21);
  min-width: 320px;
  max-width: 95vw;
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-body);
  position: relative;
  animation: modal-fadein 0.38s cubic-bezier(.31,1.51,.37,0.99);
}
@keyframes modal-fadein { from { transform: scale(0.93) translateY(30px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.cookie-modal h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 8px;
}
.cookie-category {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 13px;
}
.cookie-category label {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
}
.cookie-category input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--secondary);
  margin-right: 6px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 18px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #ffd7a8;
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 1.35rem;
  padding: 3px 10px 3px 10px;
  border: none;
  cursor: pointer;
  z-index: 3;
  transition: background 0.13s;
}
.cookie-modal .cookie-modal-close:hover, 
.cookie-modal .cookie-modal-close:focus {
  background: #ffe8bb;
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 1024px) {
  .feature-grid {
    gap: 18px;
  }
  .feature-grid li {
    min-width: 150px;
    max-width: 100%;
  }
  .footer-links {
    gap: 20px;
  }
}
@media (max-width: 900px) {
  .card-container,
  .content-grid,
  .feature-grid {
    flex-wrap: wrap;
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
}
@media (max-width: 600px) {
  .section {
    padding: 22px 5px;
    margin-bottom: 38px;
  }
  .testimonial-card {
    padding: 16px 10px 15px 10px;
    max-width: 100%;
  }
  .feature-grid li,
  .service-list li {
    padding: 14px 9px 12px 12px;
  }
  .cookie-modal {
    min-width: unset;
    padding: 18px 6px 14px 8px;
  }
  .container {
    max-width: 97vw;
  }
}

/* --- OTHER STYLES --- */
::selection {
  background: var(--warm1);
  color: var(--primary);
}
::-webkit-input-placeholder { color: #888; opacity: 0.75; }
::-moz-placeholder { color: #888; opacity: 0.75; }
::-ms-input-placeholder { color: #888; opacity: 0.75; }
::placeholder { color: #888; opacity: 0.75; }

/* --- ANIMATIONS --- */
.cta, .cookie-banner .cookie-btn, .feature-grid li, .testimonial-card, .card, .section {
  transition: box-shadow 0.18s, background 0.21s, border-radius 0.21s, opacity 0.14s, transform 0.13s;
}

/* --- ACCESSIBILITY & FOCUS --- */
a:focus, button:focus, .cta:focus, .mobile-menu-close:focus,
.cookie-banner .cookie-btn:focus, .cookie-modal-close:focus {
  outline: 2.5px solid var(--secondary);
  outline-offset: 2px;
}

/* --- MINIMUM SPACING RULES --- */
.card, .feature-grid li, .testimonial-card, .section {
  margin-bottom: 20px;
}

/* --- Ensure non-overlapping cards/sections --- */
.card + .card, .testimonial-card + .testimonial-card, .feature-grid li + .feature-grid li {
  margin-left: 0px;
}

/***** END OF WARM FRIENDLY CSS *****/
