/* =========================
   SilberVital Bewegungslounge – style.css
   Professional Corporate: blue/gray palette, structured layout, business fonts
   Mobile-first, Flexbox-only, accessible
   ========================= */

/* -------------------------
   0) RESET & BASELINE
------------------------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; color: #123145; background: #FFFFFF; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #0B3A53; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding-left: 20px; }
p { margin: 0 0 16px; }
strong { font-weight: 700; }
button { font-family: inherit; cursor: pointer; }

/* Color system (with fallbacks) */
:root {
  --color-primary: #0B3A53;
  --color-secondary: #4C956C;
  --color-accent: #FFFFFF;
  --color-bg: #F4F7FA;
  --color-surface: #FFFFFF;
  --color-muted: #5A6B7C;
  --color-border: #E3E8EF;
  --color-border-strong: #CBD5E1;
  --shadow-sm: 0 2px 8px rgba(12, 30, 50, 0.06);
  --shadow-md: 0 6px 18px rgba(12, 30, 50, 0.10);
}

::selection { background: #CDE2EE; color: #0B3A53; }

/* Typography scale */
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, Geneva, Tahoma, sans-serif; color: #0B3A53; margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 32px; }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 18px; color: #153B52; }
small { color: #6B7C8F; }

/* Responsive type */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  body { font-size: 17px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* Accessibility: focus styles */
:focus-visible { outline: 3px solid #4C956C; outline-offset: 2px; }

/* -------------------------
   1) LAYOUT UTILITIES (FLEXBOX ONLY)
------------------------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; }
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 20px; display: flex; flex-direction: column; 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; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 12px; box-shadow: var(--shadow-sm); color: #0F2F43; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Responsive alignment rules */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: flex-start; }
}

/* Generic spaced list containers using flex */
.feature-grid, .service-cards, .category-cards, .program-list, .testimonial-list, .footer-nav, .legal-nav, .cta-group, .usp-list ul, .trust-badges ul, .benefit-highlights ul { display: flex; flex-wrap: wrap; gap: 20px; }

/* Ensure minimum spacing between cards/blocks */
.feature-grid > div, .service-cards > div, .category-cards > div, .program-list > .program-card, .testimonial-list > .testimonial-card, .faq-accordion > div { margin: 0; }

/* -------------------------
   2) HEADER & NAVIGATION
------------------------- */
header { position: sticky; top: 0; background: #FFFFFF; border-bottom: 1px solid var(--color-border); z-index: 1000; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; gap: 16px; }
.logo img { height: 42px; }

.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a { color: #123145; font-weight: 500; padding: 8px 6px; border-radius: 6px; }
.main-nav a:hover { background: #EEF4F8; text-decoration: none; }

/* Buttons general */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.08s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--color-primary); color: #FFFFFF; box-shadow: 0 2px 0 rgba(11,58,83,0.3); }
.btn.primary:hover { background: #09425F; color: #FFFFFF; box-shadow: 0 6px 16px rgba(11,58,83,0.22); text-decoration: none; }
.btn.secondary { background: #FFFFFF; color: var(--color-primary); border: 1px solid var(--color-border-strong); }
.btn.secondary:hover { background: #F5FAF7; color: #2C6E4F; border-color: #B7D8C6; text-decoration: none; }

.cta-group { align-items: center; }

/* Mobile hamburger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; height: 40px; width: 44px; border-radius: 8px; border: 1px solid var(--color-border-strong); background: #FFFFFF; color: var(--color-primary); font-size: 20px; }
.mobile-menu-toggle:hover { background: #F0F5F8; }

/* Mobile menu overlay (full screen) */
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; padding: 0; background: rgba(11,58,83,0.45); transform: translateX(100%); transition: transform 0.35s ease; z-index: 2000; }
.mobile-menu.open, body.menu-open .mobile-menu, .mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu-close { order: 1; width: 85%; max-width: 380px; border: 0; background: #FFFFFF; color: var(--color-primary); font-size: 22px; padding: 12px 12px; border-bottom: 1px solid var(--color-border); border-top-left-radius: 12px; }
.mobile-nav { order: 2; width: 85%; max-width: 380px; background: #FFFFFF; padding: 12px 20px 28px; display: flex; flex-direction: column; gap: 6px; height: 100%; overflow-y: auto; border-left: 1px solid var(--color-border); box-shadow: var(--shadow-md); border-bottom-left-radius: 12px; }
.mobile-nav a { display: flex; align-items: center; padding: 12px 6px; color: #123145; border-radius: 8px; border: 1px solid transparent; }
.mobile-nav a:hover { background: #EEF4F8; text-decoration: none; }
.mobile-nav a.btn, .mobile-nav .btn { margin-top: 8px; }

/* Desktop nav */
@media (min-width: 992px) {
  .mobile-menu-toggle { display: none; }
  .main-nav { display: flex; flex-direction: row;}
}

/* -------------------------
   3) HERO & GLOBAL SECTIONS
------------------------- */
.hero { background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.hero .container { padding-top: 28px; padding-bottom: 28px; }
.eyebrow { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-secondary); font-weight: 700; }

/* Default sections spacing on all pages */
main section { padding: 28px 0; border-bottom: 1px solid #F1F4F8; }
main section:last-of-type { border-bottom: 0; }

/* Lists used as highlights/badges */
.trust-badges ul, .benefit-highlights ul, .usp-list ul { align-items: center; }
.trust-badges li, .benefit-highlights li, .usp-list li { display: flex; align-items: center; gap: 10px; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow-sm); color: #0F2F43; }
.trust-badges li img { width: 20px; height: 20px; }

/* Steps list */
.steps-list { counter-reset: step; display: flex; flex-direction: column; gap: 12px; padding-left: 0; list-style: none; }
.steps-list li { display: flex; align-items: center; gap: 12px; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 10px; padding: 12px 14px; box-shadow: var(--shadow-sm); }
.steps-list li::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-primary); color: #FFFFFF; font-weight: 700; font-size: 14px; }

/* Informational notices */
.safety-notice, .accessibility-notes, .map-hint { display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; border: 1px solid var(--color-border); border-left: 4px solid var(--color-secondary); border-radius: 10px; padding: 16px; color: #0F2F43; box-shadow: var(--shadow-sm); }

/* Address block */
.address-block { display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); color: #0F2F43; }

/* Cards & grids */
.feature-grid > div, .service-cards > div, .category-cards > div { flex: 1 1 260px; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.2s ease; }
.feature-grid > div:hover, .service-cards > div:hover, .category-cards > div:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Program cards */
.program-list { align-items: stretch; }
.program-card { flex: 1 1 280px; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); transition: transform 0.15s ease, box-shadow 0.2s ease; display: flex; flex-direction: column; gap: 10px; }
.program-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Testimonials: light background, dark text for high contrast */
.testimonial-list { align-items: stretch; }
.testimonial-card p { margin: 0; }
.testimonial-card em { color: #2B4356; }

/* FAQ accordion (static styles; JS can toggle .open) */
.faq-accordion { display: flex; flex-direction: column; gap: 16px; }
.faq-accordion > div { display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s ease; }
.faq-accordion > div:hover { box-shadow: var(--shadow-md); }
.faq-accordion h3 { display: flex; align-items: center; gap: 10px; margin: 0; }

/* Two-column-like layout on large screens using flex */
@media (min-width: 992px) {
  .content-grid { justify-content: space-between; }
  .content-grid > * { flex: 1 1 calc(50% - 10px); }
}

/* -------------------------
   4) FOOTER
------------------------- */
footer { background: #0B3349; color: #E7EEF5; }
footer a { color: #E7EEF5; }
footer a:hover { color: #FFFFFF; text-decoration: underline; }
footer .container { padding-top: 28px; padding-bottom: 28px; }
footer .content-wrapper { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; flex: 1 1 260px; }
.footer-brand img { width: 46px; height: auto; }
.footer-nav, .legal-nav { flex: 1 1 220px; align-items: flex-start; }
.footer-nav a, .legal-nav a { padding: 6px 0; }
.newsletter-signup { flex: 1 1 320px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 12px 14px; }
.social-links { flex: 1 1 200px; color: #CFE3F1; }
.legal-note { flex: 1 1 100%; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 12px; color: #C9D6E1; }

/* -------------------------
   5) PAGE-SPECIFIC SMALL UTILITIES
------------------------- */
.text-section { display: flex; flex-direction: column; gap: 10px; }
.map-hint p:last-child, .address-block p:last-child { margin-bottom: 0; }

/* Hero within internal pages keeps consistent spacing */
.hero p { max-width: 70ch; }

/* -------------------------
   6) INTERACTIVE MICRO-INTERACTIONS
------------------------- */
/* Links subtle underline on focus/hover */
a:focus-visible { outline: 3px solid #4C956C; outline-offset: 2px; text-decoration: none; }

/* Cards elevate on hover (defined above) */

/* -------------------------
   7) RESPONSIVE LAYOUT TWEAKS
------------------------- */
@media (min-width: 768px) {
  .cta-group { gap: 16px; }
  .hero .container { padding-top: 40px; padding-bottom: 40px; }
}
@media (min-width: 1024px) {
  .container { gap: 28px; }
  .content-wrapper { gap: 24px; }
}

/* -------------------------
   8) COOKIE CONSENT BANNER & MODAL
------------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-top: 1px solid var(--color-border); box-shadow: 0 -8px 24px rgba(12, 30, 50, 0.12); transform: translateY(100%); transition: transform 0.35s ease; z-index: 2500; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .inner { max-width: 1160px; margin: 0 auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.cookie-banner .content { display: flex; flex-direction: column; gap: 8px; color: #123145; }
.cookie-banner .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 10px 14px; border-radius: 8px; font-weight: 700; }
.cookie-banner .btn.accept { background: var(--color-secondary); color: #FFFFFF; border-color: transparent; }
.cookie-banner .btn.accept:hover { background: #3E7E5B; }
.cookie-banner .btn.reject { background: #FFFFFF; color: #0B3A53; border: 1px solid var(--color-border-strong); }
.cookie-banner .btn.reject:hover { background: #F6F9FB; }
.cookie-banner .btn.settings { background: #FFFFFF; color: #0B3A53; border: 1px dashed var(--color-border-strong); }

/* Cookie modal */
.cookie-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(5, 18, 28, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 3000; padding: 20px; }
.cookie-modal.show { opacity: 1; pointer-events: auto; }
.cookie-modal .dialog { background: #FFFFFF; border: 1px solid var(--color-border); border-radius: 12px; box-shadow: var(--shadow-md); width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 16px; padding: 18px; }
.cookie-modal .dialog-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .dialog-body { display: flex; flex-direction: column; gap: 14px; }
.cookie-modal .cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #FAFCFE; border: 1px solid var(--color-border); border-radius: 10px; padding: 12px 14px; }
.cookie-modal .dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Toggle and checkboxes */
input[type="checkbox"], input[type="radio"] { accent-color: var(--color-secondary); }

/* -------------------------
   9) ACCESSIBILITY & READABILITY EXTRAS
------------------------- */
/* Ensure testimonial and review sections always use dark text on light background */
.testimonial-card, .testimonial-list, .review, .reviews { color: #0F2F43; background: #FFFFFF; }

/* -------------------------
   10) PAGE CLASS-SPECIFIC ADJUSTMENTS
------------------------- */
/* Index highlights */
.benefit-highlights ul, .trust-badges ul { align-items: stretch; }

/* Kurse & Programme category grid spacing */
.category-cards > div h3 { margin-bottom: 6px; }

/* Contact page small blocks */
.text-section p { margin: 0; }

/* Legal pages hero tightening */
.hero h1 + p { margin-top: -6px; }

/* -------------------------
   11) FLEXBOX-ONLY SAFEGUARDS
------------------------- */
/* No CSS Grid or Columns used. All layout containers below explicitly flex. */
main, footer, header, nav, section, .logo, .hero, .newsletter-signup, .address-block, .safety-notice, .accessibility-notes, .map-hint, .text-section, .social-links, .legal-note { display: flex; flex-direction: column; }

/* Ensure no overlapping and enough breathing room */
section .container { gap: 20px; }

/* -------------------------
   12) DESKTOP ENHANCEMENTS
------------------------- */
@media (min-width: 992px) {
  /* Hero layout: center text with comfortable width */
  .hero .content-wrapper { max-width: 900px; }

  /* Multi-column flex arrangements */
  .footer-nav, .legal-nav { flex-direction: column; }

  /* Text and image style section (if used) */
  .text-image-section { align-items: center; }
}

/* -------------------------
   13) MISC UI POLISH
------------------------- */
hr { border: 0; border-top: 1px solid var(--color-border); margin: 20px 0; }
blockquote { margin: 0; padding-left: 16px; border-left: 4px solid #C2D7E6; color: #2B4356; }

/* -------------------------
   14) PRINT BASICS
------------------------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  a { text-decoration: underline; }
}

/* End of stylesheet */
