/* ===============================
   Schimmernde Wolke Yogaclub
   Nature_Organic UI – style.css
   Mobile-first, Flexbox-only layouts
   =============================== */

/* -------- CSS Reset & Base Normalize -------- */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

/* -------- Theme Variables (with fallbacks) -------- */
:root {
  --color-primary: #1F3A37; /* forest green */
  --color-secondary: #C27A5A; /* terracotta */
  --color-accent: #F7F5F0; /* warm parchment */
  --color-leaf: #2C554C; /* deep leaf green */
  --color-sage: #7A9B87; /* soft sage */
  --color-sand: #EAE6DC; /* sand */
  --color-stone: #6B6E68; /* neutral stone */
  --color-ink: #1F3A37; /* text */
  --color-white: #FFFFFF;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 20px rgba(31,58,55,0.12);
  --shadow-lg: 0 16px 40px rgba(31,58,55,0.16);

  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-30: 30px;
  --space-32: 32px;
  --space-40: 40px;
  --space-60: 60px;
}

/* -------- Base Typography -------- */
body {
  background: var(--color-accent);
  color: var(--color-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--color-primary); line-height: 1.25; }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; margin-top: var(--space-24); }
h3 { font-size: 20px; color: var(--color-leaf); }
h4 { font-size: 18px; color: var(--color-primary); }

p { font-size: 16px; color: var(--color-ink); }
small { font-size: 14px; color: var(--color-stone); }
strong { font-weight: 700; }

/* Accessible, organic link styling */
a[href] { color: var(--color-secondary); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a[href]:hover { color: var(--color-leaf); }
a[href]:focus { outline: 3px solid rgba(194,122,90,0.35); outline-offset: 2px; border-radius: 4px; }

/* -------- Layout Containers (Flexbox-only) -------- */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; }
.content-wrapper { display: flex; flex-direction: column; gap: var(--space-20); }

/* Mandatory spacing & alignment patterns */
.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; }

/* Ensure spacing between all top-level sections */
main > section { padding: var(--space-32) 0; }
footer > section { padding: var(--space-24) 0; }

/* -------- Header & Navigation -------- */
header { position: relative; background: var(--color-white); border-bottom: 1px solid rgba(31,58,55,0.08); box-shadow: var(--shadow-sm); }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); }
.logo img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: var(--space-16); }
.main-nav a { color: var(--color-primary); font-weight: 600; padding: 8px 10px; border-radius: 8px; }
.main-nav a:hover { background: var(--color-accent); color: var(--color-leaf); }
.main-nav a:focus { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

.header-cta { display: none; align-items: center; gap: var(--space-12); }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 999px; background: var(--color-accent); color: var(--color-primary); box-shadow: var(--shadow-sm); transition: background 0.2s ease, transform 0.2s ease; }
.mobile-menu-toggle:hover { background: var(--color-sand); transform: translateY(-1px); }
.mobile-menu-toggle:focus { outline: 3px solid rgba(194,122,90,0.4); outline-offset: 2px; }

/* Mobile Menu Overlay */
.mobile-menu { position: fixed; inset: 0; background: var(--color-white); z-index: 9999; transform: translateX(100%); transition: transform 0.35s ease; display: flex; flex-direction: column; padding: var(--space-20); gap: var(--space-20); box-shadow: var(--shadow-lg); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 999px; background: var(--color-accent); color: var(--color-primary); display: inline-flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); }
.mobile-menu-close:hover { background: var(--color-sand); }
.mobile-nav { display: flex; flex-direction: column; gap: var(--space-16); }
.mobile-nav a { font-size: 18px; font-weight: 600; color: var(--color-primary); padding: 12px 8px; border-radius: 10px; }
.mobile-nav a:hover { background: var(--color-accent); color: var(--color-leaf); }

/* States for opening the mobile menu (robust to various JS implementations) */
.mobile-menu.open, .mobile-menu.active, body.menu-open .mobile-menu, .mobile-menu[aria-hidden="false"] { transform: translateX(0); }
body.menu-open { overflow: hidden; }

/* -------- Hero Sections -------- */
.hero { background: var(--color-sand); border-bottom: 1px solid rgba(31,58,55,0.08); }
.hero .content-wrapper { padding: var(--space-24); background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); align-items: flex-start; }
.hero h1 { font-size: 28px; }
.hero .subheadline { font-size: 18px; color: var(--color-stone); }
.actions { display: flex; align-items: center; gap: var(--space-12); flex-wrap: wrap; }
.note { font-size: 14px; color: var(--color-stone); }

/* -------- Buttons -------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 999px; font-weight: 700; letter-spacing: 0.2px; transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.12s ease; border: 2px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn:focus { outline: 3px solid rgba(194,122,90,0.35); outline-offset: 2px; }

.btn-primary { background: var(--color-primary); color: var(--color-white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #15302D; box-shadow: var(--shadow-md); }

.btn-secondary { background: transparent; color: var(--color-secondary); border-color: var(--color-secondary); }
.btn-secondary:hover { background: rgba(194,122,90,0.1); color: var(--color-primary); }

/* -------- Text Sections & Utilities -------- */
.text-section { display: flex; flex-direction: column; gap: var(--space-16); }
.text-section p + p { margin-top: 4px; }
.text-section ul, .text-section ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.text-section ul { list-style: disc; }
.text-section ol { list-style: decimal; }
.text-section img { display: inline; vertical-align: middle; max-height: 18px; margin-right: 6px; }

