/* =========================================================
   Cosmetic Art Frankfurt – globale Stile & Animationen
   Farben hier zentral – einmal ändern, gilt überall.
   ========================================================= */

:root {
  /* Brand */
  --primary-green: #2d4a3e;
  --cream: #faf8f5;
  --cream-dark: #f0ebe3;
  --warm-gray: #8a8578;
  --gold: #c4a574;

  /* Tokens */
  --background: #faf8f5;
  --foreground: #2a2a28;
  --card: #ffffff;
  --primary: #2d4a3e;
  --primary-foreground: #faf8f5;
  --secondary: #f0ebe3;
  --muted: #f0ebe3;
  --muted-foreground: #6b6860;
  --accent: #c4a574;
  --accent-foreground: #2a2a28;
  --border: #e8e2d9;
  --radius: 0.625rem;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
.text-balance { text-wrap: balance; }

/* ----- Lade-Animationen ----- */
@keyframes fade-up   { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes scale-in  { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slide-in-left  { from { opacity: 0; transform: translateX(-50px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slide-in-right { from { opacity: 0; transform: translateX(50px);  } to { opacity: 1; transform: translateX(0); } }
@keyframes float     { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blob      { 0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } 50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; } }
@keyframes pulse-soft { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

.animate-fade-up        { animation: fade-up 0.8s ease-out forwards; opacity: 0; }
.animate-fade-in        { animation: fade-in 0.6s ease-out forwards; opacity: 0; }
.animate-scale-in       { animation: scale-in 0.6s ease-out forwards; opacity: 0; }
.animate-slide-in-left  { animation: slide-in-left 0.8s ease-out forwards; opacity: 0; }
.animate-slide-in-right { animation: slide-in-right 0.8s ease-out forwards; opacity: 0; }
.animate-float          { animation: float 3s ease-in-out infinite; }
.animate-pulse-soft     { animation: pulse-soft 2s ease-in-out infinite; }
.animate-blob           { animation: blob 8s ease-in-out infinite; }

.fade-in    { animation: fade-in 0.8s ease-out forwards; }
.fade-in-up { animation: fade-up 0.8s ease-out forwards; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }

/* Scroll reveal helper – per JS aktiviert */
.reveal { opacity: 0; }
.reveal.is-visible { opacity: 1; }

/* Hover effects */
.hover-lift { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(45,74,62,0.15); }

.card-creative { position: relative; overflow: hidden; transition: all 0.5s cubic-bezier(0.4,0,0.2,1); }
.card-creative:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -12px rgba(45,74,62,0.15); }

.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform 0.7s cubic-bezier(0.4,0,0.2,1); }
.img-zoom:hover img { transform: scale(1.08); }

/* Stagger children */
.stagger-children > * { opacity: 0; animation: fade-up 0.6s ease forwards; }
.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

/* Vorher-Nachher Slider (Ergebnisse) */
.ba-wrap { position: relative; overflow: hidden; cursor: ew-resize; user-select: none; touch-action: none; border-radius: 1.5rem; aspect-ratio: 4/5; }
.ba-after, .ba-before { position: absolute; inset: 0; }
.ba-before { clip-path: inset(0 50% 0 0); }
.ba-after img, .ba-before img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-handle { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,0.3); left: 50%; transform: translateX(-50%); pointer-events: none; }
.ba-handle::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.ba-handle::after { content: '⇆'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--primary); font-size: 18px; font-weight: 700; }

/* Article content (Wissen / Detail-Seiten) */
.article-content { color: var(--muted-foreground); font-weight: 300; line-height: 1.8; font-size: 1.0625rem; }
.article-content > * + * { margin-top: 1.5em; }
.article-content h2 { color: var(--primary); font-weight: 300; font-size: 1.75rem; margin-top: 2.5em; margin-bottom: 0.75em; line-height: 1.3; }
.article-content h3 { color: var(--primary); font-weight: 400; font-size: 1.35rem; margin-top: 2em; margin-bottom: 0.5em; line-height: 1.4; }
.article-content p  { margin-top: 1.25em; margin-bottom: 1.25em; }
.article-content strong { color: var(--foreground); font-weight: 500; }
.article-content ul, .article-content ol { padding-left: 1.5em; margin: 1.25em 0; }
.article-content ul { list-style-type: disc; }
.article-content ol { list-style-type: decimal; }
.article-content li { margin: 0.5em 0; padding-left: 0.25em; }
.article-content li::marker { color: var(--accent); }
.article-content blockquote { border-left: 3px solid var(--accent); padding-left: 1.25em; margin: 2em 0; font-style: italic; color: var(--primary); font-size: 1.125rem; }
