/* ═══════════════════════════════════════════════════════════
   HERBARIA — animations.css  (cross-browser stable)
   earthkeeper · Reinhilde Viktoria Heim
═══════════════════════════════════════════════════════════ */

/* ─── KEYFRAMES ──────────────────────────────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes charReveal {
  from { opacity: 0; transform: translateY(60%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.04); }
}

@keyframes floatParticle {
  from { transform: translate(0, 0); }
  to   { transform: translate(12px, -24px); }
}

@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes labelLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(201,168,76,0.15); }
  50%       { box-shadow: 0 0 40px rgba(201,168,76,0.4); }
}

/* ─── HERO TITEL — Buchstaben ────────────────────────────── */

.hero__title .char {
  display: inline-block;
  opacity: 0;
  animation: charReveal 0.7s cubic-bezier(0.16,1,0.3,1) forwards;
  animation-delay: calc(0.05s * var(--ci, 0) + 0.3s);
}

.hero__eyebrow {
  animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.15s both;
}

.hero__subtitle {
  animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.8s both;
}

.hero__rule {
  animation: fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) 1.0s both;
}

.hero__actions {
  animation: fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 1.2s both;
}

.hero__scroll {
  animation: fadeUp 0.6s ease 1.8s both;
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.16,1,0.3,1),
              transform 0.75s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-left.in {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1),
              transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal-right.in {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger */
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }
.d5 { transition-delay: 0.40s; }

/* ─── LABEL LINIE (entfernt — Safari-Bug) ────────────────── */

/* ─── BUTTONS ────────────────────────────────────────────── */

.btn {
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1),
              box-shadow 0.3s ease,
              background 0.3s ease,
              color 0.3s ease;
}
.btn--gold:hover {
  box-shadow: 0 12px 40px rgba(201,168,76,0.3);
  transform: translateY(-2px);
}
.btn--forest:hover {
  box-shadow: 0 12px 40px rgba(28,53,32,0.25);
  transform: translateY(-2px);
}

/* ─── NAV ────────────────────────────────────────────────── */

.nav {
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1),
              background 0.4s ease,
              box-shadow 0.4s ease,
              padding 0.4s ease;
}
.nav--hidden {
  transform: translateY(-110%) !important;
}
.nav__links a {
  position: relative;
  transition: opacity 0.2s ease;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%; height: 1px;
  background: #C9A84C;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}
.nav__links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ─── FEATURE CARDS ──────────────────────────────────────── */

.feat {
  transition: box-shadow 0.35s ease, background 0.35s ease;
}
.feat:hover {
  background: rgba(201,168,76,0.05);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1), 0 0 0 1px rgba(201,168,76,0.12);
}
.feat:hover .feat__num {
  color: #C9A84C;
  transition: color 0.3s ease;
}

/* ─── TESTIMONIALS ───────────────────────────────────────── */

.tcard {
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.tcard:hover {
  box-shadow: 0 24px 60px rgba(0,0,0,0.14);
  transform: translateY(-4px);
}

/* ─── GALERIE ────────────────────────────────────────────── */

.tile {
  overflow: hidden;
}
.tile img {
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
  display: block; width: 100%;
}
.tile:hover img {
  transform: scale(1.05);
}

/* ─── BILDER ─────────────────────────────────────────────── */

.split__img, .author__img, .book__img {
  transition: transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.split__img-side:hover .split__img,
.author__img-wrap:hover .author__img {
  transform: scale(1.03);
}

/* ─── BUCH ───────────────────────────────────────────────── */

.book__badge {
  animation: breathe 3s ease-in-out infinite;
}

/* ─── CTA BUTTON GLOW ────────────────────────────────────── */

.cta .btn--gold {
  animation: glowPulse 3s ease-in-out infinite;
}

/* ─── SCROLL INDIKATOR ───────────────────────────────────── */

.hero__scroll-bar {
  animation: scrollLine 2s ease-in-out infinite;
}

/* ─── MARQUEE ────────────────────────────────────────────── */

.marquee__item {
  transition: color 0.3s ease;
}
.marquee__item:hover {
  color: #C9A84C;
}

/* ─── FOOTER LINKS ───────────────────────────────────────── */

.footer__links a {
  transition: color 0.25s ease, padding-left 0.25s ease;
  position: relative;
}
.footer__links a:hover {
  color: #C9A84C;
  padding-left: 0.8rem;
}

/* ─── REDUCED MOTION ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-left, .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero__title .char {
    opacity: 1 !important;
    animation: none !important;
  }
}
