/* Heal & Grow — Base Reset & Typography */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Mobile: Sticky-CTA-Höhe als Bottom-Padding, damit Footer-Content nicht verdeckt wird */
@media (max-width: 1023px) {
  body {
    padding-bottom: 72px;
  }
}

/* Headlines */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--wine);
  line-height: var(--lh-tight);
  margin: 0 0 var(--s3);
  letter-spacing: -0.01em;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: clamp(18px, 1.6vw, 22px); }

p {
  margin: 0 0 var(--s3);
  max-width: 65ch;
}

a {
  color: var(--rose);
  text-decoration: none;
  transition: color 200ms var(--ease-snap);
}

a:hover {
  color: var(--mauve);
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg, video {
  max-width: 100%;
  display: block;
  height: auto;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}

button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

ul, ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Utility Classes */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--section-x);
  position: relative;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--section-x);
  position: relative;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 var(--s2);
  display: inline-block;
}

.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-wine { color: var(--wine); }
.text-white { color: var(--white); }

.section {
  padding: var(--section-y) 0;
  position: relative;
}

.section-headline {
  text-align: center;
  margin-bottom: var(--s6);
}

.section-headline h2 {
  max-width: 16ch;
  margin: 0 auto var(--s2);
}

.section-headline p {
  max-width: 48ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: var(--fs-body-lg);
}

/* Selection */
::selection {
  background: var(--blush);
  color: var(--wine);
}

/* Landingpage: warme Cremfarbe überall — ivory-Variable überschreiben */
body.page-course {
  --ivory: #FFFFFF;
  background: #FFFFFF;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
