/* -------------------- RESET & BASE -------------------- */
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 {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  background: #F8F8F8;
  color: #18342B;
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  font-size: 1rem;
}
img {
  max-width: 100%;
  display: block;
}
ul, ol { list-style: none; }
a { 
  text-decoration: none; 
  color: inherit;
  transition: color 0.2s;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}
:focus-visible {
  outline: 2px solid #48A371;
  outline-offset: 2px;
}

/* --------------- BRAND COLORS & FONTS ---------------- */
:root {
  --color-primary: #114368;
  --color-secondary: #48A371;
  --color-accent: #F8F8F8;
  --color-brown: #B69D74;
  --color-sand: #F3E8D0;
  --color-leaf: #89C264;
  --color-green-dark: #18342B;
  --color-green-light: #E5F3EA;
  --color-error: #A6312C;

  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, sans-serif;
}


/* ----------------- TYPOGRAPHY SCALE ------------------- */
h1 {
  font-family: var(--font-display);
  color: var(--color-primary);
  font-size: 2.4rem;
  line-height: 1.15;
  font-weight: 700;
  margin-bottom: 24px;
}
h2 {
  font-family: var(--font-display);
  color: var(--color-secondary);
  font-size: 1.8rem;
  line-height: 1.22;
  font-weight: 700;
  margin-bottom: 20px;
}
h3 {
  font-family: var(--font-display);
  color: var(--color-green-dark);
  font-size: 1.2rem;
  line-height: 1.2;
  font-weight: 600;
  margin-bottom: 12px;
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-green-dark);
  font-weight: 600;
}
p, ul, ol, li, blockquote, cite {
  color: var(--color-green-dark);
  font-size: 1rem;
  line-height: 1.7;
}
strong { font-weight: 700; }
small { font-size: 0.9rem; color: #5D6D5A; }
blockquote {
  font-size: 1.08rem;
  font-family: var(--font-body);
  color: var(--color-primary);
  padding: 0 0 0 1em;
  border-left: 3px solid var(--color-leaf);
  margin-bottom: 8px;
  font-style: italic;
  background: transparent;
}
cite {
  color: var(--color-brown);
  display: block;
  font-size: 0.96rem;
  font-style: normal;
  margin-top: 4px;
}

/* -------------------- CONTAINER ----------------------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

/* ------------ SECTION SPACING & WRAPPERS -------------- */
section, .section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: 36px 12px 36px 12px/24px 48px 12px 18px;
  box-shadow: 0 2px 12px 0 rgba(24, 52, 43, 0.03);
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 1rem;
}

