/* =========================
   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 { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }
body {
  line-height: 1.5;
  background: #F9FBFC;
  color: #1c2630;
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #1876B1; text-decoration: none; transition: color 0.2s; }
a:hover, a:focus { color: #245634; text-decoration: underline; }
ul, ol { padding-left: 1.6em; margin-bottom: 16px; }
h1, h2, h3, h4, h5, h6 { font-family: 'Roboto Slab', serif; color: #245634; font-weight: 700; margin-bottom: 16px; }
h1 { font-size: 2.25rem; line-height: 1.2; margin-bottom: 20px; }
h2 { font-size: 1.625rem; line-height: 1.35; margin-bottom: 16px; }
h3 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 12px; }
h4, h5, h6 { font-size: 1rem; line-height: 1.3; }
p { margin-bottom: 16px; }
strong, b { color: #245634; font-weight: bold; }
em, i { font-style: italic; }
address { font-style: normal; color: #454f5b; font-size: 15px; margin-bottom: 16px; }

/* =========================
   BRAND COLORS & VARIABLES
   ========================= */
:root {
  --color-primary: #245634;
  --color-secondary: #1876B1;
  --color-accent: #F2EDE8;
  --color-bg: #F9FBFC;
  --color-dark: #1c2630;
  --color-light: #ffffff;
  --color-gray: #E9EEF1;
  --color-gray-dark: #CED6DC;
  --color-shadow: rgba(24, 118, 177, 0.07);
}

/* =========================
   LAYOUT CONTAINERS
   ========================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-light);
  box-shadow: 0 2px 14px 0 var(--color-shadow);
  border-radius: 18px;
}

@media (max-width: 900px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 32px;
  }
  .container { padding: 0 8px; }
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  background: var(--color-primary);
  color: var(--color-light);
  width:100%;
  box-shadow: 0 4px 18px 0 rgba(36, 86, 52, 0.07);
  position: relative;
  z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  display: flex;
  gap: 20px;
}
.logo img {
  height: 46px;
  width: auto;
  vertical-align: middle;
  transition: filter 0.2s;
  filter: drop-shadow(0 2px 2px var(--color-shadow));
}
.main-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  color: var(--color-light);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 16px;
  padding: 5px 2px;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--color-accent);
}
.cta-btn {
  background: var(--color-secondary);
  color: var(--color-light);
  font-weight: 700;
  border-radius: 28px;
  padding: 12px 30px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--color-shadow);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-align: center;
  display: inline-block;
}
.cta-btn:hover, .cta-btn:focus {
  background: var(--color-primary);
  color: var(--color-accent);
  box-shadow: 0 7px 24px var(--color-shadow);
}

/* Hamburger Menu Button (only for mobile) */
.mobile-menu-toggle {
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--color-accent);
  cursor: pointer;
  margin-left: 16px;
  display: none;
  z-index: 120;
  transition: color 0.2s;
}
.mobile-menu-toggle:focus { outline: 2px solid var(--color-accent); }

@media (max-width: 1024px) {
  header .container {
    gap: 6px;
  }
  .main-nav {
    gap: 18px;
  }
  .logo img { height: 38px; }
}
@media (max-width: 820px) {
  .main-nav,
  .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  header .container {
    gap: 0;
  }
}

/* =========================
   MOBILE MENU
   ========================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: var(--color-primary);
  color: var(--color-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.77,0,.175,1);
  z-index: 1200;
  box-shadow: 0 12px 32px var(--color-shadow);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-accent);
  font-size: 2.1rem;
  align-self: flex-end;
  margin: 24px 28px 8px 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:focus { outline: 2px solid var(--color-accent); }
.mobile-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 40px;
  padding-left: 44px;
}
.mobile-nav a {
  color: var(--color-light);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 10px 0;
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
}

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

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--color-primary);
  color: var(--color-accent);
  padding: 40px 0 24px 0;
  width: 100%;
  box-shadow: 0 -1px 10px var(--color-shadow);
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 28px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--color-accent);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-secondary);
}
footer address {
  color: var(--color-accent);
  font-size: 15px;
}
footer address a {
  color: var(--color-secondary);
  text-decoration: none;
}
footer address a:hover, footer address a:focus {
  text-decoration: underline;
}

/* =========================
   SECTION & CARD DESIGN
   ========================= */
