/* ==========================================================================
   CSS RESET & BASELINE NORMALIZATION
   ========================================================================== */
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;
  scroll-behavior: smooth;
}
*, *:before, *:after { box-sizing: inherit; }
body {
  min-height: 100vh;
  background: #F6F6F6;
  color: #27312C;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  background-color: #f6f6f6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #184172; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #274d36; }
hr { border: none; border-top: 1px solid #c8c6bb; margin: 32px 0; }
ul, ol { margin-left: 2em; margin-bottom: 24px; }
li { margin-bottom: 8px; }
address { font-style: normal; margin: 16px 0; color: #506250; }

/* ==========================================================================
   BRAND COLORS (Nature + Organic Aesthetic)
   ========================================================================== */
:root {
  --primary: #184172;
  --secondary: #F1B84A;
  --accent: #F6F6F6;
  --nature-green: #506250;
  --nature-olive: #889272;
  --nature-brown: #AD9F84;
  --nature-earth: #EAE4D8;
  --white: #FFFFFF;
  --black: #222922;
  --shadow-color: rgba(44, 67, 54, 0.07);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #184172;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}
h1 { font-size: 2.5rem; letter-spacing: -1px; }
h2 { font-size: 2rem;  margin-bottom: 14px; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5, h6 { font-size: 1rem; font-weight: 600; }

p, li, ul, ol, table, address { font-size: 1rem; color: #27312C; }
p.subheadline {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #506250;
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 24px;
}
.small { font-size: 0.93rem; color: #889272; }
strong { color: var(--nature-green); }

/* ==========================================================================
   LAYOUT: CONTAINER, SPACING, SECTIONS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  background: none;
}

/* ==========================================================================
   HEADER & MAIN NAVIGATION
   ========================================================================== */
header {
  background: var(--white);
  box-shadow: 0 2px 16px var(--shadow-color);
  position: sticky;
  top: 0; z-index: 1002;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}
header img[alt='Cogni-Boost'] {
  height: 44px;
  padding: 8px 0;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
}
.main-nav a {
  padding: 10px 14px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  color: var(--nature-green);
  border-radius: 16px;
  transition: background 0.15s, color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--earth);
  color: var(--primary);
}

/* Hide hamburger and mobile-menu by default (desktop only) */
.mobile-menu-toggle { display: none; }
.mobile-menu {
  display: none;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.button, button, input[type='submit'] {
  font-family: 'Montserrat', Arial, sans-serif;
  border-radius: 32px;
  border: none;
  cursor: pointer;
  outline: none;
  min-width: 140px;
  min-height: 44px;
  padding: 0 28px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  background: var(--nature-green);
  color: var(--white);
  box-shadow: 0 2px 8px var(--shadow-color);
  transition: background 0.15s, color 0.15s, transform 0.15s;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.button.primary {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 2px 10px var(--shadow-color);
}
.button.primary:hover, .button.primary:focus {
  background: var(--primary);
  color: var(--white);
}
.button:hover, button:hover, .button:focus, button:focus {
  background: #345a37;
  color: var(--white);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 4px 28px rgba(80,98,80,0.08);
}

/* ==========================================================================
   FLEXBOX CARDS & FEATURE GRIDS
   ========================================================================== */
.features-grid, .features-cards, .team-grid, .trainer-profiles, .testimonials-slider, .testimonial-slider, .footer-nav, .social-media {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.features-grid>div, .features-cards>div, .team-grid>div, .trainer-profiles>div {
  background: var(--earth);
  padding: 24px 18px;
  border-radius: 32px 44px 30px 60px/40px 30px 60px 44px;
  box-shadow: 0 2px 10px var(--shadow-color);
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border: 1.5px solid #ded9ce;
  transition: box-shadow 0.16s, transform 0.18s;
}
.features-grid>div:hover, .features-cards>div:hover, .team-grid>div:hover, .trainer-profiles>div:hover {
  box-shadow: 0 4px 28px rgba(80,98,80,0.13);
  transform: translateY(-2px) scale(1.01);
}
.features-grid img, .features-cards img {
  width: 44px;
  margin-bottom: 10px;
  filter: hue-rotate(-30deg) brightness(0.9) saturate(1.4);
}

/* Card Containers (for general card lists) */
.card-container, .card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--white);
  border-radius: 32px 50px 32px 32px/38px 30px 42px 48px;
  box-shadow: 0 4px 22px var(--shadow-color);
  margin-bottom: 20px;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 220px;
  border: 1.5px solid #e0e5da;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-slider, .testimonial-slider {
  gap: 24px;
  margin-bottom: 20px;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border-radius: 28px 24px 44px 34px / 44px 28px 38px 48px;
  box-shadow: 0 3px 18px var(--shadow-color);
  min-width: 240px;
  border-collapse: separate;
  border: 1.2px solid #dfebda;
  margin-bottom: 20px;
  position: relative;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-style: italic;
}
.testimonial-card .client {
  color: var(--nature-green);
  font-weight: 600;
  font-size: 0.95rem;
}
.stars {
  color: var(--secondary);
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-top: 2px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--earth);
  padding: 40px 0 0 0;
  margin-top: 60px;
  border-top: 2.5px solid #ded9ce;
}
footer .container {
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
}
.footer-nav {
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.footer-nav a {
  color: var(--nature-green);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1em;
  padding: 4px 10px;
  border-radius: 16px;
  transition: background 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  background: #dde9da;
  color: var(--primary);
}
footer .social-media {
  gap: 16px; align-items: center;
}
footer p {
  font-size: 0.97em; color: #506250;
}

/* ==========================================================================
   MAP PLACEHOLDER (Kontakt/Über Uns)
   ========================================================================== */
.map-placeholder {
  width: 100%;
  background: repeating-linear-gradient(135deg, #EAE4D8, #EAE4D8 18px, #ded9ce 22px, #ded9ce 36px);
  color: #889272;
  text-align: center;
  padding: 28px 0;
  border-radius: 30px;
  font-size: 1.12em;
  margin-bottom: 16px;
  font-style: italic;
}

/* ==========================================================================
   TABLES (for Preise/Angebote)
   ========================================================================== */
table {
  width: 100%;
  border-collapse: separate !important;
  border-spacing: 0 8px;
  margin-bottom: 24px;
  background: none;
}
th, td {
  padding: 10px 18px 10px 0;
  text-align: left;
  border: none;
  font-size: 1em;
  font-family: 'Montserrat', Arial, sans-serif;
}
th {
  color: var(--primary);
  font-weight: 700;
}
td {
  color: #27312C;
  background: #f6f6f6;
  border-radius: 10px 22px 14px 14px;
}
tr + tr td { border-top: 1px solid #ebeadc; }

/* ==========================================================================
   FAQ SECTIONS
   ========================================================================== */
.faq-section {
  background: var(--earth);
  border-radius: 24px 34px 16px 48px / 38px 24px 22px 40px;
  padding: 18px 22px 4px 22px;
  box-shadow: 0 2px 10px var(--shadow-color);
  margin-bottom: 18px;
  margin-top: 18px;
}
.faq-section h3 {
  font-size: 1.05em;
  color: var(--nature-green);
  margin-bottom: 7px;
}
.faq-section ul {
  margin: 0 0 14px 18px;
}

/* ==========================================================================
   GENERAL ELEMENTS/INFO BLOCK
   ========================================================================== */
.info-block {
  background: var(--earth);
  border-radius: 18px 36px 22px 22px;
  padding: 20px 22px;
  margin-bottom: 20px;
  color: var(--nature-green);
  font-size: 1.1em;
}
.note {
  color: #889272;
  background: #eaf3e4;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 1em;
  margin-top: 16px;
  display: inline-block;
}

/* ==========================================================================
   SPACING & ALIGNMENT: COMPONENT PATTERNS
   ========================================================================== */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.features { display: flex; flex-wrap: wrap; gap: 20px; }
.card-grid { display: flex; flex-wrap: wrap; justify-content: space-between; }

/* ==========================================================================
   MOBILE & RESPONSIVE (mobile-first)
   ========================================================================== */
@media (max-width: 1140px) {
  .container { max-width: 1000px; }
}
@media (max-width: 900px) {
  .container { max-width: 770px; }
  .features-grid>div, .features-cards>div, .team-grid>div, .trainer-profiles>div { min-width: 180px; }
}
@media (max-width: 750px) {
  .container { max-width: 98vw; }
  .features-grid, .features-cards, .team-grid, .trainer-profiles, .testimonials-slider, .testimonial-slider, .footer-nav, .social-media, .card-grid, .card-container { gap: 14px; }
  th, td { padding: 8px 8px 8px 0; }
}
@media (max-width: 768px) {
  .container { padding-left: 6px; padding-right: 6px; }
  header .container { flex-direction: row; gap: 6px; }
  .main-nav { display: none; }
  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
    font-size: 2rem;
    background: transparent;
    border: none;
    color: var(--nature-green);
    align-items: center;
    justify-content: center;
    z-index: 1101;
    padding: 8px 18px;
    cursor: pointer;
    transition: color 0.18s;
    border-radius: 22px;
    height: 52px;
  }
  .mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
    background: #eae4d8;
    color: var(--nature-green);
  }
  .mobile-menu {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 100vw;
    background: var(--earth);
    z-index: 2002;
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(.37,1.14,.64,1.01), opacity 0.19s;
    gap: 0;
  }
  .mobile-menu.open {
    transform: translateX(0);
    opacity: 1; pointer-events: auto;
  }
  .mobile-menu-close {
    background: transparent;
    border: none;
    color: var(--nature-green);
    font-size: 2.1rem;
    padding: 16px 16px 0 20px;
    align-self: flex-end;
    cursor: pointer;
    z-index: 2011;
    transition: color 0.15s;
  }
  .mobile-menu-close:hover, .mobile-menu-close:focus {
    color: var(--secondary);
  }
  .mobile-nav {
    display: flex;
    flex-direction: column;
    width: 100vw;
    gap: 8px;
    margin-top: 22px;
    padding-left: 16px;
  }
  .mobile-nav a {
    width: 98vw;
    display: flex;
    align-items: center;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 1.22em;
    color: var(--primary);
    padding: 16px 8px 10px 0;
    margin-bottom: 2px;
    background: none;
    border-radius: 14px;
    transition: background 0.17s, color 0.145s;
  }
  .mobile-nav a:hover, .mobile-nav a:focus {
    background: #eaf3e4;
    color: var(--nature-green);
  }
  /* Logo & buttons responsive */
  header img[alt='Cogni-Boost'] { height: 36px; }
  .button, .button.primary, button, input[type='submit'] {
    min-width: 110px; min-height: 40px; padding: 0 18px; font-size: 1rem;
  }
  footer .footer-nav { flex-direction: column; gap: 6px; }
}
@media (max-width: 600px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.18rem; }
  h3 { font-size: 1.01rem; }
  .features-grid>div, .features-cards>div, .team-grid>div, .trainer-profiles>div { min-width: 120px; padding: 13px 5px; }
  .section { padding: 26px 2px; margin-bottom: 42px; }
  .testimonial-card { padding: 12px 8px; }
  .content-wrapper { gap: 14px; }
}
@media (max-width: 570px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
  .features-grid, .features-cards, .team-grid, .trainer-profiles { flex-direction: column; gap: 9px; }
}

/* ==========================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */
.button, button { transition: background 0.16s, color 0.16s, transform 0.17s, box-shadow 0.16s; }
.card, .testimonial-card { transition: box-shadow 0.15s, transform 0.14s; }
.card:hover, .testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(44, 67, 54, 0.13);
  transform: translateY(-2px) scale(1.02);
}
.features-grid>div, .features-cards>div { transition: box-shadow 0.14s, transform 0.15s; }

/* ==========================================================================
   COOKIE CONSENT BANNER & MODAL
   ========================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: var(--earth);
  box-shadow: 0 -3px 22px var(--shadow-color);
  z-index: 5003;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 24px 24px;
  justify-content: center;
  font-size: 1rem;
  border-top: 3px solid #cff0d0;
  animation: slideUp 0.5s cubic-bezier(.77,0,.175,1) 1;
}
.cookie-banner p {
  margin-right: 26px;
  color: var(--nature-green);
  flex: 1 1 350px;
  min-width: 130px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 16px;
}
.cookie-banner .button, .cookie-banner button {
  min-width: 120px;
  padding: 0 14px;
  background: var(--primary);
  color: var(--white);
  font-size: 1.05em;
  border-radius: 22px;
}
.cookie-banner .button.settings {
  background: var(--nature-olive);
  color: var(--black);
}
.cookie-banner .button.accept {
  background: var(--secondary);
  color: var(--primary);
}
.cookie-banner .button.reject {
  background: #c75e40;
  color: var(--white);
}
.cookie-banner .button:hover, .cookie-banner .button:focus {
  filter: brightness(0.98) saturate(1.22);
  transform: translateY(-1px) scale(1.015);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Cookie Consent Modal */
#cookie-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(16,24,18,0.18);
  z-index: 5105;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
#cookie-modal.open {
  display: flex;
  animation: fadeIn 0.32s cubic-bezier(.81,0,.33,1.02) 1;
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal-content {
  background: var(--earth);
  border-radius: 30px 40px 32px 36px;
  box-shadow: 0 4px 20px var(--shadow-color);
  padding: 44px 24px 32px 24px;
  min-width: 280px; max-width: 95vw;
  font-size: 1.08em;
  color: var(--primary);
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 20px;
  position: relative;
}
.cookie-modal-content h3 {
  color: var(--nature-green);
  font-size: 1.16em;
  margin-bottom: 2px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}
.cookie-category label {
  font-size: 1em;
  font-weight: 600;
  color: var(--nature-green);
  font-family: 'Montserrat', Arial, sans-serif;
}
.cookie-modal-content .button {
  margin-top: 18px;
  min-width: 100px;
}
.cookie-modal-close {
  position: absolute;
  right: 22px; top: 18px;
  background: none;
  border: none; color: var(--nature-green);
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.16s;
  z-index: 2;
}
.cookie-modal-close:hover, .cookie-modal-close:focus { color: var(--secondary); }

/* Switch/Toggle style (for analytics/marketing) */
.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
}
.switch input { display: none; }
.slider {
  position: absolute; cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #cfd5bb;
  border-radius: 12px;
  transition: background 0.2s;
}
.slider:before {
  content: '';
  position: absolute;
  left: 4px; bottom: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--white);
  transition: .2s;
  box-shadow: 0 1px 4px #c0c1b0;
}
.switch input:checked + .slider { background: var(--nature-green); }
.switch input:checked + .slider:before { transform: translateX(15px); background: var(--secondary); }

/* Cookie Category Description */
.cookie-category .desc {
  font-size: 0.96em; color: #27312C;
  margin-left: 8px;
}

/* ==========================================================================
   ORGANIC SHAPE UTILITY CLASSES (use on backgrounds/containers if needed)
   ========================================================================== */
.organic-bg {
  background: var(--earth);
  border-radius: 60px 30px 44px 26px / 38px 48px 29px 40px;
}
.organic-shadow {
  box-shadow: 0 8px 32px rgba(80,98,80,0.12), 0 1.5px 16px var(--shadow-color);
}
.organic-card {
  background: #f6f6f6;
  border-radius: 32px 50px 32px 32px/38px 30px 42px 48px;
  box-shadow: 0 3px 13px var(--shadow-color);
}

/* ==========================================================================
   UTILITIES & OVERRIDES
   ========================================================================== */
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-row { display: flex; flex-direction: row; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.gap-24 { gap: 24px; }
.gap-16 { gap: 16px; }
.gap-8 { gap: 8px; }
.mt-32 { margin-top: 32px; }

/* ==========================================================================
   PRINT (basic)
   ========================================================================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, #cookie-modal { display: none !important; }
  .section, .content-wrapper { box-shadow: none !important; background: #fff !important; }
}