/* ------------- FLEX PATTERNS (MANDATORY) -------------- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-accent);
  border-radius: 18px;
  box-shadow: 0 3px 20px rgba(68, 106, 84, 0.08);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  min-width: 250px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.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;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--color-green-light);
  border-radius: 20px 40px 18px 18px/24px 38px 18px 22px;
  box-shadow: 0 2px 12px 0 rgba(24, 52, 43, 0.07);
  position: relative;
  min-width: 260px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-accent);
  border-radius: 20px 12px 28px 12px/18px 28px 12px 28px;
  box-shadow: 0 2px 10px 0 rgba(68,163,113,0.07);
  padding: 26px 20px 20px 20px;
  flex: 1 1 200px;
  min-width: 220px;
  margin-bottom: 20px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--color-green-light);
}
.feature-item img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-leaf);
  padding: 6px;
  box-shadow: 0 2px 6px rgba(72,163,113,0.08);
}
.feature-item:hover, .card:hover {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 6px 32px 0 rgba(68,163,113,0.14);
}
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}

/* --------------- HERO SECTIONS ----------------------- */
.hero {
  background: linear-gradient(135deg, #E5F3EA 65%, #F3E8D0 100%);
  border-radius: 0 0 56px 56px / 0 0 36px 36px;
  box-shadow: 0 2px 40px 0 rgba(72,163,113,0.12);
  padding: 60px 0 40px 0;
  margin-bottom: 40px;
}
.hero .container {
  align-items: center;
  text-align: center;
}
.hero h1 {
  color: var(--color-secondary);
  font-size: 2.2rem;
  font-family: var(--font-display);
  margin-bottom: 18px;
  margin-top: 0;
}
.hero p {
  color: var(--color-green-dark);
  font-size: 1.18rem;
  margin-bottom: 28px;
}


/* --------------- BUTTONS & CTA ----------------------- */
.cta-button, .primary {
  display: inline-block;
  background: var(--color-secondary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
  border: none;
  border-radius: 28px 10px 22px 10px/12px 28px 10px 24px;
  box-shadow: 0 2px 10px 0 rgba(72,163,113,0.10);
  padding: 12px 32px;
  margin: 12px 0 0 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s, transform 0.12s;
  text-align: center;
}
.cta-button.primary:hover, .cta-button.primary:focus {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 6px 24px 0 rgba(17,67,104,0.21);
  transform: translateY(-2px) scale(1.015);
}
.cta-button.secondary {
  background: var(--color-leaf);
  color: var(--color-green-dark);
}
.cta-button.secondary:hover {
  background: var(--color-secondary);
  color: #fff;
}

/* ------------------ NAVIGATION ------------------------ */
header {
  background: var(--color-accent);
  box-shadow: 0 6px 30px 0 rgba(24, 52, 43, 0.06);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 10px 16px;
  position: relative;
}
header img[alt="SportConnect Stuttgart"] {
  height: 44px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.main-nav a {
  font-family: var(--font-display);
  font-size: 1.01rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 19px;
  position: relative;
  transition: background 0.12s, color 0.11s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--color-leaf);
  color: var(--color-green-dark);
}

.footer-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  justify-content: flex-start;
}
.footer-nav a {
  font-size: 0.98rem;
  color: var(--color-primary);
  opacity: 0.87;
  transition: color 0.15s, opacity 0.15s;
}
.footer-nav a:hover {
  color: var(--color-secondary);
  opacity: 1;
}

.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
  margin: 6px 0;
}
.social-links a img {
  width: 28px;
  height: 28px;
  filter: grayscale(24%);
  opacity: 0.9;
  transition: filter 0.18s, opacity 0.12s;
}
.social-links a:hover img, .social-links a:focus img {
  filter: none;
  opacity: 1;
}

/* ---------------- MOBILE NAVIGATION ------------------- */
.mobile-menu-toggle {
  background: var(--color-secondary);
  color: #fff;
  font-size: 2.2rem;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 220;
  transition: background 0.18s, color 0.13s;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--color-primary);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 250;
  background: #fff;
  box-shadow: 0 2px 48px rgba(17,67,104,0.09);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(.23,1.13,.31,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  align-self: flex-end;
  margin: 18px 20px 4px 0;
  font-size: 2.4rem;
  background: var(--color-leaf);
  color: var(--color-secondary);
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.13s, color 0.13s;
}
.mobile-menu-close:focus, .mobile-menu-close:hover {
  background: var(--color-secondary);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  margin: 24px 30px 0 32px;
}
.mobile-nav a {
  font-size: 1.16rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-primary);
  padding: 13px 8px;
  border-radius: 13px;
  transition: background 0.13s, color 0.13s;
  width: 100%;
  display: block;
}
.mobile-nav a:active, .mobile-nav a:focus, .mobile-nav a:hover {
  color: var(--color-secondary);
  background: var(--color-leaf);
}

@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
  }
}
@media (max-width: 900px) {
  .main-nav {
    gap: 10px;
  }
  .footer-nav {
    gap: 8px;
  }
}
@media (max-width: 780px) {
  header .container {
    flex-wrap: wrap;
    gap: 10px;
    flex-direction: row;
  }
  .main-nav {
    display: none;
  }
  .cta-button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}

@media (max-width: 560px) {
  header .container {
    padding: 7px 6px;
  }
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .hero {
    padding: 40px 0 24px 0;
  }
}