.feature-grid, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.feature-grid > div {
  flex: 1 1 260px;
  min-width: 220px;
  background: var(--color-gray);
  border-radius: 14px;
  padding: 28px 16px;
  text-align: center;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px var(--color-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, background 0.2s;
}
.feature-grid > div:hover {
  background: var(--color-accent);
  box-shadow: 0 7px 24px var(--color-shadow);
}
.feature-grid img {
  height: 44px;
  margin-bottom: 12px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-light);
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--color-shadow);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, background 0.2s;
}
.card:hover {
  box-shadow: 0 7px 24px var(--color-shadow);
  background: var(--color-accent);
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--color-gray);
  border-radius: 16px;
  padding: 20px 28px;
  color: var(--color-dark);
  box-shadow: 0 2px 8px var(--color-shadow);
  min-width: 220px;
  max-width: 540px;
  margin-bottom: 24px;
  flex: 1 1 300px;
  transition: background 0.2s, box-shadow 0.2s;
  font-size: 1.13rem;
}
.testimonial-card p {
  color: var(--color-dark);
}
.testimonial-card strong {
  color: var(--color-secondary);
  font-size: 1rem;
  margin-left: 12px;
}
.testimonial-card:hover {
  background: var(--color-accent);
  box-shadow: 0 7px 24px var(--color-shadow);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* =========================
   GENERAL SPACING & TYPOGRAPHY
   ========================= */
.subheadline {
  font-size: 1.22rem;
  color: var(--color-secondary);
  margin-bottom: 18px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 400;
}
strong {
  font-weight: 700;
  color: var(--color-primary);
}
main ul li {
  margin-bottom: 8px;
  padding-left: 0.25em;
}
main ol li {
  margin-bottom: 6px;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 900px) {
  .content-wrapper, .feature-grid, .card-container, .content-grid {
    flex-direction: column;
    gap: 16px;
  }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
  }
  .feature-grid > div {
    min-width: 160px;
    width: 100%;
  }
}
@media (max-width: 768px) {
  .section {
    padding: 20px 4px;
    margin-bottom: 24px;
  }
  .feature-grid, .content-grid, .card-container {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .footer-nav { gap: 10px; }
}

/* =========================
   BUTTONS & INTERACTIONS
   ========================= */
button, .cta-btn {
  font-family: 'Open Sans', Arial, sans-serif;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border 0.2s;
  outline: none;
}
button:active, .cta-btn:active {
  transform: translateY(1px);
}

/* =========================
   ANIMATIONS
   ========================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
.section, .feature-grid > div, .testimonial-card, .card {
  animation: fadeInUp 0.9s cubic-bezier(.77,0,.175,1) both;
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0; bottom: 0;
  width: 100vw;
  background: var(--color-dark);
  color: var(--color-accent);
  box-shadow: 0 -2px 12px var(--color-shadow);
  z-index: 1400;
  display: flex;
  align-items: center;
  padding: 20px 32px;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 1rem;
  transition: transform 0.3s;
  transform: translateY(0);
}
.cookie-banner.hide {
  transform: translateY(110%);
  pointer-events: none;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 10px 20px;
  border-radius: 24px;
  background: var(--color-secondary);
  border: none;
  color: var(--color-light);
  font-weight: 600;
  font-size: 1rem;
  margin-right: 6px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.cookie-btn.accept {
  background: var(--color-primary);
}
.cookie-btn.reject {
  background: #B13D18;
}
.cookie-btn.settings {
  background: var(--color-gray-dark);
  color: var(--color-dark);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--color-accent);
  color: var(--color-primary);
  box-shadow: 0 2px 14px var(--color-shadow);
}
@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px 10px;
    font-size: 15px;
  }
  .cookie-banner .cookie-actions {
    justify-content: flex-start;
    gap: 8px;
  }
}

/* COOKIE PREFERENCE MODAL */
.cookie-modal-overlay {
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(36,86,52,0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInUp 0.4s cubic-bezier(.77,0,.175,1);
}
.cookie-modal {
  background: var(--color-light);
  color: var(--color-dark);
  min-width: 290px;
  max-width: 99vw;
  border-radius: 20px;
  box-shadow: 0 6px 21px rgba(24, 118, 177, 0.18);
  padding: 32px 32px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  animation: fadeInUp 0.4s cubic-bezier(.77,0,.175,1);
}
.cookie-modal h3 {
  font-size: 1.33rem;
  color: var(--color-primary);
}
.cookie-modal label {
  margin-left: 8px;
  font-weight: 600;
}
.cookie-modal .category-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
}
.cookie-modal .toggle {
  position: relative;
  width: 42px;
  height: 22px;
  display: inline-block;
  background: var(--color-gray-dark);
  border-radius: 12px;
  transition: background 0.2s;
}
.cookie-modal .toggle input[type="checkbox"] {
  opacity: 0;
  width: 42px; height: 22px;
  position: absolute;
  left: 0; top: 0;
  cursor: pointer;
}
.cookie-modal .toggle .slider {
  position: absolute;
  left: 2px; top: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-secondary);
  transition: transform 0.2s, background 0.2s;
}
.cookie-modal .toggle input:checked + .slider {
  transform: translateX(20px);
  background: var(--color-primary);
}
.cookie-modal .essential {
  color: #888;
  font-size: 14px;
  margin-left: 14px;
}
.cookie-modal .actions {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 14px;
  padding-top: 12px;
  justify-content: flex-end;
}
.cookie-modal .close {
  position: absolute;
  top: 10px; right: 18px;
  background: transparent;
  border: none;
  font-size: 1.9rem;
  color: var(--color-gray-dark);
  cursor: pointer;
}
.cookie-modal .close:focus { outline: 2px solid var(--color-secondary); }

