/* ============================================================
   WALCHSEER HOF — Animationen
   Dezent, ruhig, hochwertig. Alles wird bei
   „prefers-reduced-motion" automatisch abgeschaltet.
   Scroll-Reveal nur aktiv, wenn JS läuft (html.js-anim).
   ============================================================ */

:root {
  --ease-soft:    cubic-bezier(.22, .61, .36, 1);
  --reveal-dist:  28px;
  --reveal-dur:   900ms;
}

/* ── Scroll-Reveal ────────────────────────────────────────── */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(var(--reveal-dist));
  /* Verstecken passiert SOFORT (kein kurzes Aufblitzen beim Laden) – nur das Einblenden ist animiert */
}
/* Beim Laden schon sichtbar → sofort fertig, auch die Goldlinie unter dem Kicker */
.js-anim .reveal-instant,
.js-anim .reveal-instant::after,
.js-anim .reveal-instant .check-ico circle,
.js-anim .reveal-instant .check-ico path { transition: none !important; }
.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--reveal-dur) var(--ease-soft),
    transform var(--reveal-dur) var(--ease-soft);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Kicker: kurze Goldlinie wächst beim Einblenden mit */
.js-anim .section-eyebrow.reveal::after {
  content: '';
  display: block;
  width: 0;
  height: 1px;
  margin-top: 10px;
  background: currentColor;
  opacity: .6;
  transition: width 1100ms var(--ease-soft) calc(var(--reveal-delay, 0ms) + 300ms);
}
.js-anim .section-eyebrow.reveal.is-visible::after { width: 36px; }
[style*="text-align:center"] > .section-eyebrow::after { margin-inline: auto; }

/* ── Hero ─────────────────────────────────────────────────── */
/* Langsamer „Ken Burns"-Zoom auf das Hausfoto */
.section-hero__img,
.page-intro__img-wrap img {
  animation: wh-kenburns 22s var(--ease-soft) both;
  transform-origin: 50% 60%;
}
@keyframes wh-kenburns {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

/* Titeltexte (Hero / Page-Intro) sind sofort da – KEIN Einblenden (Kundenwunsch 05.10.2026:
   die Seitenübergänge übernehmen den Auftritt). */

/* „weiter"-Pfeil wippt sanft */
.section-hero__scroll svg { animation: wh-bob 2.4s ease-in-out 2s infinite; }
@keyframes wh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wh-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(5px); }
}

/* ── Parallax-Bilder (Werte setzt js/animations.js) ───────── */
.js-anim .divider-image img,
.js-anim .haus-banner img {
  height: 124%;
  top: -12%;
  left: 0;
  position: absolute;
  will-change: transform;
}
.js-anim .haus-banner { position: relative; }

/* ── Karten: Hover-Lift + Bildzoom ────────────────────────── */
.card,
.angebot-card,
.zt-card,
.wellness-item {
  transition: translate 450ms var(--ease-soft), box-shadow 450ms var(--ease-soft), border-color 450ms var(--ease-soft);
}
@media (hover: hover) {
  .card:hover,
  .angebot-card:hover,
  .zt-card:hover,
  .wellness-item:hover {
    translate: 0 -6px;
    box-shadow: var(--shadow-3);
  }
  .wellness-item:hover { border-color: var(--wh-bronze-300); }
  .card .media img { transition: transform 900ms var(--ease-soft); }
  .card:hover .media img { transform: scale(1.06); }
}

/* Pfeile in Buttons/Links schieben sich bei Hover nach rechts */
.btn svg:last-child { transition: transform 300ms var(--ease-soft); }
.btn:hover svg:last-child { transform: translateX(4px); }

/* ── Animierte Linien-Icons (Style Guide: Gold dunkel, gleiche Strichstärke) ── */
.anim-icon {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}
.anim-icon * { transform-box: fill-box; }

/* Icon-Kreis wie bei den Instagram-Highlights */
.wellness-item__icon {
  width: 60px;
  height: 60px;
  padding: 13px;
  border-radius: 50%;
  background: var(--wh-off-white);
  box-shadow: inset 0 0 0 1px var(--border-hairline);
  transition: transform 500ms var(--ease-soft), background 500ms var(--ease-soft);
}
.wellness-item:hover .wellness-item__icon {
  transform: scale(1.08) rotate(-4deg);
  background: var(--wh-bronze-100);
}