/* --------- FLEXBOX LAYOUTS: RESPONSIVE ADJUSTMENTS ---- */
@media (max-width: 1020px) {
  .feature-grid {
    gap: 16px;
  }
  .card-container, .content-grid {
    gap: 14px;
  }
}
@media (max-width: 900px) {
  .feature-grid,
  .card-container,
  .content-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .feature-item, .card {
    min-width: unset;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .section, section {
    margin-bottom: 38px;
    padding: 24px 6px;
    border-radius: 13px 8px 18px 6px/8px 14px 8px 20px;
  }
  .content-wrapper {
    gap: 15px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    text-align: left;
  }
  h1 { font-size: 1.43rem; }
  h2 { font-size: 1.19rem; }
  .hero h1 { font-size: 1.23rem; }
}

/* --------- TESTIMONIAL SECTIONS: CONTRAST & STYLE ------ */
.testimonial-card {
  background: #fff;
  border: 1px solid #DAECD8;
  color: var(--color-green-dark);
  box-shadow: 0 4px 32px 0 rgba(72,163,113,0.09);
  font-size: 1.05rem;
}
.testimonial-card blockquote {
  color: var(--color-primary);
  font-size: 1.08rem;
}
.testimonial-card cite {
  color: var(--color-secondary);
}
/* Extra: prevent overlapping */
.testimonial-card + .testimonial-card {
  margin-top: 20px;
}

/* --------------- LISTS & LINKS ------------------------ */
ul, ol {
  margin-bottom: 15px;
  padding-left: 1.2em;
}
ul li, ol li {
  margin-bottom: 10px;
  font-size: 1rem;
  list-style: disc;
  color: var(--color-green-dark);
}
.privacy-list li strong, .about-values strong {
  color: var(--color-secondary);
}
a {
  color: var(--color-primary);
  text-decoration-skip-ink: auto;
  transition: color 0.10s, border 0.1s;
}
a:focus, a:hover {
  color: var(--color-secondary);
  text-decoration: underline;
  outline: none;
}

/* ------------------ FOOTER --------------------------- */
footer {
  background: var(--color-sand);
  border-top: 2px solid var(--color-leaf);
  padding: 24px 0 11px 0;
  margin-top: 40px;
}
footer .container {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
footer small {
  color: #807A62;
  margin-top: 8px;
}

/* ----------------- FORMS & ELEMENTS ------------------ */
input, textarea, select {
  background: var(--color-green-light);
  border-radius: 10px;
  border: 1.5px solid var(--color-leaf);
  padding: 10px 12px;
  font-size: 1rem;
  margin-bottom: 16px;
  transition: border 0.13s, box-shadow 0.13s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border: 1.5px solid var(--color-secondary);
  box-shadow: 0 2px 10px 0 rgba(72,163,113,0.12);
}

/* ----------- COOKIE BANNER & MODAL ------------------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #FAF6ED;
  border-top: 2px solid var(--color-secondary);
  box-shadow: 0 -2px 14px rgba(17,67,104,0.07);
  padding: 20px 16px 16px 16px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  min-height: 88px;
  font-family: var(--font-body);
  animation: cookie-slide-in 0.45s both;
}
@keyframes cookie-slide-in {
  0% { transform: translateY(120%); opacity: 0; }
  98% { opacity: 1; }
 100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  color: var(--color-green-dark);
  flex: 2;
  font-size: 1rem;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  align-items: center;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 14px 4px 12px 4px/5px 14px 7px 15px;
  border: none;
  padding: 9px 22px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.17s, color 0.12s, box-shadow 0.15s;
}
.cookie-banner .accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-primary);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-error);
  border: 1.5px solid var(--color-error);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--color-error);
  color: #fff;
}
.cookie-banner .settings {
  background: var(--color-leaf);
  color: var(--color-green-dark);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-secondary);
  color: #fff;
}

/* COOKIES MODAL POPUP */
.cookie-modal-overlay {
  position: fixed;
  z-index: 12001;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(24,52,43,0.21);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  animation: cookie-modal-fade-in 0.22s;
}
@keyframes cookie-modal-fade-in {
  0% { opacity: 0; }
 100% { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 28px 14px 31px 14px/18px 29px 16px 27px;
  box-shadow: 0 8px 40px 0 rgba(17,67,104,0.13);
  min-width: 300px;
  max-width: 98vw;
  width: 400px;
  padding: 36px 24px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.cookie-modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
.cookie-modal-header h3 {
  margin-bottom: 0;
}
.cookie-modal-close {
  background: #fff;
  color: var(--color-error);
  border-radius: 50%;
  border: 1.3px solid var(--color-error);
  font-size: 2rem;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, color 0.12s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--color-error);
  color: #fff;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
}
.cookie-category .category-toggle {
  width: 38px;
  height: 22px;
  border-radius: 50px;
  background: var(--color-green-light);
  border: 1.2px solid var(--color-secondary);
  position: relative;
  flex-shrink: 0;
}
.cookie-category .category-toggle input[type="checkbox"] {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0; top: 0;
  margin: 0;
}
.cookie-category .slider {
  position: absolute;
  left: 1.5px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-secondary);
  transition: left 0.15s;
}
.cookie-category input[type="checkbox"]:checked + .slider {
  left: 17px;
  background: var(--color-leaf);
}
/* 'Always enabled' badge */
.cookie-category .always {
  background: var(--color-leaf);
  color: var(--color-green-dark);
  border-radius: 10px;
  padding: 2px 10px;
  font-size: 0.89rem;
  margin-left: 8px;
  font-weight: 700;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal-actions button {
  font-family: var(--font-display);
  font-size: 1rem;
  border-radius: 13px 5px 14px 4px/6px 15px 8px 16px;
  border: none;
  padding: 10px 22px;
  font-weight: 600;
}
.cookie-modal-actions .accept {
  background: var(--color-secondary);
  color: #fff;
}
.cookie-modal-actions .accept:hover, .cookie-modal-actions .accept:focus {
  background: var(--color-primary);
}
.cookie-modal-actions .reject {
  background: #fff;
  color: var(--color-error);
  border: 1.5px solid var(--color-error);
}
.cookie-modal-actions .reject:hover, .cookie-modal-actions .reject:focus {
  background: var(--color-error);
  color: #fff;
}

@media (max-width: 800px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    font-size: 0.99rem;
    padding: 15px 4px 10px 4px;
  }
}
@media (max-width: 520px) {
  .cookie-banner {
    font-size: 0.97rem;
    padding: 11px 2px 8px 2px;
    min-height: 62px;
  }
  .cookie-modal {
    min-width: unset;
    width: 98vw;
    max-width: 99vw;
    padding: 12px 6px 11px 8px;
  }
}

/* ---------------- ORGANIC SHAPES --------------------- */
/* Organic accents for sections/cards */
.section, section, .card, .feature-item, .testimonial-card {
  /* Organic border-radius as above */
}
/* Decorative organic leaf accent (can add using ::before if desired) */
.section::before, .card::before {
  content: '';
  display: none; /* Enable if needed for purely decorative assets */
}

/* ------------- Animations & Micro-interactions ------- */
.cta-button, .feature-item, .card, .testimonial-card {
  transition: box-shadow 0.2s, transform 0.17s, background 0.14s;
}
.cta-button:active {
  transform: scale(0.96);
  box-shadow: 0 0 0 rgba(0,0,0,0.00);
}

/* -------------- Utility/Helpers ---------------------- */
.flex {
  display: flex !important;
}
.flex-center {
  justify-content: center;
  align-items: center;
}
.gap-20 {
  gap: 20px;
}

/* Optional, for .ol (ordered) lists in so funktioniert */
ol {
  counter-reset: mycounter;
  padding-left: 1.1em;
}
ol li {
  counter-increment: mycounter;
  list-style: none;
  position: relative;
  margin-bottom: 10px;
  padding-left: 23px;
}
ol li::before {
  content: counter(mycounter) '. ';
  color: var(--color-leaf);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 1px;
  font-size: 1rem;
}

/*****************
 RESPONSIVE TABLE (IF ANY TABLES ADDED)
*****************/
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 18px;
}
thead {
  background: var(--color-green-light);
}
th, td {
  padding: 11px 9px;
  text-align: left;
  border-bottom: 1px solid var(--color-leaf);
}

/*******************
 404 PAGE / EMPTY-STATE 
*******************/
.empty-state {
  background: var(--color-green-light);
  border-radius: 22px;
  text-align: center;
  padding: 40px 18px;
  color: var(--color-primary);
  font-size: 1.12rem;
  margin-bottom: 40px;
}

/*******************
  ACCESSIBILITY & PRINT
*******************/
@media print {
  header, footer, .cookie-banner, .mobile-menu { display: none !important; }
  body { background: #fff !important; }
  .section, section { box-shadow: none; background: #fff; }
}