@media (max-width: 480px) {
  .cookie-modal {
    min-width: 0;
    padding: 18px 6vw 12px 7vw;
    font-size: 15px;
  }
}

/* =========================
   MISCELLANEOUS & ACCESSIBILITY
   ========================= */
::-webkit-input-placeholder { color: #AAB2BA; opacity: 1; }
::-moz-placeholder { color: #AAB2BA; opacity: 1; }
:-ms-input-placeholder { color: #AAB2BA; opacity: 1; }
::placeholder { color: #AAB2BA; opacity: 1; }

:focus {
  outline-color: var(--color-secondary);
  outline-width: 2px;
  outline-style: solid;
  outline-offset: 1px;
}

/* Hide visually only but keep for screen readers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  border: 0 !important;
}

/* =========================
   SPACING QUICK REFERENCE
   ========================= */
/*
.section                    margin-bottom: 60px; padding: 40px 20px;
.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;
*/

/* =========================
   FORM ELEMENTS (for Kontakt etc.)
   ========================= */
input[type="text"], input[type="email"], textarea {
  padding: 12px 14px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: 1px solid var(--color-gray-dark);
  border-radius: 7px;
  margin-bottom: 16px;
  width: 100%;
  background: var(--color-light);
  color: var(--color-dark);
  transition: border 0.2s;
}
input[type="text"]:focus, input[type="email"]:focus, textarea:focus {
  border: 1.5px solid var(--color-secondary);
}
label {
  display: block;
  margin-top: 8px;
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 4px;
}
textarea {
  min-height: 92px;
  resize: vertical;
}

/* =========================
   ICON INLINE SIZE/TEXT
   ========================= */
address img, .content-wrapper img[alt^="Adresse"], .content-wrapper img[alt^="Telefon"], .content-wrapper img[alt^="E-Mail"], .content-wrapper img[alt^="Öffnungszeiten"], .content-wrapper img[alt^="Kinder"], .content-wrapper img[alt^="Fitness"], .content-wrapper img[alt^="Kurse"], .content-wrapper img[alt^="Reha"], .content-wrapper img[alt^="Personal-Trainer"], .content-wrapper img[alt^="Map"], .content-wrapper img[alt^="Phone"], .content-wrapper img[alt^="Mail"], .content-wrapper img[alt^="Clock"] {
  display: inline-block;
  height: 20px;
  width: 20px;
  vertical-align: text-bottom;
  margin-right: 7px;
}

/* =========================
   THANK YOU SECTION CENTERING
   ========================= */
.content-wrapper[style*="text-align:center"], .content-wrapper.centered {
  align-items: center;
  justify-content: center;
  text-align: center !important;
}

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