/* Sauna: Dampf steigt auf */
.ico-steam {
  animation: wh-steam 3.2s ease-in-out infinite;
  transform-origin: 50% 100%;
}
.ico-steam:nth-of-type(2) { animation-delay: .6s; }
.ico-steam:nth-of-type(3) { animation-delay: 1.2s; }
@keyframes wh-steam {
  0%   { opacity: 0;  transform: translateY(3px) scaleY(.7); }
  35%  { opacity: 1; }
  100% { opacity: 0;  transform: translateY(-4px) scaleY(1.1); }
}

/* Dampfbad: Nebelschwaden wiegen sich */
.ico-mist { animation: wh-mist 4s ease-in-out infinite; }
.ico-mist:nth-of-type(2) { animation-delay: -1.3s; animation-duration: 4.6s; }
.ico-mist:nth-of-type(3) { animation-delay: -2.6s; animation-duration: 5.2s; }
@keyframes wh-mist {
  0%, 100% { transform: translateX(-1.5px); opacity: .55; }
  50%      { transform: translateX(1.5px);  opacity: 1; }
}

/* Infrarot / Zirbe: Wärmewellen pulsieren nach außen */
.ico-heat { animation: wh-heat 2.8s ease-out infinite; transform-origin: 50% 50%; }
.ico-heat--r { animation-delay: .4s; }
@keyframes wh-heat {
  0%   { opacity: 0;  transform: scale(.8); }
  40%  { opacity: 1; }
  100% { opacity: 0;  transform: scale(1.15); }
}
.ico-tree { animation: wh-sway 5s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes wh-sway {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

/* Fitness: Hantel wird gestemmt */
.ico-lift { animation: wh-lift 2.6s var(--ease-soft) infinite; }
@keyframes wh-lift {
  0%, 100% { transform: translateY(2px); }
  45%, 60% { transform: translateY(-2px); }
}

/* Wasserbett: schaukelt sanft */
.ico-float { animation: wh-float 3.4s ease-in-out infinite; }
@keyframes wh-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-1px) rotate(-1.5deg); }
}
/* Freiluftbalkon: Wölkchen zieht vorbei (Sonne nutzt .ico-sun-core) */
.ico-cloud { animation: wh-cloud 7s ease-in-out infinite; }
@keyframes wh-cloud {
  0%, 100% { transform: translateX(-1.5px); opacity: .7; }
  50%      { transform: translateX(3px);    opacity: 1; }
}

/* Jahreszeiten-Icons */
.activity-col__season {
  display: flex;
  align-items: center;
  gap: 14px;
}
.season-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 50%;
  background: var(--wh-off-white);
  box-shadow: inset 0 0 0 1px var(--border-hairline);
  color: var(--text-gold);
}
.ico-sun-rays  { animation: wh-spin 24s linear infinite; transform-origin: 50% 50%; }
.ico-sun-core  { animation: wh-glow 3s ease-in-out infinite; transform-origin: 50% 50%; }
.ico-snowflake { animation: wh-spin 16s linear infinite; transform-origin: 50% 50%; }
@keyframes wh-spin { to { transform: rotate(360deg); } }
@keyframes wh-glow {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* „Bereits inkludiert": Häkchen zeichnen sich */
.included-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.check-ico {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: .2em;
  fill: none;
  stroke: var(--text-gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.js-anim .check-ico circle,
.js-anim .check-ico path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 900ms var(--ease-soft);
  transition-delay: calc(var(--reveal-delay, 0ms) + 250ms);
}
.js-anim .check-ico path { transition-delay: calc(var(--reveal-delay, 0ms) + 750ms); transition-duration: 500ms; }
.js-anim .is-visible .check-ico circle,
.js-anim .is-visible .check-ico path { stroke-dashoffset: 0; }

/* Aktivitäten-Punkte leuchten bei Hover auf */
.activity-list li { transition: padding-left 350ms var(--ease-soft), color 350ms; }
.activity-list li::before { transition: transform 350ms var(--ease-soft), background 350ms; }
@media (hover: hover) {
  .activity-list li:hover { padding-left: calc(var(--space-5) + 6px); }
  .activity-list li:hover::before { transform: translateY(-50%) scale(1.6); background: var(--wh-bronze); }
}

/* ── Bewegung reduzieren, wenn im System gewünscht ────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
    animation-delay: 0ms !important;
  }
  .js-anim .reveal { opacity: 1; transform: none; }
}