.stat-highlights { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; color: var(--color-leaf); font-weight: 700; }

.map-note { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: var(--color-accent); border: 1px solid rgba(31,58,55,0.08); border-radius: var(--radius-md); }

/* -------- Testimonials (light bg, dark text for contrast) -------- */
.testimonial-card { background: var(--color-white); border: 1px solid rgba(31,58,55,0.08); border-left: 6px solid var(--color-secondary); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.testimonial-card p { margin: 0; }
.testimonial-card strong { color: var(--color-primary); }
.testimonial-card:hover { box-shadow: var(--shadow-md); }

/* -------- Tables: Schedule -------- */
.schedule { display: flex; flex-direction: column; gap: var(--space-16); }
.schedule table { width: 100%; border-collapse: collapse; background: var(--color-white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.schedule thead th { text-align: left; background: var(--color-accent); color: var(--color-primary); font-weight: 700; padding: 12px; border-bottom: 1px solid rgba(31,58,55,0.12); }
.schedule tbody td { padding: 12px; border-bottom: 1px solid rgba(31,58,55,0.08); color: var(--color-ink); }
.schedule tbody tr:nth-child(even) td { background: #FBFAF7; }
.schedule em { color: var(--color-stone); }

/* -------- Cards (generic) -------- */
.card { background: var(--color-white); border: 1px solid rgba(31,58,55,0.08); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: var(--space-20); transition: box-shadow 0.25s ease, transform 0.12s ease; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* -------- Footer -------- */
footer { background: var(--color-primary); color: var(--color-accent); margin-top: var(--space-40); }
footer h3, footer h4 { color: var(--color-accent); }
footer a { color: #E9D7CD; text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--color-white); }
footer .content-wrapper { gap: var(--space-16); }
footer .text-section p { color: #EDE7E1; }

/* -------- Cookie Consent Banner -------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--color-white); color: var(--color-ink); border-top: 1px solid rgba(31,58,55,0.12); box-shadow: 0 -8px 30px rgba(31,58,55,0.12); display: flex; flex-direction: column; align-items: center; gap: var(--space-12); padding: 16px 20px; z-index: 9998; transform: translateY(100%); opacity: 0; pointer-events: none; transition: transform 0.35s ease, opacity 0.35s ease; }
.cookie-banner .container { align-items: center; }
.cookie-banner .content { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.cookie-banner.show, .cookie-banner.active, body.show-cookie-banner .cookie-banner { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-btn { padding: 10px 14px; border-radius: 999px; font-weight: 700; border: 2px solid transparent; }
.cookie-accept { background: var(--color-primary); color: var(--color-white); }
.cookie-accept:hover { background: #15302D; }
.cookie-reject { background: transparent; color: var(--color-secondary); border-color: var(--color-secondary); }
.cookie-reject:hover { background: rgba(194,122,90,0.1); }
.cookie-settings { background: var(--color-accent); color: var(--color-primary); border: 2px solid rgba(31,58,55,0.15); }
.cookie-settings:hover { background: var(--color-sand); }

/* Cookie Modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(31,58,55,0.6); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.cookie-modal.show, .cookie-modal.active, body.cookie-open .cookie-modal { opacity: 1; pointer-events: auto; }
.cookie-modal-content { background: var(--color-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; max-width: 640px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid rgba(31,58,55,0.12); border-radius: var(--radius-md); }
.toggle { position: relative; width: 44px; height: 26px; background: #D3D7D4; border-radius: 999px; transition: background 0.2s ease; flex: 0 0 auto; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: var(--color-white); border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform 0.2s ease; }
.toggle.is-on { background: var(--color-leaf); }
.toggle.is-on::after { transform: translateX(18px); }

/* -------- Accessibility helpers -------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* -------- Page-specific fine-tuning -------- */
/* Index */
.hero .note { max-width: 60ch; }

/* Kursplan filter notice */
.filter { display: flex; flex-direction: column; gap: 8px; padding: 12px; background: var(--color-accent); border: 1px solid rgba(31,58,55,0.08); border-radius: var(--radius-md); }

/* Preise page emphasis */
.text-section em { background: rgba(194,122,90,0.08); padding: 2px 6px; border-radius: 6px; }

/* Footer callouts */
footer section:first-child .content-wrapper { background: rgba(255,255,255,0.05); padding: var(--space-24); border-radius: var(--radius-lg); }

/* -------- Tables and inline icons in text blocks -------- */
table th, table td { vertical-align: top; }

/* -------- Organic details (subtle borders & radius on sections) -------- */
main > section .content-wrapper { background: var(--color-white); border: 1px solid rgba(31,58,55,0.06); border-radius: var(--radius-lg); padding: var(--space-24); box-shadow: var(--shadow-sm); }

/* -------- Responsive: Mobile-first -> larger screens -------- */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 40px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .hero .content-wrapper { padding: var(--space-40); }
  .actions { gap: var(--space-16); }
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
}

/* -------- Ensure alignment rules on mobile -------- */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* -------- Additional Flex Utilities -------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-20 { gap: 20px; }

/* -------- Print basics -------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}

/* -------- Notes -------- */
/* The stylesheet adheres to Flexbox-only layout containers. No CSS Grid or Columns are used. Tables are native table elements for tabular data (schedule). */
