/* ==========================================================================
   Base Styles — Typography, Links, Utility Classes
   ========================================================================== */

/* ---- Body ---- */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  background-color: var(--color-bg-base);
  font-weight: 400;
  font-size: 1rem;
  overflow-x: hidden;
}

html {
  font-size: 17px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}


/* ---- Noise Texture Overlay — bricht Gradient Banding auf ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ---- Headings ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h1, h2 {
  background: radial-gradient(ellipse at 30% 40%, #ffffff 0%, rgba(255, 255, 255, 0.78) 60%, rgba(var(--color-sage-mid-rgb), 0.6) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h3, h4 {
  color: var(--color-white);
}


h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 400;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

h4 {
  font-size: 1.2rem;
}

/* ---- Section Headings ---- */
.section__heading {
  margin-bottom: 28px;
  position: relative;
  display: inline-block;
}

.text-center .section__heading,
.section__heading.text-center {
  display: block;
}

/* Decorative line under section headings */
.section__heading::after {
  content: '';
  display: block;
  width: 120px;
  max-width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--color-sage-rgb), 0.4) 30%, rgba(var(--color-sage-rgb), 0.4) 70%, transparent);
  margin-top: 20px;
}

.text-center .section__heading::after,
.section__heading.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

.section__subheading {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 56px;
  line-height: 1.75;
  max-width: var(--container-text);
  margin-left: auto;
  margin-right: auto;
}


/* ---- Paragraphs ---- */
p {
  margin-bottom: 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ---- Links ---- */
a {
  color: var(--color-sage-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

/* ---- Images ---- */
img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* ---- Lists ---- */
ul, ol {
  padding-left: 1.5em;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
  text-align: center;
}

.text-white {
  color: var(--color-white);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Focus Styles — Accessibility
   ========================================================================== */

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

/* ==========================================================================
   Scroll Reveal Animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(var(--reveal-distance));
  will-change: opacity, transform;
}

/* Entrance via CSS animation — unabhängig von Component-Transitions (Hover etc.).
   fill-mode: backwards hält den from-State während animation-delay,
   kein forwards-Fill → Hover-Transforms funktionieren nach der Animation normal. */
.reveal--visible {
  opacity: 1;
  transform: none;
  animation: revealFadeUp var(--reveal-duration) var(--reveal-easing) backwards;
}

/* Richtungs-Varianten — gesetzt von reveal.js via data-reveal-from */
.reveal--from-left.reveal--visible  { animation-name: revealFadeLeft; }
.reveal--from-right.reveal--visible { animation-name: revealFadeRight; }

/* Soft fade-in: Opacity ist dominant, minimale Bewegung nur als Tiefenhinweis */
@keyframes revealFadeUp {
  from { opacity: 0; transform: translateY(var(--reveal-distance)); }
  50%  { opacity: 0.6; }
  to   { opacity: 1; transform: none; }
}
@keyframes revealFadeLeft {
  from { opacity: 0; transform: translateX(calc(-1 * var(--reveal-distance))); }
  50%  { opacity: 0.6; }
  to   { opacity: 1; transform: none; }
}
@keyframes revealFadeRight {
  from { opacity: 0; transform: translateX(var(--reveal-distance)); }
  50%  { opacity: 0.6; }
  to   { opacity: 1; transform: none; }
}

.reveal--delay-1.reveal--visible { animation-delay: 0.08s; }
.reveal--delay-2.reveal--visible { animation-delay: 0.16s; }
.reveal--delay-3.reveal--visible { animation-delay: 0.24s; }
.reveal--delay-4.reveal--visible { animation-delay: 0.32s; }
.reveal--delay-5.reveal--visible { animation-delay: 0.4s; }
.reveal--delay-6.reveal--visible { animation-delay: 0.48s; }

/* Mobile: kein Stagger, kein Delay — Elemente erscheinen sofort beim Eintreten */
@media (max-width: 768px) {
  .reveal--delay-1.reveal--visible,
  .reveal--delay-2.reveal--visible,
  .reveal--delay-3.reveal--visible,
  .reveal--delay-4.reveal--visible,
  .reveal--delay-5.reveal--visible,
  .reveal--delay-6.reveal--visible { animation-delay: 0s; }
}

/* Reduced motion: sofort sichtbar, keine Animation */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    will-change: auto;
  }
  .reveal--visible {
    animation: none;
  }
}

/* Während des Scrollens Hover-Events deaktivieren: verhindert, dass Cards
   zucken, wenn der Cursor beim Scrollen über sie hinwegfährt und dadurch
   kurzzeitig :hover-Transforms (translateY) ausgelöst werden. */
body.is-scrolling * {
  pointer-events: none !important;
}

/* Touch-Devices (Mobile/Tablet): Hover-Lifts auf Cards deaktivieren.
   Touchscreens triggern :hover beim Antippen/Scrollen sticky, was
   beim Scrollen zu sichtbarem Hoch-/Runter-Zucken der Cards führt. */
@media (hover: none) {
  .therapy-card:hover,
  .coaching-card:hover,
  .pricing-card:hover,
  .pricing-card--featured:hover,
  .blog-card:hover,
  .cta-banner:hover,
  .contact__card:hover,
  .review-card:hover,
  .spirit__feature:hover,
  .spirit__cta.reveal--visible:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   Responsive Typography
   ========================================================================== */

@media (max-width: 480px) {
  body {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  /* Grundlegend: Weisser Hintergrund, schwarzer Text */
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 12pt;
  }

  /* Dekorative Overlays entfernen */
  body::before,
  body::after {
    display: none !important;
  }

  /* Navigation, Cookie-Banner, Parallax-Layer ausblenden */
  .navbar,
  .cookie-banner,
  .hero__depth-layer,
  .hero__light-sweep,
  .hero__vignette,
  .hero__scroll {
    display: none !important;
  }

  /* Reveal-Elemente sichtbar machen */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  /* Links als URL anzeigen */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }

  /* Seitenumbrueche vermeiden innerhalb von Karten/Sektionen */
  .section,
  .therapy-card,
  .pricing-card,
  .coaching-card,
  .contact__card,
  .review-card,
  .blog-card {
    break-inside: avoid;
  }

  /* Hintergruende entfernen fuer Lesbarkeit */
  .section,
  .section--dark-1,
  .section--deep,
  .hero {
    background: none !important;
  }

  /* Textfarben fuer Druck anpassen */
  h1, h2, h3, h4 {
    color: #000 !important;
    background: none !important;
    -webkit-text-fill-color: #000 !important;
  }

  /* Schatten und Animationen entfernen */
  * {
    box-shadow: none !important;
    text-shadow: none !important;
    animation: none !important;
  }
}
