/* Kaffee & Komfort — motion, scroll reveals, hero loop */

/* ── Hero entrance (page load) ── */
.hero-content > * {
  opacity: 0;
  animation: heroContentIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-content .eyebrow { animation-delay: 0.08s; }
.hero-content h1 { animation-delay: 0.18s; }
.hero-content .hero-lead { animation-delay: 0.3s; }
.hero-content .hero-actions { animation-delay: 0.42s; }
.hero-content .hero-meta { animation-delay: 0.54s; }

@keyframes heroContentIn {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-visual-stage {
  opacity: 0;
  animation: heroStageIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

@keyframes heroStageIn {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-visual--main {
  animation: heroFloat 7s ease-in-out infinite;
}

.hero-visual--accent {
  animation: heroFloatAccent 6s ease-in-out infinite 0.5s;
}

.hero-visual--mini {
  animation: heroFloatMini 5.5s ease-in-out infinite 1s;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes heroFloatAccent {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-6px); }
}

@keyframes heroFloatMini {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.hero-warmth {
  animation: warmthPulse 8s ease-in-out infinite;
}

@keyframes warmthPulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.03); }
}

/* CSS coffee cup + steam loop (GIF-like) */
.hero-cup-scene {
  position: absolute;
  top: -0.5rem;
  left: -0.75rem;
  z-index: 5;
  width: 3.5rem;
  height: 4.5rem;
  pointer-events: none;
}

.hero-cup {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 2.4rem;
  height: 1.85rem;
  transform: translateX(-50%);
  border-radius: 0 0 0.55rem 0.55rem;
  background: linear-gradient(145deg, #fffbf5 0%, #f2e4d2 100%);
  border: 2px solid rgba(166, 106, 58, 0.35);
  box-shadow: 0 4px 12px rgba(58, 40, 26, 0.12);
}

.hero-cup::before {
  content: "";
  position: absolute;
  right: -0.55rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 1rem;
  border: 2px solid rgba(166, 106, 58, 0.35);
  border-left: none;
  border-radius: 0 0.5rem 0.5rem 0;
}

.hero-cup::after {
  content: "";
  position: absolute;
  inset: 0.35rem 0.3rem auto;
  height: 0.45rem;
  border-radius: 50%;
  background: radial-gradient(ellipse, #5c3d1e 0%, #3a281a 70%);
}

.hero-cup-steam {
  position: absolute;
  bottom: 1.9rem;
  width: 3px;
  height: 1.4rem;
  border-radius: 3px;
  background: linear-gradient(to top, rgba(166, 106, 58, 0.55), transparent);
  opacity: 0;
  animation: cupSteam 2.8s ease-in-out infinite;
}

.hero-cup-steam--1 { left: 38%; animation-delay: 0s; }
.hero-cup-steam--2 { left: 50%; animation-delay: 0.7s; height: 1.7rem; }
.hero-cup-steam--3 { left: 62%; animation-delay: 1.4s; }

@keyframes cupSteam {
  0% {
    opacity: 0;
    transform: translateY(0) scaleX(1);
  }
  15% {
    opacity: 0.75;
  }
  50% {
    opacity: 0.45;
    transform: translateY(-10px) scaleX(1.3);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scaleX(0.7);
  }
}

.hero-glow-ring {
  position: absolute;
  inset: 10% 5%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 196, 140, 0.18), transparent 65%);
  animation: glowRing 6s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes glowRing {
  0%, 100% { transform: scale(0.95); opacity: 0.5; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

/* ── Scroll reveals ── */
.reveal {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--fade {
  transform: none;
}

.reveal--left {
  transform: translateX(-1.5rem);
}

.reveal--right {
  transform: translateX(1.5rem);
}

.reveal--scale {
  transform: scale(0.96);
}

.reveal--left.is-visible,
.reveal--right.is-visible,
.reveal--scale.is-visible {
  transform: translateX(0) translateY(0) scale(1);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.4s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.47s; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 0.54s; }

/* ── Header scroll state ── */
.site-header.is-scrolled {
  background: rgba(252, 247, 240, 0.96);
  box-shadow: 0 4px 24px rgba(58, 40, 26, 0.08);
}

.site-header.is-scrolled .brand-icon {
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

/* ── Micro-interactions ── */
.button-cafe {
  position: relative;
  overflow: hidden;
}

.button-cafe::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.button-cafe:hover::after,
.button-cafe:focus-visible::after {
  transform: translateX(120%);
}

.highlight-card {
  cursor: pointer;
}

.highlight-card .highlight-icon {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), color 0.25s ease;
}

.highlight-card:hover .highlight-icon {
  transform: translateY(-3px) scale(1.08);
  color: #fff;
}

.gallery-cafe-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.gallery-cafe-item:hover {
  transform: translateY(-3px);
}

.gallery-cafe-caption {
  transform: translateY(0.35rem);
  opacity: 0.92;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.gallery-cafe-item:hover .gallery-cafe-caption {
  transform: translateY(0);
  opacity: 1;
}

.price-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(166, 106, 58, 0.22);
}

.price-card li {
  transition: padding-left 0.2s ease;
}

.price-card:hover li:hover {
  padding-left: 0.35rem;
}

.about-facts li {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

.about-facts li:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.about-visual img {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-visual:hover img {
  transform: scale(1.04);
}

.contact-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.booking-panel .calendar-panel,
.booking-panel .booking-form {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.booking-panel .calendar-panel:hover,
.booking-panel .booking-form:hover {
  box-shadow: var(--shadow);
}

.day-button,
.slot-button {
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.day-button:hover:not(.active),
.slot-button:hover:not(:disabled):not(.active) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.day-button.active,
.slot-button.active {
  transform: scale(1.02);
}

.main-nav a {
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.2rem;
  width: 100%;
  height: 2px;
  background: var(--accent-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

/* Legal page entrance */
.legal-page .legal-card {
  opacity: 0;
  animation: legalCardIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}

@keyframes legalCardIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Admin card hover polish */
.admin-card,
.admin-stat-card,
.admin-auth-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.admin-card:hover,
.admin-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

@media (prefers-reduced-motion: reduce) {
  .hero-content > *,
  .hero-visual-stage,
  .hero-visual--main,
  .hero-visual--accent,
  .hero-visual--mini,
  .hero-warmth,
  .hero-cup-steam,
  .hero-glow-ring,
  .legal-page .legal-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
