/* Ruhige, edle Bewegung für Startseite, Über mich und Produkte.
   Langsam und weich, damit es zu einer Seite für Frauen ab 40 passt.
   Die Bewegung ist so sanft, dass sie auch bei „weniger Bewegung“ läuft (base.css würde sie sonst abschalten). */

:root { --sanft: cubic-bezier(.22, .8, .24, 1); }

/* Foto wird von rechts nach links aufgedeckt und zoomt dabei langsam heran */
.bewegt .b-foto { animation: b-bogen 1.6s .15s var(--sanft) backwards; }
.bewegt .b-foto img { animation: b-zoom 3.2s .15s var(--sanft) both; }
@keyframes b-bogen { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes b-zoom { from { transform: scale(1.14); } }

/* Text oben: Zeile für Zeile, die grosse Überschrift Wort für Wort */
.bewegt .b-zeile { animation: b-hoch 1.1s calc(var(--n, 0) * 120ms + .35s) var(--sanft) both; }
@keyframes b-hoch { from { opacity: 0; transform: translateY(22px); } }
.b-wort { display: inline-block; }
.bewegt .b-wort { animation: b-wort 1.2s calc(var(--w) * 90ms + .5s) var(--sanft) both; }
@keyframes b-wort { from { opacity: 0; transform: translateY(.45em); filter: blur(4px); } }

/* Abschnitte weiter unten blenden beim Scrollen weich ein */
.bewegt .b-rein { opacity: 0; transform: translateY(34px); transition: opacity 1.2s var(--sanft) var(--v, 0s), transform 1.2s var(--sanft) var(--v, 0s); }
.bewegt .b-rein.b-da { opacity: 1; transform: none; }

/* Bilder bewegen sich beim Scrollen ganz leicht mit */
.b-tiefe img { transform: translateY(var(--t, 0)) scale(1.06); transition: transform .2s linear; will-change: transform; }

/* Feiner Lichtschimmer über den grünen Knöpfen */
.bewegt .btn--primary { position: relative; overflow: hidden; isolation: isolate; }
.bewegt .btn--primary::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transform: translateX(-120%); animation: b-schimmer 6s 2.5s ease-in-out infinite; pointer-events: none; }
@keyframes b-schimmer { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.bewegt .btn--primary { transition: transform .5s var(--sanft), box-shadow .5s var(--sanft), background-color .3s, color .3s; }
.bewegt .btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -16px rgba(70, 88, 66, .75); }
.bewegt .btn--primary:active { transform: translateY(0) scale(.98); }

/* Blätter, die langsam durchs Bild schweben (nur Deko, hinter allem) */
.b-blaetter { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.b-blaetter svg { position: absolute; width: var(--g, 38px); height: auto; color: var(--salbei, #7d9474); opacity: .16; animation: b-schweben var(--d, 26s) var(--s, 0s) linear infinite; }
@keyframes b-schweben {
  0% { transform: translate(0, -10vh) rotate(0deg); }
  50% { transform: translate(6vw, 50vh) rotate(160deg); }
  100% { transform: translate(-3vw, 112vh) rotate(320deg); }
}

@media (max-width: 760px) {
  .b-blaetter svg:nth-child(n+4) { display: none; }
  .b-tiefe img { transform: none; }
}

/* base.css setzt bei „weniger Bewegung“ alle Zeiten auf fast null, hier gelten wieder die echten */
@media (prefers-reduced-motion: reduce) {
  .bewegt .b-foto { animation-duration: 1.6s !important; }
  .bewegt .b-foto img { animation-duration: 3.2s !important; }
  .bewegt .b-zeile { animation-duration: 1.1s !important; }
  .bewegt .b-wort { animation-duration: 1.2s !important; }
  .bewegt .b-rein { transition-duration: 1.2s !important; }
  .b-tiefe img { transition-duration: .2s !important; }
  .bewegt .btn--primary { transition-duration: .5s !important; }
  .bewegt .btn--primary::after { animation-duration: 6s !important; animation-iteration-count: infinite !important; }
  .b-blaetter svg { animation-duration: var(--d, 26s) !important; animation-iteration-count: infinite !important; }
}
